Debian Codegraph @

ld/configure

raw ◀ ▶
3 Debian patches touch this file
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
•3 # Generated by GNU Autoconf 2.69 for ld 2.44.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='ld'
589 PACKAGE_TARNAME='ld'
•590 PACKAGE_VERSION='2.44'
591 PACKAGE_STRING='ld 2.44'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="ldmain.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 gt_needs=
633 ac_header_list=
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
•638 CTF_SOVER_EXT
639 TESTSFRAMELIB
640 TESTCTFLIB
641 TESTBFDLIB
642 EMULATION_LIBPATH
643 LIB_PATH
644 EMUL_EXTRA_OFILES
645 EMULATION_OFILES
646 TDIRS
647 EMUL
648 elf_plt_unwind_list_options
649 elf_shlib_list_options
650 elf_list_options
651 ZSTD_LIBS
652 ZSTD_CFLAGS
653 zlibinc
654 zlibdir
655 NATIVE_LIB_DIRS
656 HDEFINES
657 do_compare
658 GENINSRC_NEVER_FALSE
659 GENINSRC_NEVER_TRUE
660 LEXLIB
661 LEX_OUTPUT_ROOT
662 LEX
663 YFLAGS
664 YACC
665 CATOBJEXT
666 GENCAT
667 INSTOBJEXT
668 DATADIRNAME
669 CATALOGS
670 INCINTL
671 LIBINTL_DEP
672 POSUB
673 LTLIBINTL
674 LIBINTL
675 INTLLIBS
676 LTLIBICONV
677 LIBICONV
678 INTL_MACOSX_LIBS
679 MSGMERGE
680 XGETTEXT
681 GMSGFMT
682 MSGFMT
683 USE_NLS
684 MKINSTALLDIRS
685 WARN_WRITE_STRINGS
686 NO_WERROR
687 WARN_CFLAGS_FOR_BUILD
688 WARN_CFLAGS
689 JANSSON_LIBS
690 JANSSON_CFLAGS
691 enable_libctf
692 ENABLE_LIBCTF_FALSE
693 ENABLE_LIBCTF_TRUE
694 enable_initfini_array
695 installed_linker
696 install_as_default
697 TARGET_SYSTEM_ROOT_DEFINE
698 TARGET_SYSTEM_ROOT
699 use_sysroot
700 ENABLE_BFD_64_BIT_FALSE
701 ENABLE_BFD_64_BIT_TRUE
702 LARGEFILE_CPPFLAGS
703 CXXCPP
704 OTOOL64
705 OTOOL
706 LIPO
707 NMEDIT
708 DSYMUTIL
709 RANLIB
710 AR
711 OBJDUMP
712 LN_S
713 NM
714 ac_ct_DUMPBIN
715 DUMPBIN
716 LD
717 FGREP
718 SED
719 LIBTOOL
720 PKG_CONFIG_LIBDIR
721 PKG_CONFIG_PATH
722 PKG_CONFIG
723 EGREP
724 CPP
725 GREP
726 am__fastdepCXX_FALSE
727 am__fastdepCXX_TRUE
728 CXXDEPMODE
729 ac_ct_CXX
730 CXXFLAGS
731 CXX
732 am__fastdepCC_FALSE
733 am__fastdepCC_TRUE
734 CCDEPMODE
735 am__nodep
736 AMDEPBACKSLASH
737 AMDEP_FALSE
738 AMDEP_TRUE
739 am__quote
740 am__include
741 DEPDIR
742 OBJEXT
743 EXEEXT
744 ac_ct_CC
745 CPPFLAGS
746 LDFLAGS
747 CFLAGS
748 CC
749 MAINT
750 MAINTAINER_MODE_FALSE
751 MAINTAINER_MODE_TRUE
752 AM_BACKSLASH
753 AM_DEFAULT_VERBOSITY
754 AM_DEFAULT_V
755 AM_V
756 am__untar
757 am__tar
758 AMTAR
759 am__leading_dot
760 SET_MAKE
761 AWK
762 mkdir_p
763 MKDIR_P
764 INSTALL_STRIP_PROGRAM
765 STRIP
766 install_sh
767 MAKEINFO
768 AUTOHEADER
769 AUTOMAKE
770 AUTOCONF
771 ACLOCAL
772 VERSION
773 PACKAGE
774 CYGPATH_W
775 am__isrc
776 INSTALL_DATA
777 INSTALL_SCRIPT
778 INSTALL_PROGRAM
779 target_os
780 target_vendor
781 target_cpu
782 target
783 host_os
784 host_vendor
785 host_cpu
786 host
787 build_os
788 build_vendor
789 build_cpu
790 build
791 target_alias
792 host_alias
793 build_alias
794 LIBS
795 ECHO_T
796 ECHO_N
797 ECHO_C
798 DEFS
799 mandir
800 localedir
801 libdir
802 psdir
803 pdfdir
804 dvidir
805 htmldir
806 infodir
807 docdir
808 oldincludedir
809 includedir
810 localstatedir
811 sharedstatedir
812 sysconfdir
813 datadir
814 datarootdir
815 libexecdir
816 sbindir
817 bindir
818 program_transform_name
819 prefix
820 exec_prefix
821 PACKAGE_URL
822 PACKAGE_BUGREPORT
823 PACKAGE_STRING
824 PACKAGE_VERSION
825 PACKAGE_TARNAME
826 PACKAGE_NAME
827 PATH_SEPARATOR
828 SHELL'
829 ac_subst_files=''
830 ac_user_opts='
831 enable_option_checking
832 enable_silent_rules
833 enable_maintainer_mode
834 enable_dependency_tracking
835 enable_shared
836 enable_static
837 with_pic
838 enable_fast_install
839 with_gnu_ld
840 enable_libtool_lock
841 enable_plugins
842 enable_largefile
843 enable_checking
844 with_lib_path
845 enable_targets
846 enable_64_bit_bfd
847 with_sysroot
848 enable_gold
849 enable_got
850 enable_compressed_debug_sections
851 enable_default_compressed_debug_sections_algorithm
852 enable_new_dtags
853 enable_relro
854 enable_textrel_check
855 enable_separate_code
856 enable_rosegment
857 enable_mark_plt
858 enable_memory_seal
859 enable_warn_execstack
860 enable_error_execstack
861 enable_warn_rwx_segments
862 enable_error_rwx_segments
863 enable_default_execstack
864 enable_error_handling_script
865 enable_default_hash_style
866 enable_initfini_array
867 enable_libctf
868 enable_jansson
869 enable_werror
870 enable_build_warnings
871 enable_nls
872 enable_rpath
873 with_libiconv_prefix
874 with_libiconv_type
875 with_libintl_prefix
876 with_libintl_type
877 with_xxhash
878 with_system_zlib
879 with_zstd
880 '
881 ac_precious_vars='build_alias
882 host_alias
883 target_alias
884 CC
885 CFLAGS
886 LDFLAGS
887 LIBS
888 CPPFLAGS
889 CXX
890 CXXFLAGS
891 CCC
892 CPP
893 PKG_CONFIG
894 PKG_CONFIG_PATH
895 PKG_CONFIG_LIBDIR
896 CXXCPP
897 JANSSON_CFLAGS
898 JANSSON_LIBS
899 YACC
900 YFLAGS
901 ZSTD_CFLAGS
902 ZSTD_LIBS'
903
904
905 # Initialize some variables set by options.
906 ac_init_help=
907 ac_init_version=false
908 ac_unrecognized_opts=
909 ac_unrecognized_sep=
910 # The variables have the same names as the options, with
911 # dashes changed to underlines.
912 cache_file=/dev/null
913 exec_prefix=NONE
914 no_create=
915 no_recursion=
916 prefix=NONE
917 program_prefix=NONE
918 program_suffix=NONE
919 program_transform_name=s,x,x,
920 silent=
921 site=
922 srcdir=
923 verbose=
924 x_includes=NONE
925 x_libraries=NONE
926
927 # Installation directory options.
928 # These are left unexpanded so users can "make install exec_prefix=/foo"
929 # and all the variables that are supposed to be based on exec_prefix
930 # by default will actually change.
931 # Use braces instead of parens because sh, perl, etc. also accept them.
932 # (The list follows the same order as the GNU Coding Standards.)
933 bindir='${exec_prefix}/bin'
934 sbindir='${exec_prefix}/sbin'
935 libexecdir='${exec_prefix}/libexec'
936 datarootdir='${prefix}/share'
937 datadir='${datarootdir}'
938 sysconfdir='${prefix}/etc'
939 sharedstatedir='${prefix}/com'
940 localstatedir='${prefix}/var'
941 includedir='${prefix}/include'
942 oldincludedir='/usr/include'
943 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
944 infodir='${datarootdir}/info'
945 htmldir='${docdir}'
946 dvidir='${docdir}'
947 pdfdir='${docdir}'
948 psdir='${docdir}'
949 libdir='${exec_prefix}/lib'
950 localedir='${datarootdir}/locale'
951 mandir='${datarootdir}/man'
952
953 ac_prev=
954 ac_dashdash=
955 for ac_option
956 do
957 # If the previous option needs an argument, assign it.
958 if test -n "$ac_prev"; then
959 eval $ac_prev=\$ac_option
960 ac_prev=
961 continue
962 fi
963
964 case $ac_option in
965 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
966 *=) ac_optarg= ;;
967 *) ac_optarg=yes ;;
968 esac
969
970 # Accept the important Cygnus configure options, so we can diagnose typos.
971
972 case $ac_dashdash$ac_option in
973 --)
974 ac_dashdash=yes ;;
975
976 -bindir | --bindir | --bindi | --bind | --bin | --bi)
977 ac_prev=bindir ;;
978 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979 bindir=$ac_optarg ;;
980
981 -build | --build | --buil | --bui | --bu)
982 ac_prev=build_alias ;;
983 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984 build_alias=$ac_optarg ;;
985
986 -cache-file | --cache-file | --cache-fil | --cache-fi \
987 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988 ac_prev=cache_file ;;
989 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991 cache_file=$ac_optarg ;;
992
993 --config-cache | -C)
994 cache_file=config.cache ;;
995
996 -datadir | --datadir | --datadi | --datad)
997 ac_prev=datadir ;;
998 -datadir=* | --datadir=* | --datadi=* | --datad=*)
999 datadir=$ac_optarg ;;
1000
1001 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002 | --dataroo | --dataro | --datar)
1003 ac_prev=datarootdir ;;
1004 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006 datarootdir=$ac_optarg ;;
1007
1008 -disable-* | --disable-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error $? "invalid feature name: $ac_useropt"
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1016 *"
1017 "enable_$ac_useropt"
1018 "*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval enable_$ac_useropt=no ;;
1023
1024 -docdir | --docdir | --docdi | --doc | --do)
1025 ac_prev=docdir ;;
1026 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027 docdir=$ac_optarg ;;
1028
1029 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030 ac_prev=dvidir ;;
1031 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032 dvidir=$ac_optarg ;;
1033
1034 -enable-* | --enable-*)
1035 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038 as_fn_error $? "invalid feature name: $ac_useropt"
1039 ac_useropt_orig=$ac_useropt
1040 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1042 *"
1043 "enable_$ac_useropt"
1044 "*) ;;
1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1046 ac_unrecognized_sep=', ';;
1047 esac
1048 eval enable_$ac_useropt=\$ac_optarg ;;
1049
1050 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052 | --exec | --exe | --ex)
1053 ac_prev=exec_prefix ;;
1054 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056 | --exec=* | --exe=* | --ex=*)
1057 exec_prefix=$ac_optarg ;;
1058
1059 -gas | --gas | --ga | --g)
1060 # Obsolete; use --with-gas.
1061 with_gas=yes ;;
1062
1063 -help | --help | --hel | --he | -h)
1064 ac_init_help=long ;;
1065 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066 ac_init_help=recursive ;;
1067 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068 ac_init_help=short ;;
1069
1070 -host | --host | --hos | --ho)
1071 ac_prev=host_alias ;;
1072 -host=* | --host=* | --hos=* | --ho=*)
1073 host_alias=$ac_optarg ;;
1074
1075 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076 ac_prev=htmldir ;;
1077 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078 | --ht=*)
1079 htmldir=$ac_optarg ;;
1080
1081 -includedir | --includedir | --includedi | --included | --include \
1082 | --includ | --inclu | --incl | --inc)
1083 ac_prev=includedir ;;
1084 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085 | --includ=* | --inclu=* | --incl=* | --inc=*)
1086 includedir=$ac_optarg ;;
1087
1088 -infodir | --infodir | --infodi | --infod | --info | --inf)
1089 ac_prev=infodir ;;
1090 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091 infodir=$ac_optarg ;;
1092
1093 -libdir | --libdir | --libdi | --libd)
1094 ac_prev=libdir ;;
1095 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096 libdir=$ac_optarg ;;
1097
1098 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099 | --libexe | --libex | --libe)
1100 ac_prev=libexecdir ;;
1101 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102 | --libexe=* | --libex=* | --libe=*)
1103 libexecdir=$ac_optarg ;;
1104
1105 -localedir | --localedir | --localedi | --localed | --locale)
1106 ac_prev=localedir ;;
1107 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108 localedir=$ac_optarg ;;
1109
1110 -localstatedir | --localstatedir | --localstatedi | --localstated \
1111 | --localstate | --localstat | --localsta | --localst | --locals)
1112 ac_prev=localstatedir ;;
1113 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115 localstatedir=$ac_optarg ;;
1116
1117 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118 ac_prev=mandir ;;
1119 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120 mandir=$ac_optarg ;;
1121
1122 -nfp | --nfp | --nf)
1123 # Obsolete; use --without-fp.
1124 with_fp=no ;;
1125
1126 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1127 | --no-cr | --no-c | -n)
1128 no_create=yes ;;
1129
1130 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132 no_recursion=yes ;;
1133
1134 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136 | --oldin | --oldi | --old | --ol | --o)
1137 ac_prev=oldincludedir ;;
1138 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1141 oldincludedir=$ac_optarg ;;
1142
1143 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144 ac_prev=prefix ;;
1145 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146 prefix=$ac_optarg ;;
1147
1148 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149 | --program-pre | --program-pr | --program-p)
1150 ac_prev=program_prefix ;;
1151 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1153 program_prefix=$ac_optarg ;;
1154
1155 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156 | --program-suf | --program-su | --program-s)
1157 ac_prev=program_suffix ;;
1158 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1160 program_suffix=$ac_optarg ;;
1161
1162 -program-transform-name | --program-transform-name \
1163 | --program-transform-nam | --program-transform-na \
1164 | --program-transform-n | --program-transform- \
1165 | --program-transform | --program-transfor \
1166 | --program-transfo | --program-transf \
1167 | --program-trans | --program-tran \
1168 | --progr-tra | --program-tr | --program-t)
1169 ac_prev=program_transform_name ;;
1170 -program-transform-name=* | --program-transform-name=* \
1171 | --program-transform-nam=* | --program-transform-na=* \
1172 | --program-transform-n=* | --program-transform-=* \
1173 | --program-transform=* | --program-transfor=* \
1174 | --program-transfo=* | --program-transf=* \
1175 | --program-trans=* | --program-tran=* \
1176 | --progr-tra=* | --program-tr=* | --program-t=*)
1177 program_transform_name=$ac_optarg ;;
1178
1179 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180 ac_prev=pdfdir ;;
1181 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182 pdfdir=$ac_optarg ;;
1183
1184 -psdir | --psdir | --psdi | --psd | --ps)
1185 ac_prev=psdir ;;
1186 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187 psdir=$ac_optarg ;;
1188
1189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190 | -silent | --silent | --silen | --sile | --sil)
1191 silent=yes ;;
1192
1193 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194 ac_prev=sbindir ;;
1195 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196 | --sbi=* | --sb=*)
1197 sbindir=$ac_optarg ;;
1198
1199 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1200 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1201 | --sharedst | --shareds | --shared | --share | --shar \
1202 | --sha | --sh)
1203 ac_prev=sharedstatedir ;;
1204 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1205 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1206 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1207 | --sha=* | --sh=*)
1208 sharedstatedir=$ac_optarg ;;
1209
1210 -site | --site | --sit)
1211 ac_prev=site ;;
1212 -site=* | --site=* | --sit=*)
1213 site=$ac_optarg ;;
1214
1215 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216 ac_prev=srcdir ;;
1217 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1218 srcdir=$ac_optarg ;;
1219
1220 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1221 | --syscon | --sysco | --sysc | --sys | --sy)
1222 ac_prev=sysconfdir ;;
1223 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1224 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1225 sysconfdir=$ac_optarg ;;
1226
1227 -target | --target | --targe | --targ | --tar | --ta | --t)
1228 ac_prev=target_alias ;;
1229 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1230 target_alias=$ac_optarg ;;
1231
1232 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233 verbose=yes ;;
1234
1235 -version | --version | --versio | --versi | --vers | -V)
1236 ac_init_version=: ;;
1237
1238 -with-* | --with-*)
1239 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242 as_fn_error $? "invalid package name: $ac_useropt"
1243 ac_useropt_orig=$ac_useropt
1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1246 *"
1247 "with_$ac_useropt"
1248 "*) ;;
1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1251 esac
1252 eval with_$ac_useropt=\$ac_optarg ;;
1253
1254 -without-* | --without-*)
1255 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258 as_fn_error $? "invalid package name: $ac_useropt"
1259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1262 *"
1263 "with_$ac_useropt"
1264 "*) ;;
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1267 esac
1268 eval with_$ac_useropt=no ;;
1269
1270 --x)
1271 # Obsolete; use --with-x.
1272 with_x=yes ;;
1273
1274 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1275 | --x-incl | --x-inc | --x-in | --x-i)
1276 ac_prev=x_includes ;;
1277 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1278 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1279 x_includes=$ac_optarg ;;
1280
1281 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1282 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1283 ac_prev=x_libraries ;;
1284 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1285 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1286 x_libraries=$ac_optarg ;;
1287
1288 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1289 Try \`$0 --help' for more information"
1290 ;;
1291
1292 *=*)
1293 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1294 # Reject names that are not valid shell variable names.
1295 case $ac_envvar in #(
1296 '' | [0-9]* | *[!_$as_cr_alnum]* )
1297 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1298 esac
1299 eval $ac_envvar=\$ac_optarg
1300 export $ac_envvar ;;
1301
1302 *)
1303 # FIXME: should be removed in autoconf 3.0.
1304 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1305 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1306 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1307 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1308 ;;
1309
1310 esac
1311 done
1312
1313 if test -n "$ac_prev"; then
1314 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1315 as_fn_error $? "missing argument to $ac_option"
1316 fi
1317
1318 if test -n "$ac_unrecognized_opts"; then
1319 case $enable_option_checking in
1320 no) ;;
1321 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1322 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1323 esac
1324 fi
1325
1326 # Check all directory arguments for consistency.
1327 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1328 datadir sysconfdir sharedstatedir localstatedir includedir \
1329 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1330 libdir localedir mandir
1331 do
1332 eval ac_val=\$$ac_var
1333 # Remove trailing slashes.
1334 case $ac_val in
1335 */ )
1336 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1337 eval $ac_var=\$ac_val;;
1338 esac
1339 # Be sure to have absolute directory names.
1340 case $ac_val in
1341 [\\/$]* | ?:[\\/]* ) continue;;
1342 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1343 esac
1344 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1345 done
1346
1347 # There might be people who depend on the old broken behavior: `$host'
1348 # used to hold the argument of --host etc.
1349 # FIXME: To remove some day.
1350 build=$build_alias
1351 host=$host_alias
1352 target=$target_alias
1353
1354 # FIXME: To remove some day.
1355 if test "x$host_alias" != x; then
1356 if test "x$build_alias" = x; then
1357 cross_compiling=maybe
1358 elif test "x$build_alias" != "x$host_alias"; then
1359 cross_compiling=yes
1360 fi
1361 fi
1362
1363 ac_tool_prefix=
1364 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1365
1366 test "$silent" = yes && exec 6>/dev/null
1367
1368
1369 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370 ac_ls_di=`ls -di .` &&
1371 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1372 as_fn_error $? "working directory cannot be determined"
1373 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1374 as_fn_error $? "pwd does not report name of working directory"
1375
1376
1377 # Find the source files, if location was not specified.
1378 if test -z "$srcdir"; then
1379 ac_srcdir_defaulted=yes
1380 # Try the directory containing this script, then the parent directory.
1381 ac_confdir=`$as_dirname -- "$as_myself" ||
1382 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383 X"$as_myself" : 'X\(//\)[^/]' \| \
1384 X"$as_myself" : 'X\(//\)$' \| \
1385 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1386 $as_echo X"$as_myself" |
1387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\/\)[^/].*/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\/\)$/{
1396 s//\1/
1397 q
1398 }
1399 /^X\(\/\).*/{
1400 s//\1/
1401 q
1402 }
1403 s/.*/./; q'`
1404 srcdir=$ac_confdir
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406 srcdir=..
1407 fi
1408 else
1409 ac_srcdir_defaulted=no
1410 fi
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1412 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1414 fi
1415 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1416 ac_abs_confdir=`(
1417 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1418 pwd)`
1419 # When building in place, set srcdir=.
1420 if test "$ac_abs_confdir" = "$ac_pwd"; then
1421 srcdir=.
1422 fi
1423 # Remove unnecessary trailing slashes from srcdir.
1424 # Double slashes in file names in object file debugging info
1425 # mess up M-x gdb in Emacs.
1426 case $srcdir in
1427 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428 esac
1429 for ac_var in $ac_precious_vars; do
1430 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1431 eval ac_env_${ac_var}_value=\$${ac_var}
1432 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1433 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1434 done
1435
1436 #
1437 # Report the --help message.
1438 #
1439 if test "$ac_init_help" = "long"; then
1440 # Omit some internal or obsolete options to make the list less imposing.
1441 # This message is too long to be a string in the A/UX 3.1 sh.
1442 cat <<_ACEOF
•1443 \`configure' configures ld 2.44 to adapt to many kinds of systems.
1444
1445 Usage: $0 [OPTION]... [VAR=VALUE]...
1446
1447 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1448 VAR=VALUE. See below for descriptions of some of the useful variables.
1449
1450 Defaults for the options are specified in brackets.
1451
1452 Configuration:
1453 -h, --help display this help and exit
1454 --help=short display options specific to this package
1455 --help=recursive display the short help of all the included packages
1456 -V, --version display version information and exit
1457 -q, --quiet, --silent do not print \`checking ...' messages
1458 --cache-file=FILE cache test results in FILE [disabled]
1459 -C, --config-cache alias for \`--cache-file=config.cache'
1460 -n, --no-create do not create output files
1461 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1462
1463 Installation directories:
1464 --prefix=PREFIX install architecture-independent files in PREFIX
1465 [$ac_default_prefix]
1466 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1467 [PREFIX]
1468
1469 By default, \`make install' will install all the files in
1470 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1471 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1472 for instance \`--prefix=\$HOME'.
1473
1474 For better control, use the options below.
1475
1476 Fine tuning of the installation directories:
1477 --bindir=DIR user executables [EPREFIX/bin]
1478 --sbindir=DIR system admin executables [EPREFIX/sbin]
1479 --libexecdir=DIR program executables [EPREFIX/libexec]
1480 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1481 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1482 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1483 --libdir=DIR object code libraries [EPREFIX/lib]
1484 --includedir=DIR C header files [PREFIX/include]
1485 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1486 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1487 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1488 --infodir=DIR info documentation [DATAROOTDIR/info]
1489 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1490 --mandir=DIR man documentation [DATAROOTDIR/man]
1491 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
1492 --htmldir=DIR html documentation [DOCDIR]
1493 --dvidir=DIR dvi documentation [DOCDIR]
1494 --pdfdir=DIR pdf documentation [DOCDIR]
1495 --psdir=DIR ps documentation [DOCDIR]
1496 _ACEOF
1497
1498 cat <<\_ACEOF
1499
1500 Program names:
1501 --program-prefix=PREFIX prepend PREFIX to installed program names
1502 --program-suffix=SUFFIX append SUFFIX to installed program names
1503 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1504
1505 System types:
1506 --build=BUILD configure for building on BUILD [guessed]
1507 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1508 --target=TARGET configure for building compilers for TARGET [HOST]
1509 _ACEOF
1510 fi
1511
1512 if test -n "$ac_init_help"; then
1513 case $ac_init_help in
•1514 short | recursive ) echo "Configuration of ld 2.44:";;
1515 esac
1516 cat <<\_ACEOF
1517
1518 Optional Features:
1519 --disable-option-checking ignore unrecognized --enable/--with options
1520 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1521 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1522 --enable-silent-rules less verbose build output (undo: "make V=1")
1523 --disable-silent-rules verbose build output (undo: "make V=0")
1524 --enable-maintainer-mode
1525 enable make rules and dependencies not useful (and
1526 sometimes confusing) to the casual installer
1527 --enable-dependency-tracking
1528 do not reject slow dependency extractors
1529 --disable-dependency-tracking
1530 speeds up one-time build
1531 --enable-shared[=PKGS] build shared libraries [default=yes]
1532 --enable-static[=PKGS] build static libraries [default=yes]
1533 --enable-fast-install[=PKGS]
1534 optimize for fast installation [default=yes]
1535 --disable-libtool-lock avoid locking (might break parallel builds)
1536 --enable-plugins Enable support for plugins
1537 --disable-largefile omit support for large files
1538 --enable-checking enable run-time checks
1539 --enable-targets alternative target configurations
1540 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1541 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1542 --enable-got=<type> GOT handling scheme (target, single, negative,
1543 multigot)
1544 --enable-compressed-debug-sections={all,ld,none}
1545 compress debug sections by default]
1546 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1547 Default compression algorithm for
1548 --enable-compressed-debug-sections.
1549 --enable-new-dtags set DT_RUNPATH instead of DT_RPATH by default]
1550 --enable-relro enable -z relro in ELF linker by default
1551 --enable-textrel-check=[yes|no|warning|error]
1552 enable DT_TEXTREL check in ELF linker
1553 --enable-separate-code enable -z separate-code in ELF linker by default
1554 --enable-rosegment enable --rosegment in the ELF linker by default
1555 --enable-mark-plt enable -z mark-plt in ELF x86-64 linker by default
1556 --enable-memory-seal enable -z memory-seal in ELF linker by default
1557 --enable-warn-execstack enable warnings when creating an executable stack
1558 --enable-error-execstack
1559 turn executable stack warnings into errors
1560 --enable-warn-rwx-segments
1561 enable warnings when creating segments with RWX
1562 permissions
1563 --enable-error-rwx-segments
1564 turn executable segment warnings into errors
1565 --enable-default-execstack
1566 create an executable stack if an input file is
1567 missing a .note.GNU-stack section
1568 --enable-error-handling-script
1569 enable/disable support for the
1570 --error-handling-script option
1571 --enable-default-hash-style={sysv,gnu,both}
1572 use this default hash style
1573 --disable-initfini-array do not use .init_array/.fini_array sections
1574 --enable-libctf Handle .ctf type-info sections [default=yes]
1575 --enable-jansson enable jansson [default=no]
1576 --enable-werror treat compile warnings as errors
1577 --enable-build-warnings enable build-time compiler warnings
1578 --disable-nls do not use Native Language Support
1579 --disable-rpath do not hardcode runtime library paths
1580
1581 Optional Packages:
1582 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1583 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1584 --with-pic try to use only PIC/non-PIC objects [default=use
1585 both]
1586 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1587 --with-lib-path=dir1:dir2... set default LIB_PATH
1588 --with-sysroot=DIR Search for usr/lib et al within DIR.
1589 --with-gnu-ld assume the C compiler uses GNU ld default=no
1590 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1591 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1592 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1593 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1594 --without-libintl-prefix don't search for libintl in includedir and libdir
1595 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1596 --with-xxhash use inlined libxxhash for hashing (faster)
1597 (auto/yes/no)
1598 --with-system-zlib use installed libz
1599 --with-zstd support zstd compressed debug sections
1600 (default=auto)
1601
1602 Some influential environment variables:
1603 CC C compiler command
1604 CFLAGS C compiler flags
1605 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1606 nonstandard directory <lib dir>
1607 LIBS libraries to pass to the linker, e.g. -l<library>
1608 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1609 you have headers in a nonstandard directory <include dir>
1610 CXX C++ compiler command
1611 CXXFLAGS C++ compiler flags
1612 CPP C preprocessor
1613 PKG_CONFIG path to pkg-config utility
1614 PKG_CONFIG_PATH
1615 directories to add to pkg-config's search path
1616 PKG_CONFIG_LIBDIR
1617 path overriding pkg-config's built-in search path
1618 CXXCPP C++ preprocessor
1619 JANSSON_CFLAGS
1620 C compiler flags for JANSSON, overriding pkg-config
1621 JANSSON_LIBS
1622 linker flags for JANSSON, overriding pkg-config
1623 YACC The `Yet Another Compiler Compiler' implementation to use.
1624 Defaults to the first program found out of: `bison -y', `byacc',
1625 `yacc'.
1626 YFLAGS The list of arguments that will be passed by default to $YACC.
1627 This script will default YFLAGS to the empty string to avoid a
1628 default value of `-d' given by some make applications.
1629 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1630 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1631
1632 Use these variables to override the choices made by `configure' or to help
1633 it to find libraries and programs with nonstandard names/locations.
1634
1635 Report bugs to the package provider.
1636 _ACEOF
1637 ac_status=$?
1638 fi
1639
1640 if test "$ac_init_help" = "recursive"; then
1641 # If there are subdirs, report their specific --help.
1642 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1643 test -d "$ac_dir" ||
1644 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1645 continue
1646 ac_builddir=.
1647
1648 case "$ac_dir" in
1649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 *)
1651 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1652 # A ".." for each directory in $ac_dir_suffix.
1653 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1654 case $ac_top_builddir_sub in
1655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1657 esac ;;
1658 esac
1659 ac_abs_top_builddir=$ac_pwd
1660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661 # for backward compatibility:
1662 ac_top_builddir=$ac_top_build_prefix
1663
1664 case $srcdir in
1665 .) # We are building in place.
1666 ac_srcdir=.
1667 ac_top_srcdir=$ac_top_builddir_sub
1668 ac_abs_top_srcdir=$ac_pwd ;;
1669 [\\/]* | ?:[\\/]* ) # Absolute name.
1670 ac_srcdir=$srcdir$ac_dir_suffix;
1671 ac_top_srcdir=$srcdir
1672 ac_abs_top_srcdir=$srcdir ;;
1673 *) # Relative name.
1674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675 ac_top_srcdir=$ac_top_build_prefix$srcdir
1676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1677 esac
1678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1679
1680 cd "$ac_dir" || { ac_status=$?; continue; }
1681 # Check for guested configure.
1682 if test -f "$ac_srcdir/configure.gnu"; then
1683 echo &&
1684 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685 elif test -f "$ac_srcdir/configure"; then
1686 echo &&
1687 $SHELL "$ac_srcdir/configure" --help=recursive
1688 else
1689 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1690 fi || ac_status=$?
1691 cd "$ac_pwd" || { ac_status=$?; break; }
1692 done
1693 fi
1694
1695 test -n "$ac_init_help" && exit $ac_status
1696 if $ac_init_version; then
1697 cat <<\_ACEOF
•1698 ld configure 2.44
1699 generated by GNU Autoconf 2.69
1700
1701 Copyright (C) 2012 Free Software Foundation, Inc.
1702 This configure script is free software; the Free Software Foundation
1703 gives unlimited permission to copy, distribute and modify it.
1704 _ACEOF
1705 exit
1706 fi
1707
1708 ## ------------------------ ##
1709 ## Autoconf initialization. ##
1710 ## ------------------------ ##
1711
1712 # ac_fn_c_try_compile LINENO
1713 # --------------------------
1714 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_try_compile ()
1716 {
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext
1719 if { { ac_try="$ac_compile"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_compile") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1732 fi
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest.$ac_objext; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=1
1744 fi
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 as_fn_set_status $ac_retval
1747
1748 } # ac_fn_c_try_compile
1749
1750 # ac_fn_cxx_try_compile LINENO
1751 # ----------------------------
1752 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1753 ac_fn_cxx_try_compile ()
1754 {
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 rm -f conftest.$ac_objext
1757 if { { ac_try="$ac_compile"
1758 case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_compile") 2>conftest.err
1765 ac_status=$?
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1770 fi
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && {
1773 test -z "$ac_cxx_werror_flag" ||
1774 test ! -s conftest.err
1775 } && test -s conftest.$ac_objext; then :
1776 ac_retval=0
1777 else
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1780
1781 ac_retval=1
1782 fi
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status $ac_retval
1785
1786 } # ac_fn_cxx_try_compile
1787
1788 # ac_fn_c_try_cpp LINENO
1789 # ----------------------
1790 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1791 ac_fn_c_try_cpp ()
1792 {
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 if { { ac_try="$ac_cpp conftest.$ac_ext"
1795 case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1802 ac_status=$?
1803 if test -s conftest.err; then
1804 grep -v '^ *+' conftest.err >conftest.er1
1805 cat conftest.er1 >&5
1806 mv -f conftest.er1 conftest.err
1807 fi
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } > conftest.i && {
1810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1811 test ! -s conftest.err
1812 }; then :
1813 ac_retval=0
1814 else
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1817
1818 ac_retval=1
1819 fi
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 as_fn_set_status $ac_retval
1822
1823 } # ac_fn_c_try_cpp
1824
1825 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1826 # -------------------------------------------------------
1827 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1828 # the include files in INCLUDES and setting the cache variable VAR
1829 # accordingly.
1830 ac_fn_c_check_header_mongrel ()
1831 {
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 if eval \${$3+:} false; then :
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if eval \${$3+:} false; then :
1837 $as_echo_n "(cached) " >&6
1838 fi
1839 eval ac_res=\$$3
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 else
1843 # Is the header compilable?
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1845 $as_echo_n "checking $2 usability... " >&6; }
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1848 $4
1849 #include <$2>
1850 _ACEOF
1851 if ac_fn_c_try_compile "$LINENO"; then :
1852 ac_header_compiler=yes
1853 else
1854 ac_header_compiler=no
1855 fi
1856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1858 $as_echo "$ac_header_compiler" >&6; }
1859
1860 # Is the header present?
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1862 $as_echo_n "checking $2 presence... " >&6; }
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1865 #include <$2>
1866 _ACEOF
1867 if ac_fn_c_try_cpp "$LINENO"; then :
1868 ac_header_preproc=yes
1869 else
1870 ac_header_preproc=no
1871 fi
1872 rm -f conftest.err conftest.i conftest.$ac_ext
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1874 $as_echo "$ac_header_preproc" >&6; }
1875
1876 # So? What about this header?
1877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1878 yes:no: )
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1880 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1882 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1883 ;;
1884 no:yes:* )
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1886 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1888 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1890 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1892 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1894 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1895 ;;
1896 esac
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if eval \${$3+:} false; then :
1900 $as_echo_n "(cached) " >&6
1901 else
1902 eval "$3=\$ac_header_compiler"
1903 fi
1904 eval ac_res=\$$3
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1907 fi
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909
1910 } # ac_fn_c_check_header_mongrel
1911
1912 # ac_fn_c_try_run LINENO
1913 # ----------------------
1914 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1915 # that executables *can* be run.
1916 ac_fn_c_try_run ()
1917 {
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 if { { ac_try="$ac_link"
1920 case "(($ac_try" in
1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922 *) ac_try_echo=$ac_try;;
1923 esac
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 $as_echo "$ac_try_echo"; } >&5
1926 (eval "$ac_link") 2>&5
1927 ac_status=$?
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1930 { { case "(($ac_try" in
1931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932 *) ac_try_echo=$ac_try;;
1933 esac
1934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 $as_echo "$ac_try_echo"; } >&5
1936 (eval "$ac_try") 2>&5
1937 ac_status=$?
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; }; }; then :
1940 ac_retval=0
1941 else
1942 $as_echo "$as_me: program exited with status $ac_status" >&5
1943 $as_echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1945
1946 ac_retval=$ac_status
1947 fi
1948 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950 as_fn_set_status $ac_retval
1951
1952 } # ac_fn_c_try_run
1953
1954 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1955 # -------------------------------------------------------
1956 # Tests whether HEADER exists and can be compiled using the include files in
1957 # INCLUDES, setting the cache variable VAR accordingly.
1958 ac_fn_c_check_header_compile ()
1959 {
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if eval \${$3+:} false; then :
1964 $as_echo_n "(cached) " >&6
1965 else
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1968 $4
1969 #include <$2>
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 eval "$3=yes"
1973 else
1974 eval "$3=no"
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 fi
1978 eval ac_res=\$$3
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982
1983 } # ac_fn_c_check_header_compile
1984
1985 # ac_fn_c_try_link LINENO
1986 # -----------------------
1987 # Try to link conftest.$ac_ext, and return whether this succeeded.
1988 ac_fn_c_try_link ()
1989 {
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 rm -f conftest.$ac_objext conftest$ac_exeext
1992 if { { ac_try="$ac_link"
1993 case "(($ac_try" in
1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995 *) ac_try_echo=$ac_try;;
1996 esac
1997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998 $as_echo "$ac_try_echo"; } >&5
1999 (eval "$ac_link") 2>conftest.err
2000 ac_status=$?
2001 if test -s conftest.err; then
2002 grep -v '^ *+' conftest.err >conftest.er1
2003 cat conftest.er1 >&5
2004 mv -f conftest.er1 conftest.err
2005 fi
2006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007 test $ac_status = 0; } && {
2008 test -z "$ac_c_werror_flag" ||
2009 test ! -s conftest.err
2010 } && test -s conftest$ac_exeext && {
2011 test "$cross_compiling" = yes ||
2012 test -x conftest$ac_exeext
2013 }; then :
2014 ac_retval=0
2015 else
2016 $as_echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2018
2019 ac_retval=1
2020 fi
2021 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2022 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2023 # interfere with the next link command; also delete a directory that is
2024 # left behind by Apple's compiler. We do this before executing the actions.
2025 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027 as_fn_set_status $ac_retval
2028
2029 } # ac_fn_c_try_link
2030
2031 # ac_fn_c_check_func LINENO FUNC VAR
2032 # ----------------------------------
2033 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2034 ac_fn_c_check_func ()
2035 {
2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2038 $as_echo_n "checking for $2... " >&6; }
2039 if eval \${$3+:} false; then :
2040 $as_echo_n "(cached) " >&6
2041 else
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2044 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2046 #define $2 innocuous_$2
2047
2048 /* System header to define __stub macros and hopefully few prototypes,
2049 which can conflict with char $2 (); below.
2050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2051 <limits.h> exists even on freestanding compilers. */
2052
2053 #ifdef __STDC__
2054 # include <limits.h>
2055 #else
2056 # include <assert.h>
2057 #endif
2058
2059 #undef $2
2060
2061 /* Override any GCC internal prototype to avoid an error.
2062 Use char because int might match the return type of a GCC
2063 builtin and then its argument prototype would still apply. */
2064 #ifdef __cplusplus
2065 extern "C"
2066 #endif
2067 char $2 ();
2068 /* The GNU C library defines this for functions which it implements
2069 to always fail with ENOSYS. Some functions are actually named
2070 something starting with __ and the normal name is an alias. */
2071 #if defined __stub_$2 || defined __stub___$2
2072 choke me
2073 #endif
2074
2075 int
2076 main ()
2077 {
2078 return $2 ();
2079 ;
2080 return 0;
2081 }
2082 _ACEOF
2083 if ac_fn_c_try_link "$LINENO"; then :
2084 eval "$3=yes"
2085 else
2086 eval "$3=no"
2087 fi
2088 rm -f core conftest.err conftest.$ac_objext \
2089 conftest$ac_exeext conftest.$ac_ext
2090 fi
2091 eval ac_res=\$$3
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2093 $as_echo "$ac_res" >&6; }
2094 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095
2096 } # ac_fn_c_check_func
2097
2098 # ac_fn_cxx_try_cpp LINENO
2099 # ------------------------
2100 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2101 ac_fn_cxx_try_cpp ()
2102 {
2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104 if { { ac_try="$ac_cpp conftest.$ac_ext"
2105 case "(($ac_try" in
2106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2107 *) ac_try_echo=$ac_try;;
2108 esac
2109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2110 $as_echo "$ac_try_echo"; } >&5
2111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2112 ac_status=$?
2113 if test -s conftest.err; then
2114 grep -v '^ *+' conftest.err >conftest.er1
2115 cat conftest.er1 >&5
2116 mv -f conftest.er1 conftest.err
2117 fi
2118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2119 test $ac_status = 0; } > conftest.i && {
2120 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2121 test ! -s conftest.err
2122 }; then :
2123 ac_retval=0
2124 else
2125 $as_echo "$as_me: failed program was:" >&5
2126 sed 's/^/| /' conftest.$ac_ext >&5
2127
2128 ac_retval=1
2129 fi
2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131 as_fn_set_status $ac_retval
2132
2133 } # ac_fn_cxx_try_cpp
2134
2135 # ac_fn_cxx_try_link LINENO
2136 # -------------------------
2137 # Try to link conftest.$ac_ext, and return whether this succeeded.
2138 ac_fn_cxx_try_link ()
2139 {
2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141 rm -f conftest.$ac_objext conftest$ac_exeext
2142 if { { ac_try="$ac_link"
2143 case "(($ac_try" in
2144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145 *) ac_try_echo=$ac_try;;
2146 esac
2147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2148 $as_echo "$ac_try_echo"; } >&5
2149 (eval "$ac_link") 2>conftest.err
2150 ac_status=$?
2151 if test -s conftest.err; then
2152 grep -v '^ *+' conftest.err >conftest.er1
2153 cat conftest.er1 >&5
2154 mv -f conftest.er1 conftest.err
2155 fi
2156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2157 test $ac_status = 0; } && {
2158 test -z "$ac_cxx_werror_flag" ||
2159 test ! -s conftest.err
2160 } && test -s conftest$ac_exeext && {
2161 test "$cross_compiling" = yes ||
2162 test -x conftest$ac_exeext
2163 }; then :
2164 ac_retval=0
2165 else
2166 $as_echo "$as_me: failed program was:" >&5
2167 sed 's/^/| /' conftest.$ac_ext >&5
2168
2169 ac_retval=1
2170 fi
2171 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2172 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2173 # interfere with the next link command; also delete a directory that is
2174 # left behind by Apple's compiler. We do this before executing the actions.
2175 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2176 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177 as_fn_set_status $ac_retval
2178
2179 } # ac_fn_cxx_try_link
2180
2181 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2182 # --------------------------------------------
2183 # Tries to find the compile-time value of EXPR in a program that includes
2184 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2185 # computed
2186 ac_fn_c_compute_int ()
2187 {
2188 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189 if test "$cross_compiling" = yes; then
2190 # Depending upon the size, compute the lo and hi bounds.
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2193 $4
2194 int
2195 main ()
2196 {
2197 static int test_array [1 - 2 * !(($2) >= 0)];
2198 test_array [0] = 0;
2199 return test_array [0];
2200
2201 ;
2202 return 0;
2203 }
2204 _ACEOF
2205 if ac_fn_c_try_compile "$LINENO"; then :
2206 ac_lo=0 ac_mid=0
2207 while :; do
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2210 $4
2211 int
2212 main ()
2213 {
2214 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2215 test_array [0] = 0;
2216 return test_array [0];
2217
2218 ;
2219 return 0;
2220 }
2221 _ACEOF
2222 if ac_fn_c_try_compile "$LINENO"; then :
2223 ac_hi=$ac_mid; break
2224 else
2225 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2226 if test $ac_lo -le $ac_mid; then
2227 ac_lo= ac_hi=
2228 break
2229 fi
2230 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2231 fi
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2233 done
2234 else
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2237 $4
2238 int
2239 main ()
2240 {
2241 static int test_array [1 - 2 * !(($2) < 0)];
2242 test_array [0] = 0;
2243 return test_array [0];
2244
2245 ;
2246 return 0;
2247 }
2248 _ACEOF
2249 if ac_fn_c_try_compile "$LINENO"; then :
2250 ac_hi=-1 ac_mid=-1
2251 while :; do
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2254 $4
2255 int
2256 main ()
2257 {
2258 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2259 test_array [0] = 0;
2260 return test_array [0];
2261
2262 ;
2263 return 0;
2264 }
2265 _ACEOF
2266 if ac_fn_c_try_compile "$LINENO"; then :
2267 ac_lo=$ac_mid; break
2268 else
2269 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2270 if test $ac_mid -le $ac_hi; then
2271 ac_lo= ac_hi=
2272 break
2273 fi
2274 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2275 fi
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277 done
2278 else
2279 ac_lo= ac_hi=
2280 fi
2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 fi
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 # Binary search between lo and hi bounds.
2285 while test "x$ac_lo" != "x$ac_hi"; do
2286 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2289 $4
2290 int
2291 main ()
2292 {
2293 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2294 test_array [0] = 0;
2295 return test_array [0];
2296
2297 ;
2298 return 0;
2299 }
2300 _ACEOF
2301 if ac_fn_c_try_compile "$LINENO"; then :
2302 ac_hi=$ac_mid
2303 else
2304 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2305 fi
2306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 done
2308 case $ac_lo in #((
2309 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2310 '') ac_retval=1 ;;
2311 esac
2312 else
2313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h. */
2315 $4
2316 static long int longval () { return $2; }
2317 static unsigned long int ulongval () { return $2; }
2318 #include <stdio.h>
2319 #include <stdlib.h>
2320 int
2321 main ()
2322 {
2323
2324 FILE *f = fopen ("conftest.val", "w");
2325 if (! f)
2326 return 1;
2327 if (($2) < 0)
2328 {
2329 long int i = longval ();
2330 if (i != ($2))
2331 return 1;
2332 fprintf (f, "%ld", i);
2333 }
2334 else
2335 {
2336 unsigned long int i = ulongval ();
2337 if (i != ($2))
2338 return 1;
2339 fprintf (f, "%lu", i);
2340 }
2341 /* Do not output a trailing newline, as this causes \r\n confusion
2342 on some platforms. */
2343 return ferror (f) || fclose (f) != 0;
2344
2345 ;
2346 return 0;
2347 }
2348 _ACEOF
2349 if ac_fn_c_try_run "$LINENO"; then :
2350 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2351 else
2352 ac_retval=1
2353 fi
2354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2355 conftest.$ac_objext conftest.beam conftest.$ac_ext
2356 rm -f conftest.val
2357
2358 fi
2359 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2360 as_fn_set_status $ac_retval
2361
2362 } # ac_fn_c_compute_int
2363
2364 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2365 # ---------------------------------------------
2366 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2367 # accordingly.
2368 ac_fn_c_check_decl ()
2369 {
2370 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2371 as_decl_name=`echo $2|sed 's/ *(.*//'`
2372 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2374 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2375 if eval \${$3+:} false; then :
2376 $as_echo_n "(cached) " >&6
2377 else
2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379 /* end confdefs.h. */
2380 $4
2381 int
2382 main ()
2383 {
2384 #ifndef $as_decl_name
2385 #ifdef __cplusplus
2386 (void) $as_decl_use;
2387 #else
2388 (void) $as_decl_name;
2389 #endif
2390 #endif
2391
2392 ;
2393 return 0;
2394 }
2395 _ACEOF
2396 if ac_fn_c_try_compile "$LINENO"; then :
2397 eval "$3=yes"
2398 else
2399 eval "$3=no"
2400 fi
2401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402 fi
2403 eval ac_res=\$$3
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2405 $as_echo "$ac_res" >&6; }
2406 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2407
2408 } # ac_fn_c_check_decl
2409 cat >config.log <<_ACEOF
2410 This file contains any messages produced by compilers while
2411 running configure, to aid debugging if configure makes a mistake.
2412
•2413 It was created by ld $as_me 2.44, which was
2414 generated by GNU Autoconf 2.69. Invocation command line was
2415
2416 $ $0 $@
2417
2418 _ACEOF
2419 exec 5>>config.log
2420 {
2421 cat <<_ASUNAME
2422 ## --------- ##
2423 ## Platform. ##
2424 ## --------- ##
2425
2426 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2427 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2428 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2429 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2430 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2431
2432 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2433 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2434
2435 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2436 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2437 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2438 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2439 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2440 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2441 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2442
2443 _ASUNAME
2444
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2447 do
2448 IFS=$as_save_IFS
2449 test -z "$as_dir" && as_dir=.
2450 $as_echo "PATH: $as_dir"
2451 done
2452 IFS=$as_save_IFS
2453
2454 } >&5
2455
2456 cat >&5 <<_ACEOF
2457
2458
2459 ## ----------- ##
2460 ## Core tests. ##
2461 ## ----------- ##
2462
2463 _ACEOF
2464
2465
2466 # Keep a trace of the command line.
2467 # Strip out --no-create and --no-recursion so they do not pile up.
2468 # Strip out --silent because we don't want to record it for future runs.
2469 # Also quote any args containing shell meta-characters.
2470 # Make two passes to allow for proper duplicate-argument suppression.
2471 ac_configure_args=
2472 ac_configure_args0=
2473 ac_configure_args1=
2474 ac_must_keep_next=false
2475 for ac_pass in 1 2
2476 do
2477 for ac_arg
2478 do
2479 case $ac_arg in
2480 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2481 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2482 | -silent | --silent | --silen | --sile | --sil)
2483 continue ;;
2484 *\'*)
2485 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2486 esac
2487 case $ac_pass in
2488 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2489 2)
2490 as_fn_append ac_configure_args1 " '$ac_arg'"
2491 if test $ac_must_keep_next = true; then
2492 ac_must_keep_next=false # Got value, back to normal.
2493 else
2494 case $ac_arg in
2495 *=* | --config-cache | -C | -disable-* | --disable-* \
2496 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2497 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2498 | -with-* | --with-* | -without-* | --without-* | --x)
2499 case "$ac_configure_args0 " in
2500 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2501 esac
2502 ;;
2503 -* ) ac_must_keep_next=true ;;
2504 esac
2505 fi
2506 as_fn_append ac_configure_args " '$ac_arg'"
2507 ;;
2508 esac
2509 done
2510 done
2511 { ac_configure_args0=; unset ac_configure_args0;}
2512 { ac_configure_args1=; unset ac_configure_args1;}
2513
2514 # When interrupted or exit'd, cleanup temporary files, and complete
2515 # config.log. We remove comments because anyway the quotes in there
2516 # would cause problems or look ugly.
2517 # WARNING: Use '\'' to represent an apostrophe within the trap.
2518 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2519 trap 'exit_status=$?
2520 # Save into config.log some information that might help in debugging.
2521 {
2522 echo
2523
2524 $as_echo "## ---------------- ##
2525 ## Cache variables. ##
2526 ## ---------------- ##"
2527 echo
2528 # The following way of writing the cache mishandles newlines in values,
2529 (
2530 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2531 eval ac_val=\$$ac_var
2532 case $ac_val in #(
2533 *${as_nl}*)
2534 case $ac_var in #(
2535 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2536 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2537 esac
2538 case $ac_var in #(
2539 _ | IFS | as_nl) ;; #(
2540 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2541 *) { eval $ac_var=; unset $ac_var;} ;;
2542 esac ;;
2543 esac
2544 done
2545 (set) 2>&1 |
2546 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2547 *${as_nl}ac_space=\ *)
2548 sed -n \
2549 "s/'\''/'\''\\\\'\'''\''/g;
2550 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2551 ;; #(
2552 *)
2553 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2554 ;;
2555 esac |
2556 sort
2557 )
2558 echo
2559
2560 $as_echo "## ----------------- ##
2561 ## Output variables. ##
2562 ## ----------------- ##"
2563 echo
2564 for ac_var in $ac_subst_vars
2565 do
2566 eval ac_val=\$$ac_var
2567 case $ac_val in
2568 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2569 esac
2570 $as_echo "$ac_var='\''$ac_val'\''"
2571 done | sort
2572 echo
2573
2574 if test -n "$ac_subst_files"; then
2575 $as_echo "## ------------------- ##
2576 ## File substitutions. ##
2577 ## ------------------- ##"
2578 echo
2579 for ac_var in $ac_subst_files
2580 do
2581 eval ac_val=\$$ac_var
2582 case $ac_val in
2583 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2584 esac
2585 $as_echo "$ac_var='\''$ac_val'\''"
2586 done | sort
2587 echo
2588 fi
2589
2590 if test -s confdefs.h; then
2591 $as_echo "## ----------- ##
2592 ## confdefs.h. ##
2593 ## ----------- ##"
2594 echo
2595 cat confdefs.h
2596 echo
2597 fi
2598 test "$ac_signal" != 0 &&
2599 $as_echo "$as_me: caught signal $ac_signal"
2600 $as_echo "$as_me: exit $exit_status"
2601 } >&5
2602 rm -f core *.core core.conftest.* &&
2603 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2604 exit $exit_status
2605 ' 0
2606 for ac_signal in 1 2 13 15; do
2607 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2608 done
2609 ac_signal=0
2610
2611 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2612 rm -f -r conftest* confdefs.h
2613
2614 $as_echo "/* confdefs.h */" > confdefs.h
2615
2616 # Predefined preprocessor variables.
2617
2618 cat >>confdefs.h <<_ACEOF
2619 #define PACKAGE_NAME "$PACKAGE_NAME"
2620 _ACEOF
2621
2622 cat >>confdefs.h <<_ACEOF
2623 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2624 _ACEOF
2625
2626 cat >>confdefs.h <<_ACEOF
2627 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2628 _ACEOF
2629
2630 cat >>confdefs.h <<_ACEOF
2631 #define PACKAGE_STRING "$PACKAGE_STRING"
2632 _ACEOF
2633
2634 cat >>confdefs.h <<_ACEOF
2635 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2636 _ACEOF
2637
2638 cat >>confdefs.h <<_ACEOF
2639 #define PACKAGE_URL "$PACKAGE_URL"
2640 _ACEOF
2641
2642
2643 # Let the site file select an alternate cache file if it wants to.
2644 # Prefer an explicitly selected file to automatically selected ones.
2645 ac_site_file1=NONE
2646 ac_site_file2=NONE
2647 if test -n "$CONFIG_SITE"; then
2648 # We do not want a PATH search for config.site.
2649 case $CONFIG_SITE in #((
2650 -*) ac_site_file1=./$CONFIG_SITE;;
2651 */*) ac_site_file1=$CONFIG_SITE;;
2652 *) ac_site_file1=./$CONFIG_SITE;;
2653 esac
2654 elif test "x$prefix" != xNONE; then
2655 ac_site_file1=$prefix/share/config.site
2656 ac_site_file2=$prefix/etc/config.site
2657 else
2658 ac_site_file1=$ac_default_prefix/share/config.site
2659 ac_site_file2=$ac_default_prefix/etc/config.site
2660 fi
2661 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2662 do
2663 test "x$ac_site_file" = xNONE && continue
2664 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2666 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2667 sed 's/^/| /' "$ac_site_file" >&5
2668 . "$ac_site_file" \
2669 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2671 as_fn_error $? "failed to load site script $ac_site_file
2672 See \`config.log' for more details" "$LINENO" 5; }
2673 fi
2674 done
2675
2676 if test -r "$cache_file"; then
2677 # Some versions of bash will fail to source /dev/null (special files
2678 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2679 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2681 $as_echo "$as_me: loading cache $cache_file" >&6;}
2682 case $cache_file in
2683 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2684 *) . "./$cache_file";;
2685 esac
2686 fi
2687 else
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2689 $as_echo "$as_me: creating cache $cache_file" >&6;}
2690 >$cache_file
2691 fi
2692
2693 gt_needs="$gt_needs "
2694 as_fn_append ac_header_list " stdlib.h"
2695 as_fn_append ac_header_list " unistd.h"
2696 as_fn_append ac_header_list " sys/param.h"
2697 # Check that the precious variables saved in the cache have kept the same
2698 # value.
2699 ac_cache_corrupted=false
2700 for ac_var in $ac_precious_vars; do
2701 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2702 eval ac_new_set=\$ac_env_${ac_var}_set
2703 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2704 eval ac_new_val=\$ac_env_${ac_var}_value
2705 case $ac_old_set,$ac_new_set in
2706 set,)
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2708 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2709 ac_cache_corrupted=: ;;
2710 ,set)
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2712 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2713 ac_cache_corrupted=: ;;
2714 ,);;
2715 *)
2716 if test "x$ac_old_val" != "x$ac_new_val"; then
2717 # differences in whitespace do not lead to failure.
2718 ac_old_val_w=`echo x $ac_old_val`
2719 ac_new_val_w=`echo x $ac_new_val`
2720 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2722 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2723 ac_cache_corrupted=:
2724 else
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2726 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2727 eval $ac_var=\$ac_old_val
2728 fi
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2730 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2732 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2733 fi;;
2734 esac
2735 # Pass precious variables to config.status.
2736 if test "$ac_new_set" = set; then
2737 case $ac_new_val in
2738 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2739 *) ac_arg=$ac_var=$ac_new_val ;;
2740 esac
2741 case " $ac_configure_args " in
2742 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2743 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2744 esac
2745 fi
2746 done
2747 if $ac_cache_corrupted; then
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2751 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2752 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2753 fi
2754 ## -------------------- ##
2755 ## Main body of script. ##
2756 ## -------------------- ##
2757
2758 ac_ext=c
2759 ac_cpp='$CPP $CPPFLAGS'
2760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763
2764
2765
2766
2767
2768
2769
2770 ac_aux_dir=
2771 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2772 if test -f "$ac_dir/install-sh"; then
2773 ac_aux_dir=$ac_dir
2774 ac_install_sh="$ac_aux_dir/install-sh -c"
2775 break
2776 elif test -f "$ac_dir/install.sh"; then
2777 ac_aux_dir=$ac_dir
2778 ac_install_sh="$ac_aux_dir/install.sh -c"
2779 break
2780 elif test -f "$ac_dir/shtool"; then
2781 ac_aux_dir=$ac_dir
2782 ac_install_sh="$ac_aux_dir/shtool install -c"
2783 break
2784 fi
2785 done
2786 if test -z "$ac_aux_dir"; then
2787 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2788 fi
2789
2790 # These three variables are undocumented and unsupported,
2791 # and are intended to be withdrawn in a future Autoconf release.
2792 # They can cause serious problems if a builder's source tree is in a directory
2793 # whose full name contains unusual characters.
2794 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2795 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2796 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2797
2798
2799 # Make sure we can run config.sub.
2800 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2801 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2802
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2804 $as_echo_n "checking build system type... " >&6; }
2805 if ${ac_cv_build+:} false; then :
2806 $as_echo_n "(cached) " >&6
2807 else
2808 ac_build_alias=$build_alias
2809 test "x$ac_build_alias" = x &&
2810 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2811 test "x$ac_build_alias" = x &&
2812 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2813 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2814 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2815
2816 fi
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2818 $as_echo "$ac_cv_build" >&6; }
2819 case $ac_cv_build in
2820 *-*-*) ;;
2821 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2822 esac
2823 build=$ac_cv_build
2824 ac_save_IFS=$IFS; IFS='-'
2825 set x $ac_cv_build
2826 shift
2827 build_cpu=$1
2828 build_vendor=$2
2829 shift; shift
2830 # Remember, the first character of IFS is used to create $*,
2831 # except with old shells:
2832 build_os=$*
2833 IFS=$ac_save_IFS
2834 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2835
2836
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2838 $as_echo_n "checking host system type... " >&6; }
2839 if ${ac_cv_host+:} false; then :
2840 $as_echo_n "(cached) " >&6
2841 else
2842 if test "x$host_alias" = x; then
2843 ac_cv_host=$ac_cv_build
2844 else
2845 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2846 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2847 fi
2848
2849 fi
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2851 $as_echo "$ac_cv_host" >&6; }
2852 case $ac_cv_host in
2853 *-*-*) ;;
2854 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2855 esac
2856 host=$ac_cv_host
2857 ac_save_IFS=$IFS; IFS='-'
2858 set x $ac_cv_host
2859 shift
2860 host_cpu=$1
2861 host_vendor=$2
2862 shift; shift
2863 # Remember, the first character of IFS is used to create $*,
2864 # except with old shells:
2865 host_os=$*
2866 IFS=$ac_save_IFS
2867 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2868
2869
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2871 $as_echo_n "checking target system type... " >&6; }
2872 if ${ac_cv_target+:} false; then :
2873 $as_echo_n "(cached) " >&6
2874 else
2875 if test "x$target_alias" = x; then
2876 ac_cv_target=$ac_cv_host
2877 else
2878 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2879 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2880 fi
2881
2882 fi
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2884 $as_echo "$ac_cv_target" >&6; }
2885 case $ac_cv_target in
2886 *-*-*) ;;
2887 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2888 esac
2889 target=$ac_cv_target
2890 ac_save_IFS=$IFS; IFS='-'
2891 set x $ac_cv_target
2892 shift
2893 target_cpu=$1
2894 target_vendor=$2
2895 shift; shift
2896 # Remember, the first character of IFS is used to create $*,
2897 # except with old shells:
2898 target_os=$*
2899 IFS=$ac_save_IFS
2900 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2901
2902
2903 # The aliases save the names the user supplied, while $host etc.
2904 # will get canonicalized.
2905 test -n "$target_alias" &&
2906 test "$program_prefix$program_suffix$program_transform_name" = \
2907 NONENONEs,x,x, &&
2908 program_prefix=${target_alias}-
2909
2910
2911 am__api_version='1.15'
2912
2913 # Find a good install program. We prefer a C program (faster),
2914 # so one script is as good as another. But avoid the broken or
2915 # incompatible versions:
2916 # SysV /etc/install, /usr/sbin/install
2917 # SunOS /usr/etc/install
2918 # IRIX /sbin/install
2919 # AIX /bin/install
2920 # AmigaOS /C/install, which installs bootblocks on floppy discs
2921 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2922 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2923 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2924 # OS/2's system install, which has a completely different semantic
2925 # ./install, which can be erroneously created by make from ./install.sh.
2926 # Reject install programs that cannot install multiple files.
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2928 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2929 if test -z "$INSTALL"; then
2930 if ${ac_cv_path_install+:} false; then :
2931 $as_echo_n "(cached) " >&6
2932 else
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2935 do
2936 IFS=$as_save_IFS
2937 test -z "$as_dir" && as_dir=.
2938 # Account for people who put trailing slashes in PATH elements.
2939 case $as_dir/ in #((
2940 ./ | .// | /[cC]/* | \
2941 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2942 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2943 /usr/ucb/* ) ;;
2944 *)
2945 # OSF1 and SCO ODT 3.0 have their own names for install.
2946 # Don't use installbsd from OSF since it installs stuff as root
2947 # by default.
2948 for ac_prog in ginstall scoinst install; do
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2951 if test $ac_prog = install &&
2952 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2953 # AIX install. It has an incompatible calling convention.
2954 :
2955 elif test $ac_prog = install &&
2956 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2957 # program-specific install script used by HP pwplus--don't use.
2958 :
2959 else
2960 rm -rf conftest.one conftest.two conftest.dir
2961 echo one > conftest.one
2962 echo two > conftest.two
2963 mkdir conftest.dir
2964 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2965 test -s conftest.one && test -s conftest.two &&
2966 test -s conftest.dir/conftest.one &&
2967 test -s conftest.dir/conftest.two
2968 then
2969 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2970 break 3
2971 fi
2972 fi
2973 fi
2974 done
2975 done
2976 ;;
2977 esac
2978
2979 done
2980 IFS=$as_save_IFS
2981
2982 rm -rf conftest.one conftest.two conftest.dir
2983
2984 fi
2985 if test "${ac_cv_path_install+set}" = set; then
2986 INSTALL=$ac_cv_path_install
2987 else
2988 # As a last resort, use the slow shell script. Don't cache a
2989 # value for INSTALL within a source directory, because that will
2990 # break other packages using the cache if that directory is
2991 # removed, or if the value is a relative name.
2992 INSTALL=$ac_install_sh
2993 fi
2994 fi
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2996 $as_echo "$INSTALL" >&6; }
2997
2998 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2999 # It thinks the first close brace ends the variable substitution.
3000 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3001
3002 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3003
3004 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3005
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3007 $as_echo_n "checking whether build environment is sane... " >&6; }
3008 # Reject unsafe characters in $srcdir or the absolute working directory
3009 # name. Accept space and tab only in the latter.
3010 am_lf='
3011 '
3012 case `pwd` in
3013 *[\\\"\#\$\&\'\`$am_lf]*)
3014 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3015 esac
3016 case $srcdir in
3017 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3018 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3019 esac
3020
3021 # Do 'set' in a subshell so we don't clobber the current shell's
3022 # arguments. Must try -L first in case configure is actually a
3023 # symlink; some systems play weird games with the mod time of symlinks
3024 # (eg FreeBSD returns the mod time of the symlink's containing
3025 # directory).
3026 if (
3027 am_has_slept=no
3028 for am_try in 1 2; do
3029 echo "timestamp, slept: $am_has_slept" > conftest.file
3030 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3031 if test "$*" = "X"; then
3032 # -L didn't work.
3033 set X `ls -t "$srcdir/configure" conftest.file`
3034 fi
3035 if test "$*" != "X $srcdir/configure conftest.file" \
3036 && test "$*" != "X conftest.file $srcdir/configure"; then
3037
3038 # If neither matched, then we have a broken ls. This can happen
3039 # if, for instance, CONFIG_SHELL is bash and it inherits a
3040 # broken ls alias from the environment. This has actually
3041 # happened. Such a system could not be considered "sane".
3042 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3043 alias in your environment" "$LINENO" 5
3044 fi
3045 if test "$2" = conftest.file || test $am_try -eq 2; then
3046 break
3047 fi
3048 # Just in case.
3049 sleep 1
3050 am_has_slept=yes
3051 done
3052 test "$2" = conftest.file
3053 )
3054 then
3055 # Ok.
3056 :
3057 else
3058 as_fn_error $? "newly created file is older than distributed files!
3059 Check your system clock" "$LINENO" 5
3060 fi
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3062 $as_echo "yes" >&6; }
3063 # If we didn't sleep, we still need to ensure time stamps of config.status and
3064 # generated files are strictly newer.
3065 am_sleep_pid=
3066 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3067 ( sleep 1 ) &
3068 am_sleep_pid=$!
3069 fi
3070
3071 rm -f conftest.file
3072
3073 test "$program_prefix" != NONE &&
3074 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3075 # Use a double $ so make ignores it.
3076 test "$program_suffix" != NONE &&
3077 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3078 # Double any \ or $.
3079 # By default was `s,x,x', remove it if useless.
3080 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3081 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3082
3083 # Expand $ac_aux_dir to an absolute path.
3084 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3085
3086 if test x"${MISSING+set}" != xset; then
3087 case $am_aux_dir in
3088 *\ * | *\ *)
3089 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3090 *)
3091 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3092 esac
3093 fi
3094 # Use eval to expand $SHELL
3095 if eval "$MISSING --is-lightweight"; then
3096 am_missing_run="$MISSING "
3097 else
3098 am_missing_run=
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3100 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3101 fi
3102
3103 if test x"${install_sh+set}" != xset; then
3104 case $am_aux_dir in
3105 *\ * | *\ *)
3106 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3107 *)
3108 install_sh="\${SHELL} $am_aux_dir/install-sh"
3109 esac
3110 fi
3111
3112 # Installed binaries are usually stripped using 'strip' when the user
3113 # run "make install-strip". However 'strip' might not be the right
3114 # tool to use in cross-compilation environments, therefore Automake
3115 # will honor the 'STRIP' environment variable to overrule this program.
3116 if test "$cross_compiling" != no; then
3117 if test -n "$ac_tool_prefix"; then
3118 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3119 set dummy ${ac_tool_prefix}strip; ac_word=$2
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121 $as_echo_n "checking for $ac_word... " >&6; }
3122 if ${ac_cv_prog_STRIP+:} false; then :
3123 $as_echo_n "(cached) " >&6
3124 else
3125 if test -n "$STRIP"; then
3126 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3127 else
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH
3130 do
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 break 2
3138 fi
3139 done
3140 done
3141 IFS=$as_save_IFS
3142
3143 fi
3144 fi
3145 STRIP=$ac_cv_prog_STRIP
3146 if test -n "$STRIP"; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3148 $as_echo "$STRIP" >&6; }
3149 else
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3152 fi
3153
3154
3155 fi
3156 if test -z "$ac_cv_prog_STRIP"; then
3157 ac_ct_STRIP=$STRIP
3158 # Extract the first word of "strip", so it can be a program name with args.
3159 set dummy strip; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3163 $as_echo_n "(cached) " >&6
3164 else
3165 if test -n "$ac_ct_STRIP"; then
3166 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3170 do
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3175 ac_cv_prog_ac_ct_STRIP="strip"
3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 break 2
3178 fi
3179 done
3180 done
3181 IFS=$as_save_IFS
3182
3183 fi
3184 fi
3185 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3186 if test -n "$ac_ct_STRIP"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3188 $as_echo "$ac_ct_STRIP" >&6; }
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3192 fi
3193
3194 if test "x$ac_ct_STRIP" = x; then
3195 STRIP=":"
3196 else
3197 case $cross_compiling:$ac_tool_warned in
3198 yes:)
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3201 ac_tool_warned=yes ;;
3202 esac
3203 STRIP=$ac_ct_STRIP
3204 fi
3205 else
3206 STRIP="$ac_cv_prog_STRIP"
3207 fi
3208
3209 fi
3210 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3211
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3213 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3214 if test -z "$MKDIR_P"; then
3215 if ${ac_cv_path_mkdir+:} false; then :
3216 $as_echo_n "(cached) " >&6
3217 else
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3220 do
3221 IFS=$as_save_IFS
3222 test -z "$as_dir" && as_dir=.
3223 for ac_prog in mkdir gmkdir; do
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3226 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3227 'mkdir (GNU coreutils) '* | \
3228 'mkdir (coreutils) '* | \
3229 'mkdir (fileutils) '4.1*)
3230 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3231 break 3;;
3232 esac
3233 done
3234 done
3235 done
3236 IFS=$as_save_IFS
3237
3238 fi
3239
3240 test -d ./--version && rmdir ./--version
3241 if test "${ac_cv_path_mkdir+set}" = set; then
3242 MKDIR_P="$ac_cv_path_mkdir -p"
3243 else
3244 # As a last resort, use the slow shell script. Don't cache a
3245 # value for MKDIR_P within a source directory, because that will
3246 # break other packages using the cache if that directory is
3247 # removed, or if the value is a relative name.
3248 MKDIR_P="$ac_install_sh -d"
3249 fi
3250 fi
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3252 $as_echo "$MKDIR_P" >&6; }
3253
3254 for ac_prog in gawk mawk nawk awk
3255 do
3256 # Extract the first word of "$ac_prog", so it can be a program name with args.
3257 set dummy $ac_prog; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if ${ac_cv_prog_AWK+:} false; then :
3261 $as_echo_n "(cached) " >&6
3262 else
3263 if test -n "$AWK"; then
3264 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269 IFS=$as_save_IFS
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273 ac_cv_prog_AWK="$ac_prog"
3274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275 break 2
3276 fi
3277 done
3278 done
3279 IFS=$as_save_IFS
3280
3281 fi
3282 fi
3283 AWK=$ac_cv_prog_AWK
3284 if test -n "$AWK"; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3286 $as_echo "$AWK" >&6; }
3287 else
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3290 fi
3291
3292
3293 test -n "$AWK" && break
3294 done
3295
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3297 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3298 set x ${MAKE-make}
3299 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3300 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3301 $as_echo_n "(cached) " >&6
3302 else
3303 cat >conftest.make <<\_ACEOF
3304 SHELL = /bin/sh
3305 all:
3306 @echo '@@@%%%=$(MAKE)=@@@%%%'
3307 _ACEOF
3308 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3309 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3310 *@@@%%%=?*=@@@%%%*)
3311 eval ac_cv_prog_make_${ac_make}_set=yes;;
3312 *)
3313 eval ac_cv_prog_make_${ac_make}_set=no;;
3314 esac
3315 rm -f conftest.make
3316 fi
3317 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3319 $as_echo "yes" >&6; }
3320 SET_MAKE=
3321 else
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3324 SET_MAKE="MAKE=${MAKE-make}"
3325 fi
3326
3327 rm -rf .tst 2>/dev/null
3328 mkdir .tst 2>/dev/null
3329 if test -d .tst; then
3330 am__leading_dot=.
3331 else
3332 am__leading_dot=_
3333 fi
3334 rmdir .tst 2>/dev/null
3335
3336 # Check whether --enable-silent-rules was given.
3337 if test "${enable_silent_rules+set}" = set; then :
3338 enableval=$enable_silent_rules;
3339 fi
3340
3341 case $enable_silent_rules in # (((
3342 yes) AM_DEFAULT_VERBOSITY=0;;
3343 no) AM_DEFAULT_VERBOSITY=1;;
3344 *) AM_DEFAULT_VERBOSITY=1;;
3345 esac
3346 am_make=${MAKE-make}
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3348 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3349 if ${am_cv_make_support_nested_variables+:} false; then :
3350 $as_echo_n "(cached) " >&6
3351 else
3352 if $as_echo 'TRUE=$(BAR$(V))
3353 BAR0=false
3354 BAR1=true
3355 V=1
3356 am__doit:
3357 @$(TRUE)
3358 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3359 am_cv_make_support_nested_variables=yes
3360 else
3361 am_cv_make_support_nested_variables=no
3362 fi
3363 fi
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3365 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3366 if test $am_cv_make_support_nested_variables = yes; then
3367 AM_V='$(V)'
3368 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3369 else
3370 AM_V=$AM_DEFAULT_VERBOSITY
3371 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3372 fi
3373 AM_BACKSLASH='\'
3374
3375 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3376 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3377 # is not polluted with repeated "-I."
3378 am__isrc=' -I$(srcdir)'
3379 # test to see if srcdir already configured
3380 if test -f $srcdir/config.status; then
3381 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3382 fi
3383 fi
3384
3385 # test whether we have cygpath
3386 if test -z "$CYGPATH_W"; then
3387 if (cygpath --version) >/dev/null 2>/dev/null; then
3388 CYGPATH_W='cygpath -w'
3389 else
3390 CYGPATH_W=echo
3391 fi
3392 fi
3393
3394
3395 # Define the identity of the package.
3396 PACKAGE='ld'
•3397 VERSION='2.44'
3398
3399
3400 cat >>confdefs.h <<_ACEOF
3401 #define PACKAGE "$PACKAGE"
3402 _ACEOF
3403
3404
3405 cat >>confdefs.h <<_ACEOF
3406 #define VERSION "$VERSION"
3407 _ACEOF
3408
3409 # Some tools Automake needs.
3410
3411 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3412
3413
3414 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3415
3416
3417 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3418
3419
3420 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3421
3422
3423 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3424
3425 # For better backward compatibility. To be removed once Automake 1.9.x
3426 # dies out for good. For more background, see:
3427 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3428 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3429 mkdir_p='$(MKDIR_P)'
3430
3431 # We need awk for the "check" target (and possibly the TAP driver). The
3432 # system "awk" is bad on some platforms.
3433 # Always define AMTAR for backward compatibility. Yes, it's still used
3434 # in the wild :-( We should find a proper way to deprecate it ...
3435 AMTAR='$${TAR-tar}'
3436
3437
3438 # We'll loop over all known methods to create a tar archive until one works.
3439 _am_tools='gnutar pax cpio none'
3440
3441 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3442
3443
3444
3445
3446
3447
3448 # POSIX will say in a future version that running "rm -f" with no argument
3449 # is OK; and we want to be able to make that assumption in our Makefile
3450 # recipes. So use an aggressive probe to check that the usage we want is
3451 # actually supported "in the wild" to an acceptable degree.
3452 # See automake bug#10828.
3453 # To make any issue more visible, cause the running configure to be aborted
3454 # by default if the 'rm' program in use doesn't match our expectations; the
3455 # user can still override this though.
3456 if rm -f && rm -fr && rm -rf; then : OK; else
3457 cat >&2 <<'END'
3458 Oops!
3459
3460 Your 'rm' program seems unable to run without file operands specified
3461 on the command line, even when the '-f' option is present. This is contrary
3462 to the behaviour of most rm programs out there, and not conforming with
3463 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3464
3465 Please tell [email protected] about your system, including the value
3466 of your $PATH and any error possibly output before this message. This
3467 can help us improve future automake versions.
3468
3469 END
3470 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3471 echo 'Configuration will proceed anyway, since you have set the' >&2
3472 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3473 echo >&2
3474 else
3475 cat >&2 <<'END'
3476 Aborting the configuration process, to ensure you take notice of the issue.
3477
3478 You can download and install GNU coreutils to get an 'rm' implementation
3479 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3480
3481 If you want to complete the configuration process using your problematic
3482 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3483 to "yes", and re-run configure.
3484
3485 END
3486 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3487 fi
3488 fi
3489
3490 # Check whether --enable-silent-rules was given.
3491 if test "${enable_silent_rules+set}" = set; then :
3492 enableval=$enable_silent_rules;
3493 fi
3494
3495 case $enable_silent_rules in # (((
3496 yes) AM_DEFAULT_VERBOSITY=0;;
3497 no) AM_DEFAULT_VERBOSITY=1;;
3498 *) AM_DEFAULT_VERBOSITY=0;;
3499 esac
3500 am_make=${MAKE-make}
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3502 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3503 if ${am_cv_make_support_nested_variables+:} false; then :
3504 $as_echo_n "(cached) " >&6
3505 else
3506 if $as_echo 'TRUE=$(BAR$(V))
3507 BAR0=false
3508 BAR1=true
3509 V=1
3510 am__doit:
3511 @$(TRUE)
3512 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3513 am_cv_make_support_nested_variables=yes
3514 else
3515 am_cv_make_support_nested_variables=no
3516 fi
3517 fi
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3519 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3520 if test $am_cv_make_support_nested_variables = yes; then
3521 AM_V='$(V)'
3522 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3523 else
3524 AM_V=$AM_DEFAULT_VERBOSITY
3525 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3526 fi
3527 AM_BACKSLASH='\'
3528
3529
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3531 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3532 # Check whether --enable-maintainer-mode was given.
3533 if test "${enable_maintainer_mode+set}" = set; then :
3534 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3535 else
3536 USE_MAINTAINER_MODE=no
3537 fi
3538
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3540 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3541 if test $USE_MAINTAINER_MODE = yes; then
3542 MAINTAINER_MODE_TRUE=
3543 MAINTAINER_MODE_FALSE='#'
3544 else
3545 MAINTAINER_MODE_TRUE='#'
3546 MAINTAINER_MODE_FALSE=
3547 fi
3548
3549 MAINT=$MAINTAINER_MODE_TRUE
3550
3551
3552
3553 ac_ext=c
3554 ac_cpp='$CPP $CPPFLAGS'
3555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3558 if test -n "$ac_tool_prefix"; then
3559 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3560 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3562 $as_echo_n "checking for $ac_word... " >&6; }
3563 if ${ac_cv_prog_CC+:} false; then :
3564 $as_echo_n "(cached) " >&6
3565 else
3566 if test -n "$CC"; then
3567 ac_cv_prog_CC="$CC" # Let the user override the test.
3568 else
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 for as_dir in $PATH
3571 do
3572 IFS=$as_save_IFS
3573 test -z "$as_dir" && as_dir=.
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3576 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3578 break 2
3579 fi
3580 done
3581 done
3582 IFS=$as_save_IFS
3583
3584 fi
3585 fi
3586 CC=$ac_cv_prog_CC
3587 if test -n "$CC"; then
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3589 $as_echo "$CC" >&6; }
3590 else
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592 $as_echo "no" >&6; }
3593 fi
3594
3595
3596 fi
3597 if test -z "$ac_cv_prog_CC"; then
3598 ac_ct_CC=$CC
3599 # Extract the first word of "gcc", so it can be a program name with args.
3600 set dummy gcc; ac_word=$2
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602 $as_echo_n "checking for $ac_word... " >&6; }
3603 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3604 $as_echo_n "(cached) " >&6
3605 else
3606 if test -n "$ac_ct_CC"; then
3607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3608 else
3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 for as_dir in $PATH
3611 do
3612 IFS=$as_save_IFS
3613 test -z "$as_dir" && as_dir=.
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3616 ac_cv_prog_ac_ct_CC="gcc"
3617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 break 2
3619 fi
3620 done
3621 done
3622 IFS=$as_save_IFS
3623
3624 fi
3625 fi
3626 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3627 if test -n "$ac_ct_CC"; then
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3629 $as_echo "$ac_ct_CC" >&6; }
3630 else
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632 $as_echo "no" >&6; }
3633 fi
3634
3635 if test "x$ac_ct_CC" = x; then
3636 CC=""
3637 else
3638 case $cross_compiling:$ac_tool_warned in
3639 yes:)
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3642 ac_tool_warned=yes ;;
3643 esac
3644 CC=$ac_ct_CC
3645 fi
3646 else
3647 CC="$ac_cv_prog_CC"
3648 fi
3649
3650 if test -z "$CC"; then
3651 if test -n "$ac_tool_prefix"; then
3652 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3653 set dummy ${ac_tool_prefix}cc; ac_word=$2
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3655 $as_echo_n "checking for $ac_word... " >&6; }
3656 if ${ac_cv_prog_CC+:} false; then :
3657 $as_echo_n "(cached) " >&6
3658 else
3659 if test -n "$CC"; then
3660 ac_cv_prog_CC="$CC" # Let the user override the test.
3661 else
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH
3664 do
3665 IFS=$as_save_IFS
3666 test -z "$as_dir" && as_dir=.
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3669 ac_cv_prog_CC="${ac_tool_prefix}cc"
3670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3671 break 2
3672 fi
3673 done
3674 done
3675 IFS=$as_save_IFS
3676
3677 fi
3678 fi
3679 CC=$ac_cv_prog_CC
3680 if test -n "$CC"; then
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3682 $as_echo "$CC" >&6; }
3683 else
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 $as_echo "no" >&6; }
3686 fi
3687
3688
3689 fi
3690 fi
3691 if test -z "$CC"; then
3692 # Extract the first word of "cc", so it can be a program name with args.
3693 set dummy cc; ac_word=$2
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695 $as_echo_n "checking for $ac_word... " >&6; }
3696 if ${ac_cv_prog_CC+:} false; then :
3697 $as_echo_n "(cached) " >&6
3698 else
3699 if test -n "$CC"; then
3700 ac_cv_prog_CC="$CC" # Let the user override the test.
3701 else
3702 ac_prog_rejected=no
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH
3705 do
3706 IFS=$as_save_IFS
3707 test -z "$as_dir" && as_dir=.
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3710 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3711 ac_prog_rejected=yes
3712 continue
3713 fi
3714 ac_cv_prog_CC="cc"
3715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3716 break 2
3717 fi
3718 done
3719 done
3720 IFS=$as_save_IFS
3721
3722 if test $ac_prog_rejected = yes; then
3723 # We found a bogon in the path, so make sure we never use it.
3724 set dummy $ac_cv_prog_CC
3725 shift
3726 if test $# != 0; then
3727 # We chose a different compiler from the bogus one.
3728 # However, it has the same basename, so the bogon will be chosen
3729 # first if we set CC to just the basename; use the full file name.
3730 shift
3731 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3732 fi
3733 fi
3734 fi
3735 fi
3736 CC=$ac_cv_prog_CC
3737 if test -n "$CC"; then
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3739 $as_echo "$CC" >&6; }
3740 else
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3742 $as_echo "no" >&6; }
3743 fi
3744
3745
3746 fi
3747 if test -z "$CC"; then
3748 if test -n "$ac_tool_prefix"; then
3749 for ac_prog in cl.exe
3750 do
3751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3752 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3754 $as_echo_n "checking for $ac_word... " >&6; }
3755 if ${ac_cv_prog_CC+:} false; then :
3756 $as_echo_n "(cached) " >&6
3757 else
3758 if test -n "$CC"; then
3759 ac_cv_prog_CC="$CC" # Let the user override the test.
3760 else
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH
3763 do
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
3766 for ac_exec_ext in '' $ac_executable_extensions; do
3767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3768 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 break 2
3771 fi
3772 done
3773 done
3774 IFS=$as_save_IFS
3775
3776 fi
3777 fi
3778 CC=$ac_cv_prog_CC
3779 if test -n "$CC"; then
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3781 $as_echo "$CC" >&6; }
3782 else
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3784 $as_echo "no" >&6; }
3785 fi
3786
3787
3788 test -n "$CC" && break
3789 done
3790 fi
3791 if test -z "$CC"; then
3792 ac_ct_CC=$CC
3793 for ac_prog in cl.exe
3794 do
3795 # Extract the first word of "$ac_prog", so it can be a program name with args.
3796 set dummy $ac_prog; ac_word=$2
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798 $as_echo_n "checking for $ac_word... " >&6; }
3799 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3800 $as_echo_n "(cached) " >&6
3801 else
3802 if test -n "$ac_ct_CC"; then
3803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3807 do
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812 ac_cv_prog_ac_ct_CC="$ac_prog"
3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3815 fi
3816 done
3817 done
3818 IFS=$as_save_IFS
3819
3820 fi
3821 fi
3822 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3823 if test -n "$ac_ct_CC"; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3825 $as_echo "$ac_ct_CC" >&6; }
3826 else
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828 $as_echo "no" >&6; }
3829 fi
3830
3831
3832 test -n "$ac_ct_CC" && break
3833 done
3834
3835 if test "x$ac_ct_CC" = x; then
3836 CC=""
3837 else
3838 case $cross_compiling:$ac_tool_warned in
3839 yes:)
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3842 ac_tool_warned=yes ;;
3843 esac
3844 CC=$ac_ct_CC
3845 fi
3846 fi
3847
3848 fi
3849
3850
3851 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3853 as_fn_error $? "no acceptable C compiler found in \$PATH
3854 See \`config.log' for more details" "$LINENO" 5; }
3855
3856 # Provide some information about the compiler.
3857 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3858 set X $ac_compile
3859 ac_compiler=$2
3860 for ac_option in --version -v -V -qversion; do
3861 { { ac_try="$ac_compiler $ac_option >&5"
3862 case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3865 esac
3866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3867 $as_echo "$ac_try_echo"; } >&5
3868 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3869 ac_status=$?
3870 if test -s conftest.err; then
3871 sed '10a\
3872 ... rest of stderr output deleted ...
3873 10q' conftest.err >conftest.er1
3874 cat conftest.er1 >&5
3875 fi
3876 rm -f conftest.er1 conftest.err
3877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3878 test $ac_status = 0; }
3879 done
3880
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3883
3884 int
3885 main ()
3886 {
3887
3888 ;
3889 return 0;
3890 }
3891 _ACEOF
3892 ac_clean_files_save=$ac_clean_files
3893 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3894 # Try to create an executable without -o first, disregard a.out.
3895 # It will help us diagnose broken compilers, and finding out an intuition
3896 # of exeext.
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3898 $as_echo_n "checking whether the C compiler works... " >&6; }
3899 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3900
3901 # The possible output files:
3902 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3903
3904 ac_rmfiles=
3905 for ac_file in $ac_files
3906 do
3907 case $ac_file in
3908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3909 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3910 esac
3911 done
3912 rm -f $ac_rmfiles
3913
3914 if { { ac_try="$ac_link_default"
3915 case "(($ac_try" in
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3918 esac
3919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3920 $as_echo "$ac_try_echo"; } >&5
3921 (eval "$ac_link_default") 2>&5
3922 ac_status=$?
3923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3924 test $ac_status = 0; }; then :
3925 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3926 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3927 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3928 # so that the user can short-circuit this test for compilers unknown to
3929 # Autoconf.
3930 for ac_file in $ac_files ''
3931 do
3932 test -f "$ac_file" || continue
3933 case $ac_file in
3934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3935 ;;
3936 [ab].out )
3937 # We found the default executable, but exeext='' is most
3938 # certainly right.
3939 break;;
3940 *.* )
3941 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3942 then :; else
3943 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3944 fi
3945 # We set ac_cv_exeext here because the later test for it is not
3946 # safe: cross compilers may not add the suffix if given an `-o'
3947 # argument, so we may need to know it at that point already.
3948 # Even if this section looks crufty: it has the advantage of
3949 # actually working.
3950 break;;
3951 * )
3952 break;;
3953 esac
3954 done
3955 test "$ac_cv_exeext" = no && ac_cv_exeext=
3956
3957 else
3958 ac_file=''
3959 fi
3960 if test -z "$ac_file"; then :
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962 $as_echo "no" >&6; }
3963 $as_echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3965
3966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3968 as_fn_error 77 "C compiler cannot create executables
3969 See \`config.log' for more details" "$LINENO" 5; }
3970 else
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3972 $as_echo "yes" >&6; }
3973 fi
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3975 $as_echo_n "checking for C compiler default output file name... " >&6; }
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3977 $as_echo "$ac_file" >&6; }
3978 ac_exeext=$ac_cv_exeext
3979
3980 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3981 ac_clean_files=$ac_clean_files_save
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3983 $as_echo_n "checking for suffix of executables... " >&6; }
3984 if { { ac_try="$ac_link"
3985 case "(($ac_try" in
3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3988 esac
3989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3990 $as_echo "$ac_try_echo"; } >&5
3991 (eval "$ac_link") 2>&5
3992 ac_status=$?
3993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3994 test $ac_status = 0; }; then :
3995 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3996 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3997 # work properly (i.e., refer to `conftest.exe'), while it won't with
3998 # `rm'.
3999 for ac_file in conftest.exe conftest conftest.*; do
4000 test -f "$ac_file" || continue
4001 case $ac_file in
4002 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4003 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4004 break;;
4005 * ) break;;
4006 esac
4007 done
4008 else
4009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4011 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4012 See \`config.log' for more details" "$LINENO" 5; }
4013 fi
4014 rm -f conftest conftest$ac_cv_exeext
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4016 $as_echo "$ac_cv_exeext" >&6; }
4017
4018 rm -f conftest.$ac_ext
4019 EXEEXT=$ac_cv_exeext
4020 ac_exeext=$EXEEXT
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4023 #include <stdio.h>
4024 int
4025 main ()
4026 {
4027 FILE *f = fopen ("conftest.out", "w");
4028 return ferror (f) || fclose (f) != 0;
4029
4030 ;
4031 return 0;
4032 }
4033 _ACEOF
4034 ac_clean_files="$ac_clean_files conftest.out"
4035 # Check that the compiler produces executables we can run. If not, either
4036 # the compiler is broken, or we cross compile.
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4038 $as_echo_n "checking whether we are cross compiling... " >&6; }
4039 if test "$cross_compiling" != yes; then
4040 { { ac_try="$ac_link"
4041 case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4044 esac
4045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4046 $as_echo "$ac_try_echo"; } >&5
4047 (eval "$ac_link") 2>&5
4048 ac_status=$?
4049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4050 test $ac_status = 0; }
4051 if { ac_try='./conftest$ac_cv_exeext'
4052 { { case "(($ac_try" in
4053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054 *) ac_try_echo=$ac_try;;
4055 esac
4056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4057 $as_echo "$ac_try_echo"; } >&5
4058 (eval "$ac_try") 2>&5
4059 ac_status=$?
4060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4061 test $ac_status = 0; }; }; then
4062 cross_compiling=no
4063 else
4064 if test "$cross_compiling" = maybe; then
4065 cross_compiling=yes
4066 else
4067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4069 as_fn_error $? "cannot run C compiled programs.
4070 If you meant to cross compile, use \`--host'.
4071 See \`config.log' for more details" "$LINENO" 5; }
4072 fi
4073 fi
4074 fi
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4076 $as_echo "$cross_compiling" >&6; }
4077
4078 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4079 ac_clean_files=$ac_clean_files_save
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4081 $as_echo_n "checking for suffix of object files... " >&6; }
4082 if ${ac_cv_objext+:} false; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4087
4088 int
4089 main ()
4090 {
4091
4092 ;
4093 return 0;
4094 }
4095 _ACEOF
4096 rm -f conftest.o conftest.obj
4097 if { { ac_try="$ac_compile"
4098 case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4101 esac
4102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4103 $as_echo "$ac_try_echo"; } >&5
4104 (eval "$ac_compile") 2>&5
4105 ac_status=$?
4106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4107 test $ac_status = 0; }; then :
4108 for ac_file in conftest.o conftest.obj conftest.*; do
4109 test -f "$ac_file" || continue;
4110 case $ac_file in
4111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4112 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4113 break;;
4114 esac
4115 done
4116 else
4117 $as_echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4119
4120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4122 as_fn_error $? "cannot compute suffix of object files: cannot compile
4123 See \`config.log' for more details" "$LINENO" 5; }
4124 fi
4125 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4126 fi
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4128 $as_echo "$ac_cv_objext" >&6; }
4129 OBJEXT=$ac_cv_objext
4130 ac_objext=$OBJEXT
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4132 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4133 if ${ac_cv_c_compiler_gnu+:} false; then :
4134 $as_echo_n "(cached) " >&6
4135 else
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4138
4139 int
4140 main ()
4141 {
4142 #ifndef __GNUC__
4143 choke me
4144 #endif
4145
4146 ;
4147 return 0;
4148 }
4149 _ACEOF
4150 if ac_fn_c_try_compile "$LINENO"; then :
4151 ac_compiler_gnu=yes
4152 else
4153 ac_compiler_gnu=no
4154 fi
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4157
4158 fi
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4160 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4161 if test $ac_compiler_gnu = yes; then
4162 GCC=yes
4163 else
4164 GCC=
4165 fi
4166 ac_test_CFLAGS=${CFLAGS+set}
4167 ac_save_CFLAGS=$CFLAGS
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4169 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4170 if ${ac_cv_prog_cc_g+:} false; then :
4171 $as_echo_n "(cached) " >&6
4172 else
4173 ac_save_c_werror_flag=$ac_c_werror_flag
4174 ac_c_werror_flag=yes
4175 ac_cv_prog_cc_g=no
4176 CFLAGS="-g"
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4179
4180 int
4181 main ()
4182 {
4183
4184 ;
4185 return 0;
4186 }
4187 _ACEOF
4188 if ac_fn_c_try_compile "$LINENO"; then :
4189 ac_cv_prog_cc_g=yes
4190 else
4191 CFLAGS=""
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
4205 else
4206 ac_c_werror_flag=$ac_save_c_werror_flag
4207 CFLAGS="-g"
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210
4211 int
4212 main ()
4213 {
4214
4215 ;
4216 return 0;
4217 }
4218 _ACEOF
4219 if ac_fn_c_try_compile "$LINENO"; then :
4220 ac_cv_prog_cc_g=yes
4221 fi
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223 fi
4224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4225 fi
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 ac_c_werror_flag=$ac_save_c_werror_flag
4228 fi
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4230 $as_echo "$ac_cv_prog_cc_g" >&6; }
4231 if test "$ac_test_CFLAGS" = set; then
4232 CFLAGS=$ac_save_CFLAGS
4233 elif test $ac_cv_prog_cc_g = yes; then
4234 if test "$GCC" = yes; then
4235 CFLAGS="-g -O2"
4236 else
4237 CFLAGS="-g"
4238 fi
4239 else
4240 if test "$GCC" = yes; then
4241 CFLAGS="-O2"
4242 else
4243 CFLAGS=
4244 fi
4245 fi
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4247 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4248 if ${ac_cv_prog_cc_c89+:} false; then :
4249 $as_echo_n "(cached) " >&6
4250 else
4251 ac_cv_prog_cc_c89=no
4252 ac_save_CC=$CC
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4255 #include <stdarg.h>
4256 #include <stdio.h>
4257 struct stat;
4258 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4259 struct buf { int x; };
4260 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4261 static char *e (p, i)
4262 char **p;
4263 int i;
4264 {
4265 return p[i];
4266 }
4267 static char *f (char * (*g) (char **, int), char **p, ...)
4268 {
4269 char *s;
4270 va_list v;
4271 va_start (v,p);
4272 s = g (p, va_arg (v,int));
4273 va_end (v);
4274 return s;
4275 }
4276
4277 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4278 function prototypes and stuff, but not '\xHH' hex character constants.
4279 These don't provoke an error unfortunately, instead are silently treated
4280 as 'x'. The following induces an error, until -std is added to get
4281 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4282 array size at least. It's necessary to write '\x00'==0 to get something
4283 that's true only with -std. */
4284 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4285
4286 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4287 inside strings and character constants. */
4288 #define FOO(x) 'x'
4289 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4290
4291 int test (int i, double x);
4292 struct s1 {int (*f) (int a);};
4293 struct s2 {int (*f) (double a);};
4294 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4295 int argc;
4296 char **argv;
4297 int
4298 main ()
4299 {
4300 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4301 ;
4302 return 0;
4303 }
4304 _ACEOF
4305 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4306 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4307 do
4308 CC="$ac_save_CC $ac_arg"
4309 if ac_fn_c_try_compile "$LINENO"; then :
4310 ac_cv_prog_cc_c89=$ac_arg
4311 fi
4312 rm -f core conftest.err conftest.$ac_objext
4313 test "x$ac_cv_prog_cc_c89" != "xno" && break
4314 done
4315 rm -f conftest.$ac_ext
4316 CC=$ac_save_CC
4317
4318 fi
4319 # AC_CACHE_VAL
4320 case "x$ac_cv_prog_cc_c89" in
4321 x)
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4323 $as_echo "none needed" >&6; } ;;
4324 xno)
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4326 $as_echo "unsupported" >&6; } ;;
4327 *)
4328 CC="$CC $ac_cv_prog_cc_c89"
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4330 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4331 esac
4332 if test "x$ac_cv_prog_cc_c89" != xno; then :
4333
4334 fi
4335
4336 ac_ext=c
4337 ac_cpp='$CPP $CPPFLAGS'
4338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4341
4342 ac_ext=c
4343 ac_cpp='$CPP $CPPFLAGS'
4344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4348 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4349 if ${am_cv_prog_cc_c_o+:} false; then :
4350 $as_echo_n "(cached) " >&6
4351 else
4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h. */
4354
4355 int
4356 main ()
4357 {
4358
4359 ;
4360 return 0;
4361 }
4362 _ACEOF
4363 # Make sure it works both with $CC and with simple cc.
4364 # Following AC_PROG_CC_C_O, we do the test twice because some
4365 # compilers refuse to overwrite an existing .o file with -o,
4366 # though they will create one.
4367 am_cv_prog_cc_c_o=yes
4368 for am_i in 1 2; do
4369 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4370 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } \
4374 && test -f conftest2.$ac_objext; then
4375 : OK
4376 else
4377 am_cv_prog_cc_c_o=no
4378 break
4379 fi
4380 done
4381 rm -f core conftest*
4382 unset am_i
4383 fi
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4385 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4386 if test "$am_cv_prog_cc_c_o" != yes; then
4387 # Losing compiler, so override with the script.
4388 # FIXME: It is wrong to rewrite CC.
4389 # But if we don't then we get into trouble of one sort or another.
4390 # A longer-term fix would be to have automake use am__CC in this case,
4391 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4392 CC="$am_aux_dir/compile $CC"
4393 fi
4394 ac_ext=c
4395 ac_cpp='$CPP $CPPFLAGS'
4396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4399
4400 DEPDIR="${am__leading_dot}deps"
4401
4402 ac_config_commands="$ac_config_commands depfiles"
4403
4404
4405 am_make=${MAKE-make}
4406 cat > confinc << 'END'
4407 am__doit:
4408 @echo this is the am__doit target
4409 .PHONY: am__doit
4410 END
4411 # If we don't find an include directive, just comment out the code.
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4413 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4414 am__include="#"
4415 am__quote=
4416 _am_result=none
4417 # First try GNU make style include.
4418 echo "include confinc" > confmf
4419 # Ignore all kinds of additional output from 'make'.
4420 case `$am_make -s -f confmf 2> /dev/null` in #(
4421 *the\ am__doit\ target*)
4422 am__include=include
4423 am__quote=
4424 _am_result=GNU
4425 ;;
4426 esac
4427 # Now try BSD make style include.
4428 if test "$am__include" = "#"; then
4429 echo '.include "confinc"' > confmf
4430 case `$am_make -s -f confmf 2> /dev/null` in #(
4431 *the\ am__doit\ target*)
4432 am__include=.include
4433 am__quote="\""
4434 _am_result=BSD
4435 ;;
4436 esac
4437 fi
4438
4439
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4441 $as_echo "$_am_result" >&6; }
4442 rm -f confinc confmf
4443
4444 # Check whether --enable-dependency-tracking was given.
4445 if test "${enable_dependency_tracking+set}" = set; then :
4446 enableval=$enable_dependency_tracking;
4447 fi
4448
4449 if test "x$enable_dependency_tracking" != xno; then
4450 am_depcomp="$ac_aux_dir/depcomp"
4451 AMDEPBACKSLASH='\'
4452 am__nodep='_no'
4453 fi
4454 if test "x$enable_dependency_tracking" != xno; then
4455 AMDEP_TRUE=
4456 AMDEP_FALSE='#'
4457 else
4458 AMDEP_TRUE='#'
4459 AMDEP_FALSE=
4460 fi
4461
4462
4463
4464 depcc="$CC" am_compiler_list=
4465
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4467 $as_echo_n "checking dependency style of $depcc... " >&6; }
4468 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4469 $as_echo_n "(cached) " >&6
4470 else
4471 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4472 # We make a subdir and do the tests there. Otherwise we can end up
4473 # making bogus files that we don't know about and never remove. For
4474 # instance it was reported that on HP-UX the gcc test will end up
4475 # making a dummy file named 'D' -- because '-MD' means "put the output
4476 # in D".
4477 rm -rf conftest.dir
4478 mkdir conftest.dir
4479 # Copy depcomp to subdir because otherwise we won't find it if we're
4480 # using a relative directory.
4481 cp "$am_depcomp" conftest.dir
4482 cd conftest.dir
4483 # We will build objects and dependencies in a subdirectory because
4484 # it helps to detect inapplicable dependency modes. For instance
4485 # both Tru64's cc and ICC support -MD to output dependencies as a
4486 # side effect of compilation, but ICC will put the dependencies in
4487 # the current directory while Tru64 will put them in the object
4488 # directory.
4489 mkdir sub
4490
4491 am_cv_CC_dependencies_compiler_type=none
4492 if test "$am_compiler_list" = ""; then
4493 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4494 fi
4495 am__universal=false
4496 case " $depcc " in #(
4497 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4498 esac
4499
4500 for depmode in $am_compiler_list; do
4501 # Setup a source with many dependencies, because some compilers
4502 # like to wrap large dependency lists on column 80 (with \), and
4503 # we should not choose a depcomp mode which is confused by this.
4504 #
4505 # We need to recreate these files for each test, as the compiler may
4506 # overwrite some of them when testing with obscure command lines.
4507 # This happens at least with the AIX C compiler.
4508 : > sub/conftest.c
4509 for i in 1 2 3 4 5 6; do
4510 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4511 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4512 # Solaris 10 /bin/sh.
4513 echo '/* dummy */' > sub/conftst$i.h
4514 done
4515 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4516
4517 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4518 # mode. It turns out that the SunPro C++ compiler does not properly
4519 # handle '-M -o', and we need to detect this. Also, some Intel
4520 # versions had trouble with output in subdirs.
4521 am__obj=sub/conftest.${OBJEXT-o}
4522 am__minus_obj="-o $am__obj"
4523 case $depmode in
4524 gcc)
4525 # This depmode causes a compiler race in universal mode.
4526 test "$am__universal" = false || continue
4527 ;;
4528 nosideeffect)
4529 # After this tag, mechanisms are not by side-effect, so they'll
4530 # only be used when explicitly requested.
4531 if test "x$enable_dependency_tracking" = xyes; then
4532 continue
4533 else
4534 break
4535 fi
4536 ;;
4537 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4538 # This compiler won't grok '-c -o', but also, the minuso test has
4539 # not run yet. These depmodes are late enough in the game, and
4540 # so weak that their functioning should not be impacted.
4541 am__obj=conftest.${OBJEXT-o}
4542 am__minus_obj=
4543 ;;
4544 none) break ;;
4545 esac
4546 if depmode=$depmode \
4547 source=sub/conftest.c object=$am__obj \
4548 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4549 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4550 >/dev/null 2>conftest.err &&
4551 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4552 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4553 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4554 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4555 # icc doesn't choke on unknown options, it will just issue warnings
4556 # or remarks (even with -Werror). So we grep stderr for any message
4557 # that says an option was ignored or not supported.
4558 # When given -MP, icc 7.0 and 7.1 complain thusly:
4559 # icc: Command line warning: ignoring option '-M'; no argument required
4560 # The diagnosis changed in icc 8.0:
4561 # icc: Command line remark: option '-MP' not supported
4562 if (grep 'ignoring option' conftest.err ||
4563 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4564 am_cv_CC_dependencies_compiler_type=$depmode
4565 break
4566 fi
4567 fi
4568 done
4569
4570 cd ..
4571 rm -rf conftest.dir
4572 else
4573 am_cv_CC_dependencies_compiler_type=none
4574 fi
4575
4576 fi
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4578 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4579 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4580
4581 if
4582 test "x$enable_dependency_tracking" != xno \
4583 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4584 am__fastdepCC_TRUE=
4585 am__fastdepCC_FALSE='#'
4586 else
4587 am__fastdepCC_TRUE='#'
4588 am__fastdepCC_FALSE=
4589 fi
4590
4591
4592 ac_ext=cpp
4593 ac_cpp='$CXXCPP $CPPFLAGS'
4594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4597 if test -z "$CXX"; then
4598 if test -n "$CCC"; then
4599 CXX=$CCC
4600 else
4601 if test -n "$ac_tool_prefix"; then
4602 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4603 do
4604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4605 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607 $as_echo_n "checking for $ac_word... " >&6; }
4608 if ${ac_cv_prog_CXX+:} false; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 if test -n "$CXX"; then
4612 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4613 else
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4616 do
4617 IFS=$as_save_IFS
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 break 2
4624 fi
4625 done
4626 done
4627 IFS=$as_save_IFS
4628
4629 fi
4630 fi
4631 CXX=$ac_cv_prog_CXX
4632 if test -n "$CXX"; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4634 $as_echo "$CXX" >&6; }
4635 else
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637 $as_echo "no" >&6; }
4638 fi
4639
4640
4641 test -n "$CXX" && break
4642 done
4643 fi
4644 if test -z "$CXX"; then
4645 ac_ct_CXX=$CXX
4646 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4647 do
4648 # Extract the first word of "$ac_prog", so it can be a program name with args.
4649 set dummy $ac_prog; ac_word=$2
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 if test -n "$ac_ct_CXX"; then
4656 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4657 else
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4660 do
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4665 ac_cv_prog_ac_ct_CXX="$ac_prog"
4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4668 fi
4669 done
4670 done
4671 IFS=$as_save_IFS
4672
4673 fi
4674 fi
4675 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4676 if test -n "$ac_ct_CXX"; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4678 $as_echo "$ac_ct_CXX" >&6; }
4679 else
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681 $as_echo "no" >&6; }
4682 fi
4683
4684
4685 test -n "$ac_ct_CXX" && break
4686 done
4687
4688 if test "x$ac_ct_CXX" = x; then
4689 CXX="g++"
4690 else
4691 case $cross_compiling:$ac_tool_warned in
4692 yes:)
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4695 ac_tool_warned=yes ;;
4696 esac
4697 CXX=$ac_ct_CXX
4698 fi
4699 fi
4700
4701 fi
4702 fi
4703 # Provide some information about the compiler.
4704 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4705 set X $ac_compile
4706 ac_compiler=$2
4707 for ac_option in --version -v -V -qversion; do
4708 { { ac_try="$ac_compiler $ac_option >&5"
4709 case "(($ac_try" in
4710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4711 *) ac_try_echo=$ac_try;;
4712 esac
4713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4714 $as_echo "$ac_try_echo"; } >&5
4715 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4716 ac_status=$?
4717 if test -s conftest.err; then
4718 sed '10a\
4719 ... rest of stderr output deleted ...
4720 10q' conftest.err >conftest.er1
4721 cat conftest.er1 >&5
4722 fi
4723 rm -f conftest.er1 conftest.err
4724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4725 test $ac_status = 0; }
4726 done
4727
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4729 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4730 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4731 $as_echo_n "(cached) " >&6
4732 else
4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4735
4736 int
4737 main ()
4738 {
4739 #ifndef __GNUC__
4740 choke me
4741 #endif
4742
4743 ;
4744 return 0;
4745 }
4746 _ACEOF
4747 if ac_fn_cxx_try_compile "$LINENO"; then :
4748 ac_compiler_gnu=yes
4749 else
4750 ac_compiler_gnu=no
4751 fi
4752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4754
4755 fi
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4757 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4758 if test $ac_compiler_gnu = yes; then
4759 GXX=yes
4760 else
4761 GXX=
4762 fi
4763 ac_test_CXXFLAGS=${CXXFLAGS+set}
4764 ac_save_CXXFLAGS=$CXXFLAGS
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4766 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4767 if ${ac_cv_prog_cxx_g+:} false; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4771 ac_cxx_werror_flag=yes
4772 ac_cv_prog_cxx_g=no
4773 CXXFLAGS="-g"
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4776
4777 int
4778 main ()
4779 {
4780
4781 ;
4782 return 0;
4783 }
4784 _ACEOF
4785 if ac_fn_cxx_try_compile "$LINENO"; then :
4786 ac_cv_prog_cxx_g=yes
4787 else
4788 CXXFLAGS=""
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h. */
4791
4792 int
4793 main ()
4794 {
4795
4796 ;
4797 return 0;
4798 }
4799 _ACEOF
4800 if ac_fn_cxx_try_compile "$LINENO"; then :
4801
4802 else
4803 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4804 CXXFLAGS="-g"
4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806 /* end confdefs.h. */
4807
4808 int
4809 main ()
4810 {
4811
4812 ;
4813 return 0;
4814 }
4815 _ACEOF
4816 if ac_fn_cxx_try_compile "$LINENO"; then :
4817 ac_cv_prog_cxx_g=yes
4818 fi
4819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820 fi
4821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822 fi
4823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4825 fi
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4827 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4828 if test "$ac_test_CXXFLAGS" = set; then
4829 CXXFLAGS=$ac_save_CXXFLAGS
4830 elif test $ac_cv_prog_cxx_g = yes; then
4831 if test "$GXX" = yes; then
4832 CXXFLAGS="-g -O2"
4833 else
4834 CXXFLAGS="-g"
4835 fi
4836 else
4837 if test "$GXX" = yes; then
4838 CXXFLAGS="-O2"
4839 else
4840 CXXFLAGS=
4841 fi
4842 fi
4843 ac_ext=c
4844 ac_cpp='$CPP $CPPFLAGS'
4845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4848
4849 depcc="$CXX" am_compiler_list=
4850
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4852 $as_echo_n "checking dependency style of $depcc... " >&6; }
4853 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4857 # We make a subdir and do the tests there. Otherwise we can end up
4858 # making bogus files that we don't know about and never remove. For
4859 # instance it was reported that on HP-UX the gcc test will end up
4860 # making a dummy file named 'D' -- because '-MD' means "put the output
4861 # in D".
4862 rm -rf conftest.dir
4863 mkdir conftest.dir
4864 # Copy depcomp to subdir because otherwise we won't find it if we're
4865 # using a relative directory.
4866 cp "$am_depcomp" conftest.dir
4867 cd conftest.dir
4868 # We will build objects and dependencies in a subdirectory because
4869 # it helps to detect inapplicable dependency modes. For instance
4870 # both Tru64's cc and ICC support -MD to output dependencies as a
4871 # side effect of compilation, but ICC will put the dependencies in
4872 # the current directory while Tru64 will put them in the object
4873 # directory.
4874 mkdir sub
4875
4876 am_cv_CXX_dependencies_compiler_type=none
4877 if test "$am_compiler_list" = ""; then
4878 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4879 fi
4880 am__universal=false
4881 case " $depcc " in #(
4882 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4883 esac
4884
4885 for depmode in $am_compiler_list; do
4886 # Setup a source with many dependencies, because some compilers
4887 # like to wrap large dependency lists on column 80 (with \), and
4888 # we should not choose a depcomp mode which is confused by this.
4889 #
4890 # We need to recreate these files for each test, as the compiler may
4891 # overwrite some of them when testing with obscure command lines.
4892 # This happens at least with the AIX C compiler.
4893 : > sub/conftest.c
4894 for i in 1 2 3 4 5 6; do
4895 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4896 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4897 # Solaris 10 /bin/sh.
4898 echo '/* dummy */' > sub/conftst$i.h
4899 done
4900 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4901
4902 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4903 # mode. It turns out that the SunPro C++ compiler does not properly
4904 # handle '-M -o', and we need to detect this. Also, some Intel
4905 # versions had trouble with output in subdirs.
4906 am__obj=sub/conftest.${OBJEXT-o}
4907 am__minus_obj="-o $am__obj"
4908 case $depmode in
4909 gcc)
4910 # This depmode causes a compiler race in universal mode.
4911 test "$am__universal" = false || continue
4912 ;;
4913 nosideeffect)
4914 # After this tag, mechanisms are not by side-effect, so they'll
4915 # only be used when explicitly requested.
4916 if test "x$enable_dependency_tracking" = xyes; then
4917 continue
4918 else
4919 break
4920 fi
4921 ;;
4922 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4923 # This compiler won't grok '-c -o', but also, the minuso test has
4924 # not run yet. These depmodes are late enough in the game, and
4925 # so weak that their functioning should not be impacted.
4926 am__obj=conftest.${OBJEXT-o}
4927 am__minus_obj=
4928 ;;
4929 none) break ;;
4930 esac
4931 if depmode=$depmode \
4932 source=sub/conftest.c object=$am__obj \
4933 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4934 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4935 >/dev/null 2>conftest.err &&
4936 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4937 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4938 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4939 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4940 # icc doesn't choke on unknown options, it will just issue warnings
4941 # or remarks (even with -Werror). So we grep stderr for any message
4942 # that says an option was ignored or not supported.
4943 # When given -MP, icc 7.0 and 7.1 complain thusly:
4944 # icc: Command line warning: ignoring option '-M'; no argument required
4945 # The diagnosis changed in icc 8.0:
4946 # icc: Command line remark: option '-MP' not supported
4947 if (grep 'ignoring option' conftest.err ||
4948 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4949 am_cv_CXX_dependencies_compiler_type=$depmode
4950 break
4951 fi
4952 fi
4953 done
4954
4955 cd ..
4956 rm -rf conftest.dir
4957 else
4958 am_cv_CXX_dependencies_compiler_type=none
4959 fi
4960
4961 fi
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4963 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4964 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4965
4966 if
4967 test "x$enable_dependency_tracking" != xno \
4968 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4969 am__fastdepCXX_TRUE=
4970 am__fastdepCXX_FALSE='#'
4971 else
4972 am__fastdepCXX_TRUE='#'
4973 am__fastdepCXX_FALSE=
4974 fi
4975
4976
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4978 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4979 if ${ac_cv_path_GREP+:} false; then :
4980 $as_echo_n "(cached) " >&6
4981 else
4982 if test -z "$GREP"; then
4983 ac_path_GREP_found=false
4984 # Loop through the user's path and test for each of PROGNAME-LIST
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4987 do
4988 IFS=$as_save_IFS
4989 test -z "$as_dir" && as_dir=.
4990 for ac_prog in grep ggrep; do
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4993 as_fn_executable_p "$ac_path_GREP" || continue
4994 # Check for GNU ac_path_GREP and select it if it is found.
4995 # Check for GNU $ac_path_GREP
4996 case `"$ac_path_GREP" --version 2>&1` in
4997 *GNU*)
4998 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4999 *)
5000 ac_count=0
5001 $as_echo_n 0123456789 >"conftest.in"
5002 while :
5003 do
5004 cat "conftest.in" "conftest.in" >"conftest.tmp"
5005 mv "conftest.tmp" "conftest.in"
5006 cp "conftest.in" "conftest.nl"
5007 $as_echo 'GREP' >> "conftest.nl"
5008 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5010 as_fn_arith $ac_count + 1 && ac_count=$as_val
5011 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5012 # Best one so far, save it but keep looking for a better one
5013 ac_cv_path_GREP="$ac_path_GREP"
5014 ac_path_GREP_max=$ac_count
5015 fi
5016 # 10*(2^10) chars as input seems more than enough
5017 test $ac_count -gt 10 && break
5018 done
5019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5020 esac
5021
5022 $ac_path_GREP_found && break 3
5023 done
5024 done
5025 done
5026 IFS=$as_save_IFS
5027 if test -z "$ac_cv_path_GREP"; then
5028 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5029 fi
5030 else
5031 ac_cv_path_GREP=$GREP
5032 fi
5033
5034 fi
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5036 $as_echo "$ac_cv_path_GREP" >&6; }
5037 GREP="$ac_cv_path_GREP"
5038
5039
5040
5041 ac_ext=c
5042 ac_cpp='$CPP $CPPFLAGS'
5043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5047 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5048 # On Suns, sometimes $CPP names a directory.
5049 if test -n "$CPP" && test -d "$CPP"; then
5050 CPP=
5051 fi
5052 if test -z "$CPP"; then
5053 if ${ac_cv_prog_CPP+:} false; then :
5054 $as_echo_n "(cached) " >&6
5055 else
5056 # Double quotes because CPP needs to be expanded
5057 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5058 do
5059 ac_preproc_ok=false
5060 for ac_c_preproc_warn_flag in '' yes
5061 do
5062 # Use a header file that comes with gcc, so configuring glibc
5063 # with a fresh cross-compiler works.
5064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5065 # <limits.h> exists even on freestanding compilers.
5066 # On the NeXT, cc -E runs the code through the compiler's parser,
5067 # not just through cpp. "Syntax error" is here to catch this case.
5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h. */
5070 #ifdef __STDC__
5071 # include <limits.h>
5072 #else
5073 # include <assert.h>
5074 #endif
5075 Syntax error
5076 _ACEOF
5077 if ac_fn_c_try_cpp "$LINENO"; then :
5078
5079 else
5080 # Broken: fails on valid input.
5081 continue
5082 fi
5083 rm -f conftest.err conftest.i conftest.$ac_ext
5084
5085 # OK, works on sane cases. Now check whether nonexistent headers
5086 # can be detected and how.
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5089 #include <ac_nonexistent.h>
5090 _ACEOF
5091 if ac_fn_c_try_cpp "$LINENO"; then :
5092 # Broken: success on invalid input.
5093 continue
5094 else
5095 # Passes both tests.
5096 ac_preproc_ok=:
5097 break
5098 fi
5099 rm -f conftest.err conftest.i conftest.$ac_ext
5100
5101 done
5102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5103 rm -f conftest.i conftest.err conftest.$ac_ext
5104 if $ac_preproc_ok; then :
5105 break
5106 fi
5107
5108 done
5109 ac_cv_prog_CPP=$CPP
5110
5111 fi
5112 CPP=$ac_cv_prog_CPP
5113 else
5114 ac_cv_prog_CPP=$CPP
5115 fi
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5117 $as_echo "$CPP" >&6; }
5118 ac_preproc_ok=false
5119 for ac_c_preproc_warn_flag in '' yes
5120 do
5121 # Use a header file that comes with gcc, so configuring glibc
5122 # with a fresh cross-compiler works.
5123 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5124 # <limits.h> exists even on freestanding compilers.
5125 # On the NeXT, cc -E runs the code through the compiler's parser,
5126 # not just through cpp. "Syntax error" is here to catch this case.
5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128 /* end confdefs.h. */
5129 #ifdef __STDC__
5130 # include <limits.h>
5131 #else
5132 # include <assert.h>
5133 #endif
5134 Syntax error
5135 _ACEOF
5136 if ac_fn_c_try_cpp "$LINENO"; then :
5137
5138 else
5139 # Broken: fails on valid input.
5140 continue
5141 fi
5142 rm -f conftest.err conftest.i conftest.$ac_ext
5143
5144 # OK, works on sane cases. Now check whether nonexistent headers
5145 # can be detected and how.
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5148 #include <ac_nonexistent.h>
5149 _ACEOF
5150 if ac_fn_c_try_cpp "$LINENO"; then :
5151 # Broken: success on invalid input.
5152 continue
5153 else
5154 # Passes both tests.
5155 ac_preproc_ok=:
5156 break
5157 fi
5158 rm -f conftest.err conftest.i conftest.$ac_ext
5159
5160 done
5161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5162 rm -f conftest.i conftest.err conftest.$ac_ext
5163 if $ac_preproc_ok; then :
5164
5165 else
5166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5168 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5169 See \`config.log' for more details" "$LINENO" 5; }
5170 fi
5171
5172 ac_ext=c
5173 ac_cpp='$CPP $CPPFLAGS'
5174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5177
5178
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5180 $as_echo_n "checking for egrep... " >&6; }
5181 if ${ac_cv_path_EGREP+:} false; then :
5182 $as_echo_n "(cached) " >&6
5183 else
5184 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5185 then ac_cv_path_EGREP="$GREP -E"
5186 else
5187 if test -z "$EGREP"; then
5188 ac_path_EGREP_found=false
5189 # Loop through the user's path and test for each of PROGNAME-LIST
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5192 do
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_prog in egrep; do
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5198 as_fn_executable_p "$ac_path_EGREP" || continue
5199 # Check for GNU ac_path_EGREP and select it if it is found.
5200 # Check for GNU $ac_path_EGREP
5201 case `"$ac_path_EGREP" --version 2>&1` in
5202 *GNU*)
5203 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5204 *)
5205 ac_count=0
5206 $as_echo_n 0123456789 >"conftest.in"
5207 while :
5208 do
5209 cat "conftest.in" "conftest.in" >"conftest.tmp"
5210 mv "conftest.tmp" "conftest.in"
5211 cp "conftest.in" "conftest.nl"
5212 $as_echo 'EGREP' >> "conftest.nl"
5213 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5215 as_fn_arith $ac_count + 1 && ac_count=$as_val
5216 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5217 # Best one so far, save it but keep looking for a better one
5218 ac_cv_path_EGREP="$ac_path_EGREP"
5219 ac_path_EGREP_max=$ac_count
5220 fi
5221 # 10*(2^10) chars as input seems more than enough
5222 test $ac_count -gt 10 && break
5223 done
5224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5225 esac
5226
5227 $ac_path_EGREP_found && break 3
5228 done
5229 done
5230 done
5231 IFS=$as_save_IFS
5232 if test -z "$ac_cv_path_EGREP"; then
5233 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5234 fi
5235 else
5236 ac_cv_path_EGREP=$EGREP
5237 fi
5238
5239 fi
5240 fi
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5242 $as_echo "$ac_cv_path_EGREP" >&6; }
5243 EGREP="$ac_cv_path_EGREP"
5244
5245
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5247 $as_echo_n "checking for ANSI C header files... " >&6; }
5248 if ${ac_cv_header_stdc+:} false; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h. */
5253 #include <stdlib.h>
5254 #include <stdarg.h>
5255 #include <string.h>
5256 #include <float.h>
5257
5258 int
5259 main ()
5260 {
5261
5262 ;
5263 return 0;
5264 }
5265 _ACEOF
5266 if ac_fn_c_try_compile "$LINENO"; then :
5267 ac_cv_header_stdc=yes
5268 else
5269 ac_cv_header_stdc=no
5270 fi
5271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5272
5273 if test $ac_cv_header_stdc = yes; then
5274 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5277 #include <string.h>
5278
5279 _ACEOF
5280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5281 $EGREP "memchr" >/dev/null 2>&1; then :
5282
5283 else
5284 ac_cv_header_stdc=no
5285 fi
5286 rm -f conftest*
5287
5288 fi
5289
5290 if test $ac_cv_header_stdc = yes; then
5291 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293 /* end confdefs.h. */
5294 #include <stdlib.h>
5295
5296 _ACEOF
5297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5298 $EGREP "free" >/dev/null 2>&1; then :
5299
5300 else
5301 ac_cv_header_stdc=no
5302 fi
5303 rm -f conftest*
5304
5305 fi
5306
5307 if test $ac_cv_header_stdc = yes; then
5308 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5309 if test "$cross_compiling" = yes; then :
5310 :
5311 else
5312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313 /* end confdefs.h. */
5314 #include <ctype.h>
5315 #include <stdlib.h>
5316 #if ((' ' & 0x0FF) == 0x020)
5317 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5318 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5319 #else
5320 # define ISLOWER(c) \
5321 (('a' <= (c) && (c) <= 'i') \
5322 || ('j' <= (c) && (c) <= 'r') \
5323 || ('s' <= (c) && (c) <= 'z'))
5324 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5325 #endif
5326
5327 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5328 int
5329 main ()
5330 {
5331 int i;
5332 for (i = 0; i < 256; i++)
5333 if (XOR (islower (i), ISLOWER (i))
5334 || toupper (i) != TOUPPER (i))
5335 return 2;
5336 return 0;
5337 }
5338 _ACEOF
5339 if ac_fn_c_try_run "$LINENO"; then :
5340
5341 else
5342 ac_cv_header_stdc=no
5343 fi
5344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5345 conftest.$ac_objext conftest.beam conftest.$ac_ext
5346 fi
5347
5348 fi
5349 fi
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5351 $as_echo "$ac_cv_header_stdc" >&6; }
5352 if test $ac_cv_header_stdc = yes; then
5353
5354 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5355
5356 fi
5357
5358 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5359 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5360 inttypes.h stdint.h unistd.h
5361 do :
5362 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5363 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5364 "
5365 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5366 cat >>confdefs.h <<_ACEOF
5367 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5368 _ACEOF
5369
5370 fi
5371
5372 done
5373
5374
5375
5376 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5377 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5378 MINIX=yes
5379 else
5380 MINIX=
5381 fi
5382
5383
5384 if test "$MINIX" = yes; then
5385
5386 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5387
5388
5389 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5390
5391
5392 $as_echo "#define _MINIX 1" >>confdefs.h
5393
5394 fi
5395
5396
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5398 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5399 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5400 $as_echo_n "(cached) " >&6
5401 else
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5404
5405 # define __EXTENSIONS__ 1
5406 $ac_includes_default
5407 int
5408 main ()
5409 {
5410
5411 ;
5412 return 0;
5413 }
5414 _ACEOF
5415 if ac_fn_c_try_compile "$LINENO"; then :
5416 ac_cv_safe_to_define___extensions__=yes
5417 else
5418 ac_cv_safe_to_define___extensions__=no
5419 fi
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 fi
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5423 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5424 test $ac_cv_safe_to_define___extensions__ = yes &&
5425 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5426
5427 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5428
5429 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5430
5431 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5432
5433 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5445 if test -n "$ac_tool_prefix"; then
5446 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5447 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5451 $as_echo_n "(cached) " >&6
5452 else
5453 case $PKG_CONFIG in
5454 [\\/]* | ?:[\\/]*)
5455 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5456 ;;
5457 *)
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 for as_dir in $PATH
5460 do
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5465 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 break 2
5468 fi
5469 done
5470 done
5471 IFS=$as_save_IFS
5472
5473 ;;
5474 esac
5475 fi
5476 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5477 if test -n "$PKG_CONFIG"; then
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5479 $as_echo "$PKG_CONFIG" >&6; }
5480 else
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482 $as_echo "no" >&6; }
5483 fi
5484
5485
5486 fi
5487 if test -z "$ac_cv_path_PKG_CONFIG"; then
5488 ac_pt_PKG_CONFIG=$PKG_CONFIG
5489 # Extract the first word of "pkg-config", so it can be a program name with args.
5490 set dummy pkg-config; ac_word=$2
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5492 $as_echo_n "checking for $ac_word... " >&6; }
5493 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5494 $as_echo_n "(cached) " >&6
5495 else
5496 case $ac_pt_PKG_CONFIG in
5497 [\\/]* | ?:[\\/]*)
5498 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5499 ;;
5500 *)
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 for as_dir in $PATH
5503 do
5504 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5508 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 break 2
5511 fi
5512 done
5513 done
5514 IFS=$as_save_IFS
5515
5516 ;;
5517 esac
5518 fi
5519 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5520 if test -n "$ac_pt_PKG_CONFIG"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5522 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5523 else
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5526 fi
5527
5528 if test "x$ac_pt_PKG_CONFIG" = x; then
5529 PKG_CONFIG=""
5530 else
5531 case $cross_compiling:$ac_tool_warned in
5532 yes:)
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5535 ac_tool_warned=yes ;;
5536 esac
5537 PKG_CONFIG=$ac_pt_PKG_CONFIG
5538 fi
5539 else
5540 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5541 fi
5542
5543 fi
5544 if test -n "$PKG_CONFIG"; then
5545 _pkg_min_version=0.9.0
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5547 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5548 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5550 $as_echo "yes" >&6; }
5551 else
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5553 $as_echo "no" >&6; }
5554 PKG_CONFIG=""
5555 fi
5556 fi
5557
5558 case `pwd` in
5559 *\ * | *\ *)
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5561 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5562 esac
5563
5564
5565
5566 macro_version='2.2.7a'
5567 macro_revision='1.3134'
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581 ltmain="$ac_aux_dir/ltmain.sh"
5582
5583 # Backslashify metacharacters that are still active within
5584 # double-quoted strings.
5585 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5586
5587 # Same as above, but do not quote variable references.
5588 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5589
5590 # Sed substitution to delay expansion of an escaped shell variable in a
5591 # double_quote_subst'ed string.
5592 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5593
5594 # Sed substitution to delay expansion of an escaped single quote.
5595 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5596
5597 # Sed substitution to avoid accidental globbing in evaled expressions
5598 no_glob_subst='s/\*/\\\*/g'
5599
5600 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5601 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5602 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5603
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5605 $as_echo_n "checking how to print strings... " >&6; }
5606 # Test print first, because it will be a builtin if present.
5607 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5608 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5609 ECHO='print -r --'
5610 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5611 ECHO='printf %s\n'
5612 else
5613 # Use this function as a fallback that always works.
5614 func_fallback_echo ()
5615 {
5616 eval 'cat <<_LTECHO_EOF
5617 $1
5618 _LTECHO_EOF'
5619 }
5620 ECHO='func_fallback_echo'
5621 fi
5622
5623 # func_echo_all arg...
5624 # Invoke $ECHO with all args, space-separated.
5625 func_echo_all ()
5626 {
5627 $ECHO ""
5628 }
5629
5630 case "$ECHO" in
5631 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5632 $as_echo "printf" >&6; } ;;
5633 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5634 $as_echo "print -r" >&6; } ;;
5635 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5636 $as_echo "cat" >&6; } ;;
5637 esac
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5653 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5654 if ${ac_cv_path_SED+:} false; then :
5655 $as_echo_n "(cached) " >&6
5656 else
5657 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5658 for ac_i in 1 2 3 4 5 6 7; do
5659 ac_script="$ac_script$as_nl$ac_script"
5660 done
5661 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5662 { ac_script=; unset ac_script;}
5663 if test -z "$SED"; then
5664 ac_path_SED_found=false
5665 # Loop through the user's path and test for each of PROGNAME-LIST
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 for as_dir in $PATH
5668 do
5669 IFS=$as_save_IFS
5670 test -z "$as_dir" && as_dir=.
5671 for ac_prog in sed gsed; do
5672 for ac_exec_ext in '' $ac_executable_extensions; do
5673 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5674 as_fn_executable_p "$ac_path_SED" || continue
5675 # Check for GNU ac_path_SED and select it if it is found.
5676 # Check for GNU $ac_path_SED
5677 case `"$ac_path_SED" --version 2>&1` in
5678 *GNU*)
5679 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5680 *)
5681 ac_count=0
5682 $as_echo_n 0123456789 >"conftest.in"
5683 while :
5684 do
5685 cat "conftest.in" "conftest.in" >"conftest.tmp"
5686 mv "conftest.tmp" "conftest.in"
5687 cp "conftest.in" "conftest.nl"
5688 $as_echo '' >> "conftest.nl"
5689 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5690 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5691 as_fn_arith $ac_count + 1 && ac_count=$as_val
5692 if test $ac_count -gt ${ac_path_SED_max-0}; then
5693 # Best one so far, save it but keep looking for a better one
5694 ac_cv_path_SED="$ac_path_SED"
5695 ac_path_SED_max=$ac_count
5696 fi
5697 # 10*(2^10) chars as input seems more than enough
5698 test $ac_count -gt 10 && break
5699 done
5700 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5701 esac
5702
5703 $ac_path_SED_found && break 3
5704 done
5705 done
5706 done
5707 IFS=$as_save_IFS
5708 if test -z "$ac_cv_path_SED"; then
5709 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5710 fi
5711 else
5712 ac_cv_path_SED=$SED
5713 fi
5714
5715 fi
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5717 $as_echo "$ac_cv_path_SED" >&6; }
5718 SED="$ac_cv_path_SED"
5719 rm -f conftest.sed
5720
5721 test -z "$SED" && SED=sed
5722 Xsed="$SED -e 1s/^X//"
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5735 $as_echo_n "checking for fgrep... " >&6; }
5736 if ${ac_cv_path_FGREP+:} false; then :
5737 $as_echo_n "(cached) " >&6
5738 else
5739 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5740 then ac_cv_path_FGREP="$GREP -F"
5741 else
5742 if test -z "$FGREP"; then
5743 ac_path_FGREP_found=false
5744 # Loop through the user's path and test for each of PROGNAME-LIST
5745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5747 do
5748 IFS=$as_save_IFS
5749 test -z "$as_dir" && as_dir=.
5750 for ac_prog in fgrep; do
5751 for ac_exec_ext in '' $ac_executable_extensions; do
5752 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5753 as_fn_executable_p "$ac_path_FGREP" || continue
5754 # Check for GNU ac_path_FGREP and select it if it is found.
5755 # Check for GNU $ac_path_FGREP
5756 case `"$ac_path_FGREP" --version 2>&1` in
5757 *GNU*)
5758 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5759 *)
5760 ac_count=0
5761 $as_echo_n 0123456789 >"conftest.in"
5762 while :
5763 do
5764 cat "conftest.in" "conftest.in" >"conftest.tmp"
5765 mv "conftest.tmp" "conftest.in"
5766 cp "conftest.in" "conftest.nl"
5767 $as_echo 'FGREP' >> "conftest.nl"
5768 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5769 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5770 as_fn_arith $ac_count + 1 && ac_count=$as_val
5771 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5772 # Best one so far, save it but keep looking for a better one
5773 ac_cv_path_FGREP="$ac_path_FGREP"
5774 ac_path_FGREP_max=$ac_count
5775 fi
5776 # 10*(2^10) chars as input seems more than enough
5777 test $ac_count -gt 10 && break
5778 done
5779 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5780 esac
5781
5782 $ac_path_FGREP_found && break 3
5783 done
5784 done
5785 done
5786 IFS=$as_save_IFS
5787 if test -z "$ac_cv_path_FGREP"; then
5788 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5789 fi
5790 else
5791 ac_cv_path_FGREP=$FGREP
5792 fi
5793
5794 fi
5795 fi
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5797 $as_echo "$ac_cv_path_FGREP" >&6; }
5798 FGREP="$ac_cv_path_FGREP"
5799
5800
5801 test -z "$GREP" && GREP=grep
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821 # Check whether --with-gnu-ld was given.
5822 if test "${with_gnu_ld+set}" = set; then :
5823 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5824 else
5825 with_gnu_ld=no
5826 fi
5827
5828 ac_prog=ld
5829 if test "$GCC" = yes; then
5830 # Check if gcc -print-prog-name=ld gives a path.
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5832 $as_echo_n "checking for ld used by $CC... " >&6; }
5833 case $host in
5834 *-*-mingw*)
5835 # gcc leaves a trailing carriage return which upsets mingw
5836 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5837 *)
5838 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5839 esac
5840 case $ac_prog in
5841 # Accept absolute paths.
5842 [\\/]* | ?:[\\/]*)
5843 re_direlt='/[^/][^/]*/\.\./'
5844 # Canonicalize the pathname of ld
5845 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5846 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5847 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5848 done
5849 test -z "$LD" && LD="$ac_prog"
5850 ;;
5851 "")
5852 # If it fails, then pretend we aren't using GCC.
5853 ac_prog=ld
5854 ;;
5855 *)
5856 # If it is relative, then search for the first ld in PATH.
5857 with_gnu_ld=unknown
5858 ;;
5859 esac
5860 elif test "$with_gnu_ld" = yes; then
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5862 $as_echo_n "checking for GNU ld... " >&6; }
5863 else
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5865 $as_echo_n "checking for non-GNU ld... " >&6; }
5866 fi
5867 if ${lt_cv_path_LD+:} false; then :
5868 $as_echo_n "(cached) " >&6
5869 else
5870 if test -z "$LD"; then
5871 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5872 for ac_dir in $PATH; do
5873 IFS="$lt_save_ifs"
5874 test -z "$ac_dir" && ac_dir=.
5875 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5876 lt_cv_path_LD="$ac_dir/$ac_prog"
5877 # Check to see if the program is GNU ld. I'd rather use --version,
5878 # but apparently some variants of GNU ld only accept -v.
5879 # Break only if it was the GNU/non-GNU ld that we prefer.
5880 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5881 *GNU* | *'with BFD'*)
5882 test "$with_gnu_ld" != no && break
5883 ;;
5884 *)
5885 test "$with_gnu_ld" != yes && break
5886 ;;
5887 esac
5888 fi
5889 done
5890 IFS="$lt_save_ifs"
5891 else
5892 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5893 fi
5894 fi
5895
5896 LD="$lt_cv_path_LD"
5897 if test -n "$LD"; then
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5899 $as_echo "$LD" >&6; }
5900 else
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902 $as_echo "no" >&6; }
5903 fi
5904 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5906 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5907 if ${lt_cv_prog_gnu_ld+:} false; then :
5908 $as_echo_n "(cached) " >&6
5909 else
5910 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5911 case `$LD -v 2>&1 </dev/null` in
5912 *GNU* | *'with BFD'*)
5913 lt_cv_prog_gnu_ld=yes
5914 ;;
5915 *)
5916 lt_cv_prog_gnu_ld=no
5917 ;;
5918 esac
5919 fi
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5921 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5922 with_gnu_ld=$lt_cv_prog_gnu_ld
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5933 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5934 if ${lt_cv_path_NM+:} false; then :
5935 $as_echo_n "(cached) " >&6
5936 else
5937 if test -n "$NM"; then
5938 # Let the user override the nm to test.
5939 lt_nm_to_check="$NM"
5940 else
5941 lt_nm_to_check="${ac_tool_prefix}nm"
5942 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5943 lt_nm_to_check="$lt_nm_to_check nm"
5944 fi
5945 fi
5946 for lt_tmp_nm in "$lt_nm_to_check"; do
5947 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5948 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5949 IFS="$lt_save_ifs"
5950 test -z "$ac_dir" && ac_dir=.
5951 # Strip out any user-provided options from the nm to test twice,
5952 # the first time to test to see if nm (rather than its options) has
5953 # an explicit path, the second time to yield a file which can be
5954 # nm'ed itself.
5955 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5956 case "$tmp_nm_path" in
5957 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5958 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5959 esac
5960 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5961 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5962 # Check to see if the nm accepts a BSD-compat flag.
5963 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5964 # nm: unknown option "B" ignored
5965 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5966 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5967 break
5968 ;;
5969 *)
5970 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5971 *$tmp_nm*)
5972 lt_cv_path_NM="$tmp_nm -p"
5973 break
5974 ;;
5975 *)
5976 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5977 continue # so that we can try to find one that supports BSD flags
5978 ;;
5979 esac
5980 ;;
5981 esac
5982 fi
5983 done
5984 IFS="$lt_save_ifs"
5985 done
5986 : ${lt_cv_path_NM=no}
5987 fi
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5989 $as_echo "$lt_cv_path_NM" >&6; }
5990 if test "$lt_cv_path_NM" != "no"; then
5991 NM="$lt_cv_path_NM"
5992 else
5993 # Didn't find any BSD compatible name lister, look for dumpbin.
5994 if test -n "$DUMPBIN"; then :
5995 # Let the user override the test.
5996 else
5997 if test -n "$ac_tool_prefix"; then
5998 for ac_prog in dumpbin "link -dump"
5999 do
6000 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6001 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003 $as_echo_n "checking for $ac_word... " >&6; }
6004 if ${ac_cv_prog_DUMPBIN+:} false; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 if test -n "$DUMPBIN"; then
6008 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6009 else
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH
6012 do
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6017 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 break 2
6020 fi
6021 done
6022 done
6023 IFS=$as_save_IFS
6024
6025 fi
6026 fi
6027 DUMPBIN=$ac_cv_prog_DUMPBIN
6028 if test -n "$DUMPBIN"; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6030 $as_echo "$DUMPBIN" >&6; }
6031 else
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033 $as_echo "no" >&6; }
6034 fi
6035
6036
6037 test -n "$DUMPBIN" && break
6038 done
6039 fi
6040 if test -z "$DUMPBIN"; then
6041 ac_ct_DUMPBIN=$DUMPBIN
6042 for ac_prog in dumpbin "link -dump"
6043 do
6044 # Extract the first word of "$ac_prog", so it can be a program name with args.
6045 set dummy $ac_prog; ac_word=$2
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6047 $as_echo_n "checking for $ac_word... " >&6; }
6048 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6049 $as_echo_n "(cached) " >&6
6050 else
6051 if test -n "$ac_ct_DUMPBIN"; then
6052 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6053 else
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 for as_dir in $PATH
6056 do
6057 IFS=$as_save_IFS
6058 test -z "$as_dir" && as_dir=.
6059 for ac_exec_ext in '' $ac_executable_extensions; do
6060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6061 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6063 break 2
6064 fi
6065 done
6066 done
6067 IFS=$as_save_IFS
6068
6069 fi
6070 fi
6071 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6072 if test -n "$ac_ct_DUMPBIN"; then
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6074 $as_echo "$ac_ct_DUMPBIN" >&6; }
6075 else
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077 $as_echo "no" >&6; }
6078 fi
6079
6080
6081 test -n "$ac_ct_DUMPBIN" && break
6082 done
6083
6084 if test "x$ac_ct_DUMPBIN" = x; then
6085 DUMPBIN=":"
6086 else
6087 case $cross_compiling:$ac_tool_warned in
6088 yes:)
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6091 ac_tool_warned=yes ;;
6092 esac
6093 DUMPBIN=$ac_ct_DUMPBIN
6094 fi
6095 fi
6096
6097 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6098 *COFF*)
6099 DUMPBIN="$DUMPBIN -symbols"
6100 ;;
6101 *)
6102 DUMPBIN=:
6103 ;;
6104 esac
6105 fi
6106
6107 if test "$DUMPBIN" != ":"; then
6108 NM="$DUMPBIN"
6109 fi
6110 fi
6111 test -z "$NM" && NM=nm
6112
6113
6114
6115
6116
6117
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6119 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6120 if ${lt_cv_nm_interface+:} false; then :
6121 $as_echo_n "(cached) " >&6
6122 else
6123 lt_cv_nm_interface="BSD nm"
6124 echo "int some_variable = 0;" > conftest.$ac_ext
6125 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6126 (eval "$ac_compile" 2>conftest.err)
6127 cat conftest.err >&5
6128 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6129 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6130 cat conftest.err >&5
6131 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6132 cat conftest.out >&5
6133 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6134 lt_cv_nm_interface="MS dumpbin"
6135 fi
6136 rm -f conftest*
6137 fi
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6139 $as_echo "$lt_cv_nm_interface" >&6; }
6140
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6142 $as_echo_n "checking whether ln -s works... " >&6; }
6143 LN_S=$as_ln_s
6144 if test "$LN_S" = "ln -s"; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6146 $as_echo "yes" >&6; }
6147 else
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6149 $as_echo "no, using $LN_S" >&6; }
6150 fi
6151
6152 # find the maximum length of command line arguments
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6154 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6155 if ${lt_cv_sys_max_cmd_len+:} false; then :
6156 $as_echo_n "(cached) " >&6
6157 else
6158 i=0
6159 teststring="ABCD"
6160
6161 case $build_os in
6162 msdosdjgpp*)
6163 # On DJGPP, this test can blow up pretty badly due to problems in libc
6164 # (any single argument exceeding 2000 bytes causes a buffer overrun
6165 # during glob expansion). Even if it were fixed, the result of this
6166 # check would be larger than it should be.
6167 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6168 ;;
6169
6170 gnu*)
6171 # Under GNU Hurd, this test is not required because there is
6172 # no limit to the length of command line arguments.
6173 # Libtool will interpret -1 as no limit whatsoever
6174 lt_cv_sys_max_cmd_len=-1;
6175 ;;
6176
6177 cygwin* | mingw* | cegcc*)
6178 # On Win9x/ME, this test blows up -- it succeeds, but takes
6179 # about 5 minutes as the teststring grows exponentially.
6180 # Worse, since 9x/ME are not pre-emptively multitasking,
6181 # you end up with a "frozen" computer, even though with patience
6182 # the test eventually succeeds (with a max line length of 256k).
6183 # Instead, let's just punt: use the minimum linelength reported by
6184 # all of the supported platforms: 8192 (on NT/2K/XP).
6185 lt_cv_sys_max_cmd_len=8192;
6186 ;;
6187
6188 mint*)
6189 # On MiNT this can take a long time and run out of memory.
6190 lt_cv_sys_max_cmd_len=8192;
6191 ;;
6192
6193 amigaos*)
6194 # On AmigaOS with pdksh, this test takes hours, literally.
6195 # So we just punt and use a minimum line length of 8192.
6196 lt_cv_sys_max_cmd_len=8192;
6197 ;;
6198
6199 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6200 # This has been around since 386BSD, at least. Likely further.
6201 if test -x /sbin/sysctl; then
6202 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6203 elif test -x /usr/sbin/sysctl; then
6204 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6205 else
6206 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6207 fi
6208 # And add a safety zone
6209 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6210 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6211 ;;
6212
6213 interix*)
6214 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6215 lt_cv_sys_max_cmd_len=196608
6216 ;;
6217
6218 osf*)
6219 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6220 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6221 # nice to cause kernel panics so lets avoid the loop below.
6222 # First set a reasonable default.
6223 lt_cv_sys_max_cmd_len=16384
6224 #
6225 if test -x /sbin/sysconfig; then
6226 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6227 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6228 esac
6229 fi
6230 ;;
6231 sco3.2v5*)
6232 lt_cv_sys_max_cmd_len=102400
6233 ;;
6234 sysv5* | sco5v6* | sysv4.2uw2*)
6235 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6236 if test -n "$kargmax"; then
6237 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6238 else
6239 lt_cv_sys_max_cmd_len=32768
6240 fi
6241 ;;
6242 *)
6243 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6244 if test -n "$lt_cv_sys_max_cmd_len"; then
6245 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6246 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6247 else
6248 # Make teststring a little bigger before we do anything with it.
6249 # a 1K string should be a reasonable start.
6250 for i in 1 2 3 4 5 6 7 8 ; do
6251 teststring=$teststring$teststring
6252 done
6253 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6254 # If test is not a shell built-in, we'll probably end up computing a
6255 # maximum length that is only half of the actual maximum length, but
6256 # we can't tell.
6257 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6258 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6259 test $i != 17 # 1/2 MB should be enough
6260 do
6261 i=`expr $i + 1`
6262 teststring=$teststring$teststring
6263 done
6264 # Only check the string length outside the loop.
6265 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6266 teststring=
6267 # Add a significant safety factor because C++ compilers can tack on
6268 # massive amounts of additional arguments before passing them to the
6269 # linker. It appears as though 1/2 is a usable value.
6270 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6271 fi
6272 ;;
6273 esac
6274
6275 fi
6276
6277 if test -n $lt_cv_sys_max_cmd_len ; then
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6279 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6280 else
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6282 $as_echo "none" >&6; }
6283 fi
6284 max_cmd_len=$lt_cv_sys_max_cmd_len
6285
6286
6287
6288
6289
6290
6291 : ${CP="cp -f"}
6292 : ${MV="mv -f"}
6293 : ${RM="rm -f"}
6294
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6296 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6297 # Try some XSI features
6298 xsi_shell=no
6299 ( _lt_dummy="a/b/c"
6300 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6301 = c,a/b,, \
6302 && eval 'test $(( 1 + 1 )) -eq 2 \
6303 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6304 && xsi_shell=yes
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6306 $as_echo "$xsi_shell" >&6; }
6307
6308
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6310 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6311 lt_shell_append=no
6312 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6313 >/dev/null 2>&1 \
6314 && lt_shell_append=yes
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6316 $as_echo "$lt_shell_append" >&6; }
6317
6318
6319 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6320 lt_unset=unset
6321 else
6322 lt_unset=false
6323 fi
6324
6325
6326
6327
6328
6329 # test EBCDIC or ASCII
6330 case `echo X|tr X '\101'` in
6331 A) # ASCII based system
6332 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6333 lt_SP2NL='tr \040 \012'
6334 lt_NL2SP='tr \015\012 \040\040'
6335 ;;
6336 *) # EBCDIC based system
6337 lt_SP2NL='tr \100 \n'
6338 lt_NL2SP='tr \r\n \100\100'
6339 ;;
6340 esac
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6351 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6352 if ${lt_cv_ld_reload_flag+:} false; then :
6353 $as_echo_n "(cached) " >&6
6354 else
6355 lt_cv_ld_reload_flag='-r'
6356 fi
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6358 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6359 reload_flag=$lt_cv_ld_reload_flag
6360 case $reload_flag in
6361 "" | " "*) ;;
6362 *) reload_flag=" $reload_flag" ;;
6363 esac
6364 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6365 case $host_os in
6366 darwin*)
6367 if test "$GCC" = yes; then
6368 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6369 else
6370 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6371 fi
6372 ;;
6373 esac
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383 if test -n "$ac_tool_prefix"; then
6384 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6385 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if ${ac_cv_prog_OBJDUMP+:} false; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 if test -n "$OBJDUMP"; then
6392 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6393 else
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH
6396 do
6397 IFS=$as_save_IFS
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6401 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 break 2
6404 fi
6405 done
6406 done
6407 IFS=$as_save_IFS
6408
6409 fi
6410 fi
6411 OBJDUMP=$ac_cv_prog_OBJDUMP
6412 if test -n "$OBJDUMP"; then
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6414 $as_echo "$OBJDUMP" >&6; }
6415 else
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417 $as_echo "no" >&6; }
6418 fi
6419
6420
6421 fi
6422 if test -z "$ac_cv_prog_OBJDUMP"; then
6423 ac_ct_OBJDUMP=$OBJDUMP
6424 # Extract the first word of "objdump", so it can be a program name with args.
6425 set dummy objdump; ac_word=$2
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6427 $as_echo_n "checking for $ac_word... " >&6; }
6428 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6429 $as_echo_n "(cached) " >&6
6430 else
6431 if test -n "$ac_ct_OBJDUMP"; then
6432 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6433 else
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 for as_dir in $PATH
6436 do
6437 IFS=$as_save_IFS
6438 test -z "$as_dir" && as_dir=.
6439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6441 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6443 break 2
6444 fi
6445 done
6446 done
6447 IFS=$as_save_IFS
6448
6449 fi
6450 fi
6451 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6452 if test -n "$ac_ct_OBJDUMP"; then
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6454 $as_echo "$ac_ct_OBJDUMP" >&6; }
6455 else
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457 $as_echo "no" >&6; }
6458 fi
6459
6460 if test "x$ac_ct_OBJDUMP" = x; then
6461 OBJDUMP="false"
6462 else
6463 case $cross_compiling:$ac_tool_warned in
6464 yes:)
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6467 ac_tool_warned=yes ;;
6468 esac
6469 OBJDUMP=$ac_ct_OBJDUMP
6470 fi
6471 else
6472 OBJDUMP="$ac_cv_prog_OBJDUMP"
6473 fi
6474
6475 test -z "$OBJDUMP" && OBJDUMP=objdump
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6486 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6487 if ${lt_cv_deplibs_check_method+:} false; then :
6488 $as_echo_n "(cached) " >&6
6489 else
6490 lt_cv_file_magic_cmd='$MAGIC_CMD'
6491 lt_cv_file_magic_test_file=
6492 lt_cv_deplibs_check_method='unknown'
6493 # Need to set the preceding variable on all platforms that support
6494 # interlibrary dependencies.
6495 # 'none' -- dependencies not supported.
6496 # `unknown' -- same as none, but documents that we really don't know.
6497 # 'pass_all' -- all dependencies passed with no checks.
6498 # 'test_compile' -- check by making test program.
6499 # 'file_magic [[regex]]' -- check by looking for files in library path
6500 # which responds to the $file_magic_cmd with a given extended regex.
6501 # If you have `file' or equivalent on your system and you're not sure
6502 # whether `pass_all' will *always* work, you probably want this one.
6503
6504 case $host_os in
6505 aix[4-9]*)
6506 lt_cv_deplibs_check_method=pass_all
6507 ;;
6508
6509 beos*)
6510 lt_cv_deplibs_check_method=pass_all
6511 ;;
6512
6513 bsdi[45]*)
6514 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6515 lt_cv_file_magic_cmd='/usr/bin/file -L'
6516 lt_cv_file_magic_test_file=/shlib/libc.so
6517 ;;
6518
6519 cygwin*)
6520 # func_win32_libid is a shell function defined in ltmain.sh
6521 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6522 lt_cv_file_magic_cmd='func_win32_libid'
6523 ;;
6524
6525 mingw* | pw32*)
6526 # Base MSYS/MinGW do not provide the 'file' command needed by
6527 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6528 # unless we find 'file', for example because we are cross-compiling.
6529 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6530 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6531 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6532 lt_cv_file_magic_cmd='func_win32_libid'
6533 else
6534 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6535 lt_cv_file_magic_cmd='$OBJDUMP -f'
6536 fi
6537 ;;
6538
6539 cegcc*)
6540 # use the weaker test based on 'objdump'. See mingw*.
6541 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6542 lt_cv_file_magic_cmd='$OBJDUMP -f'
6543 ;;
6544
6545 darwin* | rhapsody*)
6546 lt_cv_deplibs_check_method=pass_all
6547 ;;
6548
6549 freebsd* | dragonfly*)
6550 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6551 case $host_cpu in
6552 i*86 )
6553 # Not sure whether the presence of OpenBSD here was a mistake.
6554 # Let's accept both of them until this is cleared up.
6555 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6556 lt_cv_file_magic_cmd=/usr/bin/file
6557 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6558 ;;
6559 esac
6560 else
6561 lt_cv_deplibs_check_method=pass_all
6562 fi
6563 ;;
6564
6565 gnu*)
6566 lt_cv_deplibs_check_method=pass_all
6567 ;;
6568
6569 haiku*)
6570 lt_cv_deplibs_check_method=pass_all
6571 ;;
6572
6573 hpux10.20* | hpux11*)
6574 lt_cv_file_magic_cmd=/usr/bin/file
6575 case $host_cpu in
6576 ia64*)
6577 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6578 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6579 ;;
6580 hppa*64*)
6581 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]'
6582 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6583 ;;
6584 *)
6585 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6586 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6587 ;;
6588 esac
6589 ;;
6590
6591 interix[3-9]*)
6592 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6593 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6594 ;;
6595
6596 irix5* | irix6* | nonstopux*)
6597 case $LD in
6598 *-32|*"-32 ") libmagic=32-bit;;
6599 *-n32|*"-n32 ") libmagic=N32;;
6600 *-64|*"-64 ") libmagic=64-bit;;
6601 *) libmagic=never-match;;
6602 esac
6603 lt_cv_deplibs_check_method=pass_all
6604 ;;
6605
6606 # This must be Linux ELF.
6607 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6608 lt_cv_deplibs_check_method=pass_all
6609 ;;
6610
6611 netbsd*)
6612 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6614 else
6615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6616 fi
6617 ;;
6618
6619 newos6*)
6620 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6621 lt_cv_file_magic_cmd=/usr/bin/file
6622 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6623 ;;
6624
6625 *nto* | *qnx*)
6626 lt_cv_deplibs_check_method=pass_all
6627 ;;
6628
6629 openbsd*)
6630 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6632 else
6633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6634 fi
6635 ;;
6636
6637 osf3* | osf4* | osf5*)
6638 lt_cv_deplibs_check_method=pass_all
6639 ;;
6640
6641 rdos*)
6642 lt_cv_deplibs_check_method=pass_all
6643 ;;
6644
6645 solaris*)
6646 lt_cv_deplibs_check_method=pass_all
6647 ;;
6648
6649 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6650 lt_cv_deplibs_check_method=pass_all
6651 ;;
6652
6653 sysv4 | sysv4.3*)
6654 case $host_vendor in
6655 motorola)
6656 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]'
6657 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6658 ;;
6659 ncr)
6660 lt_cv_deplibs_check_method=pass_all
6661 ;;
6662 sequent)
6663 lt_cv_file_magic_cmd='/bin/file'
6664 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6665 ;;
6666 sni)
6667 lt_cv_file_magic_cmd='/bin/file'
6668 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6669 lt_cv_file_magic_test_file=/lib/libc.so
6670 ;;
6671 siemens)
6672 lt_cv_deplibs_check_method=pass_all
6673 ;;
6674 pc)
6675 lt_cv_deplibs_check_method=pass_all
6676 ;;
6677 esac
6678 ;;
6679
6680 tpf*)
6681 lt_cv_deplibs_check_method=pass_all
6682 ;;
6683 vxworks*)
6684 # Assume VxWorks cross toolchains are built on Linux, possibly
6685 # as canadian for Windows hosts.
6686 lt_cv_deplibs_check_method=pass_all
6687 ;;
6688 esac
6689
6690 fi
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6692 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6693 file_magic_cmd=$lt_cv_file_magic_cmd
6694 deplibs_check_method=$lt_cv_deplibs_check_method
6695 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708 plugin_option=
6709 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6710 for plugin in $plugin_names; do
6711 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6712 if test x$plugin_so = x$plugin; then
6713 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6714 fi
6715 if test x$plugin_so != x$plugin; then
6716 plugin_option="--plugin $plugin_so"
6717 break
6718 fi
6719 done
6720
6721 if test -n "$ac_tool_prefix"; then
6722 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6723 set dummy ${ac_tool_prefix}ar; ac_word=$2
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725 $as_echo_n "checking for $ac_word... " >&6; }
6726 if ${ac_cv_prog_AR+:} false; then :
6727 $as_echo_n "(cached) " >&6
6728 else
6729 if test -n "$AR"; then
6730 ac_cv_prog_AR="$AR" # Let the user override the test.
6731 else
6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 for as_dir in $PATH
6734 do
6735 IFS=$as_save_IFS
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
6738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6739 ac_cv_prog_AR="${ac_tool_prefix}ar"
6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 break 2
6742 fi
6743 done
6744 done
6745 IFS=$as_save_IFS
6746
6747 fi
6748 fi
6749 AR=$ac_cv_prog_AR
6750 if test -n "$AR"; then
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6752 $as_echo "$AR" >&6; }
6753 else
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 $as_echo "no" >&6; }
6756 fi
6757
6758
6759 fi
6760 if test -z "$ac_cv_prog_AR"; then
6761 ac_ct_AR=$AR
6762 # Extract the first word of "ar", so it can be a program name with args.
6763 set dummy ar; ac_word=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6767 $as_echo_n "(cached) " >&6
6768 else
6769 if test -n "$ac_ct_AR"; then
6770 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6771 else
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6774 do
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6779 ac_cv_prog_ac_ct_AR="ar"
6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 break 2
6782 fi
6783 done
6784 done
6785 IFS=$as_save_IFS
6786
6787 fi
6788 fi
6789 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6790 if test -n "$ac_ct_AR"; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6792 $as_echo "$ac_ct_AR" >&6; }
6793 else
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6796 fi
6797
6798 if test "x$ac_ct_AR" = x; then
6799 AR="false"
6800 else
6801 case $cross_compiling:$ac_tool_warned in
6802 yes:)
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6805 ac_tool_warned=yes ;;
6806 esac
6807 AR=$ac_ct_AR
6808 fi
6809 else
6810 AR="$ac_cv_prog_AR"
6811 fi
6812
6813 test -z "$AR" && AR=ar
6814 if test -n "$plugin_option"; then
6815 if $AR --help 2>&1 | grep -q "\--plugin"; then
6816 touch conftest.c
6817 $AR $plugin_option rc conftest.a conftest.c
6818 if test "$?" != 0; then
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6820 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6821 else
6822 AR="$AR $plugin_option"
6823 fi
6824 rm -f conftest.*
6825 fi
6826 fi
6827 test -z "$AR_FLAGS" && AR_FLAGS=cru
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839 if test -n "$ac_tool_prefix"; then
6840 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6841 set dummy ${ac_tool_prefix}strip; ac_word=$2
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843 $as_echo_n "checking for $ac_word... " >&6; }
6844 if ${ac_cv_prog_STRIP+:} false; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 if test -n "$STRIP"; then
6848 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6849 else
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 for as_dir in $PATH
6852 do
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6857 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6860 fi
6861 done
6862 done
6863 IFS=$as_save_IFS
6864
6865 fi
6866 fi
6867 STRIP=$ac_cv_prog_STRIP
6868 if test -n "$STRIP"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6870 $as_echo "$STRIP" >&6; }
6871 else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873 $as_echo "no" >&6; }
6874 fi
6875
6876
6877 fi
6878 if test -z "$ac_cv_prog_STRIP"; then
6879 ac_ct_STRIP=$STRIP
6880 # Extract the first word of "strip", so it can be a program name with args.
6881 set dummy strip; ac_word=$2
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6883 $as_echo_n "checking for $ac_word... " >&6; }
6884 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887 if test -n "$ac_ct_STRIP"; then
6888 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6889 else
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 for as_dir in $PATH
6892 do
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
6895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6897 ac_cv_prog_ac_ct_STRIP="strip"
6898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 break 2
6900 fi
6901 done
6902 done
6903 IFS=$as_save_IFS
6904
6905 fi
6906 fi
6907 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6908 if test -n "$ac_ct_STRIP"; then
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6910 $as_echo "$ac_ct_STRIP" >&6; }
6911 else
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913 $as_echo "no" >&6; }
6914 fi
6915
6916 if test "x$ac_ct_STRIP" = x; then
6917 STRIP=":"
6918 else
6919 case $cross_compiling:$ac_tool_warned in
6920 yes:)
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6923 ac_tool_warned=yes ;;
6924 esac
6925 STRIP=$ac_ct_STRIP
6926 fi
6927 else
6928 STRIP="$ac_cv_prog_STRIP"
6929 fi
6930
6931 test -z "$STRIP" && STRIP=:
6932
6933
6934
6935
6936
6937
6938 if test -n "$ac_tool_prefix"; then
6939 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6940 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if ${ac_cv_prog_RANLIB+:} false; then :
6944 $as_echo_n "(cached) " >&6
6945 else
6946 if test -n "$RANLIB"; then
6947 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6948 else
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6951 do
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6956 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6959 fi
6960 done
6961 done
6962 IFS=$as_save_IFS
6963
6964 fi
6965 fi
6966 RANLIB=$ac_cv_prog_RANLIB
6967 if test -n "$RANLIB"; then
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6969 $as_echo "$RANLIB" >&6; }
6970 else
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 $as_echo "no" >&6; }
6973 fi
6974
6975
6976 fi
6977 if test -z "$ac_cv_prog_RANLIB"; then
6978 ac_ct_RANLIB=$RANLIB
6979 # Extract the first word of "ranlib", so it can be a program name with args.
6980 set dummy ranlib; ac_word=$2
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982 $as_echo_n "checking for $ac_word... " >&6; }
6983 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6984 $as_echo_n "(cached) " >&6
6985 else
6986 if test -n "$ac_ct_RANLIB"; then
6987 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6988 else
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6991 do
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6996 ac_cv_prog_ac_ct_RANLIB="ranlib"
6997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
6999 fi
7000 done
7001 done
7002 IFS=$as_save_IFS
7003
7004 fi
7005 fi
7006 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7007 if test -n "$ac_ct_RANLIB"; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7009 $as_echo "$ac_ct_RANLIB" >&6; }
7010 else
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012 $as_echo "no" >&6; }
7013 fi
7014
7015 if test "x$ac_ct_RANLIB" = x; then
7016 RANLIB=":"
7017 else
7018 case $cross_compiling:$ac_tool_warned in
7019 yes:)
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7022 ac_tool_warned=yes ;;
7023 esac
7024 RANLIB=$ac_ct_RANLIB
7025 fi
7026 else
7027 RANLIB="$ac_cv_prog_RANLIB"
7028 fi
7029
7030 test -z "$RANLIB" && RANLIB=:
7031 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7032 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7033 RANLIB="$RANLIB $plugin_option"
7034 fi
7035 fi
7036
7037
7038
7039
7040
7041
7042 # Determine commands to create old-style static archives.
7043 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7044 old_postinstall_cmds='chmod 644 $oldlib'
7045 old_postuninstall_cmds=
7046
7047 if test -n "$RANLIB"; then
7048 case $host_os in
7049 openbsd*)
7050 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7051 ;;
7052 *)
7053 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7054 ;;
7055 esac
7056 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7057 fi
7058
7059 case $host_os in
7060 darwin*)
7061 lock_old_archive_extraction=yes ;;
7062 *)
7063 lock_old_archive_extraction=no ;;
7064 esac
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104 # If no C compiler was specified, use CC.
7105 LTCC=${LTCC-"$CC"}
7106
7107 # If no C compiler flags were specified, use CFLAGS.
7108 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7109
7110 # Allow CC to be a program name with arguments.
7111 compiler=$CC
7112
7113
7114 # Check for command to grab the raw symbol name followed by C symbol from nm.
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7116 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7117 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7118 $as_echo_n "(cached) " >&6
7119 else
7120
7121 # These are sane defaults that work on at least a few old systems.
7122 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7123
7124 # Character class describing NM global symbol codes.
7125 symcode='[BCDEGRST]'
7126
7127 # Regexp to match symbols that can be accessed directly from C.
7128 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7129
7130 # Define system-specific variables.
7131 case $host_os in
7132 aix*)
7133 symcode='[BCDT]'
7134 ;;
7135 cygwin* | mingw* | pw32* | cegcc*)
7136 symcode='[ABCDGISTW]'
7137 ;;
7138 hpux*)
7139 if test "$host_cpu" = ia64; then
7140 symcode='[ABCDEGRST]'
7141 fi
7142 ;;
7143 irix* | nonstopux*)
7144 symcode='[BCDEGRST]'
7145 ;;
7146 osf*)
7147 symcode='[BCDEGQRST]'
7148 ;;
7149 solaris*)
7150 symcode='[BCDRT]'
7151 ;;
7152 sco3.2v5*)
7153 symcode='[DT]'
7154 ;;
7155 sysv4.2uw2*)
7156 symcode='[DT]'
7157 ;;
7158 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7159 symcode='[ABDT]'
7160 ;;
7161 sysv4)
7162 symcode='[DFNSTU]'
7163 ;;
7164 esac
7165
7166 # If we're using GNU nm, then use its standard symbol codes.
7167 case `$NM -V 2>&1` in
7168 *GNU* | *'with BFD'*)
7169 symcode='[ABCDGIRSTW]' ;;
7170 esac
7171
7172 # Transform an extracted symbol line into a proper C declaration.
7173 # Some systems (esp. on ia64) link data and code symbols differently,
7174 # so use this general approach.
7175 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7176
7177 # Transform an extracted symbol line into symbol name and symbol address
7178 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7179 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'"
7180
7181 # Handle CRLF in mingw tool chain
7182 opt_cr=
7183 case $build_os in
7184 mingw*)
7185 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7186 ;;
7187 esac
7188
7189 # Try without a prefix underscore, then with it.
7190 for ac_symprfx in "" "_"; do
7191
7192 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7193 symxfrm="\\1 $ac_symprfx\\2 \\2"
7194
7195 # Write the raw and C identifiers.
7196 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7197 # Fake it for dumpbin and say T for any non-static function
7198 # and D for any global variable.
7199 # Also find C++ and __fastcall symbols from MSVC++,
7200 # which start with @ or ?.
7201 lt_cv_sys_global_symbol_pipe="$AWK '"\
7202 " {last_section=section; section=\$ 3};"\
7203 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7204 " \$ 0!~/External *\|/{next};"\
7205 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7206 " {if(hide[section]) next};"\
7207 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7208 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7209 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7210 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7211 " ' prfx=^$ac_symprfx"
7212 else
7213 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7214 fi
7215
7216 # Check to see that the pipe works correctly.
7217 pipe_works=no
7218
7219 rm -f conftest*
7220 cat > conftest.$ac_ext <<_LT_EOF
7221 #ifdef __cplusplus
7222 extern "C" {
7223 #endif
7224 char nm_test_var;
7225 void nm_test_func(void);
7226 void nm_test_func(void){}
7227 #ifdef __cplusplus
7228 }
7229 #endif
7230 int main(){nm_test_var='a';nm_test_func();return(0);}
7231 _LT_EOF
7232
7233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7234 (eval $ac_compile) 2>&5
7235 ac_status=$?
7236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7237 test $ac_status = 0; }; then
7238 # Now try to grab the symbols.
7239 nlist=conftest.nm
7240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7241 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7242 ac_status=$?
7243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7244 test $ac_status = 0; } && test -s "$nlist"; then
7245 # Try sorting and uniquifying the output.
7246 if sort "$nlist" | uniq > "$nlist"T; then
7247 mv -f "$nlist"T "$nlist"
7248 else
7249 rm -f "$nlist"T
7250 fi
7251
7252 # Make sure that we snagged all the symbols we need.
7253 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7254 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7255 cat <<_LT_EOF > conftest.$ac_ext
7256 #ifdef __cplusplus
7257 extern "C" {
7258 #endif
7259
7260 _LT_EOF
7261 # Now generate the symbol file.
7262 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7263
7264 cat <<_LT_EOF >> conftest.$ac_ext
7265
7266 /* The mapping between symbol names and symbols. */
7267 const struct {
7268 const char *name;
7269 void *address;
7270 }
7271 lt__PROGRAM__LTX_preloaded_symbols[] =
7272 {
7273 { "@PROGRAM@", (void *) 0 },
7274 _LT_EOF
7275 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7276 cat <<\_LT_EOF >> conftest.$ac_ext
7277 {0, (void *) 0}
7278 };
7279
7280 /* This works around a problem in FreeBSD linker */
7281 #ifdef FREEBSD_WORKAROUND
7282 static const void *lt_preloaded_setup() {
7283 return lt__PROGRAM__LTX_preloaded_symbols;
7284 }
7285 #endif
7286
7287 #ifdef __cplusplus
7288 }
7289 #endif
7290 _LT_EOF
7291 # Now try linking the two files.
7292 mv conftest.$ac_objext conftstm.$ac_objext
7293 lt_save_LIBS="$LIBS"
7294 lt_save_CFLAGS="$CFLAGS"
7295 LIBS="conftstm.$ac_objext"
7296 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7298 (eval $ac_link) 2>&5
7299 ac_status=$?
7300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7301 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7302 pipe_works=yes
7303 fi
7304 LIBS="$lt_save_LIBS"
7305 CFLAGS="$lt_save_CFLAGS"
7306 else
7307 echo "cannot find nm_test_func in $nlist" >&5
7308 fi
7309 else
7310 echo "cannot find nm_test_var in $nlist" >&5
7311 fi
7312 else
7313 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7314 fi
7315 else
7316 echo "$progname: failed program was:" >&5
7317 cat conftest.$ac_ext >&5
7318 fi
7319 rm -rf conftest* conftst*
7320
7321 # Do not use the global_symbol_pipe unless it works.
7322 if test "$pipe_works" = yes; then
7323 break
7324 else
7325 lt_cv_sys_global_symbol_pipe=
7326 fi
7327 done
7328
7329 fi
7330
7331 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7332 lt_cv_sys_global_symbol_to_cdecl=
7333 fi
7334 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7336 $as_echo "failed" >&6; }
7337 else
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7339 $as_echo "ok" >&6; }
7340 fi
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363 # Check whether --enable-libtool-lock was given.
7364 if test "${enable_libtool_lock+set}" = set; then :
7365 enableval=$enable_libtool_lock;
7366 fi
7367
7368 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7369
7370 # Some flags need to be propagated to the compiler or linker for good
7371 # libtool support.
7372 case $host in
7373 ia64-*-hpux*)
7374 # Find out which ABI we are using.
7375 echo 'int i;' > conftest.$ac_ext
7376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7377 (eval $ac_compile) 2>&5
7378 ac_status=$?
7379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7380 test $ac_status = 0; }; then
7381 case `/usr/bin/file conftest.$ac_objext` in
7382 *ELF-32*)
7383 HPUX_IA64_MODE="32"
7384 ;;
7385 *ELF-64*)
7386 HPUX_IA64_MODE="64"
7387 ;;
7388 esac
7389 fi
7390 rm -rf conftest*
7391 ;;
7392 *-*-irix6*)
7393 # Find out which ABI we are using.
7394 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7396 (eval $ac_compile) 2>&5
7397 ac_status=$?
7398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7399 test $ac_status = 0; }; then
7400 if test "$lt_cv_prog_gnu_ld" = yes; then
7401 case `/usr/bin/file conftest.$ac_objext` in
7402 *32-bit*)
7403 LD="${LD-ld} -melf32bsmip"
7404 ;;
7405 *N32*)
7406 LD="${LD-ld} -melf32bmipn32"
7407 ;;
7408 *64-bit*)
7409 LD="${LD-ld} -melf64bmip"
7410 ;;
7411 esac
7412 else
7413 case `/usr/bin/file conftest.$ac_objext` in
7414 *32-bit*)
7415 LD="${LD-ld} -32"
7416 ;;
7417 *N32*)
7418 LD="${LD-ld} -n32"
7419 ;;
7420 *64-bit*)
7421 LD="${LD-ld} -64"
7422 ;;
7423 esac
7424 fi
7425 fi
7426 rm -rf conftest*
7427 ;;
7428
7429 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7430 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7431 # Find out which ABI we are using.
7432 echo 'int i;' > conftest.$ac_ext
7433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7434 (eval $ac_compile) 2>&5
7435 ac_status=$?
7436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7437 test $ac_status = 0; }; then
7438 case `/usr/bin/file conftest.o` in
7439 *32-bit*)
7440 case $host in
7441 x86_64-*kfreebsd*-gnu)
7442 LD="${LD-ld} -m elf_i386_fbsd"
7443 ;;
7444 x86_64-*linux*)
7445 case `/usr/bin/file conftest.o` in
7446 *x86-64*)
7447 LD="${LD-ld} -m elf32_x86_64"
7448 ;;
7449 *)
7450 LD="${LD-ld} -m elf_i386"
7451 ;;
7452 esac
7453 ;;
7454 powerpc64le-*linux*)
7455 LD="${LD-ld} -m elf32lppclinux"
7456 ;;
7457 powerpc64-*linux*)
7458 LD="${LD-ld} -m elf32ppclinux"
7459 ;;
7460 s390x-*linux*)
7461 LD="${LD-ld} -m elf_s390"
7462 ;;
7463 sparc64-*linux*)
7464 LD="${LD-ld} -m elf32_sparc"
7465 ;;
7466 esac
7467 ;;
7468 *64-bit*)
7469 case $host in
7470 x86_64-*kfreebsd*-gnu)
7471 LD="${LD-ld} -m elf_x86_64_fbsd"
7472 ;;
7473 x86_64-*linux*)
7474 LD="${LD-ld} -m elf_x86_64"
7475 ;;
7476 powerpcle-*linux*)
7477 LD="${LD-ld} -m elf64lppc"
7478 ;;
7479 powerpc-*linux*)
7480 LD="${LD-ld} -m elf64ppc"
7481 ;;
7482 s390*-*linux*|s390*-*tpf*)
7483 LD="${LD-ld} -m elf64_s390"
7484 ;;
7485 sparc*-*linux*)
7486 LD="${LD-ld} -m elf64_sparc"
7487 ;;
7488 esac
7489 ;;
7490 esac
7491 fi
7492 rm -rf conftest*
7493 ;;
7494
7495 *-*-sco3.2v5*)
7496 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7497 SAVE_CFLAGS="$CFLAGS"
7498 CFLAGS="$CFLAGS -belf"
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7500 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7501 if ${lt_cv_cc_needs_belf+:} false; then :
7502 $as_echo_n "(cached) " >&6
7503 else
7504 ac_ext=c
7505 ac_cpp='$CPP $CPPFLAGS'
7506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7509
7510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511 /* end confdefs.h. */
7512
7513 int
7514 main ()
7515 {
7516
7517 ;
7518 return 0;
7519 }
7520 _ACEOF
7521 if ac_fn_c_try_link "$LINENO"; then :
7522 lt_cv_cc_needs_belf=yes
7523 else
7524 lt_cv_cc_needs_belf=no
7525 fi
7526 rm -f core conftest.err conftest.$ac_objext \
7527 conftest$ac_exeext conftest.$ac_ext
7528 ac_ext=c
7529 ac_cpp='$CPP $CPPFLAGS'
7530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7533
7534 fi
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7536 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7537 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7538 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7539 CFLAGS="$SAVE_CFLAGS"
7540 fi
7541 ;;
7542 sparc*-*solaris*)
7543 # Find out which ABI we are using.
7544 echo 'int i;' > conftest.$ac_ext
7545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7546 (eval $ac_compile) 2>&5
7547 ac_status=$?
7548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7549 test $ac_status = 0; }; then
7550 case `/usr/bin/file conftest.o` in
7551 *64-bit*)
7552 case $lt_cv_prog_gnu_ld in
7553 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7554 *)
7555 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7556 LD="${LD-ld} -64"
7557 fi
7558 ;;
7559 esac
7560 ;;
7561 esac
7562 fi
7563 rm -rf conftest*
7564 ;;
7565 esac
7566
7567 need_locks="$enable_libtool_lock"
7568
7569
7570 case $host_os in
7571 rhapsody* | darwin*)
7572 if test -n "$ac_tool_prefix"; then
7573 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7574 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576 $as_echo_n "checking for $ac_word... " >&6; }
7577 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7578 $as_echo_n "(cached) " >&6
7579 else
7580 if test -n "$DSYMUTIL"; then
7581 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7582 else
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 for as_dir in $PATH
7585 do
7586 IFS=$as_save_IFS
7587 test -z "$as_dir" && as_dir=.
7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7590 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592 break 2
7593 fi
7594 done
7595 done
7596 IFS=$as_save_IFS
7597
7598 fi
7599 fi
7600 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7601 if test -n "$DSYMUTIL"; then
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7603 $as_echo "$DSYMUTIL" >&6; }
7604 else
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606 $as_echo "no" >&6; }
7607 fi
7608
7609
7610 fi
7611 if test -z "$ac_cv_prog_DSYMUTIL"; then
7612 ac_ct_DSYMUTIL=$DSYMUTIL
7613 # Extract the first word of "dsymutil", so it can be a program name with args.
7614 set dummy dsymutil; ac_word=$2
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 $as_echo_n "checking for $ac_word... " >&6; }
7617 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7618 $as_echo_n "(cached) " >&6
7619 else
7620 if test -n "$ac_ct_DSYMUTIL"; then
7621 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7622 else
7623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 for as_dir in $PATH
7625 do
7626 IFS=$as_save_IFS
7627 test -z "$as_dir" && as_dir=.
7628 for ac_exec_ext in '' $ac_executable_extensions; do
7629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7630 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7632 break 2
7633 fi
7634 done
7635 done
7636 IFS=$as_save_IFS
7637
7638 fi
7639 fi
7640 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7641 if test -n "$ac_ct_DSYMUTIL"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7643 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7644 else
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7647 fi
7648
7649 if test "x$ac_ct_DSYMUTIL" = x; then
7650 DSYMUTIL=":"
7651 else
7652 case $cross_compiling:$ac_tool_warned in
7653 yes:)
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7656 ac_tool_warned=yes ;;
7657 esac
7658 DSYMUTIL=$ac_ct_DSYMUTIL
7659 fi
7660 else
7661 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7662 fi
7663
7664 if test -n "$ac_tool_prefix"; then
7665 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7666 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7668 $as_echo_n "checking for $ac_word... " >&6; }
7669 if ${ac_cv_prog_NMEDIT+:} false; then :
7670 $as_echo_n "(cached) " >&6
7671 else
7672 if test -n "$NMEDIT"; then
7673 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7674 else
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 for as_dir in $PATH
7677 do
7678 IFS=$as_save_IFS
7679 test -z "$as_dir" && as_dir=.
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7682 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7684 break 2
7685 fi
7686 done
7687 done
7688 IFS=$as_save_IFS
7689
7690 fi
7691 fi
7692 NMEDIT=$ac_cv_prog_NMEDIT
7693 if test -n "$NMEDIT"; then
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7695 $as_echo "$NMEDIT" >&6; }
7696 else
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698 $as_echo "no" >&6; }
7699 fi
7700
7701
7702 fi
7703 if test -z "$ac_cv_prog_NMEDIT"; then
7704 ac_ct_NMEDIT=$NMEDIT
7705 # Extract the first word of "nmedit", so it can be a program name with args.
7706 set dummy nmedit; ac_word=$2
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 $as_echo_n "checking for $ac_word... " >&6; }
7709 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7710 $as_echo_n "(cached) " >&6
7711 else
7712 if test -n "$ac_ct_NMEDIT"; then
7713 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7714 else
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 for as_dir in $PATH
7717 do
7718 IFS=$as_save_IFS
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 break 2
7725 fi
7726 done
7727 done
7728 IFS=$as_save_IFS
7729
7730 fi
7731 fi
7732 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7733 if test -n "$ac_ct_NMEDIT"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7735 $as_echo "$ac_ct_NMEDIT" >&6; }
7736 else
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7739 fi
7740
7741 if test "x$ac_ct_NMEDIT" = x; then
7742 NMEDIT=":"
7743 else
7744 case $cross_compiling:$ac_tool_warned in
7745 yes:)
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7748 ac_tool_warned=yes ;;
7749 esac
7750 NMEDIT=$ac_ct_NMEDIT
7751 fi
7752 else
7753 NMEDIT="$ac_cv_prog_NMEDIT"
7754 fi
7755
7756 if test -n "$ac_tool_prefix"; then
7757 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7758 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760 $as_echo_n "checking for $ac_word... " >&6; }
7761 if ${ac_cv_prog_LIPO+:} false; then :
7762 $as_echo_n "(cached) " >&6
7763 else
7764 if test -n "$LIPO"; then
7765 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7766 else
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 for as_dir in $PATH
7769 do
7770 IFS=$as_save_IFS
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7774 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 break 2
7777 fi
7778 done
7779 done
7780 IFS=$as_save_IFS
7781
7782 fi
7783 fi
7784 LIPO=$ac_cv_prog_LIPO
7785 if test -n "$LIPO"; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7787 $as_echo "$LIPO" >&6; }
7788 else
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7791 fi
7792
7793
7794 fi
7795 if test -z "$ac_cv_prog_LIPO"; then
7796 ac_ct_LIPO=$LIPO
7797 # Extract the first word of "lipo", so it can be a program name with args.
7798 set dummy lipo; ac_word=$2
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 $as_echo_n "checking for $ac_word... " >&6; }
7801 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7802 $as_echo_n "(cached) " >&6
7803 else
7804 if test -n "$ac_ct_LIPO"; then
7805 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7806 else
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 for as_dir in $PATH
7809 do
7810 IFS=$as_save_IFS
7811 test -z "$as_dir" && as_dir=.
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7814 ac_cv_prog_ac_ct_LIPO="lipo"
7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816 break 2
7817 fi
7818 done
7819 done
7820 IFS=$as_save_IFS
7821
7822 fi
7823 fi
7824 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7825 if test -n "$ac_ct_LIPO"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7827 $as_echo "$ac_ct_LIPO" >&6; }
7828 else
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7831 fi
7832
7833 if test "x$ac_ct_LIPO" = x; then
7834 LIPO=":"
7835 else
7836 case $cross_compiling:$ac_tool_warned in
7837 yes:)
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7840 ac_tool_warned=yes ;;
7841 esac
7842 LIPO=$ac_ct_LIPO
7843 fi
7844 else
7845 LIPO="$ac_cv_prog_LIPO"
7846 fi
7847
7848 if test -n "$ac_tool_prefix"; then
7849 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7850 set dummy ${ac_tool_prefix}otool; ac_word=$2
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852 $as_echo_n "checking for $ac_word... " >&6; }
7853 if ${ac_cv_prog_OTOOL+:} false; then :
7854 $as_echo_n "(cached) " >&6
7855 else
7856 if test -n "$OTOOL"; then
7857 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7858 else
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860 for as_dir in $PATH
7861 do
7862 IFS=$as_save_IFS
7863 test -z "$as_dir" && as_dir=.
7864 for ac_exec_ext in '' $ac_executable_extensions; do
7865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7866 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7868 break 2
7869 fi
7870 done
7871 done
7872 IFS=$as_save_IFS
7873
7874 fi
7875 fi
7876 OTOOL=$ac_cv_prog_OTOOL
7877 if test -n "$OTOOL"; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7879 $as_echo "$OTOOL" >&6; }
7880 else
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7883 fi
7884
7885
7886 fi
7887 if test -z "$ac_cv_prog_OTOOL"; then
7888 ac_ct_OTOOL=$OTOOL
7889 # Extract the first word of "otool", so it can be a program name with args.
7890 set dummy otool; ac_word=$2
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892 $as_echo_n "checking for $ac_word... " >&6; }
7893 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7894 $as_echo_n "(cached) " >&6
7895 else
7896 if test -n "$ac_ct_OTOOL"; then
7897 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7898 else
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900 for as_dir in $PATH
7901 do
7902 IFS=$as_save_IFS
7903 test -z "$as_dir" && as_dir=.
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906 ac_cv_prog_ac_ct_OTOOL="otool"
7907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7908 break 2
7909 fi
7910 done
7911 done
7912 IFS=$as_save_IFS
7913
7914 fi
7915 fi
7916 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7917 if test -n "$ac_ct_OTOOL"; then
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7919 $as_echo "$ac_ct_OTOOL" >&6; }
7920 else
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922 $as_echo "no" >&6; }
7923 fi
7924
7925 if test "x$ac_ct_OTOOL" = x; then
7926 OTOOL=":"
7927 else
7928 case $cross_compiling:$ac_tool_warned in
7929 yes:)
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7932 ac_tool_warned=yes ;;
7933 esac
7934 OTOOL=$ac_ct_OTOOL
7935 fi
7936 else
7937 OTOOL="$ac_cv_prog_OTOOL"
7938 fi
7939
7940 if test -n "$ac_tool_prefix"; then
7941 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7942 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7944 $as_echo_n "checking for $ac_word... " >&6; }
7945 if ${ac_cv_prog_OTOOL64+:} false; then :
7946 $as_echo_n "(cached) " >&6
7947 else
7948 if test -n "$OTOOL64"; then
7949 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7950 else
7951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952 for as_dir in $PATH
7953 do
7954 IFS=$as_save_IFS
7955 test -z "$as_dir" && as_dir=.
7956 for ac_exec_ext in '' $ac_executable_extensions; do
7957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7958 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7960 break 2
7961 fi
7962 done
7963 done
7964 IFS=$as_save_IFS
7965
7966 fi
7967 fi
7968 OTOOL64=$ac_cv_prog_OTOOL64
7969 if test -n "$OTOOL64"; then
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7971 $as_echo "$OTOOL64" >&6; }
7972 else
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974 $as_echo "no" >&6; }
7975 fi
7976
7977
7978 fi
7979 if test -z "$ac_cv_prog_OTOOL64"; then
7980 ac_ct_OTOOL64=$OTOOL64
7981 # Extract the first word of "otool64", so it can be a program name with args.
7982 set dummy otool64; ac_word=$2
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984 $as_echo_n "checking for $ac_word... " >&6; }
7985 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7986 $as_echo_n "(cached) " >&6
7987 else
7988 if test -n "$ac_ct_OTOOL64"; then
7989 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7990 else
7991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 for as_dir in $PATH
7993 do
7994 IFS=$as_save_IFS
7995 test -z "$as_dir" && as_dir=.
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7998 ac_cv_prog_ac_ct_OTOOL64="otool64"
7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 break 2
8001 fi
8002 done
8003 done
8004 IFS=$as_save_IFS
8005
8006 fi
8007 fi
8008 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8009 if test -n "$ac_ct_OTOOL64"; then
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8011 $as_echo "$ac_ct_OTOOL64" >&6; }
8012 else
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014 $as_echo "no" >&6; }
8015 fi
8016
8017 if test "x$ac_ct_OTOOL64" = x; then
8018 OTOOL64=":"
8019 else
8020 case $cross_compiling:$ac_tool_warned in
8021 yes:)
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8024 ac_tool_warned=yes ;;
8025 esac
8026 OTOOL64=$ac_ct_OTOOL64
8027 fi
8028 else
8029 OTOOL64="$ac_cv_prog_OTOOL64"
8030 fi
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8059 $as_echo_n "checking for -single_module linker flag... " >&6; }
8060 if ${lt_cv_apple_cc_single_mod+:} false; then :
8061 $as_echo_n "(cached) " >&6
8062 else
8063 lt_cv_apple_cc_single_mod=no
8064 if test -z "${LT_MULTI_MODULE}"; then
8065 # By default we will add the -single_module flag. You can override
8066 # by either setting the environment variable LT_MULTI_MODULE
8067 # non-empty at configure time, or by adding -multi_module to the
8068 # link flags.
8069 rm -rf libconftest.dylib*
8070 echo "int foo(void){return 1;}" > conftest.c
8071 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8072 -dynamiclib -Wl,-single_module conftest.c" >&5
8073 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8074 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8075 _lt_result=$?
8076 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8077 lt_cv_apple_cc_single_mod=yes
8078 else
8079 cat conftest.err >&5
8080 fi
8081 rm -rf libconftest.dylib*
8082 rm -f conftest.*
8083 fi
8084 fi
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8086 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8088 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8089 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8090 $as_echo_n "(cached) " >&6
8091 else
8092 lt_cv_ld_exported_symbols_list=no
8093 save_LDFLAGS=$LDFLAGS
8094 echo "_main" > conftest.sym
8095 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097 /* end confdefs.h. */
8098
8099 int
8100 main ()
8101 {
8102
8103 ;
8104 return 0;
8105 }
8106 _ACEOF
8107 if ac_fn_c_try_link "$LINENO"; then :
8108 lt_cv_ld_exported_symbols_list=yes
8109 else
8110 lt_cv_ld_exported_symbols_list=no
8111 fi
8112 rm -f core conftest.err conftest.$ac_objext \
8113 conftest$ac_exeext conftest.$ac_ext
8114 LDFLAGS="$save_LDFLAGS"
8115
8116 fi
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8118 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8120 $as_echo_n "checking for -force_load linker flag... " >&6; }
8121 if ${lt_cv_ld_force_load+:} false; then :
8122 $as_echo_n "(cached) " >&6
8123 else
8124 lt_cv_ld_force_load=no
8125 cat > conftest.c << _LT_EOF
8126 int forced_loaded() { return 2;}
8127 _LT_EOF
8128 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8129 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8130 echo "$AR cru libconftest.a conftest.o" >&5
8131 $AR cru libconftest.a conftest.o 2>&5
8132 cat > conftest.c << _LT_EOF
8133 int main() { return 0;}
8134 _LT_EOF
8135 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8136 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8137 _lt_result=$?
8138 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8139 lt_cv_ld_force_load=yes
8140 else
8141 cat conftest.err >&5
8142 fi
8143 rm -f conftest.err libconftest.a conftest conftest.c
8144 rm -rf conftest.dSYM
8145
8146 fi
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8148 $as_echo "$lt_cv_ld_force_load" >&6; }
8149 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8150 # build without first building modern cctools / linker.
8151 case $host_cpu-$host_os in
8152 *-rhapsody* | *-darwin1.[012])
8153 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8154 *-darwin1.*)
8155 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8156 *-darwin*)
8157 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8158 # deployment target is forced to an earlier version.
8159 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8160 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8161 ;;
8162 10.[012][,.]*)
8163 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8164 ;;
8165 *)
8166 ;;
8167 esac
8168 ;;
8169 esac
8170 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8171 _lt_dar_single_mod='$single_module'
8172 fi
8173 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8174 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8175 else
8176 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8177 fi
8178 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8179 _lt_dsymutil='~$DSYMUTIL $lib || :'
8180 else
8181 _lt_dsymutil=
8182 fi
8183 ;;
8184 esac
8185
8186 for ac_header in dlfcn.h
8187 do :
8188 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8189 "
8190 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8191 cat >>confdefs.h <<_ACEOF
8192 #define HAVE_DLFCN_H 1
8193 _ACEOF
8194
8195 fi
8196
8197 done
8198
8199
8200
8201
8202
8203
8204 # Set options
8205
8206
8207
8208 enable_dlopen=no
8209
8210
8211 enable_win32_dll=no
8212
8213
8214 # Check whether --enable-shared was given.
8215 if test "${enable_shared+set}" = set; then :
8216 enableval=$enable_shared; p=${PACKAGE-default}
8217 case $enableval in
8218 yes) enable_shared=yes ;;
8219 no) enable_shared=no ;;
8220 *)
8221 enable_shared=no
8222 # Look at the argument we got. We use all the common list separators.
8223 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8224 for pkg in $enableval; do
8225 IFS="$lt_save_ifs"
8226 if test "X$pkg" = "X$p"; then
8227 enable_shared=yes
8228 fi
8229 done
8230 IFS="$lt_save_ifs"
8231 ;;
8232 esac
8233 else
8234 enable_shared=yes
8235 fi
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245 # Check whether --enable-static was given.
8246 if test "${enable_static+set}" = set; then :
8247 enableval=$enable_static; p=${PACKAGE-default}
8248 case $enableval in
8249 yes) enable_static=yes ;;
8250 no) enable_static=no ;;
8251 *)
8252 enable_static=no
8253 # Look at the argument we got. We use all the common list separators.
8254 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8255 for pkg in $enableval; do
8256 IFS="$lt_save_ifs"
8257 if test "X$pkg" = "X$p"; then
8258 enable_static=yes
8259 fi
8260 done
8261 IFS="$lt_save_ifs"
8262 ;;
8263 esac
8264 else
8265 enable_static=yes
8266 fi
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277 # Check whether --with-pic was given.
8278 if test "${with_pic+set}" = set; then :
8279 withval=$with_pic; pic_mode="$withval"
8280 else
8281 pic_mode=default
8282 fi
8283
8284
8285 test -z "$pic_mode" && pic_mode=default
8286
8287
8288
8289
8290
8291
8292
8293 # Check whether --enable-fast-install was given.
8294 if test "${enable_fast_install+set}" = set; then :
8295 enableval=$enable_fast_install; p=${PACKAGE-default}
8296 case $enableval in
8297 yes) enable_fast_install=yes ;;
8298 no) enable_fast_install=no ;;
8299 *)
8300 enable_fast_install=no
8301 # Look at the argument we got. We use all the common list separators.
8302 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8303 for pkg in $enableval; do
8304 IFS="$lt_save_ifs"
8305 if test "X$pkg" = "X$p"; then
8306 enable_fast_install=yes
8307 fi
8308 done
8309 IFS="$lt_save_ifs"
8310 ;;
8311 esac
8312 else
8313 enable_fast_install=yes
8314 fi
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326 # This can be used to rebuild libtool when needed
8327 LIBTOOL_DEPS="$ltmain"
8328
8329 # Always use our own libtool.
8330 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357 test -z "$LN_S" && LN_S="ln -s"
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372 if test -n "${ZSH_VERSION+set}" ; then
8373 setopt NO_GLOB_SUBST
8374 fi
8375
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8377 $as_echo_n "checking for objdir... " >&6; }
8378 if ${lt_cv_objdir+:} false; then :
8379 $as_echo_n "(cached) " >&6
8380 else
8381 rm -f .libs 2>/dev/null
8382 mkdir .libs 2>/dev/null
8383 if test -d .libs; then
8384 lt_cv_objdir=.libs
8385 else
8386 # MS-DOS does not allow filenames that begin with a dot.
8387 lt_cv_objdir=_libs
8388 fi
8389 rmdir .libs 2>/dev/null
8390 fi
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8392 $as_echo "$lt_cv_objdir" >&6; }
8393 objdir=$lt_cv_objdir
8394
8395
8396
8397
8398
8399 cat >>confdefs.h <<_ACEOF
8400 #define LT_OBJDIR "$lt_cv_objdir/"
8401 _ACEOF
8402
8403
8404
8405
8406 case $host_os in
8407 aix3*)
8408 # AIX sometimes has problems with the GCC collect2 program. For some
8409 # reason, if we set the COLLECT_NAMES environment variable, the problems
8410 # vanish in a puff of smoke.
8411 if test "X${COLLECT_NAMES+set}" != Xset; then
8412 COLLECT_NAMES=
8413 export COLLECT_NAMES
8414 fi
8415 ;;
8416 esac
8417
8418 # Global variables:
8419 ofile=libtool
8420 can_build_shared=yes
8421
8422 # All known linkers require a `.a' archive for static linking (except MSVC,
8423 # which needs '.lib').
8424 libext=a
8425
8426 with_gnu_ld="$lt_cv_prog_gnu_ld"
8427
8428 old_CC="$CC"
8429 old_CFLAGS="$CFLAGS"
8430
8431 # Set sane defaults for various variables
8432 test -z "$CC" && CC=cc
8433 test -z "$LTCC" && LTCC=$CC
8434 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8435 test -z "$LD" && LD=ld
8436 test -z "$ac_objext" && ac_objext=o
8437
8438 for cc_temp in $compiler""; do
8439 case $cc_temp in
8440 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8441 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8442 \-*) ;;
8443 *) break;;
8444 esac
8445 done
8446 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8447
8448
8449 # Only perform the check for file, if the check method requires it
8450 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8451 case $deplibs_check_method in
8452 file_magic*)
8453 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8455 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8456 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8457 $as_echo_n "(cached) " >&6
8458 else
8459 case $MAGIC_CMD in
8460 [\\/*] | ?:[\\/]*)
8461 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8462 ;;
8463 *)
8464 lt_save_MAGIC_CMD="$MAGIC_CMD"
8465 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8466 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8467 for ac_dir in $ac_dummy; do
8468 IFS="$lt_save_ifs"
8469 test -z "$ac_dir" && ac_dir=.
8470 if test -f $ac_dir/${ac_tool_prefix}file; then
8471 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8472 if test -n "$file_magic_test_file"; then
8473 case $deplibs_check_method in
8474 "file_magic "*)
8475 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8476 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8477 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8478 $EGREP "$file_magic_regex" > /dev/null; then
8479 :
8480 else
8481 cat <<_LT_EOF 1>&2
8482
8483 *** Warning: the command libtool uses to detect shared libraries,
8484 *** $file_magic_cmd, produces output that libtool cannot recognize.
8485 *** The result is that libtool may fail to recognize shared libraries
8486 *** as such. This will affect the creation of libtool libraries that
8487 *** depend on shared libraries, but programs linked with such libtool
8488 *** libraries will work regardless of this problem. Nevertheless, you
8489 *** may want to report the problem to your system manager and/or to
8490 *** [email protected]
8491
8492 _LT_EOF
8493 fi ;;
8494 esac
8495 fi
8496 break
8497 fi
8498 done
8499 IFS="$lt_save_ifs"
8500 MAGIC_CMD="$lt_save_MAGIC_CMD"
8501 ;;
8502 esac
8503 fi
8504
8505 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8506 if test -n "$MAGIC_CMD"; then
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8508 $as_echo "$MAGIC_CMD" >&6; }
8509 else
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511 $as_echo "no" >&6; }
8512 fi
8513
8514
8515
8516
8517
8518 if test -z "$lt_cv_path_MAGIC_CMD"; then
8519 if test -n "$ac_tool_prefix"; then
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8521 $as_echo_n "checking for file... " >&6; }
8522 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8523 $as_echo_n "(cached) " >&6
8524 else
8525 case $MAGIC_CMD in
8526 [\\/*] | ?:[\\/]*)
8527 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8528 ;;
8529 *)
8530 lt_save_MAGIC_CMD="$MAGIC_CMD"
8531 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8532 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8533 for ac_dir in $ac_dummy; do
8534 IFS="$lt_save_ifs"
8535 test -z "$ac_dir" && ac_dir=.
8536 if test -f $ac_dir/file; then
8537 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8538 if test -n "$file_magic_test_file"; then
8539 case $deplibs_check_method in
8540 "file_magic "*)
8541 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8542 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8543 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8544 $EGREP "$file_magic_regex" > /dev/null; then
8545 :
8546 else
8547 cat <<_LT_EOF 1>&2
8548
8549 *** Warning: the command libtool uses to detect shared libraries,
8550 *** $file_magic_cmd, produces output that libtool cannot recognize.
8551 *** The result is that libtool may fail to recognize shared libraries
8552 *** as such. This will affect the creation of libtool libraries that
8553 *** depend on shared libraries, but programs linked with such libtool
8554 *** libraries will work regardless of this problem. Nevertheless, you
8555 *** may want to report the problem to your system manager and/or to
8556 *** [email protected]
8557
8558 _LT_EOF
8559 fi ;;
8560 esac
8561 fi
8562 break
8563 fi
8564 done
8565 IFS="$lt_save_ifs"
8566 MAGIC_CMD="$lt_save_MAGIC_CMD"
8567 ;;
8568 esac
8569 fi
8570
8571 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8572 if test -n "$MAGIC_CMD"; then
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8574 $as_echo "$MAGIC_CMD" >&6; }
8575 else
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8577 $as_echo "no" >&6; }
8578 fi
8579
8580
8581 else
8582 MAGIC_CMD=:
8583 fi
8584 fi
8585
8586 fi
8587 ;;
8588 esac
8589
8590 # Use C for the default configuration in the libtool script
8591
8592 lt_save_CC="$CC"
8593 ac_ext=c
8594 ac_cpp='$CPP $CPPFLAGS'
8595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8598
8599
8600 # Source file extension for C test sources.
8601 ac_ext=c
8602
8603 # Object file extension for compiled C test sources.
8604 objext=o
8605 objext=$objext
8606
8607 # Code to be used in simple compile tests
8608 lt_simple_compile_test_code="int some_variable = 0;"
8609
8610 # Code to be used in simple link tests
8611 lt_simple_link_test_code='int main(){return(0);}'
8612
8613
8614
8615
8616
8617
8618
8619 # If no C compiler was specified, use CC.
8620 LTCC=${LTCC-"$CC"}
8621
8622 # If no C compiler flags were specified, use CFLAGS.
8623 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8624
8625 # Allow CC to be a program name with arguments.
8626 compiler=$CC
8627
8628 # Save the default compiler, since it gets overwritten when the other
8629 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8630 compiler_DEFAULT=$CC
8631
8632 # save warnings/boilerplate of simple test code
8633 ac_outfile=conftest.$ac_objext
8634 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8635 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8636 _lt_compiler_boilerplate=`cat conftest.err`
8637 $RM conftest*
8638
8639 ac_outfile=conftest.$ac_objext
8640 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8641 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8642 _lt_linker_boilerplate=`cat conftest.err`
8643 $RM -r conftest*
8644
8645
8646 ## CAVEAT EMPTOR:
8647 ## There is no encapsulation within the following macros, do not change
8648 ## the running order or otherwise move them around unless you know exactly
8649 ## what you are doing...
8650 if test -n "$compiler"; then
8651
8652 lt_prog_compiler_no_builtin_flag=
8653
8654 if test "$GCC" = yes; then
8655 case $cc_basename in
8656 nvcc*)
8657 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8658 *)
8659 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8660 esac
8661
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8663 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8664 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8665 $as_echo_n "(cached) " >&6
8666 else
8667 lt_cv_prog_compiler_rtti_exceptions=no
8668 ac_outfile=conftest.$ac_objext
8669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8670 lt_compiler_flag="-fno-rtti -fno-exceptions"
8671 # Insert the option either (1) after the last *FLAGS variable, or
8672 # (2) before a word containing "conftest.", or (3) at the end.
8673 # Note that $ac_compile itself does not contain backslashes and begins
8674 # with a dollar sign (not a hyphen), so the echo should work correctly.
8675 # The option is referenced via a variable to avoid confusing sed.
8676 lt_compile=`echo "$ac_compile" | $SED \
8677 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8678 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8679 -e 's:$: $lt_compiler_flag:'`
8680 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8681 (eval "$lt_compile" 2>conftest.err)
8682 ac_status=$?
8683 cat conftest.err >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 if (exit $ac_status) && test -s "$ac_outfile"; then
8686 # The compiler can only warn and ignore the option if not recognized
8687 # So say no if there are warnings other than the usual output.
8688 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8689 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8690 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8691 lt_cv_prog_compiler_rtti_exceptions=yes
8692 fi
8693 fi
8694 $RM conftest*
8695
8696 fi
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8698 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8699
8700 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8701 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8702 else
8703 :
8704 fi
8705
8706 fi
8707
8708
8709
8710
8711
8712
8713 lt_prog_compiler_wl=
8714 lt_prog_compiler_pic=
8715 lt_prog_compiler_static=
8716
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8718 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8719
8720 if test "$GCC" = yes; then
8721 lt_prog_compiler_wl='-Wl,'
8722 lt_prog_compiler_static='-static'
8723
8724 case $host_os in
8725 aix*)
8726 # All AIX code is PIC.
8727 if test "$host_cpu" = ia64; then
8728 # AIX 5 now supports IA64 processor
8729 lt_prog_compiler_static='-Bstatic'
8730 fi
8731 lt_prog_compiler_pic='-fPIC'
8732 ;;
8733
8734 amigaos*)
8735 case $host_cpu in
8736 powerpc)
8737 # see comment about AmigaOS4 .so support
8738 lt_prog_compiler_pic='-fPIC'
8739 ;;
8740 m68k)
8741 # FIXME: we need at least 68020 code to build shared libraries, but
8742 # adding the `-m68020' flag to GCC prevents building anything better,
8743 # like `-m68040'.
8744 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8745 ;;
8746 esac
8747 ;;
8748
8749 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8750 # PIC is the default for these OSes.
8751 ;;
8752
8753 mingw* | cygwin* | pw32* | os2* | cegcc*)
8754 # This hack is so that the source file can tell whether it is being
8755 # built for inclusion in a dll (and should export symbols for example).
8756 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8757 # (--disable-auto-import) libraries
8758 lt_prog_compiler_pic='-DDLL_EXPORT'
8759 ;;
8760
8761 darwin* | rhapsody*)
8762 # PIC is the default on this platform
8763 # Common symbols not allowed in MH_DYLIB files
8764 lt_prog_compiler_pic='-fno-common'
8765 ;;
8766
8767 haiku*)
8768 # PIC is the default for Haiku.
8769 # The "-static" flag exists, but is broken.
8770 lt_prog_compiler_static=
8771 ;;
8772
8773 hpux*)
8774 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8775 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8776 # sets the default TLS model and affects inlining.
8777 case $host_cpu in
8778 hppa*64*)
8779 # +Z the default
8780 ;;
8781 *)
8782 lt_prog_compiler_pic='-fPIC'
8783 ;;
8784 esac
8785 ;;
8786
8787 interix[3-9]*)
8788 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8789 # Instead, we relocate shared libraries at runtime.
8790 ;;
8791
8792 msdosdjgpp*)
8793 # Just because we use GCC doesn't mean we suddenly get shared libraries
8794 # on systems that don't support them.
8795 lt_prog_compiler_can_build_shared=no
8796 enable_shared=no
8797 ;;
8798
8799 *nto* | *qnx*)
8800 # QNX uses GNU C++, but need to define -shared option too, otherwise
8801 # it will coredump.
8802 lt_prog_compiler_pic='-fPIC -shared'
8803 ;;
8804
8805 sysv4*MP*)
8806 if test -d /usr/nec; then
8807 lt_prog_compiler_pic=-Kconform_pic
8808 fi
8809 ;;
8810
8811 *)
8812 lt_prog_compiler_pic='-fPIC'
8813 ;;
8814 esac
8815
8816 case $cc_basename in
8817 nvcc*) # Cuda Compiler Driver 2.2
8818 lt_prog_compiler_wl='-Xlinker '
8819 lt_prog_compiler_pic='-Xcompiler -fPIC'
8820 ;;
8821 esac
8822 else
8823 # PORTME Check for flag to pass linker flags through the system compiler.
8824 case $host_os in
8825 aix*)
8826 lt_prog_compiler_wl='-Wl,'
8827 if test "$host_cpu" = ia64; then
8828 # AIX 5 now supports IA64 processor
8829 lt_prog_compiler_static='-Bstatic'
8830 else
8831 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8832 fi
8833 ;;
8834
8835 mingw* | cygwin* | pw32* | os2* | cegcc*)
8836 # This hack is so that the source file can tell whether it is being
8837 # built for inclusion in a dll (and should export symbols for example).
8838 lt_prog_compiler_pic='-DDLL_EXPORT'
8839 ;;
8840
8841 hpux9* | hpux10* | hpux11*)
8842 lt_prog_compiler_wl='-Wl,'
8843 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8844 # not for PA HP-UX.
8845 case $host_cpu in
8846 hppa*64*|ia64*)
8847 # +Z the default
8848 ;;
8849 *)
8850 lt_prog_compiler_pic='+Z'
8851 ;;
8852 esac
8853 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8854 lt_prog_compiler_static='${wl}-a ${wl}archive'
8855 ;;
8856
8857 irix5* | irix6* | nonstopux*)
8858 lt_prog_compiler_wl='-Wl,'
8859 # PIC (with -KPIC) is the default.
8860 lt_prog_compiler_static='-non_shared'
8861 ;;
8862
8863 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8864 case $cc_basename in
8865 # old Intel for x86_64 which still supported -KPIC.
8866 ecc*)
8867 lt_prog_compiler_wl='-Wl,'
8868 lt_prog_compiler_pic='-KPIC'
8869 lt_prog_compiler_static='-static'
8870 ;;
8871 # icc used to be incompatible with GCC.
8872 # ICC 10 doesn't accept -KPIC any more.
8873 icc* | ifort*)
8874 lt_prog_compiler_wl='-Wl,'
8875 lt_prog_compiler_pic='-fPIC'
8876 lt_prog_compiler_static='-static'
8877 ;;
8878 # Lahey Fortran 8.1.
8879 lf95*)
8880 lt_prog_compiler_wl='-Wl,'
8881 lt_prog_compiler_pic='--shared'
8882 lt_prog_compiler_static='--static'
8883 ;;
8884 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8885 # Portland Group compilers (*not* the Pentium gcc compiler,
8886 # which looks to be a dead project)
8887 lt_prog_compiler_wl='-Wl,'
8888 lt_prog_compiler_pic='-fpic'
8889 lt_prog_compiler_static='-Bstatic'
8890 ;;
8891 ccc*)
8892 lt_prog_compiler_wl='-Wl,'
8893 # All Alpha code is PIC.
8894 lt_prog_compiler_static='-non_shared'
8895 ;;
8896 xl* | bgxl* | bgf* | mpixl*)
8897 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8898 lt_prog_compiler_wl='-Wl,'
8899 lt_prog_compiler_pic='-qpic'
8900 lt_prog_compiler_static='-qstaticlink'
8901 ;;
8902 *)
8903 case `$CC -V 2>&1 | sed 5q` in
8904 *Sun\ F* | *Sun*Fortran*)
8905 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8906 lt_prog_compiler_pic='-KPIC'
8907 lt_prog_compiler_static='-Bstatic'
8908 lt_prog_compiler_wl=''
8909 ;;
8910 *Sun\ C*)
8911 # Sun C 5.9
8912 lt_prog_compiler_pic='-KPIC'
8913 lt_prog_compiler_static='-Bstatic'
8914 lt_prog_compiler_wl='-Wl,'
8915 ;;
8916 esac
8917 ;;
8918 esac
8919 ;;
8920
8921 newsos6)
8922 lt_prog_compiler_pic='-KPIC'
8923 lt_prog_compiler_static='-Bstatic'
8924 ;;
8925
8926 *nto* | *qnx*)
8927 # QNX uses GNU C++, but need to define -shared option too, otherwise
8928 # it will coredump.
8929 lt_prog_compiler_pic='-fPIC -shared'
8930 ;;
8931
8932 osf3* | osf4* | osf5*)
8933 lt_prog_compiler_wl='-Wl,'
8934 # All OSF/1 code is PIC.
8935 lt_prog_compiler_static='-non_shared'
8936 ;;
8937
8938 rdos*)
8939 lt_prog_compiler_static='-non_shared'
8940 ;;
8941
8942 solaris*)
8943 lt_prog_compiler_pic='-KPIC'
8944 lt_prog_compiler_static='-Bstatic'
8945 case $cc_basename in
8946 f77* | f90* | f95*)
8947 lt_prog_compiler_wl='-Qoption ld ';;
8948 *)
8949 lt_prog_compiler_wl='-Wl,';;
8950 esac
8951 ;;
8952
8953 sunos4*)
8954 lt_prog_compiler_wl='-Qoption ld '
8955 lt_prog_compiler_pic='-PIC'
8956 lt_prog_compiler_static='-Bstatic'
8957 ;;
8958
8959 sysv4 | sysv4.2uw2* | sysv4.3*)
8960 lt_prog_compiler_wl='-Wl,'
8961 lt_prog_compiler_pic='-KPIC'
8962 lt_prog_compiler_static='-Bstatic'
8963 ;;
8964
8965 sysv4*MP*)
8966 if test -d /usr/nec ;then
8967 lt_prog_compiler_pic='-Kconform_pic'
8968 lt_prog_compiler_static='-Bstatic'
8969 fi
8970 ;;
8971
8972 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8973 lt_prog_compiler_wl='-Wl,'
8974 lt_prog_compiler_pic='-KPIC'
8975 lt_prog_compiler_static='-Bstatic'
8976 ;;
8977
8978 unicos*)
8979 lt_prog_compiler_wl='-Wl,'
8980 lt_prog_compiler_can_build_shared=no
8981 ;;
8982
8983 uts4*)
8984 lt_prog_compiler_pic='-pic'
8985 lt_prog_compiler_static='-Bstatic'
8986 ;;
8987
8988 *)
8989 lt_prog_compiler_can_build_shared=no
8990 ;;
8991 esac
8992 fi
8993
8994 case $host_os in
8995 # For platforms which do not support PIC, -DPIC is meaningless:
8996 *djgpp*)
8997 lt_prog_compiler_pic=
8998 ;;
8999 *)
9000 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9001 ;;
9002 esac
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9004 $as_echo "$lt_prog_compiler_pic" >&6; }
9005
9006
9007
9008
9009
9010
9011 #
9012 # Check to make sure the PIC flag actually works.
9013 #
9014 if test -n "$lt_prog_compiler_pic"; then
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9016 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9017 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9018 $as_echo_n "(cached) " >&6
9019 else
9020 lt_cv_prog_compiler_pic_works=no
9021 ac_outfile=conftest.$ac_objext
9022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9023 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9024 # Insert the option either (1) after the last *FLAGS variable, or
9025 # (2) before a word containing "conftest.", or (3) at the end.
9026 # Note that $ac_compile itself does not contain backslashes and begins
9027 # with a dollar sign (not a hyphen), so the echo should work correctly.
9028 # The option is referenced via a variable to avoid confusing sed.
9029 lt_compile=`echo "$ac_compile" | $SED \
9030 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9031 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9032 -e 's:$: $lt_compiler_flag:'`
9033 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9034 (eval "$lt_compile" 2>conftest.err)
9035 ac_status=$?
9036 cat conftest.err >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 if (exit $ac_status) && test -s "$ac_outfile"; then
9039 # The compiler can only warn and ignore the option if not recognized
9040 # So say no if there are warnings other than the usual output.
9041 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9042 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9043 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9044 lt_cv_prog_compiler_pic_works=yes
9045 fi
9046 fi
9047 $RM conftest*
9048
9049 fi
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9051 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9052
9053 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9054 case $lt_prog_compiler_pic in
9055 "" | " "*) ;;
9056 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9057 esac
9058 else
9059 lt_prog_compiler_pic=
9060 lt_prog_compiler_can_build_shared=no
9061 fi
9062
9063 fi
9064
9065
9066
9067
9068
9069
9070 #
9071 # Check to make sure the static flag actually works.
9072 #
9073 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9075 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9076 if ${lt_cv_prog_compiler_static_works+:} false; then :
9077 $as_echo_n "(cached) " >&6
9078 else
9079 lt_cv_prog_compiler_static_works=no
9080 save_LDFLAGS="$LDFLAGS"
9081 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9082 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9083 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9084 # The linker can only warn and ignore the option if not recognized
9085 # So say no if there are warnings
9086 if test -s conftest.err; then
9087 # Append any errors to the config.log.
9088 cat conftest.err 1>&5
9089 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9091 if diff conftest.exp conftest.er2 >/dev/null; then
9092 lt_cv_prog_compiler_static_works=yes
9093 fi
9094 else
9095 lt_cv_prog_compiler_static_works=yes
9096 fi
9097 fi
9098 $RM -r conftest*
9099 LDFLAGS="$save_LDFLAGS"
9100
9101 fi
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9103 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9104
9105 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9106 :
9107 else
9108 lt_prog_compiler_static=
9109 fi
9110
9111
9112
9113
9114
9115
9116
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9118 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9119 if ${lt_cv_prog_compiler_c_o+:} false; then :
9120 $as_echo_n "(cached) " >&6
9121 else
9122 lt_cv_prog_compiler_c_o=no
9123 $RM -r conftest 2>/dev/null
9124 mkdir conftest
9125 cd conftest
9126 mkdir out
9127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9128
9129 lt_compiler_flag="-o out/conftest2.$ac_objext"
9130 # Insert the option either (1) after the last *FLAGS variable, or
9131 # (2) before a word containing "conftest.", or (3) at the end.
9132 # Note that $ac_compile itself does not contain backslashes and begins
9133 # with a dollar sign (not a hyphen), so the echo should work correctly.
9134 lt_compile=`echo "$ac_compile" | $SED \
9135 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9136 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9137 -e 's:$: $lt_compiler_flag:'`
9138 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9139 (eval "$lt_compile" 2>out/conftest.err)
9140 ac_status=$?
9141 cat out/conftest.err >&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9144 then
9145 # The compiler can only warn and ignore the option if not recognized
9146 # So say no if there are warnings
9147 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9148 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9149 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9150 lt_cv_prog_compiler_c_o=yes
9151 fi
9152 fi
9153 chmod u+w . 2>&5
9154 $RM conftest*
9155 # SGI C++ compiler will create directory out/ii_files/ for
9156 # template instantiation
9157 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9158 $RM out/* && rmdir out
9159 cd ..
9160 $RM -r conftest
9161 $RM conftest*
9162
9163 fi
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9165 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9166
9167
9168
9169
9170
9171
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9173 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9174 if ${lt_cv_prog_compiler_c_o+:} false; then :
9175 $as_echo_n "(cached) " >&6
9176 else
9177 lt_cv_prog_compiler_c_o=no
9178 $RM -r conftest 2>/dev/null
9179 mkdir conftest
9180 cd conftest
9181 mkdir out
9182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9183
9184 lt_compiler_flag="-o out/conftest2.$ac_objext"
9185 # Insert the option either (1) after the last *FLAGS variable, or
9186 # (2) before a word containing "conftest.", or (3) at the end.
9187 # Note that $ac_compile itself does not contain backslashes and begins
9188 # with a dollar sign (not a hyphen), so the echo should work correctly.
9189 lt_compile=`echo "$ac_compile" | $SED \
9190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9192 -e 's:$: $lt_compiler_flag:'`
9193 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9194 (eval "$lt_compile" 2>out/conftest.err)
9195 ac_status=$?
9196 cat out/conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9199 then
9200 # The compiler can only warn and ignore the option if not recognized
9201 # So say no if there are warnings
9202 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9203 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9204 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9205 lt_cv_prog_compiler_c_o=yes
9206 fi
9207 fi
9208 chmod u+w . 2>&5
9209 $RM conftest*
9210 # SGI C++ compiler will create directory out/ii_files/ for
9211 # template instantiation
9212 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9213 $RM out/* && rmdir out
9214 cd ..
9215 $RM -r conftest
9216 $RM conftest*
9217
9218 fi
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9220 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9221
9222
9223
9224
9225 hard_links="nottested"
9226 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9227 # do not overwrite the value of need_locks provided by the user
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9229 $as_echo_n "checking if we can lock with hard links... " >&6; }
9230 hard_links=yes
9231 $RM conftest*
9232 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9233 touch conftest.a
9234 ln conftest.a conftest.b 2>&5 || hard_links=no
9235 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9237 $as_echo "$hard_links" >&6; }
9238 if test "$hard_links" = no; then
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9240 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9241 need_locks=warn
9242 fi
9243 else
9244 need_locks=no
9245 fi
9246
9247
9248
9249
9250
9251
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9253 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9254
9255 runpath_var=
9256 allow_undefined_flag=
9257 always_export_symbols=no
9258 archive_cmds=
9259 archive_expsym_cmds=
9260 compiler_needs_object=no
9261 enable_shared_with_static_runtimes=no
9262 export_dynamic_flag_spec=
9263 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9264 hardcode_automatic=no
9265 hardcode_direct=no
9266 hardcode_direct_absolute=no
9267 hardcode_libdir_flag_spec=
9268 hardcode_libdir_flag_spec_ld=
9269 hardcode_libdir_separator=
9270 hardcode_minus_L=no
9271 hardcode_shlibpath_var=unsupported
9272 inherit_rpath=no
9273 link_all_deplibs=unknown
9274 module_cmds=
9275 module_expsym_cmds=
9276 old_archive_from_new_cmds=
9277 old_archive_from_expsyms_cmds=
9278 thread_safe_flag_spec=
9279 whole_archive_flag_spec=
9280 # include_expsyms should be a list of space-separated symbols to be *always*
9281 # included in the symbol list
9282 include_expsyms=
9283 # exclude_expsyms can be an extended regexp of symbols to exclude
9284 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9285 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9286 # as well as any symbol that contains `d'.
9287 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9288 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9289 # platforms (ab)use it in PIC code, but their linkers get confused if
9290 # the symbol is explicitly referenced. Since portable code cannot
9291 # rely on this symbol name, it's probably fine to never include it in
9292 # preloaded symbol tables.
9293 # Exclude shared library initialization/finalization symbols.
9294 extract_expsyms_cmds=
9295
9296 case $host_os in
9297 cygwin* | mingw* | pw32* | cegcc*)
9298 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9299 # When not using gcc, we currently assume that we are using
9300 # Microsoft Visual C++.
9301 if test "$GCC" != yes; then
9302 with_gnu_ld=no
9303 fi
9304 ;;
9305 interix*)
9306 # we just hope/assume this is gcc and not c89 (= MSVC++)
9307 with_gnu_ld=yes
9308 ;;
9309 openbsd*)
9310 with_gnu_ld=no
9311 ;;
9312 esac
9313
9314 ld_shlibs=yes
9315
9316 # On some targets, GNU ld is compatible enough with the native linker
9317 # that we're better off using the native interface for both.
9318 lt_use_gnu_ld_interface=no
9319 if test "$with_gnu_ld" = yes; then
9320 case $host_os in
9321 aix*)
9322 # The AIX port of GNU ld has always aspired to compatibility
9323 # with the native linker. However, as the warning in the GNU ld
9324 # block says, versions before 2.19.5* couldn't really create working
9325 # shared libraries, regardless of the interface used.
9326 case `$LD -v 2>&1` in
9327 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9328 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9329 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9330 *)
9331 lt_use_gnu_ld_interface=yes
9332 ;;
9333 esac
9334 ;;
9335 *)
9336 lt_use_gnu_ld_interface=yes
9337 ;;
9338 esac
9339 fi
9340
9341 if test "$lt_use_gnu_ld_interface" = yes; then
9342 # If archive_cmds runs LD, not CC, wlarc should be empty
9343 wlarc='${wl}'
9344
9345 # Set some defaults for GNU ld with shared library support. These
9346 # are reset later if shared libraries are not supported. Putting them
9347 # here allows them to be overridden if necessary.
9348 runpath_var=LD_RUN_PATH
9349 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9350 export_dynamic_flag_spec='${wl}--export-dynamic'
9351 # ancient GNU ld didn't support --whole-archive et. al.
9352 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9353 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9354 else
9355 whole_archive_flag_spec=
9356 fi
9357 supports_anon_versioning=no
9358 case `$LD -v 2>&1` in
9359 *GNU\ gold*) supports_anon_versioning=yes ;;
9360 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9361 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9362 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9363 *\ 2.11.*) ;; # other 2.11 versions
9364 *) supports_anon_versioning=yes ;;
9365 esac
9366
9367 # See if GNU ld supports shared libraries.
9368 case $host_os in
9369 aix[3-9]*)
9370 # On AIX/PPC, the GNU linker is very broken
9371 if test "$host_cpu" != ia64; then
9372 ld_shlibs=no
9373 cat <<_LT_EOF 1>&2
9374
9375 *** Warning: the GNU linker, at least up to release 2.19, is reported
9376 *** to be unable to reliably create shared libraries on AIX.
9377 *** Therefore, libtool is disabling shared libraries support. If you
9378 *** really care for shared libraries, you may want to install binutils
9379 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9380 *** You will then need to restart the configuration process.
9381
9382 _LT_EOF
9383 fi
9384 ;;
9385
9386 amigaos*)
9387 case $host_cpu in
9388 powerpc)
9389 # see comment about AmigaOS4 .so support
9390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9391 archive_expsym_cmds=''
9392 ;;
9393 m68k)
9394 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)'
9395 hardcode_libdir_flag_spec='-L$libdir'
9396 hardcode_minus_L=yes
9397 ;;
9398 esac
9399 ;;
9400
9401 beos*)
9402 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9403 allow_undefined_flag=unsupported
9404 # Joseph Beckenbach <[email protected]> says some releases of gcc
9405 # support --undefined. This deserves some investigation. FIXME
9406 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9407 else
9408 ld_shlibs=no
9409 fi
9410 ;;
9411
9412 cygwin* | mingw* | pw32* | cegcc*)
9413 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9414 # as there is no search path for DLLs.
9415 hardcode_libdir_flag_spec='-L$libdir'
9416 export_dynamic_flag_spec='${wl}--export-all-symbols'
9417 allow_undefined_flag=unsupported
9418 always_export_symbols=no
9419 enable_shared_with_static_runtimes=yes
9420 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9421
9422 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9423 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9424 # If the export-symbols file already is a .def file (1st line
9425 # is EXPORTS), use it as is; otherwise, prepend...
9426 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9427 cp $export_symbols $output_objdir/$soname.def;
9428 else
9429 echo EXPORTS > $output_objdir/$soname.def;
9430 cat $export_symbols >> $output_objdir/$soname.def;
9431 fi~
9432 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9433 else
9434 ld_shlibs=no
9435 fi
9436 ;;
9437
9438 haiku*)
9439 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9440 link_all_deplibs=yes
9441 ;;
9442
9443 interix[3-9]*)
9444 hardcode_direct=no
9445 hardcode_shlibpath_var=no
9446 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9447 export_dynamic_flag_spec='${wl}-E'
9448 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9449 # Instead, shared libraries are loaded at an image base (0x10000000 by
9450 # default) and relocated if they conflict, which is a slow very memory
9451 # consuming and fragmenting process. To avoid this, we pick a random,
9452 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9453 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9454 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9455 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'
9456 ;;
9457
9458 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9459 tmp_diet=no
9460 if test "$host_os" = linux-dietlibc; then
9461 case $cc_basename in
9462 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9463 esac
9464 fi
9465 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9466 && test "$tmp_diet" = no
9467 then
9468 tmp_addflag=' $pic_flag'
9469 tmp_sharedflag='-shared'
9470 case $cc_basename,$host_cpu in
9471 pgcc*) # Portland Group C compiler
9472 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'
9473 tmp_addflag=' $pic_flag'
9474 ;;
9475 pgf77* | pgf90* | pgf95* | pgfortran*)
9476 # Portland Group f77 and f90 compilers
9477 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'
9478 tmp_addflag=' $pic_flag -Mnomain' ;;
9479 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9480 tmp_addflag=' -i_dynamic' ;;
9481 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9482 tmp_addflag=' -i_dynamic -nofor_main' ;;
9483 ifc* | ifort*) # Intel Fortran compiler
9484 tmp_addflag=' -nofor_main' ;;
9485 lf95*) # Lahey Fortran 8.1
9486 whole_archive_flag_spec=
9487 tmp_sharedflag='--shared' ;;
9488 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9489 tmp_sharedflag='-qmkshrobj'
9490 tmp_addflag= ;;
9491 nvcc*) # Cuda Compiler Driver 2.2
9492 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'
9493 compiler_needs_object=yes
9494 ;;
9495 esac
9496 case `$CC -V 2>&1 | sed 5q` in
9497 *Sun\ C*) # Sun C 5.9
9498 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'
9499 compiler_needs_object=yes
9500 tmp_sharedflag='-G' ;;
9501 *Sun\ F*) # Sun Fortran 8.3
9502 tmp_sharedflag='-G' ;;
9503 esac
9504 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9505
9506 if test "x$supports_anon_versioning" = xyes; then
9507 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9508 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9509 echo "local: *; };" >> $output_objdir/$libname.ver~
9510 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9511 fi
9512
9513 case $cc_basename in
9514 xlf* | bgf* | bgxlf* | mpixlf*)
9515 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9516 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9517 hardcode_libdir_flag_spec=
9518 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9519 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9520 if test "x$supports_anon_versioning" = xyes; then
9521 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9522 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9523 echo "local: *; };" >> $output_objdir/$libname.ver~
9524 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9525 fi
9526 ;;
9527 esac
9528 else
9529 ld_shlibs=no
9530 fi
9531 ;;
9532
9533 netbsd*)
9534 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9535 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9536 wlarc=
9537 else
9538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9539 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9540 fi
9541 ;;
9542
9543 solaris*)
9544 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9545 ld_shlibs=no
9546 cat <<_LT_EOF 1>&2
9547
9548 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9549 *** create shared libraries on Solaris systems. Therefore, libtool
9550 *** is disabling shared libraries support. We urge you to upgrade GNU
9551 *** binutils to release 2.9.1 or newer. Another option is to modify
9552 *** your PATH or compiler configuration so that the native linker is
9553 *** used, and then restart.
9554
9555 _LT_EOF
9556 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9558 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9559 else
9560 ld_shlibs=no
9561 fi
9562 ;;
9563
9564 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9565 case `$LD -v 2>&1` in
9566 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9567 ld_shlibs=no
9568 cat <<_LT_EOF 1>&2
9569
9570 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9571 *** reliably create shared libraries on SCO systems. Therefore, libtool
9572 *** is disabling shared libraries support. We urge you to upgrade GNU
9573 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9574 *** your PATH or compiler configuration so that the native linker is
9575 *** used, and then restart.
9576
9577 _LT_EOF
9578 ;;
9579 *)
9580 # For security reasons, it is highly recommended that you always
9581 # use absolute paths for naming shared libraries, and exclude the
9582 # DT_RUNPATH tag from executables and libraries. But doing so
9583 # requires that you compile everything twice, which is a pain.
9584 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9585 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9586 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9587 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9588 else
9589 ld_shlibs=no
9590 fi
9591 ;;
9592 esac
9593 ;;
9594
9595 sunos4*)
9596 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9597 wlarc=
9598 hardcode_direct=yes
9599 hardcode_shlibpath_var=no
9600 ;;
9601
9602 *)
9603 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9604 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9605 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9606 else
9607 ld_shlibs=no
9608 fi
9609 ;;
9610 esac
9611
9612 if test "$ld_shlibs" = no; then
9613 runpath_var=
9614 hardcode_libdir_flag_spec=
9615 export_dynamic_flag_spec=
9616 whole_archive_flag_spec=
9617 fi
9618 else
9619 # PORTME fill in a description of your system's linker (not GNU ld)
9620 case $host_os in
9621 aix3*)
9622 allow_undefined_flag=unsupported
9623 always_export_symbols=yes
9624 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'
9625 # Note: this linker hardcodes the directories in LIBPATH if there
9626 # are no directories specified by -L.
9627 hardcode_minus_L=yes
9628 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9629 # Neither direct hardcoding nor static linking is supported with a
9630 # broken collect2.
9631 hardcode_direct=unsupported
9632 fi
9633 ;;
9634
9635 aix[4-9]*)
9636 if test "$host_cpu" = ia64; then
9637 # On IA64, the linker does run time linking by default, so we don't
9638 # have to do anything special.
9639 aix_use_runtimelinking=no
9640 exp_sym_flag='-Bexport'
9641 no_entry_flag=""
9642 else
9643 # If we're using GNU nm, then we don't want the "-C" option.
9644 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9645 # Also, AIX nm treats weak defined symbols like other global
9646 # defined symbols, whereas GNU nm marks them as "W".
9647 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9648 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'
9649 else
9650 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9651 fi
9652 aix_use_runtimelinking=no
9653
9654 # Test if we are trying to use run time linking or normal
9655 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9656 # need to do runtime linking.
9657 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9658 for ld_flag in $LDFLAGS; do
9659 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9660 aix_use_runtimelinking=yes
9661 break
9662 fi
9663 done
9664 ;;
9665 esac
9666
9667 exp_sym_flag='-bexport'
9668 no_entry_flag='-bnoentry'
9669 fi
9670
9671 # When large executables or shared objects are built, AIX ld can
9672 # have problems creating the table of contents. If linking a library
9673 # or program results in "error TOC overflow" add -mminimal-toc to
9674 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9675 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9676
9677 archive_cmds=''
9678 hardcode_direct=yes
9679 hardcode_direct_absolute=yes
9680 hardcode_libdir_separator=':'
9681 link_all_deplibs=yes
9682 file_list_spec='${wl}-f,'
9683
9684 if test "$GCC" = yes; then
9685 case $host_os in aix4.[012]|aix4.[012].*)
9686 # We only want to do this on AIX 4.2 and lower, the check
9687 # below for broken collect2 doesn't work under 4.3+
9688 collect2name=`${CC} -print-prog-name=collect2`
9689 if test -f "$collect2name" &&
9690 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9691 then
9692 # We have reworked collect2
9693 :
9694 else
9695 # We have old collect2
9696 hardcode_direct=unsupported
9697 # It fails to find uninstalled libraries when the uninstalled
9698 # path is not listed in the libpath. Setting hardcode_minus_L
9699 # to unsupported forces relinking
9700 hardcode_minus_L=yes
9701 hardcode_libdir_flag_spec='-L$libdir'
9702 hardcode_libdir_separator=
9703 fi
9704 ;;
9705 esac
9706 shared_flag='-shared'
9707 if test "$aix_use_runtimelinking" = yes; then
9708 shared_flag="$shared_flag "'${wl}-G'
9709 fi
9710 else
9711 # not using gcc
9712 if test "$host_cpu" = ia64; then
9713 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9714 # chokes on -Wl,-G. The following line is correct:
9715 shared_flag='-G'
9716 else
9717 if test "$aix_use_runtimelinking" = yes; then
9718 shared_flag='${wl}-G'
9719 else
9720 shared_flag='${wl}-bM:SRE'
9721 fi
9722 fi
9723 fi
9724
9725 export_dynamic_flag_spec='${wl}-bexpall'
9726 # It seems that -bexpall does not export symbols beginning with
9727 # underscore (_), so it is better to generate a list of symbols to export.
9728 always_export_symbols=yes
9729 if test "$aix_use_runtimelinking" = yes; then
9730 # Warning - without using the other runtime loading flags (-brtl),
9731 # -berok will link without error, but may produce a broken library.
9732 allow_undefined_flag='-berok'
9733 # Determine the default libpath from the value encoded in an
9734 # empty executable.
9735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736 /* end confdefs.h. */
9737
9738 int
9739 main ()
9740 {
9741
9742 ;
9743 return 0;
9744 }
9745 _ACEOF
9746 if ac_fn_c_try_link "$LINENO"; then :
9747
9748 lt_aix_libpath_sed='
9749 /Import File Strings/,/^$/ {
9750 /^0/ {
9751 s/^0 *\(.*\)$/\1/
9752 p
9753 }
9754 }'
9755 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9756 # Check for a 64-bit object if we didn't find anything.
9757 if test -z "$aix_libpath"; then
9758 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9759 fi
9760 fi
9761 rm -f core conftest.err conftest.$ac_objext \
9762 conftest$ac_exeext conftest.$ac_ext
9763 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9764
9765 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9766 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"
9767 else
9768 if test "$host_cpu" = ia64; then
9769 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9770 allow_undefined_flag="-z nodefs"
9771 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"
9772 else
9773 # Determine the default libpath from the value encoded in an
9774 # empty executable.
9775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9776 /* end confdefs.h. */
9777
9778 int
9779 main ()
9780 {
9781
9782 ;
9783 return 0;
9784 }
9785 _ACEOF
9786 if ac_fn_c_try_link "$LINENO"; then :
9787
9788 lt_aix_libpath_sed='
9789 /Import File Strings/,/^$/ {
9790 /^0/ {
9791 s/^0 *\(.*\)$/\1/
9792 p
9793 }
9794 }'
9795 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9796 # Check for a 64-bit object if we didn't find anything.
9797 if test -z "$aix_libpath"; then
9798 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9799 fi
9800 fi
9801 rm -f core conftest.err conftest.$ac_objext \
9802 conftest$ac_exeext conftest.$ac_ext
9803 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9804
9805 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9806 # Warning - without using the other run time loading flags,
9807 # -berok will link without error, but may produce a broken library.
9808 no_undefined_flag=' ${wl}-bernotok'
9809 allow_undefined_flag=' ${wl}-berok'
9810 if test "$with_gnu_ld" = yes; then
9811 # We only use this code for GNU lds that support --whole-archive.
9812 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9813 else
9814 # Exported symbols can be pulled into shared objects from archives
9815 whole_archive_flag_spec='$convenience'
9816 fi
9817 archive_cmds_need_lc=yes
9818 # This is similar to how AIX traditionally builds its shared libraries.
9819 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'
9820 fi
9821 fi
9822 ;;
9823
9824 amigaos*)
9825 case $host_cpu in
9826 powerpc)
9827 # see comment about AmigaOS4 .so support
9828 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9829 archive_expsym_cmds=''
9830 ;;
9831 m68k)
9832 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)'
9833 hardcode_libdir_flag_spec='-L$libdir'
9834 hardcode_minus_L=yes
9835 ;;
9836 esac
9837 ;;
9838
9839 bsdi[45]*)
9840 export_dynamic_flag_spec=-rdynamic
9841 ;;
9842
9843 cygwin* | mingw* | pw32* | cegcc*)
9844 # When not using gcc, we currently assume that we are using
9845 # Microsoft Visual C++.
9846 # hardcode_libdir_flag_spec is actually meaningless, as there is
9847 # no search path for DLLs.
9848 hardcode_libdir_flag_spec=' '
9849 allow_undefined_flag=unsupported
9850 # Tell ltmain to make .lib files, not .a files.
9851 libext=lib
9852 # Tell ltmain to make .dll files, not .so files.
9853 shrext_cmds=".dll"
9854 # FIXME: Setting linknames here is a bad hack.
9855 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9856 # The linker will automatically build a .lib file if we build a DLL.
9857 old_archive_from_new_cmds='true'
9858 # FIXME: Should let the user specify the lib program.
9859 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9860 fix_srcfile_path='`cygpath -w "$srcfile"`'
9861 enable_shared_with_static_runtimes=yes
9862 ;;
9863
9864 darwin* | rhapsody*)
9865
9866
9867 archive_cmds_need_lc=no
9868 hardcode_direct=no
9869 hardcode_automatic=yes
9870 hardcode_shlibpath_var=unsupported
9871 if test "$lt_cv_ld_force_load" = "yes"; then
9872 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\"`'
9873 else
9874 whole_archive_flag_spec=''
9875 fi
9876 link_all_deplibs=yes
9877 allow_undefined_flag="$_lt_dar_allow_undefined"
9878 case $cc_basename in
9879 ifort*) _lt_dar_can_shared=yes ;;
9880 *) _lt_dar_can_shared=$GCC ;;
9881 esac
9882 if test "$_lt_dar_can_shared" = "yes"; then
9883 output_verbose_link_cmd=func_echo_all
9884 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9885 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9886 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}"
9887 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}"
9888
9889 else
9890 ld_shlibs=no
9891 fi
9892
9893 ;;
9894
9895 dgux*)
9896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9897 hardcode_libdir_flag_spec='-L$libdir'
9898 hardcode_shlibpath_var=no
9899 ;;
9900
9901 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9902 # support. Future versions do this automatically, but an explicit c++rt0.o
9903 # does not break anything, and helps significantly (at the cost of a little
9904 # extra space).
9905 freebsd2.2*)
9906 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9907 hardcode_libdir_flag_spec='-R$libdir'
9908 hardcode_direct=yes
9909 hardcode_shlibpath_var=no
9910 ;;
9911
9912 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9913 freebsd2.*)
9914 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9915 hardcode_direct=yes
9916 hardcode_minus_L=yes
9917 hardcode_shlibpath_var=no
9918 ;;
9919
9920 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9921 freebsd* | dragonfly*)
9922 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9923 hardcode_libdir_flag_spec='-R$libdir'
9924 hardcode_direct=yes
9925 hardcode_shlibpath_var=no
9926 ;;
9927
9928 hpux9*)
9929 if test "$GCC" = yes; then
9930 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9931 else
9932 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'
9933 fi
9934 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9935 hardcode_libdir_separator=:
9936 hardcode_direct=yes
9937
9938 # hardcode_minus_L: Not really in the search PATH,
9939 # but as the default location of the library.
9940 hardcode_minus_L=yes
9941 export_dynamic_flag_spec='${wl}-E'
9942 ;;
9943
9944 hpux10*)
9945 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9946 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9947 else
9948 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9949 fi
9950 if test "$with_gnu_ld" = no; then
9951 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9952 hardcode_libdir_flag_spec_ld='+b $libdir'
9953 hardcode_libdir_separator=:
9954 hardcode_direct=yes
9955 hardcode_direct_absolute=yes
9956 export_dynamic_flag_spec='${wl}-E'
9957 # hardcode_minus_L: Not really in the search PATH,
9958 # but as the default location of the library.
9959 hardcode_minus_L=yes
9960 fi
9961 ;;
9962
9963 hpux11*)
9964 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9965 case $host_cpu in
9966 hppa*64*)
9967 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9968 ;;
9969 ia64*)
9970 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9971 ;;
9972 *)
9973 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9974 ;;
9975 esac
9976 else
9977 case $host_cpu in
9978 hppa*64*)
9979 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9980 ;;
9981 ia64*)
9982 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9983 ;;
9984 *)
9985
9986 # Older versions of the 11.00 compiler do not understand -b yet
9987 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9989 $as_echo_n "checking if $CC understands -b... " >&6; }
9990 if ${lt_cv_prog_compiler__b+:} false; then :
9991 $as_echo_n "(cached) " >&6
9992 else
9993 lt_cv_prog_compiler__b=no
9994 save_LDFLAGS="$LDFLAGS"
9995 LDFLAGS="$LDFLAGS -b"
9996 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9997 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9998 # The linker can only warn and ignore the option if not recognized
9999 # So say no if there are warnings
10000 if test -s conftest.err; then
10001 # Append any errors to the config.log.
10002 cat conftest.err 1>&5
10003 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10004 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10005 if diff conftest.exp conftest.er2 >/dev/null; then
10006 lt_cv_prog_compiler__b=yes
10007 fi
10008 else
10009 lt_cv_prog_compiler__b=yes
10010 fi
10011 fi
10012 $RM -r conftest*
10013 LDFLAGS="$save_LDFLAGS"
10014
10015 fi
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10017 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10018
10019 if test x"$lt_cv_prog_compiler__b" = xyes; then
10020 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10021 else
10022 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10023 fi
10024
10025 ;;
10026 esac
10027 fi
10028 if test "$with_gnu_ld" = no; then
10029 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10030 hardcode_libdir_separator=:
10031
10032 case $host_cpu in
10033 hppa*64*|ia64*)
10034 hardcode_direct=no
10035 hardcode_shlibpath_var=no
10036 ;;
10037 *)
10038 hardcode_direct=yes
10039 hardcode_direct_absolute=yes
10040 export_dynamic_flag_spec='${wl}-E'
10041
10042 # hardcode_minus_L: Not really in the search PATH,
10043 # but as the default location of the library.
10044 hardcode_minus_L=yes
10045 ;;
10046 esac
10047 fi
10048 ;;
10049
10050 irix5* | irix6* | nonstopux*)
10051 if test "$GCC" = yes; then
10052 archive_cmds='$CC -shared $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'
10053 # Try to use the -exported_symbol ld option, if it does not
10054 # work, assume that -exports_file does not work either and
10055 # implicitly export all symbols.
10056 save_LDFLAGS="$LDFLAGS"
10057 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10059 /* end confdefs.h. */
10060 int foo(void) {}
10061 _ACEOF
10062 if ac_fn_c_try_link "$LINENO"; then :
10063 archive_expsym_cmds='$CC -shared $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'
10064
10065 fi
10066 rm -f core conftest.err conftest.$ac_objext \
10067 conftest$ac_exeext conftest.$ac_ext
10068 LDFLAGS="$save_LDFLAGS"
10069 else
10070 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'
10071 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'
10072 fi
10073 archive_cmds_need_lc='no'
10074 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10075 hardcode_libdir_separator=:
10076 inherit_rpath=yes
10077 link_all_deplibs=yes
10078 ;;
10079
10080 netbsd*)
10081 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10082 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10083 else
10084 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10085 fi
10086 hardcode_libdir_flag_spec='-R$libdir'
10087 hardcode_direct=yes
10088 hardcode_shlibpath_var=no
10089 ;;
10090
10091 newsos6)
10092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10093 hardcode_direct=yes
10094 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10095 hardcode_libdir_separator=:
10096 hardcode_shlibpath_var=no
10097 ;;
10098
10099 *nto* | *qnx*)
10100 ;;
10101
10102 openbsd*)
10103 if test -f /usr/libexec/ld.so; then
10104 hardcode_direct=yes
10105 hardcode_shlibpath_var=no
10106 hardcode_direct_absolute=yes
10107 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10108 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10109 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10110 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10111 export_dynamic_flag_spec='${wl}-E'
10112 else
10113 case $host_os in
10114 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10115 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10116 hardcode_libdir_flag_spec='-R$libdir'
10117 ;;
10118 *)
10119 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10120 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10121 ;;
10122 esac
10123 fi
10124 else
10125 ld_shlibs=no
10126 fi
10127 ;;
10128
10129 os2*)
10130 hardcode_libdir_flag_spec='-L$libdir'
10131 hardcode_minus_L=yes
10132 allow_undefined_flag=unsupported
10133 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'
10134 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10135 ;;
10136
10137 osf3*)
10138 if test "$GCC" = yes; then
10139 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10140 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'
10141 else
10142 allow_undefined_flag=' -expect_unresolved \*'
10143 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'
10144 fi
10145 archive_cmds_need_lc='no'
10146 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10147 hardcode_libdir_separator=:
10148 ;;
10149
10150 osf4* | osf5*) # as osf3* with the addition of -msym flag
10151 if test "$GCC" = yes; then
10152 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10153 archive_cmds='$CC -shared${allow_undefined_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'
10154 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10155 else
10156 allow_undefined_flag=' -expect_unresolved \*'
10157 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'
10158 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~
10159 $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'
10160
10161 # Both c and cxx compiler support -rpath directly
10162 hardcode_libdir_flag_spec='-rpath $libdir'
10163 fi
10164 archive_cmds_need_lc='no'
10165 hardcode_libdir_separator=:
10166 ;;
10167
10168 solaris*)
10169 no_undefined_flag=' -z defs'
10170 if test "$GCC" = yes; then
10171 wlarc='${wl}'
10172 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10173 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10174 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10175 else
10176 case `$CC -V 2>&1` in
10177 *"Compilers 5.0"*)
10178 wlarc=''
10179 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10180 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10181 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10182 ;;
10183 *)
10184 wlarc='${wl}'
10185 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10186 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10187 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10188 ;;
10189 esac
10190 fi
10191 hardcode_libdir_flag_spec='-R$libdir'
10192 hardcode_shlibpath_var=no
10193 case $host_os in
10194 solaris2.[0-5] | solaris2.[0-5].*) ;;
10195 *)
10196 # The compiler driver will combine and reorder linker options,
10197 # but understands `-z linker_flag'. GCC discards it without `$wl',
10198 # but is careful enough not to reorder.
10199 # Supported since Solaris 2.6 (maybe 2.5.1?)
10200 if test "$GCC" = yes; then
10201 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10202 else
10203 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10204 fi
10205 ;;
10206 esac
10207 link_all_deplibs=yes
10208 ;;
10209
10210 sunos4*)
10211 if test "x$host_vendor" = xsequent; then
10212 # Use $CC to link under sequent, because it throws in some extra .o
10213 # files that make .init and .fini sections work.
10214 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10215 else
10216 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10217 fi
10218 hardcode_libdir_flag_spec='-L$libdir'
10219 hardcode_direct=yes
10220 hardcode_minus_L=yes
10221 hardcode_shlibpath_var=no
10222 ;;
10223
10224 sysv4)
10225 case $host_vendor in
10226 sni)
10227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10228 hardcode_direct=yes # is this really true???
10229 ;;
10230 siemens)
10231 ## LD is ld it makes a PLAMLIB
10232 ## CC just makes a GrossModule.
10233 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10234 reload_cmds='$CC -r -o $output$reload_objs'
10235 hardcode_direct=no
10236 ;;
10237 motorola)
10238 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10239 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10240 ;;
10241 esac
10242 runpath_var='LD_RUN_PATH'
10243 hardcode_shlibpath_var=no
10244 ;;
10245
10246 sysv4.3*)
10247 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10248 hardcode_shlibpath_var=no
10249 export_dynamic_flag_spec='-Bexport'
10250 ;;
10251
10252 sysv4*MP*)
10253 if test -d /usr/nec; then
10254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10255 hardcode_shlibpath_var=no
10256 runpath_var=LD_RUN_PATH
10257 hardcode_runpath_var=yes
10258 ld_shlibs=yes
10259 fi
10260 ;;
10261
10262 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10263 no_undefined_flag='${wl}-z,text'
10264 archive_cmds_need_lc=no
10265 hardcode_shlibpath_var=no
10266 runpath_var='LD_RUN_PATH'
10267
10268 if test "$GCC" = yes; then
10269 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10270 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10271 else
10272 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10273 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10274 fi
10275 ;;
10276
10277 sysv5* | sco3.2v5* | sco5v6*)
10278 # Note: We can NOT use -z defs as we might desire, because we do not
10279 # link with -lc, and that would cause any symbols used from libc to
10280 # always be unresolved, which means just about no library would
10281 # ever link correctly. If we're not using GNU ld we use -z text
10282 # though, which does catch some bad symbols but isn't as heavy-handed
10283 # as -z defs.
10284 no_undefined_flag='${wl}-z,text'
10285 allow_undefined_flag='${wl}-z,nodefs'
10286 archive_cmds_need_lc=no
10287 hardcode_shlibpath_var=no
10288 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10289 hardcode_libdir_separator=':'
10290 link_all_deplibs=yes
10291 export_dynamic_flag_spec='${wl}-Bexport'
10292 runpath_var='LD_RUN_PATH'
10293
10294 if test "$GCC" = yes; then
10295 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10296 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10297 else
10298 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10299 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10300 fi
10301 ;;
10302
10303 uts4*)
10304 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10305 hardcode_libdir_flag_spec='-L$libdir'
10306 hardcode_shlibpath_var=no
10307 ;;
10308
10309 *)
10310 ld_shlibs=no
10311 ;;
10312 esac
10313
10314 if test x$host_vendor = xsni; then
10315 case $host in
10316 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10317 export_dynamic_flag_spec='${wl}-Blargedynsym'
10318 ;;
10319 esac
10320 fi
10321 fi
10322
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10324 $as_echo "$ld_shlibs" >&6; }
10325 test "$ld_shlibs" = no && can_build_shared=no
10326
10327 with_gnu_ld=$with_gnu_ld
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343 #
10344 # Do we need to explicitly link libc?
10345 #
10346 case "x$archive_cmds_need_lc" in
10347 x|xyes)
10348 # Assume -lc should be added
10349 archive_cmds_need_lc=yes
10350
10351 if test "$enable_shared" = yes && test "$GCC" = yes; then
10352 case $archive_cmds in
10353 *'~'*)
10354 # FIXME: we may have to deal with multi-command sequences.
10355 ;;
10356 '$CC '*)
10357 # Test whether the compiler implicitly links with -lc since on some
10358 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10359 # to ld, don't add -lc before -lgcc.
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10361 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10362 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10363 $as_echo_n "(cached) " >&6
10364 else
10365 $RM conftest*
10366 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10367
10368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10369 (eval $ac_compile) 2>&5
10370 ac_status=$?
10371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10372 test $ac_status = 0; } 2>conftest.err; then
10373 soname=conftest
10374 lib=conftest
10375 libobjs=conftest.$ac_objext
10376 deplibs=
10377 wl=$lt_prog_compiler_wl
10378 pic_flag=$lt_prog_compiler_pic
10379 compiler_flags=-v
10380 linker_flags=-v
10381 verstring=
10382 output_objdir=.
10383 libname=conftest
10384 lt_save_allow_undefined_flag=$allow_undefined_flag
10385 allow_undefined_flag=
10386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10387 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10388 ac_status=$?
10389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10390 test $ac_status = 0; }
10391 then
10392 lt_cv_archive_cmds_need_lc=no
10393 else
10394 lt_cv_archive_cmds_need_lc=yes
10395 fi
10396 allow_undefined_flag=$lt_save_allow_undefined_flag
10397 else
10398 cat conftest.err 1>&5
10399 fi
10400 $RM conftest*
10401
10402 fi
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10404 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10405 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10406 ;;
10407 esac
10408 fi
10409 ;;
10410 esac
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10569 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10570
10571 if test "$GCC" = yes; then
10572 case $host_os in
10573 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10574 *) lt_awk_arg="/^libraries:/" ;;
10575 esac
10576 case $host_os in
10577 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10578 *) lt_sed_strip_eq="s,=/,/,g" ;;
10579 esac
10580 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10581 case $lt_search_path_spec in
10582 *\;*)
10583 # if the path contains ";" then we assume it to be the separator
10584 # otherwise default to the standard path separator (i.e. ":") - it is
10585 # assumed that no part of a normal pathname contains ";" but that should
10586 # okay in the real world where ";" in dirpaths is itself problematic.
10587 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10588 ;;
10589 *)
10590 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10591 ;;
10592 esac
10593 # Ok, now we have the path, separated by spaces, we can step through it
10594 # and add multilib dir if necessary.
10595 lt_tmp_lt_search_path_spec=
10596 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10597 for lt_sys_path in $lt_search_path_spec; do
10598 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10599 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10600 else
10601 test -d "$lt_sys_path" && \
10602 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10603 fi
10604 done
10605 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10606 BEGIN {RS=" "; FS="/|\n";} {
10607 lt_foo="";
10608 lt_count=0;
10609 for (lt_i = NF; lt_i > 0; lt_i--) {
10610 if ($lt_i != "" && $lt_i != ".") {
10611 if ($lt_i == "..") {
10612 lt_count++;
10613 } else {
10614 if (lt_count == 0) {
10615 lt_foo="/" $lt_i lt_foo;
10616 } else {
10617 lt_count--;
10618 }
10619 }
10620 }
10621 }
10622 if (lt_foo != "") { lt_freq[lt_foo]++; }
10623 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10624 }'`
10625 # AWK program above erroneously prepends '/' to C:/dos/paths
10626 # for these hosts.
10627 case $host_os in
10628 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10629 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10630 esac
10631 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10632 else
10633 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10634 fi
10635 library_names_spec=
10636 libname_spec='lib$name'
10637 soname_spec=
10638 shrext_cmds=".so"
10639 postinstall_cmds=
10640 postuninstall_cmds=
10641 finish_cmds=
10642 finish_eval=
10643 shlibpath_var=
10644 shlibpath_overrides_runpath=unknown
10645 version_type=none
10646 dynamic_linker="$host_os ld.so"
10647 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10648 need_lib_prefix=unknown
10649 hardcode_into_libs=no
10650
10651 # when you set need_version to no, make sure it does not cause -set_version
10652 # flags to be left without arguments
10653 need_version=unknown
10654
10655 case $host_os in
10656 aix3*)
10657 version_type=linux
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10659 shlibpath_var=LIBPATH
10660
10661 # AIX 3 has no versioning support, so we append a major version to the name.
10662 soname_spec='${libname}${release}${shared_ext}$major'
10663 ;;
10664
10665 aix[4-9]*)
10666 version_type=linux
10667 need_lib_prefix=no
10668 need_version=no
10669 hardcode_into_libs=yes
10670 if test "$host_cpu" = ia64; then
10671 # AIX 5 supports IA64
10672 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10673 shlibpath_var=LD_LIBRARY_PATH
10674 else
10675 # With GCC up to 2.95.x, collect2 would create an import file
10676 # for dependence libraries. The import file would start with
10677 # the line `#! .'. This would cause the generated library to
10678 # depend on `.', always an invalid library. This was fixed in
10679 # development snapshots of GCC prior to 3.0.
10680 case $host_os in
10681 aix4 | aix4.[01] | aix4.[01].*)
10682 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10683 echo ' yes '
10684 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10685 :
10686 else
10687 can_build_shared=no
10688 fi
10689 ;;
10690 esac
10691 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10692 # soname into executable. Probably we can add versioning support to
10693 # collect2, so additional links can be useful in future.
10694 if test "$aix_use_runtimelinking" = yes; then
10695 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10696 # instead of lib<name>.a to let people know that these are not
10697 # typical AIX shared libraries.
10698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10699 else
10700 # We preserve .a as extension for shared libraries through AIX4.2
10701 # and later when we are not doing run time linking.
10702 library_names_spec='${libname}${release}.a $libname.a'
10703 soname_spec='${libname}${release}${shared_ext}$major'
10704 fi
10705 shlibpath_var=LIBPATH
10706 fi
10707 ;;
10708
10709 amigaos*)
10710 case $host_cpu in
10711 powerpc)
10712 # Since July 2007 AmigaOS4 officially supports .so libraries.
10713 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10715 ;;
10716 m68k)
10717 library_names_spec='$libname.ixlibrary $libname.a'
10718 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10719 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'
10720 ;;
10721 esac
10722 ;;
10723
10724 beos*)
10725 library_names_spec='${libname}${shared_ext}'
10726 dynamic_linker="$host_os ld.so"
10727 shlibpath_var=LIBRARY_PATH
10728 ;;
10729
10730 bsdi[45]*)
10731 version_type=linux
10732 need_version=no
10733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10734 soname_spec='${libname}${release}${shared_ext}$major'
10735 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10736 shlibpath_var=LD_LIBRARY_PATH
10737 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10738 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10739 # the default ld.so.conf also contains /usr/contrib/lib and
10740 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10741 # libtool to hard-code these into programs
10742 ;;
10743
10744 cygwin* | mingw* | pw32* | cegcc*)
10745 version_type=windows
10746 shrext_cmds=".dll"
10747 need_version=no
10748 need_lib_prefix=no
10749
10750 case $GCC,$host_os in
10751 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10752 library_names_spec='$libname.dll.a'
10753 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10754 postinstall_cmds='base_file=`basename \${file}`~
10755 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10756 dldir=$destdir/`dirname \$dlpath`~
10757 test -d \$dldir || mkdir -p \$dldir~
10758 $install_prog $dir/$dlname \$dldir/$dlname~
10759 chmod a+x \$dldir/$dlname~
10760 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10761 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10762 fi'
10763 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10764 dlpath=$dir/\$dldll~
10765 $RM \$dlpath'
10766 shlibpath_overrides_runpath=yes
10767
10768 case $host_os in
10769 cygwin*)
10770 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10771 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10772
10773 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10774 ;;
10775 mingw* | cegcc*)
10776 # MinGW DLLs use traditional 'lib' prefix
10777 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10778 ;;
10779 pw32*)
10780 # pw32 DLLs use 'pw' prefix rather than 'lib'
10781 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10782 ;;
10783 esac
10784 ;;
10785
10786 *)
10787 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10788 ;;
10789 esac
10790 dynamic_linker='Win32 ld.exe'
10791 # FIXME: first we should search . and the directory the executable is in
10792 shlibpath_var=PATH
10793 ;;
10794
10795 darwin* | rhapsody*)
10796 dynamic_linker="$host_os dyld"
10797 version_type=darwin
10798 need_lib_prefix=no
10799 need_version=no
10800 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10801 soname_spec='${libname}${release}${major}$shared_ext'
10802 shlibpath_overrides_runpath=yes
10803 shlibpath_var=DYLD_LIBRARY_PATH
10804 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10805
10806 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10807 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10808 ;;
10809
10810 dgux*)
10811 version_type=linux
10812 need_lib_prefix=no
10813 need_version=no
10814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10815 soname_spec='${libname}${release}${shared_ext}$major'
10816 shlibpath_var=LD_LIBRARY_PATH
10817 ;;
10818
10819 freebsd* | dragonfly*)
10820 # DragonFly does not have aout. When/if they implement a new
10821 # versioning mechanism, adjust this.
10822 if test -x /usr/bin/objformat; then
10823 objformat=`/usr/bin/objformat`
10824 else
10825 case $host_os in
10826 freebsd[23].*) objformat=aout ;;
10827 *) objformat=elf ;;
10828 esac
10829 fi
10830 version_type=freebsd-$objformat
10831 case $version_type in
10832 freebsd-elf*)
10833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10834 need_version=no
10835 need_lib_prefix=no
10836 ;;
10837 freebsd-*)
10838 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10839 need_version=yes
10840 ;;
10841 esac
10842 shlibpath_var=LD_LIBRARY_PATH
10843 case $host_os in
10844 freebsd2.*)
10845 shlibpath_overrides_runpath=yes
10846 ;;
10847 freebsd3.[01]* | freebsdelf3.[01]*)
10848 shlibpath_overrides_runpath=yes
10849 hardcode_into_libs=yes
10850 ;;
10851 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10852 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10853 shlibpath_overrides_runpath=no
10854 hardcode_into_libs=yes
10855 ;;
10856 *) # from 4.6 on, and DragonFly
10857 shlibpath_overrides_runpath=yes
10858 hardcode_into_libs=yes
10859 ;;
10860 esac
10861 ;;
10862
10863 haiku*)
10864 version_type=linux
10865 need_lib_prefix=no
10866 need_version=no
10867 dynamic_linker="$host_os runtime_loader"
10868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10869 soname_spec='${libname}${release}${shared_ext}$major'
10870 shlibpath_var=LIBRARY_PATH
10871 shlibpath_overrides_runpath=yes
10872 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10873 hardcode_into_libs=yes
10874 ;;
10875
10876 hpux9* | hpux10* | hpux11*)
10877 # Give a soname corresponding to the major version so that dld.sl refuses to
10878 # link against other versions.
10879 version_type=sunos
10880 need_lib_prefix=no
10881 need_version=no
10882 case $host_cpu in
10883 ia64*)
10884 shrext_cmds='.so'
10885 hardcode_into_libs=yes
10886 dynamic_linker="$host_os dld.so"
10887 shlibpath_var=LD_LIBRARY_PATH
10888 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10890 soname_spec='${libname}${release}${shared_ext}$major'
10891 if test "X$HPUX_IA64_MODE" = X32; then
10892 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10893 else
10894 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10895 fi
10896 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10897 ;;
10898 hppa*64*)
10899 shrext_cmds='.sl'
10900 hardcode_into_libs=yes
10901 dynamic_linker="$host_os dld.sl"
10902 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10903 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10905 soname_spec='${libname}${release}${shared_ext}$major'
10906 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10908 ;;
10909 *)
10910 shrext_cmds='.sl'
10911 dynamic_linker="$host_os dld.sl"
10912 shlibpath_var=SHLIB_PATH
10913 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10915 soname_spec='${libname}${release}${shared_ext}$major'
10916 ;;
10917 esac
10918 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10919 postinstall_cmds='chmod 555 $lib'
10920 # or fails outright, so override atomically:
10921 install_override_mode=555
10922 ;;
10923
10924 interix[3-9]*)
10925 version_type=linux
10926 need_lib_prefix=no
10927 need_version=no
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10929 soname_spec='${libname}${release}${shared_ext}$major'
10930 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10931 shlibpath_var=LD_LIBRARY_PATH
10932 shlibpath_overrides_runpath=no
10933 hardcode_into_libs=yes
10934 ;;
10935
10936 irix5* | irix6* | nonstopux*)
10937 case $host_os in
10938 nonstopux*) version_type=nonstopux ;;
10939 *)
10940 if test "$lt_cv_prog_gnu_ld" = yes; then
10941 version_type=linux
10942 else
10943 version_type=irix
10944 fi ;;
10945 esac
10946 need_lib_prefix=no
10947 need_version=no
10948 soname_spec='${libname}${release}${shared_ext}$major'
10949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10950 case $host_os in
10951 irix5* | nonstopux*)
10952 libsuff= shlibsuff=
10953 ;;
10954 *)
10955 case $LD in # libtool.m4 will add one of these switches to LD
10956 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10957 libsuff= shlibsuff= libmagic=32-bit;;
10958 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10959 libsuff=32 shlibsuff=N32 libmagic=N32;;
10960 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10961 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10962 *) libsuff= shlibsuff= libmagic=never-match;;
10963 esac
10964 ;;
10965 esac
10966 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10967 shlibpath_overrides_runpath=no
10968 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10969 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10970 hardcode_into_libs=yes
10971 ;;
10972
10973 # No shared lib support for Linux oldld, aout, or coff.
10974 linux*oldld* | linux*aout* | linux*coff*)
10975 dynamic_linker=no
10976 ;;
10977
10978 # This must be Linux ELF.
10979
10980 # uclinux* changes (here and below) have been submitted to the libtool
10981 # project, but have not yet been accepted: they are GCC-local changes
10982 # for the time being. (See
10983 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10984 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10985 version_type=linux
10986 need_lib_prefix=no
10987 need_version=no
10988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10989 soname_spec='${libname}${release}${shared_ext}$major'
10990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10991 shlibpath_var=LD_LIBRARY_PATH
10992 shlibpath_overrides_runpath=no
10993
10994 # Some binutils ld are patched to set DT_RUNPATH
10995 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10996 $as_echo_n "(cached) " >&6
10997 else
10998 lt_cv_shlibpath_overrides_runpath=no
10999 save_LDFLAGS=$LDFLAGS
11000 save_libdir=$libdir
11001 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11002 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11005
11006 int
11007 main ()
11008 {
11009
11010 ;
11011 return 0;
11012 }
11013 _ACEOF
11014 if ac_fn_c_try_link "$LINENO"; then :
11015 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11016 lt_cv_shlibpath_overrides_runpath=yes
11017 fi
11018 fi
11019 rm -f core conftest.err conftest.$ac_objext \
11020 conftest$ac_exeext conftest.$ac_ext
11021 LDFLAGS=$save_LDFLAGS
11022 libdir=$save_libdir
11023
11024 fi
11025
11026 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11027
11028 # This implies no fast_install, which is unacceptable.
11029 # Some rework will be needed to allow for fast_install
11030 # before this can be enabled.
11031 hardcode_into_libs=yes
11032
11033 # Append ld.so.conf contents to the search path
11034 if test -f /etc/ld.so.conf; then
11035 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' ' '`
11036 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11037 fi
11038
11039 # We used to test for /lib/ld.so.1 and disable shared libraries on
11040 # powerpc, because MkLinux only supported shared libraries with the
11041 # GNU dynamic linker. Since this was broken with cross compilers,
11042 # most powerpc-linux boxes support dynamic linking these days and
11043 # people can always --disable-shared, the test was removed, and we
11044 # assume the GNU/Linux dynamic linker is in use.
11045 dynamic_linker='GNU/Linux ld.so'
11046 ;;
11047
11048 netbsd*)
11049 version_type=sunos
11050 need_lib_prefix=no
11051 need_version=no
11052 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11055 dynamic_linker='NetBSD (a.out) ld.so'
11056 else
11057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11058 soname_spec='${libname}${release}${shared_ext}$major'
11059 dynamic_linker='NetBSD ld.elf_so'
11060 fi
11061 shlibpath_var=LD_LIBRARY_PATH
11062 shlibpath_overrides_runpath=yes
11063 hardcode_into_libs=yes
11064 ;;
11065
11066 newsos6)
11067 version_type=linux
11068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11069 shlibpath_var=LD_LIBRARY_PATH
11070 shlibpath_overrides_runpath=yes
11071 ;;
11072
11073 *nto* | *qnx*)
11074 version_type=qnx
11075 need_lib_prefix=no
11076 need_version=no
11077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11078 soname_spec='${libname}${release}${shared_ext}$major'
11079 shlibpath_var=LD_LIBRARY_PATH
11080 shlibpath_overrides_runpath=no
11081 hardcode_into_libs=yes
11082 dynamic_linker='ldqnx.so'
11083 ;;
11084
11085 openbsd*)
11086 version_type=sunos
11087 sys_lib_dlsearch_path_spec="/usr/lib"
11088 need_lib_prefix=no
11089 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11090 case $host_os in
11091 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11092 *) need_version=no ;;
11093 esac
11094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11096 shlibpath_var=LD_LIBRARY_PATH
11097 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11098 case $host_os in
11099 openbsd2.[89] | openbsd2.[89].*)
11100 shlibpath_overrides_runpath=no
11101 ;;
11102 *)
11103 shlibpath_overrides_runpath=yes
11104 ;;
11105 esac
11106 else
11107 shlibpath_overrides_runpath=yes
11108 fi
11109 ;;
11110
11111 os2*)
11112 libname_spec='$name'
11113 shrext_cmds=".dll"
11114 need_lib_prefix=no
11115 library_names_spec='$libname${shared_ext} $libname.a'
11116 dynamic_linker='OS/2 ld.exe'
11117 shlibpath_var=LIBPATH
11118 ;;
11119
11120 osf3* | osf4* | osf5*)
11121 version_type=osf
11122 need_lib_prefix=no
11123 need_version=no
11124 soname_spec='${libname}${release}${shared_ext}$major'
11125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11126 shlibpath_var=LD_LIBRARY_PATH
11127 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11128 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11129 ;;
11130
11131 rdos*)
11132 dynamic_linker=no
11133 ;;
11134
11135 solaris*)
11136 version_type=linux
11137 need_lib_prefix=no
11138 need_version=no
11139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11140 soname_spec='${libname}${release}${shared_ext}$major'
11141 shlibpath_var=LD_LIBRARY_PATH
11142 shlibpath_overrides_runpath=yes
11143 hardcode_into_libs=yes
11144 # ldd complains unless libraries are executable
11145 postinstall_cmds='chmod +x $lib'
11146 ;;
11147
11148 sunos4*)
11149 version_type=sunos
11150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11151 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11152 shlibpath_var=LD_LIBRARY_PATH
11153 shlibpath_overrides_runpath=yes
11154 if test "$with_gnu_ld" = yes; then
11155 need_lib_prefix=no
11156 fi
11157 need_version=yes
11158 ;;
11159
11160 sysv4 | sysv4.3*)
11161 version_type=linux
11162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11163 soname_spec='${libname}${release}${shared_ext}$major'
11164 shlibpath_var=LD_LIBRARY_PATH
11165 case $host_vendor in
11166 sni)
11167 shlibpath_overrides_runpath=no
11168 need_lib_prefix=no
11169 runpath_var=LD_RUN_PATH
11170 ;;
11171 siemens)
11172 need_lib_prefix=no
11173 ;;
11174 motorola)
11175 need_lib_prefix=no
11176 need_version=no
11177 shlibpath_overrides_runpath=no
11178 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11179 ;;
11180 esac
11181 ;;
11182
11183 sysv4*MP*)
11184 if test -d /usr/nec ;then
11185 version_type=linux
11186 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11187 soname_spec='$libname${shared_ext}.$major'
11188 shlibpath_var=LD_LIBRARY_PATH
11189 fi
11190 ;;
11191
11192 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11193 version_type=freebsd-elf
11194 need_lib_prefix=no
11195 need_version=no
11196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11197 soname_spec='${libname}${release}${shared_ext}$major'
11198 shlibpath_var=LD_LIBRARY_PATH
11199 shlibpath_overrides_runpath=yes
11200 hardcode_into_libs=yes
11201 if test "$with_gnu_ld" = yes; then
11202 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11203 else
11204 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11205 case $host_os in
11206 sco3.2v5*)
11207 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11208 ;;
11209 esac
11210 fi
11211 sys_lib_dlsearch_path_spec='/usr/lib'
11212 ;;
11213
11214 tpf*)
11215 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11216 version_type=linux
11217 need_lib_prefix=no
11218 need_version=no
11219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11220 shlibpath_var=LD_LIBRARY_PATH
11221 shlibpath_overrides_runpath=no
11222 hardcode_into_libs=yes
11223 ;;
11224
11225 uts4*)
11226 version_type=linux
11227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11228 soname_spec='${libname}${release}${shared_ext}$major'
11229 shlibpath_var=LD_LIBRARY_PATH
11230 ;;
11231
11232 # Shared libraries for VwWorks, >= 7 only at this stage
11233 # and (fpic) still incompatible with "large" code models
11234 # in a few configurations. Only for RTP mode in any case,
11235 # and upon explicit request at configure time.
11236 vxworks7*)
11237 dynamic_linker=no
11238 case ${with_multisubdir}-${enable_shared} in
11239 *large*)
11240 ;;
11241 *mrtp*-yes)
11242 version_type=linux
11243 need_lib_prefix=no
11244 need_version=no
11245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11246 soname_spec='${libname}${release}${shared_ext}$major'
11247 dynamic_linker="$host_os module_loader"
11248 ;;
11249 esac
11250 ;;
11251 *)
11252 dynamic_linker=no
11253 ;;
11254 esac
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11256 $as_echo "$dynamic_linker" >&6; }
11257 test "$dynamic_linker" = no && can_build_shared=no
11258
11259 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11260 if test "$GCC" = yes; then
11261 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11262 fi
11263
11264 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11265 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11266 fi
11267 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11268 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11269 fi
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11363 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11364 hardcode_action=
11365 if test -n "$hardcode_libdir_flag_spec" ||
11366 test -n "$runpath_var" ||
11367 test "X$hardcode_automatic" = "Xyes" ; then
11368
11369 # We can hardcode non-existent directories.
11370 if test "$hardcode_direct" != no &&
11371 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11372 # have to relink, otherwise we might link with an installed library
11373 # when we should be linking with a yet-to-be-installed one
11374 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11375 test "$hardcode_minus_L" != no; then
11376 # Linking always hardcodes the temporary library directory.
11377 hardcode_action=relink
11378 else
11379 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11380 hardcode_action=immediate
11381 fi
11382 else
11383 # We cannot hardcode anything, or else we can only hardcode existing
11384 # directories.
11385 hardcode_action=unsupported
11386 fi
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11388 $as_echo "$hardcode_action" >&6; }
11389
11390 if test "$hardcode_action" = relink ||
11391 test "$inherit_rpath" = yes; then
11392 # Fast installation is not supported
11393 enable_fast_install=no
11394 elif test "$shlibpath_overrides_runpath" = yes ||
11395 test "$enable_shared" = no; then
11396 # Fast installation is not necessary
11397 enable_fast_install=needless
11398 fi
11399
11400
11401
11402
11403
11404
11405 if test "x$enable_dlopen" != xyes; then
11406 enable_dlopen=unknown
11407 enable_dlopen_self=unknown
11408 enable_dlopen_self_static=unknown
11409 else
11410 lt_cv_dlopen=no
11411 lt_cv_dlopen_libs=
11412
11413 case $host_os in
11414 beos*)
11415 lt_cv_dlopen="load_add_on"
11416 lt_cv_dlopen_libs=
11417 lt_cv_dlopen_self=yes
11418 ;;
11419
11420 mingw* | pw32* | cegcc*)
11421 lt_cv_dlopen="LoadLibrary"
11422 lt_cv_dlopen_libs=
11423 ;;
11424
11425 cygwin*)
11426 lt_cv_dlopen="dlopen"
11427 lt_cv_dlopen_libs=
11428 ;;
11429
11430 darwin*)
11431 # if libdl is installed we need to link against it
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11433 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11434 if ${ac_cv_lib_dl_dlopen+:} false; then :
11435 $as_echo_n "(cached) " >&6
11436 else
11437 ac_check_lib_save_LIBS=$LIBS
11438 LIBS="-ldl $LIBS"
11439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440 /* end confdefs.h. */
11441
11442 /* Override any GCC internal prototype to avoid an error.
11443 Use char because int might match the return type of a GCC
11444 builtin and then its argument prototype would still apply. */
11445 #ifdef __cplusplus
11446 extern "C"
11447 #endif
11448 char dlopen ();
11449 int
11450 main ()
11451 {
11452 return dlopen ();
11453 ;
11454 return 0;
11455 }
11456 _ACEOF
11457 if ac_fn_c_try_link "$LINENO"; then :
11458 ac_cv_lib_dl_dlopen=yes
11459 else
11460 ac_cv_lib_dl_dlopen=no
11461 fi
11462 rm -f core conftest.err conftest.$ac_objext \
11463 conftest$ac_exeext conftest.$ac_ext
11464 LIBS=$ac_check_lib_save_LIBS
11465 fi
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11467 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11468 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11469 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11470 else
11471
11472 lt_cv_dlopen="dyld"
11473 lt_cv_dlopen_libs=
11474 lt_cv_dlopen_self=yes
11475
11476 fi
11477
11478 ;;
11479
11480 *)
11481 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11482 if test "x$ac_cv_func_shl_load" = xyes; then :
11483 lt_cv_dlopen="shl_load"
11484 else
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11486 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11487 if ${ac_cv_lib_dld_shl_load+:} false; then :
11488 $as_echo_n "(cached) " >&6
11489 else
11490 ac_check_lib_save_LIBS=$LIBS
11491 LIBS="-ldld $LIBS"
11492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11493 /* end confdefs.h. */
11494
11495 /* Override any GCC internal prototype to avoid an error.
11496 Use char because int might match the return type of a GCC
11497 builtin and then its argument prototype would still apply. */
11498 #ifdef __cplusplus
11499 extern "C"
11500 #endif
11501 char shl_load ();
11502 int
11503 main ()
11504 {
11505 return shl_load ();
11506 ;
11507 return 0;
11508 }
11509 _ACEOF
11510 if ac_fn_c_try_link "$LINENO"; then :
11511 ac_cv_lib_dld_shl_load=yes
11512 else
11513 ac_cv_lib_dld_shl_load=no
11514 fi
11515 rm -f core conftest.err conftest.$ac_objext \
11516 conftest$ac_exeext conftest.$ac_ext
11517 LIBS=$ac_check_lib_save_LIBS
11518 fi
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11520 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11521 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11522 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11523 else
11524 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11525 if test "x$ac_cv_func_dlopen" = xyes; then :
11526 lt_cv_dlopen="dlopen"
11527 else
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11529 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11530 if ${ac_cv_lib_dl_dlopen+:} false; then :
11531 $as_echo_n "(cached) " >&6
11532 else
11533 ac_check_lib_save_LIBS=$LIBS
11534 LIBS="-ldl $LIBS"
11535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536 /* end confdefs.h. */
11537
11538 /* Override any GCC internal prototype to avoid an error.
11539 Use char because int might match the return type of a GCC
11540 builtin and then its argument prototype would still apply. */
11541 #ifdef __cplusplus
11542 extern "C"
11543 #endif
11544 char dlopen ();
11545 int
11546 main ()
11547 {
11548 return dlopen ();
11549 ;
11550 return 0;
11551 }
11552 _ACEOF
11553 if ac_fn_c_try_link "$LINENO"; then :
11554 ac_cv_lib_dl_dlopen=yes
11555 else
11556 ac_cv_lib_dl_dlopen=no
11557 fi
11558 rm -f core conftest.err conftest.$ac_objext \
11559 conftest$ac_exeext conftest.$ac_ext
11560 LIBS=$ac_check_lib_save_LIBS
11561 fi
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11563 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11564 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11565 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11566 else
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11568 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11569 if ${ac_cv_lib_svld_dlopen+:} false; then :
11570 $as_echo_n "(cached) " >&6
11571 else
11572 ac_check_lib_save_LIBS=$LIBS
11573 LIBS="-lsvld $LIBS"
11574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h. */
11576
11577 /* Override any GCC internal prototype to avoid an error.
11578 Use char because int might match the return type of a GCC
11579 builtin and then its argument prototype would still apply. */
11580 #ifdef __cplusplus
11581 extern "C"
11582 #endif
11583 char dlopen ();
11584 int
11585 main ()
11586 {
11587 return dlopen ();
11588 ;
11589 return 0;
11590 }
11591 _ACEOF
11592 if ac_fn_c_try_link "$LINENO"; then :
11593 ac_cv_lib_svld_dlopen=yes
11594 else
11595 ac_cv_lib_svld_dlopen=no
11596 fi
11597 rm -f core conftest.err conftest.$ac_objext \
11598 conftest$ac_exeext conftest.$ac_ext
11599 LIBS=$ac_check_lib_save_LIBS
11600 fi
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11602 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11603 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11604 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11605 else
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11607 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11608 if ${ac_cv_lib_dld_dld_link+:} false; then :
11609 $as_echo_n "(cached) " >&6
11610 else
11611 ac_check_lib_save_LIBS=$LIBS
11612 LIBS="-ldld $LIBS"
11613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11614 /* end confdefs.h. */
11615
11616 /* Override any GCC internal prototype to avoid an error.
11617 Use char because int might match the return type of a GCC
11618 builtin and then its argument prototype would still apply. */
11619 #ifdef __cplusplus
11620 extern "C"
11621 #endif
11622 char dld_link ();
11623 int
11624 main ()
11625 {
11626 return dld_link ();
11627 ;
11628 return 0;
11629 }
11630 _ACEOF
11631 if ac_fn_c_try_link "$LINENO"; then :
11632 ac_cv_lib_dld_dld_link=yes
11633 else
11634 ac_cv_lib_dld_dld_link=no
11635 fi
11636 rm -f core conftest.err conftest.$ac_objext \
11637 conftest$ac_exeext conftest.$ac_ext
11638 LIBS=$ac_check_lib_save_LIBS
11639 fi
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11641 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11642 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11643 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11644 fi
11645
11646
11647 fi
11648
11649
11650 fi
11651
11652
11653 fi
11654
11655
11656 fi
11657
11658
11659 fi
11660
11661 ;;
11662 esac
11663
11664 if test "x$lt_cv_dlopen" != xno; then
11665 enable_dlopen=yes
11666 else
11667 enable_dlopen=no
11668 fi
11669
11670 case $lt_cv_dlopen in
11671 dlopen)
11672 save_CPPFLAGS="$CPPFLAGS"
11673 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11674
11675 save_LDFLAGS="$LDFLAGS"
11676 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11677
11678 save_LIBS="$LIBS"
11679 LIBS="$lt_cv_dlopen_libs $LIBS"
11680
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11682 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11683 if ${lt_cv_dlopen_self+:} false; then :
11684 $as_echo_n "(cached) " >&6
11685 else
11686 if test "$cross_compiling" = yes; then :
11687 lt_cv_dlopen_self=cross
11688 else
11689 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11690 lt_status=$lt_dlunknown
11691 cat > conftest.$ac_ext <<_LT_EOF
•11692 #line 11692 "configure"
11693 #include "confdefs.h"
11694
11695 #if HAVE_DLFCN_H
11696 #include <dlfcn.h>
11697 #endif
11698
11699 #include <stdio.h>
11700
11701 #ifdef RTLD_GLOBAL
11702 # define LT_DLGLOBAL RTLD_GLOBAL
11703 #else
11704 # ifdef DL_GLOBAL
11705 # define LT_DLGLOBAL DL_GLOBAL
11706 # else
11707 # define LT_DLGLOBAL 0
11708 # endif
11709 #endif
11710
11711 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11712 find out it does not work in some platform. */
11713 #ifndef LT_DLLAZY_OR_NOW
11714 # ifdef RTLD_LAZY
11715 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11716 # else
11717 # ifdef DL_LAZY
11718 # define LT_DLLAZY_OR_NOW DL_LAZY
11719 # else
11720 # ifdef RTLD_NOW
11721 # define LT_DLLAZY_OR_NOW RTLD_NOW
11722 # else
11723 # ifdef DL_NOW
11724 # define LT_DLLAZY_OR_NOW DL_NOW
11725 # else
11726 # define LT_DLLAZY_OR_NOW 0
11727 # endif
11728 # endif
11729 # endif
11730 # endif
11731 #endif
11732
11733 /* When -fvisbility=hidden is used, assume the code has been annotated
11734 correspondingly for the symbols needed. */
11735 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11736 void fnord () __attribute__((visibility("default")));
11737 #endif
11738
11739 void fnord () { int i=42; }
11740 int main ()
11741 {
11742 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11743 int status = $lt_dlunknown;
11744
11745 if (self)
11746 {
11747 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11748 else
11749 {
11750 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11751 else puts (dlerror ());
11752 }
11753 /* dlclose (self); */
11754 }
11755 else
11756 puts (dlerror ());
11757
11758 return status;
11759 }
11760 _LT_EOF
11761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11762 (eval $ac_link) 2>&5
11763 ac_status=$?
11764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11765 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11766 (./conftest; exit; ) >&5 2>/dev/null
11767 lt_status=$?
11768 case x$lt_status in
11769 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11770 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11771 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11772 esac
11773 else :
11774 # compilation failed
11775 lt_cv_dlopen_self=no
11776 fi
11777 fi
11778 rm -fr conftest*
11779
11780
11781 fi
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11783 $as_echo "$lt_cv_dlopen_self" >&6; }
11784
11785 if test "x$lt_cv_dlopen_self" = xyes; then
11786 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11788 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11789 if ${lt_cv_dlopen_self_static+:} false; then :
11790 $as_echo_n "(cached) " >&6
11791 else
11792 if test "$cross_compiling" = yes; then :
11793 lt_cv_dlopen_self_static=cross
11794 else
11795 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11796 lt_status=$lt_dlunknown
11797 cat > conftest.$ac_ext <<_LT_EOF
•11798 #line 11798 "configure"
11799 #include "confdefs.h"
11800
11801 #if HAVE_DLFCN_H
11802 #include <dlfcn.h>
11803 #endif
11804
11805 #include <stdio.h>
11806
11807 #ifdef RTLD_GLOBAL
11808 # define LT_DLGLOBAL RTLD_GLOBAL
11809 #else
11810 # ifdef DL_GLOBAL
11811 # define LT_DLGLOBAL DL_GLOBAL
11812 # else
11813 # define LT_DLGLOBAL 0
11814 # endif
11815 #endif
11816
11817 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11818 find out it does not work in some platform. */
11819 #ifndef LT_DLLAZY_OR_NOW
11820 # ifdef RTLD_LAZY
11821 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11822 # else
11823 # ifdef DL_LAZY
11824 # define LT_DLLAZY_OR_NOW DL_LAZY
11825 # else
11826 # ifdef RTLD_NOW
11827 # define LT_DLLAZY_OR_NOW RTLD_NOW
11828 # else
11829 # ifdef DL_NOW
11830 # define LT_DLLAZY_OR_NOW DL_NOW
11831 # else
11832 # define LT_DLLAZY_OR_NOW 0
11833 # endif
11834 # endif
11835 # endif
11836 # endif
11837 #endif
11838
11839 /* When -fvisbility=hidden is used, assume the code has been annotated
11840 correspondingly for the symbols needed. */
11841 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11842 void fnord () __attribute__((visibility("default")));
11843 #endif
11844
11845 void fnord () { int i=42; }
11846 int main ()
11847 {
11848 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11849 int status = $lt_dlunknown;
11850
11851 if (self)
11852 {
11853 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11854 else
11855 {
11856 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11857 else puts (dlerror ());
11858 }
11859 /* dlclose (self); */
11860 }
11861 else
11862 puts (dlerror ());
11863
11864 return status;
11865 }
11866 _LT_EOF
11867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11868 (eval $ac_link) 2>&5
11869 ac_status=$?
11870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11871 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11872 (./conftest; exit; ) >&5 2>/dev/null
11873 lt_status=$?
11874 case x$lt_status in
11875 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11876 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11877 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11878 esac
11879 else :
11880 # compilation failed
11881 lt_cv_dlopen_self_static=no
11882 fi
11883 fi
11884 rm -fr conftest*
11885
11886
11887 fi
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11889 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11890 fi
11891
11892 CPPFLAGS="$save_CPPFLAGS"
11893 LDFLAGS="$save_LDFLAGS"
11894 LIBS="$save_LIBS"
11895 ;;
11896 esac
11897
11898 case $lt_cv_dlopen_self in
11899 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11900 *) enable_dlopen_self=unknown ;;
11901 esac
11902
11903 case $lt_cv_dlopen_self_static in
11904 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11905 *) enable_dlopen_self_static=unknown ;;
11906 esac
11907 fi
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925 striplib=
11926 old_striplib=
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11928 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11929 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11930 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11931 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11933 $as_echo "yes" >&6; }
11934 else
11935 # FIXME - insert some real tests, host_os isn't really good enough
11936 case $host_os in
11937 darwin*)
11938 if test -n "$STRIP" ; then
11939 striplib="$STRIP -x"
11940 old_striplib="$STRIP -S"
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11942 $as_echo "yes" >&6; }
11943 else
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11945 $as_echo "no" >&6; }
11946 fi
11947 ;;
11948 *)
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11950 $as_echo "no" >&6; }
11951 ;;
11952 esac
11953 fi
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966 # Report which library types will actually be built
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11968 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11970 $as_echo "$can_build_shared" >&6; }
11971
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11973 $as_echo_n "checking whether to build shared libraries... " >&6; }
11974 test "$can_build_shared" = "no" && enable_shared=no
11975
11976 # On AIX, shared libraries and static libraries use the same namespace, and
11977 # are all built from PIC.
11978 case $host_os in
11979 aix3*)
11980 test "$enable_shared" = yes && enable_static=no
11981 if test -n "$RANLIB"; then
11982 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11983 postinstall_cmds='$RANLIB $lib'
11984 fi
11985 ;;
11986
11987 aix[4-9]*)
11988 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11989 test "$enable_shared" = yes && enable_static=no
11990 fi
11991 ;;
11992 esac
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11994 $as_echo "$enable_shared" >&6; }
11995
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11997 $as_echo_n "checking whether to build static libraries... " >&6; }
11998 # Make sure either enable_shared or enable_static is yes.
11999 test "$enable_shared" = yes || enable_static=yes
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12001 $as_echo "$enable_static" >&6; }
12002
12003
12004
12005
12006 fi
12007 ac_ext=c
12008 ac_cpp='$CPP $CPPFLAGS'
12009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12012
12013 CC="$lt_save_CC"
12014
12015 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12016 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12017 (test "X$CXX" != "Xg++"))) ; then
12018 ac_ext=cpp
12019 ac_cpp='$CXXCPP $CPPFLAGS'
12020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12024 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12025 if test -z "$CXXCPP"; then
12026 if ${ac_cv_prog_CXXCPP+:} false; then :
12027 $as_echo_n "(cached) " >&6
12028 else
12029 # Double quotes because CXXCPP needs to be expanded
12030 for CXXCPP in "$CXX -E" "/lib/cpp"
12031 do
12032 ac_preproc_ok=false
12033 for ac_cxx_preproc_warn_flag in '' yes
12034 do
12035 # Use a header file that comes with gcc, so configuring glibc
12036 # with a fresh cross-compiler works.
12037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12038 # <limits.h> exists even on freestanding compilers.
12039 # On the NeXT, cc -E runs the code through the compiler's parser,
12040 # not just through cpp. "Syntax error" is here to catch this case.
12041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12042 /* end confdefs.h. */
12043 #ifdef __STDC__
12044 # include <limits.h>
12045 #else
12046 # include <assert.h>
12047 #endif
12048 Syntax error
12049 _ACEOF
12050 if ac_fn_cxx_try_cpp "$LINENO"; then :
12051
12052 else
12053 # Broken: fails on valid input.
12054 continue
12055 fi
12056 rm -f conftest.err conftest.i conftest.$ac_ext
12057
12058 # OK, works on sane cases. Now check whether nonexistent headers
12059 # can be detected and how.
12060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12061 /* end confdefs.h. */
12062 #include <ac_nonexistent.h>
12063 _ACEOF
12064 if ac_fn_cxx_try_cpp "$LINENO"; then :
12065 # Broken: success on invalid input.
12066 continue
12067 else
12068 # Passes both tests.
12069 ac_preproc_ok=:
12070 break
12071 fi
12072 rm -f conftest.err conftest.i conftest.$ac_ext
12073
12074 done
12075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12076 rm -f conftest.i conftest.err conftest.$ac_ext
12077 if $ac_preproc_ok; then :
12078 break
12079 fi
12080
12081 done
12082 ac_cv_prog_CXXCPP=$CXXCPP
12083
12084 fi
12085 CXXCPP=$ac_cv_prog_CXXCPP
12086 else
12087 ac_cv_prog_CXXCPP=$CXXCPP
12088 fi
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12090 $as_echo "$CXXCPP" >&6; }
12091 ac_preproc_ok=false
12092 for ac_cxx_preproc_warn_flag in '' yes
12093 do
12094 # Use a header file that comes with gcc, so configuring glibc
12095 # with a fresh cross-compiler works.
12096 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12097 # <limits.h> exists even on freestanding compilers.
12098 # On the NeXT, cc -E runs the code through the compiler's parser,
12099 # not just through cpp. "Syntax error" is here to catch this case.
12100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101 /* end confdefs.h. */
12102 #ifdef __STDC__
12103 # include <limits.h>
12104 #else
12105 # include <assert.h>
12106 #endif
12107 Syntax error
12108 _ACEOF
12109 if ac_fn_cxx_try_cpp "$LINENO"; then :
12110
12111 else
12112 # Broken: fails on valid input.
12113 continue
12114 fi
12115 rm -f conftest.err conftest.i conftest.$ac_ext
12116
12117 # OK, works on sane cases. Now check whether nonexistent headers
12118 # can be detected and how.
12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120 /* end confdefs.h. */
12121 #include <ac_nonexistent.h>
12122 _ACEOF
12123 if ac_fn_cxx_try_cpp "$LINENO"; then :
12124 # Broken: success on invalid input.
12125 continue
12126 else
12127 # Passes both tests.
12128 ac_preproc_ok=:
12129 break
12130 fi
12131 rm -f conftest.err conftest.i conftest.$ac_ext
12132
12133 done
12134 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12135 rm -f conftest.i conftest.err conftest.$ac_ext
12136 if $ac_preproc_ok; then :
12137
12138 else
12139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12141 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12142 See \`config.log' for more details" "$LINENO" 5; }
12143 fi
12144
12145 ac_ext=c
12146 ac_cpp='$CPP $CPPFLAGS'
12147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12150
12151 else
12152 _lt_caught_CXX_error=yes
12153 fi
12154
12155 ac_ext=cpp
12156 ac_cpp='$CXXCPP $CPPFLAGS'
12157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12160
12161 archive_cmds_need_lc_CXX=no
12162 allow_undefined_flag_CXX=
12163 always_export_symbols_CXX=no
12164 archive_expsym_cmds_CXX=
12165 compiler_needs_object_CXX=no
12166 export_dynamic_flag_spec_CXX=
12167 hardcode_direct_CXX=no
12168 hardcode_direct_absolute_CXX=no
12169 hardcode_libdir_flag_spec_CXX=
12170 hardcode_libdir_flag_spec_ld_CXX=
12171 hardcode_libdir_separator_CXX=
12172 hardcode_minus_L_CXX=no
12173 hardcode_shlibpath_var_CXX=unsupported
12174 hardcode_automatic_CXX=no
12175 inherit_rpath_CXX=no
12176 module_cmds_CXX=
12177 module_expsym_cmds_CXX=
12178 link_all_deplibs_CXX=unknown
12179 old_archive_cmds_CXX=$old_archive_cmds
12180 reload_flag_CXX=$reload_flag
12181 reload_cmds_CXX=$reload_cmds
12182 no_undefined_flag_CXX=
12183 whole_archive_flag_spec_CXX=
12184 enable_shared_with_static_runtimes_CXX=no
12185
12186 # Source file extension for C++ test sources.
12187 ac_ext=cpp
12188
12189 # Object file extension for compiled C++ test sources.
12190 objext=o
12191 objext_CXX=$objext
12192
12193 # No sense in running all these tests if we already determined that
12194 # the CXX compiler isn't working. Some variables (like enable_shared)
12195 # are currently assumed to apply to all compilers on this platform,
12196 # and will be corrupted by setting them based on a non-working compiler.
12197 if test "$_lt_caught_CXX_error" != yes; then
12198 # Code to be used in simple compile tests
12199 lt_simple_compile_test_code="int some_variable = 0;"
12200
12201 # Code to be used in simple link tests
12202 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12203
12204 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12205
12206
12207
12208
12209
12210
12211 # If no C compiler was specified, use CC.
12212 LTCC=${LTCC-"$CC"}
12213
12214 # If no C compiler flags were specified, use CFLAGS.
12215 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12216
12217 # Allow CC to be a program name with arguments.
12218 compiler=$CC
12219
12220
12221 # save warnings/boilerplate of simple test code
12222 ac_outfile=conftest.$ac_objext
12223 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12224 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12225 _lt_compiler_boilerplate=`cat conftest.err`
12226 $RM conftest*
12227
12228 ac_outfile=conftest.$ac_objext
12229 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12230 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12231 _lt_linker_boilerplate=`cat conftest.err`
12232 $RM -r conftest*
12233
12234
12235 # Allow CC to be a program name with arguments.
12236 lt_save_CC=$CC
12237 lt_save_LD=$LD
12238 lt_save_GCC=$GCC
12239 GCC=$GXX
12240 lt_save_with_gnu_ld=$with_gnu_ld
12241 lt_save_path_LD=$lt_cv_path_LD
12242 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12243 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12244 else
12245 $as_unset lt_cv_prog_gnu_ld
12246 fi
12247 if test -n "${lt_cv_path_LDCXX+set}"; then
12248 lt_cv_path_LD=$lt_cv_path_LDCXX
12249 else
12250 $as_unset lt_cv_path_LD
12251 fi
12252 test -z "${LDCXX+set}" || LD=$LDCXX
12253 CC=${CXX-"c++"}
12254 compiler=$CC
12255 compiler_CXX=$CC
12256 for cc_temp in $compiler""; do
12257 case $cc_temp in
12258 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12259 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12260 \-*) ;;
12261 *) break;;
12262 esac
12263 done
12264 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12265
12266
12267 if test -n "$compiler"; then
12268 # We don't want -fno-exception when compiling C++ code, so set the
12269 # no_builtin_flag separately
12270 if test "$GXX" = yes; then
12271 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12272 else
12273 lt_prog_compiler_no_builtin_flag_CXX=
12274 fi
12275
12276 if test "$GXX" = yes; then
12277 # Set up default GNU C++ configuration
12278
12279
12280
12281 # Check whether --with-gnu-ld was given.
12282 if test "${with_gnu_ld+set}" = set; then :
12283 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12284 else
12285 with_gnu_ld=no
12286 fi
12287
12288 ac_prog=ld
12289 if test "$GCC" = yes; then
12290 # Check if gcc -print-prog-name=ld gives a path.
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12292 $as_echo_n "checking for ld used by $CC... " >&6; }
12293 case $host in
12294 *-*-mingw*)
12295 # gcc leaves a trailing carriage return which upsets mingw
12296 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12297 *)
12298 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12299 esac
12300 case $ac_prog in
12301 # Accept absolute paths.
12302 [\\/]* | ?:[\\/]*)
12303 re_direlt='/[^/][^/]*/\.\./'
12304 # Canonicalize the pathname of ld
12305 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12306 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12307 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12308 done
12309 test -z "$LD" && LD="$ac_prog"
12310 ;;
12311 "")
12312 # If it fails, then pretend we aren't using GCC.
12313 ac_prog=ld
12314 ;;
12315 *)
12316 # If it is relative, then search for the first ld in PATH.
12317 with_gnu_ld=unknown
12318 ;;
12319 esac
12320 elif test "$with_gnu_ld" = yes; then
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12322 $as_echo_n "checking for GNU ld... " >&6; }
12323 else
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12325 $as_echo_n "checking for non-GNU ld... " >&6; }
12326 fi
12327 if ${lt_cv_path_LD+:} false; then :
12328 $as_echo_n "(cached) " >&6
12329 else
12330 if test -z "$LD"; then
12331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12332 for ac_dir in $PATH; do
12333 IFS="$lt_save_ifs"
12334 test -z "$ac_dir" && ac_dir=.
12335 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12336 lt_cv_path_LD="$ac_dir/$ac_prog"
12337 # Check to see if the program is GNU ld. I'd rather use --version,
12338 # but apparently some variants of GNU ld only accept -v.
12339 # Break only if it was the GNU/non-GNU ld that we prefer.
12340 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12341 *GNU* | *'with BFD'*)
12342 test "$with_gnu_ld" != no && break
12343 ;;
12344 *)
12345 test "$with_gnu_ld" != yes && break
12346 ;;
12347 esac
12348 fi
12349 done
12350 IFS="$lt_save_ifs"
12351 else
12352 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12353 fi
12354 fi
12355
12356 LD="$lt_cv_path_LD"
12357 if test -n "$LD"; then
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12359 $as_echo "$LD" >&6; }
12360 else
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12362 $as_echo "no" >&6; }
12363 fi
12364 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12366 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12367 if ${lt_cv_prog_gnu_ld+:} false; then :
12368 $as_echo_n "(cached) " >&6
12369 else
12370 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12371 case `$LD -v 2>&1 </dev/null` in
12372 *GNU* | *'with BFD'*)
12373 lt_cv_prog_gnu_ld=yes
12374 ;;
12375 *)
12376 lt_cv_prog_gnu_ld=no
12377 ;;
12378 esac
12379 fi
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12381 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12382 with_gnu_ld=$lt_cv_prog_gnu_ld
12383
12384
12385
12386
12387
12388
12389
12390 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12391 # archiving commands below assume that GNU ld is being used.
12392 if test "$with_gnu_ld" = yes; then
12393 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12394 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'
12395
12396 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12397 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12398
12399 # If archive_cmds runs LD, not CC, wlarc should be empty
12400 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12401 # investigate it a little bit more. (MM)
12402 wlarc='${wl}'
12403
12404 # ancient GNU ld didn't support --whole-archive et. al.
12405 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12406 $GREP 'no-whole-archive' > /dev/null; then
12407 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12408 else
12409 whole_archive_flag_spec_CXX=
12410 fi
12411 else
12412 with_gnu_ld=no
12413 wlarc=
12414
12415 # A generic and very simple default shared library creation
12416 # command for GNU C++ for the case where it uses the native
12417 # linker, instead of GNU ld. If possible, this setting should
12418 # overridden to take advantage of the native linker features on
12419 # the platform it is being used on.
12420 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12421 fi
12422
12423 # Commands to make compiler produce verbose output that lists
12424 # what "hidden" libraries, object files and flags are used when
12425 # linking a shared library.
12426 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12427
12428 else
12429 GXX=no
12430 with_gnu_ld=no
12431 wlarc=
12432 fi
12433
12434 # PORTME: fill in a description of your system's C++ link characteristics
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12436 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12437 ld_shlibs_CXX=yes
12438 case $host_os in
12439 aix3*)
12440 # FIXME: insert proper C++ library support
12441 ld_shlibs_CXX=no
12442 ;;
12443 aix[4-9]*)
12444 if test "$host_cpu" = ia64; then
12445 # On IA64, the linker does run time linking by default, so we don't
12446 # have to do anything special.
12447 aix_use_runtimelinking=no
12448 exp_sym_flag='-Bexport'
12449 no_entry_flag=""
12450 else
12451 aix_use_runtimelinking=no
12452
12453 # Test if we are trying to use run time linking or normal
12454 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12455 # need to do runtime linking.
12456 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12457 for ld_flag in $LDFLAGS; do
12458 case $ld_flag in
12459 *-brtl*)
12460 aix_use_runtimelinking=yes
12461 break
12462 ;;
12463 esac
12464 done
12465 ;;
12466 esac
12467
12468 exp_sym_flag='-bexport'
12469 no_entry_flag='-bnoentry'
12470 fi
12471
12472 # When large executables or shared objects are built, AIX ld can
12473 # have problems creating the table of contents. If linking a library
12474 # or program results in "error TOC overflow" add -mminimal-toc to
12475 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12476 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12477
12478 archive_cmds_CXX=''
12479 hardcode_direct_CXX=yes
12480 hardcode_direct_absolute_CXX=yes
12481 hardcode_libdir_separator_CXX=':'
12482 link_all_deplibs_CXX=yes
12483 file_list_spec_CXX='${wl}-f,'
12484
12485 if test "$GXX" = yes; then
12486 case $host_os in aix4.[012]|aix4.[012].*)
12487 # We only want to do this on AIX 4.2 and lower, the check
12488 # below for broken collect2 doesn't work under 4.3+
12489 collect2name=`${CC} -print-prog-name=collect2`
12490 if test -f "$collect2name" &&
12491 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12492 then
12493 # We have reworked collect2
12494 :
12495 else
12496 # We have old collect2
12497 hardcode_direct_CXX=unsupported
12498 # It fails to find uninstalled libraries when the uninstalled
12499 # path is not listed in the libpath. Setting hardcode_minus_L
12500 # to unsupported forces relinking
12501 hardcode_minus_L_CXX=yes
12502 hardcode_libdir_flag_spec_CXX='-L$libdir'
12503 hardcode_libdir_separator_CXX=
12504 fi
12505 esac
12506 shared_flag='-shared'
12507 if test "$aix_use_runtimelinking" = yes; then
12508 shared_flag="$shared_flag "'${wl}-G'
12509 fi
12510 else
12511 # not using gcc
12512 if test "$host_cpu" = ia64; then
12513 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12514 # chokes on -Wl,-G. The following line is correct:
12515 shared_flag='-G'
12516 else
12517 if test "$aix_use_runtimelinking" = yes; then
12518 shared_flag='${wl}-G'
12519 else
12520 shared_flag='${wl}-bM:SRE'
12521 fi
12522 fi
12523 fi
12524
12525 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12526 # It seems that -bexpall does not export symbols beginning with
12527 # underscore (_), so it is better to generate a list of symbols to
12528 # export.
12529 always_export_symbols_CXX=yes
12530 if test "$aix_use_runtimelinking" = yes; then
12531 # Warning - without using the other runtime loading flags (-brtl),
12532 # -berok will link without error, but may produce a broken library.
12533 allow_undefined_flag_CXX='-berok'
12534 # Determine the default libpath from the value encoded in an empty
12535 # executable.
12536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12537 /* end confdefs.h. */
12538
12539 int
12540 main ()
12541 {
12542
12543 ;
12544 return 0;
12545 }
12546 _ACEOF
12547 if ac_fn_cxx_try_link "$LINENO"; then :
12548
12549 lt_aix_libpath_sed='
12550 /Import File Strings/,/^$/ {
12551 /^0/ {
12552 s/^0 *\(.*\)$/\1/
12553 p
12554 }
12555 }'
12556 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12557 # Check for a 64-bit object if we didn't find anything.
12558 if test -z "$aix_libpath"; then
12559 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12560 fi
12561 fi
12562 rm -f core conftest.err conftest.$ac_objext \
12563 conftest$ac_exeext conftest.$ac_ext
12564 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12565
12566 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12567
12568 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"
12569 else
12570 if test "$host_cpu" = ia64; then
12571 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12572 allow_undefined_flag_CXX="-z nodefs"
12573 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"
12574 else
12575 # Determine the default libpath from the value encoded in an
12576 # empty executable.
12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h. */
12579
12580 int
12581 main ()
12582 {
12583
12584 ;
12585 return 0;
12586 }
12587 _ACEOF
12588 if ac_fn_cxx_try_link "$LINENO"; then :
12589
12590 lt_aix_libpath_sed='
12591 /Import File Strings/,/^$/ {
12592 /^0/ {
12593 s/^0 *\(.*\)$/\1/
12594 p
12595 }
12596 }'
12597 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12598 # Check for a 64-bit object if we didn't find anything.
12599 if test -z "$aix_libpath"; then
12600 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12601 fi
12602 fi
12603 rm -f core conftest.err conftest.$ac_objext \
12604 conftest$ac_exeext conftest.$ac_ext
12605 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12606
12607 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12608 # Warning - without using the other run time loading flags,
12609 # -berok will link without error, but may produce a broken library.
12610 no_undefined_flag_CXX=' ${wl}-bernotok'
12611 allow_undefined_flag_CXX=' ${wl}-berok'
12612 if test "$with_gnu_ld" = yes; then
12613 # We only use this code for GNU lds that support --whole-archive.
12614 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12615 else
12616 # Exported symbols can be pulled into shared objects from archives
12617 whole_archive_flag_spec_CXX='$convenience'
12618 fi
12619 archive_cmds_need_lc_CXX=yes
12620 # This is similar to how AIX traditionally builds its shared
12621 # libraries.
12622 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'
12623 fi
12624 fi
12625 ;;
12626
12627 beos*)
12628 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12629 allow_undefined_flag_CXX=unsupported
12630 # Joseph Beckenbach <[email protected]> says some releases of gcc
12631 # support --undefined. This deserves some investigation. FIXME
12632 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12633 else
12634 ld_shlibs_CXX=no
12635 fi
12636 ;;
12637
12638 chorus*)
12639 case $cc_basename in
12640 *)
12641 # FIXME: insert proper C++ library support
12642 ld_shlibs_CXX=no
12643 ;;
12644 esac
12645 ;;
12646
12647 cygwin* | mingw* | pw32* | cegcc*)
12648 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12649 # as there is no search path for DLLs.
12650 hardcode_libdir_flag_spec_CXX='-L$libdir'
12651 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12652 allow_undefined_flag_CXX=unsupported
12653 always_export_symbols_CXX=no
12654 enable_shared_with_static_runtimes_CXX=yes
12655
12656 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12657 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'
12658 # If the export-symbols file already is a .def file (1st line
12659 # is EXPORTS), use it as is; otherwise, prepend...
12660 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12661 cp $export_symbols $output_objdir/$soname.def;
12662 else
12663 echo EXPORTS > $output_objdir/$soname.def;
12664 cat $export_symbols >> $output_objdir/$soname.def;
12665 fi~
12666 $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'
12667 else
12668 ld_shlibs_CXX=no
12669 fi
12670 ;;
12671 darwin* | rhapsody*)
12672
12673
12674 archive_cmds_need_lc_CXX=no
12675 hardcode_direct_CXX=no
12676 hardcode_automatic_CXX=yes
12677 hardcode_shlibpath_var_CXX=unsupported
12678 if test "$lt_cv_ld_force_load" = "yes"; then
12679 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\"`'
12680 else
12681 whole_archive_flag_spec_CXX=''
12682 fi
12683 link_all_deplibs_CXX=yes
12684 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12685 case $cc_basename in
12686 ifort*) _lt_dar_can_shared=yes ;;
12687 *) _lt_dar_can_shared=$GCC ;;
12688 esac
12689 if test "$_lt_dar_can_shared" = "yes"; then
12690 output_verbose_link_cmd=func_echo_all
12691 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}"
12692 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12693 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}"
12694 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}"
12695 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12696 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}"
12697 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}"
12698 fi
12699
12700 else
12701 ld_shlibs_CXX=no
12702 fi
12703
12704 ;;
12705
12706 dgux*)
12707 case $cc_basename in
12708 ec++*)
12709 # FIXME: insert proper C++ library support
12710 ld_shlibs_CXX=no
12711 ;;
12712 ghcx*)
12713 # Green Hills C++ Compiler
12714 # FIXME: insert proper C++ library support
12715 ld_shlibs_CXX=no
12716 ;;
12717 *)
12718 # FIXME: insert proper C++ library support
12719 ld_shlibs_CXX=no
12720 ;;
12721 esac
12722 ;;
12723
12724 freebsd2.*)
12725 # C++ shared libraries reported to be fairly broken before
12726 # switch to ELF
12727 ld_shlibs_CXX=no
12728 ;;
12729
12730 freebsd-elf*)
12731 archive_cmds_need_lc_CXX=no
12732 ;;
12733
12734 freebsd* | dragonfly*)
12735 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12736 # conventions
12737 ld_shlibs_CXX=yes
12738 ;;
12739
12740 gnu*)
12741 ;;
12742
12743 haiku*)
12744 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12745 link_all_deplibs_CXX=yes
12746 ;;
12747
12748 hpux9*)
12749 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12750 hardcode_libdir_separator_CXX=:
12751 export_dynamic_flag_spec_CXX='${wl}-E'
12752 hardcode_direct_CXX=yes
12753 hardcode_minus_L_CXX=yes # Not in the search PATH,
12754 # but as the default
12755 # location of the library.
12756
12757 case $cc_basename in
12758 CC*)
12759 # FIXME: insert proper C++ library support
12760 ld_shlibs_CXX=no
12761 ;;
12762 aCC*)
12763 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'
12764 # Commands to make compiler produce verbose output that lists
12765 # what "hidden" libraries, object files and flags are used when
12766 # linking a shared library.
12767 #
12768 # There doesn't appear to be a way to prevent this compiler from
12769 # explicitly linking system object files so we need to strip them
12770 # from the output so that they don't get included in the library
12771 # dependencies.
12772 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"'
12773 ;;
12774 *)
12775 if test "$GXX" = yes; then
12776 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
12777 else
12778 # FIXME: insert proper C++ library support
12779 ld_shlibs_CXX=no
12780 fi
12781 ;;
12782 esac
12783 ;;
12784
12785 hpux10*|hpux11*)
12786 if test $with_gnu_ld = no; then
12787 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12788 hardcode_libdir_separator_CXX=:
12789
12790 case $host_cpu in
12791 hppa*64*|ia64*)
12792 ;;
12793 *)
12794 export_dynamic_flag_spec_CXX='${wl}-E'
12795 ;;
12796 esac
12797 fi
12798 case $host_cpu in
12799 hppa*64*|ia64*)
12800 hardcode_direct_CXX=no
12801 hardcode_shlibpath_var_CXX=no
12802 ;;
12803 *)
12804 hardcode_direct_CXX=yes
12805 hardcode_direct_absolute_CXX=yes
12806 hardcode_minus_L_CXX=yes # Not in the search PATH,
12807 # but as the default
12808 # location of the library.
12809 ;;
12810 esac
12811
12812 case $cc_basename in
12813 CC*)
12814 # FIXME: insert proper C++ library support
12815 ld_shlibs_CXX=no
12816 ;;
12817 aCC*)
12818 case $host_cpu in
12819 hppa*64*)
12820 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12821 ;;
12822 ia64*)
12823 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12824 ;;
12825 *)
12826 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12827 ;;
12828 esac
12829 # Commands to make compiler produce verbose output that lists
12830 # what "hidden" libraries, object files and flags are used when
12831 # linking a shared library.
12832 #
12833 # There doesn't appear to be a way to prevent this compiler from
12834 # explicitly linking system object files so we need to strip them
12835 # from the output so that they don't get included in the library
12836 # dependencies.
12837 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"'
12838 ;;
12839 *)
12840 if test "$GXX" = yes; then
12841 if test $with_gnu_ld = no; then
12842 case $host_cpu in
12843 hppa*64*)
12844 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12845 ;;
12846 ia64*)
12847 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12848 ;;
12849 *)
12850 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12851 ;;
12852 esac
12853 fi
12854 else
12855 # FIXME: insert proper C++ library support
12856 ld_shlibs_CXX=no
12857 fi
12858 ;;
12859 esac
12860 ;;
12861
12862 interix[3-9]*)
12863 hardcode_direct_CXX=no
12864 hardcode_shlibpath_var_CXX=no
12865 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12866 export_dynamic_flag_spec_CXX='${wl}-E'
12867 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12868 # Instead, shared libraries are loaded at an image base (0x10000000 by
12869 # default) and relocated if they conflict, which is a slow very memory
12870 # consuming and fragmenting process. To avoid this, we pick a random,
12871 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12872 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12873 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'
12874 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'
12875 ;;
12876 irix5* | irix6*)
12877 case $cc_basename in
12878 CC*)
12879 # SGI C++
12880 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'
12881
12882 # Archives containing C++ object files must be created using
12883 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12884 # necessary to make sure instantiated templates are included
12885 # in the archive.
12886 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12887 ;;
12888 *)
12889 if test "$GXX" = yes; then
12890 if test "$with_gnu_ld" = no; then
12891 archive_cmds_CXX='$CC -shared -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'
12892 else
12893 archive_cmds_CXX='$CC -shared -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'
12894 fi
12895 fi
12896 link_all_deplibs_CXX=yes
12897 ;;
12898 esac
12899 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12900 hardcode_libdir_separator_CXX=:
12901 inherit_rpath_CXX=yes
12902 ;;
12903
12904 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12905 case $cc_basename in
12906 KCC*)
12907 # Kuck and Associates, Inc. (KAI) C++ Compiler
12908
12909 # KCC will only create a shared library if the output file
12910 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12911 # to its proper name (with version) after linking.
12912 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'
12913 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'
12914 # Commands to make compiler produce verbose output that lists
12915 # what "hidden" libraries, object files and flags are used when
12916 # linking a shared library.
12917 #
12918 # There doesn't appear to be a way to prevent this compiler from
12919 # explicitly linking system object files so we need to strip them
12920 # from the output so that they don't get included in the library
12921 # dependencies.
12922 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"'
12923
12924 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12925 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12926
12927 # Archives containing C++ object files must be created using
12928 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12929 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12930 ;;
12931 icpc* | ecpc* )
12932 # Intel C++
12933 with_gnu_ld=yes
12934 # version 8.0 and above of icpc choke on multiply defined symbols
12935 # if we add $predep_objects and $postdep_objects, however 7.1 and
12936 # earlier do not add the objects themselves.
12937 case `$CC -V 2>&1` in
12938 *"Version 7."*)
12939 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12940 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'
12941 ;;
12942 *) # Version 8.0 or newer
12943 tmp_idyn=
12944 case $host_cpu in
12945 ia64*) tmp_idyn=' -i_dynamic';;
12946 esac
12947 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12948 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'
12949 ;;
12950 esac
12951 archive_cmds_need_lc_CXX=no
12952 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12953 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12954 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12955 ;;
12956 pgCC* | pgcpp*)
12957 # Portland Group C++ compiler
12958 case `$CC -V` in
12959 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12960 prelink_cmds_CXX='tpldir=Template.dir~
12961 rm -rf $tpldir~
12962 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12963 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12964 old_archive_cmds_CXX='tpldir=Template.dir~
12965 rm -rf $tpldir~
12966 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12967 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12968 $RANLIB $oldlib'
12969 archive_cmds_CXX='tpldir=Template.dir~
12970 rm -rf $tpldir~
12971 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12972 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12973 archive_expsym_cmds_CXX='tpldir=Template.dir~
12974 rm -rf $tpldir~
12975 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12976 $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'
12977 ;;
12978 *) # Version 6 and above use weak symbols
12979 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12980 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'
12981 ;;
12982 esac
12983
12984 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12985 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12986 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'
12987 ;;
12988 cxx*)
12989 # Compaq C++
12990 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12991 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'
12992
12993 runpath_var=LD_RUN_PATH
12994 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12995 hardcode_libdir_separator_CXX=:
12996
12997 # Commands to make compiler produce verbose output that lists
12998 # what "hidden" libraries, object files and flags are used when
12999 # linking a shared library.
13000 #
13001 # There doesn't appear to be a way to prevent this compiler from
13002 # explicitly linking system object files so we need to strip them
13003 # from the output so that they don't get included in the library
13004 # dependencies.
13005 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'
13006 ;;
13007 xl* | mpixl* | bgxl*)
13008 # IBM XL 8.0 on PPC, with GNU ld
13009 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13010 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13011 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13012 if test "x$supports_anon_versioning" = xyes; then
13013 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13014 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13015 echo "local: *; };" >> $output_objdir/$libname.ver~
13016 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13017 fi
13018 ;;
13019 *)
13020 case `$CC -V 2>&1 | sed 5q` in
13021 *Sun\ C*)
13022 # Sun C++ 5.9
13023 no_undefined_flag_CXX=' -zdefs'
13024 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13025 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'
13026 hardcode_libdir_flag_spec_CXX='-R$libdir'
13027 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'
13028 compiler_needs_object_CXX=yes
13029
13030 # Not sure whether something based on
13031 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13032 # would be better.
13033 output_verbose_link_cmd='func_echo_all'
13034
13035 # Archives containing C++ object files must be created using
13036 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13037 # necessary to make sure instantiated templates are included
13038 # in the archive.
13039 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13040 ;;
13041 esac
13042 ;;
13043 esac
13044 ;;
13045
13046 lynxos*)
13047 # FIXME: insert proper C++ library support
13048 ld_shlibs_CXX=no
13049 ;;
13050
13051 m88k*)
13052 # FIXME: insert proper C++ library support
13053 ld_shlibs_CXX=no
13054 ;;
13055
13056 mvs*)
13057 case $cc_basename in
13058 cxx*)
13059 # FIXME: insert proper C++ library support
13060 ld_shlibs_CXX=no
13061 ;;
13062 *)
13063 # FIXME: insert proper C++ library support
13064 ld_shlibs_CXX=no
13065 ;;
13066 esac
13067 ;;
13068
13069 netbsd*)
13070 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13071 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13072 wlarc=
13073 hardcode_libdir_flag_spec_CXX='-R$libdir'
13074 hardcode_direct_CXX=yes
13075 hardcode_shlibpath_var_CXX=no
13076 fi
13077 # Workaround some broken pre-1.5 toolchains
13078 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13079 ;;
13080
13081 *nto* | *qnx*)
13082 ld_shlibs_CXX=yes
13083 ;;
13084
13085 openbsd2*)
13086 # C++ shared libraries are fairly broken
13087 ld_shlibs_CXX=no
13088 ;;
13089
13090 openbsd*)
13091 if test -f /usr/libexec/ld.so; then
13092 hardcode_direct_CXX=yes
13093 hardcode_shlibpath_var_CXX=no
13094 hardcode_direct_absolute_CXX=yes
13095 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13096 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13097 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13098 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13099 export_dynamic_flag_spec_CXX='${wl}-E'
13100 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13101 fi
13102 output_verbose_link_cmd=func_echo_all
13103 else
13104 ld_shlibs_CXX=no
13105 fi
13106 ;;
13107
13108 osf3* | osf4* | osf5*)
13109 case $cc_basename in
13110 KCC*)
13111 # Kuck and Associates, Inc. (KAI) C++ Compiler
13112
13113 # KCC will only create a shared library if the output file
13114 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13115 # to its proper name (with version) after linking.
13116 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'
13117
13118 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13119 hardcode_libdir_separator_CXX=:
13120
13121 # Archives containing C++ object files must be created using
13122 # the KAI C++ compiler.
13123 case $host in
13124 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13125 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13126 esac
13127 ;;
13128 RCC*)
13129 # Rational C++ 2.4.1
13130 # FIXME: insert proper C++ library support
13131 ld_shlibs_CXX=no
13132 ;;
13133 cxx*)
13134 case $host in
13135 osf3*)
13136 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13137 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'
13138 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13139 ;;
13140 *)
13141 allow_undefined_flag_CXX=' -expect_unresolved \*'
13142 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'
13143 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13144 echo "-hidden">> $lib.exp~
13145 $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~
13146 $RM $lib.exp'
13147 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13148 ;;
13149 esac
13150
13151 hardcode_libdir_separator_CXX=:
13152
13153 # Commands to make compiler produce verbose output that lists
13154 # what "hidden" libraries, object files and flags are used when
13155 # linking a shared library.
13156 #
13157 # There doesn't appear to be a way to prevent this compiler from
13158 # explicitly linking system object files so we need to strip them
13159 # from the output so that they don't get included in the library
13160 # dependencies.
13161 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"'
13162 ;;
13163 *)
13164 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13165 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13166 case $host in
13167 osf3*)
13168 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'
13169 ;;
13170 *)
13171 archive_cmds_CXX='$CC -shared -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'
13172 ;;
13173 esac
13174
13175 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13176 hardcode_libdir_separator_CXX=:
13177
13178 # Commands to make compiler produce verbose output that lists
13179 # what "hidden" libraries, object files and flags are used when
13180 # linking a shared library.
13181 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13182
13183 else
13184 # FIXME: insert proper C++ library support
13185 ld_shlibs_CXX=no
13186 fi
13187 ;;
13188 esac
13189 ;;
13190
13191 psos*)
13192 # FIXME: insert proper C++ library support
13193 ld_shlibs_CXX=no
13194 ;;
13195
13196 sunos4*)
13197 case $cc_basename in
13198 CC*)
13199 # Sun C++ 4.x
13200 # FIXME: insert proper C++ library support
13201 ld_shlibs_CXX=no
13202 ;;
13203 lcc*)
13204 # Lucid
13205 # FIXME: insert proper C++ library support
13206 ld_shlibs_CXX=no
13207 ;;
13208 *)
13209 # FIXME: insert proper C++ library support
13210 ld_shlibs_CXX=no
13211 ;;
13212 esac
13213 ;;
13214
13215 solaris*)
13216 case $cc_basename in
13217 CC*)
13218 # Sun C++ 4.2, 5.x and Centerline C++
13219 archive_cmds_need_lc_CXX=yes
13220 no_undefined_flag_CXX=' -zdefs'
13221 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13222 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13223 $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'
13224
13225 hardcode_libdir_flag_spec_CXX='-R$libdir'
13226 hardcode_shlibpath_var_CXX=no
13227 case $host_os in
13228 solaris2.[0-5] | solaris2.[0-5].*) ;;
13229 *)
13230 # The compiler driver will combine and reorder linker options,
13231 # but understands `-z linker_flag'.
13232 # Supported since Solaris 2.6 (maybe 2.5.1?)
13233 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13234 ;;
13235 esac
13236 link_all_deplibs_CXX=yes
13237
13238 output_verbose_link_cmd='func_echo_all'
13239
13240 # Archives containing C++ object files must be created using
13241 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13242 # necessary to make sure instantiated templates are included
13243 # in the archive.
13244 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13245 ;;
13246 gcx*)
13247 # Green Hills C++ Compiler
13248 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13249
13250 # The C++ compiler must be used to create the archive.
13251 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13252 ;;
13253 *)
13254 # GNU C++ compiler with Solaris linker
13255 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13256 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13257 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13258 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13259 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13260 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13261
13262 # Commands to make compiler produce verbose output that lists
13263 # what "hidden" libraries, object files and flags are used when
13264 # linking a shared library.
13265 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13266 else
13267 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13268 # platform.
13269 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13270 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13271 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13272
13273 # Commands to make compiler produce verbose output that lists
13274 # what "hidden" libraries, object files and flags are used when
13275 # linking a shared library.
13276 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13277 fi
13278
13279 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13280 case $host_os in
13281 solaris2.[0-5] | solaris2.[0-5].*) ;;
13282 *)
13283 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13284 ;;
13285 esac
13286 fi
13287 ;;
13288 esac
13289 ;;
13290
13291 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13292 no_undefined_flag_CXX='${wl}-z,text'
13293 archive_cmds_need_lc_CXX=no
13294 hardcode_shlibpath_var_CXX=no
13295 runpath_var='LD_RUN_PATH'
13296
13297 case $cc_basename in
13298 CC*)
13299 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13300 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13301 ;;
13302 *)
13303 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13304 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13305 ;;
13306 esac
13307 ;;
13308
13309 sysv5* | sco3.2v5* | sco5v6*)
13310 # Note: We can NOT use -z defs as we might desire, because we do not
13311 # link with -lc, and that would cause any symbols used from libc to
13312 # always be unresolved, which means just about no library would
13313 # ever link correctly. If we're not using GNU ld we use -z text
13314 # though, which does catch some bad symbols but isn't as heavy-handed
13315 # as -z defs.
13316 no_undefined_flag_CXX='${wl}-z,text'
13317 allow_undefined_flag_CXX='${wl}-z,nodefs'
13318 archive_cmds_need_lc_CXX=no
13319 hardcode_shlibpath_var_CXX=no
13320 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13321 hardcode_libdir_separator_CXX=':'
13322 link_all_deplibs_CXX=yes
13323 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13324 runpath_var='LD_RUN_PATH'
13325
13326 case $cc_basename in
13327 CC*)
13328 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13329 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13330 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13331 '"$old_archive_cmds_CXX"
13332 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13333 '"$reload_cmds_CXX"
13334 ;;
13335 *)
13336 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13337 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13338 ;;
13339 esac
13340 ;;
13341
13342 tandem*)
13343 case $cc_basename in
13344 NCC*)
13345 # NonStop-UX NCC 3.20
13346 # FIXME: insert proper C++ library support
13347 ld_shlibs_CXX=no
13348 ;;
13349 *)
13350 # FIXME: insert proper C++ library support
13351 ld_shlibs_CXX=no
13352 ;;
13353 esac
13354 ;;
13355
13356 vxworks*)
13357 # For VxWorks ports, we assume the use of a GNU linker with
13358 # standard elf conventions.
13359 ld_shlibs_CXX=yes
13360 ;;
13361
13362 *)
13363 # FIXME: insert proper C++ library support
13364 ld_shlibs_CXX=no
13365 ;;
13366 esac
13367
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13369 $as_echo "$ld_shlibs_CXX" >&6; }
13370 test "$ld_shlibs_CXX" = no && can_build_shared=no
13371
13372 GCC_CXX="$GXX"
13373 LD_CXX="$LD"
13374
13375 ## CAVEAT EMPTOR:
13376 ## There is no encapsulation within the following macros, do not change
13377 ## the running order or otherwise move them around unless you know exactly
13378 ## what you are doing...
13379 # Dependencies to place before and after the object being linked:
13380 predep_objects_CXX=
13381 postdep_objects_CXX=
13382 predeps_CXX=
13383 postdeps_CXX=
13384 compiler_lib_search_path_CXX=
13385
13386 cat > conftest.$ac_ext <<_LT_EOF
13387 class Foo
13388 {
13389 public:
13390 Foo (void) { a = 0; }
13391 private:
13392 int a;
13393 };
13394 _LT_EOF
13395
13396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13397 (eval $ac_compile) 2>&5
13398 ac_status=$?
13399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13400 test $ac_status = 0; }; then
13401 # Parse the compiler output and extract the necessary
13402 # objects, libraries and library flags.
13403
13404 # Sentinel used to keep track of whether or not we are before
13405 # the conftest object file.
13406 pre_test_object_deps_done=no
13407
13408 for p in `eval "$output_verbose_link_cmd"`; do
13409 case $p in
13410
13411 -L* | -R* | -l*)
13412 # Some compilers place space between "-{L,R}" and the path.
13413 # Remove the space.
13414 if test $p = "-L" ||
13415 test $p = "-R"; then
13416 prev=$p
13417 continue
13418 else
13419 prev=
13420 fi
13421
13422 if test "$pre_test_object_deps_done" = no; then
13423 case $p in
13424 -L* | -R*)
13425 # Internal compiler library paths should come after those
13426 # provided the user. The postdeps already come after the
13427 # user supplied libs so there is no need to process them.
13428 if test -z "$compiler_lib_search_path_CXX"; then
13429 compiler_lib_search_path_CXX="${prev}${p}"
13430 else
13431 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13432 fi
13433 ;;
13434 # The "-l" case would never come before the object being
13435 # linked, so don't bother handling this case.
13436 esac
13437 else
13438 if test -z "$postdeps_CXX"; then
13439 postdeps_CXX="${prev}${p}"
13440 else
13441 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13442 fi
13443 fi
13444 ;;
13445
13446 *.$objext)
13447 # This assumes that the test object file only shows up
13448 # once in the compiler output.
13449 if test "$p" = "conftest.$objext"; then
13450 pre_test_object_deps_done=yes
13451 continue
13452 fi
13453
13454 if test "$pre_test_object_deps_done" = no; then
13455 if test -z "$predep_objects_CXX"; then
13456 predep_objects_CXX="$p"
13457 else
13458 predep_objects_CXX="$predep_objects_CXX $p"
13459 fi
13460 else
13461 if test -z "$postdep_objects_CXX"; then
13462 postdep_objects_CXX="$p"
13463 else
13464 postdep_objects_CXX="$postdep_objects_CXX $p"
13465 fi
13466 fi
13467 ;;
13468
13469 *) ;; # Ignore the rest.
13470
13471 esac
13472 done
13473
13474 # Clean up.
13475 rm -f a.out a.exe
13476 else
13477 echo "libtool.m4: error: problem compiling CXX test program"
13478 fi
13479
13480 $RM -f confest.$objext
13481
13482 # PORTME: override above test on systems where it is broken
13483 case $host_os in
13484 interix[3-9]*)
13485 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13486 # hack all around it, let's just trust "g++" to DTRT.
13487 predep_objects_CXX=
13488 postdep_objects_CXX=
13489 postdeps_CXX=
13490 ;;
13491
13492 linux*)
13493 case `$CC -V 2>&1 | sed 5q` in
13494 *Sun\ C*)
13495 # Sun C++ 5.9
13496
13497 # The more standards-conforming stlport4 library is
13498 # incompatible with the Cstd library. Avoid specifying
13499 # it if it's in CXXFLAGS. Ignore libCrun as
13500 # -library=stlport4 depends on it.
13501 case " $CXX $CXXFLAGS " in
13502 *" -library=stlport4 "*)
13503 solaris_use_stlport4=yes
13504 ;;
13505 esac
13506
13507 if test "$solaris_use_stlport4" != yes; then
13508 postdeps_CXX='-library=Cstd -library=Crun'
13509 fi
13510 ;;
13511 esac
13512 ;;
13513
13514 solaris*)
13515 case $cc_basename in
13516 CC*)
13517 # The more standards-conforming stlport4 library is
13518 # incompatible with the Cstd library. Avoid specifying
13519 # it if it's in CXXFLAGS. Ignore libCrun as
13520 # -library=stlport4 depends on it.
13521 case " $CXX $CXXFLAGS " in
13522 *" -library=stlport4 "*)
13523 solaris_use_stlport4=yes
13524 ;;
13525 esac
13526
13527 # Adding this requires a known-good setup of shared libraries for
13528 # Sun compiler versions before 5.6, else PIC objects from an old
13529 # archive will be linked into the output, leading to subtle bugs.
13530 if test "$solaris_use_stlport4" != yes; then
13531 postdeps_CXX='-library=Cstd -library=Crun'
13532 fi
13533 ;;
13534 esac
13535 ;;
13536 esac
13537
13538
13539 case " $postdeps_CXX " in
13540 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13541 esac
13542 compiler_lib_search_dirs_CXX=
13543 if test -n "${compiler_lib_search_path_CXX}"; then
13544 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13545 fi
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577 lt_prog_compiler_wl_CXX=
13578 lt_prog_compiler_pic_CXX=
13579 lt_prog_compiler_static_CXX=
13580
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13582 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13583
13584 # C++ specific cases for pic, static, wl, etc.
13585 if test "$GXX" = yes; then
13586 lt_prog_compiler_wl_CXX='-Wl,'
13587 lt_prog_compiler_static_CXX='-static'
13588
13589 case $host_os in
13590 aix*)
13591 # All AIX code is PIC.
13592 if test "$host_cpu" = ia64; then
13593 # AIX 5 now supports IA64 processor
13594 lt_prog_compiler_static_CXX='-Bstatic'
13595 fi
13596 lt_prog_compiler_pic_CXX='-fPIC'
13597 ;;
13598
13599 amigaos*)
13600 case $host_cpu in
13601 powerpc)
13602 # see comment about AmigaOS4 .so support
13603 lt_prog_compiler_pic_CXX='-fPIC'
13604 ;;
13605 m68k)
13606 # FIXME: we need at least 68020 code to build shared libraries, but
13607 # adding the `-m68020' flag to GCC prevents building anything better,
13608 # like `-m68040'.
13609 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13610 ;;
13611 esac
13612 ;;
13613
13614 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13615 # PIC is the default for these OSes.
13616 ;;
13617 mingw* | cygwin* | os2* | pw32* | cegcc*)
13618 # This hack is so that the source file can tell whether it is being
13619 # built for inclusion in a dll (and should export symbols for example).
13620 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13621 # (--disable-auto-import) libraries
13622 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13623 ;;
13624 darwin* | rhapsody*)
13625 # PIC is the default on this platform
13626 # Common symbols not allowed in MH_DYLIB files
13627 lt_prog_compiler_pic_CXX='-fno-common'
13628 ;;
13629 *djgpp*)
13630 # DJGPP does not support shared libraries at all
13631 lt_prog_compiler_pic_CXX=
13632 ;;
13633 haiku*)
13634 # PIC is the default for Haiku.
13635 # The "-static" flag exists, but is broken.
13636 lt_prog_compiler_static_CXX=
13637 ;;
13638 interix[3-9]*)
13639 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13640 # Instead, we relocate shared libraries at runtime.
13641 ;;
13642 sysv4*MP*)
13643 if test -d /usr/nec; then
13644 lt_prog_compiler_pic_CXX=-Kconform_pic
13645 fi
13646 ;;
13647 hpux*)
13648 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13649 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13650 # sets the default TLS model and affects inlining.
13651 case $host_cpu in
13652 hppa*64*)
13653 ;;
13654 *)
13655 lt_prog_compiler_pic_CXX='-fPIC'
13656 ;;
13657 esac
13658 ;;
13659 *qnx* | *nto*)
13660 # QNX uses GNU C++, but need to define -shared option too, otherwise
13661 # it will coredump.
13662 lt_prog_compiler_pic_CXX='-fPIC -shared'
13663 ;;
13664 *)
13665 lt_prog_compiler_pic_CXX='-fPIC'
13666 ;;
13667 esac
13668 else
13669 case $host_os in
13670 aix[4-9]*)
13671 # All AIX code is PIC.
13672 if test "$host_cpu" = ia64; then
13673 # AIX 5 now supports IA64 processor
13674 lt_prog_compiler_static_CXX='-Bstatic'
13675 else
13676 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13677 fi
13678 ;;
13679 chorus*)
13680 case $cc_basename in
13681 cxch68*)
13682 # Green Hills C++ Compiler
13683 # _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"
13684 ;;
13685 esac
13686 ;;
13687 dgux*)
13688 case $cc_basename in
13689 ec++*)
13690 lt_prog_compiler_pic_CXX='-KPIC'
13691 ;;
13692 ghcx*)
13693 # Green Hills C++ Compiler
13694 lt_prog_compiler_pic_CXX='-pic'
13695 ;;
13696 *)
13697 ;;
13698 esac
13699 ;;
13700 freebsd* | dragonfly*)
13701 # FreeBSD uses GNU C++
13702 ;;
13703 hpux9* | hpux10* | hpux11*)
13704 case $cc_basename in
13705 CC*)
13706 lt_prog_compiler_wl_CXX='-Wl,'
13707 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13708 if test "$host_cpu" != ia64; then
13709 lt_prog_compiler_pic_CXX='+Z'
13710 fi
13711 ;;
13712 aCC*)
13713 lt_prog_compiler_wl_CXX='-Wl,'
13714 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13715 case $host_cpu in
13716 hppa*64*|ia64*)
13717 # +Z the default
13718 ;;
13719 *)
13720 lt_prog_compiler_pic_CXX='+Z'
13721 ;;
13722 esac
13723 ;;
13724 *)
13725 ;;
13726 esac
13727 ;;
13728 interix*)
13729 # This is c89, which is MS Visual C++ (no shared libs)
13730 # Anyone wants to do a port?
13731 ;;
13732 irix5* | irix6* | nonstopux*)
13733 case $cc_basename in
13734 CC*)
13735 lt_prog_compiler_wl_CXX='-Wl,'
13736 lt_prog_compiler_static_CXX='-non_shared'
13737 # CC pic flag -KPIC is the default.
13738 ;;
13739 *)
13740 ;;
13741 esac
13742 ;;
13743 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13744 case $cc_basename in
13745 KCC*)
13746 # KAI C++ Compiler
13747 lt_prog_compiler_wl_CXX='--backend -Wl,'
13748 lt_prog_compiler_pic_CXX='-fPIC'
13749 ;;
13750 ecpc* )
13751 # old Intel C++ for x86_64 which still supported -KPIC.
13752 lt_prog_compiler_wl_CXX='-Wl,'
13753 lt_prog_compiler_pic_CXX='-KPIC'
13754 lt_prog_compiler_static_CXX='-static'
13755 ;;
13756 icpc* )
13757 # Intel C++, used to be incompatible with GCC.
13758 # ICC 10 doesn't accept -KPIC any more.
13759 lt_prog_compiler_wl_CXX='-Wl,'
13760 lt_prog_compiler_pic_CXX='-fPIC'
13761 lt_prog_compiler_static_CXX='-static'
13762 ;;
13763 pgCC* | pgcpp*)
13764 # Portland Group C++ compiler
13765 lt_prog_compiler_wl_CXX='-Wl,'
13766 lt_prog_compiler_pic_CXX='-fpic'
13767 lt_prog_compiler_static_CXX='-Bstatic'
13768 ;;
13769 cxx*)
13770 # Compaq C++
13771 # Make sure the PIC flag is empty. It appears that all Alpha
13772 # Linux and Compaq Tru64 Unix objects are PIC.
13773 lt_prog_compiler_pic_CXX=
13774 lt_prog_compiler_static_CXX='-non_shared'
13775 ;;
13776 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13777 # IBM XL 8.0, 9.0 on PPC and BlueGene
13778 lt_prog_compiler_wl_CXX='-Wl,'
13779 lt_prog_compiler_pic_CXX='-qpic'
13780 lt_prog_compiler_static_CXX='-qstaticlink'
13781 ;;
13782 *)
13783 case `$CC -V 2>&1 | sed 5q` in
13784 *Sun\ C*)
13785 # Sun C++ 5.9
13786 lt_prog_compiler_pic_CXX='-KPIC'
13787 lt_prog_compiler_static_CXX='-Bstatic'
13788 lt_prog_compiler_wl_CXX='-Qoption ld '
13789 ;;
13790 esac
13791 ;;
13792 esac
13793 ;;
13794 lynxos*)
13795 ;;
13796 m88k*)
13797 ;;
13798 mvs*)
13799 case $cc_basename in
13800 cxx*)
13801 lt_prog_compiler_pic_CXX='-W c,exportall'
13802 ;;
13803 *)
13804 ;;
13805 esac
13806 ;;
13807 netbsd*)
13808 ;;
13809 *qnx* | *nto*)
13810 # QNX uses GNU C++, but need to define -shared option too, otherwise
13811 # it will coredump.
13812 lt_prog_compiler_pic_CXX='-fPIC -shared'
13813 ;;
13814 osf3* | osf4* | osf5*)
13815 case $cc_basename in
13816 KCC*)
13817 lt_prog_compiler_wl_CXX='--backend -Wl,'
13818 ;;
13819 RCC*)
13820 # Rational C++ 2.4.1
13821 lt_prog_compiler_pic_CXX='-pic'
13822 ;;
13823 cxx*)
13824 # Digital/Compaq C++
13825 lt_prog_compiler_wl_CXX='-Wl,'
13826 # Make sure the PIC flag is empty. It appears that all Alpha
13827 # Linux and Compaq Tru64 Unix objects are PIC.
13828 lt_prog_compiler_pic_CXX=
13829 lt_prog_compiler_static_CXX='-non_shared'
13830 ;;
13831 *)
13832 ;;
13833 esac
13834 ;;
13835 psos*)
13836 ;;
13837 solaris*)
13838 case $cc_basename in
13839 CC*)
13840 # Sun C++ 4.2, 5.x and Centerline C++
13841 lt_prog_compiler_pic_CXX='-KPIC'
13842 lt_prog_compiler_static_CXX='-Bstatic'
13843 lt_prog_compiler_wl_CXX='-Qoption ld '
13844 ;;
13845 gcx*)
13846 # Green Hills C++ Compiler
13847 lt_prog_compiler_pic_CXX='-PIC'
13848 ;;
13849 *)
13850 ;;
13851 esac
13852 ;;
13853 sunos4*)
13854 case $cc_basename in
13855 CC*)
13856 # Sun C++ 4.x
13857 lt_prog_compiler_pic_CXX='-pic'
13858 lt_prog_compiler_static_CXX='-Bstatic'
13859 ;;
13860 lcc*)
13861 # Lucid
13862 lt_prog_compiler_pic_CXX='-pic'
13863 ;;
13864 *)
13865 ;;
13866 esac
13867 ;;
13868 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13869 case $cc_basename in
13870 CC*)
13871 lt_prog_compiler_wl_CXX='-Wl,'
13872 lt_prog_compiler_pic_CXX='-KPIC'
13873 lt_prog_compiler_static_CXX='-Bstatic'
13874 ;;
13875 esac
13876 ;;
13877 tandem*)
13878 case $cc_basename in
13879 NCC*)
13880 # NonStop-UX NCC 3.20
13881 lt_prog_compiler_pic_CXX='-KPIC'
13882 ;;
13883 *)
13884 ;;
13885 esac
13886 ;;
13887 vxworks*)
13888 ;;
13889 *)
13890 lt_prog_compiler_can_build_shared_CXX=no
13891 ;;
13892 esac
13893 fi
13894
13895 case $host_os in
13896 # For platforms which do not support PIC, -DPIC is meaningless:
13897 *djgpp*)
13898 lt_prog_compiler_pic_CXX=
13899 ;;
13900 *)
13901 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13902 ;;
13903 esac
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13905 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13906
13907
13908
13909 #
13910 # Check to make sure the PIC flag actually works.
13911 #
13912 if test -n "$lt_prog_compiler_pic_CXX"; then
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13914 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13915 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13916 $as_echo_n "(cached) " >&6
13917 else
13918 lt_cv_prog_compiler_pic_works_CXX=no
13919 ac_outfile=conftest.$ac_objext
13920 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13921 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13922 # Insert the option either (1) after the last *FLAGS variable, or
13923 # (2) before a word containing "conftest.", or (3) at the end.
13924 # Note that $ac_compile itself does not contain backslashes and begins
13925 # with a dollar sign (not a hyphen), so the echo should work correctly.
13926 # The option is referenced via a variable to avoid confusing sed.
13927 lt_compile=`echo "$ac_compile" | $SED \
13928 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13930 -e 's:$: $lt_compiler_flag:'`
13931 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13932 (eval "$lt_compile" 2>conftest.err)
13933 ac_status=$?
13934 cat conftest.err >&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 if (exit $ac_status) && test -s "$ac_outfile"; then
13937 # The compiler can only warn and ignore the option if not recognized
13938 # So say no if there are warnings other than the usual output.
13939 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13940 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13941 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13942 lt_cv_prog_compiler_pic_works_CXX=yes
13943 fi
13944 fi
13945 $RM conftest*
13946
13947 fi
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13949 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13950
13951 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13952 case $lt_prog_compiler_pic_CXX in
13953 "" | " "*) ;;
13954 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13955 esac
13956 else
13957 lt_prog_compiler_pic_CXX=
13958 lt_prog_compiler_can_build_shared_CXX=no
13959 fi
13960
13961 fi
13962
13963
13964
13965 #
13966 # Check to make sure the static flag actually works.
13967 #
13968 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13970 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13971 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13972 $as_echo_n "(cached) " >&6
13973 else
13974 lt_cv_prog_compiler_static_works_CXX=no
13975 save_LDFLAGS="$LDFLAGS"
13976 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13977 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13978 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13979 # The linker can only warn and ignore the option if not recognized
13980 # So say no if there are warnings
13981 if test -s conftest.err; then
13982 # Append any errors to the config.log.
13983 cat conftest.err 1>&5
13984 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13985 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13986 if diff conftest.exp conftest.er2 >/dev/null; then
13987 lt_cv_prog_compiler_static_works_CXX=yes
13988 fi
13989 else
13990 lt_cv_prog_compiler_static_works_CXX=yes
13991 fi
13992 fi
13993 $RM -r conftest*
13994 LDFLAGS="$save_LDFLAGS"
13995
13996 fi
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13998 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13999
14000 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14001 :
14002 else
14003 lt_prog_compiler_static_CXX=
14004 fi
14005
14006
14007
14008
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14010 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14011 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14012 $as_echo_n "(cached) " >&6
14013 else
14014 lt_cv_prog_compiler_c_o_CXX=no
14015 $RM -r conftest 2>/dev/null
14016 mkdir conftest
14017 cd conftest
14018 mkdir out
14019 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14020
14021 lt_compiler_flag="-o out/conftest2.$ac_objext"
14022 # Insert the option either (1) after the last *FLAGS variable, or
14023 # (2) before a word containing "conftest.", or (3) at the end.
14024 # Note that $ac_compile itself does not contain backslashes and begins
14025 # with a dollar sign (not a hyphen), so the echo should work correctly.
14026 lt_compile=`echo "$ac_compile" | $SED \
14027 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14029 -e 's:$: $lt_compiler_flag:'`
14030 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14031 (eval "$lt_compile" 2>out/conftest.err)
14032 ac_status=$?
14033 cat out/conftest.err >&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14036 then
14037 # The compiler can only warn and ignore the option if not recognized
14038 # So say no if there are warnings
14039 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14040 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14041 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14042 lt_cv_prog_compiler_c_o_CXX=yes
14043 fi
14044 fi
14045 chmod u+w . 2>&5
14046 $RM conftest*
14047 # SGI C++ compiler will create directory out/ii_files/ for
14048 # template instantiation
14049 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14050 $RM out/* && rmdir out
14051 cd ..
14052 $RM -r conftest
14053 $RM conftest*
14054
14055 fi
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14057 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14058
14059
14060
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14062 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14063 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14064 $as_echo_n "(cached) " >&6
14065 else
14066 lt_cv_prog_compiler_c_o_CXX=no
14067 $RM -r conftest 2>/dev/null
14068 mkdir conftest
14069 cd conftest
14070 mkdir out
14071 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14072
14073 lt_compiler_flag="-o out/conftest2.$ac_objext"
14074 # Insert the option either (1) after the last *FLAGS variable, or
14075 # (2) before a word containing "conftest.", or (3) at the end.
14076 # Note that $ac_compile itself does not contain backslashes and begins
14077 # with a dollar sign (not a hyphen), so the echo should work correctly.
14078 lt_compile=`echo "$ac_compile" | $SED \
14079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14081 -e 's:$: $lt_compiler_flag:'`
14082 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14083 (eval "$lt_compile" 2>out/conftest.err)
14084 ac_status=$?
14085 cat out/conftest.err >&5
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14088 then
14089 # The compiler can only warn and ignore the option if not recognized
14090 # So say no if there are warnings
14091 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14092 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14093 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14094 lt_cv_prog_compiler_c_o_CXX=yes
14095 fi
14096 fi
14097 chmod u+w . 2>&5
14098 $RM conftest*
14099 # SGI C++ compiler will create directory out/ii_files/ for
14100 # template instantiation
14101 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14102 $RM out/* && rmdir out
14103 cd ..
14104 $RM -r conftest
14105 $RM conftest*
14106
14107 fi
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14109 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14110
14111
14112
14113
14114 hard_links="nottested"
14115 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14116 # do not overwrite the value of need_locks provided by the user
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14118 $as_echo_n "checking if we can lock with hard links... " >&6; }
14119 hard_links=yes
14120 $RM conftest*
14121 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14122 touch conftest.a
14123 ln conftest.a conftest.b 2>&5 || hard_links=no
14124 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14126 $as_echo "$hard_links" >&6; }
14127 if test "$hard_links" = no; then
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14129 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14130 need_locks=warn
14131 fi
14132 else
14133 need_locks=no
14134 fi
14135
14136
14137
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14139 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14140
14141 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14142 case $host_os in
14143 aix[4-9]*)
14144 # If we're using GNU nm, then we don't want the "-C" option.
14145 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14146 # Also, AIX nm treats weak defined symbols like other global defined
14147 # symbols, whereas GNU nm marks them as "W".
14148 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14149 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'
14150 else
14151 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14152 fi
14153 ;;
14154 pw32*)
14155 export_symbols_cmds_CXX="$ltdll_cmds"
14156 ;;
14157 cygwin* | mingw* | cegcc*)
14158 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14159 ;;
14160 *)
14161 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14162 ;;
14163 esac
14164 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14165
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14167 $as_echo "$ld_shlibs_CXX" >&6; }
14168 test "$ld_shlibs_CXX" = no && can_build_shared=no
14169
14170 with_gnu_ld_CXX=$with_gnu_ld
14171
14172
14173
14174
14175
14176
14177 #
14178 # Do we need to explicitly link libc?
14179 #
14180 case "x$archive_cmds_need_lc_CXX" in
14181 x|xyes)
14182 # Assume -lc should be added
14183 archive_cmds_need_lc_CXX=yes
14184
14185 if test "$enable_shared" = yes && test "$GCC" = yes; then
14186 case $archive_cmds_CXX in
14187 *'~'*)
14188 # FIXME: we may have to deal with multi-command sequences.
14189 ;;
14190 '$CC '*)
14191 # Test whether the compiler implicitly links with -lc since on some
14192 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14193 # to ld, don't add -lc before -lgcc.
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14195 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14196 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14197 $as_echo_n "(cached) " >&6
14198 else
14199 $RM conftest*
14200 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14201
14202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14203 (eval $ac_compile) 2>&5
14204 ac_status=$?
14205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14206 test $ac_status = 0; } 2>conftest.err; then
14207 soname=conftest
14208 lib=conftest
14209 libobjs=conftest.$ac_objext
14210 deplibs=
14211 wl=$lt_prog_compiler_wl_CXX
14212 pic_flag=$lt_prog_compiler_pic_CXX
14213 compiler_flags=-v
14214 linker_flags=-v
14215 verstring=
14216 output_objdir=.
14217 libname=conftest
14218 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14219 allow_undefined_flag_CXX=
14220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14221 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14222 ac_status=$?
14223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14224 test $ac_status = 0; }
14225 then
14226 lt_cv_archive_cmds_need_lc_CXX=no
14227 else
14228 lt_cv_archive_cmds_need_lc_CXX=yes
14229 fi
14230 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14231 else
14232 cat conftest.err 1>&5
14233 fi
14234 $RM conftest*
14235
14236 fi
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14238 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14239 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14240 ;;
14241 esac
14242 fi
14243 ;;
14244 esac
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14310 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14311
14312 library_names_spec=
14313 libname_spec='lib$name'
14314 soname_spec=
14315 shrext_cmds=".so"
14316 postinstall_cmds=
14317 postuninstall_cmds=
14318 finish_cmds=
14319 finish_eval=
14320 shlibpath_var=
14321 shlibpath_overrides_runpath=unknown
14322 version_type=none
14323 dynamic_linker="$host_os ld.so"
14324 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14325 need_lib_prefix=unknown
14326 hardcode_into_libs=no
14327
14328 # when you set need_version to no, make sure it does not cause -set_version
14329 # flags to be left without arguments
14330 need_version=unknown
14331
14332 case $host_os in
14333 aix3*)
14334 version_type=linux
14335 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14336 shlibpath_var=LIBPATH
14337
14338 # AIX 3 has no versioning support, so we append a major version to the name.
14339 soname_spec='${libname}${release}${shared_ext}$major'
14340 ;;
14341
14342 aix[4-9]*)
14343 version_type=linux
14344 need_lib_prefix=no
14345 need_version=no
14346 hardcode_into_libs=yes
14347 if test "$host_cpu" = ia64; then
14348 # AIX 5 supports IA64
14349 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14350 shlibpath_var=LD_LIBRARY_PATH
14351 else
14352 # With GCC up to 2.95.x, collect2 would create an import file
14353 # for dependence libraries. The import file would start with
14354 # the line `#! .'. This would cause the generated library to
14355 # depend on `.', always an invalid library. This was fixed in
14356 # development snapshots of GCC prior to 3.0.
14357 case $host_os in
14358 aix4 | aix4.[01] | aix4.[01].*)
14359 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14360 echo ' yes '
14361 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14362 :
14363 else
14364 can_build_shared=no
14365 fi
14366 ;;
14367 esac
14368 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14369 # soname into executable. Probably we can add versioning support to
14370 # collect2, so additional links can be useful in future.
14371 if test "$aix_use_runtimelinking" = yes; then
14372 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14373 # instead of lib<name>.a to let people know that these are not
14374 # typical AIX shared libraries.
14375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14376 else
14377 # We preserve .a as extension for shared libraries through AIX4.2
14378 # and later when we are not doing run time linking.
14379 library_names_spec='${libname}${release}.a $libname.a'
14380 soname_spec='${libname}${release}${shared_ext}$major'
14381 fi
14382 shlibpath_var=LIBPATH
14383 fi
14384 ;;
14385
14386 amigaos*)
14387 case $host_cpu in
14388 powerpc)
14389 # Since July 2007 AmigaOS4 officially supports .so libraries.
14390 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14392 ;;
14393 m68k)
14394 library_names_spec='$libname.ixlibrary $libname.a'
14395 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14396 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'
14397 ;;
14398 esac
14399 ;;
14400
14401 beos*)
14402 library_names_spec='${libname}${shared_ext}'
14403 dynamic_linker="$host_os ld.so"
14404 shlibpath_var=LIBRARY_PATH
14405 ;;
14406
14407 bsdi[45]*)
14408 version_type=linux
14409 need_version=no
14410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14411 soname_spec='${libname}${release}${shared_ext}$major'
14412 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14413 shlibpath_var=LD_LIBRARY_PATH
14414 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14415 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14416 # the default ld.so.conf also contains /usr/contrib/lib and
14417 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14418 # libtool to hard-code these into programs
14419 ;;
14420
14421 cygwin* | mingw* | pw32* | cegcc*)
14422 version_type=windows
14423 shrext_cmds=".dll"
14424 need_version=no
14425 need_lib_prefix=no
14426
14427 case $GCC,$host_os in
14428 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14429 library_names_spec='$libname.dll.a'
14430 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14431 postinstall_cmds='base_file=`basename \${file}`~
14432 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14433 dldir=$destdir/`dirname \$dlpath`~
14434 test -d \$dldir || mkdir -p \$dldir~
14435 $install_prog $dir/$dlname \$dldir/$dlname~
14436 chmod a+x \$dldir/$dlname~
14437 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14438 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14439 fi'
14440 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14441 dlpath=$dir/\$dldll~
14442 $RM \$dlpath'
14443 shlibpath_overrides_runpath=yes
14444
14445 case $host_os in
14446 cygwin*)
14447 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14448 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14449
14450 ;;
14451 mingw* | cegcc*)
14452 # MinGW DLLs use traditional 'lib' prefix
14453 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14454 ;;
14455 pw32*)
14456 # pw32 DLLs use 'pw' prefix rather than 'lib'
14457 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14458 ;;
14459 esac
14460 ;;
14461
14462 *)
14463 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14464 ;;
14465 esac
14466 dynamic_linker='Win32 ld.exe'
14467 # FIXME: first we should search . and the directory the executable is in
14468 shlibpath_var=PATH
14469 ;;
14470
14471 darwin* | rhapsody*)
14472 dynamic_linker="$host_os dyld"
14473 version_type=darwin
14474 need_lib_prefix=no
14475 need_version=no
14476 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14477 soname_spec='${libname}${release}${major}$shared_ext'
14478 shlibpath_overrides_runpath=yes
14479 shlibpath_var=DYLD_LIBRARY_PATH
14480 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14481
14482 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14483 ;;
14484
14485 dgux*)
14486 version_type=linux
14487 need_lib_prefix=no
14488 need_version=no
14489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14490 soname_spec='${libname}${release}${shared_ext}$major'
14491 shlibpath_var=LD_LIBRARY_PATH
14492 ;;
14493
14494 freebsd* | dragonfly*)
14495 # DragonFly does not have aout. When/if they implement a new
14496 # versioning mechanism, adjust this.
14497 if test -x /usr/bin/objformat; then
14498 objformat=`/usr/bin/objformat`
14499 else
14500 case $host_os in
14501 freebsd[23].*) objformat=aout ;;
14502 *) objformat=elf ;;
14503 esac
14504 fi
14505 version_type=freebsd-$objformat
14506 case $version_type in
14507 freebsd-elf*)
14508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14509 need_version=no
14510 need_lib_prefix=no
14511 ;;
14512 freebsd-*)
14513 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14514 need_version=yes
14515 ;;
14516 esac
14517 shlibpath_var=LD_LIBRARY_PATH
14518 case $host_os in
14519 freebsd2.*)
14520 shlibpath_overrides_runpath=yes
14521 ;;
14522 freebsd3.[01]* | freebsdelf3.[01]*)
14523 shlibpath_overrides_runpath=yes
14524 hardcode_into_libs=yes
14525 ;;
14526 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14527 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14528 shlibpath_overrides_runpath=no
14529 hardcode_into_libs=yes
14530 ;;
14531 *) # from 4.6 on, and DragonFly
14532 shlibpath_overrides_runpath=yes
14533 hardcode_into_libs=yes
14534 ;;
14535 esac
14536 ;;
14537
14538 haiku*)
14539 version_type=linux
14540 need_lib_prefix=no
14541 need_version=no
14542 dynamic_linker="$host_os runtime_loader"
14543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14544 soname_spec='${libname}${release}${shared_ext}$major'
14545 shlibpath_var=LIBRARY_PATH
14546 shlibpath_overrides_runpath=yes
14547 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14548 hardcode_into_libs=yes
14549 ;;
14550
14551 hpux9* | hpux10* | hpux11*)
14552 # Give a soname corresponding to the major version so that dld.sl refuses to
14553 # link against other versions.
14554 version_type=sunos
14555 need_lib_prefix=no
14556 need_version=no
14557 case $host_cpu in
14558 ia64*)
14559 shrext_cmds='.so'
14560 hardcode_into_libs=yes
14561 dynamic_linker="$host_os dld.so"
14562 shlibpath_var=LD_LIBRARY_PATH
14563 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14565 soname_spec='${libname}${release}${shared_ext}$major'
14566 if test "X$HPUX_IA64_MODE" = X32; then
14567 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14568 else
14569 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14570 fi
14571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14572 ;;
14573 hppa*64*)
14574 shrext_cmds='.sl'
14575 hardcode_into_libs=yes
14576 dynamic_linker="$host_os dld.sl"
14577 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14578 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14580 soname_spec='${libname}${release}${shared_ext}$major'
14581 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14582 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14583 ;;
14584 *)
14585 shrext_cmds='.sl'
14586 dynamic_linker="$host_os dld.sl"
14587 shlibpath_var=SHLIB_PATH
14588 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14590 soname_spec='${libname}${release}${shared_ext}$major'
14591 ;;
14592 esac
14593 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14594 postinstall_cmds='chmod 555 $lib'
14595 # or fails outright, so override atomically:
14596 install_override_mode=555
14597 ;;
14598
14599 interix[3-9]*)
14600 version_type=linux
14601 need_lib_prefix=no
14602 need_version=no
14603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14604 soname_spec='${libname}${release}${shared_ext}$major'
14605 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14606 shlibpath_var=LD_LIBRARY_PATH
14607 shlibpath_overrides_runpath=no
14608 hardcode_into_libs=yes
14609 ;;
14610
14611 irix5* | irix6* | nonstopux*)
14612 case $host_os in
14613 nonstopux*) version_type=nonstopux ;;
14614 *)
14615 if test "$lt_cv_prog_gnu_ld" = yes; then
14616 version_type=linux
14617 else
14618 version_type=irix
14619 fi ;;
14620 esac
14621 need_lib_prefix=no
14622 need_version=no
14623 soname_spec='${libname}${release}${shared_ext}$major'
14624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14625 case $host_os in
14626 irix5* | nonstopux*)
14627 libsuff= shlibsuff=
14628 ;;
14629 *)
14630 case $LD in # libtool.m4 will add one of these switches to LD
14631 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14632 libsuff= shlibsuff= libmagic=32-bit;;
14633 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14634 libsuff=32 shlibsuff=N32 libmagic=N32;;
14635 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14636 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14637 *) libsuff= shlibsuff= libmagic=never-match;;
14638 esac
14639 ;;
14640 esac
14641 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14642 shlibpath_overrides_runpath=no
14643 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14644 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14645 hardcode_into_libs=yes
14646 ;;
14647
14648 # No shared lib support for Linux oldld, aout, or coff.
14649 linux*oldld* | linux*aout* | linux*coff*)
14650 dynamic_linker=no
14651 ;;
14652
14653 # This must be Linux ELF.
14654
14655 # uclinux* changes (here and below) have been submitted to the libtool
14656 # project, but have not yet been accepted: they are GCC-local changes
14657 # for the time being. (See
14658 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14659 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
14660 version_type=linux
14661 need_lib_prefix=no
14662 need_version=no
14663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14664 soname_spec='${libname}${release}${shared_ext}$major'
14665 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14666 shlibpath_var=LD_LIBRARY_PATH
14667 shlibpath_overrides_runpath=no
14668
14669 # Some binutils ld are patched to set DT_RUNPATH
14670 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14671 $as_echo_n "(cached) " >&6
14672 else
14673 lt_cv_shlibpath_overrides_runpath=no
14674 save_LDFLAGS=$LDFLAGS
14675 save_libdir=$libdir
14676 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14677 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14679 /* end confdefs.h. */
14680
14681 int
14682 main ()
14683 {
14684
14685 ;
14686 return 0;
14687 }
14688 _ACEOF
14689 if ac_fn_cxx_try_link "$LINENO"; then :
14690 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14691 lt_cv_shlibpath_overrides_runpath=yes
14692 fi
14693 fi
14694 rm -f core conftest.err conftest.$ac_objext \
14695 conftest$ac_exeext conftest.$ac_ext
14696 LDFLAGS=$save_LDFLAGS
14697 libdir=$save_libdir
14698
14699 fi
14700
14701 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14702
14703 # This implies no fast_install, which is unacceptable.
14704 # Some rework will be needed to allow for fast_install
14705 # before this can be enabled.
14706 hardcode_into_libs=yes
14707
14708 # Append ld.so.conf contents to the search path
14709 if test -f /etc/ld.so.conf; then
14710 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' ' '`
14711 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14712 fi
14713
14714 # We used to test for /lib/ld.so.1 and disable shared libraries on
14715 # powerpc, because MkLinux only supported shared libraries with the
14716 # GNU dynamic linker. Since this was broken with cross compilers,
14717 # most powerpc-linux boxes support dynamic linking these days and
14718 # people can always --disable-shared, the test was removed, and we
14719 # assume the GNU/Linux dynamic linker is in use.
14720 dynamic_linker='GNU/Linux ld.so'
14721 ;;
14722
14723 netbsd*)
14724 version_type=sunos
14725 need_lib_prefix=no
14726 need_version=no
14727 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14730 dynamic_linker='NetBSD (a.out) ld.so'
14731 else
14732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14733 soname_spec='${libname}${release}${shared_ext}$major'
14734 dynamic_linker='NetBSD ld.elf_so'
14735 fi
14736 shlibpath_var=LD_LIBRARY_PATH
14737 shlibpath_overrides_runpath=yes
14738 hardcode_into_libs=yes
14739 ;;
14740
14741 newsos6)
14742 version_type=linux
14743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14744 shlibpath_var=LD_LIBRARY_PATH
14745 shlibpath_overrides_runpath=yes
14746 ;;
14747
14748 *nto* | *qnx*)
14749 version_type=qnx
14750 need_lib_prefix=no
14751 need_version=no
14752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14753 soname_spec='${libname}${release}${shared_ext}$major'
14754 shlibpath_var=LD_LIBRARY_PATH
14755 shlibpath_overrides_runpath=no
14756 hardcode_into_libs=yes
14757 dynamic_linker='ldqnx.so'
14758 ;;
14759
14760 openbsd*)
14761 version_type=sunos
14762 sys_lib_dlsearch_path_spec="/usr/lib"
14763 need_lib_prefix=no
14764 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14765 case $host_os in
14766 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14767 *) need_version=no ;;
14768 esac
14769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14770 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14771 shlibpath_var=LD_LIBRARY_PATH
14772 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14773 case $host_os in
14774 openbsd2.[89] | openbsd2.[89].*)
14775 shlibpath_overrides_runpath=no
14776 ;;
14777 *)
14778 shlibpath_overrides_runpath=yes
14779 ;;
14780 esac
14781 else
14782 shlibpath_overrides_runpath=yes
14783 fi
14784 ;;
14785
14786 os2*)
14787 libname_spec='$name'
14788 shrext_cmds=".dll"
14789 need_lib_prefix=no
14790 library_names_spec='$libname${shared_ext} $libname.a'
14791 dynamic_linker='OS/2 ld.exe'
14792 shlibpath_var=LIBPATH
14793 ;;
14794
14795 osf3* | osf4* | osf5*)
14796 version_type=osf
14797 need_lib_prefix=no
14798 need_version=no
14799 soname_spec='${libname}${release}${shared_ext}$major'
14800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14801 shlibpath_var=LD_LIBRARY_PATH
14802 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14803 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14804 ;;
14805
14806 rdos*)
14807 dynamic_linker=no
14808 ;;
14809
14810 solaris*)
14811 version_type=linux
14812 need_lib_prefix=no
14813 need_version=no
14814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14815 soname_spec='${libname}${release}${shared_ext}$major'
14816 shlibpath_var=LD_LIBRARY_PATH
14817 shlibpath_overrides_runpath=yes
14818 hardcode_into_libs=yes
14819 # ldd complains unless libraries are executable
14820 postinstall_cmds='chmod +x $lib'
14821 ;;
14822
14823 sunos4*)
14824 version_type=sunos
14825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14826 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14827 shlibpath_var=LD_LIBRARY_PATH
14828 shlibpath_overrides_runpath=yes
14829 if test "$with_gnu_ld" = yes; then
14830 need_lib_prefix=no
14831 fi
14832 need_version=yes
14833 ;;
14834
14835 sysv4 | sysv4.3*)
14836 version_type=linux
14837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14838 soname_spec='${libname}${release}${shared_ext}$major'
14839 shlibpath_var=LD_LIBRARY_PATH
14840 case $host_vendor in
14841 sni)
14842 shlibpath_overrides_runpath=no
14843 need_lib_prefix=no
14844 runpath_var=LD_RUN_PATH
14845 ;;
14846 siemens)
14847 need_lib_prefix=no
14848 ;;
14849 motorola)
14850 need_lib_prefix=no
14851 need_version=no
14852 shlibpath_overrides_runpath=no
14853 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14854 ;;
14855 esac
14856 ;;
14857
14858 sysv4*MP*)
14859 if test -d /usr/nec ;then
14860 version_type=linux
14861 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14862 soname_spec='$libname${shared_ext}.$major'
14863 shlibpath_var=LD_LIBRARY_PATH
14864 fi
14865 ;;
14866
14867 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14868 version_type=freebsd-elf
14869 need_lib_prefix=no
14870 need_version=no
14871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14872 soname_spec='${libname}${release}${shared_ext}$major'
14873 shlibpath_var=LD_LIBRARY_PATH
14874 shlibpath_overrides_runpath=yes
14875 hardcode_into_libs=yes
14876 if test "$with_gnu_ld" = yes; then
14877 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14878 else
14879 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14880 case $host_os in
14881 sco3.2v5*)
14882 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14883 ;;
14884 esac
14885 fi
14886 sys_lib_dlsearch_path_spec='/usr/lib'
14887 ;;
14888
14889 tpf*)
14890 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14891 version_type=linux
14892 need_lib_prefix=no
14893 need_version=no
14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14895 shlibpath_var=LD_LIBRARY_PATH
14896 shlibpath_overrides_runpath=no
14897 hardcode_into_libs=yes
14898 ;;
14899
14900 uts4*)
14901 version_type=linux
14902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14903 soname_spec='${libname}${release}${shared_ext}$major'
14904 shlibpath_var=LD_LIBRARY_PATH
14905 ;;
14906
14907 # Shared libraries for VwWorks, >= 7 only at this stage
14908 # and (fpic) still incompatible with "large" code models
14909 # in a few configurations. Only for RTP mode in any case,
14910 # and upon explicit request at configure time.
14911 vxworks7*)
14912 dynamic_linker=no
14913 case ${with_multisubdir}-${enable_shared} in
14914 *large*)
14915 ;;
14916 *mrtp*-yes)
14917 version_type=linux
14918 need_lib_prefix=no
14919 need_version=no
14920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14921 soname_spec='${libname}${release}${shared_ext}$major'
14922 dynamic_linker="$host_os module_loader"
14923 ;;
14924 esac
14925 ;;
14926 *)
14927 dynamic_linker=no
14928 ;;
14929 esac
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14931 $as_echo "$dynamic_linker" >&6; }
14932 test "$dynamic_linker" = no && can_build_shared=no
14933
14934 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14935 if test "$GCC" = yes; then
14936 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14937 fi
14938
14939 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14940 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14941 fi
14942 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14943 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14944 fi
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14984 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14985 hardcode_action_CXX=
14986 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14987 test -n "$runpath_var_CXX" ||
14988 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14989
14990 # We can hardcode non-existent directories.
14991 if test "$hardcode_direct_CXX" != no &&
14992 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14993 # have to relink, otherwise we might link with an installed library
14994 # when we should be linking with a yet-to-be-installed one
14995 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14996 test "$hardcode_minus_L_CXX" != no; then
14997 # Linking always hardcodes the temporary library directory.
14998 hardcode_action_CXX=relink
14999 else
15000 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15001 hardcode_action_CXX=immediate
15002 fi
15003 else
15004 # We cannot hardcode anything, or else we can only hardcode existing
15005 # directories.
15006 hardcode_action_CXX=unsupported
15007 fi
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15009 $as_echo "$hardcode_action_CXX" >&6; }
15010
15011 if test "$hardcode_action_CXX" = relink ||
15012 test "$inherit_rpath_CXX" = yes; then
15013 # Fast installation is not supported
15014 enable_fast_install=no
15015 elif test "$shlibpath_overrides_runpath" = yes ||
15016 test "$enable_shared" = no; then
15017 # Fast installation is not necessary
15018 enable_fast_install=needless
15019 fi
15020
15021
15022
15023
15024
15025
15026
15027 fi # test -n "$compiler"
15028
15029 CC=$lt_save_CC
15030 LDCXX=$LD
15031 LD=$lt_save_LD
15032 GCC=$lt_save_GCC
15033 with_gnu_ld=$lt_save_with_gnu_ld
15034 lt_cv_path_LDCXX=$lt_cv_path_LD
15035 lt_cv_path_LD=$lt_save_path_LD
15036 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15037 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15038 fi # test "$_lt_caught_CXX_error" != yes
15039
15040 ac_ext=c
15041 ac_cpp='$CPP $CPPFLAGS'
15042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058 ac_config_commands="$ac_config_commands libtool"
15059
15060
15061
15062
15063 # Only expand once:
15064
15065
15066
15067 # The tests for host and target for $enable_largefile require
15068 # canonical names.
15069
15070
15071
15072 # As the $enable_largefile decision depends on --enable-plugins we must set it
15073 # even in directories otherwise not depending on the $plugins option.
15074
15075
15076 maybe_plugins=no
15077 for ac_header in dlfcn.h
15078 do :
15079 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15080 "
15081 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15082 cat >>confdefs.h <<_ACEOF
15083 #define HAVE_DLFCN_H 1
15084 _ACEOF
15085 maybe_plugins=yes
15086 fi
15087
15088 done
15089
15090 for ac_header in windows.h
15091 do :
15092 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15093 "
15094 if test "x$ac_cv_header_windows_h" = xyes; then :
15095 cat >>confdefs.h <<_ACEOF
15096 #define HAVE_WINDOWS_H 1
15097 _ACEOF
15098 maybe_plugins=yes
15099 fi
15100
15101 done
15102
15103
15104 # Check whether --enable-plugins was given.
15105 if test "${enable_plugins+set}" = set; then :
15106 enableval=$enable_plugins; case "${enableval}" in
15107 no) plugins=no ;;
15108 *) plugins=yes
15109 if test "$maybe_plugins" != "yes" ; then
15110 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15111 fi ;;
15112 esac
15113 else
15114 plugins=$maybe_plugins
15115
15116 fi
15117
15118 if test "$plugins" = "yes"; then
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
15120 $as_echo_n "checking for library containing dlsym... " >&6; }
15121 if ${ac_cv_search_dlsym+:} false; then :
15122 $as_echo_n "(cached) " >&6
15123 else
15124 ac_func_search_save_LIBS=$LIBS
15125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15126 /* end confdefs.h. */
15127
15128 /* Override any GCC internal prototype to avoid an error.
15129 Use char because int might match the return type of a GCC
15130 builtin and then its argument prototype would still apply. */
15131 #ifdef __cplusplus
15132 extern "C"
15133 #endif
15134 char dlsym ();
15135 int
15136 main ()
15137 {
15138 return dlsym ();
15139 ;
15140 return 0;
15141 }
15142 _ACEOF
15143 for ac_lib in '' dl; do
15144 if test -z "$ac_lib"; then
15145 ac_res="none required"
15146 else
15147 ac_res=-l$ac_lib
15148 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15149 fi
15150 if ac_fn_c_try_link "$LINENO"; then :
15151 ac_cv_search_dlsym=$ac_res
15152 fi
15153 rm -f core conftest.err conftest.$ac_objext \
15154 conftest$ac_exeext
15155 if ${ac_cv_search_dlsym+:} false; then :
15156 break
15157 fi
15158 done
15159 if ${ac_cv_search_dlsym+:} false; then :
15160
15161 else
15162 ac_cv_search_dlsym=no
15163 fi
15164 rm conftest.$ac_ext
15165 LIBS=$ac_func_search_save_LIBS
15166 fi
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
15168 $as_echo "$ac_cv_search_dlsym" >&6; }
15169 ac_res=$ac_cv_search_dlsym
15170 if test "$ac_res" != no; then :
15171 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15172
15173 fi
15174
15175 fi
15176
15177
15178 case "${host}" in
15179 sparc-*-solaris*|i?86-*-solaris*)
15180 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
15181 # were mutually exclusive until Solaris 11.3. Without procfs support,
15182 # the bfd/ elf module cannot provide certain routines such as
15183 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
15184 # explicitly requested large-file support through the
15185 # --enable-largefile switch, disable large-file support in favor of
15186 # procfs support.
15187 #
15188 # Check if <sys/procfs.h> is incompatible with large-file support.
15189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15190 /* end confdefs.h. */
15191 #define _FILE_OFFSET_BITS 64
15192 #define _STRUCTURED_PROC 1
15193 #include <sys/procfs.h>
15194 int
15195 main ()
15196 {
15197
15198 ;
15199 return 0;
15200 }
15201 _ACEOF
15202 if ac_fn_c_try_compile "$LINENO"; then :
15203 acx_cv_procfs_lfs=yes
15204 else
15205 acx_cv_procfs_lfs=no
15206 fi
15207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15208 #
15209 # Forcefully disable large-file support only if necessary, gdb is in
15210 # tree and enabled.
15211 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
15212 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
15213 : ${enable_largefile="no"}
15214 if test "$plugins" = yes; then
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15216 plugin support disabled; require large-file support which is incompatible with GDB." >&5
15217 $as_echo "$as_me: WARNING:
15218 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
15219 plugins=no
15220 fi
15221 fi
15222 #
15223 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
15224 # benefit of g++ 9+ which predefines it on Solaris.
15225 if test "$enable_largefile" = no; then
15226 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
15227
15228 fi
15229 ;;
15230 esac
15231
15232 # Check whether --enable-largefile was given.
15233 if test "${enable_largefile+set}" = set; then :
15234 enableval=$enable_largefile;
15235 fi
15236
15237 if test "$enable_largefile" != no; then
15238
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15240 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15241 if ${ac_cv_sys_largefile_CC+:} false; then :
15242 $as_echo_n "(cached) " >&6
15243 else
15244 ac_cv_sys_largefile_CC=no
15245 if test "$GCC" != yes; then
15246 ac_save_CC=$CC
15247 while :; do
15248 # IRIX 6.2 and later do not support large files by default,
15249 # so use the C compiler's -n32 option if that helps.
15250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15251 /* end confdefs.h. */
15252 #include <sys/types.h>
15253 /* Check that off_t can represent 2**63 - 1 correctly.
15254 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15255 since some C++ compilers masquerading as C compilers
15256 incorrectly reject 9223372036854775807. */
15257 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15258 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15259 && LARGE_OFF_T % 2147483647 == 1)
15260 ? 1 : -1];
15261 int
15262 main ()
15263 {
15264
15265 ;
15266 return 0;
15267 }
15268 _ACEOF
15269 if ac_fn_c_try_compile "$LINENO"; then :
15270 break
15271 fi
15272 rm -f core conftest.err conftest.$ac_objext
15273 CC="$CC -n32"
15274 if ac_fn_c_try_compile "$LINENO"; then :
15275 ac_cv_sys_largefile_CC=' -n32'; break
15276 fi
15277 rm -f core conftest.err conftest.$ac_objext
15278 break
15279 done
15280 CC=$ac_save_CC
15281 rm -f conftest.$ac_ext
15282 fi
15283 fi
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15285 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15286 if test "$ac_cv_sys_largefile_CC" != no; then
15287 CC=$CC$ac_cv_sys_largefile_CC
15288 fi
15289
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15291 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15292 if ${ac_cv_sys_file_offset_bits+:} false; then :
15293 $as_echo_n "(cached) " >&6
15294 else
15295 while :; do
15296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15297 /* end confdefs.h. */
15298 #include <sys/types.h>
15299 /* Check that off_t can represent 2**63 - 1 correctly.
15300 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15301 since some C++ compilers masquerading as C compilers
15302 incorrectly reject 9223372036854775807. */
15303 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15304 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15305 && LARGE_OFF_T % 2147483647 == 1)
15306 ? 1 : -1];
15307 int
15308 main ()
15309 {
15310
15311 ;
15312 return 0;
15313 }
15314 _ACEOF
15315 if ac_fn_c_try_compile "$LINENO"; then :
15316 ac_cv_sys_file_offset_bits=no; break
15317 fi
15318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320 /* end confdefs.h. */
15321 #define _FILE_OFFSET_BITS 64
15322 #include <sys/types.h>
15323 /* Check that off_t can represent 2**63 - 1 correctly.
15324 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15325 since some C++ compilers masquerading as C compilers
15326 incorrectly reject 9223372036854775807. */
15327 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15328 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15329 && LARGE_OFF_T % 2147483647 == 1)
15330 ? 1 : -1];
15331 int
15332 main ()
15333 {
15334
15335 ;
15336 return 0;
15337 }
15338 _ACEOF
15339 if ac_fn_c_try_compile "$LINENO"; then :
15340 ac_cv_sys_file_offset_bits=64; break
15341 fi
15342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15343 ac_cv_sys_file_offset_bits=unknown
15344 break
15345 done
15346 fi
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15348 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15349 case $ac_cv_sys_file_offset_bits in #(
15350 no | unknown) ;;
15351 *)
15352 cat >>confdefs.h <<_ACEOF
15353 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15354 _ACEOF
15355 ;;
15356 esac
15357 rm -rf conftest*
15358 if test $ac_cv_sys_file_offset_bits = unknown; then
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15360 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15361 if ${ac_cv_sys_large_files+:} false; then :
15362 $as_echo_n "(cached) " >&6
15363 else
15364 while :; do
15365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15366 /* end confdefs.h. */
15367 #include <sys/types.h>
15368 /* Check that off_t can represent 2**63 - 1 correctly.
15369 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15370 since some C++ compilers masquerading as C compilers
15371 incorrectly reject 9223372036854775807. */
15372 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15373 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15374 && LARGE_OFF_T % 2147483647 == 1)
15375 ? 1 : -1];
15376 int
15377 main ()
15378 {
15379
15380 ;
15381 return 0;
15382 }
15383 _ACEOF
15384 if ac_fn_c_try_compile "$LINENO"; then :
15385 ac_cv_sys_large_files=no; break
15386 fi
15387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15389 /* end confdefs.h. */
15390 #define _LARGE_FILES 1
15391 #include <sys/types.h>
15392 /* Check that off_t can represent 2**63 - 1 correctly.
15393 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15394 since some C++ compilers masquerading as C compilers
15395 incorrectly reject 9223372036854775807. */
15396 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15397 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15398 && LARGE_OFF_T % 2147483647 == 1)
15399 ? 1 : -1];
15400 int
15401 main ()
15402 {
15403
15404 ;
15405 return 0;
15406 }
15407 _ACEOF
15408 if ac_fn_c_try_compile "$LINENO"; then :
15409 ac_cv_sys_large_files=1; break
15410 fi
15411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15412 ac_cv_sys_large_files=unknown
15413 break
15414 done
15415 fi
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15417 $as_echo "$ac_cv_sys_large_files" >&6; }
15418 case $ac_cv_sys_large_files in #(
15419 no | unknown) ;;
15420 *)
15421 cat >>confdefs.h <<_ACEOF
15422 #define _LARGE_FILES $ac_cv_sys_large_files
15423 _ACEOF
15424 ;;
15425 esac
15426 rm -rf conftest*
15427 fi
15428
15429
15430 fi
15431
15432
15433
15434 ac_checking=
15435 . ${srcdir}/../bfd/development.sh
15436 test "$development" = true && ac_checking=yes
15437 # Check whether --enable-checking was given.
15438 if test "${enable_checking+set}" = set; then :
15439 enableval=$enable_checking; case "${enableval}" in
15440 no|none) ac_checking= ;;
15441 *) ac_checking=yes ;;
15442 esac
15443 fi
15444 if test x$ac_checking != x ; then
15445
15446 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
15447
15448 fi
15449
15450
15451 # Check whether --with-lib-path was given.
15452 if test "${with_lib_path+set}" = set; then :
15453 withval=$with_lib_path; LIB_PATH=$withval
15454 fi
15455
15456 # Check whether --enable-targets was given.
15457 if test "${enable_targets+set}" = set; then :
15458 enableval=$enable_targets; case "${enableval}" in
15459 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
15460 ;;
15461 no) enable_targets= ;;
15462 *) enable_targets=$enableval ;;
15463 esac
15464 fi
15465
15466 # Check whether --enable-64-bit-bfd was given.
15467 if test "${enable_64_bit_bfd+set}" = set; then :
15468 enableval=$enable_64_bit_bfd; case $enableval in #(
15469 yes|no) :
15470 ;; #(
15471 *) :
15472 as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
15473 *) :
15474 ;;
15475 esac
15476 else
15477 enable_64_bit_bfd=no
15478 fi
15479
15480
15481 if test "x$enable_64_bit_bfd" = "xno"; then :
15482 # The cast to long int works around a bug in the HP C Compiler
15483 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15484 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15485 # This bug is HP SR number 8606223364.
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15487 $as_echo_n "checking size of void *... " >&6; }
15488 if ${ac_cv_sizeof_void_p+:} false; then :
15489 $as_echo_n "(cached) " >&6
15490 else
15491 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15492
15493 else
15494 if test "$ac_cv_type_void_p" = yes; then
15495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15497 as_fn_error 77 "cannot compute sizeof (void *)
15498 See \`config.log' for more details" "$LINENO" 5; }
15499 else
15500 ac_cv_sizeof_void_p=0
15501 fi
15502 fi
15503
15504 fi
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15506 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15507
15508
15509
15510 cat >>confdefs.h <<_ACEOF
15511 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15512 _ACEOF
15513
15514
15515 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
15516 enable_64_bit_bfd=yes
15517 fi
15518
15519 fi
15520
15521 if test "x$enable_64_bit_bfd" = "xyes"; then
15522 ENABLE_BFD_64_BIT_TRUE=
15523 ENABLE_BFD_64_BIT_FALSE='#'
15524 else
15525 ENABLE_BFD_64_BIT_TRUE='#'
15526 ENABLE_BFD_64_BIT_FALSE=
15527 fi
15528
15529
15530
15531
15532 # Check whether --with-sysroot was given.
15533 if test "${with_sysroot+set}" = set; then :
15534 withval=$with_sysroot;
15535 case ${with_sysroot} in
15536 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15537 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15538 esac
15539
15540 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15541 use_sysroot=yes
15542
15543 if test "x$prefix" = xNONE; then
15544 test_prefix=/usr/local
15545 else
15546 test_prefix=$prefix
15547 fi
15548 if test "x$exec_prefix" = xNONE; then
15549 test_exec_prefix=$test_prefix
15550 else
15551 test_exec_prefix=$exec_prefix
15552 fi
15553 case ${TARGET_SYSTEM_ROOT} in
15554 "${test_prefix}"|"${test_prefix}/"*|\
15555 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15556 '${prefix}'|'${prefix}/'*|\
15557 '${exec_prefix}'|'${exec_prefix}/'*)
15558 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15559 TARGET_SYSTEM_ROOT_DEFINE="$t"
15560 ;;
15561 esac
15562
15563 else
15564
15565 use_sysroot=no
15566 TARGET_SYSTEM_ROOT=
15567 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15568
15569 fi
15570
15571
15572
15573
15574
15575 # Check whether --enable-gold was given.
15576 if test "${enable_gold+set}" = set; then :
15577 enableval=$enable_gold; case "${enableval}" in
15578 default)
15579 install_as_default=no
15580 installed_linker=ld.bfd
15581 ;;
15582 yes|no)
15583 install_as_default=yes
15584 installed_linker=ld.bfd
15585 ;;
15586 *)
15587 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
15588 ;;
15589 esac
15590 else
15591 install_as_default=yes
15592 installed_linker=ld.bfd
15593 fi
15594
15595
15596
15597
15598 # Check whether --enable-got was given.
15599 if test "${enable_got+set}" = set; then :
15600 enableval=$enable_got; case "${enableval}" in
15601 target | single | negative | multigot) got_handling=$enableval ;;
15602 *) as_fn_error $? "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15603 esac
15604 else
15605 got_handling=target
15606 fi
15607
15608
15609 case "${got_handling}" in
15610 target)
15611
15612 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15613 ;;
15614 single)
15615
15616 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15617 ;;
15618 negative)
15619
15620 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15621 ;;
15622 multigot)
15623
15624 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15625 ;;
15626 *) as_fn_error $? "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15627 esac
15628
15629 # PR gas/19109
15630 # Decide the default method for compressing debug sections.
15631 ac_default_compressed_debug_sections=unset
15632 # Provide a configure time option to override our default.
15633 # Check whether --enable-compressed_debug_sections was given.
15634 if test "${enable_compressed_debug_sections+set}" = set; then :
15635 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
15636 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
15637 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
15638 esac
15639 fi
15640
15641 # Select default compression algorithm.
15642 ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_GABI_ZLIB
15643 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
15644 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
15645 enableval=$enable_default_compressed_debug_sections_algorithm; case "${enableval}" in
15646 zstd) ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_ZSTD ;;
15647 esac
15648 fi
15649
15650 # Decide setting DT_RUNPATH instead of DT_RPATH by default
15651 ac_default_new_dtags=unset
15652 # Provide a configure time option to override our default.
15653 # Check whether --enable-new_dtags was given.
15654 if test "${enable_new_dtags+set}" = set; then :
15655 enableval=$enable_new_dtags; case "${enableval}" in
15656 yes) ac_default_new_dtags=1 ;;
15657 no) ac_default_new_dtags=0 ;;
15658 esac
15659 fi
15660
15661 # Decide if -z relro should be enabled in ELF linker by default.
15662 ac_default_ld_z_relro=unset
15663 # Provide a configure time option to override our default.
15664 # Check whether --enable-relro was given.
15665 if test "${enable_relro+set}" = set; then :
15666 enableval=$enable_relro; case "${enableval}" in
15667 yes) ac_default_ld_z_relro=1 ;;
15668 no) ac_default_ld_z_relro=0 ;;
15669 esac
15670 fi
15671
15672 # Decide if DT_TEXTREL check should be enabled in ELF linker.
15673 ac_default_ld_textrel_check=unset
15674 # Check whether --enable-textrel-check was given.
15675 if test "${enable_textrel_check+set}" = set; then :
15676 enableval=$enable_textrel_check; case "${enableval}" in
15677 yes|no|warning|error) ac_default_ld_textrel_check=${enableval} ;;
15678 esac
15679 fi
15680
15681
15682 # Decide if -z separate-code should be enabled in ELF linker by default.
15683 ac_default_ld_z_separate_code=unset
15684 # Check whether --enable-separate-code was given.
15685 if test "${enable_separate_code+set}" = set; then :
15686 enableval=$enable_separate_code; case "${enableval}" in
15687 yes) ac_default_ld_z_separate_code=1 ;;
15688 no) ac_default_ld_z_separate_code=0 ;;
15689 esac
15690 fi
15691
15692
15693 # Decide if --rosegment should be enabled in the ELF linker by default.
15694 ac_default_ld_rosegment=unset
15695 # Check whether --enable-rosegment was given.
15696 if test "${enable_rosegment+set}" = set; then :
15697 enableval=$enable_rosegment; case "${enableval}" in
15698 yes) ac_default_ld_rosegment=1 ;;
15699 no) ac_default_ld_rosegment=0 ;;
15700 esac
15701 fi
15702
15703
15704 # Decide if -z mark-plt should be enabled in ELF x86-64 linker by default.
15705 ac_default_ld_z_mark_plt=unset
15706 # Check whether --enable-mark-plt was given.
15707 if test "${enable_mark_plt+set}" = set; then :
15708 enableval=$enable_mark_plt; case "${enableval}" in
15709 yes) ac_default_ld_z_mark_plt=1 ;;
15710 no) ac_default_ld_z_mark_plt=0 ;;
15711 esac
15712 fi
15713
15714
15715 # Decide if -z memory-seal should be enabled in ELF linker by default.
15716 ac_default_ld_z_memory_seal=unset
15717 # Check whether --enable-memory-seal was given.
15718 if test "${enable_memory_seal+set}" = set; then :
15719 enableval=$enable_memory_seal; case "${enableval}" in
15720 yes) ac_default_ld_z_memory_seal=1 ;;
15721 no) ac_default_ld_z_memory_seal=0 ;;
15722 esac
15723 fi
15724
15725
15726
15727 # By default warn when an executable stack is created due to object files
15728 # requesting such, not when the user specifies -z execstack.
15729 ac_default_ld_warn_execstack=2
15730 # Check whether --enable-warn-execstack was given.
15731 if test "${enable_warn_execstack+set}" = set; then :
15732 enableval=$enable_warn_execstack; case "${enableval}" in
15733 yes) ac_default_ld_warn_execstack=1 ;;
15734 no) ac_default_ld_warn_execstack=0 ;;
15735 esac
15736 fi
15737
15738
15739 ac_default_ld_error_execstack=0
15740 # Check whether --enable-error-execstack was given.
15741 if test "${enable_error_execstack+set}" = set; then :
15742 enableval=$enable_error_execstack; case "${enableval}" in
15743 yes) ac_default_ld_error_execstack=1 ;;
15744 no) ac_default_ld_error_execstack=0 ;;
15745 esac
15746 fi
15747
15748
15749 ac_default_ld_warn_rwx_segments=unset
15750 # Check whether --enable-warn-rwx-segments was given.
15751 if test "${enable_warn_rwx_segments+set}" = set; then :
15752 enableval=$enable_warn_rwx_segments; case "${enableval}" in
15753 yes) ac_default_ld_warn_rwx_segments=1 ;;
15754 no) ac_default_ld_warn_rwx_segments=0 ;;
15755 esac
15756 fi
15757
15758
15759 ac_default_ld_error_rwx_segments=0
15760 # Check whether --enable-error-rwx-segments was given.
15761 if test "${enable_error_rwx_segments+set}" = set; then :
15762 enableval=$enable_error_rwx_segments; case "${enableval}" in
15763 yes) ac_default_ld_error_rwx_segments=1 ;;
15764 no) ac_default_ld_error_rwx_segments=0 ;;
15765 esac
15766 fi
15767
15768
15769 ac_default_ld_default_execstack=unset
15770 # Check whether --enable-default-execstack was given.
15771 if test "${enable_default_execstack+set}" = set; then :
15772 enableval=$enable_default_execstack; case "${enableval}" in
15773 yes) ac_default_ld_default_execstack=1 ;;
15774 no) ac_default_ld_default_execstack=0 ;;
15775 esac
15776 fi
15777
15778
15779
15780 # Decide if --error-handling-script should be supported.
15781 ac_support_error_handling_script=unset
15782 # Check whether --enable-error-handling-script was given.
15783 if test "${enable_error_handling_script+set}" = set; then :
15784 enableval=$enable_error_handling_script; case "${enableval}" in
15785 yes) ac_support_error_handling_script=1 ;;
15786 no) ac_support_error_handling_script=0 ;;
15787 esac
15788 fi
15789
15790
15791 # Decide which "--hash-style" to use by default
15792 # Provide a configure time option to override our default.
15793 # Check whether --enable-default-hash-style was given.
15794 if test "${enable_default_hash_style+set}" = set; then :
15795 enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
15796 sysv | gnu | both) ;;
15797 *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
15798 esac
15799 else
15800 case "${target}" in
15801 # Enable gnu hash only on GNU targets, but not mips
15802 mips*-*-*) enable_default_hash_style=sysv ;;
15803 *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
15804 *) enable_default_hash_style=sysv ;;
15805 esac
15806 fi
15807
15808
15809 case "${enable_default_hash_style}" in
15810 sysv | both) ac_default_emit_sysv_hash=1 ;;
15811 *) ac_default_emit_sysv_hash=0 ;;
15812 esac
15813
15814 case "${enable_default_hash_style}" in
15815 gnu | both) ac_default_emit_gnu_hash=1 ;;
15816 *) ac_default_emit_gnu_hash=0 ;;
15817 esac
15818
15819 # Check whether --enable-initfini-array was given.
15820 if test "${enable_initfini_array+set}" = set; then :
15821 enableval=$enable_initfini_array; case "${enableval}" in
15822 yes|no) ;;
15823 *) as_fn_error $? "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
15824 esac
15825 else
15826 enable_initfini_array=yes
15827 fi
15828
15829
15830 if test $enable_initfini_array = yes; then
15831
15832 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
15833
15834 fi
15835
15836 # Check whether --enable-libctf was given.
15837 if test "${enable_libctf+set}" = set; then :
15838 enableval=$enable_libctf;
15839 case "$enableval" in
15840 yes|no) ;;
15841 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
15842 esac
15843
15844 else
15845 enable_libctf=yes
15846 fi
15847
15848
15849 if test "${enable_libctf}" = yes; then
15850
15851 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
15852
15853 fi
15854 if test "${enable_libctf}" = yes; then
15855 ENABLE_LIBCTF_TRUE=
15856 ENABLE_LIBCTF_FALSE='#'
15857 else
15858 ENABLE_LIBCTF_TRUE='#'
15859 ENABLE_LIBCTF_FALSE=
15860 fi
15861
15862
15863
15864 # Used to validate --package-metadata= input. Disabled by default.
15865 # Check whether --enable-jansson was given.
15866 if test "${enable_jansson+set}" = set; then :
15867 enableval=$enable_jansson; enable_jansson=$enableval
15868 else
15869 enable_jansson="no"
15870 fi
15871
15872
15873 if test "x$enable_jansson" != "xno"; then :
15874
15875 pkg_failed=no
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
15877 $as_echo_n "checking for jansson... " >&6; }
15878
15879 if test -n "$JANSSON_CFLAGS"; then
15880 pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
15881 elif test -n "$PKG_CONFIG"; then
15882 if test -n "$PKG_CONFIG" && \
15883 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15884 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15885 ac_status=$?
15886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15887 test $ac_status = 0; }; then
15888 pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson" 2>/dev/null`
15889 test "x$?" != "x0" && pkg_failed=yes
15890 else
15891 pkg_failed=yes
15892 fi
15893 else
15894 pkg_failed=untried
15895 fi
15896 if test -n "$JANSSON_LIBS"; then
15897 pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
15898 elif test -n "$PKG_CONFIG"; then
15899 if test -n "$PKG_CONFIG" && \
15900 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15901 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15902 ac_status=$?
15903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15904 test $ac_status = 0; }; then
15905 pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson" 2>/dev/null`
15906 test "x$?" != "x0" && pkg_failed=yes
15907 else
15908 pkg_failed=yes
15909 fi
15910 else
15911 pkg_failed=untried
15912 fi
15913
15914 if test $pkg_failed = no; then
15915 pkg_save_LDFLAGS="$LDFLAGS"
15916 LDFLAGS="$LDFLAGS $pkg_cv_JANSSON_LIBS"
15917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918 /* end confdefs.h. */
15919
15920 int
15921 main ()
15922 {
15923
15924 ;
15925 return 0;
15926 }
15927 _ACEOF
15928 if ac_fn_c_try_link "$LINENO"; then :
15929
15930 else
15931 pkg_failed=yes
15932 fi
15933 rm -f core conftest.err conftest.$ac_objext \
15934 conftest$ac_exeext conftest.$ac_ext
15935 LDFLAGS=$pkg_save_LDFLAGS
15936 fi
15937
15938
15939
15940 if test $pkg_failed = yes; then
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15942 $as_echo "no" >&6; }
15943
15944 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15945 _pkg_short_errors_supported=yes
15946 else
15947 _pkg_short_errors_supported=no
15948 fi
15949 if test $_pkg_short_errors_supported = yes; then
15950 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1`
15951 else
15952 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1`
15953 fi
15954 # Put the nasty error message in config.log where it belongs
15955 echo "$JANSSON_PKG_ERRORS" >&5
15956
15957 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
15958 elif test $pkg_failed = untried; then
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15960 $as_echo "no" >&6; }
15961 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
15962 else
15963 JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
15964 JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15966 $as_echo "yes" >&6; }
15967
15968
15969 $as_echo "#define HAVE_JANSSON 1" >>confdefs.h
15970
15971
15972
15973
15974 fi
15975
15976 fi
15977
15978
15979 # Set the 'development' global.
15980 . $srcdir/../bfd/development.sh
15981
15982 # Set acp_cpp_for_build variable
15983 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
15984
15985 # Default set of GCC warnings to enable.
15986 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15987 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15988
15989 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15991 /* end confdefs.h. */
15992 __GNUC__
15993 _ACEOF
15994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15995 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
15996
15997 else
15998 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
15999 fi
16000 rm -f conftest*
16001
16002
16003 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
16004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16005 /* end confdefs.h. */
16006 __GNUC__
16007 _ACEOF
16008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16009 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
16010
16011 else
16012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16013 /* end confdefs.h. */
16014 __clang__
16015 _ACEOF
16016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16017 $EGREP "^__clang__$" >/dev/null 2>&1; then :
16018 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
16019 fi
16020 rm -f conftest*
16021
16022 fi
16023 rm -f conftest*
16024
16025
16026 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
16027 WARN_WRITE_STRINGS=""
16028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16029 /* end confdefs.h. */
16030 __GNUC__
16031 _ACEOF
16032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16033 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
16034
16035 else
16036 WARN_WRITE_STRINGS="-Wwrite-strings"
16037 fi
16038 rm -f conftest*
16039
16040
16041 # Verify CC_FOR_BUILD to be compatible with warning flags
16042
16043 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
16044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16045 /* end confdefs.h. */
16046 __GNUC__
16047 _ACEOF
16048 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
16049 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
16050
16051 else
16052 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
16053 fi
16054 rm -f conftest*
16055
16056
16057 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
16058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059 /* end confdefs.h. */
16060 __GNUC__
16061 _ACEOF
16062 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
16063 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
16064
16065 else
16066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16067 /* end confdefs.h. */
16068 __clang__
16069 _ACEOF
16070 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
16071 $EGREP "^__clang__$" >/dev/null 2>&1; then :
16072 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
16073 fi
16074 rm -f conftest*
16075
16076 fi
16077 rm -f conftest*
16078
16079
16080 # Check whether --enable-werror was given.
16081 if test "${enable_werror+set}" = set; then :
16082 enableval=$enable_werror; case "${enableval}" in
16083 yes | y) ERROR_ON_WARNING="yes" ;;
16084 no | n) ERROR_ON_WARNING="no" ;;
16085 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16086 esac
16087 fi
16088
16089
16090 # Disable -Wformat by default when using gcc on mingw
16091 case "${host}" in
16092 *-*-mingw32*)
16093 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
16094 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
16095 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
16096 fi
16097 ;;
16098 *) ;;
16099 esac
16100
16101 # Enable -Werror by default when using gcc. Turn it off for releases.
16102 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
16103 ERROR_ON_WARNING=yes
16104 fi
16105
16106 NO_WERROR=
16107 if test "${ERROR_ON_WARNING}" = yes ; then
16108 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
16109 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
16110 NO_WERROR="-Wno-error"
16111 fi
16112
16113 if test "${GCC}" = yes ; then
16114 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
16115 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
16116 fi
16117
16118 # Check whether --enable-build-warnings was given.
16119 if test "${enable_build_warnings+set}" = set; then :
16120 enableval=$enable_build_warnings; case "${enableval}" in
16121 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
16122 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
16123 no) if test "${GCC}" = yes ; then
16124 WARN_CFLAGS="-w"
16125 WARN_CFLAGS_FOR_BUILD="-w"
16126 fi;;
16127 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16128 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
16129 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
16130 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16131 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
16132 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
16133 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
16134 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16135 esac
16136 fi
16137
16138
16139 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
16140 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
16141 fi
16142
16143
16144
16145
16146
16147
16148
16149
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
16151 $as_echo_n "checking for LC_MESSAGES... " >&6; }
16152 if ${am_cv_val_LC_MESSAGES+:} false; then :
16153 $as_echo_n "(cached) " >&6
16154 else
16155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16156 /* end confdefs.h. */
16157 #include <locale.h>
16158 int
16159 main ()
16160 {
16161 return LC_MESSAGES
16162 ;
16163 return 0;
16164 }
16165 _ACEOF
16166 if ac_fn_c_try_link "$LINENO"; then :
16167 am_cv_val_LC_MESSAGES=yes
16168 else
16169 am_cv_val_LC_MESSAGES=no
16170 fi
16171 rm -f core conftest.err conftest.$ac_objext \
16172 conftest$ac_exeext conftest.$ac_ext
16173 fi
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
16175 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
16176 if test $am_cv_val_LC_MESSAGES = yes; then
16177
16178 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
16179
16180 fi
16181
16182
16183 ac_config_headers="$ac_config_headers config.h:config.in"
16184
16185
16186 # PR 14072
16187
16188
16189 if test -z "$target" ; then
16190 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
16191 fi
16192 if test -z "$host" ; then
16193 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
16194 fi
16195
16196 # host-specific stuff:
16197
16198 ALL_LINGUAS="bg da de es fi fr ga id it ja pt_BR ru sr sv tr uk vi zh_CN zh_TW"
16199
16200 MKINSTALLDIRS=
16201 if test -n "$ac_aux_dir"; then
16202 case "$ac_aux_dir" in
16203 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16204 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16205 esac
16206 fi
16207 if test -z "$MKINSTALLDIRS"; then
16208 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16209 fi
16210
16211
16212
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16214 $as_echo_n "checking whether NLS is requested... " >&6; }
16215 # Check whether --enable-nls was given.
16216 if test "${enable_nls+set}" = set; then :
16217 enableval=$enable_nls; USE_NLS=$enableval
16218 else
16219 USE_NLS=yes
16220 fi
16221
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16223 $as_echo "$USE_NLS" >&6; }
16224
16225
16226
16227
16228
16229
16230 # Prepare PATH_SEPARATOR.
16231 # The user is always right.
16232 if test "${PATH_SEPARATOR+set}" != set; then
16233 echo "#! /bin/sh" >conf$$.sh
16234 echo "exit 0" >>conf$$.sh
16235 chmod +x conf$$.sh
16236 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16237 PATH_SEPARATOR=';'
16238 else
16239 PATH_SEPARATOR=:
16240 fi
16241 rm -f conf$$.sh
16242 fi
16243
16244 # Find out how to test for executable files. Don't use a zero-byte file,
16245 # as systems may use methods other than mode bits to determine executability.
16246 cat >conf$$.file <<_ASEOF
16247 #! /bin/sh
16248 exit 0
16249 _ASEOF
16250 chmod +x conf$$.file
16251 if test -x conf$$.file >/dev/null 2>&1; then
16252 ac_executable_p="test -x"
16253 else
16254 ac_executable_p="test -f"
16255 fi
16256 rm -f conf$$.file
16257
16258 # Extract the first word of "msgfmt", so it can be a program name with args.
16259 set dummy msgfmt; ac_word=$2
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16261 $as_echo_n "checking for $ac_word... " >&6; }
16262 if ${ac_cv_path_MSGFMT+:} false; then :
16263 $as_echo_n "(cached) " >&6
16264 else
16265 case "$MSGFMT" in
16266 [\\/]* | ?:[\\/]*)
16267 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16268 ;;
16269 *)
16270 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16271 for ac_dir in $PATH; do
16272 IFS="$ac_save_IFS"
16273 test -z "$ac_dir" && ac_dir=.
16274 for ac_exec_ext in '' $ac_executable_extensions; do
16275 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16276 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
16277 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16278 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16279 break 2
16280 fi
16281 fi
16282 done
16283 done
16284 IFS="$ac_save_IFS"
16285 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16286 ;;
16287 esac
16288 fi
16289 MSGFMT="$ac_cv_path_MSGFMT"
16290 if test "$MSGFMT" != ":"; then
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16292 $as_echo "$MSGFMT" >&6; }
16293 else
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16295 $as_echo "no" >&6; }
16296 fi
16297
16298 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16299 set dummy gmsgfmt; ac_word=$2
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16301 $as_echo_n "checking for $ac_word... " >&6; }
16302 if ${ac_cv_path_GMSGFMT+:} false; then :
16303 $as_echo_n "(cached) " >&6
16304 else
16305 case $GMSGFMT in
16306 [\\/]* | ?:[\\/]*)
16307 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16308 ;;
16309 *)
16310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16311 for as_dir in $PATH
16312 do
16313 IFS=$as_save_IFS
16314 test -z "$as_dir" && as_dir=.
16315 for ac_exec_ext in '' $ac_executable_extensions; do
16316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16317 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16319 break 2
16320 fi
16321 done
16322 done
16323 IFS=$as_save_IFS
16324
16325 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16326 ;;
16327 esac
16328 fi
16329 GMSGFMT=$ac_cv_path_GMSGFMT
16330 if test -n "$GMSGFMT"; then
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16332 $as_echo "$GMSGFMT" >&6; }
16333 else
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16335 $as_echo "no" >&6; }
16336 fi
16337
16338
16339
16340
16341 # Prepare PATH_SEPARATOR.
16342 # The user is always right.
16343 if test "${PATH_SEPARATOR+set}" != set; then
16344 echo "#! /bin/sh" >conf$$.sh
16345 echo "exit 0" >>conf$$.sh
16346 chmod +x conf$$.sh
16347 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16348 PATH_SEPARATOR=';'
16349 else
16350 PATH_SEPARATOR=:
16351 fi
16352 rm -f conf$$.sh
16353 fi
16354
16355 # Find out how to test for executable files. Don't use a zero-byte file,
16356 # as systems may use methods other than mode bits to determine executability.
16357 cat >conf$$.file <<_ASEOF
16358 #! /bin/sh
16359 exit 0
16360 _ASEOF
16361 chmod +x conf$$.file
16362 if test -x conf$$.file >/dev/null 2>&1; then
16363 ac_executable_p="test -x"
16364 else
16365 ac_executable_p="test -f"
16366 fi
16367 rm -f conf$$.file
16368
16369 # Extract the first word of "xgettext", so it can be a program name with args.
16370 set dummy xgettext; ac_word=$2
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16372 $as_echo_n "checking for $ac_word... " >&6; }
16373 if ${ac_cv_path_XGETTEXT+:} false; then :
16374 $as_echo_n "(cached) " >&6
16375 else
16376 case "$XGETTEXT" in
16377 [\\/]* | ?:[\\/]*)
16378 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16379 ;;
16380 *)
16381 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16382 for ac_dir in $PATH; do
16383 IFS="$ac_save_IFS"
16384 test -z "$ac_dir" && ac_dir=.
16385 for ac_exec_ext in '' $ac_executable_extensions; do
16386 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16387 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16388 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16389 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16390 break 2
16391 fi
16392 fi
16393 done
16394 done
16395 IFS="$ac_save_IFS"
16396 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16397 ;;
16398 esac
16399 fi
16400 XGETTEXT="$ac_cv_path_XGETTEXT"
16401 if test "$XGETTEXT" != ":"; then
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16403 $as_echo "$XGETTEXT" >&6; }
16404 else
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16406 $as_echo "no" >&6; }
16407 fi
16408
16409 rm -f messages.po
16410
16411
16412 # Prepare PATH_SEPARATOR.
16413 # The user is always right.
16414 if test "${PATH_SEPARATOR+set}" != set; then
16415 echo "#! /bin/sh" >conf$$.sh
16416 echo "exit 0" >>conf$$.sh
16417 chmod +x conf$$.sh
16418 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16419 PATH_SEPARATOR=';'
16420 else
16421 PATH_SEPARATOR=:
16422 fi
16423 rm -f conf$$.sh
16424 fi
16425
16426 # Find out how to test for executable files. Don't use a zero-byte file,
16427 # as systems may use methods other than mode bits to determine executability.
16428 cat >conf$$.file <<_ASEOF
16429 #! /bin/sh
16430 exit 0
16431 _ASEOF
16432 chmod +x conf$$.file
16433 if test -x conf$$.file >/dev/null 2>&1; then
16434 ac_executable_p="test -x"
16435 else
16436 ac_executable_p="test -f"
16437 fi
16438 rm -f conf$$.file
16439
16440 # Extract the first word of "msgmerge", so it can be a program name with args.
16441 set dummy msgmerge; ac_word=$2
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16443 $as_echo_n "checking for $ac_word... " >&6; }
16444 if ${ac_cv_path_MSGMERGE+:} false; then :
16445 $as_echo_n "(cached) " >&6
16446 else
16447 case "$MSGMERGE" in
16448 [\\/]* | ?:[\\/]*)
16449 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16450 ;;
16451 *)
16452 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16453 for ac_dir in $PATH; do
16454 IFS="$ac_save_IFS"
16455 test -z "$ac_dir" && ac_dir=.
16456 for ac_exec_ext in '' $ac_executable_extensions; do
16457 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16458 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16459 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16460 break 2
16461 fi
16462 fi
16463 done
16464 done
16465 IFS="$ac_save_IFS"
16466 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16467 ;;
16468 esac
16469 fi
16470 MSGMERGE="$ac_cv_path_MSGMERGE"
16471 if test "$MSGMERGE" != ":"; then
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16473 $as_echo "$MSGMERGE" >&6; }
16474 else
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16476 $as_echo "no" >&6; }
16477 fi
16478
16479
16480 if test "$GMSGFMT" != ":"; then
16481 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16482 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16483 : ;
16484 else
16485 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16487 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16488 GMSGFMT=":"
16489 fi
16490 fi
16491
16492 if test "$XGETTEXT" != ":"; then
16493 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16494 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16495 : ;
16496 else
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16498 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16499 XGETTEXT=":"
16500 fi
16501 rm -f messages.po
16502 fi
16503
16504 ac_config_commands="$ac_config_commands default-1"
16505
16506
16507
16508 if test "X$prefix" = "XNONE"; then
16509 acl_final_prefix="$ac_default_prefix"
16510 else
16511 acl_final_prefix="$prefix"
16512 fi
16513 if test "X$exec_prefix" = "XNONE"; then
16514 acl_final_exec_prefix='${prefix}'
16515 else
16516 acl_final_exec_prefix="$exec_prefix"
16517 fi
16518 acl_save_prefix="$prefix"
16519 prefix="$acl_final_prefix"
16520 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16521 prefix="$acl_save_prefix"
16522
16523
16524 # Check whether --with-gnu-ld was given.
16525 if test "${with_gnu_ld+set}" = set; then :
16526 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16527 else
16528 with_gnu_ld=no
16529 fi
16530
16531 # Prepare PATH_SEPARATOR.
16532 # The user is always right.
16533 if test "${PATH_SEPARATOR+set}" != set; then
16534 echo "#! /bin/sh" >conf$$.sh
16535 echo "exit 0" >>conf$$.sh
16536 chmod +x conf$$.sh
16537 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16538 PATH_SEPARATOR=';'
16539 else
16540 PATH_SEPARATOR=:
16541 fi
16542 rm -f conf$$.sh
16543 fi
16544 ac_prog=ld
16545 if test "$GCC" = yes; then
16546 # Check if gcc -print-prog-name=ld gives a path.
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16548 $as_echo_n "checking for ld used by GCC... " >&6; }
16549 case $host in
16550 *-*-mingw*)
16551 # gcc leaves a trailing carriage return which upsets mingw
16552 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16553 *)
16554 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16555 esac
16556 case $ac_prog in
16557 # Accept absolute paths.
16558 [\\/]* | [A-Za-z]:[\\/]*)
16559 re_direlt='/[^/][^/]*/\.\./'
16560 # Canonicalize the path of ld
16561 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16562 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16563 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16564 done
16565 test -z "$LD" && LD="$ac_prog"
16566 ;;
16567 "")
16568 # If it fails, then pretend we aren't using GCC.
16569 ac_prog=ld
16570 ;;
16571 *)
16572 # If it is relative, then search for the first ld in PATH.
16573 with_gnu_ld=unknown
16574 ;;
16575 esac
16576 elif test "$with_gnu_ld" = yes; then
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16578 $as_echo_n "checking for GNU ld... " >&6; }
16579 else
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16581 $as_echo_n "checking for non-GNU ld... " >&6; }
16582 fi
16583 if ${acl_cv_path_LD+:} false; then :
16584 $as_echo_n "(cached) " >&6
16585 else
16586 if test -z "$LD"; then
16587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16588 for ac_dir in $PATH; do
16589 test -z "$ac_dir" && ac_dir=.
16590 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16591 acl_cv_path_LD="$ac_dir/$ac_prog"
16592 # Check to see if the program is GNU ld. I'd rather use --version,
16593 # but apparently some GNU ld's only accept -v.
16594 # Break only if it was the GNU/non-GNU ld that we prefer.
16595 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
16596 test "$with_gnu_ld" != no && break
16597 else
16598 test "$with_gnu_ld" != yes && break
16599 fi
16600 fi
16601 done
16602 IFS="$ac_save_ifs"
16603 else
16604 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16605 fi
16606 fi
16607
16608 LD="$acl_cv_path_LD"
16609 if test -n "$LD"; then
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16611 $as_echo "$LD" >&6; }
16612 else
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16614 $as_echo "no" >&6; }
16615 fi
16616 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16618 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16619 if ${acl_cv_prog_gnu_ld+:} false; then :
16620 $as_echo_n "(cached) " >&6
16621 else
16622 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16623 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
16624 acl_cv_prog_gnu_ld=yes
16625 else
16626 acl_cv_prog_gnu_ld=no
16627 fi
16628 fi
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16630 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16631 with_gnu_ld=$acl_cv_prog_gnu_ld
16632
16633
16634
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16636 $as_echo_n "checking for shared library run path origin... " >&6; }
16637 if ${acl_cv_rpath+:} false; then :
16638 $as_echo_n "(cached) " >&6
16639 else
16640
16641 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16642 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16643 . ./conftest.sh
16644 rm -f ./conftest.sh
16645 acl_cv_rpath=done
16646
16647 fi
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16649 $as_echo "$acl_cv_rpath" >&6; }
16650 wl="$acl_cv_wl"
16651 libext="$acl_cv_libext"
16652 shlibext="$acl_cv_shlibext"
16653 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16654 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16655 hardcode_direct="$acl_cv_hardcode_direct"
16656 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16657 # Check whether --enable-rpath was given.
16658 if test "${enable_rpath+set}" = set; then :
16659 enableval=$enable_rpath; :
16660 else
16661 enable_rpath=yes
16662 fi
16663
16664
16665
16666
16667
16668
16669
16670
16671 use_additional=yes
16672
16673 acl_save_prefix="$prefix"
16674 prefix="$acl_final_prefix"
16675 acl_save_exec_prefix="$exec_prefix"
16676 exec_prefix="$acl_final_exec_prefix"
16677
16678 eval additional_includedir=\"$includedir\"
16679 eval additional_libdir=\"$libdir\"
16680
16681 exec_prefix="$acl_save_exec_prefix"
16682 prefix="$acl_save_prefix"
16683
16684
16685 # Check whether --with-libiconv-prefix was given.
16686 if test "${with_libiconv_prefix+set}" = set; then :
16687 withval=$with_libiconv_prefix;
16688 if test "X$withval" = "Xno"; then
16689 use_additional=no
16690 else
16691 if test "X$withval" = "X"; then
16692
16693 acl_save_prefix="$prefix"
16694 prefix="$acl_final_prefix"
16695 acl_save_exec_prefix="$exec_prefix"
16696 exec_prefix="$acl_final_exec_prefix"
16697
16698 eval additional_includedir=\"$includedir\"
16699 eval additional_libdir=\"$libdir\"
16700
16701 exec_prefix="$acl_save_exec_prefix"
16702 prefix="$acl_save_prefix"
16703
16704 else
16705 additional_includedir="$withval/include"
16706 additional_libdir="$withval/lib"
16707 fi
16708 fi
16709
16710 fi
16711
16712
16713 # Check whether --with-libiconv-type was given.
16714 if test "${with_libiconv_type+set}" = set; then :
16715 withval=$with_libiconv_type; with_libiconv_type=$withval
16716 else
16717 with_libiconv_type=auto
16718 fi
16719
16720 lib_type=`eval echo \$with_libiconv_type`
16721
16722 LIBICONV=
16723 LTLIBICONV=
16724 INCICONV=
16725 rpathdirs=
16726 ltrpathdirs=
16727 names_already_handled=
16728 names_next_round='iconv '
16729 while test -n "$names_next_round"; do
16730 names_this_round="$names_next_round"
16731 names_next_round=
16732 for name in $names_this_round; do
16733 already_handled=
16734 for n in $names_already_handled; do
16735 if test "$n" = "$name"; then
16736 already_handled=yes
16737 break
16738 fi
16739 done
16740 if test -z "$already_handled"; then
16741 names_already_handled="$names_already_handled $name"
16742 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16743 eval value=\"\$HAVE_LIB$uppername\"
16744 if test -n "$value"; then
16745 if test "$value" = yes; then
16746 eval value=\"\$LIB$uppername\"
16747 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16748 eval value=\"\$LTLIB$uppername\"
16749 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16750 else
16751 :
16752 fi
16753 else
16754 found_dir=
16755 found_la=
16756 found_so=
16757 found_a=
16758 if test $use_additional = yes; then
16759 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
16760 found_dir="$additional_libdir"
16761 found_so="$additional_libdir/lib$name.$shlibext"
16762 if test -f "$additional_libdir/lib$name.la"; then
16763 found_la="$additional_libdir/lib$name.la"
16764 fi
16765 elif test x$lib_type != xshared; then
16766 if test -f "$additional_libdir/lib$name.$libext"; then
16767 found_dir="$additional_libdir"
16768 found_a="$additional_libdir/lib$name.$libext"
16769 if test -f "$additional_libdir/lib$name.la"; then
16770 found_la="$additional_libdir/lib$name.la"
16771 fi
16772 fi
16773 fi
16774 fi
16775 if test "X$found_dir" = "X"; then
16776 for x in $LDFLAGS $LTLIBICONV; do
16777
16778 acl_save_prefix="$prefix"
16779 prefix="$acl_final_prefix"
16780 acl_save_exec_prefix="$exec_prefix"
16781 exec_prefix="$acl_final_exec_prefix"
16782 eval x=\"$x\"
16783 exec_prefix="$acl_save_exec_prefix"
16784 prefix="$acl_save_prefix"
16785
16786 case "$x" in
16787 -L*)
16788 dir=`echo "X$x" | sed -e 's/^X-L//'`
16789 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
16790 found_dir="$dir"
16791 found_so="$dir/lib$name.$shlibext"
16792 if test -f "$dir/lib$name.la"; then
16793 found_la="$dir/lib$name.la"
16794 fi
16795 elif test x$lib_type != xshared; then
16796 if test -f "$dir/lib$name.$libext"; then
16797 found_dir="$dir"
16798 found_a="$dir/lib$name.$libext"
16799 if test -f "$dir/lib$name.la"; then
16800 found_la="$dir/lib$name.la"
16801 fi
16802 fi
16803 fi
16804 ;;
16805 esac
16806 if test "X$found_dir" != "X"; then
16807 break
16808 fi
16809 done
16810 fi
16811 if test "X$found_dir" != "X"; then
16812 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16813 if test "X$found_so" != "X"; then
16814 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16815 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16816 else
16817 haveit=
16818 for x in $ltrpathdirs; do
16819 if test "X$x" = "X$found_dir"; then
16820 haveit=yes
16821 break
16822 fi
16823 done
16824 if test -z "$haveit"; then
16825 ltrpathdirs="$ltrpathdirs $found_dir"
16826 fi
16827 if test "$hardcode_direct" = yes; then
16828 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16829 else
16830 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16831 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16832 haveit=
16833 for x in $rpathdirs; do
16834 if test "X$x" = "X$found_dir"; then
16835 haveit=yes
16836 break
16837 fi
16838 done
16839 if test -z "$haveit"; then
16840 rpathdirs="$rpathdirs $found_dir"
16841 fi
16842 else
16843 haveit=
16844 for x in $LDFLAGS $LIBICONV; do
16845
16846 acl_save_prefix="$prefix"
16847 prefix="$acl_final_prefix"
16848 acl_save_exec_prefix="$exec_prefix"
16849 exec_prefix="$acl_final_exec_prefix"
16850 eval x=\"$x\"
16851 exec_prefix="$acl_save_exec_prefix"
16852 prefix="$acl_save_prefix"
16853
16854 if test "X$x" = "X-L$found_dir"; then
16855 haveit=yes
16856 break
16857 fi
16858 done
16859 if test -z "$haveit"; then
16860 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16861 fi
16862 if test "$hardcode_minus_L" != no; then
16863 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16864 else
16865 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16866 fi
16867 fi
16868 fi
16869 fi
16870 else
16871 if test "X$found_a" != "X"; then
16872 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16873 else
16874 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16875 fi
16876 fi
16877 additional_includedir=
16878 case "$found_dir" in
16879 */lib | */lib/)
16880 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16881 additional_includedir="$basedir/include"
16882 ;;
16883 esac
16884 if test "X$additional_includedir" != "X"; then
16885 if test "X$additional_includedir" != "X/usr/include"; then
16886 haveit=
16887 if test "X$additional_includedir" = "X/usr/local/include"; then
16888 if test -n "$GCC"; then
16889 case $host_os in
16890 linux*) haveit=yes;;
16891 esac
16892 fi
16893 fi
16894 if test -z "$haveit"; then
16895 for x in $CPPFLAGS $INCICONV; do
16896
16897 acl_save_prefix="$prefix"
16898 prefix="$acl_final_prefix"
16899 acl_save_exec_prefix="$exec_prefix"
16900 exec_prefix="$acl_final_exec_prefix"
16901 eval x=\"$x\"
16902 exec_prefix="$acl_save_exec_prefix"
16903 prefix="$acl_save_prefix"
16904
16905 if test "X$x" = "X-I$additional_includedir"; then
16906 haveit=yes
16907 break
16908 fi
16909 done
16910 if test -z "$haveit"; then
16911 if test -d "$additional_includedir"; then
16912 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16913 fi
16914 fi
16915 fi
16916 fi
16917 fi
16918 if test -n "$found_la"; then
16919 save_libdir="$libdir"
16920 case "$found_la" in
16921 */* | *\\*) . "$found_la" ;;
16922 *) . "./$found_la" ;;
16923 esac
16924 libdir="$save_libdir"
16925 for dep in $dependency_libs; do
16926 case "$dep" in
16927 -L*)
16928 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16929 if test "X$additional_libdir" != "X/usr/lib"; then
16930 haveit=
16931 if test "X$additional_libdir" = "X/usr/local/lib"; then
16932 if test -n "$GCC"; then
16933 case $host_os in
16934 linux*) haveit=yes;;
16935 esac
16936 fi
16937 fi
16938 if test -z "$haveit"; then
16939 haveit=
16940 for x in $LDFLAGS $LIBICONV; do
16941
16942 acl_save_prefix="$prefix"
16943 prefix="$acl_final_prefix"
16944 acl_save_exec_prefix="$exec_prefix"
16945 exec_prefix="$acl_final_exec_prefix"
16946 eval x=\"$x\"
16947 exec_prefix="$acl_save_exec_prefix"
16948 prefix="$acl_save_prefix"
16949
16950 if test "X$x" = "X-L$additional_libdir"; then
16951 haveit=yes
16952 break
16953 fi
16954 done
16955 if test -z "$haveit"; then
16956 if test -d "$additional_libdir"; then
16957 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16958 fi
16959 fi
16960 haveit=
16961 for x in $LDFLAGS $LTLIBICONV; do
16962
16963 acl_save_prefix="$prefix"
16964 prefix="$acl_final_prefix"
16965 acl_save_exec_prefix="$exec_prefix"
16966 exec_prefix="$acl_final_exec_prefix"
16967 eval x=\"$x\"
16968 exec_prefix="$acl_save_exec_prefix"
16969 prefix="$acl_save_prefix"
16970
16971 if test "X$x" = "X-L$additional_libdir"; then
16972 haveit=yes
16973 break
16974 fi
16975 done
16976 if test -z "$haveit"; then
16977 if test -d "$additional_libdir"; then
16978 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16979 fi
16980 fi
16981 fi
16982 fi
16983 ;;
16984 -R*)
16985 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16986 if test "$enable_rpath" != no; then
16987 haveit=
16988 for x in $rpathdirs; do
16989 if test "X$x" = "X$dir"; then
16990 haveit=yes
16991 break
16992 fi
16993 done
16994 if test -z "$haveit"; then
16995 rpathdirs="$rpathdirs $dir"
16996 fi
16997 haveit=
16998 for x in $ltrpathdirs; do
16999 if test "X$x" = "X$dir"; then
17000 haveit=yes
17001 break
17002 fi
17003 done
17004 if test -z "$haveit"; then
17005 ltrpathdirs="$ltrpathdirs $dir"
17006 fi
17007 fi
17008 ;;
17009 -l*)
17010 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17011 ;;
17012 *.la)
17013 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17014 ;;
17015 *)
17016 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17017 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17018 ;;
17019 esac
17020 done
17021 fi
17022 else
17023 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
17024 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17025 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17026 else
17027 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
17028 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
17029 fi
17030 fi
17031 fi
17032 fi
17033 done
17034 done
17035 if test "X$rpathdirs" != "X"; then
17036 if test -n "$hardcode_libdir_separator"; then
17037 alldirs=
17038 for found_dir in $rpathdirs; do
17039 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17040 done
17041 acl_save_libdir="$libdir"
17042 libdir="$alldirs"
17043 eval flag=\"$hardcode_libdir_flag_spec\"
17044 libdir="$acl_save_libdir"
17045 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17046 else
17047 for found_dir in $rpathdirs; do
17048 acl_save_libdir="$libdir"
17049 libdir="$found_dir"
17050 eval flag=\"$hardcode_libdir_flag_spec\"
17051 libdir="$acl_save_libdir"
17052 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17053 done
17054 fi
17055 fi
17056 if test "X$ltrpathdirs" != "X"; then
17057 for found_dir in $ltrpathdirs; do
17058 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17059 done
17060 fi
17061
17062
17063
17064
17065
17066 if test -f ../gettext/uninstalled-config.sh; then
17067 relative_builddir='$(top_builddir)/../gettext'
17068 . ../gettext/uninstalled-config.sh
17069 else
17070 # The sister gettext directory doesn't exist and won't collect information on
17071 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17096 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17097 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
17098 $as_echo_n "(cached) " >&6
17099 else
17100 gt_save_LIBS="$LIBS"
17101 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17103 /* end confdefs.h. */
17104 #include <CoreFoundation/CFPreferences.h>
17105 int
17106 main ()
17107 {
17108 CFPreferencesCopyAppValue(NULL, NULL)
17109 ;
17110 return 0;
17111 }
17112 _ACEOF
17113 if ac_fn_c_try_link "$LINENO"; then :
17114 gt_cv_func_CFPreferencesCopyAppValue=yes
17115 else
17116 gt_cv_func_CFPreferencesCopyAppValue=no
17117 fi
17118 rm -f core conftest.err conftest.$ac_objext \
17119 conftest$ac_exeext conftest.$ac_ext
17120 LIBS="$gt_save_LIBS"
17121 fi
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17123 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17124 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17125
17126 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17127
17128 fi
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
17130 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
17131 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
17132 $as_echo_n "(cached) " >&6
17133 else
17134 gt_save_LIBS="$LIBS"
17135 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17137 /* end confdefs.h. */
17138 #include <CoreFoundation/CFLocale.h>
17139 int
17140 main ()
17141 {
17142 CFLocaleCopyPreferredLanguages();
17143 ;
17144 return 0;
17145 }
17146 _ACEOF
17147 if ac_fn_c_try_link "$LINENO"; then :
17148 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
17149 else
17150 gt_cv_func_CFLocaleCopyPreferredLanguages=no
17151 fi
17152 rm -f core conftest.err conftest.$ac_objext \
17153 conftest$ac_exeext conftest.$ac_ext
17154 LIBS="$gt_save_LIBS"
17155 fi
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
17157 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
17158 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
17159
17160 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
17161
17162 fi
17163 INTL_MACOSX_LIBS=
17164 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
17165 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
17166 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
17167 fi
17168
17169
17170
17171
17172
17173
17174 LIBINTL=
17175 LTLIBINTL=
17176 POSUB=
17177
17178 case " $gt_needs " in
17179 *" need-formatstring-macros "*) gt_api_version=3 ;;
17180 *" need-ngettext "*) gt_api_version=2 ;;
17181 *) gt_api_version=1 ;;
17182 esac
17183 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
17184 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
17185
17186 if test "$USE_NLS" = "yes"; then
17187 gt_use_preinstalled_gnugettext=no
17188
17189
17190 if test $gt_api_version -ge 3; then
17191 gt_revision_test_code='
17192 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17193 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
17194 #endif
17195 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
17196 '
17197 else
17198 gt_revision_test_code=
17199 fi
17200 if test $gt_api_version -ge 2; then
17201 gt_expression_test_code=' + * ngettext ("", "", 0)'
17202 else
17203 gt_expression_test_code=
17204 fi
17205
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17207 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17208 if eval \${$gt_func_gnugettext_libc+:} false; then :
17209 $as_echo_n "(cached) " >&6
17210 else
17211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17212 /* end confdefs.h. */
17213
17214 #include <libintl.h>
17215 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17216 extern int _nl_msg_cat_cntr;
17217 extern int *_nl_domain_bindings;
17218 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
17219 #else
17220 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17221 #endif
17222 $gt_revision_test_code
17223
17224 int
17225 main ()
17226 {
17227
17228 bindtextdomain ("", "");
17229 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17230
17231 ;
17232 return 0;
17233 }
17234 _ACEOF
17235 if ac_fn_c_try_link "$LINENO"; then :
17236 eval "$gt_func_gnugettext_libc=yes"
17237 else
17238 eval "$gt_func_gnugettext_libc=no"
17239 fi
17240 rm -f core conftest.err conftest.$ac_objext \
17241 conftest$ac_exeext conftest.$ac_ext
17242 fi
17243 eval ac_res=\$$gt_func_gnugettext_libc
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17245 $as_echo "$ac_res" >&6; }
17246
17247 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
17248
17249
17250
17251
17252
17253 am_save_CPPFLAGS="$CPPFLAGS"
17254
17255 for element in $INCICONV; do
17256 haveit=
17257 for x in $CPPFLAGS; do
17258
17259 acl_save_prefix="$prefix"
17260 prefix="$acl_final_prefix"
17261 acl_save_exec_prefix="$exec_prefix"
17262 exec_prefix="$acl_final_exec_prefix"
17263 eval x=\"$x\"
17264 exec_prefix="$acl_save_exec_prefix"
17265 prefix="$acl_save_prefix"
17266
17267 if test "X$x" = "X$element"; then
17268 haveit=yes
17269 break
17270 fi
17271 done
17272 if test -z "$haveit"; then
17273 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17274 fi
17275 done
17276
17277
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17279 $as_echo_n "checking for iconv... " >&6; }
17280 if ${am_cv_func_iconv+:} false; then :
17281 $as_echo_n "(cached) " >&6
17282 else
17283
17284 am_cv_func_iconv="no, consider installing GNU libiconv"
17285 am_cv_lib_iconv=no
17286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17287 /* end confdefs.h. */
17288
17289 #include <stdlib.h>
17290 #include <iconv.h>
17291
17292 int
17293 main ()
17294 {
17295 iconv_t cd = iconv_open("","");
17296 iconv(cd,NULL,NULL,NULL,NULL);
17297 iconv_close(cd);
17298 ;
17299 return 0;
17300 }
17301 _ACEOF
17302 if ac_fn_c_try_link "$LINENO"; then :
17303 am_cv_func_iconv=yes
17304 fi
17305 rm -f core conftest.err conftest.$ac_objext \
17306 conftest$ac_exeext conftest.$ac_ext
17307 if test "$am_cv_func_iconv" != yes; then
17308 am_save_LIBS="$LIBS"
17309 LIBS="$LIBS $LIBICONV"
17310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17311 /* end confdefs.h. */
17312
17313 #include <stdlib.h>
17314 #include <iconv.h>
17315
17316 int
17317 main ()
17318 {
17319 iconv_t cd = iconv_open("","");
17320 iconv(cd,NULL,NULL,NULL,NULL);
17321 iconv_close(cd);
17322 ;
17323 return 0;
17324 }
17325 _ACEOF
17326 if ac_fn_c_try_link "$LINENO"; then :
17327 am_cv_lib_iconv=yes
17328 am_cv_func_iconv=yes
17329 fi
17330 rm -f core conftest.err conftest.$ac_objext \
17331 conftest$ac_exeext conftest.$ac_ext
17332 LIBS="$am_save_LIBS"
17333 fi
17334
17335 fi
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17337 $as_echo "$am_cv_func_iconv" >&6; }
17338 if test "$am_cv_func_iconv" = yes; then
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
17340 $as_echo_n "checking for working iconv... " >&6; }
17341 if ${am_cv_func_iconv_works+:} false; then :
17342 $as_echo_n "(cached) " >&6
17343 else
17344
17345 am_save_LIBS="$LIBS"
17346 if test $am_cv_lib_iconv = yes; then
17347 LIBS="$LIBS $LIBICONV"
17348 fi
17349 am_cv_func_iconv_works=no
17350 for ac_iconv_const in '' 'const'; do
17351 if test "$cross_compiling" = yes; then :
17352 case "$host_os" in
17353 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
17354 *) am_cv_func_iconv_works="guessing yes" ;;
17355 esac
17356 else
17357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17358 /* end confdefs.h. */
17359
17360 #include <iconv.h>
17361 #include <string.h>
17362
17363 #ifndef ICONV_CONST
17364 # define ICONV_CONST $ac_iconv_const
17365 #endif
17366
17367 int
17368 main ()
17369 {
17370 int result = 0;
17371 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
17372 successful returns. This is even documented in
17373 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
17374 {
17375 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17376 if (cd_utf8_to_88591 != (iconv_t)(-1))
17377 {
17378 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
17379 char buf[10];
17380 ICONV_CONST char *inptr = input;
17381 size_t inbytesleft = strlen (input);
17382 char *outptr = buf;
17383 size_t outbytesleft = sizeof (buf);
17384 size_t res = iconv (cd_utf8_to_88591,
17385 &inptr, &inbytesleft,
17386 &outptr, &outbytesleft);
17387 if (res == 0)
17388 result |= 1;
17389 iconv_close (cd_utf8_to_88591);
17390 }
17391 }
17392 /* Test against Solaris 10 bug: Failures are not distinguishable from
17393 successful returns. */
17394 {
17395 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
17396 if (cd_ascii_to_88591 != (iconv_t)(-1))
17397 {
17398 static ICONV_CONST char input[] = "\263";
17399 char buf[10];
17400 ICONV_CONST char *inptr = input;
17401 size_t inbytesleft = strlen (input);
17402 char *outptr = buf;
17403 size_t outbytesleft = sizeof (buf);
17404 size_t res = iconv (cd_ascii_to_88591,
17405 &inptr, &inbytesleft,
17406 &outptr, &outbytesleft);
17407 if (res == 0)
17408 result |= 2;
17409 iconv_close (cd_ascii_to_88591);
17410 }
17411 }
17412 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
17413 {
17414 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
17415 if (cd_88591_to_utf8 != (iconv_t)(-1))
17416 {
17417 static ICONV_CONST char input[] = "\304";
17418 static char buf[2] = { (char)0xDE, (char)0xAD };
17419 ICONV_CONST char *inptr = input;
17420 size_t inbytesleft = 1;
17421 char *outptr = buf;
17422 size_t outbytesleft = 1;
17423 size_t res = iconv (cd_88591_to_utf8,
17424 &inptr, &inbytesleft,
17425 &outptr, &outbytesleft);
17426 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
17427 result |= 4;
17428 iconv_close (cd_88591_to_utf8);
17429 }
17430 }
17431 #if 0 /* This bug could be worked around by the caller. */
17432 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
17433 {
17434 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17435 if (cd_88591_to_utf8 != (iconv_t)(-1))
17436 {
17437 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
17438 char buf[50];
17439 ICONV_CONST char *inptr = input;
17440 size_t inbytesleft = strlen (input);
17441 char *outptr = buf;
17442 size_t outbytesleft = sizeof (buf);
17443 size_t res = iconv (cd_88591_to_utf8,
17444 &inptr, &inbytesleft,
17445 &outptr, &outbytesleft);
17446 if ((int)res > 0)
17447 result |= 8;
17448 iconv_close (cd_88591_to_utf8);
17449 }
17450 }
17451 #endif
17452 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
17453 provided. */
17454 {
17455 /* Try standardized names. */
17456 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
17457 /* Try IRIX, OSF/1 names. */
17458 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
17459 /* Try AIX names. */
17460 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
17461 /* Try HP-UX names. */
17462 iconv_t cd4 = iconv_open ("utf8", "eucJP");
17463 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
17464 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
17465 result |= 16;
17466 if (cd1 != (iconv_t)(-1))
17467 iconv_close (cd1);
17468 if (cd2 != (iconv_t)(-1))
17469 iconv_close (cd2);
17470 if (cd3 != (iconv_t)(-1))
17471 iconv_close (cd3);
17472 if (cd4 != (iconv_t)(-1))
17473 iconv_close (cd4);
17474 }
17475 return result;
17476
17477 ;
17478 return 0;
17479 }
17480 _ACEOF
17481 if ac_fn_c_try_run "$LINENO"; then :
17482 am_cv_func_iconv_works=yes
17483 fi
17484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17485 conftest.$ac_objext conftest.beam conftest.$ac_ext
17486 fi
17487
17488 test "$am_cv_func_iconv_works" = no || break
17489 done
17490 LIBS="$am_save_LIBS"
17491
17492 fi
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
17494 $as_echo "$am_cv_func_iconv_works" >&6; }
17495 case "$am_cv_func_iconv_works" in
17496 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
17497 *) am_func_iconv=yes ;;
17498 esac
17499 else
17500 am_func_iconv=no am_cv_lib_iconv=no
17501 fi
17502 if test "$am_func_iconv" = yes; then
17503
17504 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17505
17506 fi
17507 if test "$am_cv_lib_iconv" = yes; then
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17509 $as_echo_n "checking how to link with libiconv... " >&6; }
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17511 $as_echo "$LIBICONV" >&6; }
17512 else
17513 CPPFLAGS="$am_save_CPPFLAGS"
17514 LIBICONV=
17515 LTLIBICONV=
17516 fi
17517
17518
17519
17520
17521
17522
17523 use_additional=yes
17524
17525 acl_save_prefix="$prefix"
17526 prefix="$acl_final_prefix"
17527 acl_save_exec_prefix="$exec_prefix"
17528 exec_prefix="$acl_final_exec_prefix"
17529
17530 eval additional_includedir=\"$includedir\"
17531 eval additional_libdir=\"$libdir\"
17532
17533 exec_prefix="$acl_save_exec_prefix"
17534 prefix="$acl_save_prefix"
17535
17536
17537 # Check whether --with-libintl-prefix was given.
17538 if test "${with_libintl_prefix+set}" = set; then :
17539 withval=$with_libintl_prefix;
17540 if test "X$withval" = "Xno"; then
17541 use_additional=no
17542 else
17543 if test "X$withval" = "X"; then
17544
17545 acl_save_prefix="$prefix"
17546 prefix="$acl_final_prefix"
17547 acl_save_exec_prefix="$exec_prefix"
17548 exec_prefix="$acl_final_exec_prefix"
17549
17550 eval additional_includedir=\"$includedir\"
17551 eval additional_libdir=\"$libdir\"
17552
17553 exec_prefix="$acl_save_exec_prefix"
17554 prefix="$acl_save_prefix"
17555
17556 else
17557 additional_includedir="$withval/include"
17558 additional_libdir="$withval/lib"
17559 fi
17560 fi
17561
17562 fi
17563
17564
17565 # Check whether --with-libintl-type was given.
17566 if test "${with_libintl_type+set}" = set; then :
17567 withval=$with_libintl_type; with_libintl_type=$withval
17568 else
17569 with_libintl_type=auto
17570 fi
17571
17572 lib_type=`eval echo \$with_libintl_type`
17573
17574 LIBINTL=
17575 LTLIBINTL=
17576 INCINTL=
17577 rpathdirs=
17578 ltrpathdirs=
17579 names_already_handled=
17580 names_next_round='intl '
17581 while test -n "$names_next_round"; do
17582 names_this_round="$names_next_round"
17583 names_next_round=
17584 for name in $names_this_round; do
17585 already_handled=
17586 for n in $names_already_handled; do
17587 if test "$n" = "$name"; then
17588 already_handled=yes
17589 break
17590 fi
17591 done
17592 if test -z "$already_handled"; then
17593 names_already_handled="$names_already_handled $name"
17594 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17595 eval value=\"\$HAVE_LIB$uppername\"
17596 if test -n "$value"; then
17597 if test "$value" = yes; then
17598 eval value=\"\$LIB$uppername\"
17599 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17600 eval value=\"\$LTLIB$uppername\"
17601 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17602 else
17603 :
17604 fi
17605 else
17606 found_dir=
17607 found_la=
17608 found_so=
17609 found_a=
17610 if test $use_additional = yes; then
17611 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
17612 found_dir="$additional_libdir"
17613 found_so="$additional_libdir/lib$name.$shlibext"
17614 if test -f "$additional_libdir/lib$name.la"; then
17615 found_la="$additional_libdir/lib$name.la"
17616 fi
17617 elif test x$lib_type != xshared; then
17618 if test -f "$additional_libdir/lib$name.$libext"; then
17619 found_dir="$additional_libdir"
17620 found_a="$additional_libdir/lib$name.$libext"
17621 if test -f "$additional_libdir/lib$name.la"; then
17622 found_la="$additional_libdir/lib$name.la"
17623 fi
17624 fi
17625 fi
17626 fi
17627 if test "X$found_dir" = "X"; then
17628 for x in $LDFLAGS $LTLIBINTL; do
17629
17630 acl_save_prefix="$prefix"
17631 prefix="$acl_final_prefix"
17632 acl_save_exec_prefix="$exec_prefix"
17633 exec_prefix="$acl_final_exec_prefix"
17634 eval x=\"$x\"
17635 exec_prefix="$acl_save_exec_prefix"
17636 prefix="$acl_save_prefix"
17637
17638 case "$x" in
17639 -L*)
17640 dir=`echo "X$x" | sed -e 's/^X-L//'`
17641 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
17642 found_dir="$dir"
17643 found_so="$dir/lib$name.$shlibext"
17644 if test -f "$dir/lib$name.la"; then
17645 found_la="$dir/lib$name.la"
17646 fi
17647 elif test x$lib_type != xshared; then
17648 if test -f "$dir/lib$name.$libext"; then
17649 found_dir="$dir"
17650 found_a="$dir/lib$name.$libext"
17651 if test -f "$dir/lib$name.la"; then
17652 found_la="$dir/lib$name.la"
17653 fi
17654 fi
17655 fi
17656 ;;
17657 esac
17658 if test "X$found_dir" != "X"; then
17659 break
17660 fi
17661 done
17662 fi
17663 if test "X$found_dir" != "X"; then
17664 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17665 if test "X$found_so" != "X"; then
17666 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17667 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17668 else
17669 haveit=
17670 for x in $ltrpathdirs; do
17671 if test "X$x" = "X$found_dir"; then
17672 haveit=yes
17673 break
17674 fi
17675 done
17676 if test -z "$haveit"; then
17677 ltrpathdirs="$ltrpathdirs $found_dir"
17678 fi
17679 if test "$hardcode_direct" = yes; then
17680 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17681 else
17682 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17683 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17684 haveit=
17685 for x in $rpathdirs; do
17686 if test "X$x" = "X$found_dir"; then
17687 haveit=yes
17688 break
17689 fi
17690 done
17691 if test -z "$haveit"; then
17692 rpathdirs="$rpathdirs $found_dir"
17693 fi
17694 else
17695 haveit=
17696 for x in $LDFLAGS $LIBINTL; do
17697
17698 acl_save_prefix="$prefix"
17699 prefix="$acl_final_prefix"
17700 acl_save_exec_prefix="$exec_prefix"
17701 exec_prefix="$acl_final_exec_prefix"
17702 eval x=\"$x\"
17703 exec_prefix="$acl_save_exec_prefix"
17704 prefix="$acl_save_prefix"
17705
17706 if test "X$x" = "X-L$found_dir"; then
17707 haveit=yes
17708 break
17709 fi
17710 done
17711 if test -z "$haveit"; then
17712 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17713 fi
17714 if test "$hardcode_minus_L" != no; then
17715 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17716 else
17717 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17718 fi
17719 fi
17720 fi
17721 fi
17722 else
17723 if test "X$found_a" != "X"; then
17724 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17725 else
17726 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17727 fi
17728 fi
17729 additional_includedir=
17730 case "$found_dir" in
17731 */lib | */lib/)
17732 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17733 additional_includedir="$basedir/include"
17734 ;;
17735 esac
17736 if test "X$additional_includedir" != "X"; then
17737 if test "X$additional_includedir" != "X/usr/include"; then
17738 haveit=
17739 if test "X$additional_includedir" = "X/usr/local/include"; then
17740 if test -n "$GCC"; then
17741 case $host_os in
17742 linux*) haveit=yes;;
17743 esac
17744 fi
17745 fi
17746 if test -z "$haveit"; then
17747 for x in $CPPFLAGS $INCINTL; do
17748
17749 acl_save_prefix="$prefix"
17750 prefix="$acl_final_prefix"
17751 acl_save_exec_prefix="$exec_prefix"
17752 exec_prefix="$acl_final_exec_prefix"
17753 eval x=\"$x\"
17754 exec_prefix="$acl_save_exec_prefix"
17755 prefix="$acl_save_prefix"
17756
17757 if test "X$x" = "X-I$additional_includedir"; then
17758 haveit=yes
17759 break
17760 fi
17761 done
17762 if test -z "$haveit"; then
17763 if test -d "$additional_includedir"; then
17764 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17765 fi
17766 fi
17767 fi
17768 fi
17769 fi
17770 if test -n "$found_la"; then
17771 save_libdir="$libdir"
17772 case "$found_la" in
17773 */* | *\\*) . "$found_la" ;;
17774 *) . "./$found_la" ;;
17775 esac
17776 libdir="$save_libdir"
17777 for dep in $dependency_libs; do
17778 case "$dep" in
17779 -L*)
17780 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17781 if test "X$additional_libdir" != "X/usr/lib"; then
17782 haveit=
17783 if test "X$additional_libdir" = "X/usr/local/lib"; then
17784 if test -n "$GCC"; then
17785 case $host_os in
17786 linux*) haveit=yes;;
17787 esac
17788 fi
17789 fi
17790 if test -z "$haveit"; then
17791 haveit=
17792 for x in $LDFLAGS $LIBINTL; do
17793
17794 acl_save_prefix="$prefix"
17795 prefix="$acl_final_prefix"
17796 acl_save_exec_prefix="$exec_prefix"
17797 exec_prefix="$acl_final_exec_prefix"
17798 eval x=\"$x\"
17799 exec_prefix="$acl_save_exec_prefix"
17800 prefix="$acl_save_prefix"
17801
17802 if test "X$x" = "X-L$additional_libdir"; then
17803 haveit=yes
17804 break
17805 fi
17806 done
17807 if test -z "$haveit"; then
17808 if test -d "$additional_libdir"; then
17809 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17810 fi
17811 fi
17812 haveit=
17813 for x in $LDFLAGS $LTLIBINTL; do
17814
17815 acl_save_prefix="$prefix"
17816 prefix="$acl_final_prefix"
17817 acl_save_exec_prefix="$exec_prefix"
17818 exec_prefix="$acl_final_exec_prefix"
17819 eval x=\"$x\"
17820 exec_prefix="$acl_save_exec_prefix"
17821 prefix="$acl_save_prefix"
17822
17823 if test "X$x" = "X-L$additional_libdir"; then
17824 haveit=yes
17825 break
17826 fi
17827 done
17828 if test -z "$haveit"; then
17829 if test -d "$additional_libdir"; then
17830 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17831 fi
17832 fi
17833 fi
17834 fi
17835 ;;
17836 -R*)
17837 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17838 if test "$enable_rpath" != no; then
17839 haveit=
17840 for x in $rpathdirs; do
17841 if test "X$x" = "X$dir"; then
17842 haveit=yes
17843 break
17844 fi
17845 done
17846 if test -z "$haveit"; then
17847 rpathdirs="$rpathdirs $dir"
17848 fi
17849 haveit=
17850 for x in $ltrpathdirs; do
17851 if test "X$x" = "X$dir"; then
17852 haveit=yes
17853 break
17854 fi
17855 done
17856 if test -z "$haveit"; then
17857 ltrpathdirs="$ltrpathdirs $dir"
17858 fi
17859 fi
17860 ;;
17861 -l*)
17862 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17863 ;;
17864 *.la)
17865 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17866 ;;
17867 *)
17868 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17869 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17870 ;;
17871 esac
17872 done
17873 fi
17874 else
17875 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
17876 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17877 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17878 else
17879 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
17880 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
17881 fi
17882 fi
17883 fi
17884 fi
17885 done
17886 done
17887 if test "X$rpathdirs" != "X"; then
17888 if test -n "$hardcode_libdir_separator"; then
17889 alldirs=
17890 for found_dir in $rpathdirs; do
17891 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17892 done
17893 acl_save_libdir="$libdir"
17894 libdir="$alldirs"
17895 eval flag=\"$hardcode_libdir_flag_spec\"
17896 libdir="$acl_save_libdir"
17897 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17898 else
17899 for found_dir in $rpathdirs; do
17900 acl_save_libdir="$libdir"
17901 libdir="$found_dir"
17902 eval flag=\"$hardcode_libdir_flag_spec\"
17903 libdir="$acl_save_libdir"
17904 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17905 done
17906 fi
17907 fi
17908 if test "X$ltrpathdirs" != "X"; then
17909 for found_dir in $ltrpathdirs; do
17910 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17911 done
17912 fi
17913
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17915 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17916 if eval \${$gt_func_gnugettext_libintl+:} false; then :
17917 $as_echo_n "(cached) " >&6
17918 else
17919 gt_save_CPPFLAGS="$CPPFLAGS"
17920 CPPFLAGS="$CPPFLAGS $INCINTL"
17921 gt_save_LIBS="$LIBS"
17922 LIBS="$LIBS $LIBINTL"
17923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17924 /* end confdefs.h. */
17925
17926 #include <libintl.h>
17927 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17928 extern int _nl_msg_cat_cntr;
17929 extern
17930 #ifdef __cplusplus
17931 "C"
17932 #endif
17933 const char *_nl_expand_alias (const char *);
17934 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
17935 #else
17936 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17937 #endif
17938 $gt_revision_test_code
17939
17940 int
17941 main ()
17942 {
17943
17944 bindtextdomain ("", "");
17945 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17946
17947 ;
17948 return 0;
17949 }
17950 _ACEOF
17951 if ac_fn_c_try_link "$LINENO"; then :
17952 eval "$gt_func_gnugettext_libintl=yes"
17953 else
17954 eval "$gt_func_gnugettext_libintl=no"
17955 fi
17956 rm -f core conftest.err conftest.$ac_objext \
17957 conftest$ac_exeext conftest.$ac_ext
17958 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
17959 LIBS="$LIBS $LIBICONV"
17960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17961 /* end confdefs.h. */
17962
17963 #include <libintl.h>
17964 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17965 extern int _nl_msg_cat_cntr;
17966 extern
17967 #ifdef __cplusplus
17968 "C"
17969 #endif
17970 const char *_nl_expand_alias (const char *);
17971 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
17972 #else
17973 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17974 #endif
17975 $gt_revision_test_code
17976
17977 int
17978 main ()
17979 {
17980
17981 bindtextdomain ("", "");
17982 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17983
17984 ;
17985 return 0;
17986 }
17987 _ACEOF
17988 if ac_fn_c_try_link "$LINENO"; then :
17989 LIBINTL="$LIBINTL $LIBICONV"
17990 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17991 eval "$gt_func_gnugettext_libintl=yes"
17992
17993 fi
17994 rm -f core conftest.err conftest.$ac_objext \
17995 conftest$ac_exeext conftest.$ac_ext
17996 fi
17997 CPPFLAGS="$gt_save_CPPFLAGS"
17998 LIBS="$gt_save_LIBS"
17999 fi
18000 eval ac_res=\$$gt_func_gnugettext_libintl
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18002 $as_echo "$ac_res" >&6; }
18003 fi
18004
18005 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
18006 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
18007 && test "$PACKAGE" != gettext-runtime \
18008 && test "$PACKAGE" != gettext-tools; }; then
18009 gt_use_preinstalled_gnugettext=yes
18010 else
18011 LIBINTL=
18012 LTLIBINTL=
18013 INCINTL=
18014 fi
18015
18016
18017
18018 if test -n "$INTL_MACOSX_LIBS"; then
18019 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18020 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18021 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18022 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18023 fi
18024 fi
18025
18026 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18027 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18028
18029 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18030
18031 else
18032 USE_NLS=no
18033 fi
18034 fi
18035
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18037 $as_echo_n "checking whether to use NLS... " >&6; }
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18039 $as_echo "$USE_NLS" >&6; }
18040 if test "$USE_NLS" = "yes"; then
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18042 $as_echo_n "checking where the gettext function comes from... " >&6; }
18043 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18044 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18045 gt_source="external libintl"
18046 else
18047 gt_source="libc"
18048 fi
18049 else
18050 gt_source="included intl directory"
18051 fi
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18053 $as_echo "$gt_source" >&6; }
18054 fi
18055
18056 if test "$USE_NLS" = "yes"; then
18057
18058 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18059 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18061 $as_echo_n "checking how to link with libintl... " >&6; }
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18063 $as_echo "$LIBINTL" >&6; }
18064
18065 for element in $INCINTL; do
18066 haveit=
18067 for x in $CPPFLAGS; do
18068
18069 acl_save_prefix="$prefix"
18070 prefix="$acl_final_prefix"
18071 acl_save_exec_prefix="$exec_prefix"
18072 exec_prefix="$acl_final_exec_prefix"
18073 eval x=\"$x\"
18074 exec_prefix="$acl_save_exec_prefix"
18075 prefix="$acl_save_prefix"
18076
18077 if test "X$x" = "X$element"; then
18078 haveit=yes
18079 break
18080 fi
18081 done
18082 if test -z "$haveit"; then
18083 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18084 fi
18085 done
18086
18087 fi
18088
18089
18090 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18091
18092
18093 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18094
18095 fi
18096
18097 POSUB=po
18098 fi
18099
18100
18101
18102 INTLLIBS="$LIBINTL"
18103
18104
18105
18106
18107
18108
18109 fi
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18122 $as_echo_n "checking whether NLS is requested... " >&6; }
18123 if test x"$USE_NLS" != xyes; then
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18125 $as_echo "no" >&6; }
18126 else
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18128 $as_echo "yes" >&6; }
18129
18130 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18131
18132
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
18134 $as_echo_n "checking for catalogs to be installed... " >&6; }
18135 # Look for .po and .gmo files in the source directory.
18136 CATALOGS=
18137 XLINGUAS=
18138 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
18139 # If there aren't any .gmo files the shell will give us the
18140 # literal string "../path/to/srcdir/po/*.gmo" which has to be
18141 # weeded out.
18142 case "$cat" in *\**)
18143 continue;;
18144 esac
18145 # The quadruple backslash is collapsed to a double backslash
18146 # by the backticks, then collapsed again by the double quotes,
18147 # leaving us with one backslash in the sed expression (right
18148 # before the dot that mustn't act as a wildcard).
18149 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
18150 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
18151 # The user is allowed to set LINGUAS to a list of languages to
18152 # install catalogs for. If it's empty that means "all of them."
18153 if test "x$LINGUAS" = x; then
18154 CATALOGS="$CATALOGS $cat"
18155 XLINGUAS="$XLINGUAS $lang"
18156 else
18157 case "$LINGUAS" in *$lang*)
18158 CATALOGS="$CATALOGS $cat"
18159 XLINGUAS="$XLINGUAS $lang"
18160 ;;
18161 esac
18162 fi
18163 done
18164 LINGUAS="$XLINGUAS"
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
18166 $as_echo "$LINGUAS" >&6; }
18167
18168
18169 DATADIRNAME=share
18170
18171 INSTOBJEXT=.mo
18172
18173 GENCAT=gencat
18174
18175 CATOBJEXT=.gmo
18176
18177 fi
18178
18179
18180
18181
18182 # Prepare PATH_SEPARATOR.
18183 # The user is always right.
18184 if test "${PATH_SEPARATOR+set}" != set; then
18185 echo "#! /bin/sh" >conf$$.sh
18186 echo "exit 0" >>conf$$.sh
18187 chmod +x conf$$.sh
18188 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18189 PATH_SEPARATOR=';'
18190 else
18191 PATH_SEPARATOR=:
18192 fi
18193 rm -f conf$$.sh
18194 fi
18195
18196 # Find out how to test for executable files. Don't use a zero-byte file,
18197 # as systems may use methods other than mode bits to determine executability.
18198 cat >conf$$.file <<_ASEOF
18199 #! /bin/sh
18200 exit 0
18201 _ASEOF
18202 chmod +x conf$$.file
18203 if test -x conf$$.file >/dev/null 2>&1; then
18204 ac_executable_p="test -x"
18205 else
18206 ac_executable_p="test -f"
18207 fi
18208 rm -f conf$$.file
18209
18210 # Extract the first word of "msgfmt", so it can be a program name with args.
18211 set dummy msgfmt; ac_word=$2
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18213 $as_echo_n "checking for $ac_word... " >&6; }
18214 if ${ac_cv_path_MSGFMT+:} false; then :
18215 $as_echo_n "(cached) " >&6
18216 else
18217 case "$MSGFMT" in
18218 [\\/]* | ?:[\\/]*)
18219 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18220 ;;
18221 *)
18222 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18223 for ac_dir in $PATH; do
18224 IFS="$ac_save_IFS"
18225 test -z "$ac_dir" && ac_dir=.
18226 for ac_exec_ext in '' $ac_executable_extensions; do
18227 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18228 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
18229 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18230 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
18231 break 2
18232 fi
18233 fi
18234 done
18235 done
18236 IFS="$ac_save_IFS"
18237 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
18238 ;;
18239 esac
18240 fi
18241 MSGFMT="$ac_cv_path_MSGFMT"
18242 if test "$MSGFMT" != ":"; then
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18244 $as_echo "$MSGFMT" >&6; }
18245 else
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18247 $as_echo "no" >&6; }
18248 fi
18249
18250 # Extract the first word of "gmsgfmt", so it can be a program name with args.
18251 set dummy gmsgfmt; ac_word=$2
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18253 $as_echo_n "checking for $ac_word... " >&6; }
18254 if ${ac_cv_path_GMSGFMT+:} false; then :
18255 $as_echo_n "(cached) " >&6
18256 else
18257 case $GMSGFMT in
18258 [\\/]* | ?:[\\/]*)
18259 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
18260 ;;
18261 *)
18262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18263 for as_dir in $PATH
18264 do
18265 IFS=$as_save_IFS
18266 test -z "$as_dir" && as_dir=.
18267 for ac_exec_ext in '' $ac_executable_extensions; do
18268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18269 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
18270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18271 break 2
18272 fi
18273 done
18274 done
18275 IFS=$as_save_IFS
18276
18277 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
18278 ;;
18279 esac
18280 fi
18281 GMSGFMT=$ac_cv_path_GMSGFMT
18282 if test -n "$GMSGFMT"; then
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
18284 $as_echo "$GMSGFMT" >&6; }
18285 else
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18287 $as_echo "no" >&6; }
18288 fi
18289
18290
18291
18292
18293 # Prepare PATH_SEPARATOR.
18294 # The user is always right.
18295 if test "${PATH_SEPARATOR+set}" != set; then
18296 echo "#! /bin/sh" >conf$$.sh
18297 echo "exit 0" >>conf$$.sh
18298 chmod +x conf$$.sh
18299 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18300 PATH_SEPARATOR=';'
18301 else
18302 PATH_SEPARATOR=:
18303 fi
18304 rm -f conf$$.sh
18305 fi
18306
18307 # Find out how to test for executable files. Don't use a zero-byte file,
18308 # as systems may use methods other than mode bits to determine executability.
18309 cat >conf$$.file <<_ASEOF
18310 #! /bin/sh
18311 exit 0
18312 _ASEOF
18313 chmod +x conf$$.file
18314 if test -x conf$$.file >/dev/null 2>&1; then
18315 ac_executable_p="test -x"
18316 else
18317 ac_executable_p="test -f"
18318 fi
18319 rm -f conf$$.file
18320
18321 # Extract the first word of "xgettext", so it can be a program name with args.
18322 set dummy xgettext; ac_word=$2
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18324 $as_echo_n "checking for $ac_word... " >&6; }
18325 if ${ac_cv_path_XGETTEXT+:} false; then :
18326 $as_echo_n "(cached) " >&6
18327 else
18328 case "$XGETTEXT" in
18329 [\\/]* | ?:[\\/]*)
18330 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18331 ;;
18332 *)
18333 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18334 for ac_dir in $PATH; do
18335 IFS="$ac_save_IFS"
18336 test -z "$ac_dir" && ac_dir=.
18337 for ac_exec_ext in '' $ac_executable_extensions; do
18338 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18339 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
18340 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18341 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
18342 break 2
18343 fi
18344 fi
18345 done
18346 done
18347 IFS="$ac_save_IFS"
18348 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
18349 ;;
18350 esac
18351 fi
18352 XGETTEXT="$ac_cv_path_XGETTEXT"
18353 if test "$XGETTEXT" != ":"; then
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18355 $as_echo "$XGETTEXT" >&6; }
18356 else
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18358 $as_echo "no" >&6; }
18359 fi
18360
18361 rm -f messages.po
18362
18363
18364 # Prepare PATH_SEPARATOR.
18365 # The user is always right.
18366 if test "${PATH_SEPARATOR+set}" != set; then
18367 echo "#! /bin/sh" >conf$$.sh
18368 echo "exit 0" >>conf$$.sh
18369 chmod +x conf$$.sh
18370 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18371 PATH_SEPARATOR=';'
18372 else
18373 PATH_SEPARATOR=:
18374 fi
18375 rm -f conf$$.sh
18376 fi
18377
18378 # Find out how to test for executable files. Don't use a zero-byte file,
18379 # as systems may use methods other than mode bits to determine executability.
18380 cat >conf$$.file <<_ASEOF
18381 #! /bin/sh
18382 exit 0
18383 _ASEOF
18384 chmod +x conf$$.file
18385 if test -x conf$$.file >/dev/null 2>&1; then
18386 ac_executable_p="test -x"
18387 else
18388 ac_executable_p="test -f"
18389 fi
18390 rm -f conf$$.file
18391
18392 # Extract the first word of "msgmerge", so it can be a program name with args.
18393 set dummy msgmerge; ac_word=$2
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18395 $as_echo_n "checking for $ac_word... " >&6; }
18396 if ${ac_cv_path_MSGMERGE+:} false; then :
18397 $as_echo_n "(cached) " >&6
18398 else
18399 case "$MSGMERGE" in
18400 [\\/]* | ?:[\\/]*)
18401 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
18402 ;;
18403 *)
18404 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18405 for ac_dir in $PATH; do
18406 IFS="$ac_save_IFS"
18407 test -z "$ac_dir" && ac_dir=.
18408 for ac_exec_ext in '' $ac_executable_extensions; do
18409 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18410 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
18411 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
18412 break 2
18413 fi
18414 fi
18415 done
18416 done
18417 IFS="$ac_save_IFS"
18418 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
18419 ;;
18420 esac
18421 fi
18422 MSGMERGE="$ac_cv_path_MSGMERGE"
18423 if test "$MSGMERGE" != ":"; then
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18425 $as_echo "$MSGMERGE" >&6; }
18426 else
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18428 $as_echo "no" >&6; }
18429 fi
18430
18431
18432 if test "$GMSGFMT" != ":"; then
18433 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
18434 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18435 : ;
18436 else
18437 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
18439 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
18440 GMSGFMT=":"
18441 fi
18442 fi
18443
18444 if test "$XGETTEXT" != ":"; then
18445 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
18446 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18447 : ;
18448 else
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
18450 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
18451 XGETTEXT=":"
18452 fi
18453 rm -f messages.po
18454 fi
18455
18456 ac_config_commands="$ac_config_commands default-2"
18457
18458
18459
18460
18461
18462 for ac_prog in 'bison -y' byacc
18463 do
18464 # Extract the first word of "$ac_prog", so it can be a program name with args.
18465 set dummy $ac_prog; ac_word=$2
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18467 $as_echo_n "checking for $ac_word... " >&6; }
18468 if ${ac_cv_prog_YACC+:} false; then :
18469 $as_echo_n "(cached) " >&6
18470 else
18471 if test -n "$YACC"; then
18472 ac_cv_prog_YACC="$YACC" # Let the user override the test.
18473 else
18474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18475 for as_dir in $PATH
18476 do
18477 IFS=$as_save_IFS
18478 test -z "$as_dir" && as_dir=.
18479 for ac_exec_ext in '' $ac_executable_extensions; do
18480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18481 ac_cv_prog_YACC="$ac_prog"
18482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18483 break 2
18484 fi
18485 done
18486 done
18487 IFS=$as_save_IFS
18488
18489 fi
18490 fi
18491 YACC=$ac_cv_prog_YACC
18492 if test -n "$YACC"; then
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
18494 $as_echo "$YACC" >&6; }
18495 else
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18497 $as_echo "no" >&6; }
18498 fi
18499
18500
18501 test -n "$YACC" && break
18502 done
18503 test -n "$YACC" || YACC="yacc"
18504
18505 for ac_prog in flex lex
18506 do
18507 # Extract the first word of "$ac_prog", so it can be a program name with args.
18508 set dummy $ac_prog; ac_word=$2
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18510 $as_echo_n "checking for $ac_word... " >&6; }
18511 if ${ac_cv_prog_LEX+:} false; then :
18512 $as_echo_n "(cached) " >&6
18513 else
18514 if test -n "$LEX"; then
18515 ac_cv_prog_LEX="$LEX" # Let the user override the test.
18516 else
18517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18518 for as_dir in $PATH
18519 do
18520 IFS=$as_save_IFS
18521 test -z "$as_dir" && as_dir=.
18522 for ac_exec_ext in '' $ac_executable_extensions; do
18523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18524 ac_cv_prog_LEX="$ac_prog"
18525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18526 break 2
18527 fi
18528 done
18529 done
18530 IFS=$as_save_IFS
18531
18532 fi
18533 fi
18534 LEX=$ac_cv_prog_LEX
18535 if test -n "$LEX"; then
18536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
18537 $as_echo "$LEX" >&6; }
18538 else
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18540 $as_echo "no" >&6; }
18541 fi
18542
18543
18544 test -n "$LEX" && break
18545 done
18546 test -n "$LEX" || LEX=":"
18547
18548 case "$LEX" in
18549 :|*"missing "*) ;;
18550 *) cat >conftest.l <<_ACEOF
18551 %%
18552 a { ECHO; }
18553 b { REJECT; }
18554 c { yymore (); }
18555 d { yyless (1); }
18556 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
18557 yyless ((input () != 0)); }
18558 f { unput (yytext[0]); }
18559 . { BEGIN INITIAL; }
18560 %%
18561 #ifdef YYTEXT_POINTER
18562 extern char *yytext;
18563 #endif
18564 int
18565 main (void)
18566 {
18567 return ! yylex () + ! yywrap ();
18568 }
18569 _ACEOF
18570 { { ac_try="$LEX conftest.l"
18571 case "(($ac_try" in
18572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573 *) ac_try_echo=$ac_try;;
18574 esac
18575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18576 $as_echo "$ac_try_echo"; } >&5
18577 (eval "$LEX conftest.l") 2>&5
18578 ac_status=$?
18579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18580 test $ac_status = 0; }
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
18582 $as_echo_n "checking lex output file root... " >&6; }
18583 if ${ac_cv_prog_lex_root+:} false; then :
18584 $as_echo_n "(cached) " >&6
18585 else
18586
18587 if test -f lex.yy.c; then
18588 ac_cv_prog_lex_root=lex.yy
18589 elif test -f lexyy.c; then
18590 ac_cv_prog_lex_root=lexyy
18591 else
18592 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
18593 fi
18594 fi
18595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
18596 $as_echo "$ac_cv_prog_lex_root" >&6; }
18597 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
18598
18599 if test -z "${LEXLIB+set}"; then
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
18601 $as_echo_n "checking lex library... " >&6; }
18602 if ${ac_cv_lib_lex+:} false; then :
18603 $as_echo_n "(cached) " >&6
18604 else
18605
18606 ac_save_LIBS=$LIBS
18607 ac_cv_lib_lex='none needed'
18608 for ac_lib in '' -lfl -ll; do
18609 LIBS="$ac_lib $ac_save_LIBS"
18610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18611 /* end confdefs.h. */
18612 `cat $LEX_OUTPUT_ROOT.c`
18613 _ACEOF
18614 if ac_fn_c_try_link "$LINENO"; then :
18615 ac_cv_lib_lex=$ac_lib
18616 fi
18617 rm -f core conftest.err conftest.$ac_objext \
18618 conftest$ac_exeext conftest.$ac_ext
18619 test "$ac_cv_lib_lex" != 'none needed' && break
18620 done
18621 LIBS=$ac_save_LIBS
18622
18623 fi
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
18625 $as_echo "$ac_cv_lib_lex" >&6; }
18626 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
18627 fi
18628
18629
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
18631 $as_echo_n "checking whether yytext is a pointer... " >&6; }
18632 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
18633 $as_echo_n "(cached) " >&6
18634 else
18635 # POSIX says lex can declare yytext either as a pointer or an array; the
18636 # default is implementation-dependent. Figure out which it is, since
18637 # not all implementations provide the %pointer and %array declarations.
18638 ac_cv_prog_lex_yytext_pointer=no
18639 ac_save_LIBS=$LIBS
18640 LIBS="$LEXLIB $ac_save_LIBS"
18641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18642 /* end confdefs.h. */
18643
18644 #define YYTEXT_POINTER 1
18645 `cat $LEX_OUTPUT_ROOT.c`
18646 _ACEOF
18647 if ac_fn_c_try_link "$LINENO"; then :
18648 ac_cv_prog_lex_yytext_pointer=yes
18649 fi
18650 rm -f core conftest.err conftest.$ac_objext \
18651 conftest$ac_exeext conftest.$ac_ext
18652 LIBS=$ac_save_LIBS
18653
18654 fi
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
18656 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
18657 if test $ac_cv_prog_lex_yytext_pointer = yes; then
18658
18659 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
18660
18661 fi
18662 rm -f conftest.l $LEX_OUTPUT_ROOT.c
18663 ;;
18664 esac
18665 if test "$LEX" = :; then
18666 LEX=${am_missing_run}flex
18667 fi
18668
18669
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18671 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18672 # Check whether --enable-maintainer-mode was given.
18673 if test "${enable_maintainer_mode+set}" = set; then :
18674 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18675 else
18676 USE_MAINTAINER_MODE=no
18677 fi
18678
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18680 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18681 if test $USE_MAINTAINER_MODE = yes; then
18682 MAINTAINER_MODE_TRUE=
18683 MAINTAINER_MODE_FALSE='#'
18684 else
18685 MAINTAINER_MODE_TRUE='#'
18686 MAINTAINER_MODE_FALSE=
18687 fi
18688
18689 MAINT=$MAINTAINER_MODE_TRUE
18690
18691
18692 if false; then
18693 GENINSRC_NEVER_TRUE=
18694 GENINSRC_NEVER_FALSE='#'
18695 else
18696 GENINSRC_NEVER_TRUE='#'
18697 GENINSRC_NEVER_FALSE=
18698 fi
18699
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
18701 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
18702 if ${gcc_cv_prog_cmp_skip+:} false; then :
18703 $as_echo_n "(cached) " >&6
18704 else
18705 echo abfoo >t1
18706 echo cdfoo >t2
18707 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
18708 if cmp t1 t2 2 2 > /dev/null 2>&1; then
18709 if cmp t1 t2 1 1 > /dev/null 2>&1; then
18710 :
18711 else
18712 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
18713 fi
18714 fi
18715 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
18716 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
18717 :
18718 else
18719 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
18720 fi
18721 fi
18722 rm t1 t2
18723
18724 fi
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
18726 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
18727 do_compare="$gcc_cv_prog_cmp_skip"
18728
18729
18730
18731 . ${srcdir}/configure.host
18732
18733
18734
18735
18736 # We use headers from include/ that check various HAVE_*_H macros, thus
18737 # should ensure they are set by configure. This is true even when C99
18738 # guarantees they are available.
18739 # sha1.h and md4.h test HAVE_LIMITS_H, HAVE_SYS_TYPES_H and HAVE_STDINT_H
18740 # plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
18741 # Besides those, we need to check anything used in ld/ not in C99.
18742 for ac_header in fcntl.h elf-hints.h limits.h inttypes.h stdint.h \
18743 sys/file.h sys/mman.h sys/param.h sys/stat.h sys/time.h \
18744 sys/types.h unistd.h
18745 do :
18746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18747 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18748 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18749 cat >>confdefs.h <<_ACEOF
18750 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18751 _ACEOF
18752
18753 fi
18754
18755 done
18756
18757 for ac_func in close glob lseek mkstemp open realpath waitpid
18758 do :
18759 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18760 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18761 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18762 cat >>confdefs.h <<_ACEOF
18763 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18764 _ACEOF
18765
18766 fi
18767 done
18768
18769
18770
18771 case "${host}" in
18772 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
18773
18774 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
18775 ;;
18776 esac
18777
18778 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
18779 if test "x$ac_cv_have_decl_environ" = xyes; then :
18780 ac_have_decl=1
18781 else
18782 ac_have_decl=0
18783 fi
18784
18785 cat >>confdefs.h <<_ACEOF
18786 #define HAVE_DECL_ENVIRON $ac_have_decl
18787 _ACEOF
18788 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
18789 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
18790 ac_have_decl=1
18791 else
18792 ac_have_decl=0
18793 fi
18794
18795 cat >>confdefs.h <<_ACEOF
18796 #define HAVE_DECL_STPCPY $ac_have_decl
18797 _ACEOF
18798
18799
18800
18801
18802
18803 for ac_header in $ac_header_list
18804 do :
18805 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18806 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18807 "
18808 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18809 cat >>confdefs.h <<_ACEOF
18810 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18811 _ACEOF
18812
18813 fi
18814
18815 done
18816
18817
18818
18819
18820
18821
18822
18823 save_ASAN_OPTIONS="$ASAN_OPTIONS"
18824 ASAN_OPTIONS=detect_leaks=0
18825 export ASAN_OPTIONS
18826
18827 for ac_func in getpagesize
18828 do :
18829 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18830 if test "x$ac_cv_func_getpagesize" = xyes; then :
18831 cat >>confdefs.h <<_ACEOF
18832 #define HAVE_GETPAGESIZE 1
18833 _ACEOF
18834
18835 fi
18836 done
18837
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18839 $as_echo_n "checking for working mmap... " >&6; }
18840 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
18841 $as_echo_n "(cached) " >&6
18842 else
18843 if test "$cross_compiling" = yes; then :
18844 ac_cv_func_mmap_fixed_mapped=no
18845 else
18846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18847 /* end confdefs.h. */
18848 $ac_includes_default
18849 /* malloc might have been renamed as rpl_malloc. */
18850 #undef malloc
18851
18852 /* Thanks to Mike Haertel and Jim Avera for this test.
18853 Here is a matrix of mmap possibilities:
18854 mmap private not fixed
18855 mmap private fixed at somewhere currently unmapped
18856 mmap private fixed at somewhere already mapped
18857 mmap shared not fixed
18858 mmap shared fixed at somewhere currently unmapped
18859 mmap shared fixed at somewhere already mapped
18860 For private mappings, we should verify that changes cannot be read()
18861 back from the file, nor mmap's back from the file at a different
18862 address. (There have been systems where private was not correctly
18863 implemented like the infamous i386 svr4.0, and systems where the
18864 VM page cache was not coherent with the file system buffer cache
18865 like early versions of FreeBSD and possibly contemporary NetBSD.)
18866 For shared mappings, we should conversely verify that changes get
18867 propagated back to all the places they're supposed to be.
18868
18869 Grep wants private fixed already mapped.
18870 The main things grep needs to know about mmap are:
18871 * does it exist and is it safe to write into the mmap'd area
18872 * how to use it (BSD variants) */
18873
18874 #include <fcntl.h>
18875 #include <sys/mman.h>
18876
18877 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18878 char *malloc ();
18879 #endif
18880
18881 /* This mess was copied from the GNU getpagesize.h. */
18882 #ifndef HAVE_GETPAGESIZE
18883 # ifdef _SC_PAGESIZE
18884 # define getpagesize() sysconf(_SC_PAGESIZE)
18885 # else /* no _SC_PAGESIZE */
18886 # ifdef HAVE_SYS_PARAM_H
18887 # include <sys/param.h>
18888 # ifdef EXEC_PAGESIZE
18889 # define getpagesize() EXEC_PAGESIZE
18890 # else /* no EXEC_PAGESIZE */
18891 # ifdef NBPG
18892 # define getpagesize() NBPG * CLSIZE
18893 # ifndef CLSIZE
18894 # define CLSIZE 1
18895 # endif /* no CLSIZE */
18896 # else /* no NBPG */
18897 # ifdef NBPC
18898 # define getpagesize() NBPC
18899 # else /* no NBPC */
18900 # ifdef PAGESIZE
18901 # define getpagesize() PAGESIZE
18902 # endif /* PAGESIZE */
18903 # endif /* no NBPC */
18904 # endif /* no NBPG */
18905 # endif /* no EXEC_PAGESIZE */
18906 # else /* no HAVE_SYS_PARAM_H */
18907 # define getpagesize() 8192 /* punt totally */
18908 # endif /* no HAVE_SYS_PARAM_H */
18909 # endif /* no _SC_PAGESIZE */
18910
18911 #endif /* no HAVE_GETPAGESIZE */
18912
18913 int
18914 main ()
18915 {
18916 char *data, *data2, *data3;
18917 const char *cdata2;
18918 int i, pagesize;
18919 int fd, fd2;
18920
18921 pagesize = getpagesize ();
18922
18923 /* First, make a file with some known garbage in it. */
18924 data = (char *) malloc (pagesize);
18925 if (!data)
18926 return 1;
18927 for (i = 0; i < pagesize; ++i)
18928 *(data + i) = rand ();
18929 umask (0);
18930 fd = creat ("conftest.mmap", 0600);
18931 if (fd < 0)
18932 return 2;
18933 if (write (fd, data, pagesize) != pagesize)
18934 return 3;
18935 close (fd);
18936
18937 /* Next, check that the tail of a page is zero-filled. File must have
18938 non-zero length, otherwise we risk SIGBUS for entire page. */
18939 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18940 if (fd2 < 0)
18941 return 4;
18942 cdata2 = "";
18943 if (write (fd2, cdata2, 1) != 1)
18944 return 5;
18945 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18946 if (data2 == MAP_FAILED)
18947 return 6;
18948 for (i = 0; i < pagesize; ++i)
18949 if (*(data2 + i))
18950 return 7;
18951 close (fd2);
18952 if (munmap (data2, pagesize))
18953 return 8;
18954
18955 /* Next, try to mmap the file at a fixed address which already has
18956 something else allocated at it. If we can, also make sure that
18957 we see the same garbage. */
18958 fd = open ("conftest.mmap", O_RDWR);
18959 if (fd < 0)
18960 return 9;
18961 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18962 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18963 return 10;
18964 for (i = 0; i < pagesize; ++i)
18965 if (*(data + i) != *(data2 + i))
18966 return 11;
18967
18968 /* Finally, make sure that changes to the mapped area do not
18969 percolate back to the file as seen by read(). (This is a bug on
18970 some variants of i386 svr4.0.) */
18971 for (i = 0; i < pagesize; ++i)
18972 *(data2 + i) = *(data2 + i) + 1;
18973 data3 = (char *) malloc (pagesize);
18974 if (!data3)
18975 return 12;
18976 if (read (fd, data3, pagesize) != pagesize)
18977 return 13;
18978 for (i = 0; i < pagesize; ++i)
18979 if (*(data + i) != *(data3 + i))
18980 return 14;
18981 close (fd);
18982 return 0;
18983 }
18984 _ACEOF
18985 if ac_fn_c_try_run "$LINENO"; then :
18986 ac_cv_func_mmap_fixed_mapped=yes
18987 else
18988 ac_cv_func_mmap_fixed_mapped=no
18989 fi
18990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18991 conftest.$ac_objext conftest.beam conftest.$ac_ext
18992 fi
18993
18994 fi
18995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18996 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18997 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18998
18999 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
19000
19001 fi
19002 rm -f conftest.mmap conftest.txt
19003
19004 ASAN_OPTIONS="$save_ASAN_OPTIONS"
19005
19006
19007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19008 $as_echo_n "checking for library containing dlopen... " >&6; }
19009 if ${ac_cv_search_dlopen+:} false; then :
19010 $as_echo_n "(cached) " >&6
19011 else
19012 ac_func_search_save_LIBS=$LIBS
19013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19014 /* end confdefs.h. */
19015
19016 /* Override any GCC internal prototype to avoid an error.
19017 Use char because int might match the return type of a GCC
19018 builtin and then its argument prototype would still apply. */
19019 #ifdef __cplusplus
19020 extern "C"
19021 #endif
19022 char dlopen ();
19023 int
19024 main ()
19025 {
19026 return dlopen ();
19027 ;
19028 return 0;
19029 }
19030 _ACEOF
19031 for ac_lib in '' dl; do
19032 if test -z "$ac_lib"; then
19033 ac_res="none required"
19034 else
19035 ac_res=-l$ac_lib
19036 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19037 fi
19038 if ac_fn_c_try_link "$LINENO"; then :
19039 ac_cv_search_dlopen=$ac_res
19040 fi
19041 rm -f core conftest.err conftest.$ac_objext \
19042 conftest$ac_exeext
19043 if ${ac_cv_search_dlopen+:} false; then :
19044 break
19045 fi
19046 done
19047 if ${ac_cv_search_dlopen+:} false; then :
19048
19049 else
19050 ac_cv_search_dlopen=no
19051 fi
19052 rm conftest.$ac_ext
19053 LIBS=$ac_func_search_save_LIBS
19054 fi
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19056 $as_echo "$ac_cv_search_dlopen" >&6; }
19057 ac_res=$ac_cv_search_dlopen
19058 if test "$ac_res" != no; then :
19059 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19060
19061 fi
19062
19063
19064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
19065 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
19066 if ${ld_cv_decl_getopt_unistd_h+:} false; then :
19067 $as_echo_n "(cached) " >&6
19068 else
19069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19070 /* end confdefs.h. */
19071 #include <unistd.h>
19072 int
19073 main ()
19074 {
19075 extern int getopt (int, char *const*, const char *);
19076 ;
19077 return 0;
19078 }
19079 _ACEOF
19080 if ac_fn_c_try_compile "$LINENO"; then :
19081 ld_cv_decl_getopt_unistd_h=yes
19082 else
19083 ld_cv_decl_getopt_unistd_h=no
19084 fi
19085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19086 fi
19087
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
19089 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
19090 if test $ld_cv_decl_getopt_unistd_h = yes; then
19091
19092 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
19093
19094 fi
19095
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
19097 $as_echo_n "checking whether to use xxhash... " >&6; }
19098
19099 # Check whether --with-xxhash was given.
19100 if test "${with_xxhash+set}" = set; then :
19101 withval=$with_xxhash;
19102 else
19103 with_xxhash=auto
19104 fi
19105
19106 if test "x$with_xxhash" != "xno"; then
19107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19108 /* end confdefs.h. */
19109
19110 #define XXH_INLINE_ALL
19111 #include <xxhash.h>
19112 XXH128_hash_t r;
19113 void foo (void) { r = XXH128("foo", 3, 0); }
19114
19115 _ACEOF
19116 if ac_fn_c_try_compile "$LINENO"; then :
19117
19118 with_xxhash=yes
19119
19120 $as_echo "#define WITH_XXHASH 1" >>confdefs.h
19121
19122
19123 else
19124
19125 if test "$with_xxhash" = yes; then
19126 as_fn_error $? "xxhash is missing or unusable" "$LINENO" 5
19127 fi
19128 with_xxhash=no
19129 fi
19130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19131 fi
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
19133 $as_echo "$with_xxhash" >&6; }
19134
19135 # Link in zlib/zstd if we can. This allows us to read and write
19136 # compressed debug sections.
19137
19138 # Use the system's zlib library.
19139 zlibdir="-L\$(top_builddir)/../zlib"
19140 zlibinc="-I\$(top_srcdir)/../zlib"
19141
19142 # Check whether --with-system-zlib was given.
19143 if test "${with_system_zlib+set}" = set; then :
19144 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
19145 zlibdir=
19146 zlibinc=
19147 fi
19148
19149 fi
19150
19151
19152
19153
19154
19155
19156 # Check whether --with-zstd was given.
19157 if test "${with_zstd+set}" = set; then :
19158 withval=$with_zstd;
19159 else
19160 with_zstd=auto
19161 fi
19162
19163
19164 if test "$with_zstd" != no; then :
19165
19166 pkg_failed=no
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
19168 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
19169
19170 if test -n "$ZSTD_CFLAGS"; then
19171 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
19172 elif test -n "$PKG_CONFIG"; then
19173 if test -n "$PKG_CONFIG" && \
19174 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19175 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19176 ac_status=$?
19177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19178 test $ac_status = 0; }; then
19179 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
19180 test "x$?" != "x0" && pkg_failed=yes
19181 else
19182 pkg_failed=yes
19183 fi
19184 else
19185 pkg_failed=untried
19186 fi
19187 if test -n "$ZSTD_LIBS"; then
19188 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
19189 elif test -n "$PKG_CONFIG"; then
19190 if test -n "$PKG_CONFIG" && \
19191 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19192 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19193 ac_status=$?
19194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19195 test $ac_status = 0; }; then
19196 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
19197 test "x$?" != "x0" && pkg_failed=yes
19198 else
19199 pkg_failed=yes
19200 fi
19201 else
19202 pkg_failed=untried
19203 fi
19204
19205 if test $pkg_failed = no; then
19206 pkg_save_LDFLAGS="$LDFLAGS"
19207 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
19208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19209 /* end confdefs.h. */
19210
19211 int
19212 main ()
19213 {
19214
19215 ;
19216 return 0;
19217 }
19218 _ACEOF
19219 if ac_fn_c_try_link "$LINENO"; then :
19220
19221 else
19222 pkg_failed=yes
19223 fi
19224 rm -f core conftest.err conftest.$ac_objext \
19225 conftest$ac_exeext conftest.$ac_ext
19226 LDFLAGS=$pkg_save_LDFLAGS
19227 fi
19228
19229
19230
19231 if test $pkg_failed = yes; then
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19233 $as_echo "no" >&6; }
19234
19235 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19236 _pkg_short_errors_supported=yes
19237 else
19238 _pkg_short_errors_supported=no
19239 fi
19240 if test $_pkg_short_errors_supported = yes; then
19241 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19242 else
19243 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19244 fi
19245 # Put the nasty error message in config.log where it belongs
19246 echo "$ZSTD_PKG_ERRORS" >&5
19247
19248
19249 if test "$with_zstd" = yes; then
19250 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19251 fi
19252
19253 elif test $pkg_failed = untried; then
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19255 $as_echo "no" >&6; }
19256
19257 if test "$with_zstd" = yes; then
19258 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19259 fi
19260
19261 else
19262 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
19263 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19265 $as_echo "yes" >&6; }
19266
19267
19268 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
19269
19270
19271 fi
19272
19273 fi
19274
19275
19276 # target-specific stuff:
19277
19278 all_targets=
19279 EMUL=
19280 all_emuls=
19281 all_emul_extras=
19282 all_libpath=
19283 TDIRS=
19284
19285 elf_list_options=false
19286 elf_shlib_list_options=false
19287 elf_plt_unwind_list_options=false
19288 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
19289 do
19290 if test "$targ_alias" = "all"; then
19291 all_targets=true
19292 elf_list_options=true
19293 elf_shlib_list_options=true
19294 elf_plt_unwind_list_options=true
19295 else
19296 # Canonicalize the secondary target names.
19297 result=`$ac_config_sub $targ_alias 2>/dev/null`
19298 if test -n "$result"; then
19299 targ=$result
19300 else
19301 targ=$targ_alias
19302 fi
19303
19304 . ${srcdir}/configure.tgt
19305
19306 if test "$targ" = "$target"; then
19307 EMUL=$targ_emul
19308 fi
19309
19310 if test x${enable_64_bit_bfd} = xno; then
19311 . ${srcdir}/../bfd/config.bfd
19312 fi
19313
19314 if test x${enable_64_bit_bfd} = xyes; then
19315 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
19316 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
19317 fi
19318
19319 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
19320 case " $all_emuls " in
19321 *" e${i}.o "*) ;;
19322 *)
19323 all_emuls="$all_emuls e${i}.o"
19324 eval result=\$tdir_$i
19325 test -z "$result" && result=$targ_alias
19326 TDIRS="$TDIRS
19327 tdir_$i=$result"
19328 case "${i}" in
19329 *elf*)
19330 elf_list_options=true
19331 ;;
19332 *)
19333 if $GREP "TEMPLATE_NAME=elf" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
19334 elf_list_options=true
19335 fi
19336 ;;
19337 esac
19338 if test "$elf_list_options" = "true"; then
19339 source_sh()
19340 {
19341 . $1
19342 }
19343 source_sh ${srcdir}/emulparams/${i}.sh
19344 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
19345 elf_shlib_list_options=true
19346 fi
19347 if test x${PLT_UNWIND} = xyes; then
19348 elf_plt_unwind_list_options=true
19349 fi
19350 fi
19351 ;;
19352 esac
19353 done
19354
19355 for i in $targ_emul $targ_extra_libpath; do
19356 case " $all_libpath " in
19357 *" ${i} "*) ;;
19358 *)
19359 if test -z "$all_libpath"; then
19360 all_libpath=${i}
19361 else
19362 all_libpath="$all_libpath ${i}"
19363 fi
19364 ;;
19365 esac
19366 done
19367
19368 for i in $targ_extra_ofiles; do
19369 case " $all_emul_extras " in
19370 *" ${i} "*) ;;
19371 *)
19372 all_emul_extras="$all_emul_extras ${i}"
19373 ;;
19374 esac
19375 done
19376
19377 fi
19378 done
19379
19380 if test x$ac_default_compressed_debug_sections = xyes ; then
19381
19382 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
19383
19384 fi
19385
19386
19387 cat >>confdefs.h <<_ACEOF
19388 #define DEFAULT_COMPRESSED_DEBUG_ALGORITHM $ac_default_compressed_debug_sections_algorithm
19389 _ACEOF
19390
19391
19392 if test "${ac_default_new_dtags}" = unset; then
19393 ac_default_new_dtags=0
19394 fi
19395
19396 cat >>confdefs.h <<_ACEOF
19397 #define DEFAULT_NEW_DTAGS $ac_default_new_dtags
19398 _ACEOF
19399
19400
19401 if test "${ac_default_ld_z_relro}" = unset; then
19402 ac_default_ld_z_relro=0
19403 fi
19404
19405 cat >>confdefs.h <<_ACEOF
19406 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
19407 _ACEOF
19408
19409
19410 ac_default_ld_textrel_check_warning=0
19411 case "${ac_default_ld_textrel_check}" in
19412 unset|no)
19413 ac_default_ld_textrel_check=textrel_check_none
19414 ;;
19415 yes|warning)
19416 ac_default_ld_textrel_check=textrel_check_warning
19417 ac_default_ld_textrel_check_warning=1
19418 ;;
19419 error)
19420 ac_default_ld_textrel_check=textrel_check_error
19421 ;;
19422 esac
19423
19424 cat >>confdefs.h <<_ACEOF
19425 #define DEFAULT_LD_TEXTREL_CHECK $ac_default_ld_textrel_check
19426 _ACEOF
19427
19428
19429 cat >>confdefs.h <<_ACEOF
19430 #define DEFAULT_LD_TEXTREL_CHECK_WARNING $ac_default_ld_textrel_check_warning
19431 _ACEOF
19432
19433
19434 if test "${ac_default_ld_z_separate_code}" = unset; then
19435 ac_default_ld_z_separate_code=0
19436 fi
19437
19438 cat >>confdefs.h <<_ACEOF
19439 #define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
19440 _ACEOF
19441
19442
19443 if test "${ac_default_ld_rosegment}" = unset; then
19444 ac_default_ld_rosegment=0
19445 fi
19446
19447 cat >>confdefs.h <<_ACEOF
19448 #define DEFAULT_LD_ROSEGMENT $ac_default_ld_rosegment
19449 _ACEOF
19450
19451
19452 if test "${ac_default_ld_z_mark_plt}" = unset; then
19453 ac_default_ld_z_mark_plt=0
19454 fi
19455
19456 cat >>confdefs.h <<_ACEOF
19457 #define DEFAULT_LD_Z_MARK_PLT $ac_default_ld_z_mark_plt
19458 _ACEOF
19459
19460
19461 if test "${ac_default_ld_z_memory_seal}" = unset; then
19462 ac_default_ld_z_memory_seal=0
19463 fi
19464
19465 cat >>confdefs.h <<_ACEOF
19466 #define DEFAULT_LD_Z_MEMORY_SEAL $ac_default_ld_z_memory_seal
19467 _ACEOF
19468
19469
19470
19471
19472 cat >>confdefs.h <<_ACEOF
19473 #define DEFAULT_LD_WARN_EXECSTACK $ac_default_ld_warn_execstack
19474 _ACEOF
19475
19476
19477
19478 cat >>confdefs.h <<_ACEOF
19479 #define DEFAULT_LD_ERROR_EXECSTACK $ac_default_ld_error_execstack
19480 _ACEOF
19481
19482
19483 if test "${ac_default_ld_warn_rwx_segments}" = unset; then
19484 ac_default_ld_warn_rwx_segments=1
19485 fi
19486
19487 cat >>confdefs.h <<_ACEOF
19488 #define DEFAULT_LD_WARN_RWX_SEGMENTS $ac_default_ld_warn_rwx_segments
19489 _ACEOF
19490
19491
19492
19493 cat >>confdefs.h <<_ACEOF
19494 #define DEFAULT_LD_ERROR_RWX_SEGMENTS $ac_default_ld_error_rwx_segments
19495 _ACEOF
19496
19497
19498 if test "${ac_default_ld_default_execstack}" = unset; then
19499 ac_default_ld_default_execstack=1
19500 fi
19501
19502 cat >>confdefs.h <<_ACEOF
19503 #define DEFAULT_LD_EXECSTACK $ac_default_ld_default_execstack
19504 _ACEOF
19505
19506
19507
19508 if test "${ac_support_error_handling_script}" = unset; then
19509 ac_support_error_handling_script=1
19510 fi
19511
19512 cat >>confdefs.h <<_ACEOF
19513 #define SUPPORT_ERROR_HANDLING_SCRIPT $ac_support_error_handling_script
19514 _ACEOF
19515
19516
19517
19518 cat >>confdefs.h <<_ACEOF
19519 #define DEFAULT_EMIT_SYSV_HASH $ac_default_emit_sysv_hash
19520 _ACEOF
19521
19522
19523
19524 cat >>confdefs.h <<_ACEOF
19525 #define DEFAULT_EMIT_GNU_HASH $ac_default_emit_gnu_hash
19526 _ACEOF
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537 if test x${all_targets} = xtrue; then
19538 if test x${enable_64_bit_bfd} = xyes; then
19539 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
19540 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
19541 else
19542 EMULATION_OFILES='$(ALL_EMULATIONS)'
19543 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
19544 fi
19545 else
19546 EMULATION_OFILES=$all_emuls
19547 EMUL_EXTRA_OFILES=$all_emul_extras
19548 fi
19549
19550
19551
19552
19553 EMULATION_LIBPATH=$all_libpath
19554
19555
19556 if test x${enable_static} = xno; then
19557 TESTBFDLIB="-Wl,--rpath,../bfd/.libs ../bfd/.libs/libbfd.so"
19558 TESTCTFLIB="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
19559 TESTSFRAMELIB="-Wl,--rpath,../libsframe/.libs ../libsframe/.libs/libsframe.so"
19560 else
19561 TESTBFDLIB="../bfd/.libs/libbfd.a"
19562 TESTCTFLIB="../libctf/.libs/libctf.a"
19563 TESTSFRAMELIB="../libsframe/.libs/libsframe.a"
19564 fi
19565 if test "${enable_libctf}" = no; then
19566 TESTCTFLIB=
19567 fi
19568
19569
19570
19571
19572 target_vendor=${target_vendor=$host_vendor}
19573 case "$target_vendor" in
19574 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
19575 *) EXTRA_SHLIB_EXTENSION= ;;
19576 esac
19577
19578 case "$target_os" in
19579 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
19580 esac
19581
19582 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
19583
19584 cat >>confdefs.h <<_ACEOF
19585 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
19586 _ACEOF
19587
19588 fi
19589
19590 ac_config_commands="$ac_config_commands default"
19591
19592
•19593 CTF_SOVER_EXT=$CTF_SOVER_EXT
19594
19595
19596
19597
19598
19599
19600
19601 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
19602
19603 cat >confcache <<\_ACEOF
19604 # This file is a shell script that caches the results of configure
19605 # tests run on this system so they can be shared between configure
19606 # scripts and configure runs, see configure's option --config-cache.
19607 # It is not useful on other systems. If it contains results you don't
19608 # want to keep, you may remove or edit it.
19609 #
19610 # config.status only pays attention to the cache file if you give it
19611 # the --recheck option to rerun configure.
19612 #
19613 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19614 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19615 # following values.
19616
19617 _ACEOF
19618
19619 # The following way of writing the cache mishandles newlines in values,
19620 # but we know of no workaround that is simple, portable, and efficient.
19621 # So, we kill variables containing newlines.
19622 # Ultrix sh set writes to stderr and can't be redirected directly,
19623 # and sets the high bit in the cache file unless we assign to the vars.
19624 (
19625 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19626 eval ac_val=\$$ac_var
19627 case $ac_val in #(
19628 *${as_nl}*)
19629 case $ac_var in #(
19630 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19631 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19632 esac
19633 case $ac_var in #(
19634 _ | IFS | as_nl) ;; #(
19635 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19636 *) { eval $ac_var=; unset $ac_var;} ;;
19637 esac ;;
19638 esac
19639 done
19640
19641 (set) 2>&1 |
19642 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19643 *${as_nl}ac_space=\ *)
19644 # `set' does not quote correctly, so add quotes: double-quote
19645 # substitution turns \\\\ into \\, and sed turns \\ into \.
19646 sed -n \
19647 "s/'/'\\\\''/g;
19648 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19649 ;; #(
19650 *)
19651 # `set' quotes correctly as required by POSIX, so do not add quotes.
19652 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19653 ;;
19654 esac |
19655 sort
19656 ) |
19657 sed '
19658 /^ac_cv_env_/b end
19659 t clear
19660 :clear
19661 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19662 t end
19663 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19664 :end' >>confcache
19665 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19666 if test -w "$cache_file"; then
19667 if test "x$cache_file" != "x/dev/null"; then
19668 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19669 $as_echo "$as_me: updating cache $cache_file" >&6;}
19670 if test ! -f "$cache_file" || test -h "$cache_file"; then
19671 cat confcache >"$cache_file"
19672 else
19673 case $cache_file in #(
19674 */* | ?:*)
19675 mv -f confcache "$cache_file"$$ &&
19676 mv -f "$cache_file"$$ "$cache_file" ;; #(
19677 *)
19678 mv -f confcache "$cache_file" ;;
19679 esac
19680 fi
19681 fi
19682 else
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19684 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19685 fi
19686 fi
19687 rm -f confcache
19688
19689 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19690 # Let make expand exec_prefix.
19691 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19692
19693 DEFS=-DHAVE_CONFIG_H
19694
19695 ac_libobjs=
19696 ac_ltlibobjs=
19697 U=
19698 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19699 # 1. Remove the extension, and $U if already installed.
19700 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19701 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19702 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19703 # will be set to the directory where LIBOBJS objects are built.
19704 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19705 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19706 done
19707 LIBOBJS=$ac_libobjs
19708
19709 LTLIBOBJS=$ac_ltlibobjs
19710
19711
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19713 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19714 if test -n "$am_sleep_pid"; then
19715 # Hide warnings about reused PIDs.
19716 wait $am_sleep_pid 2>/dev/null
19717 fi
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19719 $as_echo "done" >&6; }
19720 if test -n "$EXEEXT"; then
19721 am__EXEEXT_TRUE=
19722 am__EXEEXT_FALSE='#'
19723 else
19724 am__EXEEXT_TRUE='#'
19725 am__EXEEXT_FALSE=
19726 fi
19727
19728 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19729 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19731 fi
19732 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19733 as_fn_error $? "conditional \"AMDEP\" was never defined.
19734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19735 fi
19736 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19737 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19739 fi
19740 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19741 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19743 fi
19744 if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
19745 as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined.
19746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19747 fi
19748 if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
19749 as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined.
19750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19751 fi
19752 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19753 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19755 fi
19756 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
19757 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
19758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19759 fi
19760
19761 : "${CONFIG_STATUS=./config.status}"
19762 ac_write_fail=0
19763 ac_clean_files_save=$ac_clean_files
19764 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19765 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19766 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19767 as_write_fail=0
19768 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19769 #! $SHELL
19770 # Generated by $as_me.
19771 # Run this file to recreate the current configuration.
19772 # Compiler output produced by configure, useful for debugging
19773 # configure, is in config.log if it exists.
19774
19775 debug=false
19776 ac_cs_recheck=false
19777 ac_cs_silent=false
19778
19779 SHELL=\${CONFIG_SHELL-$SHELL}
19780 export SHELL
19781 _ASEOF
19782 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19783 ## -------------------- ##
19784 ## M4sh Initialization. ##
19785 ## -------------------- ##
19786
19787 # Be more Bourne compatible
19788 DUALCASE=1; export DUALCASE # for MKS sh
19789 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19790 emulate sh
19791 NULLCMD=:
19792 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19793 # is contrary to our usage. Disable this feature.
19794 alias -g '${1+"$@"}'='"$@"'
19795 setopt NO_GLOB_SUBST
19796 else
19797 case `(set -o) 2>/dev/null` in #(
19798 *posix*) :
19799 set -o posix ;; #(
19800 *) :
19801 ;;
19802 esac
19803 fi
19804
19805
19806 as_nl='
19807 '
19808 export as_nl
19809 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19810 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19811 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19812 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19813 # Prefer a ksh shell builtin over an external printf program on Solaris,
19814 # but without wasting forks for bash or zsh.
19815 if test -z "$BASH_VERSION$ZSH_VERSION" \
19816 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19817 as_echo='print -r --'
19818 as_echo_n='print -rn --'
19819 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19820 as_echo='printf %s\n'
19821 as_echo_n='printf %s'
19822 else
19823 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19824 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19825 as_echo_n='/usr/ucb/echo -n'
19826 else
19827 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19828 as_echo_n_body='eval
19829 arg=$1;
19830 case $arg in #(
19831 *"$as_nl"*)
19832 expr "X$arg" : "X\\(.*\\)$as_nl";
19833 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19834 esac;
19835 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19836 '
19837 export as_echo_n_body
19838 as_echo_n='sh -c $as_echo_n_body as_echo'
19839 fi
19840 export as_echo_body
19841 as_echo='sh -c $as_echo_body as_echo'
19842 fi
19843
19844 # The user is always right.
19845 if test "${PATH_SEPARATOR+set}" != set; then
19846 PATH_SEPARATOR=:
19847 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19848 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19849 PATH_SEPARATOR=';'
19850 }
19851 fi
19852
19853
19854 # IFS
19855 # We need space, tab and new line, in precisely that order. Quoting is
19856 # there to prevent editors from complaining about space-tab.
19857 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19858 # splitting by setting IFS to empty value.)
19859 IFS=" "" $as_nl"
19860
19861 # Find who we are. Look in the path if we contain no directory separator.
19862 as_myself=
19863 case $0 in #((
19864 *[\\/]* ) as_myself=$0 ;;
19865 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19866 for as_dir in $PATH
19867 do
19868 IFS=$as_save_IFS
19869 test -z "$as_dir" && as_dir=.
19870 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19871 done
19872 IFS=$as_save_IFS
19873
19874 ;;
19875 esac
19876 # We did not find ourselves, most probably we were run as `sh COMMAND'
19877 # in which case we are not to be found in the path.
19878 if test "x$as_myself" = x; then
19879 as_myself=$0
19880 fi
19881 if test ! -f "$as_myself"; then
19882 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19883 exit 1
19884 fi
19885
19886 # Unset variables that we do not need and which cause bugs (e.g. in
19887 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19888 # suppresses any "Segmentation fault" message there. '((' could
19889 # trigger a bug in pdksh 5.2.14.
19890 for as_var in BASH_ENV ENV MAIL MAILPATH
19891 do eval test x\${$as_var+set} = xset \
19892 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19893 done
19894 PS1='$ '
19895 PS2='> '
19896 PS4='+ '
19897
19898 # NLS nuisances.
19899 LC_ALL=C
19900 export LC_ALL
19901 LANGUAGE=C
19902 export LANGUAGE
19903
19904 # CDPATH.
19905 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19906
19907
19908 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19909 # ----------------------------------------
19910 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19911 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19912 # script with STATUS, using 1 if that was 0.
19913 as_fn_error ()
19914 {
19915 as_status=$1; test $as_status -eq 0 && as_status=1
19916 if test "$4"; then
19917 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19918 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19919 fi
19920 $as_echo "$as_me: error: $2" >&2
19921 as_fn_exit $as_status
19922 } # as_fn_error
19923
19924
19925 # as_fn_set_status STATUS
19926 # -----------------------
19927 # Set $? to STATUS, without forking.
19928 as_fn_set_status ()
19929 {
19930 return $1
19931 } # as_fn_set_status
19932
19933 # as_fn_exit STATUS
19934 # -----------------
19935 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19936 as_fn_exit ()
19937 {
19938 set +e
19939 as_fn_set_status $1
19940 exit $1
19941 } # as_fn_exit
19942
19943 # as_fn_unset VAR
19944 # ---------------
19945 # Portably unset VAR.
19946 as_fn_unset ()
19947 {
19948 { eval $1=; unset $1;}
19949 }
19950 as_unset=as_fn_unset
19951 # as_fn_append VAR VALUE
19952 # ----------------------
19953 # Append the text in VALUE to the end of the definition contained in VAR. Take
19954 # advantage of any shell optimizations that allow amortized linear growth over
19955 # repeated appends, instead of the typical quadratic growth present in naive
19956 # implementations.
19957 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19958 eval 'as_fn_append ()
19959 {
19960 eval $1+=\$2
19961 }'
19962 else
19963 as_fn_append ()
19964 {
19965 eval $1=\$$1\$2
19966 }
19967 fi # as_fn_append
19968
19969 # as_fn_arith ARG...
19970 # ------------------
19971 # Perform arithmetic evaluation on the ARGs, and store the result in the
19972 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19973 # must be portable across $(()) and expr.
19974 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19975 eval 'as_fn_arith ()
19976 {
19977 as_val=$(( $* ))
19978 }'
19979 else
19980 as_fn_arith ()
19981 {
19982 as_val=`expr "$@" || test $? -eq 1`
19983 }
19984 fi # as_fn_arith
19985
19986
19987 if expr a : '\(a\)' >/dev/null 2>&1 &&
19988 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19989 as_expr=expr
19990 else
19991 as_expr=false
19992 fi
19993
19994 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19995 as_basename=basename
19996 else
19997 as_basename=false
19998 fi
19999
20000 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20001 as_dirname=dirname
20002 else
20003 as_dirname=false
20004 fi
20005
20006 as_me=`$as_basename -- "$0" ||
20007 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20008 X"$0" : 'X\(//\)$' \| \
20009 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20010 $as_echo X/"$0" |
20011 sed '/^.*\/\([^/][^/]*\)\/*$/{
20012 s//\1/
20013 q
20014 }
20015 /^X\/\(\/\/\)$/{
20016 s//\1/
20017 q
20018 }
20019 /^X\/\(\/\).*/{
20020 s//\1/
20021 q
20022 }
20023 s/.*/./; q'`
20024
20025 # Avoid depending upon Character Ranges.
20026 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20027 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20028 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20029 as_cr_digits='0123456789'
20030 as_cr_alnum=$as_cr_Letters$as_cr_digits
20031
20032 ECHO_C= ECHO_N= ECHO_T=
20033 case `echo -n x` in #(((((
20034 -n*)
20035 case `echo 'xy\c'` in
20036 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20037 xy) ECHO_C='\c';;
20038 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20039 ECHO_T=' ';;
20040 esac;;
20041 *)
20042 ECHO_N='-n';;
20043 esac
20044
20045 rm -f conf$$ conf$$.exe conf$$.file
20046 if test -d conf$$.dir; then
20047 rm -f conf$$.dir/conf$$.file
20048 else
20049 rm -f conf$$.dir
20050 mkdir conf$$.dir 2>/dev/null
20051 fi
20052 if (echo >conf$$.file) 2>/dev/null; then
20053 if ln -s conf$$.file conf$$ 2>/dev/null; then
20054 as_ln_s='ln -s'
20055 # ... but there are two gotchas:
20056 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20057 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20058 # In both cases, we have to default to `cp -pR'.
20059 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20060 as_ln_s='cp -pR'
20061 elif ln conf$$.file conf$$ 2>/dev/null; then
20062 as_ln_s=ln
20063 else
20064 as_ln_s='cp -pR'
20065 fi
20066 else
20067 as_ln_s='cp -pR'
20068 fi
20069 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20070 rmdir conf$$.dir 2>/dev/null
20071
20072
20073 # as_fn_mkdir_p
20074 # -------------
20075 # Create "$as_dir" as a directory, including parents if necessary.
20076 as_fn_mkdir_p ()
20077 {
20078
20079 case $as_dir in #(
20080 -*) as_dir=./$as_dir;;
20081 esac
20082 test -d "$as_dir" || eval $as_mkdir_p || {
20083 as_dirs=
20084 while :; do
20085 case $as_dir in #(
20086 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20087 *) as_qdir=$as_dir;;
20088 esac
20089 as_dirs="'$as_qdir' $as_dirs"
20090 as_dir=`$as_dirname -- "$as_dir" ||
20091 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20092 X"$as_dir" : 'X\(//\)[^/]' \| \
20093 X"$as_dir" : 'X\(//\)$' \| \
20094 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20095 $as_echo X"$as_dir" |
20096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20097 s//\1/
20098 q
20099 }
20100 /^X\(\/\/\)[^/].*/{
20101 s//\1/
20102 q
20103 }
20104 /^X\(\/\/\)$/{
20105 s//\1/
20106 q
20107 }
20108 /^X\(\/\).*/{
20109 s//\1/
20110 q
20111 }
20112 s/.*/./; q'`
20113 test -d "$as_dir" && break
20114 done
20115 test -z "$as_dirs" || eval "mkdir $as_dirs"
20116 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20117
20118
20119 } # as_fn_mkdir_p
20120 if mkdir -p . 2>/dev/null; then
20121 as_mkdir_p='mkdir -p "$as_dir"'
20122 else
20123 test -d ./-p && rmdir ./-p
20124 as_mkdir_p=false
20125 fi
20126
20127
20128 # as_fn_executable_p FILE
20129 # -----------------------
20130 # Test if FILE is an executable regular file.
20131 as_fn_executable_p ()
20132 {
20133 test -f "$1" && test -x "$1"
20134 } # as_fn_executable_p
20135 as_test_x='test -x'
20136 as_executable_p=as_fn_executable_p
20137
20138 # Sed expression to map a string onto a valid CPP name.
20139 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20140
20141 # Sed expression to map a string onto a valid variable name.
20142 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20143
20144
20145 exec 6>&1
20146 ## ----------------------------------- ##
20147 ## Main body of $CONFIG_STATUS script. ##
20148 ## ----------------------------------- ##
20149 _ASEOF
20150 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20151
20152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20153 # Save the log message, to keep $0 and so on meaningful, and to
20154 # report actual input values of CONFIG_FILES etc. instead of their
20155 # values after options handling.
20156 ac_log="
•20157 This file was extended by ld $as_me 2.44, which was
20158 generated by GNU Autoconf 2.69. Invocation command line was
20159
20160 CONFIG_FILES = $CONFIG_FILES
20161 CONFIG_HEADERS = $CONFIG_HEADERS
20162 CONFIG_LINKS = $CONFIG_LINKS
20163 CONFIG_COMMANDS = $CONFIG_COMMANDS
20164 $ $0 $@
20165
20166 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20167 "
20168
20169 _ACEOF
20170
20171 case $ac_config_files in *"
20172 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20173 esac
20174
20175 case $ac_config_headers in *"
20176 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20177 esac
20178
20179
20180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20181 # Files that config.status was made for.
20182 config_files="$ac_config_files"
20183 config_headers="$ac_config_headers"
20184 config_commands="$ac_config_commands"
20185
20186 _ACEOF
20187
20188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20189 ac_cs_usage="\
20190 \`$as_me' instantiates files and other configuration actions
20191 from templates according to the current configuration. Unless the files
20192 and actions are specified as TAGs, all are instantiated by default.
20193
20194 Usage: $0 [OPTION]... [TAG]...
20195
20196 -h, --help print this help, then exit
20197 -V, --version print version number and configuration settings, then exit
20198 --config print configuration, then exit
20199 -q, --quiet, --silent
20200 do not print progress messages
20201 -d, --debug don't remove temporary files
20202 --recheck update $as_me by reconfiguring in the same conditions
20203 --file=FILE[:TEMPLATE]
20204 instantiate the configuration file FILE
20205 --header=FILE[:TEMPLATE]
20206 instantiate the configuration header FILE
20207
20208 Configuration files:
20209 $config_files
20210
20211 Configuration headers:
20212 $config_headers
20213
20214 Configuration commands:
20215 $config_commands
20216
20217 Report bugs to the package provider."
20218
20219 _ACEOF
20220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20221 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20222 ac_cs_version="\\
•20223 ld config.status 2.44
20224 configured by $0, generated by GNU Autoconf 2.69,
20225 with options \\"\$ac_cs_config\\"
20226
20227 Copyright (C) 2012 Free Software Foundation, Inc.
20228 This config.status script is free software; the Free Software Foundation
20229 gives unlimited permission to copy, distribute and modify it."
20230
20231 ac_pwd='$ac_pwd'
20232 srcdir='$srcdir'
20233 INSTALL='$INSTALL'
20234 MKDIR_P='$MKDIR_P'
20235 AWK='$AWK'
20236 test -n "\$AWK" || AWK=awk
20237 _ACEOF
20238
20239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20240 # The default lists apply if the user does not specify any file.
20241 ac_need_defaults=:
20242 while test $# != 0
20243 do
20244 case $1 in
20245 --*=?*)
20246 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20247 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20248 ac_shift=:
20249 ;;
20250 --*=)
20251 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20252 ac_optarg=
20253 ac_shift=:
20254 ;;
20255 *)
20256 ac_option=$1
20257 ac_optarg=$2
20258 ac_shift=shift
20259 ;;
20260 esac
20261
20262 case $ac_option in
20263 # Handling of the options.
20264 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20265 ac_cs_recheck=: ;;
20266 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20267 $as_echo "$ac_cs_version"; exit ;;
20268 --config | --confi | --conf | --con | --co | --c )
20269 $as_echo "$ac_cs_config"; exit ;;
20270 --debug | --debu | --deb | --de | --d | -d )
20271 debug=: ;;
20272 --file | --fil | --fi | --f )
20273 $ac_shift
20274 case $ac_optarg in
20275 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20276 '') as_fn_error $? "missing file argument" ;;
20277 esac
20278 as_fn_append CONFIG_FILES " '$ac_optarg'"
20279 ac_need_defaults=false;;
20280 --header | --heade | --head | --hea )
20281 $ac_shift
20282 case $ac_optarg in
20283 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20284 esac
20285 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20286 ac_need_defaults=false;;
20287 --he | --h)
20288 # Conflict between --help and --header
20289 as_fn_error $? "ambiguous option: \`$1'
20290 Try \`$0 --help' for more information.";;
20291 --help | --hel | -h )
20292 $as_echo "$ac_cs_usage"; exit ;;
20293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20294 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20295 ac_cs_silent=: ;;
20296
20297 # This is an error.
20298 -*) as_fn_error $? "unrecognized option: \`$1'
20299 Try \`$0 --help' for more information." ;;
20300
20301 *) as_fn_append ac_config_targets " $1"
20302 ac_need_defaults=false ;;
20303
20304 esac
20305 shift
20306 done
20307
20308 ac_configure_extra_args=
20309
20310 if $ac_cs_silent; then
20311 exec 6>/dev/null
20312 ac_configure_extra_args="$ac_configure_extra_args --silent"
20313 fi
20314
20315 _ACEOF
20316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20317 if \$ac_cs_recheck; then
20318 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20319 shift
20320 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20321 CONFIG_SHELL='$SHELL'
20322 export CONFIG_SHELL
20323 exec "\$@"
20324 fi
20325
20326 _ACEOF
20327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20328 exec 5>>config.log
20329 {
20330 echo
20331 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20332 ## Running $as_me. ##
20333 _ASBOX
20334 $as_echo "$ac_log"
20335 } >&5
20336
20337 _ACEOF
20338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20339 #
20340 # INIT-COMMANDS
20341 #
20342 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20343
20344
20345 # The HP-UX ksh and POSIX shell print the target directory to stdout
20346 # if CDPATH is set.
20347 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20348
20349 sed_quote_subst='$sed_quote_subst'
20350 double_quote_subst='$double_quote_subst'
20351 delay_variable_subst='$delay_variable_subst'
20352 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20353 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20354 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20355 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20356 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20357 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20358 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20359 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20360 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20361 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20362 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20363 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20364 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20365 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20366 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20367 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20368 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20369 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20370 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20371 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20372 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20373 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20374 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20375 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20376 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20377 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20378 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20379 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20380 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20381 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20382 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20383 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20384 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20385 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20386 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20387 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20388 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20389 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20390 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20391 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20392 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20393 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20394 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20395 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20396 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20397 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20398 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20399 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20400 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"`'
20401 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20402 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20403 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20404 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20405 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20406 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20407 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20408 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20409 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20410 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20411 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20412 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20413 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20414 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20415 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20416 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20417 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20418 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20419 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20420 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20421 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20422 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20423 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20424 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20425 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20426 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20427 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20428 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20429 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20430 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20431 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20432 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
20433 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20434 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20435 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20436 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20437 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20438 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20439 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20440 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20441 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
20442 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20443 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20444 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20445 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20446 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20447 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20448 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20449 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20450 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20451 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20452 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20453 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20454 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20455 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20456 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20457 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20458 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20459 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20460 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20461 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20462 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20463 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20464 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20465 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20466 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20467 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20468 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20469 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20470 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20471 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20472 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20473 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20474 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20475 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20476 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20477 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20478 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20479 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20480 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20481 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20482 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20483 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20484 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20485 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20486 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20487 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20488 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20489 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20490 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20491 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20492 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20493 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20494 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20495 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20496 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20497 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20498 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20499 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20500 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20501 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20502 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20503 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20504 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
20505 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20506 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20507 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20508 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20509 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20510 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20511 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20512 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20513 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
20514 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20515 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20516 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20517 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20518 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20519 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20520 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20521 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20522 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20523 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20524 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20525 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20526 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20527
20528 LTCC='$LTCC'
20529 LTCFLAGS='$LTCFLAGS'
20530 compiler='$compiler_DEFAULT'
20531
20532 # A function that is used when there is no print builtin or printf.
20533 func_fallback_echo ()
20534 {
20535 eval 'cat <<_LTECHO_EOF
20536 \$1
20537 _LTECHO_EOF'
20538 }
20539
20540 # Quote evaled strings.
20541 for var in SHELL \
20542 ECHO \
20543 SED \
20544 GREP \
20545 EGREP \
20546 FGREP \
20547 LD \
20548 NM \
20549 LN_S \
20550 lt_SP2NL \
20551 lt_NL2SP \
20552 reload_flag \
20553 OBJDUMP \
20554 deplibs_check_method \
20555 file_magic_cmd \
20556 AR \
20557 AR_FLAGS \
20558 STRIP \
20559 RANLIB \
20560 CC \
20561 CFLAGS \
20562 compiler \
20563 lt_cv_sys_global_symbol_pipe \
20564 lt_cv_sys_global_symbol_to_cdecl \
20565 lt_cv_sys_global_symbol_to_c_name_address \
20566 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20567 lt_prog_compiler_no_builtin_flag \
20568 lt_prog_compiler_wl \
20569 lt_prog_compiler_pic \
20570 lt_prog_compiler_static \
20571 lt_cv_prog_compiler_c_o \
20572 need_locks \
20573 DSYMUTIL \
20574 NMEDIT \
20575 LIPO \
20576 OTOOL \
20577 OTOOL64 \
20578 shrext_cmds \
20579 export_dynamic_flag_spec \
20580 whole_archive_flag_spec \
20581 compiler_needs_object \
20582 with_gnu_ld \
20583 allow_undefined_flag \
20584 no_undefined_flag \
20585 hardcode_libdir_flag_spec \
20586 hardcode_libdir_flag_spec_ld \
20587 hardcode_libdir_separator \
20588 fix_srcfile_path \
20589 exclude_expsyms \
20590 include_expsyms \
20591 file_list_spec \
20592 variables_saved_for_relink \
20593 libname_spec \
20594 library_names_spec \
20595 soname_spec \
20596 install_override_mode \
20597 finish_eval \
20598 old_striplib \
20599 striplib \
20600 compiler_lib_search_dirs \
20601 predep_objects \
20602 postdep_objects \
20603 predeps \
20604 postdeps \
20605 compiler_lib_search_path \
20606 LD_CXX \
20607 reload_flag_CXX \
20608 compiler_CXX \
20609 lt_prog_compiler_no_builtin_flag_CXX \
20610 lt_prog_compiler_wl_CXX \
20611 lt_prog_compiler_pic_CXX \
20612 lt_prog_compiler_static_CXX \
20613 lt_cv_prog_compiler_c_o_CXX \
20614 export_dynamic_flag_spec_CXX \
20615 whole_archive_flag_spec_CXX \
20616 compiler_needs_object_CXX \
20617 with_gnu_ld_CXX \
20618 allow_undefined_flag_CXX \
20619 no_undefined_flag_CXX \
20620 hardcode_libdir_flag_spec_CXX \
20621 hardcode_libdir_flag_spec_ld_CXX \
20622 hardcode_libdir_separator_CXX \
20623 fix_srcfile_path_CXX \
20624 exclude_expsyms_CXX \
20625 include_expsyms_CXX \
20626 file_list_spec_CXX \
20627 compiler_lib_search_dirs_CXX \
20628 predep_objects_CXX \
20629 postdep_objects_CXX \
20630 predeps_CXX \
20631 postdeps_CXX \
20632 compiler_lib_search_path_CXX; do
20633 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20634 *[\\\\\\\`\\"\\\$]*)
20635 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20636 ;;
20637 *)
20638 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20639 ;;
20640 esac
20641 done
20642
20643 # Double-quote double-evaled strings.
20644 for var in reload_cmds \
20645 old_postinstall_cmds \
20646 old_postuninstall_cmds \
20647 old_archive_cmds \
20648 extract_expsyms_cmds \
20649 old_archive_from_new_cmds \
20650 old_archive_from_expsyms_cmds \
20651 archive_cmds \
20652 archive_expsym_cmds \
20653 module_cmds \
20654 module_expsym_cmds \
20655 export_symbols_cmds \
20656 prelink_cmds \
20657 postinstall_cmds \
20658 postuninstall_cmds \
20659 finish_cmds \
20660 sys_lib_search_path_spec \
20661 sys_lib_dlsearch_path_spec \
20662 reload_cmds_CXX \
20663 old_archive_cmds_CXX \
20664 old_archive_from_new_cmds_CXX \
20665 old_archive_from_expsyms_cmds_CXX \
20666 archive_cmds_CXX \
20667 archive_expsym_cmds_CXX \
20668 module_cmds_CXX \
20669 module_expsym_cmds_CXX \
20670 export_symbols_cmds_CXX \
20671 prelink_cmds_CXX; do
20672 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20673 *[\\\\\\\`\\"\\\$]*)
20674 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20675 ;;
20676 *)
20677 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20678 ;;
20679 esac
20680 done
20681
20682 ac_aux_dir='$ac_aux_dir'
20683 xsi_shell='$xsi_shell'
20684 lt_shell_append='$lt_shell_append'
20685
20686 # See if we are running on zsh, and set the options which allow our
20687 # commands through without removal of \ escapes INIT.
20688 if test -n "\${ZSH_VERSION+set}" ; then
20689 setopt NO_GLOB_SUBST
20690 fi
20691
20692
20693 PACKAGE='$PACKAGE'
20694 VERSION='$VERSION'
20695 TIMESTAMP='$TIMESTAMP'
20696 RM='$RM'
20697 ofile='$ofile'
20698
20699
20700
20701
20702
20703 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20704 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20705 # from automake.
20706 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20707 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20708 LINGUAS="${LINGUAS-%UNSET%}"
20709
20710 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20711 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20712 # from automake.
20713 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20714 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20715 LINGUAS="${LINGUAS-%UNSET%}"
20716
20717
20718
20719 _ACEOF
20720
20721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20722
20723 # Handling of arguments.
20724 for ac_config_target in $ac_config_targets
20725 do
20726 case $ac_config_target in
20727 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20728 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20729 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
20730 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20731 "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
20732 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20733 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20734 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
20735
20736 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20737 esac
20738 done
20739
20740
20741 # If the user did not use the arguments to specify the items to instantiate,
20742 # then the envvar interface is used. Set only those that are not.
20743 # We use the long form for the default assignment because of an extremely
20744 # bizarre bug on SunOS 4.1.3.
20745 if $ac_need_defaults; then
20746 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20747 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20748 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20749 fi
20750
20751 # Have a temporary directory for convenience. Make it in the build tree
20752 # simply because there is no reason against having it here, and in addition,
20753 # creating and moving files from /tmp can sometimes cause problems.
20754 # Hook for its removal unless debugging.
20755 # Note that there is a small window in which the directory will not be cleaned:
20756 # after its creation but before its name has been assigned to `$tmp'.
20757 $debug ||
20758 {
20759 tmp= ac_tmp=
20760 trap 'exit_status=$?
20761 : "${ac_tmp:=$tmp}"
20762 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20763 ' 0
20764 trap 'as_fn_exit 1' 1 2 13 15
20765 }
20766 # Create a (secure) tmp directory for tmp files.
20767
20768 {
20769 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20770 test -d "$tmp"
20771 } ||
20772 {
20773 tmp=./conf$$-$RANDOM
20774 (umask 077 && mkdir "$tmp")
20775 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20776 ac_tmp=$tmp
20777
20778 # Set up the scripts for CONFIG_FILES section.
20779 # No need to generate them if there are no CONFIG_FILES.
20780 # This happens for instance with `./config.status config.h'.
20781 if test -n "$CONFIG_FILES"; then
20782
20783
20784 ac_cr=`echo X | tr X '\015'`
20785 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20786 # But we know of no other shell where ac_cr would be empty at this
20787 # point, so we can use a bashism as a fallback.
20788 if test "x$ac_cr" = x; then
20789 eval ac_cr=\$\'\\r\'
20790 fi
20791 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20792 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20793 ac_cs_awk_cr='\\r'
20794 else
20795 ac_cs_awk_cr=$ac_cr
20796 fi
20797
20798 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20799 _ACEOF
20800
20801
20802 {
20803 echo "cat >conf$$subs.awk <<_ACEOF" &&
20804 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20805 echo "_ACEOF"
20806 } >conf$$subs.sh ||
20807 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20808 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20809 ac_delim='%!_!# '
20810 for ac_last_try in false false false false false :; do
20811 . ./conf$$subs.sh ||
20812 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20813
20814 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20815 if test $ac_delim_n = $ac_delim_num; then
20816 break
20817 elif $ac_last_try; then
20818 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20819 else
20820 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20821 fi
20822 done
20823 rm -f conf$$subs.sh
20824
20825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20826 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20827 _ACEOF
20828 sed -n '
20829 h
20830 s/^/S["/; s/!.*/"]=/
20831 p
20832 g
20833 s/^[^!]*!//
20834 :repl
20835 t repl
20836 s/'"$ac_delim"'$//
20837 t delim
20838 :nl
20839 h
20840 s/\(.\{148\}\)..*/\1/
20841 t more1
20842 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20843 p
20844 n
20845 b repl
20846 :more1
20847 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20848 p
20849 g
20850 s/.\{148\}//
20851 t nl
20852 :delim
20853 h
20854 s/\(.\{148\}\)..*/\1/
20855 t more2
20856 s/["\\]/\\&/g; s/^/"/; s/$/"/
20857 p
20858 b
20859 :more2
20860 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20861 p
20862 g
20863 s/.\{148\}//
20864 t delim
20865 ' <conf$$subs.awk | sed '
20866 /^[^""]/{
20867 N
20868 s/\n//
20869 }
20870 ' >>$CONFIG_STATUS || ac_write_fail=1
20871 rm -f conf$$subs.awk
20872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20873 _ACAWK
20874 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20875 for (key in S) S_is_set[key] = 1
20876 FS = ""
20877
20878 }
20879 {
20880 line = $ 0
20881 nfields = split(line, field, "@")
20882 substed = 0
20883 len = length(field[1])
20884 for (i = 2; i < nfields; i++) {
20885 key = field[i]
20886 keylen = length(key)
20887 if (S_is_set[key]) {
20888 value = S[key]
20889 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20890 len += length(value) + length(field[++i])
20891 substed = 1
20892 } else
20893 len += 1 + keylen
20894 }
20895
20896 print line
20897 }
20898
20899 _ACAWK
20900 _ACEOF
20901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20902 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20903 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20904 else
20905 cat
20906 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20907 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20908 _ACEOF
20909
20910 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20911 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20912 # trailing colons and then remove the whole line if VPATH becomes empty
20913 # (actually we leave an empty line to preserve line numbers).
20914 if test "x$srcdir" = x.; then
20915 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20916 h
20917 s///
20918 s/^/:/
20919 s/[ ]*$/:/
20920 s/:\$(srcdir):/:/g
20921 s/:\${srcdir}:/:/g
20922 s/:@srcdir@:/:/g
20923 s/^:*//
20924 s/:*$//
20925 x
20926 s/\(=[ ]*\).*/\1/
20927 G
20928 s/\n//
20929 s/^[^=]*=[ ]*$//
20930 }'
20931 fi
20932
20933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20934 fi # test -n "$CONFIG_FILES"
20935
20936 # Set up the scripts for CONFIG_HEADERS section.
20937 # No need to generate them if there are no CONFIG_HEADERS.
20938 # This happens for instance with `./config.status Makefile'.
20939 if test -n "$CONFIG_HEADERS"; then
20940 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20941 BEGIN {
20942 _ACEOF
20943
20944 # Transform confdefs.h into an awk script `defines.awk', embedded as
20945 # here-document in config.status, that substitutes the proper values into
20946 # config.h.in to produce config.h.
20947
20948 # Create a delimiter string that does not exist in confdefs.h, to ease
20949 # handling of long lines.
20950 ac_delim='%!_!# '
20951 for ac_last_try in false false :; do
20952 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20953 if test -z "$ac_tt"; then
20954 break
20955 elif $ac_last_try; then
20956 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20957 else
20958 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20959 fi
20960 done
20961
20962 # For the awk script, D is an array of macro values keyed by name,
20963 # likewise P contains macro parameters if any. Preserve backslash
20964 # newline sequences.
20965
20966 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20967 sed -n '
20968 s/.\{148\}/&'"$ac_delim"'/g
20969 t rset
20970 :rset
20971 s/^[ ]*#[ ]*define[ ][ ]*/ /
20972 t def
20973 d
20974 :def
20975 s/\\$//
20976 t bsnl
20977 s/["\\]/\\&/g
20978 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20979 D["\1"]=" \3"/p
20980 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20981 d
20982 :bsnl
20983 s/["\\]/\\&/g
20984 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20985 D["\1"]=" \3\\\\\\n"\\/p
20986 t cont
20987 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20988 t cont
20989 d
20990 :cont
20991 n
20992 s/.\{148\}/&'"$ac_delim"'/g
20993 t clear
20994 :clear
20995 s/\\$//
20996 t bsnlc
20997 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20998 d
20999 :bsnlc
21000 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21001 b cont
21002 ' <confdefs.h | sed '
21003 s/'"$ac_delim"'/"\\\
21004 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21005
21006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21007 for (key in D) D_is_set[key] = 1
21008 FS = ""
21009 }
21010 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21011 line = \$ 0
21012 split(line, arg, " ")
21013 if (arg[1] == "#") {
21014 defundef = arg[2]
21015 mac1 = arg[3]
21016 } else {
21017 defundef = substr(arg[1], 2)
21018 mac1 = arg[2]
21019 }
21020 split(mac1, mac2, "(") #)
21021 macro = mac2[1]
21022 prefix = substr(line, 1, index(line, defundef) - 1)
21023 if (D_is_set[macro]) {
21024 # Preserve the white space surrounding the "#".
21025 print prefix "define", macro P[macro] D[macro]
21026 next
21027 } else {
21028 # Replace #undef with comments. This is necessary, for example,
21029 # in the case of _POSIX_SOURCE, which is predefined and required
21030 # on some systems where configure will not decide to define it.
21031 if (defundef == "undef") {
21032 print "/*", prefix defundef, macro, "*/"
21033 next
21034 }
21035 }
21036 }
21037 { print }
21038 _ACAWK
21039 _ACEOF
21040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21041 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21042 fi # test -n "$CONFIG_HEADERS"
21043
21044
21045 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21046 shift
21047 for ac_tag
21048 do
21049 case $ac_tag in
21050 :[FHLC]) ac_mode=$ac_tag; continue;;
21051 esac
21052 case $ac_mode$ac_tag in
21053 :[FHL]*:*);;
21054 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21055 :[FH]-) ac_tag=-:-;;
21056 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21057 esac
21058 ac_save_IFS=$IFS
21059 IFS=:
21060 set x $ac_tag
21061 IFS=$ac_save_IFS
21062 shift
21063 ac_file=$1
21064 shift
21065
21066 case $ac_mode in
21067 :L) ac_source=$1;;
21068 :[FH])
21069 ac_file_inputs=
21070 for ac_f
21071 do
21072 case $ac_f in
21073 -) ac_f="$ac_tmp/stdin";;
21074 *) # Look for the file first in the build tree, then in the source tree
21075 # (if the path is not absolute). The absolute path cannot be DOS-style,
21076 # because $ac_f cannot contain `:'.
21077 test -f "$ac_f" ||
21078 case $ac_f in
21079 [\\/$]*) false;;
21080 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21081 esac ||
21082 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21083 esac
21084 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21085 as_fn_append ac_file_inputs " '$ac_f'"
21086 done
21087
21088 # Let's still pretend it is `configure' which instantiates (i.e., don't
21089 # use $as_me), people would be surprised to read:
21090 # /* config.h. Generated by config.status. */
21091 configure_input='Generated from '`
21092 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21093 `' by configure.'
21094 if test x"$ac_file" != x-; then
21095 configure_input="$ac_file. $configure_input"
21096 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21097 $as_echo "$as_me: creating $ac_file" >&6;}
21098 fi
21099 # Neutralize special characters interpreted by sed in replacement strings.
21100 case $configure_input in #(
21101 *\&* | *\|* | *\\* )
21102 ac_sed_conf_input=`$as_echo "$configure_input" |
21103 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21104 *) ac_sed_conf_input=$configure_input;;
21105 esac
21106
21107 case $ac_tag in
21108 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21109 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21110 esac
21111 ;;
21112 esac
21113
21114 ac_dir=`$as_dirname -- "$ac_file" ||
21115 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21116 X"$ac_file" : 'X\(//\)[^/]' \| \
21117 X"$ac_file" : 'X\(//\)$' \| \
21118 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21119 $as_echo X"$ac_file" |
21120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21121 s//\1/
21122 q
21123 }
21124 /^X\(\/\/\)[^/].*/{
21125 s//\1/
21126 q
21127 }
21128 /^X\(\/\/\)$/{
21129 s//\1/
21130 q
21131 }
21132 /^X\(\/\).*/{
21133 s//\1/
21134 q
21135 }
21136 s/.*/./; q'`
21137 as_dir="$ac_dir"; as_fn_mkdir_p
21138 ac_builddir=.
21139
21140 case "$ac_dir" in
21141 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21142 *)
21143 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21144 # A ".." for each directory in $ac_dir_suffix.
21145 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21146 case $ac_top_builddir_sub in
21147 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21148 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21149 esac ;;
21150 esac
21151 ac_abs_top_builddir=$ac_pwd
21152 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21153 # for backward compatibility:
21154 ac_top_builddir=$ac_top_build_prefix
21155
21156 case $srcdir in
21157 .) # We are building in place.
21158 ac_srcdir=.
21159 ac_top_srcdir=$ac_top_builddir_sub
21160 ac_abs_top_srcdir=$ac_pwd ;;
21161 [\\/]* | ?:[\\/]* ) # Absolute name.
21162 ac_srcdir=$srcdir$ac_dir_suffix;
21163 ac_top_srcdir=$srcdir
21164 ac_abs_top_srcdir=$srcdir ;;
21165 *) # Relative name.
21166 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21167 ac_top_srcdir=$ac_top_build_prefix$srcdir
21168 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21169 esac
21170 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21171
21172
21173 case $ac_mode in
21174 :F)
21175 #
21176 # CONFIG_FILE
21177 #
21178
21179 case $INSTALL in
21180 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21181 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21182 esac
21183 ac_MKDIR_P=$MKDIR_P
21184 case $MKDIR_P in
21185 [\\/$]* | ?:[\\/]* ) ;;
21186 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21187 esac
21188 _ACEOF
21189
21190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21191 # If the template does not know about datarootdir, expand it.
21192 # FIXME: This hack should be removed a few years after 2.60.
21193 ac_datarootdir_hack=; ac_datarootdir_seen=
21194 ac_sed_dataroot='
21195 /datarootdir/ {
21196 p
21197 q
21198 }
21199 /@datadir@/p
21200 /@docdir@/p
21201 /@infodir@/p
21202 /@localedir@/p
21203 /@mandir@/p'
21204 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21205 *datarootdir*) ac_datarootdir_seen=yes;;
21206 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21208 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21209 _ACEOF
21210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21211 ac_datarootdir_hack='
21212 s&@datadir@&$datadir&g
21213 s&@docdir@&$docdir&g
21214 s&@infodir@&$infodir&g
21215 s&@localedir@&$localedir&g
21216 s&@mandir@&$mandir&g
21217 s&\\\${datarootdir}&$datarootdir&g' ;;
21218 esac
21219 _ACEOF
21220
21221 # Neutralize VPATH when `$srcdir' = `.'.
21222 # Shell code in configure.ac might set extrasub.
21223 # FIXME: do we really want to maintain this feature?
21224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21225 ac_sed_extra="$ac_vpsub
21226 $extrasub
21227 _ACEOF
21228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21229 :t
21230 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21231 s|@configure_input@|$ac_sed_conf_input|;t t
21232 s&@top_builddir@&$ac_top_builddir_sub&;t t
21233 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21234 s&@srcdir@&$ac_srcdir&;t t
21235 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21236 s&@top_srcdir@&$ac_top_srcdir&;t t
21237 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21238 s&@builddir@&$ac_builddir&;t t
21239 s&@abs_builddir@&$ac_abs_builddir&;t t
21240 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21241 s&@INSTALL@&$ac_INSTALL&;t t
21242 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21243 $ac_datarootdir_hack
21244 "
21245 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21246 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21247
21248 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21249 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21250 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21251 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21253 which seems to be undefined. Please make sure it is defined" >&5
21254 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21255 which seems to be undefined. Please make sure it is defined" >&2;}
21256
21257 rm -f "$ac_tmp/stdin"
21258 case $ac_file in
21259 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21260 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21261 esac \
21262 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21263 ;;
21264 :H)
21265 #
21266 # CONFIG_HEADER
21267 #
21268 if test x"$ac_file" != x-; then
21269 {
21270 $as_echo "/* $configure_input */" \
21271 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21272 } >"$ac_tmp/config.h" \
21273 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21274 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21275 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21276 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21277 else
21278 rm -f "$ac_file"
21279 mv "$ac_tmp/config.h" "$ac_file" \
21280 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21281 fi
21282 else
21283 $as_echo "/* $configure_input */" \
21284 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21285 || as_fn_error $? "could not create -" "$LINENO" 5
21286 fi
21287 # Compute "$ac_file"'s index in $config_headers.
21288 _am_arg="$ac_file"
21289 _am_stamp_count=1
21290 for _am_header in $config_headers :; do
21291 case $_am_header in
21292 $_am_arg | $_am_arg:* )
21293 break ;;
21294 * )
21295 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21296 esac
21297 done
21298 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21299 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21300 X"$_am_arg" : 'X\(//\)[^/]' \| \
21301 X"$_am_arg" : 'X\(//\)$' \| \
21302 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21303 $as_echo X"$_am_arg" |
21304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21305 s//\1/
21306 q
21307 }
21308 /^X\(\/\/\)[^/].*/{
21309 s//\1/
21310 q
21311 }
21312 /^X\(\/\/\)$/{
21313 s//\1/
21314 q
21315 }
21316 /^X\(\/\).*/{
21317 s//\1/
21318 q
21319 }
21320 s/.*/./; q'`/stamp-h$_am_stamp_count
21321 ;;
21322
21323 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21324 $as_echo "$as_me: executing $ac_file commands" >&6;}
21325 ;;
21326 esac
21327
21328
21329 case $ac_file$ac_mode in
21330 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21331 # Older Autoconf quotes --file arguments for eval, but not when files
21332 # are listed without --file. Let's play safe and only enable the eval
21333 # if we detect the quoting.
21334 case $CONFIG_FILES in
21335 *\'*) eval set x "$CONFIG_FILES" ;;
21336 *) set x $CONFIG_FILES ;;
21337 esac
21338 shift
21339 for mf
21340 do
21341 # Strip MF so we end up with the name of the file.
21342 mf=`echo "$mf" | sed -e 's/:.*$//'`
21343 # Check whether this is an Automake generated Makefile or not.
21344 # We used to match only the files named 'Makefile.in', but
21345 # some people rename them; so instead we look at the file content.
21346 # Grep'ing the first line is not enough: some people post-process
21347 # each Makefile.in and add a new line on top of each file to say so.
21348 # Grep'ing the whole file is not good either: AIX grep has a line
21349 # limit of 2048, but all sed's we know have understand at least 4000.
21350 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21351 dirpart=`$as_dirname -- "$mf" ||
21352 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21353 X"$mf" : 'X\(//\)[^/]' \| \
21354 X"$mf" : 'X\(//\)$' \| \
21355 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21356 $as_echo X"$mf" |
21357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21358 s//\1/
21359 q
21360 }
21361 /^X\(\/\/\)[^/].*/{
21362 s//\1/
21363 q
21364 }
21365 /^X\(\/\/\)$/{
21366 s//\1/
21367 q
21368 }
21369 /^X\(\/\).*/{
21370 s//\1/
21371 q
21372 }
21373 s/.*/./; q'`
21374 else
21375 continue
21376 fi
21377 # Extract the definition of DEPDIR, am__include, and am__quote
21378 # from the Makefile without running 'make'.
21379 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21380 test -z "$DEPDIR" && continue
21381 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21382 test -z "$am__include" && continue
21383 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21384 # Find all dependency output files, they are included files with
21385 # $(DEPDIR) in their names. We invoke sed twice because it is the
21386 # simplest approach to changing $(DEPDIR) to its actual value in the
21387 # expansion.
21388 for file in `sed -n "
21389 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21390 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21391 # Make sure the directory exists.
21392 test -f "$dirpart/$file" && continue
21393 fdir=`$as_dirname -- "$file" ||
21394 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21395 X"$file" : 'X\(//\)[^/]' \| \
21396 X"$file" : 'X\(//\)$' \| \
21397 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21398 $as_echo X"$file" |
21399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21400 s//\1/
21401 q
21402 }
21403 /^X\(\/\/\)[^/].*/{
21404 s//\1/
21405 q
21406 }
21407 /^X\(\/\/\)$/{
21408 s//\1/
21409 q
21410 }
21411 /^X\(\/\).*/{
21412 s//\1/
21413 q
21414 }
21415 s/.*/./; q'`
21416 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21417 # echo "creating $dirpart/$file"
21418 echo '# dummy' > "$dirpart/$file"
21419 done
21420 done
21421 }
21422 ;;
21423 "libtool":C)
21424
21425 # See if we are running on zsh, and set the options which allow our
21426 # commands through without removal of \ escapes.
21427 if test -n "${ZSH_VERSION+set}" ; then
21428 setopt NO_GLOB_SUBST
21429 fi
21430
21431 cfgfile="${ofile}T"
21432 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21433 $RM "$cfgfile"
21434
21435 cat <<_LT_EOF >> "$cfgfile"
21436 #! $SHELL
21437
21438 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21439 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21440 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21441 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21442 #
21443 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21444 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
21445 # Written by Gordon Matzigkeit, 1996
21446 #
21447 # This file is part of GNU Libtool.
21448 #
21449 # GNU Libtool is free software; you can redistribute it and/or
21450 # modify it under the terms of the GNU General Public License as
21451 # published by the Free Software Foundation; either version 2 of
21452 # the License, or (at your option) any later version.
21453 #
21454 # As a special exception to the GNU General Public License,
21455 # if you distribute this file as part of a program or library that
21456 # is built using GNU Libtool, you may include this file under the
21457 # same distribution terms that you use for the rest of that program.
21458 #
21459 # GNU Libtool is distributed in the hope that it will be useful,
21460 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21461 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21462 # GNU General Public License for more details.
21463 #
21464 # You should have received a copy of the GNU General Public License
21465 # along with GNU Libtool; see the file COPYING. If not, a copy
21466 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21467 # obtained by writing to the Free Software Foundation, Inc.,
21468 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21469
21470
21471 # The names of the tagged configurations supported by this script.
21472 available_tags="CXX "
21473
21474 # ### BEGIN LIBTOOL CONFIG
21475
21476 # Which release of libtool.m4 was used?
21477 macro_version=$macro_version
21478 macro_revision=$macro_revision
21479
21480 # Whether or not to build shared libraries.
21481 build_libtool_libs=$enable_shared
21482
21483 # Whether or not to build static libraries.
21484 build_old_libs=$enable_static
21485
21486 # What type of objects to build.
21487 pic_mode=$pic_mode
21488
21489 # Whether or not to optimize for fast installation.
21490 fast_install=$enable_fast_install
21491
21492 # Shell to use when invoking shell scripts.
21493 SHELL=$lt_SHELL
21494
21495 # An echo program that protects backslashes.
21496 ECHO=$lt_ECHO
21497
21498 # The host system.
21499 host_alias=$host_alias
21500 host=$host
21501 host_os=$host_os
21502
21503 # The build system.
21504 build_alias=$build_alias
21505 build=$build
21506 build_os=$build_os
21507
21508 # A sed program that does not truncate output.
21509 SED=$lt_SED
21510
21511 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21512 Xsed="\$SED -e 1s/^X//"
21513
21514 # A grep program that handles long lines.
21515 GREP=$lt_GREP
21516
21517 # An ERE matcher.
21518 EGREP=$lt_EGREP
21519
21520 # A literal string matcher.
21521 FGREP=$lt_FGREP
21522
21523 # A BSD- or MS-compatible name lister.
21524 NM=$lt_NM
21525
21526 # Whether we need soft or hard links.
21527 LN_S=$lt_LN_S
21528
21529 # What is the maximum length of a command?
21530 max_cmd_len=$max_cmd_len
21531
21532 # Object file suffix (normally "o").
21533 objext=$ac_objext
21534
21535 # Executable file suffix (normally "").
21536 exeext=$exeext
21537
21538 # whether the shell understands "unset".
21539 lt_unset=$lt_unset
21540
21541 # turn spaces into newlines.
21542 SP2NL=$lt_lt_SP2NL
21543
21544 # turn newlines into spaces.
21545 NL2SP=$lt_lt_NL2SP
21546
21547 # An object symbol dumper.
21548 OBJDUMP=$lt_OBJDUMP
21549
21550 # Method to check whether dependent libraries are shared objects.
21551 deplibs_check_method=$lt_deplibs_check_method
21552
21553 # Command to use when deplibs_check_method == "file_magic".
21554 file_magic_cmd=$lt_file_magic_cmd
21555
21556 # The archiver.
21557 AR=$lt_AR
21558 AR_FLAGS=$lt_AR_FLAGS
21559
21560 # A symbol stripping program.
21561 STRIP=$lt_STRIP
21562
21563 # Commands used to install an old-style archive.
21564 RANLIB=$lt_RANLIB
21565 old_postinstall_cmds=$lt_old_postinstall_cmds
21566 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21567
21568 # Whether to use a lock for old archive extraction.
21569 lock_old_archive_extraction=$lock_old_archive_extraction
21570
21571 # A C compiler.
21572 LTCC=$lt_CC
21573
21574 # LTCC compiler flags.
21575 LTCFLAGS=$lt_CFLAGS
21576
21577 # Take the output of nm and produce a listing of raw symbols and C names.
21578 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21579
21580 # Transform the output of nm in a proper C declaration.
21581 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21582
21583 # Transform the output of nm in a C name address pair.
21584 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21585
21586 # Transform the output of nm in a C name address pair when lib prefix is needed.
21587 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21588
21589 # The name of the directory that contains temporary libtool files.
21590 objdir=$objdir
21591
21592 # Used to examine libraries when file_magic_cmd begins with "file".
21593 MAGIC_CMD=$MAGIC_CMD
21594
21595 # Must we lock files when doing compilation?
21596 need_locks=$lt_need_locks
21597
21598 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21599 DSYMUTIL=$lt_DSYMUTIL
21600
21601 # Tool to change global to local symbols on Mac OS X.
21602 NMEDIT=$lt_NMEDIT
21603
21604 # Tool to manipulate fat objects and archives on Mac OS X.
21605 LIPO=$lt_LIPO
21606
21607 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21608 OTOOL=$lt_OTOOL
21609
21610 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21611 OTOOL64=$lt_OTOOL64
21612
21613 # Old archive suffix (normally "a").
21614 libext=$libext
21615
21616 # Shared library suffix (normally ".so").
21617 shrext_cmds=$lt_shrext_cmds
21618
21619 # The commands to extract the exported symbol list from a shared archive.
21620 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21621
21622 # Variables whose values should be saved in libtool wrapper scripts and
21623 # restored at link time.
21624 variables_saved_for_relink=$lt_variables_saved_for_relink
21625
21626 # Do we need the "lib" prefix for modules?
21627 need_lib_prefix=$need_lib_prefix
21628
21629 # Do we need a version for libraries?
21630 need_version=$need_version
21631
21632 # Library versioning type.
21633 version_type=$version_type
21634
21635 # Shared library runtime path variable.
21636 runpath_var=$runpath_var
21637
21638 # Shared library path variable.
21639 shlibpath_var=$shlibpath_var
21640
21641 # Is shlibpath searched before the hard-coded library search path?
21642 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21643
21644 # Format of library name prefix.
21645 libname_spec=$lt_libname_spec
21646
21647 # List of archive names. First name is the real one, the rest are links.
21648 # The last name is the one that the linker finds with -lNAME
21649 library_names_spec=$lt_library_names_spec
21650
21651 # The coded name of the library, if different from the real name.
21652 soname_spec=$lt_soname_spec
21653
21654 # Permission mode override for installation of shared libraries.
21655 install_override_mode=$lt_install_override_mode
21656
21657 # Command to use after installation of a shared archive.
21658 postinstall_cmds=$lt_postinstall_cmds
21659
21660 # Command to use after uninstallation of a shared archive.
21661 postuninstall_cmds=$lt_postuninstall_cmds
21662
21663 # Commands used to finish a libtool library installation in a directory.
21664 finish_cmds=$lt_finish_cmds
21665
21666 # As "finish_cmds", except a single script fragment to be evaled but
21667 # not shown.
21668 finish_eval=$lt_finish_eval
21669
21670 # Whether we should hardcode library paths into libraries.
21671 hardcode_into_libs=$hardcode_into_libs
21672
21673 # Compile-time system search path for libraries.
21674 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21675
21676 # Run-time system search path for libraries.
21677 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21678
21679 # Whether dlopen is supported.
21680 dlopen_support=$enable_dlopen
21681
21682 # Whether dlopen of programs is supported.
21683 dlopen_self=$enable_dlopen_self
21684
21685 # Whether dlopen of statically linked programs is supported.
21686 dlopen_self_static=$enable_dlopen_self_static
21687
21688 # Commands to strip libraries.
21689 old_striplib=$lt_old_striplib
21690 striplib=$lt_striplib
21691
21692
21693 # The linker used to build libraries.
21694 LD=$lt_LD
21695
21696 # How to create reloadable object files.
21697 reload_flag=$lt_reload_flag
21698 reload_cmds=$lt_reload_cmds
21699
21700 # Commands used to build an old-style archive.
21701 old_archive_cmds=$lt_old_archive_cmds
21702
21703 # A language specific compiler.
21704 CC=$lt_compiler
21705
21706 # Is the compiler the GNU compiler?
21707 with_gcc=$GCC
21708
21709 # Compiler flag to turn off builtin functions.
21710 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21711
21712 # How to pass a linker flag through the compiler.
21713 wl=$lt_lt_prog_compiler_wl
21714
21715 # Additional compiler flags for building library objects.
21716 pic_flag=$lt_lt_prog_compiler_pic
21717
21718 # Compiler flag to prevent dynamic linking.
21719 link_static_flag=$lt_lt_prog_compiler_static
21720
21721 # Does compiler simultaneously support -c and -o options?
21722 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21723
21724 # Whether or not to add -lc for building shared libraries.
21725 build_libtool_need_lc=$archive_cmds_need_lc
21726
21727 # Whether or not to disallow shared libs when runtime libs are static.
21728 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21729
21730 # Compiler flag to allow reflexive dlopens.
21731 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21732
21733 # Compiler flag to generate shared objects directly from archives.
21734 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21735
21736 # Whether the compiler copes with passing no objects directly.
21737 compiler_needs_object=$lt_compiler_needs_object
21738
21739 # Create an old-style archive from a shared archive.
21740 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21741
21742 # Create a temporary old-style archive to link instead of a shared archive.
21743 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21744
21745 # Commands used to build a shared archive.
21746 archive_cmds=$lt_archive_cmds
21747 archive_expsym_cmds=$lt_archive_expsym_cmds
21748
21749 # Commands used to build a loadable module if different from building
21750 # a shared archive.
21751 module_cmds=$lt_module_cmds
21752 module_expsym_cmds=$lt_module_expsym_cmds
21753
21754 # Whether we are building with GNU ld or not.
21755 with_gnu_ld=$lt_with_gnu_ld
21756
21757 # Flag that allows shared libraries with undefined symbols to be built.
21758 allow_undefined_flag=$lt_allow_undefined_flag
21759
21760 # Flag that enforces no undefined symbols.
21761 no_undefined_flag=$lt_no_undefined_flag
21762
21763 # Flag to hardcode \$libdir into a binary during linking.
21764 # This must work even if \$libdir does not exist
21765 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21766
21767 # If ld is used when linking, flag to hardcode \$libdir into a binary
21768 # during linking. This must work even if \$libdir does not exist.
21769 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21770
21771 # Whether we need a single "-rpath" flag with a separated argument.
21772 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21773
21774 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21775 # DIR into the resulting binary.
21776 hardcode_direct=$hardcode_direct
21777
21778 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21779 # DIR into the resulting binary and the resulting library dependency is
21780 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21781 # library is relocated.
21782 hardcode_direct_absolute=$hardcode_direct_absolute
21783
21784 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21785 # into the resulting binary.
21786 hardcode_minus_L=$hardcode_minus_L
21787
21788 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21789 # into the resulting binary.
21790 hardcode_shlibpath_var=$hardcode_shlibpath_var
21791
21792 # Set to "yes" if building a shared library automatically hardcodes DIR
21793 # into the library and all subsequent libraries and executables linked
21794 # against it.
21795 hardcode_automatic=$hardcode_automatic
21796
21797 # Set to yes if linker adds runtime paths of dependent libraries
21798 # to runtime path list.
21799 inherit_rpath=$inherit_rpath
21800
21801 # Whether libtool must link a program against all its dependency libraries.
21802 link_all_deplibs=$link_all_deplibs
21803
21804 # Fix the shell variable \$srcfile for the compiler.
21805 fix_srcfile_path=$lt_fix_srcfile_path
21806
21807 # Set to "yes" if exported symbols are required.
21808 always_export_symbols=$always_export_symbols
21809
21810 # The commands to list exported symbols.
21811 export_symbols_cmds=$lt_export_symbols_cmds
21812
21813 # Symbols that should not be listed in the preloaded symbols.
21814 exclude_expsyms=$lt_exclude_expsyms
21815
21816 # Symbols that must always be exported.
21817 include_expsyms=$lt_include_expsyms
21818
21819 # Commands necessary for linking programs (against libraries) with templates.
21820 prelink_cmds=$lt_prelink_cmds
21821
21822 # Specify filename containing input files.
21823 file_list_spec=$lt_file_list_spec
21824
21825 # How to hardcode a shared library path into an executable.
21826 hardcode_action=$hardcode_action
21827
21828 # The directories searched by this compiler when creating a shared library.
21829 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21830
21831 # Dependencies to place before and after the objects being linked to
21832 # create a shared library.
21833 predep_objects=$lt_predep_objects
21834 postdep_objects=$lt_postdep_objects
21835 predeps=$lt_predeps
21836 postdeps=$lt_postdeps
21837
21838 # The library search path used internally by the compiler when linking
21839 # a shared library.
21840 compiler_lib_search_path=$lt_compiler_lib_search_path
21841
21842 # ### END LIBTOOL CONFIG
21843
21844 _LT_EOF
21845
21846 case $host_os in
21847 aix3*)
21848 cat <<\_LT_EOF >> "$cfgfile"
21849 # AIX sometimes has problems with the GCC collect2 program. For some
21850 # reason, if we set the COLLECT_NAMES environment variable, the problems
21851 # vanish in a puff of smoke.
21852 if test "X${COLLECT_NAMES+set}" != Xset; then
21853 COLLECT_NAMES=
21854 export COLLECT_NAMES
21855 fi
21856 _LT_EOF
21857 ;;
21858 esac
21859
21860
21861 ltmain="$ac_aux_dir/ltmain.sh"
21862
21863
21864 # We use sed instead of cat because bash on DJGPP gets confused if
21865 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21866 # text mode, it properly converts lines to CR/LF. This bash problem
21867 # is reportedly fixed, but why not run on old versions too?
21868 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21869 || (rm -f "$cfgfile"; exit 1)
21870
21871 case $xsi_shell in
21872 yes)
21873 cat << \_LT_EOF >> "$cfgfile"
21874
21875 # func_dirname file append nondir_replacement
21876 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21877 # otherwise set result to NONDIR_REPLACEMENT.
21878 func_dirname ()
21879 {
21880 case ${1} in
21881 */*) func_dirname_result="${1%/*}${2}" ;;
21882 * ) func_dirname_result="${3}" ;;
21883 esac
21884 }
21885
21886 # func_basename file
21887 func_basename ()
21888 {
21889 func_basename_result="${1##*/}"
21890 }
21891
21892 # func_dirname_and_basename file append nondir_replacement
21893 # perform func_basename and func_dirname in a single function
21894 # call:
21895 # dirname: Compute the dirname of FILE. If nonempty,
21896 # add APPEND to the result, otherwise set result
21897 # to NONDIR_REPLACEMENT.
21898 # value returned in "$func_dirname_result"
21899 # basename: Compute filename of FILE.
21900 # value retuned in "$func_basename_result"
21901 # Implementation must be kept synchronized with func_dirname
21902 # and func_basename. For efficiency, we do not delegate to
21903 # those functions but instead duplicate the functionality here.
21904 func_dirname_and_basename ()
21905 {
21906 case ${1} in
21907 */*) func_dirname_result="${1%/*}${2}" ;;
21908 * ) func_dirname_result="${3}" ;;
21909 esac
21910 func_basename_result="${1##*/}"
21911 }
21912
21913 # func_stripname prefix suffix name
21914 # strip PREFIX and SUFFIX off of NAME.
21915 # PREFIX and SUFFIX must not contain globbing or regex special
21916 # characters, hashes, percent signs, but SUFFIX may contain a leading
21917 # dot (in which case that matches only a dot).
21918 func_stripname ()
21919 {
21920 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21921 # positional parameters, so assign one to ordinary parameter first.
21922 func_stripname_result=${3}
21923 func_stripname_result=${func_stripname_result#"${1}"}
21924 func_stripname_result=${func_stripname_result%"${2}"}
21925 }
21926
21927 # func_opt_split
21928 func_opt_split ()
21929 {
21930 func_opt_split_opt=${1%%=*}
21931 func_opt_split_arg=${1#*=}
21932 }
21933
21934 # func_lo2o object
21935 func_lo2o ()
21936 {
21937 case ${1} in
21938 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21939 *) func_lo2o_result=${1} ;;
21940 esac
21941 }
21942
21943 # func_xform libobj-or-source
21944 func_xform ()
21945 {
21946 func_xform_result=${1%.*}.lo
21947 }
21948
21949 # func_arith arithmetic-term...
21950 func_arith ()
21951 {
21952 func_arith_result=$(( $* ))
21953 }
21954
21955 # func_len string
21956 # STRING may not start with a hyphen.
21957 func_len ()
21958 {
21959 func_len_result=${#1}
21960 }
21961
21962 _LT_EOF
21963 ;;
21964 *) # Bourne compatible functions.
21965 cat << \_LT_EOF >> "$cfgfile"
21966
21967 # func_dirname file append nondir_replacement
21968 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21969 # otherwise set result to NONDIR_REPLACEMENT.
21970 func_dirname ()
21971 {
21972 # Extract subdirectory from the argument.
21973 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
21974 if test "X$func_dirname_result" = "X${1}"; then
21975 func_dirname_result="${3}"
21976 else
21977 func_dirname_result="$func_dirname_result${2}"
21978 fi
21979 }
21980
21981 # func_basename file
21982 func_basename ()
21983 {
21984 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
21985 }
21986
21987
21988 # func_stripname prefix suffix name
21989 # strip PREFIX and SUFFIX off of NAME.
21990 # PREFIX and SUFFIX must not contain globbing or regex special
21991 # characters, hashes, percent signs, but SUFFIX may contain a leading
21992 # dot (in which case that matches only a dot).
21993 # func_strip_suffix prefix name
21994 func_stripname ()
21995 {
21996 case ${2} in
21997 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
21998 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
21999 esac
22000 }
22001
22002 # sed scripts:
22003 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22004 my_sed_long_arg='1s/^-[^=]*=//'
22005
22006 # func_opt_split
22007 func_opt_split ()
22008 {
22009 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
22010 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
22011 }
22012
22013 # func_lo2o object
22014 func_lo2o ()
22015 {
22016 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
22017 }
22018
22019 # func_xform libobj-or-source
22020 func_xform ()
22021 {
22022 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
22023 }
22024
22025 # func_arith arithmetic-term...
22026 func_arith ()
22027 {
22028 func_arith_result=`expr "$@"`
22029 }
22030
22031 # func_len string
22032 # STRING may not start with a hyphen.
22033 func_len ()
22034 {
22035 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22036 }
22037
22038 _LT_EOF
22039 esac
22040
22041 case $lt_shell_append in
22042 yes)
22043 cat << \_LT_EOF >> "$cfgfile"
22044
22045 # func_append var value
22046 # Append VALUE to the end of shell variable VAR.
22047 func_append ()
22048 {
22049 eval "$1+=\$2"
22050 }
22051 _LT_EOF
22052 ;;
22053 *)
22054 cat << \_LT_EOF >> "$cfgfile"
22055
22056 # func_append var value
22057 # Append VALUE to the end of shell variable VAR.
22058 func_append ()
22059 {
22060 eval "$1=\$$1\$2"
22061 }
22062
22063 _LT_EOF
22064 ;;
22065 esac
22066
22067
22068 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22069 || (rm -f "$cfgfile"; exit 1)
22070
22071 mv -f "$cfgfile" "$ofile" ||
22072 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22073 chmod +x "$ofile"
22074
22075
22076 cat <<_LT_EOF >> "$ofile"
22077
22078 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22079
22080 # The linker used to build libraries.
22081 LD=$lt_LD_CXX
22082
22083 # How to create reloadable object files.
22084 reload_flag=$lt_reload_flag_CXX
22085 reload_cmds=$lt_reload_cmds_CXX
22086
22087 # Commands used to build an old-style archive.
22088 old_archive_cmds=$lt_old_archive_cmds_CXX
22089
22090 # A language specific compiler.
22091 CC=$lt_compiler_CXX
22092
22093 # Is the compiler the GNU compiler?
22094 with_gcc=$GCC_CXX
22095
22096 # Compiler flag to turn off builtin functions.
22097 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22098
22099 # How to pass a linker flag through the compiler.
22100 wl=$lt_lt_prog_compiler_wl_CXX
22101
22102 # Additional compiler flags for building library objects.
22103 pic_flag=$lt_lt_prog_compiler_pic_CXX
22104
22105 # Compiler flag to prevent dynamic linking.
22106 link_static_flag=$lt_lt_prog_compiler_static_CXX
22107
22108 # Does compiler simultaneously support -c and -o options?
22109 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22110
22111 # Whether or not to add -lc for building shared libraries.
22112 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22113
22114 # Whether or not to disallow shared libs when runtime libs are static.
22115 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22116
22117 # Compiler flag to allow reflexive dlopens.
22118 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22119
22120 # Compiler flag to generate shared objects directly from archives.
22121 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22122
22123 # Whether the compiler copes with passing no objects directly.
22124 compiler_needs_object=$lt_compiler_needs_object_CXX
22125
22126 # Create an old-style archive from a shared archive.
22127 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22128
22129 # Create a temporary old-style archive to link instead of a shared archive.
22130 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22131
22132 # Commands used to build a shared archive.
22133 archive_cmds=$lt_archive_cmds_CXX
22134 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22135
22136 # Commands used to build a loadable module if different from building
22137 # a shared archive.
22138 module_cmds=$lt_module_cmds_CXX
22139 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22140
22141 # Whether we are building with GNU ld or not.
22142 with_gnu_ld=$lt_with_gnu_ld_CXX
22143
22144 # Flag that allows shared libraries with undefined symbols to be built.
22145 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22146
22147 # Flag that enforces no undefined symbols.
22148 no_undefined_flag=$lt_no_undefined_flag_CXX
22149
22150 # Flag to hardcode \$libdir into a binary during linking.
22151 # This must work even if \$libdir does not exist
22152 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22153
22154 # If ld is used when linking, flag to hardcode \$libdir into a binary
22155 # during linking. This must work even if \$libdir does not exist.
22156 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22157
22158 # Whether we need a single "-rpath" flag with a separated argument.
22159 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22160
22161 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22162 # DIR into the resulting binary.
22163 hardcode_direct=$hardcode_direct_CXX
22164
22165 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22166 # DIR into the resulting binary and the resulting library dependency is
22167 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22168 # library is relocated.
22169 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22170
22171 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22172 # into the resulting binary.
22173 hardcode_minus_L=$hardcode_minus_L_CXX
22174
22175 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22176 # into the resulting binary.
22177 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22178
22179 # Set to "yes" if building a shared library automatically hardcodes DIR
22180 # into the library and all subsequent libraries and executables linked
22181 # against it.
22182 hardcode_automatic=$hardcode_automatic_CXX
22183
22184 # Set to yes if linker adds runtime paths of dependent libraries
22185 # to runtime path list.
22186 inherit_rpath=$inherit_rpath_CXX
22187
22188 # Whether libtool must link a program against all its dependency libraries.
22189 link_all_deplibs=$link_all_deplibs_CXX
22190
22191 # Fix the shell variable \$srcfile for the compiler.
22192 fix_srcfile_path=$lt_fix_srcfile_path_CXX
22193
22194 # Set to "yes" if exported symbols are required.
22195 always_export_symbols=$always_export_symbols_CXX
22196
22197 # The commands to list exported symbols.
22198 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22199
22200 # Symbols that should not be listed in the preloaded symbols.
22201 exclude_expsyms=$lt_exclude_expsyms_CXX
22202
22203 # Symbols that must always be exported.
22204 include_expsyms=$lt_include_expsyms_CXX
22205
22206 # Commands necessary for linking programs (against libraries) with templates.
22207 prelink_cmds=$lt_prelink_cmds_CXX
22208
22209 # Specify filename containing input files.
22210 file_list_spec=$lt_file_list_spec_CXX
22211
22212 # How to hardcode a shared library path into an executable.
22213 hardcode_action=$hardcode_action_CXX
22214
22215 # The directories searched by this compiler when creating a shared library.
22216 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22217
22218 # Dependencies to place before and after the objects being linked to
22219 # create a shared library.
22220 predep_objects=$lt_predep_objects_CXX
22221 postdep_objects=$lt_postdep_objects_CXX
22222 predeps=$lt_predeps_CXX
22223 postdeps=$lt_postdeps_CXX
22224
22225 # The library search path used internally by the compiler when linking
22226 # a shared library.
22227 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22228
22229 # ### END LIBTOOL TAG CONFIG: CXX
22230 _LT_EOF
22231
22232 ;;
22233 "default-1":C)
22234 for ac_file in $CONFIG_FILES; do
22235 # Support "outfile[:infile[:infile...]]"
22236 case "$ac_file" in
22237 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22238 esac
22239 # PO directories have a Makefile.in generated from Makefile.in.in.
22240 case "$ac_file" in */Makefile.in)
22241 # Adjust a relative srcdir.
22242 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22243 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
22244 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22245 # In autoconf-2.13 it is called $ac_given_srcdir.
22246 # In autoconf-2.50 it is called $srcdir.
22247 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22248 case "$ac_given_srcdir" in
22249 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22250 /*) top_srcdir="$ac_given_srcdir" ;;
22251 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22252 esac
22253 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22254 rm -f "$ac_dir/POTFILES"
22255 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22256 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22257 POMAKEFILEDEPS="POTFILES.in"
22258 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22259 # on $ac_dir but don't depend on user-specified configuration
22260 # parameters.
22261 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22262 # The LINGUAS file contains the set of available languages.
22263 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22264 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
22265 fi
22266 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22267 # Hide the ALL_LINGUAS assigment from automake.
22268 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22269 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22270 else
22271 # The set of available languages was given in configure.ac.
22272 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22273 fi
22274 case "$ac_given_srcdir" in
22275 .) srcdirpre= ;;
22276 *) srcdirpre='$(srcdir)/' ;;
22277 esac
22278 POFILES=
22279 GMOFILES=
22280 UPDATEPOFILES=
22281 DUMMYPOFILES=
22282 for lang in $ALL_LINGUAS; do
22283 POFILES="$POFILES $srcdirpre$lang.po"
22284 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22285 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22286 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22287 done
22288 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22289 # environment variable.
22290 INST_LINGUAS=
22291 if test -n "$ALL_LINGUAS"; then
22292 for presentlang in $ALL_LINGUAS; do
22293 useit=no
22294 if test "%UNSET%" != "$LINGUAS"; then
22295 desiredlanguages="$LINGUAS"
22296 else
22297 desiredlanguages="$ALL_LINGUAS"
22298 fi
22299 for desiredlang in $desiredlanguages; do
22300 # Use the presentlang catalog if desiredlang is
22301 # a. equal to presentlang, or
22302 # b. a variant of presentlang (because in this case,
22303 # presentlang can be used as a fallback for messages
22304 # which are not translated in the desiredlang catalog).
22305 case "$desiredlang" in
22306 "$presentlang"*) useit=yes;;
22307 esac
22308 done
22309 if test $useit = yes; then
22310 INST_LINGUAS="$INST_LINGUAS $presentlang"
22311 fi
22312 done
22313 fi
22314 CATALOGS=
22315 if test -n "$INST_LINGUAS"; then
22316 for lang in $INST_LINGUAS; do
22317 CATALOGS="$CATALOGS $lang.gmo"
22318 done
22319 fi
22320 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22321 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
22322 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22323 if test -f "$f"; then
22324 case "$f" in
22325 *.orig | *.bak | *~) ;;
22326 *) cat "$f" >> "$ac_dir/Makefile" ;;
22327 esac
22328 fi
22329 done
22330 fi
22331 ;;
22332 esac
22333 done ;;
22334 "default-2":C)
22335 for ac_file in $CONFIG_FILES; do
22336 # Support "outfile[:infile[:infile...]]"
22337 case "$ac_file" in
22338 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22339 esac
22340 # PO directories have a Makefile.in generated from Makefile.in.in.
22341 case "$ac_file" in */Makefile.in)
22342 # Adjust a relative srcdir.
22343 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22344 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
22345 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22346 # In autoconf-2.13 it is called $ac_given_srcdir.
22347 # In autoconf-2.50 it is called $srcdir.
22348 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22349 case "$ac_given_srcdir" in
22350 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22351 /*) top_srcdir="$ac_given_srcdir" ;;
22352 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22353 esac
22354 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22355 rm -f "$ac_dir/POTFILES"
22356 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22357 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22358 POMAKEFILEDEPS="POTFILES.in"
22359 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22360 # on $ac_dir but don't depend on user-specified configuration
22361 # parameters.
22362 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22363 # The LINGUAS file contains the set of available languages.
22364 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22365 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
22366 fi
22367 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22368 # Hide the ALL_LINGUAS assigment from automake.
22369 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22370 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22371 else
22372 # The set of available languages was given in configure.ac.
22373 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22374 fi
22375 case "$ac_given_srcdir" in
22376 .) srcdirpre= ;;
22377 *) srcdirpre='$(srcdir)/' ;;
22378 esac
22379 POFILES=
22380 GMOFILES=
22381 UPDATEPOFILES=
22382 DUMMYPOFILES=
22383 for lang in $ALL_LINGUAS; do
22384 POFILES="$POFILES $srcdirpre$lang.po"
22385 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22386 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22387 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22388 done
22389 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22390 # environment variable.
22391 INST_LINGUAS=
22392 if test -n "$ALL_LINGUAS"; then
22393 for presentlang in $ALL_LINGUAS; do
22394 useit=no
22395 if test "%UNSET%" != "$LINGUAS"; then
22396 desiredlanguages="$LINGUAS"
22397 else
22398 desiredlanguages="$ALL_LINGUAS"
22399 fi
22400 for desiredlang in $desiredlanguages; do
22401 # Use the presentlang catalog if desiredlang is
22402 # a. equal to presentlang, or
22403 # b. a variant of presentlang (because in this case,
22404 # presentlang can be used as a fallback for messages
22405 # which are not translated in the desiredlang catalog).
22406 case "$desiredlang" in
22407 "$presentlang"*) useit=yes;;
22408 esac
22409 done
22410 if test $useit = yes; then
22411 INST_LINGUAS="$INST_LINGUAS $presentlang"
22412 fi
22413 done
22414 fi
22415 CATALOGS=
22416 if test -n "$INST_LINGUAS"; then
22417 for lang in $INST_LINGUAS; do
22418 CATALOGS="$CATALOGS $lang.gmo"
22419 done
22420 fi
22421 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22422 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
22423 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22424 if test -f "$f"; then
22425 case "$f" in
22426 *.orig | *.bak | *~) ;;
22427 *) cat "$f" >> "$ac_dir/Makefile" ;;
22428 esac
22429 fi
22430 done
22431 fi
22432 ;;
22433 esac
22434 done ;;
22435 "default":C)
22436 case "$srcdir" in
22437 .) srcdirpre= ;;
22438 *) srcdirpre='$(srcdir)/' ;;
22439 esac
22440 POFILES=
22441 GMOFILES=
22442 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
22443 if test $lang != dummy; then
22444 POFILES="$POFILES $srcdirpre$lang.po"
22445 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22446 fi
22447 done
22448 sed -e '/^SRC-POTFILES =/r po/SRC-POTFILES' \
22449 -e '/^BLD-POTFILES =/r po/BLD-POTFILES' \
22450 -e "s,@POFILES@,$POFILES," \
22451 -e "s,@GMOFILES@,$GMOFILES," \
22452 po/Makefile.in > po/Makefile ;;
22453
22454 esac
22455 done # for ac_tag
22456
22457
22458 as_fn_exit 0
22459 _ACEOF
22460 ac_clean_files=$ac_clean_files_save
22461
22462 test $ac_write_fail = 0 ||
22463 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22464
22465
22466 # configure is writing to config.log, and then calls config.status.
22467 # config.status does its own redirection, appending to config.log.
22468 # Unfortunately, on DOS this fails, as config.log is still kept open
22469 # by configure, so config.status won't be able to write to it; its
22470 # output is simply discarded. So we exec the FD to /dev/null,
22471 # effectively closing config.log, so it can be properly (re)opened and
22472 # appended to by config.status. When coming back to configure, we
22473 # need to make the FD available again.
22474 if test "$no_create" != yes; then
22475 ac_cs_success=:
22476 ac_config_status_args=
22477 test "$silent" = yes &&
22478 ac_config_status_args="$ac_config_status_args --quiet"
22479 exec 5>/dev/null
22480 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22481 exec 5>>config.log
22482 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22483 # would make configure fail if this is the last instruction.
22484 $ac_cs_success || as_fn_exit 1
22485 fi
22486 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22488 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22489 fi
22490
22491
22492
22493 touch config.status.tmp
22494 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
22495 sed '/as_fn_exit 0/i \
22496 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
22497 touch --reference=Makefile Makefile.tmp \
22498 mv Makefile.tmp Makefile \
22499 ' config.status > config.status.tmp
22500 touch --reference=config.status config.status.tmp
22501 mv config.status.tmp config.status
22502 chmod +x config.status
22503 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
22504 touch --reference=Makefile Makefile.tmp
22505 mv Makefile.tmp Makefile
22506 else
22507 rm -f config.status.tmp
22508 fi