configure revision 1.1.1.13 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ld 2.46.0.
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 bug-autoconf (at] gnu.org 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.46.0'
591 PACKAGE_STRING='ld 2.46.0'
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 TESTSFRAMELIB
639 TESTCTFLIB
640 TESTBFDLIB
641 EMULATION_LIBPATH
642 LIB_PATH
643 EMUL_EXTRA_OFILES
644 EMULATION_OFILES
645 TDIRS
646 EMUL
647 elf_sframe_list_options
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 LARGEFILE_CPPFLAGS
701 CXXCPP
702 OTOOL64
703 OTOOL
704 LIPO
705 NMEDIT
706 DSYMUTIL
707 RANLIB
708 AR
709 LLVM_CONFIG
710 OBJDUMP
711 LN_S
712 NM
713 ac_ct_DUMPBIN
714 DUMPBIN
715 LD
716 FGREP
717 SED
718 LIBTOOL
719 PKG_CONFIG_LIBDIR
720 PKG_CONFIG_PATH
721 PKG_CONFIG
722 EGREP
723 CPP
724 GREP
725 am__fastdepCXX_FALSE
726 am__fastdepCXX_TRUE
727 CXXDEPMODE
728 ac_ct_CXX
729 CXXFLAGS
730 CXX
731 am__fastdepCC_FALSE
732 am__fastdepCC_TRUE
733 CCDEPMODE
734 am__nodep
735 AMDEPBACKSLASH
736 AMDEP_FALSE
737 AMDEP_TRUE
738 am__quote
739 am__include
740 DEPDIR
741 OBJEXT
742 EXEEXT
743 ac_ct_CC
744 CPPFLAGS
745 LDFLAGS
746 CFLAGS
747 CC
748 MAINT
749 MAINTAINER_MODE_FALSE
750 MAINTAINER_MODE_TRUE
751 AM_BACKSLASH
752 AM_DEFAULT_VERBOSITY
753 AM_DEFAULT_V
754 AM_V
755 am__untar
756 am__tar
757 AMTAR
758 am__leading_dot
759 SET_MAKE
760 AWK
761 mkdir_p
762 MKDIR_P
763 INSTALL_STRIP_PROGRAM
764 STRIP
765 install_sh
766 MAKEINFO
767 AUTOHEADER
768 AUTOMAKE
769 AUTOCONF
770 ACLOCAL
771 VERSION
772 PACKAGE
773 CYGPATH_W
774 am__isrc
775 INSTALL_DATA
776 INSTALL_SCRIPT
777 INSTALL_PROGRAM
778 target_os
779 target_vendor
780 target_cpu
781 target
782 host_os
783 host_vendor
784 host_cpu
785 host
786 build_os
787 build_vendor
788 build_cpu
789 build
790 target_alias
791 host_alias
792 build_alias
793 LIBS
794 ECHO_T
795 ECHO_N
796 ECHO_C
797 DEFS
798 mandir
799 localedir
800 libdir
801 psdir
802 pdfdir
803 dvidir
804 htmldir
805 infodir
806 docdir
807 oldincludedir
808 includedir
809 localstatedir
810 sharedstatedir
811 sysconfdir
812 datadir
813 datarootdir
814 libexecdir
815 sbindir
816 bindir
817 program_transform_name
818 prefix
819 exec_prefix
820 PACKAGE_URL
821 PACKAGE_BUGREPORT
822 PACKAGE_STRING
823 PACKAGE_VERSION
824 PACKAGE_TARNAME
825 PACKAGE_NAME
826 PATH_SEPARATOR
827 SHELL'
828 ac_subst_files=''
829 ac_user_opts='
830 enable_option_checking
831 enable_silent_rules
832 enable_maintainer_mode
833 enable_dependency_tracking
834 enable_shared
835 enable_static
836 with_pic
837 enable_fast_install
838 with_gnu_ld
839 enable_libtool_lock
840 enable_plugins
841 enable_largefile
842 enable_checking
843 with_lib_path
844 enable_targets
845 with_sysroot
846 enable_gold
847 enable_got
848 enable_compressed_debug_sections
849 enable_default_compressed_debug_sections_algorithm
850 enable_new_dtags
851 enable_relro
852 enable_textrel_check
853 enable_separate_code
854 enable_rosegment
855 enable_mark_plt
856 enable_gnu2_tls_tag
857 enable_gnu_tls_tag
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.46.0 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.46.0:";;
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-gold[=ARG] build gold [ARG={default,yes,no}]
1541 --enable-got=<type> GOT handling scheme (target, single, negative,
1542 multigot)
1543 --enable-compressed-debug-sections={all,ld,none}
1544 compress debug sections by default]
1545 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1546 Default compression algorithm for
1547 --enable-compressed-debug-sections.
1548 --enable-new-dtags set DT_RUNPATH instead of DT_RPATH by default]
1549 --enable-relro enable -z relro in ELF linker by default
1550 --enable-textrel-check=[yes|no|warning|error]
1551 enable DT_TEXTREL check in ELF linker
1552 --enable-separate-code enable -z separate-code in ELF linker by default
1553 --enable-rosegment enable --rosegment in the ELF linker by default
1554 --enable-mark-plt enable -z mark-plt in ELF x86-64 linker by default
1555 --enable-gnu2-tls-tag enable --gnu2-tls-tag in ELF i386/x86-64 linker by
1556 default
1557 --enable-gnu-tls-tag enable --gnu-tls-tag in ELF i386 linker by default
1558 --enable-memory-seal enable -z memory-seal in ELF linker by default
1559 --enable-warn-execstack enable warnings when creating an executable stack
1560 --enable-error-execstack
1561 turn executable stack warnings into errors
1562 --enable-warn-rwx-segments
1563 enable warnings when creating segments with RWX
1564 permissions
1565 --enable-error-rwx-segments
1566 turn executable segment warnings into errors
1567 --enable-default-execstack
1568 create an executable stack if an input file is
1569 missing a .note.GNU-stack section
1570 --enable-error-handling-script
1571 enable/disable support for the
1572 --error-handling-script option
1573 --enable-default-hash-style={sysv,gnu,both}
1574 use this default hash style
1575 --disable-initfini-array do not use .init_array/.fini_array sections
1576 --enable-libctf Handle .ctf type-info sections [default=yes]
1577 --enable-jansson enable jansson [default=no]
1578 --enable-werror treat compile warnings as errors
1579 --enable-build-warnings enable build-time compiler warnings
1580 --disable-nls do not use Native Language Support
1581 --disable-rpath do not hardcode runtime library paths
1582
1583 Optional Packages:
1584 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1585 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1586 --with-pic try to use only PIC/non-PIC objects [default=use
1587 both]
1588 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1589 --with-lib-path=dir1:dir2... set default LIB_PATH
1590 --with-sysroot=DIR Search for usr/lib et al within DIR.
1591 --with-gnu-ld assume the C compiler uses GNU ld default=no
1592 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1593 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1594 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1595 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1596 --without-libintl-prefix don't search for libintl in includedir and libdir
1597 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1598 --with-xxhash use inlined libxxhash for hashing (faster)
1599 (auto/yes/no)
1600 --with-system-zlib use installed libz
1601 --with-zstd support zstd compressed debug sections
1602 (default=auto)
1603
1604 Some influential environment variables:
1605 CC C compiler command
1606 CFLAGS C compiler flags
1607 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1608 nonstandard directory <lib dir>
1609 LIBS libraries to pass to the linker, e.g. -l<library>
1610 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1611 you have headers in a nonstandard directory <include dir>
1612 CXX C++ compiler command
1613 CXXFLAGS C++ compiler flags
1614 CPP C preprocessor
1615 PKG_CONFIG path to pkg-config utility
1616 PKG_CONFIG_PATH
1617 directories to add to pkg-config's search path
1618 PKG_CONFIG_LIBDIR
1619 path overriding pkg-config's built-in search path
1620 CXXCPP C++ preprocessor
1621 JANSSON_CFLAGS
1622 C compiler flags for JANSSON, overriding pkg-config
1623 JANSSON_LIBS
1624 linker flags for JANSSON, overriding pkg-config
1625 YACC The `Yet Another Compiler Compiler' implementation to use.
1626 Defaults to the first program found out of: `bison -y', `byacc',
1627 `yacc'.
1628 YFLAGS The list of arguments that will be passed by default to $YACC.
1629 This script will default YFLAGS to the empty string to avoid a
1630 default value of `-d' given by some make applications.
1631 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1632 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1633
1634 Use these variables to override the choices made by `configure' or to help
1635 it to find libraries and programs with nonstandard names/locations.
1636
1637 Report bugs to the package provider.
1638 _ACEOF
1639 ac_status=$?
1640 fi
1641
1642 if test "$ac_init_help" = "recursive"; then
1643 # If there are subdirs, report their specific --help.
1644 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1645 test -d "$ac_dir" ||
1646 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1647 continue
1648 ac_builddir=.
1649
1650 case "$ac_dir" in
1651 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652 *)
1653 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1654 # A ".." for each directory in $ac_dir_suffix.
1655 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1656 case $ac_top_builddir_sub in
1657 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1659 esac ;;
1660 esac
1661 ac_abs_top_builddir=$ac_pwd
1662 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1663 # for backward compatibility:
1664 ac_top_builddir=$ac_top_build_prefix
1665
1666 case $srcdir in
1667 .) # We are building in place.
1668 ac_srcdir=.
1669 ac_top_srcdir=$ac_top_builddir_sub
1670 ac_abs_top_srcdir=$ac_pwd ;;
1671 [\\/]* | ?:[\\/]* ) # Absolute name.
1672 ac_srcdir=$srcdir$ac_dir_suffix;
1673 ac_top_srcdir=$srcdir
1674 ac_abs_top_srcdir=$srcdir ;;
1675 *) # Relative name.
1676 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1677 ac_top_srcdir=$ac_top_build_prefix$srcdir
1678 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1679 esac
1680 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1681
1682 cd "$ac_dir" || { ac_status=$?; continue; }
1683 # Check for guested configure.
1684 if test -f "$ac_srcdir/configure.gnu"; then
1685 echo &&
1686 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1687 elif test -f "$ac_srcdir/configure"; then
1688 echo &&
1689 $SHELL "$ac_srcdir/configure" --help=recursive
1690 else
1691 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1692 fi || ac_status=$?
1693 cd "$ac_pwd" || { ac_status=$?; break; }
1694 done
1695 fi
1696
1697 test -n "$ac_init_help" && exit $ac_status
1698 if $ac_init_version; then
1699 cat <<\_ACEOF
1700 ld configure 2.46.0
1701 generated by GNU Autoconf 2.69
1702
1703 Copyright (C) 2012 Free Software Foundation, Inc.
1704 This configure script is free software; the Free Software Foundation
1705 gives unlimited permission to copy, distribute and modify it.
1706 _ACEOF
1707 exit
1708 fi
1709
1710 ## ------------------------ ##
1711 ## Autoconf initialization. ##
1712 ## ------------------------ ##
1713
1714 # ac_fn_c_try_compile LINENO
1715 # --------------------------
1716 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1717 ac_fn_c_try_compile ()
1718 {
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 rm -f conftest.$ac_objext
1721 if { { ac_try="$ac_compile"
1722 case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_compile") 2>conftest.err
1729 ac_status=$?
1730 if test -s conftest.err; then
1731 grep -v '^ *+' conftest.err >conftest.er1
1732 cat conftest.er1 >&5
1733 mv -f conftest.er1 conftest.err
1734 fi
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && {
1737 test -z "$ac_c_werror_flag" ||
1738 test ! -s conftest.err
1739 } && test -s conftest.$ac_objext; then :
1740 ac_retval=0
1741 else
1742 $as_echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.$ac_ext >&5
1744
1745 ac_retval=1
1746 fi
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 as_fn_set_status $ac_retval
1749
1750 } # ac_fn_c_try_compile
1751
1752 # ac_fn_cxx_try_compile LINENO
1753 # ----------------------------
1754 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1755 ac_fn_cxx_try_compile ()
1756 {
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 rm -f conftest.$ac_objext
1759 if { { ac_try="$ac_compile"
1760 case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_compile") 2>conftest.err
1767 ac_status=$?
1768 if test -s conftest.err; then
1769 grep -v '^ *+' conftest.err >conftest.er1
1770 cat conftest.er1 >&5
1771 mv -f conftest.er1 conftest.err
1772 fi
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } && {
1775 test -z "$ac_cxx_werror_flag" ||
1776 test ! -s conftest.err
1777 } && test -s conftest.$ac_objext; then :
1778 ac_retval=0
1779 else
1780 $as_echo "$as_me: failed program was:" >&5
1781 sed 's/^/| /' conftest.$ac_ext >&5
1782
1783 ac_retval=1
1784 fi
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786 as_fn_set_status $ac_retval
1787
1788 } # ac_fn_cxx_try_compile
1789
1790 # ac_fn_c_try_cpp LINENO
1791 # ----------------------
1792 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1793 ac_fn_c_try_cpp ()
1794 {
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 if { { ac_try="$ac_cpp conftest.$ac_ext"
1797 case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1804 ac_status=$?
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1809 fi
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } > conftest.i && {
1812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1813 test ! -s conftest.err
1814 }; then :
1815 ac_retval=0
1816 else
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1819
1820 ac_retval=1
1821 fi
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 as_fn_set_status $ac_retval
1824
1825 } # ac_fn_c_try_cpp
1826
1827 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1828 # -------------------------------------------------------
1829 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1830 # the include files in INCLUDES and setting the cache variable VAR
1831 # accordingly.
1832 ac_fn_c_check_header_mongrel ()
1833 {
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 if eval \${$3+:} false; then :
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if eval \${$3+:} false; then :
1839 $as_echo_n "(cached) " >&6
1840 fi
1841 eval ac_res=\$$3
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1844 else
1845 # Is the header compilable?
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1847 $as_echo_n "checking $2 usability... " >&6; }
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1850 $4
1851 #include <$2>
1852 _ACEOF
1853 if ac_fn_c_try_compile "$LINENO"; then :
1854 ac_header_compiler=yes
1855 else
1856 ac_header_compiler=no
1857 fi
1858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1860 $as_echo "$ac_header_compiler" >&6; }
1861
1862 # Is the header present?
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1864 $as_echo_n "checking $2 presence... " >&6; }
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1867 #include <$2>
1868 _ACEOF
1869 if ac_fn_c_try_cpp "$LINENO"; then :
1870 ac_header_preproc=yes
1871 else
1872 ac_header_preproc=no
1873 fi
1874 rm -f conftest.err conftest.i conftest.$ac_ext
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1876 $as_echo "$ac_header_preproc" >&6; }
1877
1878 # So? What about this header?
1879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1880 yes:no: )
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1882 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1884 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1885 ;;
1886 no:yes:* )
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1888 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1890 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1892 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1894 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1896 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1897 ;;
1898 esac
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if eval \${$3+:} false; then :
1902 $as_echo_n "(cached) " >&6
1903 else
1904 eval "$3=\$ac_header_compiler"
1905 fi
1906 eval ac_res=\$$3
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1908 $as_echo "$ac_res" >&6; }
1909 fi
1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911
1912 } # ac_fn_c_check_header_mongrel
1913
1914 # ac_fn_c_try_run LINENO
1915 # ----------------------
1916 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1917 # that executables *can* be run.
1918 ac_fn_c_try_run ()
1919 {
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921 if { { ac_try="$ac_link"
1922 case "(($ac_try" in
1923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924 *) ac_try_echo=$ac_try;;
1925 esac
1926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927 $as_echo "$ac_try_echo"; } >&5
1928 (eval "$ac_link") 2>&5
1929 ac_status=$?
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1932 { { case "(($ac_try" in
1933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934 *) ac_try_echo=$ac_try;;
1935 esac
1936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937 $as_echo "$ac_try_echo"; } >&5
1938 (eval "$ac_try") 2>&5
1939 ac_status=$?
1940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941 test $ac_status = 0; }; }; then :
1942 ac_retval=0
1943 else
1944 $as_echo "$as_me: program exited with status $ac_status" >&5
1945 $as_echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1947
1948 ac_retval=$ac_status
1949 fi
1950 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 as_fn_set_status $ac_retval
1953
1954 } # ac_fn_c_try_run
1955
1956 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1957 # -------------------------------------------------------
1958 # Tests whether HEADER exists and can be compiled using the include files in
1959 # INCLUDES, setting the cache variable VAR accordingly.
1960 ac_fn_c_check_header_compile ()
1961 {
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964 $as_echo_n "checking for $2... " >&6; }
1965 if eval \${$3+:} false; then :
1966 $as_echo_n "(cached) " >&6
1967 else
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1970 $4
1971 #include <$2>
1972 _ACEOF
1973 if ac_fn_c_try_compile "$LINENO"; then :
1974 eval "$3=yes"
1975 else
1976 eval "$3=no"
1977 fi
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 fi
1980 eval ac_res=\$$3
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984
1985 } # ac_fn_c_check_header_compile
1986
1987 # ac_fn_c_try_link LINENO
1988 # -----------------------
1989 # Try to link conftest.$ac_ext, and return whether this succeeded.
1990 ac_fn_c_try_link ()
1991 {
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 rm -f conftest.$ac_objext conftest$ac_exeext
1994 if { { ac_try="$ac_link"
1995 case "(($ac_try" in
1996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1998 esac
1999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_link") 2>conftest.err
2002 ac_status=$?
2003 if test -s conftest.err; then
2004 grep -v '^ *+' conftest.err >conftest.er1
2005 cat conftest.er1 >&5
2006 mv -f conftest.er1 conftest.err
2007 fi
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } && {
2010 test -z "$ac_c_werror_flag" ||
2011 test ! -s conftest.err
2012 } && test -s conftest$ac_exeext && {
2013 test "$cross_compiling" = yes ||
2014 test -x conftest$ac_exeext
2015 }; then :
2016 ac_retval=0
2017 else
2018 $as_echo "$as_me: failed program was:" >&5
2019 sed 's/^/| /' conftest.$ac_ext >&5
2020
2021 ac_retval=1
2022 fi
2023 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2024 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2025 # interfere with the next link command; also delete a directory that is
2026 # left behind by Apple's compiler. We do this before executing the actions.
2027 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2028 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2029 as_fn_set_status $ac_retval
2030
2031 } # ac_fn_c_try_link
2032
2033 # ac_fn_c_check_func LINENO FUNC VAR
2034 # ----------------------------------
2035 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2036 ac_fn_c_check_func ()
2037 {
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if eval \${$3+:} false; then :
2042 $as_echo_n "(cached) " >&6
2043 else
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2046 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2048 #define $2 innocuous_$2
2049
2050 /* System header to define __stub macros and hopefully few prototypes,
2051 which can conflict with char $2 (); below.
2052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2053 <limits.h> exists even on freestanding compilers. */
2054
2055 #ifdef __STDC__
2056 # include <limits.h>
2057 #else
2058 # include <assert.h>
2059 #endif
2060
2061 #undef $2
2062
2063 /* Override any GCC internal prototype to avoid an error.
2064 Use char because int might match the return type of a GCC
2065 builtin and then its argument prototype would still apply. */
2066 #ifdef __cplusplus
2067 extern "C"
2068 #endif
2069 char $2 ();
2070 /* The GNU C library defines this for functions which it implements
2071 to always fail with ENOSYS. Some functions are actually named
2072 something starting with __ and the normal name is an alias. */
2073 #if defined __stub_$2 || defined __stub___$2
2074 choke me
2075 #endif
2076
2077 int
2078 main ()
2079 {
2080 return $2 ();
2081 ;
2082 return 0;
2083 }
2084 _ACEOF
2085 if ac_fn_c_try_link "$LINENO"; then :
2086 eval "$3=yes"
2087 else
2088 eval "$3=no"
2089 fi
2090 rm -f core conftest.err conftest.$ac_objext \
2091 conftest$ac_exeext conftest.$ac_ext
2092 fi
2093 eval ac_res=\$$3
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095 $as_echo "$ac_res" >&6; }
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097
2098 } # ac_fn_c_check_func
2099
2100 # ac_fn_cxx_try_cpp LINENO
2101 # ------------------------
2102 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2103 ac_fn_cxx_try_cpp ()
2104 {
2105 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2106 if { { ac_try="$ac_cpp conftest.$ac_ext"
2107 case "(($ac_try" in
2108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2109 *) ac_try_echo=$ac_try;;
2110 esac
2111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2112 $as_echo "$ac_try_echo"; } >&5
2113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2114 ac_status=$?
2115 if test -s conftest.err; then
2116 grep -v '^ *+' conftest.err >conftest.er1
2117 cat conftest.er1 >&5
2118 mv -f conftest.er1 conftest.err
2119 fi
2120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2121 test $ac_status = 0; } > conftest.i && {
2122 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2123 test ! -s conftest.err
2124 }; then :
2125 ac_retval=0
2126 else
2127 $as_echo "$as_me: failed program was:" >&5
2128 sed 's/^/| /' conftest.$ac_ext >&5
2129
2130 ac_retval=1
2131 fi
2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 as_fn_set_status $ac_retval
2134
2135 } # ac_fn_cxx_try_cpp
2136
2137 # ac_fn_cxx_try_link LINENO
2138 # -------------------------
2139 # Try to link conftest.$ac_ext, and return whether this succeeded.
2140 ac_fn_cxx_try_link ()
2141 {
2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143 rm -f conftest.$ac_objext conftest$ac_exeext
2144 if { { ac_try="$ac_link"
2145 case "(($ac_try" in
2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147 *) ac_try_echo=$ac_try;;
2148 esac
2149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2150 $as_echo "$ac_try_echo"; } >&5
2151 (eval "$ac_link") 2>conftest.err
2152 ac_status=$?
2153 if test -s conftest.err; then
2154 grep -v '^ *+' conftest.err >conftest.er1
2155 cat conftest.er1 >&5
2156 mv -f conftest.er1 conftest.err
2157 fi
2158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2159 test $ac_status = 0; } && {
2160 test -z "$ac_cxx_werror_flag" ||
2161 test ! -s conftest.err
2162 } && test -s conftest$ac_exeext && {
2163 test "$cross_compiling" = yes ||
2164 test -x conftest$ac_exeext
2165 }; then :
2166 ac_retval=0
2167 else
2168 $as_echo "$as_me: failed program was:" >&5
2169 sed 's/^/| /' conftest.$ac_ext >&5
2170
2171 ac_retval=1
2172 fi
2173 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2174 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2175 # interfere with the next link command; also delete a directory that is
2176 # left behind by Apple's compiler. We do this before executing the actions.
2177 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2178 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2179 as_fn_set_status $ac_retval
2180
2181 } # ac_fn_cxx_try_link
2182
2183 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2184 # ---------------------------------------------
2185 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2186 # accordingly.
2187 ac_fn_c_check_decl ()
2188 {
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 as_decl_name=`echo $2|sed 's/ *(.*//'`
2191 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2193 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2194 if eval \${$3+:} false; then :
2195 $as_echo_n "(cached) " >&6
2196 else
2197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198 /* end confdefs.h. */
2199 $4
2200 int
2201 main ()
2202 {
2203 #ifndef $as_decl_name
2204 #ifdef __cplusplus
2205 (void) $as_decl_use;
2206 #else
2207 (void) $as_decl_name;
2208 #endif
2209 #endif
2210
2211 ;
2212 return 0;
2213 }
2214 _ACEOF
2215 if ac_fn_c_try_compile "$LINENO"; then :
2216 eval "$3=yes"
2217 else
2218 eval "$3=no"
2219 fi
2220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221 fi
2222 eval ac_res=\$$3
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2224 $as_echo "$ac_res" >&6; }
2225 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2226
2227 } # ac_fn_c_check_decl
2228 cat >config.log <<_ACEOF
2229 This file contains any messages produced by compilers while
2230 running configure, to aid debugging if configure makes a mistake.
2231
2232 It was created by ld $as_me 2.46.0, which was
2233 generated by GNU Autoconf 2.69. Invocation command line was
2234
2235 $ $0 $@
2236
2237 _ACEOF
2238 exec 5>>config.log
2239 {
2240 cat <<_ASUNAME
2241 ## --------- ##
2242 ## Platform. ##
2243 ## --------- ##
2244
2245 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2246 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2247 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2248 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2249 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2250
2251 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2252 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2253
2254 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2255 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2256 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2257 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2258 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2259 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2260 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2261
2262 _ASUNAME
2263
2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 for as_dir in $PATH
2266 do
2267 IFS=$as_save_IFS
2268 test -z "$as_dir" && as_dir=.
2269 $as_echo "PATH: $as_dir"
2270 done
2271 IFS=$as_save_IFS
2272
2273 } >&5
2274
2275 cat >&5 <<_ACEOF
2276
2277
2278 ## ----------- ##
2279 ## Core tests. ##
2280 ## ----------- ##
2281
2282 _ACEOF
2283
2284
2285 # Keep a trace of the command line.
2286 # Strip out --no-create and --no-recursion so they do not pile up.
2287 # Strip out --silent because we don't want to record it for future runs.
2288 # Also quote any args containing shell meta-characters.
2289 # Make two passes to allow for proper duplicate-argument suppression.
2290 ac_configure_args=
2291 ac_configure_args0=
2292 ac_configure_args1=
2293 ac_must_keep_next=false
2294 for ac_pass in 1 2
2295 do
2296 for ac_arg
2297 do
2298 case $ac_arg in
2299 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2300 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2301 | -silent | --silent | --silen | --sile | --sil)
2302 continue ;;
2303 *\'*)
2304 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2305 esac
2306 case $ac_pass in
2307 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2308 2)
2309 as_fn_append ac_configure_args1 " '$ac_arg'"
2310 if test $ac_must_keep_next = true; then
2311 ac_must_keep_next=false # Got value, back to normal.
2312 else
2313 case $ac_arg in
2314 *=* | --config-cache | -C | -disable-* | --disable-* \
2315 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2316 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2317 | -with-* | --with-* | -without-* | --without-* | --x)
2318 case "$ac_configure_args0 " in
2319 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2320 esac
2321 ;;
2322 -* ) ac_must_keep_next=true ;;
2323 esac
2324 fi
2325 as_fn_append ac_configure_args " '$ac_arg'"
2326 ;;
2327 esac
2328 done
2329 done
2330 { ac_configure_args0=; unset ac_configure_args0;}
2331 { ac_configure_args1=; unset ac_configure_args1;}
2332
2333 # When interrupted or exit'd, cleanup temporary files, and complete
2334 # config.log. We remove comments because anyway the quotes in there
2335 # would cause problems or look ugly.
2336 # WARNING: Use '\'' to represent an apostrophe within the trap.
2337 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2338 trap 'exit_status=$?
2339 # Save into config.log some information that might help in debugging.
2340 {
2341 echo
2342
2343 $as_echo "## ---------------- ##
2344 ## Cache variables. ##
2345 ## ---------------- ##"
2346 echo
2347 # The following way of writing the cache mishandles newlines in values,
2348 (
2349 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2350 eval ac_val=\$$ac_var
2351 case $ac_val in #(
2352 *${as_nl}*)
2353 case $ac_var in #(
2354 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2355 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2356 esac
2357 case $ac_var in #(
2358 _ | IFS | as_nl) ;; #(
2359 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2360 *) { eval $ac_var=; unset $ac_var;} ;;
2361 esac ;;
2362 esac
2363 done
2364 (set) 2>&1 |
2365 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2366 *${as_nl}ac_space=\ *)
2367 sed -n \
2368 "s/'\''/'\''\\\\'\'''\''/g;
2369 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2370 ;; #(
2371 *)
2372 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2373 ;;
2374 esac |
2375 sort
2376 )
2377 echo
2378
2379 $as_echo "## ----------------- ##
2380 ## Output variables. ##
2381 ## ----------------- ##"
2382 echo
2383 for ac_var in $ac_subst_vars
2384 do
2385 eval ac_val=\$$ac_var
2386 case $ac_val in
2387 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2388 esac
2389 $as_echo "$ac_var='\''$ac_val'\''"
2390 done | sort
2391 echo
2392
2393 if test -n "$ac_subst_files"; then
2394 $as_echo "## ------------------- ##
2395 ## File substitutions. ##
2396 ## ------------------- ##"
2397 echo
2398 for ac_var in $ac_subst_files
2399 do
2400 eval ac_val=\$$ac_var
2401 case $ac_val in
2402 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2403 esac
2404 $as_echo "$ac_var='\''$ac_val'\''"
2405 done | sort
2406 echo
2407 fi
2408
2409 if test -s confdefs.h; then
2410 $as_echo "## ----------- ##
2411 ## confdefs.h. ##
2412 ## ----------- ##"
2413 echo
2414 cat confdefs.h
2415 echo
2416 fi
2417 test "$ac_signal" != 0 &&
2418 $as_echo "$as_me: caught signal $ac_signal"
2419 $as_echo "$as_me: exit $exit_status"
2420 } >&5
2421 rm -f core *.core core.conftest.* &&
2422 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2423 exit $exit_status
2424 ' 0
2425 for ac_signal in 1 2 13 15; do
2426 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2427 done
2428 ac_signal=0
2429
2430 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2431 rm -f -r conftest* confdefs.h
2432
2433 $as_echo "/* confdefs.h */" > confdefs.h
2434
2435 # Predefined preprocessor variables.
2436
2437 cat >>confdefs.h <<_ACEOF
2438 #define PACKAGE_NAME "$PACKAGE_NAME"
2439 _ACEOF
2440
2441 cat >>confdefs.h <<_ACEOF
2442 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2443 _ACEOF
2444
2445 cat >>confdefs.h <<_ACEOF
2446 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2447 _ACEOF
2448
2449 cat >>confdefs.h <<_ACEOF
2450 #define PACKAGE_STRING "$PACKAGE_STRING"
2451 _ACEOF
2452
2453 cat >>confdefs.h <<_ACEOF
2454 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2455 _ACEOF
2456
2457 cat >>confdefs.h <<_ACEOF
2458 #define PACKAGE_URL "$PACKAGE_URL"
2459 _ACEOF
2460
2461
2462 # Let the site file select an alternate cache file if it wants to.
2463 # Prefer an explicitly selected file to automatically selected ones.
2464 ac_site_file1=NONE
2465 ac_site_file2=NONE
2466 if test -n "$CONFIG_SITE"; then
2467 # We do not want a PATH search for config.site.
2468 case $CONFIG_SITE in #((
2469 -*) ac_site_file1=./$CONFIG_SITE;;
2470 */*) ac_site_file1=$CONFIG_SITE;;
2471 *) ac_site_file1=./$CONFIG_SITE;;
2472 esac
2473 elif test "x$prefix" != xNONE; then
2474 ac_site_file1=$prefix/share/config.site
2475 ac_site_file2=$prefix/etc/config.site
2476 else
2477 ac_site_file1=$ac_default_prefix/share/config.site
2478 ac_site_file2=$ac_default_prefix/etc/config.site
2479 fi
2480 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2481 do
2482 test "x$ac_site_file" = xNONE && continue
2483 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2485 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2486 sed 's/^/| /' "$ac_site_file" >&5
2487 . "$ac_site_file" \
2488 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2490 as_fn_error $? "failed to load site script $ac_site_file
2491 See \`config.log' for more details" "$LINENO" 5; }
2492 fi
2493 done
2494
2495 if test -r "$cache_file"; then
2496 # Some versions of bash will fail to source /dev/null (special files
2497 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2498 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2500 $as_echo "$as_me: loading cache $cache_file" >&6;}
2501 case $cache_file in
2502 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2503 *) . "./$cache_file";;
2504 esac
2505 fi
2506 else
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2508 $as_echo "$as_me: creating cache $cache_file" >&6;}
2509 >$cache_file
2510 fi
2511
2512 gt_needs="$gt_needs "
2513 as_fn_append ac_header_list " stdlib.h"
2514 as_fn_append ac_header_list " unistd.h"
2515 as_fn_append ac_header_list " sys/param.h"
2516 # Check that the precious variables saved in the cache have kept the same
2517 # value.
2518 ac_cache_corrupted=false
2519 for ac_var in $ac_precious_vars; do
2520 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2521 eval ac_new_set=\$ac_env_${ac_var}_set
2522 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2523 eval ac_new_val=\$ac_env_${ac_var}_value
2524 case $ac_old_set,$ac_new_set in
2525 set,)
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2527 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2528 ac_cache_corrupted=: ;;
2529 ,set)
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2531 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2532 ac_cache_corrupted=: ;;
2533 ,);;
2534 *)
2535 if test "x$ac_old_val" != "x$ac_new_val"; then
2536 # differences in whitespace do not lead to failure.
2537 ac_old_val_w=`echo x $ac_old_val`
2538 ac_new_val_w=`echo x $ac_new_val`
2539 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2541 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2542 ac_cache_corrupted=:
2543 else
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2545 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2546 eval $ac_var=\$ac_old_val
2547 fi
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2549 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2551 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2552 fi;;
2553 esac
2554 # Pass precious variables to config.status.
2555 if test "$ac_new_set" = set; then
2556 case $ac_new_val in
2557 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2558 *) ac_arg=$ac_var=$ac_new_val ;;
2559 esac
2560 case " $ac_configure_args " in
2561 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2562 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2563 esac
2564 fi
2565 done
2566 if $ac_cache_corrupted; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2570 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2571 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2572 fi
2573 ## -------------------- ##
2574 ## Main body of script. ##
2575 ## -------------------- ##
2576
2577 ac_ext=c
2578 ac_cpp='$CPP $CPPFLAGS'
2579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582
2583
2584
2585
2586
2587
2588
2589 ac_aux_dir=
2590 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2591 if test -f "$ac_dir/install-sh"; then
2592 ac_aux_dir=$ac_dir
2593 ac_install_sh="$ac_aux_dir/install-sh -c"
2594 break
2595 elif test -f "$ac_dir/install.sh"; then
2596 ac_aux_dir=$ac_dir
2597 ac_install_sh="$ac_aux_dir/install.sh -c"
2598 break
2599 elif test -f "$ac_dir/shtool"; then
2600 ac_aux_dir=$ac_dir
2601 ac_install_sh="$ac_aux_dir/shtool install -c"
2602 break
2603 fi
2604 done
2605 if test -z "$ac_aux_dir"; then
2606 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2607 fi
2608
2609 # These three variables are undocumented and unsupported,
2610 # and are intended to be withdrawn in a future Autoconf release.
2611 # They can cause serious problems if a builder's source tree is in a directory
2612 # whose full name contains unusual characters.
2613 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2614 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2615 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2616
2617
2618 # Make sure we can run config.sub.
2619 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2620 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2621
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2623 $as_echo_n "checking build system type... " >&6; }
2624 if ${ac_cv_build+:} false; then :
2625 $as_echo_n "(cached) " >&6
2626 else
2627 ac_build_alias=$build_alias
2628 test "x$ac_build_alias" = x &&
2629 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2630 test "x$ac_build_alias" = x &&
2631 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2632 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2633 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2634
2635 fi
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2637 $as_echo "$ac_cv_build" >&6; }
2638 case $ac_cv_build in
2639 *-*-*) ;;
2640 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2641 esac
2642 build=$ac_cv_build
2643 ac_save_IFS=$IFS; IFS='-'
2644 set x $ac_cv_build
2645 shift
2646 build_cpu=$1
2647 build_vendor=$2
2648 shift; shift
2649 # Remember, the first character of IFS is used to create $*,
2650 # except with old shells:
2651 build_os=$*
2652 IFS=$ac_save_IFS
2653 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2654
2655
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2657 $as_echo_n "checking host system type... " >&6; }
2658 if ${ac_cv_host+:} false; then :
2659 $as_echo_n "(cached) " >&6
2660 else
2661 if test "x$host_alias" = x; then
2662 ac_cv_host=$ac_cv_build
2663 else
2664 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2665 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2666 fi
2667
2668 fi
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2670 $as_echo "$ac_cv_host" >&6; }
2671 case $ac_cv_host in
2672 *-*-*) ;;
2673 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2674 esac
2675 host=$ac_cv_host
2676 ac_save_IFS=$IFS; IFS='-'
2677 set x $ac_cv_host
2678 shift
2679 host_cpu=$1
2680 host_vendor=$2
2681 shift; shift
2682 # Remember, the first character of IFS is used to create $*,
2683 # except with old shells:
2684 host_os=$*
2685 IFS=$ac_save_IFS
2686 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2687
2688
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2690 $as_echo_n "checking target system type... " >&6; }
2691 if ${ac_cv_target+:} false; then :
2692 $as_echo_n "(cached) " >&6
2693 else
2694 if test "x$target_alias" = x; then
2695 ac_cv_target=$ac_cv_host
2696 else
2697 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2698 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2699 fi
2700
2701 fi
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2703 $as_echo "$ac_cv_target" >&6; }
2704 case $ac_cv_target in
2705 *-*-*) ;;
2706 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2707 esac
2708 target=$ac_cv_target
2709 ac_save_IFS=$IFS; IFS='-'
2710 set x $ac_cv_target
2711 shift
2712 target_cpu=$1
2713 target_vendor=$2
2714 shift; shift
2715 # Remember, the first character of IFS is used to create $*,
2716 # except with old shells:
2717 target_os=$*
2718 IFS=$ac_save_IFS
2719 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2720
2721
2722 # The aliases save the names the user supplied, while $host etc.
2723 # will get canonicalized.
2724 test -n "$target_alias" &&
2725 test "$program_prefix$program_suffix$program_transform_name" = \
2726 NONENONEs,x,x, &&
2727 program_prefix=${target_alias}-
2728
2729
2730 am__api_version='1.15'
2731
2732 # Find a good install program. We prefer a C program (faster),
2733 # so one script is as good as another. But avoid the broken or
2734 # incompatible versions:
2735 # SysV /etc/install, /usr/sbin/install
2736 # SunOS /usr/etc/install
2737 # IRIX /sbin/install
2738 # AIX /bin/install
2739 # AmigaOS /C/install, which installs bootblocks on floppy discs
2740 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2741 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2742 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2743 # OS/2's system install, which has a completely different semantic
2744 # ./install, which can be erroneously created by make from ./install.sh.
2745 # Reject install programs that cannot install multiple files.
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2747 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2748 if test -z "$INSTALL"; then
2749 if ${ac_cv_path_install+:} false; then :
2750 $as_echo_n "(cached) " >&6
2751 else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2754 do
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
2757 # Account for people who put trailing slashes in PATH elements.
2758 case $as_dir/ in #((
2759 ./ | .// | /[cC]/* | \
2760 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2761 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2762 /usr/ucb/* ) ;;
2763 *)
2764 # OSF1 and SCO ODT 3.0 have their own names for install.
2765 # Don't use installbsd from OSF since it installs stuff as root
2766 # by default.
2767 for ac_prog in ginstall scoinst install; do
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2770 if test $ac_prog = install &&
2771 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2772 # AIX install. It has an incompatible calling convention.
2773 :
2774 elif test $ac_prog = install &&
2775 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2776 # program-specific install script used by HP pwplus--don't use.
2777 :
2778 else
2779 rm -rf conftest.one conftest.two conftest.dir
2780 echo one > conftest.one
2781 echo two > conftest.two
2782 mkdir conftest.dir
2783 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2784 test -s conftest.one && test -s conftest.two &&
2785 test -s conftest.dir/conftest.one &&
2786 test -s conftest.dir/conftest.two
2787 then
2788 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2789 break 3
2790 fi
2791 fi
2792 fi
2793 done
2794 done
2795 ;;
2796 esac
2797
2798 done
2799 IFS=$as_save_IFS
2800
2801 rm -rf conftest.one conftest.two conftest.dir
2802
2803 fi
2804 if test "${ac_cv_path_install+set}" = set; then
2805 INSTALL=$ac_cv_path_install
2806 else
2807 # As a last resort, use the slow shell script. Don't cache a
2808 # value for INSTALL within a source directory, because that will
2809 # break other packages using the cache if that directory is
2810 # removed, or if the value is a relative name.
2811 INSTALL=$ac_install_sh
2812 fi
2813 fi
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2815 $as_echo "$INSTALL" >&6; }
2816
2817 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2818 # It thinks the first close brace ends the variable substitution.
2819 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2820
2821 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2822
2823 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2824
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2826 $as_echo_n "checking whether build environment is sane... " >&6; }
2827 # Reject unsafe characters in $srcdir or the absolute working directory
2828 # name. Accept space and tab only in the latter.
2829 am_lf='
2830 '
2831 case `pwd` in
2832 *[\\\"\#\$\&\'\`$am_lf]*)
2833 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2834 esac
2835 case $srcdir in
2836 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2837 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2838 esac
2839
2840 # Do 'set' in a subshell so we don't clobber the current shell's
2841 # arguments. Must try -L first in case configure is actually a
2842 # symlink; some systems play weird games with the mod time of symlinks
2843 # (eg FreeBSD returns the mod time of the symlink's containing
2844 # directory).
2845 if (
2846 am_has_slept=no
2847 for am_try in 1 2; do
2848 echo "timestamp, slept: $am_has_slept" > conftest.file
2849 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2850 if test "$*" = "X"; then
2851 # -L didn't work.
2852 set X `ls -t "$srcdir/configure" conftest.file`
2853 fi
2854 if test "$*" != "X $srcdir/configure conftest.file" \
2855 && test "$*" != "X conftest.file $srcdir/configure"; then
2856
2857 # If neither matched, then we have a broken ls. This can happen
2858 # if, for instance, CONFIG_SHELL is bash and it inherits a
2859 # broken ls alias from the environment. This has actually
2860 # happened. Such a system could not be considered "sane".
2861 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2862 alias in your environment" "$LINENO" 5
2863 fi
2864 if test "$2" = conftest.file || test $am_try -eq 2; then
2865 break
2866 fi
2867 # Just in case.
2868 sleep 1
2869 am_has_slept=yes
2870 done
2871 test "$2" = conftest.file
2872 )
2873 then
2874 # Ok.
2875 :
2876 else
2877 as_fn_error $? "newly created file is older than distributed files!
2878 Check your system clock" "$LINENO" 5
2879 fi
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2881 $as_echo "yes" >&6; }
2882 # If we didn't sleep, we still need to ensure time stamps of config.status and
2883 # generated files are strictly newer.
2884 am_sleep_pid=
2885 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2886 ( sleep 1 ) &
2887 am_sleep_pid=$!
2888 fi
2889
2890 rm -f conftest.file
2891
2892 test "$program_prefix" != NONE &&
2893 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2894 # Use a double $ so make ignores it.
2895 test "$program_suffix" != NONE &&
2896 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2897 # Double any \ or $.
2898 # By default was `s,x,x', remove it if useless.
2899 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2900 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2901
2902 # Expand $ac_aux_dir to an absolute path.
2903 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2904
2905 if test x"${MISSING+set}" != xset; then
2906 case $am_aux_dir in
2907 *\ * | *\ *)
2908 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2909 *)
2910 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2911 esac
2912 fi
2913 # Use eval to expand $SHELL
2914 if eval "$MISSING --is-lightweight"; then
2915 am_missing_run="$MISSING "
2916 else
2917 am_missing_run=
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2919 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2920 fi
2921
2922 if test x"${install_sh+set}" != xset; then
2923 case $am_aux_dir in
2924 *\ * | *\ *)
2925 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2926 *)
2927 install_sh="\${SHELL} $am_aux_dir/install-sh"
2928 esac
2929 fi
2930
2931 # Installed binaries are usually stripped using 'strip' when the user
2932 # run "make install-strip". However 'strip' might not be the right
2933 # tool to use in cross-compilation environments, therefore Automake
2934 # will honor the 'STRIP' environment variable to overrule this program.
2935 if test "$cross_compiling" != no; then
2936 if test -n "$ac_tool_prefix"; then
2937 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2938 set dummy ${ac_tool_prefix}strip; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if ${ac_cv_prog_STRIP+:} false; then :
2942 $as_echo_n "(cached) " >&6
2943 else
2944 if test -n "$STRIP"; then
2945 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2949 do
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 break 2
2957 fi
2958 done
2959 done
2960 IFS=$as_save_IFS
2961
2962 fi
2963 fi
2964 STRIP=$ac_cv_prog_STRIP
2965 if test -n "$STRIP"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2967 $as_echo "$STRIP" >&6; }
2968 else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2971 fi
2972
2973
2974 fi
2975 if test -z "$ac_cv_prog_STRIP"; then
2976 ac_ct_STRIP=$STRIP
2977 # Extract the first word of "strip", so it can be a program name with args.
2978 set dummy strip; ac_word=$2
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980 $as_echo_n "checking for $ac_word... " >&6; }
2981 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2982 $as_echo_n "(cached) " >&6
2983 else
2984 if test -n "$ac_ct_STRIP"; then
2985 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2986 else
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 for as_dir in $PATH
2989 do
2990 IFS=$as_save_IFS
2991 test -z "$as_dir" && as_dir=.
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2994 ac_cv_prog_ac_ct_STRIP="strip"
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 break 2
2997 fi
2998 done
2999 done
3000 IFS=$as_save_IFS
3001
3002 fi
3003 fi
3004 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3005 if test -n "$ac_ct_STRIP"; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3007 $as_echo "$ac_ct_STRIP" >&6; }
3008 else
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3011 fi
3012
3013 if test "x$ac_ct_STRIP" = x; then
3014 STRIP=":"
3015 else
3016 case $cross_compiling:$ac_tool_warned in
3017 yes:)
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3020 ac_tool_warned=yes ;;
3021 esac
3022 STRIP=$ac_ct_STRIP
3023 fi
3024 else
3025 STRIP="$ac_cv_prog_STRIP"
3026 fi
3027
3028 fi
3029 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3030
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3032 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3033 if test -z "$MKDIR_P"; then
3034 if ${ac_cv_path_mkdir+:} false; then :
3035 $as_echo_n "(cached) " >&6
3036 else
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3039 do
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
3042 for ac_prog in mkdir gmkdir; do
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3045 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3046 'mkdir (GNU coreutils) '* | \
3047 'mkdir (coreutils) '* | \
3048 'mkdir (fileutils) '4.1*)
3049 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3050 break 3;;
3051 esac
3052 done
3053 done
3054 done
3055 IFS=$as_save_IFS
3056
3057 fi
3058
3059 test -d ./--version && rmdir ./--version
3060 if test "${ac_cv_path_mkdir+set}" = set; then
3061 MKDIR_P="$ac_cv_path_mkdir -p"
3062 else
3063 # As a last resort, use the slow shell script. Don't cache a
3064 # value for MKDIR_P within a source directory, because that will
3065 # break other packages using the cache if that directory is
3066 # removed, or if the value is a relative name.
3067 MKDIR_P="$ac_install_sh -d"
3068 fi
3069 fi
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3071 $as_echo "$MKDIR_P" >&6; }
3072
3073 for ac_prog in gawk mawk nawk awk
3074 do
3075 # Extract the first word of "$ac_prog", so it can be a program name with args.
3076 set dummy $ac_prog; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_AWK+:} false; then :
3080 $as_echo_n "(cached) " >&6
3081 else
3082 if test -n "$AWK"; then
3083 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_prog_AWK="$ac_prog"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3095 fi
3096 done
3097 done
3098 IFS=$as_save_IFS
3099
3100 fi
3101 fi
3102 AWK=$ac_cv_prog_AWK
3103 if test -n "$AWK"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3105 $as_echo "$AWK" >&6; }
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 fi
3110
3111
3112 test -n "$AWK" && break
3113 done
3114
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3116 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3117 set x ${MAKE-make}
3118 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3119 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3120 $as_echo_n "(cached) " >&6
3121 else
3122 cat >conftest.make <<\_ACEOF
3123 SHELL = /bin/sh
3124 all:
3125 @echo '@@@%%%=$(MAKE)=@@@%%%'
3126 _ACEOF
3127 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3128 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3129 *@@@%%%=?*=@@@%%%*)
3130 eval ac_cv_prog_make_${ac_make}_set=yes;;
3131 *)
3132 eval ac_cv_prog_make_${ac_make}_set=no;;
3133 esac
3134 rm -f conftest.make
3135 fi
3136 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3138 $as_echo "yes" >&6; }
3139 SET_MAKE=
3140 else
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3143 SET_MAKE="MAKE=${MAKE-make}"
3144 fi
3145
3146 rm -rf .tst 2>/dev/null
3147 mkdir .tst 2>/dev/null
3148 if test -d .tst; then
3149 am__leading_dot=.
3150 else
3151 am__leading_dot=_
3152 fi
3153 rmdir .tst 2>/dev/null
3154
3155 # Check whether --enable-silent-rules was given.
3156 if test "${enable_silent_rules+set}" = set; then :
3157 enableval=$enable_silent_rules;
3158 fi
3159
3160 case $enable_silent_rules in # (((
3161 yes) AM_DEFAULT_VERBOSITY=0;;
3162 no) AM_DEFAULT_VERBOSITY=1;;
3163 *) AM_DEFAULT_VERBOSITY=1;;
3164 esac
3165 am_make=${MAKE-make}
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3167 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3168 if ${am_cv_make_support_nested_variables+:} false; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 if $as_echo 'TRUE=$(BAR$(V))
3172 BAR0=false
3173 BAR1=true
3174 V=1
3175 am__doit:
3176 @$(TRUE)
3177 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3178 am_cv_make_support_nested_variables=yes
3179 else
3180 am_cv_make_support_nested_variables=no
3181 fi
3182 fi
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3184 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3185 if test $am_cv_make_support_nested_variables = yes; then
3186 AM_V='$(V)'
3187 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3188 else
3189 AM_V=$AM_DEFAULT_VERBOSITY
3190 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3191 fi
3192 AM_BACKSLASH='\'
3193
3194 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3195 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3196 # is not polluted with repeated "-I."
3197 am__isrc=' -I$(srcdir)'
3198 # test to see if srcdir already configured
3199 if test -f $srcdir/config.status; then
3200 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3201 fi
3202 fi
3203
3204 # test whether we have cygpath
3205 if test -z "$CYGPATH_W"; then
3206 if (cygpath --version) >/dev/null 2>/dev/null; then
3207 CYGPATH_W='cygpath -w'
3208 else
3209 CYGPATH_W=echo
3210 fi
3211 fi
3212
3213
3214 # Define the identity of the package.
3215 PACKAGE='ld'
3216 VERSION='2.46.0'
3217
3218
3219 cat >>confdefs.h <<_ACEOF
3220 #define PACKAGE "$PACKAGE"
3221 _ACEOF
3222
3223
3224 cat >>confdefs.h <<_ACEOF
3225 #define VERSION "$VERSION"
3226 _ACEOF
3227
3228 # Some tools Automake needs.
3229
3230 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3231
3232
3233 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3234
3235
3236 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3237
3238
3239 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3240
3241
3242 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3243
3244 # For better backward compatibility. To be removed once Automake 1.9.x
3245 # dies out for good. For more background, see:
3246 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3247 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3248 mkdir_p='$(MKDIR_P)'
3249
3250 # We need awk for the "check" target (and possibly the TAP driver). The
3251 # system "awk" is bad on some platforms.
3252 # Always define AMTAR for backward compatibility. Yes, it's still used
3253 # in the wild :-( We should find a proper way to deprecate it ...
3254 AMTAR='$${TAR-tar}'
3255
3256
3257 # We'll loop over all known methods to create a tar archive until one works.
3258 _am_tools='gnutar pax cpio none'
3259
3260 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3261
3262
3263
3264
3265
3266
3267 # POSIX will say in a future version that running "rm -f" with no argument
3268 # is OK; and we want to be able to make that assumption in our Makefile
3269 # recipes. So use an aggressive probe to check that the usage we want is
3270 # actually supported "in the wild" to an acceptable degree.
3271 # See automake bug#10828.
3272 # To make any issue more visible, cause the running configure to be aborted
3273 # by default if the 'rm' program in use doesn't match our expectations; the
3274 # user can still override this though.
3275 if rm -f && rm -fr && rm -rf; then : OK; else
3276 cat >&2 <<'END'
3277 Oops!
3278
3279 Your 'rm' program seems unable to run without file operands specified
3280 on the command line, even when the '-f' option is present. This is contrary
3281 to the behaviour of most rm programs out there, and not conforming with
3282 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3283
3284 Please tell bug-automake@gnu.org about your system, including the value
3285 of your $PATH and any error possibly output before this message. This
3286 can help us improve future automake versions.
3287
3288 END
3289 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3290 echo 'Configuration will proceed anyway, since you have set the' >&2
3291 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3292 echo >&2
3293 else
3294 cat >&2 <<'END'
3295 Aborting the configuration process, to ensure you take notice of the issue.
3296
3297 You can download and install GNU coreutils to get an 'rm' implementation
3298 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3299
3300 If you want to complete the configuration process using your problematic
3301 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3302 to "yes", and re-run configure.
3303
3304 END
3305 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3306 fi
3307 fi
3308
3309 # Check whether --enable-silent-rules was given.
3310 if test "${enable_silent_rules+set}" = set; then :
3311 enableval=$enable_silent_rules;
3312 fi
3313
3314 case $enable_silent_rules in # (((
3315 yes) AM_DEFAULT_VERBOSITY=0;;
3316 no) AM_DEFAULT_VERBOSITY=1;;
3317 *) AM_DEFAULT_VERBOSITY=0;;
3318 esac
3319 am_make=${MAKE-make}
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3321 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3322 if ${am_cv_make_support_nested_variables+:} false; then :
3323 $as_echo_n "(cached) " >&6
3324 else
3325 if $as_echo 'TRUE=$(BAR$(V))
3326 BAR0=false
3327 BAR1=true
3328 V=1
3329 am__doit:
3330 @$(TRUE)
3331 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3332 am_cv_make_support_nested_variables=yes
3333 else
3334 am_cv_make_support_nested_variables=no
3335 fi
3336 fi
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3338 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3339 if test $am_cv_make_support_nested_variables = yes; then
3340 AM_V='$(V)'
3341 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3342 else
3343 AM_V=$AM_DEFAULT_VERBOSITY
3344 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3345 fi
3346 AM_BACKSLASH='\'
3347
3348
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3350 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3351 # Check whether --enable-maintainer-mode was given.
3352 if test "${enable_maintainer_mode+set}" = set; then :
3353 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3354 else
3355 USE_MAINTAINER_MODE=no
3356 fi
3357
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3359 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3360 if test $USE_MAINTAINER_MODE = yes; then
3361 MAINTAINER_MODE_TRUE=
3362 MAINTAINER_MODE_FALSE='#'
3363 else
3364 MAINTAINER_MODE_TRUE='#'
3365 MAINTAINER_MODE_FALSE=
3366 fi
3367
3368 MAINT=$MAINTAINER_MODE_TRUE
3369
3370
3371
3372 case $target in
3373 *-*-solaris2*)
3374 case "$SHELL" in
3375 *bash*)
3376 ;;
3377 *)
3378 # PR 32580: Force use of bash to avoid corrupt linker scripts.
3379 SHELL=/bin/bash
3380 ;;
3381 esac
3382 ;;
3383 esac
3384
3385 ac_ext=c
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390 if test -n "$ac_tool_prefix"; then
3391 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3392 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if ${ac_cv_prog_CC+:} false; then :
3396 $as_echo_n "(cached) " >&6
3397 else
3398 if test -n "$CC"; then
3399 ac_cv_prog_CC="$CC" # Let the user override the test.
3400 else
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3403 do
3404 IFS=$as_save_IFS
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3408 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 break 2
3411 fi
3412 done
3413 done
3414 IFS=$as_save_IFS
3415
3416 fi
3417 fi
3418 CC=$ac_cv_prog_CC
3419 if test -n "$CC"; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3421 $as_echo "$CC" >&6; }
3422 else
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3425 fi
3426
3427
3428 fi
3429 if test -z "$ac_cv_prog_CC"; then
3430 ac_ct_CC=$CC
3431 # Extract the first word of "gcc", so it can be a program name with args.
3432 set dummy gcc; ac_word=$2
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434 $as_echo_n "checking for $ac_word... " >&6; }
3435 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3436 $as_echo_n "(cached) " >&6
3437 else
3438 if test -n "$ac_ct_CC"; then
3439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3440 else
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448 ac_cv_prog_ac_ct_CC="gcc"
3449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 break 2
3451 fi
3452 done
3453 done
3454 IFS=$as_save_IFS
3455
3456 fi
3457 fi
3458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3459 if test -n "$ac_ct_CC"; then
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3461 $as_echo "$ac_ct_CC" >&6; }
3462 else
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464 $as_echo "no" >&6; }
3465 fi
3466
3467 if test "x$ac_ct_CC" = x; then
3468 CC=""
3469 else
3470 case $cross_compiling:$ac_tool_warned in
3471 yes:)
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3474 ac_tool_warned=yes ;;
3475 esac
3476 CC=$ac_ct_CC
3477 fi
3478 else
3479 CC="$ac_cv_prog_CC"
3480 fi
3481
3482 if test -z "$CC"; then
3483 if test -n "$ac_tool_prefix"; then
3484 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3485 set dummy ${ac_tool_prefix}cc; ac_word=$2
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3487 $as_echo_n "checking for $ac_word... " >&6; }
3488 if ${ac_cv_prog_CC+:} false; then :
3489 $as_echo_n "(cached) " >&6
3490 else
3491 if test -n "$CC"; then
3492 ac_cv_prog_CC="$CC" # Let the user override the test.
3493 else
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495 for as_dir in $PATH
3496 do
3497 IFS=$as_save_IFS
3498 test -z "$as_dir" && as_dir=.
3499 for ac_exec_ext in '' $ac_executable_extensions; do
3500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3501 ac_cv_prog_CC="${ac_tool_prefix}cc"
3502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3503 break 2
3504 fi
3505 done
3506 done
3507 IFS=$as_save_IFS
3508
3509 fi
3510 fi
3511 CC=$ac_cv_prog_CC
3512 if test -n "$CC"; then
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3514 $as_echo "$CC" >&6; }
3515 else
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 $as_echo "no" >&6; }
3518 fi
3519
3520
3521 fi
3522 fi
3523 if test -z "$CC"; then
3524 # Extract the first word of "cc", so it can be a program name with args.
3525 set dummy cc; ac_word=$2
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527 $as_echo_n "checking for $ac_word... " >&6; }
3528 if ${ac_cv_prog_CC+:} false; then :
3529 $as_echo_n "(cached) " >&6
3530 else
3531 if test -n "$CC"; then
3532 ac_cv_prog_CC="$CC" # Let the user override the test.
3533 else
3534 ac_prog_rejected=no
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 for as_dir in $PATH
3537 do
3538 IFS=$as_save_IFS
3539 test -z "$as_dir" && as_dir=.
3540 for ac_exec_ext in '' $ac_executable_extensions; do
3541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3542 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3543 ac_prog_rejected=yes
3544 continue
3545 fi
3546 ac_cv_prog_CC="cc"
3547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3548 break 2
3549 fi
3550 done
3551 done
3552 IFS=$as_save_IFS
3553
3554 if test $ac_prog_rejected = yes; then
3555 # We found a bogon in the path, so make sure we never use it.
3556 set dummy $ac_cv_prog_CC
3557 shift
3558 if test $# != 0; then
3559 # We chose a different compiler from the bogus one.
3560 # However, it has the same basename, so the bogon will be chosen
3561 # first if we set CC to just the basename; use the full file name.
3562 shift
3563 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3564 fi
3565 fi
3566 fi
3567 fi
3568 CC=$ac_cv_prog_CC
3569 if test -n "$CC"; then
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3571 $as_echo "$CC" >&6; }
3572 else
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 $as_echo "no" >&6; }
3575 fi
3576
3577
3578 fi
3579 if test -z "$CC"; then
3580 if test -n "$ac_tool_prefix"; then
3581 for ac_prog in cl.exe
3582 do
3583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3584 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586 $as_echo_n "checking for $ac_word... " >&6; }
3587 if ${ac_cv_prog_CC+:} false; then :
3588 $as_echo_n "(cached) " >&6
3589 else
3590 if test -n "$CC"; then
3591 ac_cv_prog_CC="$CC" # Let the user override the test.
3592 else
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 for as_dir in $PATH
3595 do
3596 IFS=$as_save_IFS
3597 test -z "$as_dir" && as_dir=.
3598 for ac_exec_ext in '' $ac_executable_extensions; do
3599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3600 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 break 2
3603 fi
3604 done
3605 done
3606 IFS=$as_save_IFS
3607
3608 fi
3609 fi
3610 CC=$ac_cv_prog_CC
3611 if test -n "$CC"; then
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3613 $as_echo "$CC" >&6; }
3614 else
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 $as_echo "no" >&6; }
3617 fi
3618
3619
3620 test -n "$CC" && break
3621 done
3622 fi
3623 if test -z "$CC"; then
3624 ac_ct_CC=$CC
3625 for ac_prog in cl.exe
3626 do
3627 # Extract the first word of "$ac_prog", so it can be a program name with args.
3628 set dummy $ac_prog; ac_word=$2
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 $as_echo_n "checking for $ac_word... " >&6; }
3631 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3632 $as_echo_n "(cached) " >&6
3633 else
3634 if test -n "$ac_ct_CC"; then
3635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3636 else
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH
3639 do
3640 IFS=$as_save_IFS
3641 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3644 ac_cv_prog_ac_ct_CC="$ac_prog"
3645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 break 2
3647 fi
3648 done
3649 done
3650 IFS=$as_save_IFS
3651
3652 fi
3653 fi
3654 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3655 if test -n "$ac_ct_CC"; then
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3657 $as_echo "$ac_ct_CC" >&6; }
3658 else
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 $as_echo "no" >&6; }
3661 fi
3662
3663
3664 test -n "$ac_ct_CC" && break
3665 done
3666
3667 if test "x$ac_ct_CC" = x; then
3668 CC=""
3669 else
3670 case $cross_compiling:$ac_tool_warned in
3671 yes:)
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3674 ac_tool_warned=yes ;;
3675 esac
3676 CC=$ac_ct_CC
3677 fi
3678 fi
3679
3680 fi
3681
3682
3683 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3685 as_fn_error $? "no acceptable C compiler found in \$PATH
3686 See \`config.log' for more details" "$LINENO" 5; }
3687
3688 # Provide some information about the compiler.
3689 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3690 set X $ac_compile
3691 ac_compiler=$2
3692 for ac_option in --version -v -V -qversion; do
3693 { { ac_try="$ac_compiler $ac_option >&5"
3694 case "(($ac_try" in
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3697 esac
3698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3699 $as_echo "$ac_try_echo"; } >&5
3700 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3701 ac_status=$?
3702 if test -s conftest.err; then
3703 sed '10a\
3704 ... rest of stderr output deleted ...
3705 10q' conftest.err >conftest.er1
3706 cat conftest.er1 >&5
3707 fi
3708 rm -f conftest.er1 conftest.err
3709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3710 test $ac_status = 0; }
3711 done
3712
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3715
3716 int
3717 main ()
3718 {
3719
3720 ;
3721 return 0;
3722 }
3723 _ACEOF
3724 ac_clean_files_save=$ac_clean_files
3725 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3726 # Try to create an executable without -o first, disregard a.out.
3727 # It will help us diagnose broken compilers, and finding out an intuition
3728 # of exeext.
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3730 $as_echo_n "checking whether the C compiler works... " >&6; }
3731 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3732
3733 # The possible output files:
3734 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3735
3736 ac_rmfiles=
3737 for ac_file in $ac_files
3738 do
3739 case $ac_file in
3740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3741 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3742 esac
3743 done
3744 rm -f $ac_rmfiles
3745
3746 if { { ac_try="$ac_link_default"
3747 case "(($ac_try" in
3748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749 *) ac_try_echo=$ac_try;;
3750 esac
3751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3752 $as_echo "$ac_try_echo"; } >&5
3753 (eval "$ac_link_default") 2>&5
3754 ac_status=$?
3755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3756 test $ac_status = 0; }; then :
3757 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3758 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3759 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3760 # so that the user can short-circuit this test for compilers unknown to
3761 # Autoconf.
3762 for ac_file in $ac_files ''
3763 do
3764 test -f "$ac_file" || continue
3765 case $ac_file in
3766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3767 ;;
3768 [ab].out )
3769 # We found the default executable, but exeext='' is most
3770 # certainly right.
3771 break;;
3772 *.* )
3773 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3774 then :; else
3775 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3776 fi
3777 # We set ac_cv_exeext here because the later test for it is not
3778 # safe: cross compilers may not add the suffix if given an `-o'
3779 # argument, so we may need to know it at that point already.
3780 # Even if this section looks crufty: it has the advantage of
3781 # actually working.
3782 break;;
3783 * )
3784 break;;
3785 esac
3786 done
3787 test "$ac_cv_exeext" = no && ac_cv_exeext=
3788
3789 else
3790 ac_file=''
3791 fi
3792 if test -z "$ac_file"; then :
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3795 $as_echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3797
3798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3800 as_fn_error 77 "C compiler cannot create executables
3801 See \`config.log' for more details" "$LINENO" 5; }
3802 else
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3804 $as_echo "yes" >&6; }
3805 fi
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3807 $as_echo_n "checking for C compiler default output file name... " >&6; }
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3809 $as_echo "$ac_file" >&6; }
3810 ac_exeext=$ac_cv_exeext
3811
3812 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3813 ac_clean_files=$ac_clean_files_save
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3815 $as_echo_n "checking for suffix of executables... " >&6; }
3816 if { { ac_try="$ac_link"
3817 case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820 esac
3821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822 $as_echo "$ac_try_echo"; } >&5
3823 (eval "$ac_link") 2>&5
3824 ac_status=$?
3825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826 test $ac_status = 0; }; then :
3827 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3828 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3829 # work properly (i.e., refer to `conftest.exe'), while it won't with
3830 # `rm'.
3831 for ac_file in conftest.exe conftest conftest.*; do
3832 test -f "$ac_file" || continue
3833 case $ac_file in
3834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3835 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3836 break;;
3837 * ) break;;
3838 esac
3839 done
3840 else
3841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3843 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3844 See \`config.log' for more details" "$LINENO" 5; }
3845 fi
3846 rm -f conftest conftest$ac_cv_exeext
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3848 $as_echo "$ac_cv_exeext" >&6; }
3849
3850 rm -f conftest.$ac_ext
3851 EXEEXT=$ac_cv_exeext
3852 ac_exeext=$EXEEXT
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h. */
3855 #include <stdio.h>
3856 int
3857 main ()
3858 {
3859 FILE *f = fopen ("conftest.out", "w");
3860 return ferror (f) || fclose (f) != 0;
3861
3862 ;
3863 return 0;
3864 }
3865 _ACEOF
3866 ac_clean_files="$ac_clean_files conftest.out"
3867 # Check that the compiler produces executables we can run. If not, either
3868 # the compiler is broken, or we cross compile.
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3870 $as_echo_n "checking whether we are cross compiling... " >&6; }
3871 if test "$cross_compiling" != yes; then
3872 { { ac_try="$ac_link"
3873 case "(($ac_try" in
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3876 esac
3877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3878 $as_echo "$ac_try_echo"; } >&5
3879 (eval "$ac_link") 2>&5
3880 ac_status=$?
3881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3882 test $ac_status = 0; }
3883 if { ac_try='./conftest$ac_cv_exeext'
3884 { { case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887 esac
3888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3889 $as_echo "$ac_try_echo"; } >&5
3890 (eval "$ac_try") 2>&5
3891 ac_status=$?
3892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; }; }; then
3894 cross_compiling=no
3895 else
3896 if test "$cross_compiling" = maybe; then
3897 cross_compiling=yes
3898 else
3899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3901 as_fn_error $? "cannot run C compiled programs.
3902 If you meant to cross compile, use \`--host'.
3903 See \`config.log' for more details" "$LINENO" 5; }
3904 fi
3905 fi
3906 fi
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3908 $as_echo "$cross_compiling" >&6; }
3909
3910 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3911 ac_clean_files=$ac_clean_files_save
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3913 $as_echo_n "checking for suffix of object files... " >&6; }
3914 if ${ac_cv_objext+:} false; then :
3915 $as_echo_n "(cached) " >&6
3916 else
3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h. */
3919
3920 int
3921 main ()
3922 {
3923
3924 ;
3925 return 0;
3926 }
3927 _ACEOF
3928 rm -f conftest.o conftest.obj
3929 if { { ac_try="$ac_compile"
3930 case "(($ac_try" in
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3933 esac
3934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935 $as_echo "$ac_try_echo"; } >&5
3936 (eval "$ac_compile") 2>&5
3937 ac_status=$?
3938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3939 test $ac_status = 0; }; then :
3940 for ac_file in conftest.o conftest.obj conftest.*; do
3941 test -f "$ac_file" || continue;
3942 case $ac_file in
3943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3944 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3945 break;;
3946 esac
3947 done
3948 else
3949 $as_echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3951
3952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3954 as_fn_error $? "cannot compute suffix of object files: cannot compile
3955 See \`config.log' for more details" "$LINENO" 5; }
3956 fi
3957 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3958 fi
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3960 $as_echo "$ac_cv_objext" >&6; }
3961 OBJEXT=$ac_cv_objext
3962 ac_objext=$OBJEXT
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3964 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3965 if ${ac_cv_c_compiler_gnu+:} false; then :
3966 $as_echo_n "(cached) " >&6
3967 else
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3970
3971 int
3972 main ()
3973 {
3974 #ifndef __GNUC__
3975 choke me
3976 #endif
3977
3978 ;
3979 return 0;
3980 }
3981 _ACEOF
3982 if ac_fn_c_try_compile "$LINENO"; then :
3983 ac_compiler_gnu=yes
3984 else
3985 ac_compiler_gnu=no
3986 fi
3987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3989
3990 fi
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3992 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3993 if test $ac_compiler_gnu = yes; then
3994 GCC=yes
3995 else
3996 GCC=
3997 fi
3998 ac_test_CFLAGS=${CFLAGS+set}
3999 ac_save_CFLAGS=$CFLAGS
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4001 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4002 if ${ac_cv_prog_cc_g+:} false; then :
4003 $as_echo_n "(cached) " >&6
4004 else
4005 ac_save_c_werror_flag=$ac_c_werror_flag
4006 ac_c_werror_flag=yes
4007 ac_cv_prog_cc_g=no
4008 CFLAGS="-g"
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4011
4012 int
4013 main ()
4014 {
4015
4016 ;
4017 return 0;
4018 }
4019 _ACEOF
4020 if ac_fn_c_try_compile "$LINENO"; then :
4021 ac_cv_prog_cc_g=yes
4022 else
4023 CFLAGS=""
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h. */
4026
4027 int
4028 main ()
4029 {
4030
4031 ;
4032 return 0;
4033 }
4034 _ACEOF
4035 if ac_fn_c_try_compile "$LINENO"; then :
4036
4037 else
4038 ac_c_werror_flag=$ac_save_c_werror_flag
4039 CFLAGS="-g"
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4042
4043 int
4044 main ()
4045 {
4046
4047 ;
4048 return 0;
4049 }
4050 _ACEOF
4051 if ac_fn_c_try_compile "$LINENO"; then :
4052 ac_cv_prog_cc_g=yes
4053 fi
4054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055 fi
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 fi
4058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059 ac_c_werror_flag=$ac_save_c_werror_flag
4060 fi
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4062 $as_echo "$ac_cv_prog_cc_g" >&6; }
4063 if test "$ac_test_CFLAGS" = set; then
4064 CFLAGS=$ac_save_CFLAGS
4065 elif test $ac_cv_prog_cc_g = yes; then
4066 if test "$GCC" = yes; then
4067 CFLAGS="-g -O2"
4068 else
4069 CFLAGS="-g"
4070 fi
4071 else
4072 if test "$GCC" = yes; then
4073 CFLAGS="-O2"
4074 else
4075 CFLAGS=
4076 fi
4077 fi
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4079 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4080 if ${ac_cv_prog_cc_c89+:} false; then :
4081 $as_echo_n "(cached) " >&6
4082 else
4083 ac_cv_prog_cc_c89=no
4084 ac_save_CC=$CC
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4087 #include <stdarg.h>
4088 #include <stdio.h>
4089 struct stat;
4090 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4091 struct buf { int x; };
4092 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4093 static char *e (p, i)
4094 char **p;
4095 int i;
4096 {
4097 return p[i];
4098 }
4099 static char *f (char * (*g) (char **, int), char **p, ...)
4100 {
4101 char *s;
4102 va_list v;
4103 va_start (v,p);
4104 s = g (p, va_arg (v,int));
4105 va_end (v);
4106 return s;
4107 }
4108
4109 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4110 function prototypes and stuff, but not '\xHH' hex character constants.
4111 These don't provoke an error unfortunately, instead are silently treated
4112 as 'x'. The following induces an error, until -std is added to get
4113 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4114 array size at least. It's necessary to write '\x00'==0 to get something
4115 that's true only with -std. */
4116 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4117
4118 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4119 inside strings and character constants. */
4120 #define FOO(x) 'x'
4121 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4122
4123 int test (int i, double x);
4124 struct s1 {int (*f) (int a);};
4125 struct s2 {int (*f) (double a);};
4126 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4127 int argc;
4128 char **argv;
4129 int
4130 main ()
4131 {
4132 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4133 ;
4134 return 0;
4135 }
4136 _ACEOF
4137 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4138 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4139 do
4140 CC="$ac_save_CC $ac_arg"
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142 ac_cv_prog_cc_c89=$ac_arg
4143 fi
4144 rm -f core conftest.err conftest.$ac_objext
4145 test "x$ac_cv_prog_cc_c89" != "xno" && break
4146 done
4147 rm -f conftest.$ac_ext
4148 CC=$ac_save_CC
4149
4150 fi
4151 # AC_CACHE_VAL
4152 case "x$ac_cv_prog_cc_c89" in
4153 x)
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4155 $as_echo "none needed" >&6; } ;;
4156 xno)
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4158 $as_echo "unsupported" >&6; } ;;
4159 *)
4160 CC="$CC $ac_cv_prog_cc_c89"
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4162 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4163 esac
4164 if test "x$ac_cv_prog_cc_c89" != xno; then :
4165
4166 fi
4167
4168 ac_ext=c
4169 ac_cpp='$CPP $CPPFLAGS'
4170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4173
4174 ac_ext=c
4175 ac_cpp='$CPP $CPPFLAGS'
4176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4180 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4181 if ${am_cv_prog_cc_c_o+:} false; then :
4182 $as_echo_n "(cached) " >&6
4183 else
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186
4187 int
4188 main ()
4189 {
4190
4191 ;
4192 return 0;
4193 }
4194 _ACEOF
4195 # Make sure it works both with $CC and with simple cc.
4196 # Following AC_PROG_CC_C_O, we do the test twice because some
4197 # compilers refuse to overwrite an existing .o file with -o,
4198 # though they will create one.
4199 am_cv_prog_cc_c_o=yes
4200 for am_i in 1 2; do
4201 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4202 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4203 ac_status=$?
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); } \
4206 && test -f conftest2.$ac_objext; then
4207 : OK
4208 else
4209 am_cv_prog_cc_c_o=no
4210 break
4211 fi
4212 done
4213 rm -f core conftest*
4214 unset am_i
4215 fi
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4217 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4218 if test "$am_cv_prog_cc_c_o" != yes; then
4219 # Losing compiler, so override with the script.
4220 # FIXME: It is wrong to rewrite CC.
4221 # But if we don't then we get into trouble of one sort or another.
4222 # A longer-term fix would be to have automake use am__CC in this case,
4223 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4224 CC="$am_aux_dir/compile $CC"
4225 fi
4226 ac_ext=c
4227 ac_cpp='$CPP $CPPFLAGS'
4228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4231
4232 DEPDIR="${am__leading_dot}deps"
4233
4234 ac_config_commands="$ac_config_commands depfiles"
4235
4236
4237 am_make=${MAKE-make}
4238 cat > confinc << 'END'
4239 am__doit:
4240 @echo this is the am__doit target
4241 .PHONY: am__doit
4242 END
4243 # If we don't find an include directive, just comment out the code.
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4245 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4246 am__include="#"
4247 am__quote=
4248 _am_result=none
4249 # First try GNU make style include.
4250 echo "include confinc" > confmf
4251 # Ignore all kinds of additional output from 'make'.
4252 case `$am_make -s -f confmf 2> /dev/null` in #(
4253 *the\ am__doit\ target*)
4254 am__include=include
4255 am__quote=
4256 _am_result=GNU
4257 ;;
4258 esac
4259 # Now try BSD make style include.
4260 if test "$am__include" = "#"; then
4261 echo '.include "confinc"' > confmf
4262 case `$am_make -s -f confmf 2> /dev/null` in #(
4263 *the\ am__doit\ target*)
4264 am__include=.include
4265 am__quote="\""
4266 _am_result=BSD
4267 ;;
4268 esac
4269 fi
4270
4271
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4273 $as_echo "$_am_result" >&6; }
4274 rm -f confinc confmf
4275
4276 # Check whether --enable-dependency-tracking was given.
4277 if test "${enable_dependency_tracking+set}" = set; then :
4278 enableval=$enable_dependency_tracking;
4279 fi
4280
4281 if test "x$enable_dependency_tracking" != xno; then
4282 am_depcomp="$ac_aux_dir/depcomp"
4283 AMDEPBACKSLASH='\'
4284 am__nodep='_no'
4285 fi
4286 if test "x$enable_dependency_tracking" != xno; then
4287 AMDEP_TRUE=
4288 AMDEP_FALSE='#'
4289 else
4290 AMDEP_TRUE='#'
4291 AMDEP_FALSE=
4292 fi
4293
4294
4295
4296 depcc="$CC" am_compiler_list=
4297
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4299 $as_echo_n "checking dependency style of $depcc... " >&6; }
4300 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4301 $as_echo_n "(cached) " >&6
4302 else
4303 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4304 # We make a subdir and do the tests there. Otherwise we can end up
4305 # making bogus files that we don't know about and never remove. For
4306 # instance it was reported that on HP-UX the gcc test will end up
4307 # making a dummy file named 'D' -- because '-MD' means "put the output
4308 # in D".
4309 rm -rf conftest.dir
4310 mkdir conftest.dir
4311 # Copy depcomp to subdir because otherwise we won't find it if we're
4312 # using a relative directory.
4313 cp "$am_depcomp" conftest.dir
4314 cd conftest.dir
4315 # We will build objects and dependencies in a subdirectory because
4316 # it helps to detect inapplicable dependency modes. For instance
4317 # both Tru64's cc and ICC support -MD to output dependencies as a
4318 # side effect of compilation, but ICC will put the dependencies in
4319 # the current directory while Tru64 will put them in the object
4320 # directory.
4321 mkdir sub
4322
4323 am_cv_CC_dependencies_compiler_type=none
4324 if test "$am_compiler_list" = ""; then
4325 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4326 fi
4327 am__universal=false
4328 case " $depcc " in #(
4329 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4330 esac
4331
4332 for depmode in $am_compiler_list; do
4333 # Setup a source with many dependencies, because some compilers
4334 # like to wrap large dependency lists on column 80 (with \), and
4335 # we should not choose a depcomp mode which is confused by this.
4336 #
4337 # We need to recreate these files for each test, as the compiler may
4338 # overwrite some of them when testing with obscure command lines.
4339 # This happens at least with the AIX C compiler.
4340 : > sub/conftest.c
4341 for i in 1 2 3 4 5 6; do
4342 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4343 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4344 # Solaris 10 /bin/sh.
4345 echo '/* dummy */' > sub/conftst$i.h
4346 done
4347 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4348
4349 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4350 # mode. It turns out that the SunPro C++ compiler does not properly
4351 # handle '-M -o', and we need to detect this. Also, some Intel
4352 # versions had trouble with output in subdirs.
4353 am__obj=sub/conftest.${OBJEXT-o}
4354 am__minus_obj="-o $am__obj"
4355 case $depmode in
4356 gcc)
4357 # This depmode causes a compiler race in universal mode.
4358 test "$am__universal" = false || continue
4359 ;;
4360 nosideeffect)
4361 # After this tag, mechanisms are not by side-effect, so they'll
4362 # only be used when explicitly requested.
4363 if test "x$enable_dependency_tracking" = xyes; then
4364 continue
4365 else
4366 break
4367 fi
4368 ;;
4369 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4370 # This compiler won't grok '-c -o', but also, the minuso test has
4371 # not run yet. These depmodes are late enough in the game, and
4372 # so weak that their functioning should not be impacted.
4373 am__obj=conftest.${OBJEXT-o}
4374 am__minus_obj=
4375 ;;
4376 none) break ;;
4377 esac
4378 if depmode=$depmode \
4379 source=sub/conftest.c object=$am__obj \
4380 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4381 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4382 >/dev/null 2>conftest.err &&
4383 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4384 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4385 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4386 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4387 # icc doesn't choke on unknown options, it will just issue warnings
4388 # or remarks (even with -Werror). So we grep stderr for any message
4389 # that says an option was ignored or not supported.
4390 # When given -MP, icc 7.0 and 7.1 complain thusly:
4391 # icc: Command line warning: ignoring option '-M'; no argument required
4392 # The diagnosis changed in icc 8.0:
4393 # icc: Command line remark: option '-MP' not supported
4394 if (grep 'ignoring option' conftest.err ||
4395 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4396 am_cv_CC_dependencies_compiler_type=$depmode
4397 break
4398 fi
4399 fi
4400 done
4401
4402 cd ..
4403 rm -rf conftest.dir
4404 else
4405 am_cv_CC_dependencies_compiler_type=none
4406 fi
4407
4408 fi
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4410 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4411 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4412
4413 if
4414 test "x$enable_dependency_tracking" != xno \
4415 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4416 am__fastdepCC_TRUE=
4417 am__fastdepCC_FALSE='#'
4418 else
4419 am__fastdepCC_TRUE='#'
4420 am__fastdepCC_FALSE=
4421 fi
4422
4423
4424 ac_ext=cpp
4425 ac_cpp='$CXXCPP $CPPFLAGS'
4426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4429 if test -z "$CXX"; then
4430 if test -n "$CCC"; then
4431 CXX=$CCC
4432 else
4433 if test -n "$ac_tool_prefix"; then
4434 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4435 do
4436 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4437 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4439 $as_echo_n "checking for $ac_word... " >&6; }
4440 if ${ac_cv_prog_CXX+:} false; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 if test -n "$CXX"; then
4444 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4445 else
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4448 do
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4453 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 break 2
4456 fi
4457 done
4458 done
4459 IFS=$as_save_IFS
4460
4461 fi
4462 fi
4463 CXX=$ac_cv_prog_CXX
4464 if test -n "$CXX"; then
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4466 $as_echo "$CXX" >&6; }
4467 else
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4469 $as_echo "no" >&6; }
4470 fi
4471
4472
4473 test -n "$CXX" && break
4474 done
4475 fi
4476 if test -z "$CXX"; then
4477 ac_ct_CXX=$CXX
4478 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4479 do
4480 # Extract the first word of "$ac_prog", so it can be a program name with args.
4481 set dummy $ac_prog; ac_word=$2
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4483 $as_echo_n "checking for $ac_word... " >&6; }
4484 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4485 $as_echo_n "(cached) " >&6
4486 else
4487 if test -n "$ac_ct_CXX"; then
4488 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4489 else
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in $PATH
4492 do
4493 IFS=$as_save_IFS
4494 test -z "$as_dir" && as_dir=.
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4497 ac_cv_prog_ac_ct_CXX="$ac_prog"
4498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 break 2
4500 fi
4501 done
4502 done
4503 IFS=$as_save_IFS
4504
4505 fi
4506 fi
4507 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4508 if test -n "$ac_ct_CXX"; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4510 $as_echo "$ac_ct_CXX" >&6; }
4511 else
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4513 $as_echo "no" >&6; }
4514 fi
4515
4516
4517 test -n "$ac_ct_CXX" && break
4518 done
4519
4520 if test "x$ac_ct_CXX" = x; then
4521 CXX="g++"
4522 else
4523 case $cross_compiling:$ac_tool_warned in
4524 yes:)
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4527 ac_tool_warned=yes ;;
4528 esac
4529 CXX=$ac_ct_CXX
4530 fi
4531 fi
4532
4533 fi
4534 fi
4535 # Provide some information about the compiler.
4536 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4537 set X $ac_compile
4538 ac_compiler=$2
4539 for ac_option in --version -v -V -qversion; do
4540 { { ac_try="$ac_compiler $ac_option >&5"
4541 case "(($ac_try" in
4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4544 esac
4545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4546 $as_echo "$ac_try_echo"; } >&5
4547 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4548 ac_status=$?
4549 if test -s conftest.err; then
4550 sed '10a\
4551 ... rest of stderr output deleted ...
4552 10q' conftest.err >conftest.er1
4553 cat conftest.er1 >&5
4554 fi
4555 rm -f conftest.er1 conftest.err
4556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4557 test $ac_status = 0; }
4558 done
4559
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4561 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4562 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4563 $as_echo_n "(cached) " >&6
4564 else
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4567
4568 int
4569 main ()
4570 {
4571 #ifndef __GNUC__
4572 choke me
4573 #endif
4574
4575 ;
4576 return 0;
4577 }
4578 _ACEOF
4579 if ac_fn_cxx_try_compile "$LINENO"; then :
4580 ac_compiler_gnu=yes
4581 else
4582 ac_compiler_gnu=no
4583 fi
4584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4586
4587 fi
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4589 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4590 if test $ac_compiler_gnu = yes; then
4591 GXX=yes
4592 else
4593 GXX=
4594 fi
4595 ac_test_CXXFLAGS=${CXXFLAGS+set}
4596 ac_save_CXXFLAGS=$CXXFLAGS
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4598 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4599 if ${ac_cv_prog_cxx_g+:} false; then :
4600 $as_echo_n "(cached) " >&6
4601 else
4602 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4603 ac_cxx_werror_flag=yes
4604 ac_cv_prog_cxx_g=no
4605 CXXFLAGS="-g"
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4608
4609 int
4610 main ()
4611 {
4612
4613 ;
4614 return 0;
4615 }
4616 _ACEOF
4617 if ac_fn_cxx_try_compile "$LINENO"; then :
4618 ac_cv_prog_cxx_g=yes
4619 else
4620 CXXFLAGS=""
4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h. */
4623
4624 int
4625 main ()
4626 {
4627
4628 ;
4629 return 0;
4630 }
4631 _ACEOF
4632 if ac_fn_cxx_try_compile "$LINENO"; then :
4633
4634 else
4635 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4636 CXXFLAGS="-g"
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4639
4640 int
4641 main ()
4642 {
4643
4644 ;
4645 return 0;
4646 }
4647 _ACEOF
4648 if ac_fn_cxx_try_compile "$LINENO"; then :
4649 ac_cv_prog_cxx_g=yes
4650 fi
4651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4652 fi
4653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654 fi
4655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4656 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4657 fi
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4659 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4660 if test "$ac_test_CXXFLAGS" = set; then
4661 CXXFLAGS=$ac_save_CXXFLAGS
4662 elif test $ac_cv_prog_cxx_g = yes; then
4663 if test "$GXX" = yes; then
4664 CXXFLAGS="-g -O2"
4665 else
4666 CXXFLAGS="-g"
4667 fi
4668 else
4669 if test "$GXX" = yes; then
4670 CXXFLAGS="-O2"
4671 else
4672 CXXFLAGS=
4673 fi
4674 fi
4675 ac_ext=c
4676 ac_cpp='$CPP $CPPFLAGS'
4677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4680
4681 depcc="$CXX" am_compiler_list=
4682
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4684 $as_echo_n "checking dependency style of $depcc... " >&6; }
4685 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4686 $as_echo_n "(cached) " >&6
4687 else
4688 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4689 # We make a subdir and do the tests there. Otherwise we can end up
4690 # making bogus files that we don't know about and never remove. For
4691 # instance it was reported that on HP-UX the gcc test will end up
4692 # making a dummy file named 'D' -- because '-MD' means "put the output
4693 # in D".
4694 rm -rf conftest.dir
4695 mkdir conftest.dir
4696 # Copy depcomp to subdir because otherwise we won't find it if we're
4697 # using a relative directory.
4698 cp "$am_depcomp" conftest.dir
4699 cd conftest.dir
4700 # We will build objects and dependencies in a subdirectory because
4701 # it helps to detect inapplicable dependency modes. For instance
4702 # both Tru64's cc and ICC support -MD to output dependencies as a
4703 # side effect of compilation, but ICC will put the dependencies in
4704 # the current directory while Tru64 will put them in the object
4705 # directory.
4706 mkdir sub
4707
4708 am_cv_CXX_dependencies_compiler_type=none
4709 if test "$am_compiler_list" = ""; then
4710 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4711 fi
4712 am__universal=false
4713 case " $depcc " in #(
4714 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4715 esac
4716
4717 for depmode in $am_compiler_list; do
4718 # Setup a source with many dependencies, because some compilers
4719 # like to wrap large dependency lists on column 80 (with \), and
4720 # we should not choose a depcomp mode which is confused by this.
4721 #
4722 # We need to recreate these files for each test, as the compiler may
4723 # overwrite some of them when testing with obscure command lines.
4724 # This happens at least with the AIX C compiler.
4725 : > sub/conftest.c
4726 for i in 1 2 3 4 5 6; do
4727 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4728 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4729 # Solaris 10 /bin/sh.
4730 echo '/* dummy */' > sub/conftst$i.h
4731 done
4732 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4733
4734 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4735 # mode. It turns out that the SunPro C++ compiler does not properly
4736 # handle '-M -o', and we need to detect this. Also, some Intel
4737 # versions had trouble with output in subdirs.
4738 am__obj=sub/conftest.${OBJEXT-o}
4739 am__minus_obj="-o $am__obj"
4740 case $depmode in
4741 gcc)
4742 # This depmode causes a compiler race in universal mode.
4743 test "$am__universal" = false || continue
4744 ;;
4745 nosideeffect)
4746 # After this tag, mechanisms are not by side-effect, so they'll
4747 # only be used when explicitly requested.
4748 if test "x$enable_dependency_tracking" = xyes; then
4749 continue
4750 else
4751 break
4752 fi
4753 ;;
4754 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4755 # This compiler won't grok '-c -o', but also, the minuso test has
4756 # not run yet. These depmodes are late enough in the game, and
4757 # so weak that their functioning should not be impacted.
4758 am__obj=conftest.${OBJEXT-o}
4759 am__minus_obj=
4760 ;;
4761 none) break ;;
4762 esac
4763 if depmode=$depmode \
4764 source=sub/conftest.c object=$am__obj \
4765 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4766 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4767 >/dev/null 2>conftest.err &&
4768 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4769 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4770 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4771 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4772 # icc doesn't choke on unknown options, it will just issue warnings
4773 # or remarks (even with -Werror). So we grep stderr for any message
4774 # that says an option was ignored or not supported.
4775 # When given -MP, icc 7.0 and 7.1 complain thusly:
4776 # icc: Command line warning: ignoring option '-M'; no argument required
4777 # The diagnosis changed in icc 8.0:
4778 # icc: Command line remark: option '-MP' not supported
4779 if (grep 'ignoring option' conftest.err ||
4780 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4781 am_cv_CXX_dependencies_compiler_type=$depmode
4782 break
4783 fi
4784 fi
4785 done
4786
4787 cd ..
4788 rm -rf conftest.dir
4789 else
4790 am_cv_CXX_dependencies_compiler_type=none
4791 fi
4792
4793 fi
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4795 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4796 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4797
4798 if
4799 test "x$enable_dependency_tracking" != xno \
4800 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4801 am__fastdepCXX_TRUE=
4802 am__fastdepCXX_FALSE='#'
4803 else
4804 am__fastdepCXX_TRUE='#'
4805 am__fastdepCXX_FALSE=
4806 fi
4807
4808
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4810 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4811 if ${ac_cv_path_GREP+:} false; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 if test -z "$GREP"; then
4815 ac_path_GREP_found=false
4816 # Loop through the user's path and test for each of PROGNAME-LIST
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4819 do
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
4822 for ac_prog in grep ggrep; do
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4825 as_fn_executable_p "$ac_path_GREP" || continue
4826 # Check for GNU ac_path_GREP and select it if it is found.
4827 # Check for GNU $ac_path_GREP
4828 case `"$ac_path_GREP" --version 2>&1` in
4829 *GNU*)
4830 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4831 *)
4832 ac_count=0
4833 $as_echo_n 0123456789 >"conftest.in"
4834 while :
4835 do
4836 cat "conftest.in" "conftest.in" >"conftest.tmp"
4837 mv "conftest.tmp" "conftest.in"
4838 cp "conftest.in" "conftest.nl"
4839 $as_echo 'GREP' >> "conftest.nl"
4840 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4841 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4842 as_fn_arith $ac_count + 1 && ac_count=$as_val
4843 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4844 # Best one so far, save it but keep looking for a better one
4845 ac_cv_path_GREP="$ac_path_GREP"
4846 ac_path_GREP_max=$ac_count
4847 fi
4848 # 10*(2^10) chars as input seems more than enough
4849 test $ac_count -gt 10 && break
4850 done
4851 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4852 esac
4853
4854 $ac_path_GREP_found && break 3
4855 done
4856 done
4857 done
4858 IFS=$as_save_IFS
4859 if test -z "$ac_cv_path_GREP"; then
4860 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4861 fi
4862 else
4863 ac_cv_path_GREP=$GREP
4864 fi
4865
4866 fi
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4868 $as_echo "$ac_cv_path_GREP" >&6; }
4869 GREP="$ac_cv_path_GREP"
4870
4871
4872
4873 ac_ext=c
4874 ac_cpp='$CPP $CPPFLAGS'
4875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4879 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4880 # On Suns, sometimes $CPP names a directory.
4881 if test -n "$CPP" && test -d "$CPP"; then
4882 CPP=
4883 fi
4884 if test -z "$CPP"; then
4885 if ${ac_cv_prog_CPP+:} false; then :
4886 $as_echo_n "(cached) " >&6
4887 else
4888 # Double quotes because CPP needs to be expanded
4889 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4890 do
4891 ac_preproc_ok=false
4892 for ac_c_preproc_warn_flag in '' yes
4893 do
4894 # Use a header file that comes with gcc, so configuring glibc
4895 # with a fresh cross-compiler works.
4896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4897 # <limits.h> exists even on freestanding compilers.
4898 # On the NeXT, cc -E runs the code through the compiler's parser,
4899 # not just through cpp. "Syntax error" is here to catch this case.
4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901 /* end confdefs.h. */
4902 #ifdef __STDC__
4903 # include <limits.h>
4904 #else
4905 # include <assert.h>
4906 #endif
4907 Syntax error
4908 _ACEOF
4909 if ac_fn_c_try_cpp "$LINENO"; then :
4910
4911 else
4912 # Broken: fails on valid input.
4913 continue
4914 fi
4915 rm -f conftest.err conftest.i conftest.$ac_ext
4916
4917 # OK, works on sane cases. Now check whether nonexistent headers
4918 # can be detected and how.
4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920 /* end confdefs.h. */
4921 #include <ac_nonexistent.h>
4922 _ACEOF
4923 if ac_fn_c_try_cpp "$LINENO"; then :
4924 # Broken: success on invalid input.
4925 continue
4926 else
4927 # Passes both tests.
4928 ac_preproc_ok=:
4929 break
4930 fi
4931 rm -f conftest.err conftest.i conftest.$ac_ext
4932
4933 done
4934 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4935 rm -f conftest.i conftest.err conftest.$ac_ext
4936 if $ac_preproc_ok; then :
4937 break
4938 fi
4939
4940 done
4941 ac_cv_prog_CPP=$CPP
4942
4943 fi
4944 CPP=$ac_cv_prog_CPP
4945 else
4946 ac_cv_prog_CPP=$CPP
4947 fi
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4949 $as_echo "$CPP" >&6; }
4950 ac_preproc_ok=false
4951 for ac_c_preproc_warn_flag in '' yes
4952 do
4953 # Use a header file that comes with gcc, so configuring glibc
4954 # with a fresh cross-compiler works.
4955 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4956 # <limits.h> exists even on freestanding compilers.
4957 # On the NeXT, cc -E runs the code through the compiler's parser,
4958 # not just through cpp. "Syntax error" is here to catch this case.
4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960 /* end confdefs.h. */
4961 #ifdef __STDC__
4962 # include <limits.h>
4963 #else
4964 # include <assert.h>
4965 #endif
4966 Syntax error
4967 _ACEOF
4968 if ac_fn_c_try_cpp "$LINENO"; then :
4969
4970 else
4971 # Broken: fails on valid input.
4972 continue
4973 fi
4974 rm -f conftest.err conftest.i conftest.$ac_ext
4975
4976 # OK, works on sane cases. Now check whether nonexistent headers
4977 # can be detected and how.
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4980 #include <ac_nonexistent.h>
4981 _ACEOF
4982 if ac_fn_c_try_cpp "$LINENO"; then :
4983 # Broken: success on invalid input.
4984 continue
4985 else
4986 # Passes both tests.
4987 ac_preproc_ok=:
4988 break
4989 fi
4990 rm -f conftest.err conftest.i conftest.$ac_ext
4991
4992 done
4993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4994 rm -f conftest.i conftest.err conftest.$ac_ext
4995 if $ac_preproc_ok; then :
4996
4997 else
4998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5000 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5001 See \`config.log' for more details" "$LINENO" 5; }
5002 fi
5003
5004 ac_ext=c
5005 ac_cpp='$CPP $CPPFLAGS'
5006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5009
5010
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5012 $as_echo_n "checking for egrep... " >&6; }
5013 if ${ac_cv_path_EGREP+:} false; then :
5014 $as_echo_n "(cached) " >&6
5015 else
5016 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5017 then ac_cv_path_EGREP="$GREP -E"
5018 else
5019 if test -z "$EGREP"; then
5020 ac_path_EGREP_found=false
5021 # Loop through the user's path and test for each of PROGNAME-LIST
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5024 do
5025 IFS=$as_save_IFS
5026 test -z "$as_dir" && as_dir=.
5027 for ac_prog in egrep; do
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5030 as_fn_executable_p "$ac_path_EGREP" || continue
5031 # Check for GNU ac_path_EGREP and select it if it is found.
5032 # Check for GNU $ac_path_EGREP
5033 case `"$ac_path_EGREP" --version 2>&1` in
5034 *GNU*)
5035 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5036 *)
5037 ac_count=0
5038 $as_echo_n 0123456789 >"conftest.in"
5039 while :
5040 do
5041 cat "conftest.in" "conftest.in" >"conftest.tmp"
5042 mv "conftest.tmp" "conftest.in"
5043 cp "conftest.in" "conftest.nl"
5044 $as_echo 'EGREP' >> "conftest.nl"
5045 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5047 as_fn_arith $ac_count + 1 && ac_count=$as_val
5048 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5049 # Best one so far, save it but keep looking for a better one
5050 ac_cv_path_EGREP="$ac_path_EGREP"
5051 ac_path_EGREP_max=$ac_count
5052 fi
5053 # 10*(2^10) chars as input seems more than enough
5054 test $ac_count -gt 10 && break
5055 done
5056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5057 esac
5058
5059 $ac_path_EGREP_found && break 3
5060 done
5061 done
5062 done
5063 IFS=$as_save_IFS
5064 if test -z "$ac_cv_path_EGREP"; then
5065 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5066 fi
5067 else
5068 ac_cv_path_EGREP=$EGREP
5069 fi
5070
5071 fi
5072 fi
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5074 $as_echo "$ac_cv_path_EGREP" >&6; }
5075 EGREP="$ac_cv_path_EGREP"
5076
5077
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5079 $as_echo_n "checking for ANSI C header files... " >&6; }
5080 if ${ac_cv_header_stdc+:} false; then :
5081 $as_echo_n "(cached) " >&6
5082 else
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5085 #include <stdlib.h>
5086 #include <stdarg.h>
5087 #include <string.h>
5088 #include <float.h>
5089
5090 int
5091 main ()
5092 {
5093
5094 ;
5095 return 0;
5096 }
5097 _ACEOF
5098 if ac_fn_c_try_compile "$LINENO"; then :
5099 ac_cv_header_stdc=yes
5100 else
5101 ac_cv_header_stdc=no
5102 fi
5103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5104
5105 if test $ac_cv_header_stdc = yes; then
5106 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108 /* end confdefs.h. */
5109 #include <string.h>
5110
5111 _ACEOF
5112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5113 $EGREP "memchr" >/dev/null 2>&1; then :
5114
5115 else
5116 ac_cv_header_stdc=no
5117 fi
5118 rm -f conftest*
5119
5120 fi
5121
5122 if test $ac_cv_header_stdc = yes; then
5123 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125 /* end confdefs.h. */
5126 #include <stdlib.h>
5127
5128 _ACEOF
5129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5130 $EGREP "free" >/dev/null 2>&1; then :
5131
5132 else
5133 ac_cv_header_stdc=no
5134 fi
5135 rm -f conftest*
5136
5137 fi
5138
5139 if test $ac_cv_header_stdc = yes; then
5140 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5141 if test "$cross_compiling" = yes; then :
5142 :
5143 else
5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145 /* end confdefs.h. */
5146 #include <ctype.h>
5147 #include <stdlib.h>
5148 #if ((' ' & 0x0FF) == 0x020)
5149 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5150 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5151 #else
5152 # define ISLOWER(c) \
5153 (('a' <= (c) && (c) <= 'i') \
5154 || ('j' <= (c) && (c) <= 'r') \
5155 || ('s' <= (c) && (c) <= 'z'))
5156 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5157 #endif
5158
5159 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5160 int
5161 main ()
5162 {
5163 int i;
5164 for (i = 0; i < 256; i++)
5165 if (XOR (islower (i), ISLOWER (i))
5166 || toupper (i) != TOUPPER (i))
5167 return 2;
5168 return 0;
5169 }
5170 _ACEOF
5171 if ac_fn_c_try_run "$LINENO"; then :
5172
5173 else
5174 ac_cv_header_stdc=no
5175 fi
5176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5177 conftest.$ac_objext conftest.beam conftest.$ac_ext
5178 fi
5179
5180 fi
5181 fi
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5183 $as_echo "$ac_cv_header_stdc" >&6; }
5184 if test $ac_cv_header_stdc = yes; then
5185
5186 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5187
5188 fi
5189
5190 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5191 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5192 inttypes.h stdint.h unistd.h
5193 do :
5194 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5195 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5196 "
5197 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5198 cat >>confdefs.h <<_ACEOF
5199 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5200 _ACEOF
5201
5202 fi
5203
5204 done
5205
5206
5207
5208 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5209 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5210 MINIX=yes
5211 else
5212 MINIX=
5213 fi
5214
5215
5216 if test "$MINIX" = yes; then
5217
5218 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5219
5220
5221 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5222
5223
5224 $as_echo "#define _MINIX 1" >>confdefs.h
5225
5226 fi
5227
5228
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5230 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5231 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235 /* end confdefs.h. */
5236
5237 # define __EXTENSIONS__ 1
5238 $ac_includes_default
5239 int
5240 main ()
5241 {
5242
5243 ;
5244 return 0;
5245 }
5246 _ACEOF
5247 if ac_fn_c_try_compile "$LINENO"; then :
5248 ac_cv_safe_to_define___extensions__=yes
5249 else
5250 ac_cv_safe_to_define___extensions__=no
5251 fi
5252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5253 fi
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5255 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5256 test $ac_cv_safe_to_define___extensions__ = yes &&
5257 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5258
5259 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5260
5261 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5262
5263 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5264
5265 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5277 if test -n "$ac_tool_prefix"; then
5278 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5279 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281 $as_echo_n "checking for $ac_word... " >&6; }
5282 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5283 $as_echo_n "(cached) " >&6
5284 else
5285 case $PKG_CONFIG in
5286 [\\/]* | ?:[\\/]*)
5287 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5288 ;;
5289 *)
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH
5292 do
5293 IFS=$as_save_IFS
5294 test -z "$as_dir" && as_dir=.
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5297 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5299 break 2
5300 fi
5301 done
5302 done
5303 IFS=$as_save_IFS
5304
5305 ;;
5306 esac
5307 fi
5308 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5309 if test -n "$PKG_CONFIG"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5311 $as_echo "$PKG_CONFIG" >&6; }
5312 else
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5315 fi
5316
5317
5318 fi
5319 if test -z "$ac_cv_path_PKG_CONFIG"; then
5320 ac_pt_PKG_CONFIG=$PKG_CONFIG
5321 # Extract the first word of "pkg-config", so it can be a program name with args.
5322 set dummy pkg-config; ac_word=$2
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5324 $as_echo_n "checking for $ac_word... " >&6; }
5325 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5326 $as_echo_n "(cached) " >&6
5327 else
5328 case $ac_pt_PKG_CONFIG in
5329 [\\/]* | ?:[\\/]*)
5330 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5331 ;;
5332 *)
5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 for as_dir in $PATH
5335 do
5336 IFS=$as_save_IFS
5337 test -z "$as_dir" && as_dir=.
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5340 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 break 2
5343 fi
5344 done
5345 done
5346 IFS=$as_save_IFS
5347
5348 ;;
5349 esac
5350 fi
5351 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5352 if test -n "$ac_pt_PKG_CONFIG"; then
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5354 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5355 else
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357 $as_echo "no" >&6; }
5358 fi
5359
5360 if test "x$ac_pt_PKG_CONFIG" = x; then
5361 PKG_CONFIG=""
5362 else
5363 case $cross_compiling:$ac_tool_warned in
5364 yes:)
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5367 ac_tool_warned=yes ;;
5368 esac
5369 PKG_CONFIG=$ac_pt_PKG_CONFIG
5370 fi
5371 else
5372 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5373 fi
5374
5375 fi
5376 if test -n "$PKG_CONFIG"; then
5377 _pkg_min_version=0.9.0
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5379 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5380 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5382 $as_echo "yes" >&6; }
5383 else
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5385 $as_echo "no" >&6; }
5386 PKG_CONFIG=""
5387 fi
5388 fi
5389
5390 case `pwd` in
5391 *\ * | *\ *)
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5393 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5394 esac
5395
5396
5397
5398 macro_version='2.2.7a'
5399 macro_revision='1.3134'
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413 ltmain="$ac_aux_dir/ltmain.sh"
5414
5415 # Backslashify metacharacters that are still active within
5416 # double-quoted strings.
5417 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5418
5419 # Same as above, but do not quote variable references.
5420 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5421
5422 # Sed substitution to delay expansion of an escaped shell variable in a
5423 # double_quote_subst'ed string.
5424 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5425
5426 # Sed substitution to delay expansion of an escaped single quote.
5427 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5428
5429 # Sed substitution to avoid accidental globbing in evaled expressions
5430 no_glob_subst='s/\*/\\\*/g'
5431
5432 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5433 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5434 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5435
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5437 $as_echo_n "checking how to print strings... " >&6; }
5438 # Test print first, because it will be a builtin if present.
5439 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5440 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5441 ECHO='print -r --'
5442 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5443 ECHO='printf %s\n'
5444 else
5445 # Use this function as a fallback that always works.
5446 func_fallback_echo ()
5447 {
5448 eval 'cat <<_LTECHO_EOF
5449 $1
5450 _LTECHO_EOF'
5451 }
5452 ECHO='func_fallback_echo'
5453 fi
5454
5455 # func_echo_all arg...
5456 # Invoke $ECHO with all args, space-separated.
5457 func_echo_all ()
5458 {
5459 $ECHO ""
5460 }
5461
5462 case "$ECHO" in
5463 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5464 $as_echo "printf" >&6; } ;;
5465 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5466 $as_echo "print -r" >&6; } ;;
5467 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5468 $as_echo "cat" >&6; } ;;
5469 esac
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5485 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5486 if ${ac_cv_path_SED+:} false; then :
5487 $as_echo_n "(cached) " >&6
5488 else
5489 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5490 for ac_i in 1 2 3 4 5 6 7; do
5491 ac_script="$ac_script$as_nl$ac_script"
5492 done
5493 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5494 { ac_script=; unset ac_script;}
5495 if test -z "$SED"; then
5496 ac_path_SED_found=false
5497 # Loop through the user's path and test for each of PROGNAME-LIST
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 for as_dir in $PATH
5500 do
5501 IFS=$as_save_IFS
5502 test -z "$as_dir" && as_dir=.
5503 for ac_prog in sed gsed; do
5504 for ac_exec_ext in '' $ac_executable_extensions; do
5505 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5506 as_fn_executable_p "$ac_path_SED" || continue
5507 # Check for GNU ac_path_SED and select it if it is found.
5508 # Check for GNU $ac_path_SED
5509 case `"$ac_path_SED" --version 2>&1` in
5510 *GNU*)
5511 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5512 *)
5513 ac_count=0
5514 $as_echo_n 0123456789 >"conftest.in"
5515 while :
5516 do
5517 cat "conftest.in" "conftest.in" >"conftest.tmp"
5518 mv "conftest.tmp" "conftest.in"
5519 cp "conftest.in" "conftest.nl"
5520 $as_echo '' >> "conftest.nl"
5521 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5522 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5523 as_fn_arith $ac_count + 1 && ac_count=$as_val
5524 if test $ac_count -gt ${ac_path_SED_max-0}; then
5525 # Best one so far, save it but keep looking for a better one
5526 ac_cv_path_SED="$ac_path_SED"
5527 ac_path_SED_max=$ac_count
5528 fi
5529 # 10*(2^10) chars as input seems more than enough
5530 test $ac_count -gt 10 && break
5531 done
5532 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5533 esac
5534
5535 $ac_path_SED_found && break 3
5536 done
5537 done
5538 done
5539 IFS=$as_save_IFS
5540 if test -z "$ac_cv_path_SED"; then
5541 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5542 fi
5543 else
5544 ac_cv_path_SED=$SED
5545 fi
5546
5547 fi
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5549 $as_echo "$ac_cv_path_SED" >&6; }
5550 SED="$ac_cv_path_SED"
5551 rm -f conftest.sed
5552
5553 test -z "$SED" && SED=sed
5554 Xsed="$SED -e 1s/^X//"
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5567 $as_echo_n "checking for fgrep... " >&6; }
5568 if ${ac_cv_path_FGREP+:} false; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5572 then ac_cv_path_FGREP="$GREP -F"
5573 else
5574 if test -z "$FGREP"; then
5575 ac_path_FGREP_found=false
5576 # Loop through the user's path and test for each of PROGNAME-LIST
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5579 do
5580 IFS=$as_save_IFS
5581 test -z "$as_dir" && as_dir=.
5582 for ac_prog in fgrep; do
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5585 as_fn_executable_p "$ac_path_FGREP" || continue
5586 # Check for GNU ac_path_FGREP and select it if it is found.
5587 # Check for GNU $ac_path_FGREP
5588 case `"$ac_path_FGREP" --version 2>&1` in
5589 *GNU*)
5590 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5591 *)
5592 ac_count=0
5593 $as_echo_n 0123456789 >"conftest.in"
5594 while :
5595 do
5596 cat "conftest.in" "conftest.in" >"conftest.tmp"
5597 mv "conftest.tmp" "conftest.in"
5598 cp "conftest.in" "conftest.nl"
5599 $as_echo 'FGREP' >> "conftest.nl"
5600 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5601 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5602 as_fn_arith $ac_count + 1 && ac_count=$as_val
5603 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5604 # Best one so far, save it but keep looking for a better one
5605 ac_cv_path_FGREP="$ac_path_FGREP"
5606 ac_path_FGREP_max=$ac_count
5607 fi
5608 # 10*(2^10) chars as input seems more than enough
5609 test $ac_count -gt 10 && break
5610 done
5611 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5612 esac
5613
5614 $ac_path_FGREP_found && break 3
5615 done
5616 done
5617 done
5618 IFS=$as_save_IFS
5619 if test -z "$ac_cv_path_FGREP"; then
5620 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5621 fi
5622 else
5623 ac_cv_path_FGREP=$FGREP
5624 fi
5625
5626 fi
5627 fi
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5629 $as_echo "$ac_cv_path_FGREP" >&6; }
5630 FGREP="$ac_cv_path_FGREP"
5631
5632
5633 test -z "$GREP" && GREP=grep
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653 # Check whether --with-gnu-ld was given.
5654 if test "${with_gnu_ld+set}" = set; then :
5655 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5656 else
5657 with_gnu_ld=no
5658 fi
5659
5660 ac_prog=ld
5661 if test "$GCC" = yes; then
5662 # Check if gcc -print-prog-name=ld gives a path.
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5664 $as_echo_n "checking for ld used by $CC... " >&6; }
5665 case $host in
5666 *-*-mingw*)
5667 # gcc leaves a trailing carriage return which upsets mingw
5668 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5669 *)
5670 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5671 esac
5672 case $ac_prog in
5673 # Accept absolute paths.
5674 [\\/]* | ?:[\\/]*)
5675 re_direlt='/[^/][^/]*/\.\./'
5676 # Canonicalize the pathname of ld
5677 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5678 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5679 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5680 done
5681 test -z "$LD" && LD="$ac_prog"
5682 ;;
5683 "")
5684 # If it fails, then pretend we aren't using GCC.
5685 ac_prog=ld
5686 ;;
5687 *)
5688 # If it is relative, then search for the first ld in PATH.
5689 with_gnu_ld=unknown
5690 ;;
5691 esac
5692 elif test "$with_gnu_ld" = yes; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5694 $as_echo_n "checking for GNU ld... " >&6; }
5695 else
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5697 $as_echo_n "checking for non-GNU ld... " >&6; }
5698 fi
5699 if ${lt_cv_path_LD+:} false; then :
5700 $as_echo_n "(cached) " >&6
5701 else
5702 if test -z "$LD"; then
5703 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5704 for ac_dir in $PATH; do
5705 IFS="$lt_save_ifs"
5706 test -z "$ac_dir" && ac_dir=.
5707 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5708 lt_cv_path_LD="$ac_dir/$ac_prog"
5709 # Check to see if the program is GNU ld. I'd rather use --version,
5710 # but apparently some variants of GNU ld only accept -v.
5711 # Break only if it was the GNU/non-GNU ld that we prefer.
5712 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5713 *GNU* | *'with BFD'*)
5714 test "$with_gnu_ld" != no && break
5715 ;;
5716 *)
5717 test "$with_gnu_ld" != yes && break
5718 ;;
5719 esac
5720 fi
5721 done
5722 IFS="$lt_save_ifs"
5723 else
5724 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5725 fi
5726 fi
5727
5728 LD="$lt_cv_path_LD"
5729 if test -n "$LD"; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5731 $as_echo "$LD" >&6; }
5732 else
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734 $as_echo "no" >&6; }
5735 fi
5736 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5738 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5739 if ${lt_cv_prog_gnu_ld+:} false; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5743 case `$LD -v 2>&1 </dev/null` in
5744 *GNU* | *'with BFD'*)
5745 lt_cv_prog_gnu_ld=yes
5746 ;;
5747 *)
5748 lt_cv_prog_gnu_ld=no
5749 ;;
5750 esac
5751 fi
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5753 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5754 with_gnu_ld=$lt_cv_prog_gnu_ld
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5765 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5766 if ${lt_cv_path_NM+:} false; then :
5767 $as_echo_n "(cached) " >&6
5768 else
5769 if test -n "$NM"; then
5770 # Let the user override the nm to test.
5771 lt_nm_to_check="$NM"
5772 else
5773 lt_nm_to_check="${ac_tool_prefix}nm"
5774 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5775 lt_nm_to_check="$lt_nm_to_check nm"
5776 fi
5777 fi
5778 for lt_tmp_nm in "$lt_nm_to_check"; do
5779 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5780 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5781 IFS="$lt_save_ifs"
5782 test -z "$ac_dir" && ac_dir=.
5783 # Strip out any user-provided options from the nm to test twice,
5784 # the first time to test to see if nm (rather than its options) has
5785 # an explicit path, the second time to yield a file which can be
5786 # nm'ed itself.
5787 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5788 case "$tmp_nm_path" in
5789 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5790 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5791 esac
5792 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5793 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5794 # Check to see if the nm accepts a BSD-compat flag.
5795 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5796 # nm: unknown option "B" ignored
5797 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5798 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5799 break
5800 ;;
5801 *)
5802 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5803 *$tmp_nm*)
5804 lt_cv_path_NM="$tmp_nm -p"
5805 break
5806 ;;
5807 *)
5808 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5809 continue # so that we can try to find one that supports BSD flags
5810 ;;
5811 esac
5812 ;;
5813 esac
5814 fi
5815 done
5816 IFS="$lt_save_ifs"
5817 done
5818 : ${lt_cv_path_NM=no}
5819 fi
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5821 $as_echo "$lt_cv_path_NM" >&6; }
5822 if test "$lt_cv_path_NM" != "no"; then
5823 NM="$lt_cv_path_NM"
5824 else
5825 # Didn't find any BSD compatible name lister, look for dumpbin.
5826 if test -n "$DUMPBIN"; then :
5827 # Let the user override the test.
5828 else
5829 if test -n "$ac_tool_prefix"; then
5830 for ac_prog in dumpbin "link -dump"
5831 do
5832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5833 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5835 $as_echo_n "checking for $ac_word... " >&6; }
5836 if ${ac_cv_prog_DUMPBIN+:} false; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 if test -n "$DUMPBIN"; then
5840 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5841 else
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 for as_dir in $PATH
5844 do
5845 IFS=$as_save_IFS
5846 test -z "$as_dir" && as_dir=.
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5851 break 2
5852 fi
5853 done
5854 done
5855 IFS=$as_save_IFS
5856
5857 fi
5858 fi
5859 DUMPBIN=$ac_cv_prog_DUMPBIN
5860 if test -n "$DUMPBIN"; then
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5862 $as_echo "$DUMPBIN" >&6; }
5863 else
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865 $as_echo "no" >&6; }
5866 fi
5867
5868
5869 test -n "$DUMPBIN" && break
5870 done
5871 fi
5872 if test -z "$DUMPBIN"; then
5873 ac_ct_DUMPBIN=$DUMPBIN
5874 for ac_prog in dumpbin "link -dump"
5875 do
5876 # Extract the first word of "$ac_prog", so it can be a program name with args.
5877 set dummy $ac_prog; ac_word=$2
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5879 $as_echo_n "checking for $ac_word... " >&6; }
5880 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5881 $as_echo_n "(cached) " >&6
5882 else
5883 if test -n "$ac_ct_DUMPBIN"; then
5884 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5885 else
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 for as_dir in $PATH
5888 do
5889 IFS=$as_save_IFS
5890 test -z "$as_dir" && as_dir=.
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5893 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 break 2
5896 fi
5897 done
5898 done
5899 IFS=$as_save_IFS
5900
5901 fi
5902 fi
5903 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5904 if test -n "$ac_ct_DUMPBIN"; then
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5906 $as_echo "$ac_ct_DUMPBIN" >&6; }
5907 else
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909 $as_echo "no" >&6; }
5910 fi
5911
5912
5913 test -n "$ac_ct_DUMPBIN" && break
5914 done
5915
5916 if test "x$ac_ct_DUMPBIN" = x; then
5917 DUMPBIN=":"
5918 else
5919 case $cross_compiling:$ac_tool_warned in
5920 yes:)
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5923 ac_tool_warned=yes ;;
5924 esac
5925 DUMPBIN=$ac_ct_DUMPBIN
5926 fi
5927 fi
5928
5929 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5930 *COFF*)
5931 DUMPBIN="$DUMPBIN -symbols"
5932 ;;
5933 *)
5934 DUMPBIN=:
5935 ;;
5936 esac
5937 fi
5938
5939 if test "$DUMPBIN" != ":"; then
5940 NM="$DUMPBIN"
5941 fi
5942 fi
5943 test -z "$NM" && NM=nm
5944
5945
5946
5947
5948
5949
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5951 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5952 if ${lt_cv_nm_interface+:} false; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 lt_cv_nm_interface="BSD nm"
5956 echo "int some_variable = 0;" > conftest.$ac_ext
5957 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5958 (eval "$ac_compile" 2>conftest.err)
5959 cat conftest.err >&5
5960 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5961 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5962 cat conftest.err >&5
5963 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5964 cat conftest.out >&5
5965 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5966 lt_cv_nm_interface="MS dumpbin"
5967 fi
5968 rm -f conftest*
5969 fi
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5971 $as_echo "$lt_cv_nm_interface" >&6; }
5972
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5974 $as_echo_n "checking whether ln -s works... " >&6; }
5975 LN_S=$as_ln_s
5976 if test "$LN_S" = "ln -s"; then
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5978 $as_echo "yes" >&6; }
5979 else
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5981 $as_echo "no, using $LN_S" >&6; }
5982 fi
5983
5984 # find the maximum length of command line arguments
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5986 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5987 if ${lt_cv_sys_max_cmd_len+:} false; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 i=0
5991 teststring="ABCD"
5992
5993 case $build_os in
5994 msdosdjgpp*)
5995 # On DJGPP, this test can blow up pretty badly due to problems in libc
5996 # (any single argument exceeding 2000 bytes causes a buffer overrun
5997 # during glob expansion). Even if it were fixed, the result of this
5998 # check would be larger than it should be.
5999 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6000 ;;
6001
6002 gnu*)
6003 # Under GNU Hurd, this test is not required because there is
6004 # no limit to the length of command line arguments.
6005 # Libtool will interpret -1 as no limit whatsoever
6006 lt_cv_sys_max_cmd_len=-1;
6007 ;;
6008
6009 cygwin* | mingw* | cegcc*)
6010 # On Win9x/ME, this test blows up -- it succeeds, but takes
6011 # about 5 minutes as the teststring grows exponentially.
6012 # Worse, since 9x/ME are not pre-emptively multitasking,
6013 # you end up with a "frozen" computer, even though with patience
6014 # the test eventually succeeds (with a max line length of 256k).
6015 # Instead, let's just punt: use the minimum linelength reported by
6016 # all of the supported platforms: 8192 (on NT/2K/XP).
6017 lt_cv_sys_max_cmd_len=8192;
6018 ;;
6019
6020 mint*)
6021 # On MiNT this can take a long time and run out of memory.
6022 lt_cv_sys_max_cmd_len=8192;
6023 ;;
6024
6025 amigaos*)
6026 # On AmigaOS with pdksh, this test takes hours, literally.
6027 # So we just punt and use a minimum line length of 8192.
6028 lt_cv_sys_max_cmd_len=8192;
6029 ;;
6030
6031 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6032 # This has been around since 386BSD, at least. Likely further.
6033 if test -x /sbin/sysctl; then
6034 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6035 elif test -x /usr/sbin/sysctl; then
6036 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6037 else
6038 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6039 fi
6040 # And add a safety zone
6041 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6042 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6043 ;;
6044
6045 interix*)
6046 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6047 lt_cv_sys_max_cmd_len=196608
6048 ;;
6049
6050 osf*)
6051 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6052 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6053 # nice to cause kernel panics so lets avoid the loop below.
6054 # First set a reasonable default.
6055 lt_cv_sys_max_cmd_len=16384
6056 #
6057 if test -x /sbin/sysconfig; then
6058 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6059 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6060 esac
6061 fi
6062 ;;
6063 sco3.2v5*)
6064 lt_cv_sys_max_cmd_len=102400
6065 ;;
6066 sysv5* | sco5v6* | sysv4.2uw2*)
6067 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6068 if test -n "$kargmax"; then
6069 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6070 else
6071 lt_cv_sys_max_cmd_len=32768
6072 fi
6073 ;;
6074 *)
6075 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6076 if test -n "$lt_cv_sys_max_cmd_len"; then
6077 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6078 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6079 else
6080 # Make teststring a little bigger before we do anything with it.
6081 # a 1K string should be a reasonable start.
6082 for i in 1 2 3 4 5 6 7 8 ; do
6083 teststring=$teststring$teststring
6084 done
6085 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6086 # If test is not a shell built-in, we'll probably end up computing a
6087 # maximum length that is only half of the actual maximum length, but
6088 # we can't tell.
6089 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6090 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6091 test $i != 17 # 1/2 MB should be enough
6092 do
6093 i=`expr $i + 1`
6094 teststring=$teststring$teststring
6095 done
6096 # Only check the string length outside the loop.
6097 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6098 teststring=
6099 # Add a significant safety factor because C++ compilers can tack on
6100 # massive amounts of additional arguments before passing them to the
6101 # linker. It appears as though 1/2 is a usable value.
6102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6103 fi
6104 ;;
6105 esac
6106
6107 fi
6108
6109 if test -n $lt_cv_sys_max_cmd_len ; then
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6111 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6112 else
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6114 $as_echo "none" >&6; }
6115 fi
6116 max_cmd_len=$lt_cv_sys_max_cmd_len
6117
6118
6119
6120
6121
6122
6123 : ${CP="cp -f"}
6124 : ${MV="mv -f"}
6125 : ${RM="rm -f"}
6126
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6128 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6129 # Try some XSI features
6130 xsi_shell=no
6131 ( _lt_dummy="a/b/c"
6132 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6133 = c,a/b,, \
6134 && eval 'test $(( 1 + 1 )) -eq 2 \
6135 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6136 && xsi_shell=yes
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6138 $as_echo "$xsi_shell" >&6; }
6139
6140
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6142 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6143 lt_shell_append=no
6144 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6145 >/dev/null 2>&1 \
6146 && lt_shell_append=yes
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6148 $as_echo "$lt_shell_append" >&6; }
6149
6150
6151 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6152 lt_unset=unset
6153 else
6154 lt_unset=false
6155 fi
6156
6157
6158
6159
6160
6161 # test EBCDIC or ASCII
6162 case `echo X|tr X '\101'` in
6163 A) # ASCII based system
6164 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6165 lt_SP2NL='tr \040 \012'
6166 lt_NL2SP='tr \015\012 \040\040'
6167 ;;
6168 *) # EBCDIC based system
6169 lt_SP2NL='tr \100 \n'
6170 lt_NL2SP='tr \r\n \100\100'
6171 ;;
6172 esac
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6183 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6184 if ${lt_cv_ld_reload_flag+:} false; then :
6185 $as_echo_n "(cached) " >&6
6186 else
6187 lt_cv_ld_reload_flag='-r'
6188 fi
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6190 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6191 reload_flag=$lt_cv_ld_reload_flag
6192 case $reload_flag in
6193 "" | " "*) ;;
6194 *) reload_flag=" $reload_flag" ;;
6195 esac
6196 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6197 case $host_os in
6198 darwin*)
6199 if test "$GCC" = yes; then
6200 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6201 else
6202 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6203 fi
6204 ;;
6205 esac
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215 if test -n "$ac_tool_prefix"; then
6216 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6217 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6219 $as_echo_n "checking for $ac_word... " >&6; }
6220 if ${ac_cv_prog_OBJDUMP+:} false; then :
6221 $as_echo_n "(cached) " >&6
6222 else
6223 if test -n "$OBJDUMP"; then
6224 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6225 else
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 for as_dir in $PATH
6228 do
6229 IFS=$as_save_IFS
6230 test -z "$as_dir" && as_dir=.
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6233 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6235 break 2
6236 fi
6237 done
6238 done
6239 IFS=$as_save_IFS
6240
6241 fi
6242 fi
6243 OBJDUMP=$ac_cv_prog_OBJDUMP
6244 if test -n "$OBJDUMP"; then
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6246 $as_echo "$OBJDUMP" >&6; }
6247 else
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6249 $as_echo "no" >&6; }
6250 fi
6251
6252
6253 fi
6254 if test -z "$ac_cv_prog_OBJDUMP"; then
6255 ac_ct_OBJDUMP=$OBJDUMP
6256 # Extract the first word of "objdump", so it can be a program name with args.
6257 set dummy objdump; ac_word=$2
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6259 $as_echo_n "checking for $ac_word... " >&6; }
6260 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6261 $as_echo_n "(cached) " >&6
6262 else
6263 if test -n "$ac_ct_OBJDUMP"; then
6264 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6265 else
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 for as_dir in $PATH
6268 do
6269 IFS=$as_save_IFS
6270 test -z "$as_dir" && as_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6273 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 break 2
6276 fi
6277 done
6278 done
6279 IFS=$as_save_IFS
6280
6281 fi
6282 fi
6283 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6284 if test -n "$ac_ct_OBJDUMP"; then
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6286 $as_echo "$ac_ct_OBJDUMP" >&6; }
6287 else
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289 $as_echo "no" >&6; }
6290 fi
6291
6292 if test "x$ac_ct_OBJDUMP" = x; then
6293 OBJDUMP="false"
6294 else
6295 case $cross_compiling:$ac_tool_warned in
6296 yes:)
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6299 ac_tool_warned=yes ;;
6300 esac
6301 OBJDUMP=$ac_ct_OBJDUMP
6302 fi
6303 else
6304 OBJDUMP="$ac_cv_prog_OBJDUMP"
6305 fi
6306
6307 test -z "$OBJDUMP" && OBJDUMP=objdump
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6318 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6319 if ${lt_cv_deplibs_check_method+:} false; then :
6320 $as_echo_n "(cached) " >&6
6321 else
6322 lt_cv_file_magic_cmd='$MAGIC_CMD'
6323 lt_cv_file_magic_test_file=
6324 lt_cv_deplibs_check_method='unknown'
6325 # Need to set the preceding variable on all platforms that support
6326 # interlibrary dependencies.
6327 # 'none' -- dependencies not supported.
6328 # `unknown' -- same as none, but documents that we really don't know.
6329 # 'pass_all' -- all dependencies passed with no checks.
6330 # 'test_compile' -- check by making test program.
6331 # 'file_magic [[regex]]' -- check by looking for files in library path
6332 # which responds to the $file_magic_cmd with a given extended regex.
6333 # If you have `file' or equivalent on your system and you're not sure
6334 # whether `pass_all' will *always* work, you probably want this one.
6335
6336 case $host_os in
6337 aix[4-9]*)
6338 lt_cv_deplibs_check_method=pass_all
6339 ;;
6340
6341 beos*)
6342 lt_cv_deplibs_check_method=pass_all
6343 ;;
6344
6345 bsdi[45]*)
6346 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6347 lt_cv_file_magic_cmd='/usr/bin/file -L'
6348 lt_cv_file_magic_test_file=/shlib/libc.so
6349 ;;
6350
6351 cygwin*)
6352 # func_win32_libid is a shell function defined in ltmain.sh
6353 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6354 lt_cv_file_magic_cmd='func_win32_libid'
6355 ;;
6356
6357 mingw* | pw32*)
6358 # Base MSYS/MinGW do not provide the 'file' command needed by
6359 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6360 # unless we find 'file', for example because we are cross-compiling.
6361 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6362 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6363 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6364 lt_cv_file_magic_cmd='func_win32_libid'
6365 else
6366 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6367 lt_cv_file_magic_cmd='$OBJDUMP -f'
6368 fi
6369 ;;
6370
6371 cegcc*)
6372 # use the weaker test based on 'objdump'. See mingw*.
6373 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6374 lt_cv_file_magic_cmd='$OBJDUMP -f'
6375 ;;
6376
6377 darwin* | rhapsody*)
6378 lt_cv_deplibs_check_method=pass_all
6379 ;;
6380
6381 freebsd* | dragonfly*)
6382 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6383 case $host_cpu in
6384 i*86 )
6385 # Not sure whether the presence of OpenBSD here was a mistake.
6386 # Let's accept both of them until this is cleared up.
6387 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6388 lt_cv_file_magic_cmd=/usr/bin/file
6389 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6390 ;;
6391 esac
6392 else
6393 lt_cv_deplibs_check_method=pass_all
6394 fi
6395 ;;
6396
6397 gnu*)
6398 lt_cv_deplibs_check_method=pass_all
6399 ;;
6400
6401 haiku*)
6402 lt_cv_deplibs_check_method=pass_all
6403 ;;
6404
6405 hpux10.20* | hpux11*)
6406 lt_cv_file_magic_cmd=/usr/bin/file
6407 case $host_cpu in
6408 ia64*)
6409 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6410 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6411 ;;
6412 hppa*64*)
6413 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]'
6414 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6415 ;;
6416 *)
6417 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6418 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6419 ;;
6420 esac
6421 ;;
6422
6423 interix[3-9]*)
6424 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6425 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6426 ;;
6427
6428 irix5* | irix6* | nonstopux*)
6429 case $LD in
6430 *-32|*"-32 ") libmagic=32-bit;;
6431 *-n32|*"-n32 ") libmagic=N32;;
6432 *-64|*"-64 ") libmagic=64-bit;;
6433 *) libmagic=never-match;;
6434 esac
6435 lt_cv_deplibs_check_method=pass_all
6436 ;;
6437
6438 # This must be Linux ELF.
6439 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6440 lt_cv_deplibs_check_method=pass_all
6441 ;;
6442
6443 netbsd*)
6444 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6445 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6446 else
6447 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6448 fi
6449 ;;
6450
6451 newos6*)
6452 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6453 lt_cv_file_magic_cmd=/usr/bin/file
6454 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6455 ;;
6456
6457 *nto* | *qnx*)
6458 lt_cv_deplibs_check_method=pass_all
6459 ;;
6460
6461 openbsd*)
6462 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6463 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6464 else
6465 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6466 fi
6467 ;;
6468
6469 osf3* | osf4* | osf5*)
6470 lt_cv_deplibs_check_method=pass_all
6471 ;;
6472
6473 rdos*)
6474 lt_cv_deplibs_check_method=pass_all
6475 ;;
6476
6477 solaris*)
6478 lt_cv_deplibs_check_method=pass_all
6479 ;;
6480
6481 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6482 lt_cv_deplibs_check_method=pass_all
6483 ;;
6484
6485 sysv4 | sysv4.3*)
6486 case $host_vendor in
6487 motorola)
6488 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]'
6489 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6490 ;;
6491 ncr)
6492 lt_cv_deplibs_check_method=pass_all
6493 ;;
6494 sequent)
6495 lt_cv_file_magic_cmd='/bin/file'
6496 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6497 ;;
6498 sni)
6499 lt_cv_file_magic_cmd='/bin/file'
6500 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6501 lt_cv_file_magic_test_file=/lib/libc.so
6502 ;;
6503 siemens)
6504 lt_cv_deplibs_check_method=pass_all
6505 ;;
6506 pc)
6507 lt_cv_deplibs_check_method=pass_all
6508 ;;
6509 esac
6510 ;;
6511
6512 tpf*)
6513 lt_cv_deplibs_check_method=pass_all
6514 ;;
6515 vxworks*)
6516 # Assume VxWorks cross toolchains are built on Linux, possibly
6517 # as canadian for Windows hosts.
6518 lt_cv_deplibs_check_method=pass_all
6519 ;;
6520 esac
6521
6522 fi
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6524 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6525 file_magic_cmd=$lt_cv_file_magic_cmd
6526 deplibs_check_method=$lt_cv_deplibs_check_method
6527 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541 # Try CLANG_PLUGIN_FILE first since GCC_PLUGIN_OPTION may return the
6542 # wrong plugin_option with clang.
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang" >&5
6544 $as_echo_n "checking for clang... " >&6; }
6545 if ${clang_cv_is_clang+:} false; then :
6546 $as_echo_n "(cached) " >&6
6547 else
6548
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6551
6552 #ifdef __clang__
6553 yes
6554 #endif
6555
6556 _ACEOF
6557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6558 $EGREP "yes" >/dev/null 2>&1; then :
6559 clang_cv_is_clang=yes
6560 else
6561 clang_cv_is_clang=no
6562 fi
6563 rm -f conftest*
6564
6565 fi
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5
6567 $as_echo "$clang_cv_is_clang" >&6; }
6568 if test -n "$ac_tool_prefix"; then
6569 # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
6570 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572 $as_echo_n "checking for $ac_word... " >&6; }
6573 if ${ac_cv_prog_LLVM_CONFIG+:} false; then :
6574 $as_echo_n "(cached) " >&6
6575 else
6576 if test -n "$LLVM_CONFIG"; then
6577 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test.
6578 else
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 for as_dir in $PATH
6581 do
6582 IFS=$as_save_IFS
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6586 ac_cv_prog_LLVM_CONFIG="${ac_tool_prefix}llvm-config"
6587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6588 break 2
6589 fi
6590 done
6591 done
6592 IFS=$as_save_IFS
6593
6594 fi
6595 fi
6596 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG
6597 if test -n "$LLVM_CONFIG"; then
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
6599 $as_echo "$LLVM_CONFIG" >&6; }
6600 else
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6603 fi
6604
6605
6606 fi
6607 if test -z "$ac_cv_prog_LLVM_CONFIG"; then
6608 ac_ct_LLVM_CONFIG=$LLVM_CONFIG
6609 # Extract the first word of "llvm-config", so it can be a program name with args.
6610 set dummy llvm-config; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if ${ac_cv_prog_ac_ct_LLVM_CONFIG+:} false; then :
6614 $as_echo_n "(cached) " >&6
6615 else
6616 if test -n "$ac_ct_LLVM_CONFIG"; then
6617 ac_cv_prog_ac_ct_LLVM_CONFIG="$ac_ct_LLVM_CONFIG" # Let the user override the test.
6618 else
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 for as_dir in $PATH
6621 do
6622 IFS=$as_save_IFS
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
6625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626 ac_cv_prog_ac_ct_LLVM_CONFIG="llvm-config"
6627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 break 2
6629 fi
6630 done
6631 done
6632 IFS=$as_save_IFS
6633
6634 fi
6635 fi
6636 ac_ct_LLVM_CONFIG=$ac_cv_prog_ac_ct_LLVM_CONFIG
6637 if test -n "$ac_ct_LLVM_CONFIG"; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LLVM_CONFIG" >&5
6639 $as_echo "$ac_ct_LLVM_CONFIG" >&6; }
6640 else
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6643 fi
6644
6645 if test "x$ac_ct_LLVM_CONFIG" = x; then
6646 LLVM_CONFIG=""
6647 else
6648 case $cross_compiling:$ac_tool_warned in
6649 yes:)
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6652 ac_tool_warned=yes ;;
6653 esac
6654 LLVM_CONFIG=$ac_ct_LLVM_CONFIG
6655 fi
6656 else
6657 LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG"
6658 fi
6659
6660 plugin_file=
6661 if test $clang_cv_is_clang = yes; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5
6663 $as_echo_n "checking for clang plugin file... " >&6; }
6664 plugin_names="LLVMgold.so"
6665 for plugin in $plugin_names; do
6666 plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin`
6667 if test "$plugin_file" != "$plugin"; then
6668 break;
6669 fi
6670 if test -n "${LLVM_CONFIG}"; then
6671 plugin_file=`${LLVM_CONFIG} --libdir`/$plugin
6672 if test -f "$plugin_file"; then
6673 break;
6674 fi
6675 fi
6676 plugin_file=
6677 done
6678 if test -z "$plugin_file"; then
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680 $as_echo "no" >&6; }
6681 else
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5
6683 $as_echo "$plugin_file" >&6; }
6684 if test -n "$ac_tool_prefix"; then
6685 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6686 set dummy ${ac_tool_prefix}ar; ac_word=$2
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688 $as_echo_n "checking for $ac_word... " >&6; }
6689 if ${ac_cv_prog_AR+:} false; then :
6690 $as_echo_n "(cached) " >&6
6691 else
6692 if test -n "$AR"; then
6693 ac_cv_prog_AR="$AR" # Let the user override the test.
6694 else
6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696 for as_dir in $PATH
6697 do
6698 IFS=$as_save_IFS
6699 test -z "$as_dir" && as_dir=.
6700 for ac_exec_ext in '' $ac_executable_extensions; do
6701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6702 ac_cv_prog_AR="${ac_tool_prefix}ar"
6703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 break 2
6705 fi
6706 done
6707 done
6708 IFS=$as_save_IFS
6709
6710 fi
6711 fi
6712 AR=$ac_cv_prog_AR
6713 if test -n "$AR"; then
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6715 $as_echo "$AR" >&6; }
6716 else
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718 $as_echo "no" >&6; }
6719 fi
6720
6721
6722 fi
6723 if test -z "$ac_cv_prog_AR"; then
6724 ac_ct_AR=$AR
6725 # Extract the first word of "ar", so it can be a program name with args.
6726 set dummy ar; ac_word=$2
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6730 $as_echo_n "(cached) " >&6
6731 else
6732 if test -n "$ac_ct_AR"; then
6733 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6734 else
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in $PATH
6737 do
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6742 ac_cv_prog_ac_ct_AR="ar"
6743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 break 2
6745 fi
6746 done
6747 done
6748 IFS=$as_save_IFS
6749
6750 fi
6751 fi
6752 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6753 if test -n "$ac_ct_AR"; then
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6755 $as_echo "$ac_ct_AR" >&6; }
6756 else
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6759 fi
6760
6761 if test "x$ac_ct_AR" = x; then
6762 AR=""
6763 else
6764 case $cross_compiling:$ac_tool_warned in
6765 yes:)
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6768 ac_tool_warned=yes ;;
6769 esac
6770 AR=$ac_ct_AR
6771 fi
6772 else
6773 AR="$ac_cv_prog_AR"
6774 fi
6775
6776 if test -z "${AR}"; then
6777 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
6778 fi
6779 plugin_option="--plugin $plugin_file"
6780 touch conftest.c
6781 ${AR} $plugin_option rc conftest.a conftest.c
6782 if test "$?" != 0; then
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6784 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6785 plugin_file=
6786 fi
6787 rm -f conftest.*
6788 fi
6789 fi
6790 plugin_file="$plugin_file"
6791
6792 if test -n "$plugin_file"; then
6793 plugin_option="--plugin $plugin_file"
6794 else
6795 if test -n "$ac_tool_prefix"; then
6796 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6797 set dummy ${ac_tool_prefix}ar; ac_word=$2
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799 $as_echo_n "checking for $ac_word... " >&6; }
6800 if ${ac_cv_prog_AR+:} false; then :
6801 $as_echo_n "(cached) " >&6
6802 else
6803 if test -n "$AR"; then
6804 ac_cv_prog_AR="$AR" # Let the user override the test.
6805 else
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809 IFS=$as_save_IFS
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6813 ac_cv_prog_AR="${ac_tool_prefix}ar"
6814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 break 2
6816 fi
6817 done
6818 done
6819 IFS=$as_save_IFS
6820
6821 fi
6822 fi
6823 AR=$ac_cv_prog_AR
6824 if test -n "$AR"; then
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6826 $as_echo "$AR" >&6; }
6827 else
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829 $as_echo "no" >&6; }
6830 fi
6831
6832
6833 fi
6834 if test -z "$ac_cv_prog_AR"; then
6835 ac_ct_AR=$AR
6836 # Extract the first word of "ar", so it can be a program name with args.
6837 set dummy ar; ac_word=$2
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839 $as_echo_n "checking for $ac_word... " >&6; }
6840 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6841 $as_echo_n "(cached) " >&6
6842 else
6843 if test -n "$ac_ct_AR"; then
6844 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6845 else
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 for as_dir in $PATH
6848 do
6849 IFS=$as_save_IFS
6850 test -z "$as_dir" && as_dir=.
6851 for ac_exec_ext in '' $ac_executable_extensions; do
6852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6853 ac_cv_prog_ac_ct_AR="ar"
6854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 break 2
6856 fi
6857 done
6858 done
6859 IFS=$as_save_IFS
6860
6861 fi
6862 fi
6863 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6864 if test -n "$ac_ct_AR"; then
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6866 $as_echo "$ac_ct_AR" >&6; }
6867 else
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6870 fi
6871
6872 if test "x$ac_ct_AR" = x; then
6873 AR=""
6874 else
6875 case $cross_compiling:$ac_tool_warned in
6876 yes:)
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6879 ac_tool_warned=yes ;;
6880 esac
6881 AR=$ac_ct_AR
6882 fi
6883 else
6884 AR="$ac_cv_prog_AR"
6885 fi
6886
6887 if test -z "${AR}"; then
6888 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
6889 fi
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
6891 $as_echo_n "checking for -plugin option... " >&6; }
6892 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6893 plugin_option=
6894 for plugin in $plugin_names; do
6895 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6896 if test x$plugin_so = x$plugin; then
6897 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6898 fi
6899 if test x$plugin_so != x$plugin; then
6900 plugin_option="--plugin $plugin_so"
6901 break
6902 fi
6903 done
6904 if test -z "$plugin_option"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906 $as_echo "no" >&6; }
6907 else
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
6909 $as_echo "$plugin_option" >&6; }
6910 touch conftest.c
6911 ${AR} $plugin_option rc conftest.a conftest.c
6912 if test "$?" != 0; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6914 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6915 plugin_option=
6916 fi
6917 rm -f conftest.*
6918 fi
6919 plugin_option="$plugin_option"
6920
6921 fi
6922 if test -n "$ac_tool_prefix"; then
6923 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6924 set dummy ${ac_tool_prefix}ar; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if ${ac_cv_prog_AR+:} false; then :
6928 $as_echo_n "(cached) " >&6
6929 else
6930 if test -n "$AR"; then
6931 ac_cv_prog_AR="$AR" # Let the user override the test.
6932 else
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6935 do
6936 IFS=$as_save_IFS
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6940 ac_cv_prog_AR="${ac_tool_prefix}ar"
6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 break 2
6943 fi
6944 done
6945 done
6946 IFS=$as_save_IFS
6947
6948 fi
6949 fi
6950 AR=$ac_cv_prog_AR
6951 if test -n "$AR"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6953 $as_echo "$AR" >&6; }
6954 else
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6957 fi
6958
6959
6960 fi
6961 if test -z "$ac_cv_prog_AR"; then
6962 ac_ct_AR=$AR
6963 # Extract the first word of "ar", so it can be a program name with args.
6964 set dummy ar; ac_word=$2
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6966 $as_echo_n "checking for $ac_word... " >&6; }
6967 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6968 $as_echo_n "(cached) " >&6
6969 else
6970 if test -n "$ac_ct_AR"; then
6971 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6972 else
6973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 for as_dir in $PATH
6975 do
6976 IFS=$as_save_IFS
6977 test -z "$as_dir" && as_dir=.
6978 for ac_exec_ext in '' $ac_executable_extensions; do
6979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6980 ac_cv_prog_ac_ct_AR="ar"
6981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6982 break 2
6983 fi
6984 done
6985 done
6986 IFS=$as_save_IFS
6987
6988 fi
6989 fi
6990 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6991 if test -n "$ac_ct_AR"; then
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6993 $as_echo "$ac_ct_AR" >&6; }
6994 else
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 $as_echo "no" >&6; }
6997 fi
6998
6999 if test "x$ac_ct_AR" = x; then
7000 AR="false"
7001 else
7002 case $cross_compiling:$ac_tool_warned in
7003 yes:)
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7006 ac_tool_warned=yes ;;
7007 esac
7008 AR=$ac_ct_AR
7009 fi
7010 else
7011 AR="$ac_cv_prog_AR"
7012 fi
7013
7014 test -z "$AR" && AR=ar
7015 if test -n "$plugin_option"; then
7016 case "$AR" in
7017 *"$plugin_option"*)
7018 ;;
7019 *)
7020 if $AR --help 2>&1 | grep -q "\--plugin"; then
7021 AR="$AR $plugin_option"
7022 fi
7023 ;;
7024 esac
7025 fi
7026 test -z "$AR_FLAGS" && AR_FLAGS=cru
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038 if test -n "$ac_tool_prefix"; then
7039 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7040 set dummy ${ac_tool_prefix}strip; ac_word=$2
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7042 $as_echo_n "checking for $ac_word... " >&6; }
7043 if ${ac_cv_prog_STRIP+:} false; then :
7044 $as_echo_n "(cached) " >&6
7045 else
7046 if test -n "$STRIP"; then
7047 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7048 else
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 for as_dir in $PATH
7051 do
7052 IFS=$as_save_IFS
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7056 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 break 2
7059 fi
7060 done
7061 done
7062 IFS=$as_save_IFS
7063
7064 fi
7065 fi
7066 STRIP=$ac_cv_prog_STRIP
7067 if test -n "$STRIP"; then
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7069 $as_echo "$STRIP" >&6; }
7070 else
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072 $as_echo "no" >&6; }
7073 fi
7074
7075
7076 fi
7077 if test -z "$ac_cv_prog_STRIP"; then
7078 ac_ct_STRIP=$STRIP
7079 # Extract the first word of "strip", so it can be a program name with args.
7080 set dummy strip; ac_word=$2
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 $as_echo_n "checking for $ac_word... " >&6; }
7083 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7084 $as_echo_n "(cached) " >&6
7085 else
7086 if test -n "$ac_ct_STRIP"; then
7087 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7088 else
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7091 do
7092 IFS=$as_save_IFS
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7096 ac_cv_prog_ac_ct_STRIP="strip"
7097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 break 2
7099 fi
7100 done
7101 done
7102 IFS=$as_save_IFS
7103
7104 fi
7105 fi
7106 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7107 if test -n "$ac_ct_STRIP"; then
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7109 $as_echo "$ac_ct_STRIP" >&6; }
7110 else
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 $as_echo "no" >&6; }
7113 fi
7114
7115 if test "x$ac_ct_STRIP" = x; then
7116 STRIP=":"
7117 else
7118 case $cross_compiling:$ac_tool_warned in
7119 yes:)
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7122 ac_tool_warned=yes ;;
7123 esac
7124 STRIP=$ac_ct_STRIP
7125 fi
7126 else
7127 STRIP="$ac_cv_prog_STRIP"
7128 fi
7129
7130 test -z "$STRIP" && STRIP=:
7131
7132
7133
7134
7135
7136
7137 if test -n "$ac_tool_prefix"; then
7138 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7139 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141 $as_echo_n "checking for $ac_word... " >&6; }
7142 if ${ac_cv_prog_RANLIB+:} false; then :
7143 $as_echo_n "(cached) " >&6
7144 else
7145 if test -n "$RANLIB"; then
7146 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7147 else
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7150 do
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7155 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 break 2
7158 fi
7159 done
7160 done
7161 IFS=$as_save_IFS
7162
7163 fi
7164 fi
7165 RANLIB=$ac_cv_prog_RANLIB
7166 if test -n "$RANLIB"; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7168 $as_echo "$RANLIB" >&6; }
7169 else
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7172 fi
7173
7174
7175 fi
7176 if test -z "$ac_cv_prog_RANLIB"; then
7177 ac_ct_RANLIB=$RANLIB
7178 # Extract the first word of "ranlib", so it can be a program name with args.
7179 set dummy ranlib; ac_word=$2
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181 $as_echo_n "checking for $ac_word... " >&6; }
7182 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7183 $as_echo_n "(cached) " >&6
7184 else
7185 if test -n "$ac_ct_RANLIB"; then
7186 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7187 else
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7190 do
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7195 ac_cv_prog_ac_ct_RANLIB="ranlib"
7196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 break 2
7198 fi
7199 done
7200 done
7201 IFS=$as_save_IFS
7202
7203 fi
7204 fi
7205 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7206 if test -n "$ac_ct_RANLIB"; then
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7208 $as_echo "$ac_ct_RANLIB" >&6; }
7209 else
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7212 fi
7213
7214 if test "x$ac_ct_RANLIB" = x; then
7215 RANLIB=":"
7216 else
7217 case $cross_compiling:$ac_tool_warned in
7218 yes:)
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7221 ac_tool_warned=yes ;;
7222 esac
7223 RANLIB=$ac_ct_RANLIB
7224 fi
7225 else
7226 RANLIB="$ac_cv_prog_RANLIB"
7227 fi
7228
7229 test -z "$RANLIB" && RANLIB=:
7230 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7231 case "$RANLIB" in
7232 *"$plugin_option"*)
7233 ;;
7234 *)
7235 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7236 RANLIB="$RANLIB $plugin_option"
7237 fi
7238 ;;
7239 esac
7240 fi
7241
7242
7243
7244
7245
7246
7247 # Determine commands to create old-style static archives.
7248 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7249 old_postinstall_cmds='chmod 644 $oldlib'
7250 old_postuninstall_cmds=
7251
7252 if test -n "$RANLIB"; then
7253 case $host_os in
7254 openbsd*)
7255 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7256 ;;
7257 *)
7258 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7259 ;;
7260 esac
7261 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7262 fi
7263
7264 case $host_os in
7265 darwin*)
7266 lock_old_archive_extraction=yes ;;
7267 *)
7268 lock_old_archive_extraction=no ;;
7269 esac
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309 # If no C compiler was specified, use CC.
7310 LTCC=${LTCC-"$CC"}
7311
7312 # If no C compiler flags were specified, use CFLAGS.
7313 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7314
7315 # Allow CC to be a program name with arguments.
7316 compiler=$CC
7317
7318
7319 # Check for command to grab the raw symbol name followed by C symbol from nm.
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7321 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7322 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7323 $as_echo_n "(cached) " >&6
7324 else
7325
7326 # These are sane defaults that work on at least a few old systems.
7327 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7328
7329 # Character class describing NM global symbol codes.
7330 symcode='[BCDEGRST]'
7331
7332 # Regexp to match symbols that can be accessed directly from C.
7333 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7334
7335 # Define system-specific variables.
7336 case $host_os in
7337 aix*)
7338 symcode='[BCDT]'
7339 ;;
7340 cygwin* | mingw* | pw32* | cegcc*)
7341 symcode='[ABCDGISTW]'
7342 ;;
7343 hpux*)
7344 if test "$host_cpu" = ia64; then
7345 symcode='[ABCDEGRST]'
7346 fi
7347 ;;
7348 irix* | nonstopux*)
7349 symcode='[BCDEGRST]'
7350 ;;
7351 osf*)
7352 symcode='[BCDEGQRST]'
7353 ;;
7354 solaris*)
7355 symcode='[BCDRT]'
7356 ;;
7357 sco3.2v5*)
7358 symcode='[DT]'
7359 ;;
7360 sysv4.2uw2*)
7361 symcode='[DT]'
7362 ;;
7363 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7364 symcode='[ABDT]'
7365 ;;
7366 sysv4)
7367 symcode='[DFNSTU]'
7368 ;;
7369 esac
7370
7371 # If we're using GNU nm, then use its standard symbol codes.
7372 case `$NM -V 2>&1` in
7373 *GNU* | *'with BFD'*)
7374 symcode='[ABCDGIRSTW]' ;;
7375 esac
7376
7377 # Transform an extracted symbol line into a proper C declaration.
7378 # Some systems (esp. on ia64) link data and code symbols differently,
7379 # so use this general approach.
7380 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7381
7382 # Transform an extracted symbol line into symbol name and symbol address
7383 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7384 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'"
7385
7386 # Handle CRLF in mingw tool chain
7387 opt_cr=
7388 case $build_os in
7389 mingw*)
7390 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7391 ;;
7392 esac
7393
7394 # Try without a prefix underscore, then with it.
7395 for ac_symprfx in "" "_"; do
7396
7397 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7398 symxfrm="\\1 $ac_symprfx\\2 \\2"
7399
7400 # Write the raw and C identifiers.
7401 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7402 # Fake it for dumpbin and say T for any non-static function
7403 # and D for any global variable.
7404 # Also find C++ and __fastcall symbols from MSVC++,
7405 # which start with @ or ?.
7406 lt_cv_sys_global_symbol_pipe="$AWK '"\
7407 " {last_section=section; section=\$ 3};"\
7408 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7409 " \$ 0!~/External *\|/{next};"\
7410 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7411 " {if(hide[section]) next};"\
7412 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7413 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7414 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7415 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7416 " ' prfx=^$ac_symprfx"
7417 else
7418 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7419 fi
7420
7421 # Check to see that the pipe works correctly.
7422 pipe_works=no
7423
7424 rm -f conftest*
7425 cat > conftest.$ac_ext <<_LT_EOF
7426 #ifdef __cplusplus
7427 extern "C" {
7428 #endif
7429 char nm_test_var;
7430 void nm_test_func(void);
7431 void nm_test_func(void){}
7432 #ifdef __cplusplus
7433 }
7434 #endif
7435 int main(){nm_test_var='a';nm_test_func();return(0);}
7436 _LT_EOF
7437
7438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7439 (eval $ac_compile) 2>&5
7440 ac_status=$?
7441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7442 test $ac_status = 0; }; then
7443 # Now try to grab the symbols.
7444 nlist=conftest.nm
7445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7446 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7447 ac_status=$?
7448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7449 test $ac_status = 0; } && test -s "$nlist"; then
7450 # Try sorting and uniquifying the output.
7451 if sort "$nlist" | uniq > "$nlist"T; then
7452 mv -f "$nlist"T "$nlist"
7453 else
7454 rm -f "$nlist"T
7455 fi
7456
7457 # Make sure that we snagged all the symbols we need.
7458 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7459 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7460 cat <<_LT_EOF > conftest.$ac_ext
7461 #ifdef __cplusplus
7462 extern "C" {
7463 #endif
7464
7465 _LT_EOF
7466 # Now generate the symbol file.
7467 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7468
7469 cat <<_LT_EOF >> conftest.$ac_ext
7470
7471 /* The mapping between symbol names and symbols. */
7472 const struct {
7473 const char *name;
7474 void *address;
7475 }
7476 lt__PROGRAM__LTX_preloaded_symbols[] =
7477 {
7478 { "@PROGRAM@", (void *) 0 },
7479 _LT_EOF
7480 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7481 cat <<\_LT_EOF >> conftest.$ac_ext
7482 {0, (void *) 0}
7483 };
7484
7485 /* This works around a problem in FreeBSD linker */
7486 #ifdef FREEBSD_WORKAROUND
7487 static const void *lt_preloaded_setup() {
7488 return lt__PROGRAM__LTX_preloaded_symbols;
7489 }
7490 #endif
7491
7492 #ifdef __cplusplus
7493 }
7494 #endif
7495 _LT_EOF
7496 # Now try linking the two files.
7497 mv conftest.$ac_objext conftstm.$ac_objext
7498 lt_save_LIBS="$LIBS"
7499 lt_save_CFLAGS="$CFLAGS"
7500 LIBS="conftstm.$ac_objext"
7501 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7503 (eval $ac_link) 2>&5
7504 ac_status=$?
7505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7506 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7507 pipe_works=yes
7508 fi
7509 LIBS="$lt_save_LIBS"
7510 CFLAGS="$lt_save_CFLAGS"
7511 else
7512 echo "cannot find nm_test_func in $nlist" >&5
7513 fi
7514 else
7515 echo "cannot find nm_test_var in $nlist" >&5
7516 fi
7517 else
7518 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7519 fi
7520 else
7521 echo "$progname: failed program was:" >&5
7522 cat conftest.$ac_ext >&5
7523 fi
7524 rm -rf conftest* conftst*
7525
7526 # Do not use the global_symbol_pipe unless it works.
7527 if test "$pipe_works" = yes; then
7528 break
7529 else
7530 lt_cv_sys_global_symbol_pipe=
7531 fi
7532 done
7533
7534 fi
7535
7536 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7537 lt_cv_sys_global_symbol_to_cdecl=
7538 fi
7539 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7541 $as_echo "failed" >&6; }
7542 else
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7544 $as_echo "ok" >&6; }
7545 fi
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568 # Check whether --enable-libtool-lock was given.
7569 if test "${enable_libtool_lock+set}" = set; then :
7570 enableval=$enable_libtool_lock;
7571 fi
7572
7573 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7574
7575 # Some flags need to be propagated to the compiler or linker for good
7576 # libtool support.
7577 case $host in
7578 ia64-*-hpux*)
7579 # Find out which ABI we are using.
7580 echo 'int i;' > conftest.$ac_ext
7581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7582 (eval $ac_compile) 2>&5
7583 ac_status=$?
7584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7585 test $ac_status = 0; }; then
7586 case `/usr/bin/file conftest.$ac_objext` in
7587 *ELF-32*)
7588 HPUX_IA64_MODE="32"
7589 ;;
7590 *ELF-64*)
7591 HPUX_IA64_MODE="64"
7592 ;;
7593 esac
7594 fi
7595 rm -rf conftest*
7596 ;;
7597 *-*-irix6*)
7598 # Find out which ABI we are using.
7599 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7601 (eval $ac_compile) 2>&5
7602 ac_status=$?
7603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7604 test $ac_status = 0; }; then
7605 if test "$lt_cv_prog_gnu_ld" = yes; then
7606 case `/usr/bin/file conftest.$ac_objext` in
7607 *32-bit*)
7608 LD="${LD-ld} -melf32bsmip"
7609 ;;
7610 *N32*)
7611 LD="${LD-ld} -melf32bmipn32"
7612 ;;
7613 *64-bit*)
7614 LD="${LD-ld} -melf64bmip"
7615 ;;
7616 esac
7617 else
7618 case `/usr/bin/file conftest.$ac_objext` in
7619 *32-bit*)
7620 LD="${LD-ld} -32"
7621 ;;
7622 *N32*)
7623 LD="${LD-ld} -n32"
7624 ;;
7625 *64-bit*)
7626 LD="${LD-ld} -64"
7627 ;;
7628 esac
7629 fi
7630 fi
7631 rm -rf conftest*
7632 ;;
7633
7634 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7635 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7636 # Find out which ABI we are using.
7637 echo 'int i;' > conftest.$ac_ext
7638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7639 (eval $ac_compile) 2>&5
7640 ac_status=$?
7641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7642 test $ac_status = 0; }; then
7643 case `/usr/bin/file conftest.o` in
7644 *32-bit*)
7645 case $host in
7646 x86_64-*kfreebsd*-gnu)
7647 LD="${LD-ld} -m elf_i386_fbsd"
7648 ;;
7649 x86_64-*linux*)
7650 case `/usr/bin/file conftest.o` in
7651 *x86-64*)
7652 LD="${LD-ld} -m elf32_x86_64"
7653 ;;
7654 *)
7655 LD="${LD-ld} -m elf_i386"
7656 ;;
7657 esac
7658 ;;
7659 powerpc64le-*linux*)
7660 LD="${LD-ld} -m elf32lppclinux"
7661 ;;
7662 powerpc64-*linux*)
7663 LD="${LD-ld} -m elf32ppclinux"
7664 ;;
7665 s390x-*linux*)
7666 LD="${LD-ld} -m elf_s390"
7667 ;;
7668 sparc64-*linux*)
7669 LD="${LD-ld} -m elf32_sparc"
7670 ;;
7671 esac
7672 ;;
7673 *64-bit*)
7674 case $host in
7675 x86_64-*kfreebsd*-gnu)
7676 LD="${LD-ld} -m elf_x86_64_fbsd"
7677 ;;
7678 x86_64-*linux*)
7679 LD="${LD-ld} -m elf_x86_64"
7680 ;;
7681 powerpcle-*linux*)
7682 LD="${LD-ld} -m elf64lppc"
7683 ;;
7684 powerpc-*linux*)
7685 LD="${LD-ld} -m elf64ppc"
7686 ;;
7687 s390*-*linux*|s390*-*tpf*)
7688 LD="${LD-ld} -m elf64_s390"
7689 ;;
7690 sparc*-*linux*)
7691 LD="${LD-ld} -m elf64_sparc"
7692 ;;
7693 esac
7694 ;;
7695 esac
7696 fi
7697 rm -rf conftest*
7698 ;;
7699
7700 *-*-sco3.2v5*)
7701 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7702 SAVE_CFLAGS="$CFLAGS"
7703 CFLAGS="$CFLAGS -belf"
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7705 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7706 if ${lt_cv_cc_needs_belf+:} false; then :
7707 $as_echo_n "(cached) " >&6
7708 else
7709 ac_ext=c
7710 ac_cpp='$CPP $CPPFLAGS'
7711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7714
7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h. */
7717
7718 int
7719 main ()
7720 {
7721
7722 ;
7723 return 0;
7724 }
7725 _ACEOF
7726 if ac_fn_c_try_link "$LINENO"; then :
7727 lt_cv_cc_needs_belf=yes
7728 else
7729 lt_cv_cc_needs_belf=no
7730 fi
7731 rm -f core conftest.err conftest.$ac_objext \
7732 conftest$ac_exeext conftest.$ac_ext
7733 ac_ext=c
7734 ac_cpp='$CPP $CPPFLAGS'
7735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7738
7739 fi
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7741 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7742 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7743 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7744 CFLAGS="$SAVE_CFLAGS"
7745 fi
7746 ;;
7747 sparc*-*solaris*)
7748 # Find out which ABI we are using.
7749 echo 'int i;' > conftest.$ac_ext
7750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7751 (eval $ac_compile) 2>&5
7752 ac_status=$?
7753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7754 test $ac_status = 0; }; then
7755 case `/usr/bin/file conftest.o` in
7756 *64-bit*)
7757 case $lt_cv_prog_gnu_ld in
7758 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7759 *)
7760 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7761 LD="${LD-ld} -64"
7762 fi
7763 ;;
7764 esac
7765 ;;
7766 esac
7767 fi
7768 rm -rf conftest*
7769 ;;
7770 esac
7771
7772 need_locks="$enable_libtool_lock"
7773
7774
7775 case $host_os in
7776 rhapsody* | darwin*)
7777 if test -n "$ac_tool_prefix"; then
7778 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7779 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7781 $as_echo_n "checking for $ac_word... " >&6; }
7782 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7783 $as_echo_n "(cached) " >&6
7784 else
7785 if test -n "$DSYMUTIL"; then
7786 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7787 else
7788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789 for as_dir in $PATH
7790 do
7791 IFS=$as_save_IFS
7792 test -z "$as_dir" && as_dir=.
7793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7795 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 break 2
7798 fi
7799 done
7800 done
7801 IFS=$as_save_IFS
7802
7803 fi
7804 fi
7805 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7806 if test -n "$DSYMUTIL"; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7808 $as_echo "$DSYMUTIL" >&6; }
7809 else
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811 $as_echo "no" >&6; }
7812 fi
7813
7814
7815 fi
7816 if test -z "$ac_cv_prog_DSYMUTIL"; then
7817 ac_ct_DSYMUTIL=$DSYMUTIL
7818 # Extract the first word of "dsymutil", so it can be a program name with args.
7819 set dummy dsymutil; ac_word=$2
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7821 $as_echo_n "checking for $ac_word... " >&6; }
7822 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7823 $as_echo_n "(cached) " >&6
7824 else
7825 if test -n "$ac_ct_DSYMUTIL"; then
7826 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7827 else
7828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829 for as_dir in $PATH
7830 do
7831 IFS=$as_save_IFS
7832 test -z "$as_dir" && as_dir=.
7833 for ac_exec_ext in '' $ac_executable_extensions; do
7834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7835 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7837 break 2
7838 fi
7839 done
7840 done
7841 IFS=$as_save_IFS
7842
7843 fi
7844 fi
7845 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7846 if test -n "$ac_ct_DSYMUTIL"; then
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7848 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7849 else
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851 $as_echo "no" >&6; }
7852 fi
7853
7854 if test "x$ac_ct_DSYMUTIL" = x; then
7855 DSYMUTIL=":"
7856 else
7857 case $cross_compiling:$ac_tool_warned in
7858 yes:)
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7861 ac_tool_warned=yes ;;
7862 esac
7863 DSYMUTIL=$ac_ct_DSYMUTIL
7864 fi
7865 else
7866 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7867 fi
7868
7869 if test -n "$ac_tool_prefix"; then
7870 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7871 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7873 $as_echo_n "checking for $ac_word... " >&6; }
7874 if ${ac_cv_prog_NMEDIT+:} false; then :
7875 $as_echo_n "(cached) " >&6
7876 else
7877 if test -n "$NMEDIT"; then
7878 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7879 else
7880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7881 for as_dir in $PATH
7882 do
7883 IFS=$as_save_IFS
7884 test -z "$as_dir" && as_dir=.
7885 for ac_exec_ext in '' $ac_executable_extensions; do
7886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7887 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7889 break 2
7890 fi
7891 done
7892 done
7893 IFS=$as_save_IFS
7894
7895 fi
7896 fi
7897 NMEDIT=$ac_cv_prog_NMEDIT
7898 if test -n "$NMEDIT"; then
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7900 $as_echo "$NMEDIT" >&6; }
7901 else
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7903 $as_echo "no" >&6; }
7904 fi
7905
7906
7907 fi
7908 if test -z "$ac_cv_prog_NMEDIT"; then
7909 ac_ct_NMEDIT=$NMEDIT
7910 # Extract the first word of "nmedit", so it can be a program name with args.
7911 set dummy nmedit; ac_word=$2
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7913 $as_echo_n "checking for $ac_word... " >&6; }
7914 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7915 $as_echo_n "(cached) " >&6
7916 else
7917 if test -n "$ac_ct_NMEDIT"; then
7918 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7919 else
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 for as_dir in $PATH
7922 do
7923 IFS=$as_save_IFS
7924 test -z "$as_dir" && as_dir=.
7925 for ac_exec_ext in '' $ac_executable_extensions; do
7926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7927 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7929 break 2
7930 fi
7931 done
7932 done
7933 IFS=$as_save_IFS
7934
7935 fi
7936 fi
7937 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7938 if test -n "$ac_ct_NMEDIT"; then
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7940 $as_echo "$ac_ct_NMEDIT" >&6; }
7941 else
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943 $as_echo "no" >&6; }
7944 fi
7945
7946 if test "x$ac_ct_NMEDIT" = x; then
7947 NMEDIT=":"
7948 else
7949 case $cross_compiling:$ac_tool_warned in
7950 yes:)
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7953 ac_tool_warned=yes ;;
7954 esac
7955 NMEDIT=$ac_ct_NMEDIT
7956 fi
7957 else
7958 NMEDIT="$ac_cv_prog_NMEDIT"
7959 fi
7960
7961 if test -n "$ac_tool_prefix"; then
7962 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7963 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7965 $as_echo_n "checking for $ac_word... " >&6; }
7966 if ${ac_cv_prog_LIPO+:} false; then :
7967 $as_echo_n "(cached) " >&6
7968 else
7969 if test -n "$LIPO"; then
7970 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7971 else
7972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973 for as_dir in $PATH
7974 do
7975 IFS=$as_save_IFS
7976 test -z "$as_dir" && as_dir=.
7977 for ac_exec_ext in '' $ac_executable_extensions; do
7978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7979 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 break 2
7982 fi
7983 done
7984 done
7985 IFS=$as_save_IFS
7986
7987 fi
7988 fi
7989 LIPO=$ac_cv_prog_LIPO
7990 if test -n "$LIPO"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7992 $as_echo "$LIPO" >&6; }
7993 else
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7996 fi
7997
7998
7999 fi
8000 if test -z "$ac_cv_prog_LIPO"; then
8001 ac_ct_LIPO=$LIPO
8002 # Extract the first word of "lipo", so it can be a program name with args.
8003 set dummy lipo; ac_word=$2
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8005 $as_echo_n "checking for $ac_word... " >&6; }
8006 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8007 $as_echo_n "(cached) " >&6
8008 else
8009 if test -n "$ac_ct_LIPO"; then
8010 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8011 else
8012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013 for as_dir in $PATH
8014 do
8015 IFS=$as_save_IFS
8016 test -z "$as_dir" && as_dir=.
8017 for ac_exec_ext in '' $ac_executable_extensions; do
8018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8019 ac_cv_prog_ac_ct_LIPO="lipo"
8020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8021 break 2
8022 fi
8023 done
8024 done
8025 IFS=$as_save_IFS
8026
8027 fi
8028 fi
8029 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8030 if test -n "$ac_ct_LIPO"; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8032 $as_echo "$ac_ct_LIPO" >&6; }
8033 else
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035 $as_echo "no" >&6; }
8036 fi
8037
8038 if test "x$ac_ct_LIPO" = x; then
8039 LIPO=":"
8040 else
8041 case $cross_compiling:$ac_tool_warned in
8042 yes:)
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8045 ac_tool_warned=yes ;;
8046 esac
8047 LIPO=$ac_ct_LIPO
8048 fi
8049 else
8050 LIPO="$ac_cv_prog_LIPO"
8051 fi
8052
8053 if test -n "$ac_tool_prefix"; then
8054 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8055 set dummy ${ac_tool_prefix}otool; ac_word=$2
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057 $as_echo_n "checking for $ac_word... " >&6; }
8058 if ${ac_cv_prog_OTOOL+:} false; then :
8059 $as_echo_n "(cached) " >&6
8060 else
8061 if test -n "$OTOOL"; then
8062 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8063 else
8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065 for as_dir in $PATH
8066 do
8067 IFS=$as_save_IFS
8068 test -z "$as_dir" && as_dir=.
8069 for ac_exec_ext in '' $ac_executable_extensions; do
8070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8071 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 break 2
8074 fi
8075 done
8076 done
8077 IFS=$as_save_IFS
8078
8079 fi
8080 fi
8081 OTOOL=$ac_cv_prog_OTOOL
8082 if test -n "$OTOOL"; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8084 $as_echo "$OTOOL" >&6; }
8085 else
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8087 $as_echo "no" >&6; }
8088 fi
8089
8090
8091 fi
8092 if test -z "$ac_cv_prog_OTOOL"; then
8093 ac_ct_OTOOL=$OTOOL
8094 # Extract the first word of "otool", so it can be a program name with args.
8095 set dummy otool; ac_word=$2
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8097 $as_echo_n "checking for $ac_word... " >&6; }
8098 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8099 $as_echo_n "(cached) " >&6
8100 else
8101 if test -n "$ac_ct_OTOOL"; then
8102 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8103 else
8104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105 for as_dir in $PATH
8106 do
8107 IFS=$as_save_IFS
8108 test -z "$as_dir" && as_dir=.
8109 for ac_exec_ext in '' $ac_executable_extensions; do
8110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8111 ac_cv_prog_ac_ct_OTOOL="otool"
8112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8113 break 2
8114 fi
8115 done
8116 done
8117 IFS=$as_save_IFS
8118
8119 fi
8120 fi
8121 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8122 if test -n "$ac_ct_OTOOL"; then
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8124 $as_echo "$ac_ct_OTOOL" >&6; }
8125 else
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8127 $as_echo "no" >&6; }
8128 fi
8129
8130 if test "x$ac_ct_OTOOL" = x; then
8131 OTOOL=":"
8132 else
8133 case $cross_compiling:$ac_tool_warned in
8134 yes:)
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8137 ac_tool_warned=yes ;;
8138 esac
8139 OTOOL=$ac_ct_OTOOL
8140 fi
8141 else
8142 OTOOL="$ac_cv_prog_OTOOL"
8143 fi
8144
8145 if test -n "$ac_tool_prefix"; then
8146 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8147 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8149 $as_echo_n "checking for $ac_word... " >&6; }
8150 if ${ac_cv_prog_OTOOL64+:} false; then :
8151 $as_echo_n "(cached) " >&6
8152 else
8153 if test -n "$OTOOL64"; then
8154 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8155 else
8156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8157 for as_dir in $PATH
8158 do
8159 IFS=$as_save_IFS
8160 test -z "$as_dir" && as_dir=.
8161 for ac_exec_ext in '' $ac_executable_extensions; do
8162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8163 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8165 break 2
8166 fi
8167 done
8168 done
8169 IFS=$as_save_IFS
8170
8171 fi
8172 fi
8173 OTOOL64=$ac_cv_prog_OTOOL64
8174 if test -n "$OTOOL64"; then
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8176 $as_echo "$OTOOL64" >&6; }
8177 else
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8179 $as_echo "no" >&6; }
8180 fi
8181
8182
8183 fi
8184 if test -z "$ac_cv_prog_OTOOL64"; then
8185 ac_ct_OTOOL64=$OTOOL64
8186 # Extract the first word of "otool64", so it can be a program name with args.
8187 set dummy otool64; ac_word=$2
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8189 $as_echo_n "checking for $ac_word... " >&6; }
8190 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8191 $as_echo_n "(cached) " >&6
8192 else
8193 if test -n "$ac_ct_OTOOL64"; then
8194 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8195 else
8196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197 for as_dir in $PATH
8198 do
8199 IFS=$as_save_IFS
8200 test -z "$as_dir" && as_dir=.
8201 for ac_exec_ext in '' $ac_executable_extensions; do
8202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8203 ac_cv_prog_ac_ct_OTOOL64="otool64"
8204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8205 break 2
8206 fi
8207 done
8208 done
8209 IFS=$as_save_IFS
8210
8211 fi
8212 fi
8213 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8214 if test -n "$ac_ct_OTOOL64"; then
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8216 $as_echo "$ac_ct_OTOOL64" >&6; }
8217 else
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8219 $as_echo "no" >&6; }
8220 fi
8221
8222 if test "x$ac_ct_OTOOL64" = x; then
8223 OTOOL64=":"
8224 else
8225 case $cross_compiling:$ac_tool_warned in
8226 yes:)
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8229 ac_tool_warned=yes ;;
8230 esac
8231 OTOOL64=$ac_ct_OTOOL64
8232 fi
8233 else
8234 OTOOL64="$ac_cv_prog_OTOOL64"
8235 fi
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8264 $as_echo_n "checking for -single_module linker flag... " >&6; }
8265 if ${lt_cv_apple_cc_single_mod+:} false; then :
8266 $as_echo_n "(cached) " >&6
8267 else
8268 lt_cv_apple_cc_single_mod=no
8269 if test -z "${LT_MULTI_MODULE}"; then
8270 # By default we will add the -single_module flag. You can override
8271 # by either setting the environment variable LT_MULTI_MODULE
8272 # non-empty at configure time, or by adding -multi_module to the
8273 # link flags.
8274 rm -rf libconftest.dylib*
8275 echo "int foo(void){return 1;}" > conftest.c
8276 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8277 -dynamiclib -Wl,-single_module conftest.c" >&5
8278 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8279 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8280 _lt_result=$?
8281 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8282 lt_cv_apple_cc_single_mod=yes
8283 else
8284 cat conftest.err >&5
8285 fi
8286 rm -rf libconftest.dylib*
8287 rm -f conftest.*
8288 fi
8289 fi
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8291 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8293 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8294 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8295 $as_echo_n "(cached) " >&6
8296 else
8297 lt_cv_ld_exported_symbols_list=no
8298 save_LDFLAGS=$LDFLAGS
8299 echo "_main" > conftest.sym
8300 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8303
8304 int
8305 main ()
8306 {
8307
8308 ;
8309 return 0;
8310 }
8311 _ACEOF
8312 if ac_fn_c_try_link "$LINENO"; then :
8313 lt_cv_ld_exported_symbols_list=yes
8314 else
8315 lt_cv_ld_exported_symbols_list=no
8316 fi
8317 rm -f core conftest.err conftest.$ac_objext \
8318 conftest$ac_exeext conftest.$ac_ext
8319 LDFLAGS="$save_LDFLAGS"
8320
8321 fi
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8323 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8325 $as_echo_n "checking for -force_load linker flag... " >&6; }
8326 if ${lt_cv_ld_force_load+:} false; then :
8327 $as_echo_n "(cached) " >&6
8328 else
8329 lt_cv_ld_force_load=no
8330 cat > conftest.c << _LT_EOF
8331 int forced_loaded() { return 2;}
8332 _LT_EOF
8333 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8334 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8335 echo "$AR cru libconftest.a conftest.o" >&5
8336 $AR cru libconftest.a conftest.o 2>&5
8337 cat > conftest.c << _LT_EOF
8338 int main() { return 0;}
8339 _LT_EOF
8340 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8341 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8342 _lt_result=$?
8343 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8344 lt_cv_ld_force_load=yes
8345 else
8346 cat conftest.err >&5
8347 fi
8348 rm -f conftest.err libconftest.a conftest conftest.c
8349 rm -rf conftest.dSYM
8350
8351 fi
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8353 $as_echo "$lt_cv_ld_force_load" >&6; }
8354 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8355 # build without first building modern cctools / linker.
8356 case $host_cpu-$host_os in
8357 *-rhapsody* | *-darwin1.[012])
8358 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8359 *-darwin1.*)
8360 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8361 *-darwin*)
8362 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8363 # deployment target is forced to an earlier version.
8364 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8365 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8366 ;;
8367 10.[012][,.]*)
8368 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8369 ;;
8370 *)
8371 ;;
8372 esac
8373 ;;
8374 esac
8375 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8376 _lt_dar_single_mod='$single_module'
8377 fi
8378 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8379 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8380 else
8381 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8382 fi
8383 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8384 _lt_dsymutil='~$DSYMUTIL $lib || :'
8385 else
8386 _lt_dsymutil=
8387 fi
8388 ;;
8389 esac
8390
8391 for ac_header in dlfcn.h
8392 do :
8393 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8394 "
8395 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8396 cat >>confdefs.h <<_ACEOF
8397 #define HAVE_DLFCN_H 1
8398 _ACEOF
8399
8400 fi
8401
8402 done
8403
8404
8405
8406
8407
8408
8409 # Set options
8410
8411
8412
8413 enable_dlopen=no
8414
8415
8416 enable_win32_dll=no
8417
8418
8419 # Check whether --enable-shared was given.
8420 if test "${enable_shared+set}" = set; then :
8421 enableval=$enable_shared; p=${PACKAGE-default}
8422 case $enableval in
8423 yes) enable_shared=yes ;;
8424 no) enable_shared=no ;;
8425 *)
8426 enable_shared=no
8427 # Look at the argument we got. We use all the common list separators.
8428 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8429 for pkg in $enableval; do
8430 IFS="$lt_save_ifs"
8431 if test "X$pkg" = "X$p"; then
8432 enable_shared=yes
8433 fi
8434 done
8435 IFS="$lt_save_ifs"
8436 ;;
8437 esac
8438 else
8439 enable_shared=yes
8440 fi
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450 # Check whether --enable-static was given.
8451 if test "${enable_static+set}" = set; then :
8452 enableval=$enable_static; p=${PACKAGE-default}
8453 case $enableval in
8454 yes) enable_static=yes ;;
8455 no) enable_static=no ;;
8456 *)
8457 enable_static=no
8458 # Look at the argument we got. We use all the common list separators.
8459 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8460 for pkg in $enableval; do
8461 IFS="$lt_save_ifs"
8462 if test "X$pkg" = "X$p"; then
8463 enable_static=yes
8464 fi
8465 done
8466 IFS="$lt_save_ifs"
8467 ;;
8468 esac
8469 else
8470 enable_static=yes
8471 fi
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482 # Check whether --with-pic was given.
8483 if test "${with_pic+set}" = set; then :
8484 withval=$with_pic; pic_mode="$withval"
8485 else
8486 pic_mode=default
8487 fi
8488
8489
8490 test -z "$pic_mode" && pic_mode=default
8491
8492
8493
8494
8495
8496
8497
8498 # Check whether --enable-fast-install was given.
8499 if test "${enable_fast_install+set}" = set; then :
8500 enableval=$enable_fast_install; p=${PACKAGE-default}
8501 case $enableval in
8502 yes) enable_fast_install=yes ;;
8503 no) enable_fast_install=no ;;
8504 *)
8505 enable_fast_install=no
8506 # Look at the argument we got. We use all the common list separators.
8507 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8508 for pkg in $enableval; do
8509 IFS="$lt_save_ifs"
8510 if test "X$pkg" = "X$p"; then
8511 enable_fast_install=yes
8512 fi
8513 done
8514 IFS="$lt_save_ifs"
8515 ;;
8516 esac
8517 else
8518 enable_fast_install=yes
8519 fi
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531 # This can be used to rebuild libtool when needed
8532 LIBTOOL_DEPS="$ltmain"
8533
8534 # Always use our own libtool.
8535 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562 test -z "$LN_S" && LN_S="ln -s"
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577 if test -n "${ZSH_VERSION+set}" ; then
8578 setopt NO_GLOB_SUBST
8579 fi
8580
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8582 $as_echo_n "checking for objdir... " >&6; }
8583 if ${lt_cv_objdir+:} false; then :
8584 $as_echo_n "(cached) " >&6
8585 else
8586 rm -f .libs 2>/dev/null
8587 mkdir .libs 2>/dev/null
8588 if test -d .libs; then
8589 lt_cv_objdir=.libs
8590 else
8591 # MS-DOS does not allow filenames that begin with a dot.
8592 lt_cv_objdir=_libs
8593 fi
8594 rmdir .libs 2>/dev/null
8595 fi
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8597 $as_echo "$lt_cv_objdir" >&6; }
8598 objdir=$lt_cv_objdir
8599
8600
8601
8602
8603
8604 cat >>confdefs.h <<_ACEOF
8605 #define LT_OBJDIR "$lt_cv_objdir/"
8606 _ACEOF
8607
8608
8609
8610
8611 case $host_os in
8612 aix3*)
8613 # AIX sometimes has problems with the GCC collect2 program. For some
8614 # reason, if we set the COLLECT_NAMES environment variable, the problems
8615 # vanish in a puff of smoke.
8616 if test "X${COLLECT_NAMES+set}" != Xset; then
8617 COLLECT_NAMES=
8618 export COLLECT_NAMES
8619 fi
8620 ;;
8621 esac
8622
8623 # Global variables:
8624 ofile=libtool
8625 can_build_shared=yes
8626
8627 # All known linkers require a `.a' archive for static linking (except MSVC,
8628 # which needs '.lib').
8629 libext=a
8630
8631 with_gnu_ld="$lt_cv_prog_gnu_ld"
8632
8633 old_CC="$CC"
8634 old_CFLAGS="$CFLAGS"
8635
8636 # Set sane defaults for various variables
8637 test -z "$CC" && CC=cc
8638 test -z "$LTCC" && LTCC=$CC
8639 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8640 test -z "$LD" && LD=ld
8641 test -z "$ac_objext" && ac_objext=o
8642
8643 for cc_temp in $compiler""; do
8644 case $cc_temp in
8645 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8646 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8647 \-*) ;;
8648 *) break;;
8649 esac
8650 done
8651 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8652
8653
8654 # Only perform the check for file, if the check method requires it
8655 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8656 case $deplibs_check_method in
8657 file_magic*)
8658 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8660 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8661 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8662 $as_echo_n "(cached) " >&6
8663 else
8664 case $MAGIC_CMD in
8665 [\\/*] | ?:[\\/]*)
8666 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8667 ;;
8668 *)
8669 lt_save_MAGIC_CMD="$MAGIC_CMD"
8670 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8671 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8672 for ac_dir in $ac_dummy; do
8673 IFS="$lt_save_ifs"
8674 test -z "$ac_dir" && ac_dir=.
8675 if test -f $ac_dir/${ac_tool_prefix}file; then
8676 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8677 if test -n "$file_magic_test_file"; then
8678 case $deplibs_check_method in
8679 "file_magic "*)
8680 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8681 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8682 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8683 $EGREP "$file_magic_regex" > /dev/null; then
8684 :
8685 else
8686 cat <<_LT_EOF 1>&2
8687
8688 *** Warning: the command libtool uses to detect shared libraries,
8689 *** $file_magic_cmd, produces output that libtool cannot recognize.
8690 *** The result is that libtool may fail to recognize shared libraries
8691 *** as such. This will affect the creation of libtool libraries that
8692 *** depend on shared libraries, but programs linked with such libtool
8693 *** libraries will work regardless of this problem. Nevertheless, you
8694 *** may want to report the problem to your system manager and/or to
8695 *** bug-libtool@gnu.org
8696
8697 _LT_EOF
8698 fi ;;
8699 esac
8700 fi
8701 break
8702 fi
8703 done
8704 IFS="$lt_save_ifs"
8705 MAGIC_CMD="$lt_save_MAGIC_CMD"
8706 ;;
8707 esac
8708 fi
8709
8710 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8711 if test -n "$MAGIC_CMD"; then
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8713 $as_echo "$MAGIC_CMD" >&6; }
8714 else
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8716 $as_echo "no" >&6; }
8717 fi
8718
8719
8720
8721
8722
8723 if test -z "$lt_cv_path_MAGIC_CMD"; then
8724 if test -n "$ac_tool_prefix"; then
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8726 $as_echo_n "checking for file... " >&6; }
8727 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8728 $as_echo_n "(cached) " >&6
8729 else
8730 case $MAGIC_CMD in
8731 [\\/*] | ?:[\\/]*)
8732 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8733 ;;
8734 *)
8735 lt_save_MAGIC_CMD="$MAGIC_CMD"
8736 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8737 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8738 for ac_dir in $ac_dummy; do
8739 IFS="$lt_save_ifs"
8740 test -z "$ac_dir" && ac_dir=.
8741 if test -f $ac_dir/file; then
8742 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8743 if test -n "$file_magic_test_file"; then
8744 case $deplibs_check_method in
8745 "file_magic "*)
8746 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8747 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8748 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8749 $EGREP "$file_magic_regex" > /dev/null; then
8750 :
8751 else
8752 cat <<_LT_EOF 1>&2
8753
8754 *** Warning: the command libtool uses to detect shared libraries,
8755 *** $file_magic_cmd, produces output that libtool cannot recognize.
8756 *** The result is that libtool may fail to recognize shared libraries
8757 *** as such. This will affect the creation of libtool libraries that
8758 *** depend on shared libraries, but programs linked with such libtool
8759 *** libraries will work regardless of this problem. Nevertheless, you
8760 *** may want to report the problem to your system manager and/or to
8761 *** bug-libtool@gnu.org
8762
8763 _LT_EOF
8764 fi ;;
8765 esac
8766 fi
8767 break
8768 fi
8769 done
8770 IFS="$lt_save_ifs"
8771 MAGIC_CMD="$lt_save_MAGIC_CMD"
8772 ;;
8773 esac
8774 fi
8775
8776 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8777 if test -n "$MAGIC_CMD"; then
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8779 $as_echo "$MAGIC_CMD" >&6; }
8780 else
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8782 $as_echo "no" >&6; }
8783 fi
8784
8785
8786 else
8787 MAGIC_CMD=:
8788 fi
8789 fi
8790
8791 fi
8792 ;;
8793 esac
8794
8795 # Use C for the default configuration in the libtool script
8796
8797 lt_save_CC="$CC"
8798 ac_ext=c
8799 ac_cpp='$CPP $CPPFLAGS'
8800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8803
8804
8805 # Source file extension for C test sources.
8806 ac_ext=c
8807
8808 # Object file extension for compiled C test sources.
8809 objext=o
8810 objext=$objext
8811
8812 # Code to be used in simple compile tests
8813 lt_simple_compile_test_code="int some_variable = 0;"
8814
8815 # Code to be used in simple link tests
8816 lt_simple_link_test_code='int main(){return(0);}'
8817
8818
8819
8820
8821
8822
8823
8824 # If no C compiler was specified, use CC.
8825 LTCC=${LTCC-"$CC"}
8826
8827 # If no C compiler flags were specified, use CFLAGS.
8828 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8829
8830 # Allow CC to be a program name with arguments.
8831 compiler=$CC
8832
8833 # Save the default compiler, since it gets overwritten when the other
8834 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8835 compiler_DEFAULT=$CC
8836
8837 # save warnings/boilerplate of simple test code
8838 ac_outfile=conftest.$ac_objext
8839 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8840 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8841 _lt_compiler_boilerplate=`cat conftest.err`
8842 $RM conftest*
8843
8844 ac_outfile=conftest.$ac_objext
8845 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8846 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8847 _lt_linker_boilerplate=`cat conftest.err`
8848 $RM -r conftest*
8849
8850
8851 ## CAVEAT EMPTOR:
8852 ## There is no encapsulation within the following macros, do not change
8853 ## the running order or otherwise move them around unless you know exactly
8854 ## what you are doing...
8855 if test -n "$compiler"; then
8856
8857 lt_prog_compiler_no_builtin_flag=
8858
8859 if test "$GCC" = yes; then
8860 case $cc_basename in
8861 nvcc*)
8862 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8863 *)
8864 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8865 esac
8866
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8868 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8869 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8870 $as_echo_n "(cached) " >&6
8871 else
8872 lt_cv_prog_compiler_rtti_exceptions=no
8873 ac_outfile=conftest.$ac_objext
8874 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8875 lt_compiler_flag="-fno-rtti -fno-exceptions"
8876 # Insert the option either (1) after the last *FLAGS variable, or
8877 # (2) before a word containing "conftest.", or (3) at the end.
8878 # Note that $ac_compile itself does not contain backslashes and begins
8879 # with a dollar sign (not a hyphen), so the echo should work correctly.
8880 # The option is referenced via a variable to avoid confusing sed.
8881 lt_compile=`echo "$ac_compile" | $SED \
8882 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8884 -e 's:$: $lt_compiler_flag:'`
8885 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8886 (eval "$lt_compile" 2>conftest.err)
8887 ac_status=$?
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 if (exit $ac_status) && test -s "$ac_outfile"; then
8891 # The compiler can only warn and ignore the option if not recognized
8892 # So say no if there are warnings other than the usual output.
8893 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8894 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8895 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8896 lt_cv_prog_compiler_rtti_exceptions=yes
8897 fi
8898 fi
8899 $RM conftest*
8900
8901 fi
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8903 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8904
8905 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8906 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8907 else
8908 :
8909 fi
8910
8911 fi
8912
8913
8914
8915
8916
8917
8918 lt_prog_compiler_wl=
8919 lt_prog_compiler_pic=
8920 lt_prog_compiler_static=
8921
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8923 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8924
8925 if test "$GCC" = yes; then
8926 lt_prog_compiler_wl='-Wl,'
8927 lt_prog_compiler_static='-static'
8928
8929 case $host_os in
8930 aix*)
8931 # All AIX code is PIC.
8932 if test "$host_cpu" = ia64; then
8933 # AIX 5 now supports IA64 processor
8934 lt_prog_compiler_static='-Bstatic'
8935 fi
8936 lt_prog_compiler_pic='-fPIC'
8937 ;;
8938
8939 amigaos*)
8940 case $host_cpu in
8941 powerpc)
8942 # see comment about AmigaOS4 .so support
8943 lt_prog_compiler_pic='-fPIC'
8944 ;;
8945 m68k)
8946 # FIXME: we need at least 68020 code to build shared libraries, but
8947 # adding the `-m68020' flag to GCC prevents building anything better,
8948 # like `-m68040'.
8949 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8950 ;;
8951 esac
8952 ;;
8953
8954 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8955 # PIC is the default for these OSes.
8956 ;;
8957
8958 mingw* | cygwin* | pw32* | os2* | cegcc*)
8959 # This hack is so that the source file can tell whether it is being
8960 # built for inclusion in a dll (and should export symbols for example).
8961 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8962 # (--disable-auto-import) libraries
8963 lt_prog_compiler_pic='-DDLL_EXPORT'
8964 ;;
8965
8966 darwin* | rhapsody*)
8967 # PIC is the default on this platform
8968 # Common symbols not allowed in MH_DYLIB files
8969 lt_prog_compiler_pic='-fno-common'
8970 ;;
8971
8972 haiku*)
8973 # PIC is the default for Haiku.
8974 # The "-static" flag exists, but is broken.
8975 lt_prog_compiler_static=
8976 ;;
8977
8978 hpux*)
8979 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8980 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8981 # sets the default TLS model and affects inlining.
8982 case $host_cpu in
8983 hppa*64*)
8984 # +Z the default
8985 ;;
8986 *)
8987 lt_prog_compiler_pic='-fPIC'
8988 ;;
8989 esac
8990 ;;
8991
8992 interix[3-9]*)
8993 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8994 # Instead, we relocate shared libraries at runtime.
8995 ;;
8996
8997 msdosdjgpp*)
8998 # Just because we use GCC doesn't mean we suddenly get shared libraries
8999 # on systems that don't support them.
9000 lt_prog_compiler_can_build_shared=no
9001 enable_shared=no
9002 ;;
9003
9004 *nto* | *qnx*)
9005 # QNX uses GNU C++, but need to define -shared option too, otherwise
9006 # it will coredump.
9007 lt_prog_compiler_pic='-fPIC -shared'
9008 ;;
9009
9010 sysv4*MP*)
9011 if test -d /usr/nec; then
9012 lt_prog_compiler_pic=-Kconform_pic
9013 fi
9014 ;;
9015
9016 *)
9017 lt_prog_compiler_pic='-fPIC'
9018 ;;
9019 esac
9020
9021 case $cc_basename in
9022 nvcc*) # Cuda Compiler Driver 2.2
9023 lt_prog_compiler_wl='-Xlinker '
9024 lt_prog_compiler_pic='-Xcompiler -fPIC'
9025 ;;
9026 esac
9027 else
9028 # PORTME Check for flag to pass linker flags through the system compiler.
9029 case $host_os in
9030 aix*)
9031 lt_prog_compiler_wl='-Wl,'
9032 if test "$host_cpu" = ia64; then
9033 # AIX 5 now supports IA64 processor
9034 lt_prog_compiler_static='-Bstatic'
9035 else
9036 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9037 fi
9038 ;;
9039
9040 mingw* | cygwin* | pw32* | os2* | cegcc*)
9041 # This hack is so that the source file can tell whether it is being
9042 # built for inclusion in a dll (and should export symbols for example).
9043 lt_prog_compiler_pic='-DDLL_EXPORT'
9044 ;;
9045
9046 hpux9* | hpux10* | hpux11*)
9047 lt_prog_compiler_wl='-Wl,'
9048 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9049 # not for PA HP-UX.
9050 case $host_cpu in
9051 hppa*64*|ia64*)
9052 # +Z the default
9053 ;;
9054 *)
9055 lt_prog_compiler_pic='+Z'
9056 ;;
9057 esac
9058 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9059 lt_prog_compiler_static='${wl}-a ${wl}archive'
9060 ;;
9061
9062 irix5* | irix6* | nonstopux*)
9063 lt_prog_compiler_wl='-Wl,'
9064 # PIC (with -KPIC) is the default.
9065 lt_prog_compiler_static='-non_shared'
9066 ;;
9067
9068 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9069 case $cc_basename in
9070 # old Intel for x86_64 which still supported -KPIC.
9071 ecc*)
9072 lt_prog_compiler_wl='-Wl,'
9073 lt_prog_compiler_pic='-KPIC'
9074 lt_prog_compiler_static='-static'
9075 ;;
9076 # icc used to be incompatible with GCC.
9077 # ICC 10 doesn't accept -KPIC any more.
9078 icc* | ifort*)
9079 lt_prog_compiler_wl='-Wl,'
9080 lt_prog_compiler_pic='-fPIC'
9081 lt_prog_compiler_static='-static'
9082 ;;
9083 # Lahey Fortran 8.1.
9084 lf95*)
9085 lt_prog_compiler_wl='-Wl,'
9086 lt_prog_compiler_pic='--shared'
9087 lt_prog_compiler_static='--static'
9088 ;;
9089 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9090 # Portland Group compilers (*not* the Pentium gcc compiler,
9091 # which looks to be a dead project)
9092 lt_prog_compiler_wl='-Wl,'
9093 lt_prog_compiler_pic='-fpic'
9094 lt_prog_compiler_static='-Bstatic'
9095 ;;
9096 ccc*)
9097 lt_prog_compiler_wl='-Wl,'
9098 # All Alpha code is PIC.
9099 lt_prog_compiler_static='-non_shared'
9100 ;;
9101 xl* | bgxl* | bgf* | mpixl*)
9102 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9103 lt_prog_compiler_wl='-Wl,'
9104 lt_prog_compiler_pic='-qpic'
9105 lt_prog_compiler_static='-qstaticlink'
9106 ;;
9107 *)
9108 case `$CC -V 2>&1 | sed 5q` in
9109 *Sun\ F* | *Sun*Fortran*)
9110 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9111 lt_prog_compiler_pic='-KPIC'
9112 lt_prog_compiler_static='-Bstatic'
9113 lt_prog_compiler_wl=''
9114 ;;
9115 *Sun\ C*)
9116 # Sun C 5.9
9117 lt_prog_compiler_pic='-KPIC'
9118 lt_prog_compiler_static='-Bstatic'
9119 lt_prog_compiler_wl='-Wl,'
9120 ;;
9121 esac
9122 ;;
9123 esac
9124 ;;
9125
9126 newsos6)
9127 lt_prog_compiler_pic='-KPIC'
9128 lt_prog_compiler_static='-Bstatic'
9129 ;;
9130
9131 *nto* | *qnx*)
9132 # QNX uses GNU C++, but need to define -shared option too, otherwise
9133 # it will coredump.
9134 lt_prog_compiler_pic='-fPIC -shared'
9135 ;;
9136
9137 osf3* | osf4* | osf5*)
9138 lt_prog_compiler_wl='-Wl,'
9139 # All OSF/1 code is PIC.
9140 lt_prog_compiler_static='-non_shared'
9141 ;;
9142
9143 rdos*)
9144 lt_prog_compiler_static='-non_shared'
9145 ;;
9146
9147 solaris*)
9148 lt_prog_compiler_pic='-KPIC'
9149 lt_prog_compiler_static='-Bstatic'
9150 case $cc_basename in
9151 f77* | f90* | f95*)
9152 lt_prog_compiler_wl='-Qoption ld ';;
9153 *)
9154 lt_prog_compiler_wl='-Wl,';;
9155 esac
9156 ;;
9157
9158 sunos4*)
9159 lt_prog_compiler_wl='-Qoption ld '
9160 lt_prog_compiler_pic='-PIC'
9161 lt_prog_compiler_static='-Bstatic'
9162 ;;
9163
9164 sysv4 | sysv4.2uw2* | sysv4.3*)
9165 lt_prog_compiler_wl='-Wl,'
9166 lt_prog_compiler_pic='-KPIC'
9167 lt_prog_compiler_static='-Bstatic'
9168 ;;
9169
9170 sysv4*MP*)
9171 if test -d /usr/nec ;then
9172 lt_prog_compiler_pic='-Kconform_pic'
9173 lt_prog_compiler_static='-Bstatic'
9174 fi
9175 ;;
9176
9177 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9178 lt_prog_compiler_wl='-Wl,'
9179 lt_prog_compiler_pic='-KPIC'
9180 lt_prog_compiler_static='-Bstatic'
9181 ;;
9182
9183 unicos*)
9184 lt_prog_compiler_wl='-Wl,'
9185 lt_prog_compiler_can_build_shared=no
9186 ;;
9187
9188 uts4*)
9189 lt_prog_compiler_pic='-pic'
9190 lt_prog_compiler_static='-Bstatic'
9191 ;;
9192
9193 *)
9194 lt_prog_compiler_can_build_shared=no
9195 ;;
9196 esac
9197 fi
9198
9199 case $host_os in
9200 # For platforms which do not support PIC, -DPIC is meaningless:
9201 *djgpp*)
9202 lt_prog_compiler_pic=
9203 ;;
9204 *)
9205 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9206 ;;
9207 esac
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9209 $as_echo "$lt_prog_compiler_pic" >&6; }
9210
9211
9212
9213
9214
9215
9216 #
9217 # Check to make sure the PIC flag actually works.
9218 #
9219 if test -n "$lt_prog_compiler_pic"; then
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9221 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9222 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9223 $as_echo_n "(cached) " >&6
9224 else
9225 lt_cv_prog_compiler_pic_works=no
9226 ac_outfile=conftest.$ac_objext
9227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9228 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9229 # Insert the option either (1) after the last *FLAGS variable, or
9230 # (2) before a word containing "conftest.", or (3) at the end.
9231 # Note that $ac_compile itself does not contain backslashes and begins
9232 # with a dollar sign (not a hyphen), so the echo should work correctly.
9233 # The option is referenced via a variable to avoid confusing sed.
9234 lt_compile=`echo "$ac_compile" | $SED \
9235 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9237 -e 's:$: $lt_compiler_flag:'`
9238 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9239 (eval "$lt_compile" 2>conftest.err)
9240 ac_status=$?
9241 cat conftest.err >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 if (exit $ac_status) && test -s "$ac_outfile"; then
9244 # The compiler can only warn and ignore the option if not recognized
9245 # So say no if there are warnings other than the usual output.
9246 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9247 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9248 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9249 lt_cv_prog_compiler_pic_works=yes
9250 fi
9251 fi
9252 $RM conftest*
9253
9254 fi
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9256 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9257
9258 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9259 case $lt_prog_compiler_pic in
9260 "" | " "*) ;;
9261 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9262 esac
9263 else
9264 lt_prog_compiler_pic=
9265 lt_prog_compiler_can_build_shared=no
9266 fi
9267
9268 fi
9269
9270
9271
9272
9273
9274
9275 #
9276 # Check to make sure the static flag actually works.
9277 #
9278 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9280 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9281 if ${lt_cv_prog_compiler_static_works+:} false; then :
9282 $as_echo_n "(cached) " >&6
9283 else
9284 lt_cv_prog_compiler_static_works=no
9285 save_LDFLAGS="$LDFLAGS"
9286 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9287 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9288 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9289 # The linker can only warn and ignore the option if not recognized
9290 # So say no if there are warnings
9291 if test -s conftest.err; then
9292 # Append any errors to the config.log.
9293 cat conftest.err 1>&5
9294 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9295 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9296 if diff conftest.exp conftest.er2 >/dev/null; then
9297 lt_cv_prog_compiler_static_works=yes
9298 fi
9299 else
9300 lt_cv_prog_compiler_static_works=yes
9301 fi
9302 fi
9303 $RM -r conftest*
9304 LDFLAGS="$save_LDFLAGS"
9305
9306 fi
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9308 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9309
9310 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9311 :
9312 else
9313 lt_prog_compiler_static=
9314 fi
9315
9316
9317
9318
9319
9320
9321
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9323 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9324 if ${lt_cv_prog_compiler_c_o+:} false; then :
9325 $as_echo_n "(cached) " >&6
9326 else
9327 lt_cv_prog_compiler_c_o=no
9328 $RM -r conftest 2>/dev/null
9329 mkdir conftest
9330 cd conftest
9331 mkdir out
9332 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9333
9334 lt_compiler_flag="-o out/conftest2.$ac_objext"
9335 # Insert the option either (1) after the last *FLAGS variable, or
9336 # (2) before a word containing "conftest.", or (3) at the end.
9337 # Note that $ac_compile itself does not contain backslashes and begins
9338 # with a dollar sign (not a hyphen), so the echo should work correctly.
9339 lt_compile=`echo "$ac_compile" | $SED \
9340 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9341 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9342 -e 's:$: $lt_compiler_flag:'`
9343 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9344 (eval "$lt_compile" 2>out/conftest.err)
9345 ac_status=$?
9346 cat out/conftest.err >&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9349 then
9350 # The compiler can only warn and ignore the option if not recognized
9351 # So say no if there are warnings
9352 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9353 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9354 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9355 lt_cv_prog_compiler_c_o=yes
9356 fi
9357 fi
9358 chmod u+w . 2>&5
9359 $RM conftest*
9360 # SGI C++ compiler will create directory out/ii_files/ for
9361 # template instantiation
9362 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9363 $RM out/* && rmdir out
9364 cd ..
9365 $RM -r conftest
9366 $RM conftest*
9367
9368 fi
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9370 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9371
9372
9373
9374
9375
9376
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9378 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9379 if ${lt_cv_prog_compiler_c_o+:} false; then :
9380 $as_echo_n "(cached) " >&6
9381 else
9382 lt_cv_prog_compiler_c_o=no
9383 $RM -r conftest 2>/dev/null
9384 mkdir conftest
9385 cd conftest
9386 mkdir out
9387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9388
9389 lt_compiler_flag="-o out/conftest2.$ac_objext"
9390 # Insert the option either (1) after the last *FLAGS variable, or
9391 # (2) before a word containing "conftest.", or (3) at the end.
9392 # Note that $ac_compile itself does not contain backslashes and begins
9393 # with a dollar sign (not a hyphen), so the echo should work correctly.
9394 lt_compile=`echo "$ac_compile" | $SED \
9395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9397 -e 's:$: $lt_compiler_flag:'`
9398 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9399 (eval "$lt_compile" 2>out/conftest.err)
9400 ac_status=$?
9401 cat out/conftest.err >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9404 then
9405 # The compiler can only warn and ignore the option if not recognized
9406 # So say no if there are warnings
9407 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9408 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9409 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9410 lt_cv_prog_compiler_c_o=yes
9411 fi
9412 fi
9413 chmod u+w . 2>&5
9414 $RM conftest*
9415 # SGI C++ compiler will create directory out/ii_files/ for
9416 # template instantiation
9417 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9418 $RM out/* && rmdir out
9419 cd ..
9420 $RM -r conftest
9421 $RM conftest*
9422
9423 fi
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9425 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9426
9427
9428
9429
9430 hard_links="nottested"
9431 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9432 # do not overwrite the value of need_locks provided by the user
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9434 $as_echo_n "checking if we can lock with hard links... " >&6; }
9435 hard_links=yes
9436 $RM conftest*
9437 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9438 touch conftest.a
9439 ln conftest.a conftest.b 2>&5 || hard_links=no
9440 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9442 $as_echo "$hard_links" >&6; }
9443 if test "$hard_links" = no; then
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9445 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9446 need_locks=warn
9447 fi
9448 else
9449 need_locks=no
9450 fi
9451
9452
9453
9454
9455
9456
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9458 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9459
9460 runpath_var=
9461 allow_undefined_flag=
9462 always_export_symbols=no
9463 archive_cmds=
9464 archive_expsym_cmds=
9465 compiler_needs_object=no
9466 enable_shared_with_static_runtimes=no
9467 export_dynamic_flag_spec=
9468 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9469 hardcode_automatic=no
9470 hardcode_direct=no
9471 hardcode_direct_absolute=no
9472 hardcode_libdir_flag_spec=
9473 hardcode_libdir_flag_spec_ld=
9474 hardcode_libdir_separator=
9475 hardcode_minus_L=no
9476 hardcode_shlibpath_var=unsupported
9477 inherit_rpath=no
9478 link_all_deplibs=unknown
9479 module_cmds=
9480 module_expsym_cmds=
9481 old_archive_from_new_cmds=
9482 old_archive_from_expsyms_cmds=
9483 thread_safe_flag_spec=
9484 whole_archive_flag_spec=
9485 # include_expsyms should be a list of space-separated symbols to be *always*
9486 # included in the symbol list
9487 include_expsyms=
9488 # exclude_expsyms can be an extended regexp of symbols to exclude
9489 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9490 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9491 # as well as any symbol that contains `d'.
9492 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9493 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9494 # platforms (ab)use it in PIC code, but their linkers get confused if
9495 # the symbol is explicitly referenced. Since portable code cannot
9496 # rely on this symbol name, it's probably fine to never include it in
9497 # preloaded symbol tables.
9498 # Exclude shared library initialization/finalization symbols.
9499 extract_expsyms_cmds=
9500
9501 case $host_os in
9502 cygwin* | mingw* | pw32* | cegcc*)
9503 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9504 # When not using gcc, we currently assume that we are using
9505 # Microsoft Visual C++.
9506 if test "$GCC" != yes; then
9507 with_gnu_ld=no
9508 fi
9509 ;;
9510 interix*)
9511 # we just hope/assume this is gcc and not c89 (= MSVC++)
9512 with_gnu_ld=yes
9513 ;;
9514 openbsd*)
9515 with_gnu_ld=no
9516 ;;
9517 esac
9518
9519 ld_shlibs=yes
9520
9521 # On some targets, GNU ld is compatible enough with the native linker
9522 # that we're better off using the native interface for both.
9523 lt_use_gnu_ld_interface=no
9524 if test "$with_gnu_ld" = yes; then
9525 case $host_os in
9526 aix*)
9527 # The AIX port of GNU ld has always aspired to compatibility
9528 # with the native linker. However, as the warning in the GNU ld
9529 # block says, versions before 2.19.5* couldn't really create working
9530 # shared libraries, regardless of the interface used.
9531 case `$LD -v 2>&1` in
9532 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9533 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9534 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9535 *)
9536 lt_use_gnu_ld_interface=yes
9537 ;;
9538 esac
9539 ;;
9540 *)
9541 lt_use_gnu_ld_interface=yes
9542 ;;
9543 esac
9544 fi
9545
9546 if test "$lt_use_gnu_ld_interface" = yes; then
9547 # If archive_cmds runs LD, not CC, wlarc should be empty
9548 wlarc='${wl}'
9549
9550 # Set some defaults for GNU ld with shared library support. These
9551 # are reset later if shared libraries are not supported. Putting them
9552 # here allows them to be overridden if necessary.
9553 runpath_var=LD_RUN_PATH
9554 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9555 export_dynamic_flag_spec='${wl}--export-dynamic'
9556 # ancient GNU ld didn't support --whole-archive et. al.
9557 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9558 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9559 else
9560 whole_archive_flag_spec=
9561 fi
9562 supports_anon_versioning=no
9563 case `$LD -v 2>&1` in
9564 *GNU\ gold*) supports_anon_versioning=yes ;;
9565 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9566 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9567 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9568 *\ 2.11.*) ;; # other 2.11 versions
9569 *) supports_anon_versioning=yes ;;
9570 esac
9571
9572 # See if GNU ld supports shared libraries.
9573 case $host_os in
9574 aix[3-9]*)
9575 # On AIX/PPC, the GNU linker is very broken
9576 if test "$host_cpu" != ia64; then
9577 ld_shlibs=no
9578 cat <<_LT_EOF 1>&2
9579
9580 *** Warning: the GNU linker, at least up to release 2.19, is reported
9581 *** to be unable to reliably create shared libraries on AIX.
9582 *** Therefore, libtool is disabling shared libraries support. If you
9583 *** really care for shared libraries, you may want to install binutils
9584 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9585 *** You will then need to restart the configuration process.
9586
9587 _LT_EOF
9588 fi
9589 ;;
9590
9591 amigaos*)
9592 case $host_cpu in
9593 powerpc)
9594 # see comment about AmigaOS4 .so support
9595 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9596 archive_expsym_cmds=''
9597 ;;
9598 m68k)
9599 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)'
9600 hardcode_libdir_flag_spec='-L$libdir'
9601 hardcode_minus_L=yes
9602 ;;
9603 esac
9604 ;;
9605
9606 beos*)
9607 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9608 allow_undefined_flag=unsupported
9609 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9610 # support --undefined. This deserves some investigation. FIXME
9611 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9612 else
9613 ld_shlibs=no
9614 fi
9615 ;;
9616
9617 cygwin* | mingw* | pw32* | cegcc*)
9618 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9619 # as there is no search path for DLLs.
9620 hardcode_libdir_flag_spec='-L$libdir'
9621 export_dynamic_flag_spec='${wl}--export-all-symbols'
9622 allow_undefined_flag=unsupported
9623 always_export_symbols=no
9624 enable_shared_with_static_runtimes=yes
9625 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9626
9627 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9629 # If the export-symbols file already is a .def file (1st line
9630 # is EXPORTS), use it as is; otherwise, prepend...
9631 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9632 cp $export_symbols $output_objdir/$soname.def;
9633 else
9634 echo EXPORTS > $output_objdir/$soname.def;
9635 cat $export_symbols >> $output_objdir/$soname.def;
9636 fi~
9637 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9638 else
9639 ld_shlibs=no
9640 fi
9641 ;;
9642
9643 haiku*)
9644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9645 link_all_deplibs=yes
9646 ;;
9647
9648 interix[3-9]*)
9649 hardcode_direct=no
9650 hardcode_shlibpath_var=no
9651 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9652 export_dynamic_flag_spec='${wl}-E'
9653 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9654 # Instead, shared libraries are loaded at an image base (0x10000000 by
9655 # default) and relocated if they conflict, which is a slow very memory
9656 # consuming and fragmenting process. To avoid this, we pick a random,
9657 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9658 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9659 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9660 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'
9661 ;;
9662
9663 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9664 tmp_diet=no
9665 if test "$host_os" = linux-dietlibc; then
9666 case $cc_basename in
9667 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9668 esac
9669 fi
9670 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9671 && test "$tmp_diet" = no
9672 then
9673 tmp_addflag=' $pic_flag'
9674 tmp_sharedflag='-shared'
9675 case $cc_basename,$host_cpu in
9676 pgcc*) # Portland Group C compiler
9677 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'
9678 tmp_addflag=' $pic_flag'
9679 ;;
9680 pgf77* | pgf90* | pgf95* | pgfortran*)
9681 # Portland Group f77 and f90 compilers
9682 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'
9683 tmp_addflag=' $pic_flag -Mnomain' ;;
9684 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9685 tmp_addflag=' -i_dynamic' ;;
9686 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9687 tmp_addflag=' -i_dynamic -nofor_main' ;;
9688 ifc* | ifort*) # Intel Fortran compiler
9689 tmp_addflag=' -nofor_main' ;;
9690 lf95*) # Lahey Fortran 8.1
9691 whole_archive_flag_spec=
9692 tmp_sharedflag='--shared' ;;
9693 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9694 tmp_sharedflag='-qmkshrobj'
9695 tmp_addflag= ;;
9696 nvcc*) # Cuda Compiler Driver 2.2
9697 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'
9698 compiler_needs_object=yes
9699 ;;
9700 esac
9701 case `$CC -V 2>&1 | sed 5q` in
9702 *Sun\ C*) # Sun C 5.9
9703 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'
9704 compiler_needs_object=yes
9705 tmp_sharedflag='-G' ;;
9706 *Sun\ F*) # Sun Fortran 8.3
9707 tmp_sharedflag='-G' ;;
9708 esac
9709 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9710
9711 if test "x$supports_anon_versioning" = xyes; then
9712 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9713 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9714 echo "local: *; };" >> $output_objdir/$libname.ver~
9715 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9716 fi
9717
9718 case $cc_basename in
9719 xlf* | bgf* | bgxlf* | mpixlf*)
9720 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9721 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9722 hardcode_libdir_flag_spec=
9723 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9724 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9725 if test "x$supports_anon_versioning" = xyes; then
9726 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9727 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9728 echo "local: *; };" >> $output_objdir/$libname.ver~
9729 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9730 fi
9731 ;;
9732 esac
9733 else
9734 ld_shlibs=no
9735 fi
9736 ;;
9737
9738 netbsd*)
9739 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9740 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9741 wlarc=
9742 else
9743 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9744 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9745 fi
9746 ;;
9747
9748 solaris*)
9749 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9750 ld_shlibs=no
9751 cat <<_LT_EOF 1>&2
9752
9753 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9754 *** create shared libraries on Solaris systems. Therefore, libtool
9755 *** is disabling shared libraries support. We urge you to upgrade GNU
9756 *** binutils to release 2.9.1 or newer. Another option is to modify
9757 *** your PATH or compiler configuration so that the native linker is
9758 *** used, and then restart.
9759
9760 _LT_EOF
9761 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9762 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9763 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9764 else
9765 ld_shlibs=no
9766 fi
9767 ;;
9768
9769 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9770 case `$LD -v 2>&1` in
9771 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9772 ld_shlibs=no
9773 cat <<_LT_EOF 1>&2
9774
9775 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9776 *** reliably create shared libraries on SCO systems. Therefore, libtool
9777 *** is disabling shared libraries support. We urge you to upgrade GNU
9778 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9779 *** your PATH or compiler configuration so that the native linker is
9780 *** used, and then restart.
9781
9782 _LT_EOF
9783 ;;
9784 *)
9785 # For security reasons, it is highly recommended that you always
9786 # use absolute paths for naming shared libraries, and exclude the
9787 # DT_RUNPATH tag from executables and libraries. But doing so
9788 # requires that you compile everything twice, which is a pain.
9789 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9791 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9792 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9793 else
9794 ld_shlibs=no
9795 fi
9796 ;;
9797 esac
9798 ;;
9799
9800 sunos4*)
9801 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9802 wlarc=
9803 hardcode_direct=yes
9804 hardcode_shlibpath_var=no
9805 ;;
9806
9807 *)
9808 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9810 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9811 else
9812 ld_shlibs=no
9813 fi
9814 ;;
9815 esac
9816
9817 if test "$ld_shlibs" = no; then
9818 runpath_var=
9819 hardcode_libdir_flag_spec=
9820 export_dynamic_flag_spec=
9821 whole_archive_flag_spec=
9822 fi
9823 else
9824 # PORTME fill in a description of your system's linker (not GNU ld)
9825 case $host_os in
9826 aix3*)
9827 allow_undefined_flag=unsupported
9828 always_export_symbols=yes
9829 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'
9830 # Note: this linker hardcodes the directories in LIBPATH if there
9831 # are no directories specified by -L.
9832 hardcode_minus_L=yes
9833 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9834 # Neither direct hardcoding nor static linking is supported with a
9835 # broken collect2.
9836 hardcode_direct=unsupported
9837 fi
9838 ;;
9839
9840 aix[4-9]*)
9841 if test "$host_cpu" = ia64; then
9842 # On IA64, the linker does run time linking by default, so we don't
9843 # have to do anything special.
9844 aix_use_runtimelinking=no
9845 exp_sym_flag='-Bexport'
9846 no_entry_flag=""
9847 else
9848 # If we're using GNU nm, then we don't want the "-C" option.
9849 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9850 # Also, AIX nm treats weak defined symbols like other global
9851 # defined symbols, whereas GNU nm marks them as "W".
9852 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9853 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'
9854 else
9855 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'
9856 fi
9857 aix_use_runtimelinking=no
9858
9859 # Test if we are trying to use run time linking or normal
9860 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9861 # need to do runtime linking.
9862 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9863 for ld_flag in $LDFLAGS; do
9864 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9865 aix_use_runtimelinking=yes
9866 break
9867 fi
9868 done
9869 ;;
9870 esac
9871
9872 exp_sym_flag='-bexport'
9873 no_entry_flag='-bnoentry'
9874 fi
9875
9876 # When large executables or shared objects are built, AIX ld can
9877 # have problems creating the table of contents. If linking a library
9878 # or program results in "error TOC overflow" add -mminimal-toc to
9879 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9880 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9881
9882 archive_cmds=''
9883 hardcode_direct=yes
9884 hardcode_direct_absolute=yes
9885 hardcode_libdir_separator=':'
9886 link_all_deplibs=yes
9887 file_list_spec='${wl}-f,'
9888
9889 if test "$GCC" = yes; then
9890 case $host_os in aix4.[012]|aix4.[012].*)
9891 # We only want to do this on AIX 4.2 and lower, the check
9892 # below for broken collect2 doesn't work under 4.3+
9893 collect2name=`${CC} -print-prog-name=collect2`
9894 if test -f "$collect2name" &&
9895 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9896 then
9897 # We have reworked collect2
9898 :
9899 else
9900 # We have old collect2
9901 hardcode_direct=unsupported
9902 # It fails to find uninstalled libraries when the uninstalled
9903 # path is not listed in the libpath. Setting hardcode_minus_L
9904 # to unsupported forces relinking
9905 hardcode_minus_L=yes
9906 hardcode_libdir_flag_spec='-L$libdir'
9907 hardcode_libdir_separator=
9908 fi
9909 ;;
9910 esac
9911 shared_flag='-shared'
9912 if test "$aix_use_runtimelinking" = yes; then
9913 shared_flag="$shared_flag "'${wl}-G'
9914 fi
9915 else
9916 # not using gcc
9917 if test "$host_cpu" = ia64; then
9918 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9919 # chokes on -Wl,-G. The following line is correct:
9920 shared_flag='-G'
9921 else
9922 if test "$aix_use_runtimelinking" = yes; then
9923 shared_flag='${wl}-G'
9924 else
9925 shared_flag='${wl}-bM:SRE'
9926 fi
9927 fi
9928 fi
9929
9930 export_dynamic_flag_spec='${wl}-bexpall'
9931 # It seems that -bexpall does not export symbols beginning with
9932 # underscore (_), so it is better to generate a list of symbols to export.
9933 always_export_symbols=yes
9934 if test "$aix_use_runtimelinking" = yes; then
9935 # Warning - without using the other runtime loading flags (-brtl),
9936 # -berok will link without error, but may produce a broken library.
9937 allow_undefined_flag='-berok'
9938 # Determine the default libpath from the value encoded in an
9939 # empty executable.
9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h. */
9942
9943 int
9944 main ()
9945 {
9946
9947 ;
9948 return 0;
9949 }
9950 _ACEOF
9951 if ac_fn_c_try_link "$LINENO"; then :
9952
9953 lt_aix_libpath_sed='
9954 /Import File Strings/,/^$/ {
9955 /^0/ {
9956 s/^0 *\(.*\)$/\1/
9957 p
9958 }
9959 }'
9960 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9961 # Check for a 64-bit object if we didn't find anything.
9962 if test -z "$aix_libpath"; then
9963 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9964 fi
9965 fi
9966 rm -f core conftest.err conftest.$ac_objext \
9967 conftest$ac_exeext conftest.$ac_ext
9968 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9969
9970 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9971 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"
9972 else
9973 if test "$host_cpu" = ia64; then
9974 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9975 allow_undefined_flag="-z nodefs"
9976 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"
9977 else
9978 # Determine the default libpath from the value encoded in an
9979 # empty executable.
9980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9981 /* end confdefs.h. */
9982
9983 int
9984 main ()
9985 {
9986
9987 ;
9988 return 0;
9989 }
9990 _ACEOF
9991 if ac_fn_c_try_link "$LINENO"; then :
9992
9993 lt_aix_libpath_sed='
9994 /Import File Strings/,/^$/ {
9995 /^0/ {
9996 s/^0 *\(.*\)$/\1/
9997 p
9998 }
9999 }'
10000 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10001 # Check for a 64-bit object if we didn't find anything.
10002 if test -z "$aix_libpath"; then
10003 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10004 fi
10005 fi
10006 rm -f core conftest.err conftest.$ac_objext \
10007 conftest$ac_exeext conftest.$ac_ext
10008 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10009
10010 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10011 # Warning - without using the other run time loading flags,
10012 # -berok will link without error, but may produce a broken library.
10013 no_undefined_flag=' ${wl}-bernotok'
10014 allow_undefined_flag=' ${wl}-berok'
10015 if test "$with_gnu_ld" = yes; then
10016 # We only use this code for GNU lds that support --whole-archive.
10017 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10018 else
10019 # Exported symbols can be pulled into shared objects from archives
10020 whole_archive_flag_spec='$convenience'
10021 fi
10022 archive_cmds_need_lc=yes
10023 # This is similar to how AIX traditionally builds its shared libraries.
10024 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'
10025 fi
10026 fi
10027 ;;
10028
10029 amigaos*)
10030 case $host_cpu in
10031 powerpc)
10032 # see comment about AmigaOS4 .so support
10033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10034 archive_expsym_cmds=''
10035 ;;
10036 m68k)
10037 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)'
10038 hardcode_libdir_flag_spec='-L$libdir'
10039 hardcode_minus_L=yes
10040 ;;
10041 esac
10042 ;;
10043
10044 bsdi[45]*)
10045 export_dynamic_flag_spec=-rdynamic
10046 ;;
10047
10048 cygwin* | mingw* | pw32* | cegcc*)
10049 # When not using gcc, we currently assume that we are using
10050 # Microsoft Visual C++.
10051 # hardcode_libdir_flag_spec is actually meaningless, as there is
10052 # no search path for DLLs.
10053 hardcode_libdir_flag_spec=' '
10054 allow_undefined_flag=unsupported
10055 # Tell ltmain to make .lib files, not .a files.
10056 libext=lib
10057 # Tell ltmain to make .dll files, not .so files.
10058 shrext_cmds=".dll"
10059 # FIXME: Setting linknames here is a bad hack.
10060 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10061 # The linker will automatically build a .lib file if we build a DLL.
10062 old_archive_from_new_cmds='true'
10063 # FIXME: Should let the user specify the lib program.
10064 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10065 fix_srcfile_path='`cygpath -w "$srcfile"`'
10066 enable_shared_with_static_runtimes=yes
10067 ;;
10068
10069 darwin* | rhapsody*)
10070
10071
10072 archive_cmds_need_lc=no
10073 hardcode_direct=no
10074 hardcode_automatic=yes
10075 hardcode_shlibpath_var=unsupported
10076 if test "$lt_cv_ld_force_load" = "yes"; then
10077 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\"`'
10078 else
10079 whole_archive_flag_spec=''
10080 fi
10081 link_all_deplibs=yes
10082 allow_undefined_flag="$_lt_dar_allow_undefined"
10083 case $cc_basename in
10084 ifort*) _lt_dar_can_shared=yes ;;
10085 *) _lt_dar_can_shared=$GCC ;;
10086 esac
10087 if test "$_lt_dar_can_shared" = "yes"; then
10088 output_verbose_link_cmd=func_echo_all
10089 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10090 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10091 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}"
10092 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}"
10093
10094 else
10095 ld_shlibs=no
10096 fi
10097
10098 ;;
10099
10100 dgux*)
10101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10102 hardcode_libdir_flag_spec='-L$libdir'
10103 hardcode_shlibpath_var=no
10104 ;;
10105
10106 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10107 # support. Future versions do this automatically, but an explicit c++rt0.o
10108 # does not break anything, and helps significantly (at the cost of a little
10109 # extra space).
10110 freebsd2.2*)
10111 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10112 hardcode_libdir_flag_spec='-R$libdir'
10113 hardcode_direct=yes
10114 hardcode_shlibpath_var=no
10115 ;;
10116
10117 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10118 freebsd2.*)
10119 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10120 hardcode_direct=yes
10121 hardcode_minus_L=yes
10122 hardcode_shlibpath_var=no
10123 ;;
10124
10125 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10126 freebsd* | dragonfly*)
10127 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10128 hardcode_libdir_flag_spec='-R$libdir'
10129 hardcode_direct=yes
10130 hardcode_shlibpath_var=no
10131 ;;
10132
10133 hpux9*)
10134 if test "$GCC" = yes; then
10135 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'
10136 else
10137 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'
10138 fi
10139 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10140 hardcode_libdir_separator=:
10141 hardcode_direct=yes
10142
10143 # hardcode_minus_L: Not really in the search PATH,
10144 # but as the default location of the library.
10145 hardcode_minus_L=yes
10146 export_dynamic_flag_spec='${wl}-E'
10147 ;;
10148
10149 hpux10*)
10150 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10151 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10152 else
10153 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10154 fi
10155 if test "$with_gnu_ld" = no; then
10156 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10157 hardcode_libdir_flag_spec_ld='+b $libdir'
10158 hardcode_libdir_separator=:
10159 hardcode_direct=yes
10160 hardcode_direct_absolute=yes
10161 export_dynamic_flag_spec='${wl}-E'
10162 # hardcode_minus_L: Not really in the search PATH,
10163 # but as the default location of the library.
10164 hardcode_minus_L=yes
10165 fi
10166 ;;
10167
10168 hpux11*)
10169 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10170 case $host_cpu in
10171 hppa*64*)
10172 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10173 ;;
10174 ia64*)
10175 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10176 ;;
10177 *)
10178 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10179 ;;
10180 esac
10181 else
10182 case $host_cpu in
10183 hppa*64*)
10184 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10185 ;;
10186 ia64*)
10187 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10188 ;;
10189 *)
10190
10191 # Older versions of the 11.00 compiler do not understand -b yet
10192 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10194 $as_echo_n "checking if $CC understands -b... " >&6; }
10195 if ${lt_cv_prog_compiler__b+:} false; then :
10196 $as_echo_n "(cached) " >&6
10197 else
10198 lt_cv_prog_compiler__b=no
10199 save_LDFLAGS="$LDFLAGS"
10200 LDFLAGS="$LDFLAGS -b"
10201 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10202 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10203 # The linker can only warn and ignore the option if not recognized
10204 # So say no if there are warnings
10205 if test -s conftest.err; then
10206 # Append any errors to the config.log.
10207 cat conftest.err 1>&5
10208 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10209 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10210 if diff conftest.exp conftest.er2 >/dev/null; then
10211 lt_cv_prog_compiler__b=yes
10212 fi
10213 else
10214 lt_cv_prog_compiler__b=yes
10215 fi
10216 fi
10217 $RM -r conftest*
10218 LDFLAGS="$save_LDFLAGS"
10219
10220 fi
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10222 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10223
10224 if test x"$lt_cv_prog_compiler__b" = xyes; then
10225 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10226 else
10227 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10228 fi
10229
10230 ;;
10231 esac
10232 fi
10233 if test "$with_gnu_ld" = no; then
10234 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10235 hardcode_libdir_separator=:
10236
10237 case $host_cpu in
10238 hppa*64*|ia64*)
10239 hardcode_direct=no
10240 hardcode_shlibpath_var=no
10241 ;;
10242 *)
10243 hardcode_direct=yes
10244 hardcode_direct_absolute=yes
10245 export_dynamic_flag_spec='${wl}-E'
10246
10247 # hardcode_minus_L: Not really in the search PATH,
10248 # but as the default location of the library.
10249 hardcode_minus_L=yes
10250 ;;
10251 esac
10252 fi
10253 ;;
10254
10255 irix5* | irix6* | nonstopux*)
10256 if test "$GCC" = yes; then
10257 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'
10258 # Try to use the -exported_symbol ld option, if it does not
10259 # work, assume that -exports_file does not work either and
10260 # implicitly export all symbols.
10261 save_LDFLAGS="$LDFLAGS"
10262 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10264 /* end confdefs.h. */
10265 int foo(void) {}
10266 _ACEOF
10267 if ac_fn_c_try_link "$LINENO"; then :
10268 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'
10269
10270 fi
10271 rm -f core conftest.err conftest.$ac_objext \
10272 conftest$ac_exeext conftest.$ac_ext
10273 LDFLAGS="$save_LDFLAGS"
10274 else
10275 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'
10276 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'
10277 fi
10278 archive_cmds_need_lc='no'
10279 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10280 hardcode_libdir_separator=:
10281 inherit_rpath=yes
10282 link_all_deplibs=yes
10283 ;;
10284
10285 netbsd*)
10286 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10287 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10288 else
10289 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10290 fi
10291 hardcode_libdir_flag_spec='-R$libdir'
10292 hardcode_direct=yes
10293 hardcode_shlibpath_var=no
10294 ;;
10295
10296 newsos6)
10297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10298 hardcode_direct=yes
10299 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10300 hardcode_libdir_separator=:
10301 hardcode_shlibpath_var=no
10302 ;;
10303
10304 *nto* | *qnx*)
10305 ;;
10306
10307 openbsd*)
10308 if test -f /usr/libexec/ld.so; then
10309 hardcode_direct=yes
10310 hardcode_shlibpath_var=no
10311 hardcode_direct_absolute=yes
10312 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10313 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10314 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10315 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10316 export_dynamic_flag_spec='${wl}-E'
10317 else
10318 case $host_os in
10319 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10320 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10321 hardcode_libdir_flag_spec='-R$libdir'
10322 ;;
10323 *)
10324 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10325 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10326 ;;
10327 esac
10328 fi
10329 else
10330 ld_shlibs=no
10331 fi
10332 ;;
10333
10334 os2*)
10335 hardcode_libdir_flag_spec='-L$libdir'
10336 hardcode_minus_L=yes
10337 allow_undefined_flag=unsupported
10338 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'
10339 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10340 ;;
10341
10342 osf3*)
10343 if test "$GCC" = yes; then
10344 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10345 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'
10346 else
10347 allow_undefined_flag=' -expect_unresolved \*'
10348 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'
10349 fi
10350 archive_cmds_need_lc='no'
10351 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10352 hardcode_libdir_separator=:
10353 ;;
10354
10355 osf4* | osf5*) # as osf3* with the addition of -msym flag
10356 if test "$GCC" = yes; then
10357 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10358 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'
10359 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10360 else
10361 allow_undefined_flag=' -expect_unresolved \*'
10362 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'
10363 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~
10364 $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'
10365
10366 # Both c and cxx compiler support -rpath directly
10367 hardcode_libdir_flag_spec='-rpath $libdir'
10368 fi
10369 archive_cmds_need_lc='no'
10370 hardcode_libdir_separator=:
10371 ;;
10372
10373 solaris*)
10374 no_undefined_flag=' -z defs'
10375 if test "$GCC" = yes; then
10376 wlarc='${wl}'
10377 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10378 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10379 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10380 else
10381 case `$CC -V 2>&1` in
10382 *"Compilers 5.0"*)
10383 wlarc=''
10384 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10385 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10386 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10387 ;;
10388 *)
10389 wlarc='${wl}'
10390 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10391 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10392 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10393 ;;
10394 esac
10395 fi
10396 hardcode_libdir_flag_spec='-R$libdir'
10397 hardcode_shlibpath_var=no
10398 case $host_os in
10399 solaris2.[0-5] | solaris2.[0-5].*) ;;
10400 *)
10401 # The compiler driver will combine and reorder linker options,
10402 # but understands `-z linker_flag'. GCC discards it without `$wl',
10403 # but is careful enough not to reorder.
10404 # Supported since Solaris 2.6 (maybe 2.5.1?)
10405 if test "$GCC" = yes; then
10406 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10407 else
10408 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10409 fi
10410 ;;
10411 esac
10412 link_all_deplibs=yes
10413 ;;
10414
10415 sunos4*)
10416 if test "x$host_vendor" = xsequent; then
10417 # Use $CC to link under sequent, because it throws in some extra .o
10418 # files that make .init and .fini sections work.
10419 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10420 else
10421 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10422 fi
10423 hardcode_libdir_flag_spec='-L$libdir'
10424 hardcode_direct=yes
10425 hardcode_minus_L=yes
10426 hardcode_shlibpath_var=no
10427 ;;
10428
10429 sysv4)
10430 case $host_vendor in
10431 sni)
10432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10433 hardcode_direct=yes # is this really true???
10434 ;;
10435 siemens)
10436 ## LD is ld it makes a PLAMLIB
10437 ## CC just makes a GrossModule.
10438 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10439 reload_cmds='$CC -r -o $output$reload_objs'
10440 hardcode_direct=no
10441 ;;
10442 motorola)
10443 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10444 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10445 ;;
10446 esac
10447 runpath_var='LD_RUN_PATH'
10448 hardcode_shlibpath_var=no
10449 ;;
10450
10451 sysv4.3*)
10452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10453 hardcode_shlibpath_var=no
10454 export_dynamic_flag_spec='-Bexport'
10455 ;;
10456
10457 sysv4*MP*)
10458 if test -d /usr/nec; then
10459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10460 hardcode_shlibpath_var=no
10461 runpath_var=LD_RUN_PATH
10462 hardcode_runpath_var=yes
10463 ld_shlibs=yes
10464 fi
10465 ;;
10466
10467 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10468 no_undefined_flag='${wl}-z,text'
10469 archive_cmds_need_lc=no
10470 hardcode_shlibpath_var=no
10471 runpath_var='LD_RUN_PATH'
10472
10473 if test "$GCC" = yes; then
10474 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10475 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10476 else
10477 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10478 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10479 fi
10480 ;;
10481
10482 sysv5* | sco3.2v5* | sco5v6*)
10483 # Note: We can NOT use -z defs as we might desire, because we do not
10484 # link with -lc, and that would cause any symbols used from libc to
10485 # always be unresolved, which means just about no library would
10486 # ever link correctly. If we're not using GNU ld we use -z text
10487 # though, which does catch some bad symbols but isn't as heavy-handed
10488 # as -z defs.
10489 no_undefined_flag='${wl}-z,text'
10490 allow_undefined_flag='${wl}-z,nodefs'
10491 archive_cmds_need_lc=no
10492 hardcode_shlibpath_var=no
10493 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10494 hardcode_libdir_separator=':'
10495 link_all_deplibs=yes
10496 export_dynamic_flag_spec='${wl}-Bexport'
10497 runpath_var='LD_RUN_PATH'
10498
10499 if test "$GCC" = yes; then
10500 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10501 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10502 else
10503 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10504 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10505 fi
10506 ;;
10507
10508 uts4*)
10509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10510 hardcode_libdir_flag_spec='-L$libdir'
10511 hardcode_shlibpath_var=no
10512 ;;
10513
10514 *)
10515 ld_shlibs=no
10516 ;;
10517 esac
10518
10519 if test x$host_vendor = xsni; then
10520 case $host in
10521 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10522 export_dynamic_flag_spec='${wl}-Blargedynsym'
10523 ;;
10524 esac
10525 fi
10526 fi
10527
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10529 $as_echo "$ld_shlibs" >&6; }
10530 test "$ld_shlibs" = no && can_build_shared=no
10531
10532 with_gnu_ld=$with_gnu_ld
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548 #
10549 # Do we need to explicitly link libc?
10550 #
10551 case "x$archive_cmds_need_lc" in
10552 x|xyes)
10553 # Assume -lc should be added
10554 archive_cmds_need_lc=yes
10555
10556 if test "$enable_shared" = yes && test "$GCC" = yes; then
10557 case $archive_cmds in
10558 *'~'*)
10559 # FIXME: we may have to deal with multi-command sequences.
10560 ;;
10561 '$CC '*)
10562 # Test whether the compiler implicitly links with -lc since on some
10563 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10564 # to ld, don't add -lc before -lgcc.
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10566 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10567 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10568 $as_echo_n "(cached) " >&6
10569 else
10570 $RM conftest*
10571 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10572
10573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10574 (eval $ac_compile) 2>&5
10575 ac_status=$?
10576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10577 test $ac_status = 0; } 2>conftest.err; then
10578 soname=conftest
10579 lib=conftest
10580 libobjs=conftest.$ac_objext
10581 deplibs=
10582 wl=$lt_prog_compiler_wl
10583 pic_flag=$lt_prog_compiler_pic
10584 compiler_flags=-v
10585 linker_flags=-v
10586 verstring=
10587 output_objdir=.
10588 libname=conftest
10589 lt_save_allow_undefined_flag=$allow_undefined_flag
10590 allow_undefined_flag=
10591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10592 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10593 ac_status=$?
10594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10595 test $ac_status = 0; }
10596 then
10597 lt_cv_archive_cmds_need_lc=no
10598 else
10599 lt_cv_archive_cmds_need_lc=yes
10600 fi
10601 allow_undefined_flag=$lt_save_allow_undefined_flag
10602 else
10603 cat conftest.err 1>&5
10604 fi
10605 $RM conftest*
10606
10607 fi
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10609 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10610 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10611 ;;
10612 esac
10613 fi
10614 ;;
10615 esac
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10774 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10775
10776 if test "$GCC" = yes; then
10777 case $host_os in
10778 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10779 *) lt_awk_arg="/^libraries:/" ;;
10780 esac
10781 case $host_os in
10782 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10783 *) lt_sed_strip_eq="s,=/,/,g" ;;
10784 esac
10785 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10786 case $lt_search_path_spec in
10787 *\;*)
10788 # if the path contains ";" then we assume it to be the separator
10789 # otherwise default to the standard path separator (i.e. ":") - it is
10790 # assumed that no part of a normal pathname contains ";" but that should
10791 # okay in the real world where ";" in dirpaths is itself problematic.
10792 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10793 ;;
10794 *)
10795 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10796 ;;
10797 esac
10798 # Ok, now we have the path, separated by spaces, we can step through it
10799 # and add multilib dir if necessary.
10800 lt_tmp_lt_search_path_spec=
10801 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10802 for lt_sys_path in $lt_search_path_spec; do
10803 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10804 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10805 else
10806 test -d "$lt_sys_path" && \
10807 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10808 fi
10809 done
10810 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10811 BEGIN {RS=" "; FS="/|\n";} {
10812 lt_foo="";
10813 lt_count=0;
10814 for (lt_i = NF; lt_i > 0; lt_i--) {
10815 if ($lt_i != "" && $lt_i != ".") {
10816 if ($lt_i == "..") {
10817 lt_count++;
10818 } else {
10819 if (lt_count == 0) {
10820 lt_foo="/" $lt_i lt_foo;
10821 } else {
10822 lt_count--;
10823 }
10824 }
10825 }
10826 }
10827 if (lt_foo != "") { lt_freq[lt_foo]++; }
10828 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10829 }'`
10830 # AWK program above erroneously prepends '/' to C:/dos/paths
10831 # for these hosts.
10832 case $host_os in
10833 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10834 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10835 esac
10836 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10837 else
10838 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10839 fi
10840 library_names_spec=
10841 libname_spec='lib$name'
10842 soname_spec=
10843 shrext_cmds=".so"
10844 postinstall_cmds=
10845 postuninstall_cmds=
10846 finish_cmds=
10847 finish_eval=
10848 shlibpath_var=
10849 shlibpath_overrides_runpath=unknown
10850 version_type=none
10851 dynamic_linker="$host_os ld.so"
10852 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10853 need_lib_prefix=unknown
10854 hardcode_into_libs=no
10855
10856 # when you set need_version to no, make sure it does not cause -set_version
10857 # flags to be left without arguments
10858 need_version=unknown
10859
10860 case $host_os in
10861 aix3*)
10862 version_type=linux
10863 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10864 shlibpath_var=LIBPATH
10865
10866 # AIX 3 has no versioning support, so we append a major version to the name.
10867 soname_spec='${libname}${release}${shared_ext}$major'
10868 ;;
10869
10870 aix[4-9]*)
10871 version_type=linux
10872 need_lib_prefix=no
10873 need_version=no
10874 hardcode_into_libs=yes
10875 if test "$host_cpu" = ia64; then
10876 # AIX 5 supports IA64
10877 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10878 shlibpath_var=LD_LIBRARY_PATH
10879 else
10880 # With GCC up to 2.95.x, collect2 would create an import file
10881 # for dependence libraries. The import file would start with
10882 # the line `#! .'. This would cause the generated library to
10883 # depend on `.', always an invalid library. This was fixed in
10884 # development snapshots of GCC prior to 3.0.
10885 case $host_os in
10886 aix4 | aix4.[01] | aix4.[01].*)
10887 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10888 echo ' yes '
10889 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10890 :
10891 else
10892 can_build_shared=no
10893 fi
10894 ;;
10895 esac
10896 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10897 # soname into executable. Probably we can add versioning support to
10898 # collect2, so additional links can be useful in future.
10899 if test "$aix_use_runtimelinking" = yes; then
10900 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10901 # instead of lib<name>.a to let people know that these are not
10902 # typical AIX shared libraries.
10903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10904 else
10905 # We preserve .a as extension for shared libraries through AIX4.2
10906 # and later when we are not doing run time linking.
10907 library_names_spec='${libname}${release}.a $libname.a'
10908 soname_spec='${libname}${release}${shared_ext}$major'
10909 fi
10910 shlibpath_var=LIBPATH
10911 fi
10912 ;;
10913
10914 amigaos*)
10915 case $host_cpu in
10916 powerpc)
10917 # Since July 2007 AmigaOS4 officially supports .so libraries.
10918 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10920 ;;
10921 m68k)
10922 library_names_spec='$libname.ixlibrary $libname.a'
10923 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10924 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'
10925 ;;
10926 esac
10927 ;;
10928
10929 beos*)
10930 library_names_spec='${libname}${shared_ext}'
10931 dynamic_linker="$host_os ld.so"
10932 shlibpath_var=LIBRARY_PATH
10933 ;;
10934
10935 bsdi[45]*)
10936 version_type=linux
10937 need_version=no
10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10939 soname_spec='${libname}${release}${shared_ext}$major'
10940 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10941 shlibpath_var=LD_LIBRARY_PATH
10942 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10943 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10944 # the default ld.so.conf also contains /usr/contrib/lib and
10945 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10946 # libtool to hard-code these into programs
10947 ;;
10948
10949 cygwin* | mingw* | pw32* | cegcc*)
10950 version_type=windows
10951 shrext_cmds=".dll"
10952 need_version=no
10953 need_lib_prefix=no
10954
10955 case $GCC,$host_os in
10956 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10957 library_names_spec='$libname.dll.a'
10958 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10959 postinstall_cmds='base_file=`basename \${file}`~
10960 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10961 dldir=$destdir/`dirname \$dlpath`~
10962 test -d \$dldir || mkdir -p \$dldir~
10963 $install_prog $dir/$dlname \$dldir/$dlname~
10964 chmod a+x \$dldir/$dlname~
10965 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10966 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10967 fi'
10968 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10969 dlpath=$dir/\$dldll~
10970 $RM \$dlpath'
10971 shlibpath_overrides_runpath=yes
10972
10973 case $host_os in
10974 cygwin*)
10975 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10976 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10977
10978 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10979 ;;
10980 mingw* | cegcc*)
10981 # MinGW DLLs use traditional 'lib' prefix
10982 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10983 ;;
10984 pw32*)
10985 # pw32 DLLs use 'pw' prefix rather than 'lib'
10986 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10987 ;;
10988 esac
10989 ;;
10990
10991 *)
10992 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10993 ;;
10994 esac
10995 dynamic_linker='Win32 ld.exe'
10996 # FIXME: first we should search . and the directory the executable is in
10997 shlibpath_var=PATH
10998 ;;
10999
11000 darwin* | rhapsody*)
11001 dynamic_linker="$host_os dyld"
11002 version_type=darwin
11003 need_lib_prefix=no
11004 need_version=no
11005 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11006 soname_spec='${libname}${release}${major}$shared_ext'
11007 shlibpath_overrides_runpath=yes
11008 shlibpath_var=DYLD_LIBRARY_PATH
11009 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11010
11011 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11012 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11013 ;;
11014
11015 dgux*)
11016 version_type=linux
11017 need_lib_prefix=no
11018 need_version=no
11019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11020 soname_spec='${libname}${release}${shared_ext}$major'
11021 shlibpath_var=LD_LIBRARY_PATH
11022 ;;
11023
11024 freebsd* | dragonfly*)
11025 # DragonFly does not have aout. When/if they implement a new
11026 # versioning mechanism, adjust this.
11027 if test -x /usr/bin/objformat; then
11028 objformat=`/usr/bin/objformat`
11029 else
11030 case $host_os in
11031 freebsd[23].*) objformat=aout ;;
11032 *) objformat=elf ;;
11033 esac
11034 fi
11035 version_type=freebsd-$objformat
11036 case $version_type in
11037 freebsd-elf*)
11038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11039 need_version=no
11040 need_lib_prefix=no
11041 ;;
11042 freebsd-*)
11043 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11044 need_version=yes
11045 ;;
11046 esac
11047 shlibpath_var=LD_LIBRARY_PATH
11048 case $host_os in
11049 freebsd2.*)
11050 shlibpath_overrides_runpath=yes
11051 ;;
11052 freebsd3.[01]* | freebsdelf3.[01]*)
11053 shlibpath_overrides_runpath=yes
11054 hardcode_into_libs=yes
11055 ;;
11056 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11057 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11058 shlibpath_overrides_runpath=no
11059 hardcode_into_libs=yes
11060 ;;
11061 *) # from 4.6 on, and DragonFly
11062 shlibpath_overrides_runpath=yes
11063 hardcode_into_libs=yes
11064 ;;
11065 esac
11066 ;;
11067
11068 haiku*)
11069 version_type=linux
11070 need_lib_prefix=no
11071 need_version=no
11072 dynamic_linker="$host_os runtime_loader"
11073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11074 soname_spec='${libname}${release}${shared_ext}$major'
11075 shlibpath_var=LIBRARY_PATH
11076 shlibpath_overrides_runpath=yes
11077 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11078 hardcode_into_libs=yes
11079 ;;
11080
11081 hpux9* | hpux10* | hpux11*)
11082 # Give a soname corresponding to the major version so that dld.sl refuses to
11083 # link against other versions.
11084 version_type=sunos
11085 need_lib_prefix=no
11086 need_version=no
11087 case $host_cpu in
11088 ia64*)
11089 shrext_cmds='.so'
11090 hardcode_into_libs=yes
11091 dynamic_linker="$host_os dld.so"
11092 shlibpath_var=LD_LIBRARY_PATH
11093 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11095 soname_spec='${libname}${release}${shared_ext}$major'
11096 if test "X$HPUX_IA64_MODE" = X32; then
11097 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11098 else
11099 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11100 fi
11101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11102 ;;
11103 hppa*64*)
11104 shrext_cmds='.sl'
11105 hardcode_into_libs=yes
11106 dynamic_linker="$host_os dld.sl"
11107 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11108 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11110 soname_spec='${libname}${release}${shared_ext}$major'
11111 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11113 ;;
11114 *)
11115 shrext_cmds='.sl'
11116 dynamic_linker="$host_os dld.sl"
11117 shlibpath_var=SHLIB_PATH
11118 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11120 soname_spec='${libname}${release}${shared_ext}$major'
11121 ;;
11122 esac
11123 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11124 postinstall_cmds='chmod 555 $lib'
11125 # or fails outright, so override atomically:
11126 install_override_mode=555
11127 ;;
11128
11129 interix[3-9]*)
11130 version_type=linux
11131 need_lib_prefix=no
11132 need_version=no
11133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11134 soname_spec='${libname}${release}${shared_ext}$major'
11135 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11136 shlibpath_var=LD_LIBRARY_PATH
11137 shlibpath_overrides_runpath=no
11138 hardcode_into_libs=yes
11139 ;;
11140
11141 irix5* | irix6* | nonstopux*)
11142 case $host_os in
11143 nonstopux*) version_type=nonstopux ;;
11144 *)
11145 if test "$lt_cv_prog_gnu_ld" = yes; then
11146 version_type=linux
11147 else
11148 version_type=irix
11149 fi ;;
11150 esac
11151 need_lib_prefix=no
11152 need_version=no
11153 soname_spec='${libname}${release}${shared_ext}$major'
11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11155 case $host_os in
11156 irix5* | nonstopux*)
11157 libsuff= shlibsuff=
11158 ;;
11159 *)
11160 case $LD in # libtool.m4 will add one of these switches to LD
11161 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11162 libsuff= shlibsuff= libmagic=32-bit;;
11163 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11164 libsuff=32 shlibsuff=N32 libmagic=N32;;
11165 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11166 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11167 *) libsuff= shlibsuff= libmagic=never-match;;
11168 esac
11169 ;;
11170 esac
11171 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11172 shlibpath_overrides_runpath=no
11173 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11174 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11175 hardcode_into_libs=yes
11176 ;;
11177
11178 # No shared lib support for Linux oldld, aout, or coff.
11179 linux*oldld* | linux*aout* | linux*coff*)
11180 dynamic_linker=no
11181 ;;
11182
11183 # This must be Linux ELF.
11184
11185 # uclinux* changes (here and below) have been submitted to the libtool
11186 # project, but have not yet been accepted: they are GCC-local changes
11187 # for the time being. (See
11188 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11189 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11190 version_type=linux
11191 need_lib_prefix=no
11192 need_version=no
11193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11194 soname_spec='${libname}${release}${shared_ext}$major'
11195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11196 shlibpath_var=LD_LIBRARY_PATH
11197 shlibpath_overrides_runpath=no
11198
11199 # Some binutils ld are patched to set DT_RUNPATH
11200 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11201 $as_echo_n "(cached) " >&6
11202 else
11203 lt_cv_shlibpath_overrides_runpath=no
11204 save_LDFLAGS=$LDFLAGS
11205 save_libdir=$libdir
11206 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11207 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209 /* end confdefs.h. */
11210
11211 int
11212 main ()
11213 {
11214
11215 ;
11216 return 0;
11217 }
11218 _ACEOF
11219 if ac_fn_c_try_link "$LINENO"; then :
11220 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11221 lt_cv_shlibpath_overrides_runpath=yes
11222 fi
11223 fi
11224 rm -f core conftest.err conftest.$ac_objext \
11225 conftest$ac_exeext conftest.$ac_ext
11226 LDFLAGS=$save_LDFLAGS
11227 libdir=$save_libdir
11228
11229 fi
11230
11231 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11232
11233 # This implies no fast_install, which is unacceptable.
11234 # Some rework will be needed to allow for fast_install
11235 # before this can be enabled.
11236 hardcode_into_libs=yes
11237
11238 # Append ld.so.conf contents to the search path
11239 if test -f /etc/ld.so.conf; then
11240 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' ' '`
11241 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11242 fi
11243
11244 # We used to test for /lib/ld.so.1 and disable shared libraries on
11245 # powerpc, because MkLinux only supported shared libraries with the
11246 # GNU dynamic linker. Since this was broken with cross compilers,
11247 # most powerpc-linux boxes support dynamic linking these days and
11248 # people can always --disable-shared, the test was removed, and we
11249 # assume the GNU/Linux dynamic linker is in use.
11250 dynamic_linker='GNU/Linux ld.so'
11251 ;;
11252
11253 netbsd*)
11254 version_type=sunos
11255 need_lib_prefix=no
11256 need_version=no
11257 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11259 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11260 dynamic_linker='NetBSD (a.out) ld.so'
11261 else
11262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11263 soname_spec='${libname}${release}${shared_ext}$major'
11264 dynamic_linker='NetBSD ld.elf_so'
11265 fi
11266 shlibpath_var=LD_LIBRARY_PATH
11267 shlibpath_overrides_runpath=yes
11268 hardcode_into_libs=yes
11269 ;;
11270
11271 newsos6)
11272 version_type=linux
11273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11274 shlibpath_var=LD_LIBRARY_PATH
11275 shlibpath_overrides_runpath=yes
11276 ;;
11277
11278 *nto* | *qnx*)
11279 version_type=qnx
11280 need_lib_prefix=no
11281 need_version=no
11282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11283 soname_spec='${libname}${release}${shared_ext}$major'
11284 shlibpath_var=LD_LIBRARY_PATH
11285 shlibpath_overrides_runpath=no
11286 hardcode_into_libs=yes
11287 dynamic_linker='ldqnx.so'
11288 ;;
11289
11290 openbsd*)
11291 version_type=sunos
11292 sys_lib_dlsearch_path_spec="/usr/lib"
11293 need_lib_prefix=no
11294 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11295 case $host_os in
11296 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11297 *) need_version=no ;;
11298 esac
11299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11301 shlibpath_var=LD_LIBRARY_PATH
11302 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11303 case $host_os in
11304 openbsd2.[89] | openbsd2.[89].*)
11305 shlibpath_overrides_runpath=no
11306 ;;
11307 *)
11308 shlibpath_overrides_runpath=yes
11309 ;;
11310 esac
11311 else
11312 shlibpath_overrides_runpath=yes
11313 fi
11314 ;;
11315
11316 os2*)
11317 libname_spec='$name'
11318 shrext_cmds=".dll"
11319 need_lib_prefix=no
11320 library_names_spec='$libname${shared_ext} $libname.a'
11321 dynamic_linker='OS/2 ld.exe'
11322 shlibpath_var=LIBPATH
11323 ;;
11324
11325 osf3* | osf4* | osf5*)
11326 version_type=osf
11327 need_lib_prefix=no
11328 need_version=no
11329 soname_spec='${libname}${release}${shared_ext}$major'
11330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11331 shlibpath_var=LD_LIBRARY_PATH
11332 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11333 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11334 ;;
11335
11336 rdos*)
11337 dynamic_linker=no
11338 ;;
11339
11340 solaris*)
11341 version_type=linux
11342 need_lib_prefix=no
11343 need_version=no
11344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11345 soname_spec='${libname}${release}${shared_ext}$major'
11346 shlibpath_var=LD_LIBRARY_PATH
11347 shlibpath_overrides_runpath=yes
11348 hardcode_into_libs=yes
11349 # ldd complains unless libraries are executable
11350 postinstall_cmds='chmod +x $lib'
11351 ;;
11352
11353 sunos4*)
11354 version_type=sunos
11355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11356 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11357 shlibpath_var=LD_LIBRARY_PATH
11358 shlibpath_overrides_runpath=yes
11359 if test "$with_gnu_ld" = yes; then
11360 need_lib_prefix=no
11361 fi
11362 need_version=yes
11363 ;;
11364
11365 sysv4 | sysv4.3*)
11366 version_type=linux
11367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11368 soname_spec='${libname}${release}${shared_ext}$major'
11369 shlibpath_var=LD_LIBRARY_PATH
11370 case $host_vendor in
11371 sni)
11372 shlibpath_overrides_runpath=no
11373 need_lib_prefix=no
11374 runpath_var=LD_RUN_PATH
11375 ;;
11376 siemens)
11377 need_lib_prefix=no
11378 ;;
11379 motorola)
11380 need_lib_prefix=no
11381 need_version=no
11382 shlibpath_overrides_runpath=no
11383 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11384 ;;
11385 esac
11386 ;;
11387
11388 sysv4*MP*)
11389 if test -d /usr/nec ;then
11390 version_type=linux
11391 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11392 soname_spec='$libname${shared_ext}.$major'
11393 shlibpath_var=LD_LIBRARY_PATH
11394 fi
11395 ;;
11396
11397 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11398 version_type=freebsd-elf
11399 need_lib_prefix=no
11400 need_version=no
11401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11402 soname_spec='${libname}${release}${shared_ext}$major'
11403 shlibpath_var=LD_LIBRARY_PATH
11404 shlibpath_overrides_runpath=yes
11405 hardcode_into_libs=yes
11406 if test "$with_gnu_ld" = yes; then
11407 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11408 else
11409 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11410 case $host_os in
11411 sco3.2v5*)
11412 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11413 ;;
11414 esac
11415 fi
11416 sys_lib_dlsearch_path_spec='/usr/lib'
11417 ;;
11418
11419 tpf*)
11420 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11421 version_type=linux
11422 need_lib_prefix=no
11423 need_version=no
11424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11425 shlibpath_var=LD_LIBRARY_PATH
11426 shlibpath_overrides_runpath=no
11427 hardcode_into_libs=yes
11428 ;;
11429
11430 uts4*)
11431 version_type=linux
11432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11433 soname_spec='${libname}${release}${shared_ext}$major'
11434 shlibpath_var=LD_LIBRARY_PATH
11435 ;;
11436
11437 # Shared libraries for VwWorks, >= 7 only at this stage
11438 # and (fpic) still incompatible with "large" code models
11439 # in a few configurations. Only for RTP mode in any case,
11440 # and upon explicit request at configure time.
11441 vxworks7*)
11442 dynamic_linker=no
11443 case ${with_multisubdir}-${enable_shared} in
11444 *large*)
11445 ;;
11446 *mrtp*-yes)
11447 version_type=linux
11448 need_lib_prefix=no
11449 need_version=no
11450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11451 soname_spec='${libname}${release}${shared_ext}$major'
11452 dynamic_linker="$host_os module_loader"
11453 ;;
11454 esac
11455 ;;
11456 *)
11457 dynamic_linker=no
11458 ;;
11459 esac
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11461 $as_echo "$dynamic_linker" >&6; }
11462 test "$dynamic_linker" = no && can_build_shared=no
11463
11464 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11465 if test "$GCC" = yes; then
11466 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11467 fi
11468
11469 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11470 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11471 fi
11472 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11473 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11474 fi
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11568 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11569 hardcode_action=
11570 if test -n "$hardcode_libdir_flag_spec" ||
11571 test -n "$runpath_var" ||
11572 test "X$hardcode_automatic" = "Xyes" ; then
11573
11574 # We can hardcode non-existent directories.
11575 if test "$hardcode_direct" != no &&
11576 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11577 # have to relink, otherwise we might link with an installed library
11578 # when we should be linking with a yet-to-be-installed one
11579 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11580 test "$hardcode_minus_L" != no; then
11581 # Linking always hardcodes the temporary library directory.
11582 hardcode_action=relink
11583 else
11584 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11585 hardcode_action=immediate
11586 fi
11587 else
11588 # We cannot hardcode anything, or else we can only hardcode existing
11589 # directories.
11590 hardcode_action=unsupported
11591 fi
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11593 $as_echo "$hardcode_action" >&6; }
11594
11595 if test "$hardcode_action" = relink ||
11596 test "$inherit_rpath" = yes; then
11597 # Fast installation is not supported
11598 enable_fast_install=no
11599 elif test "$shlibpath_overrides_runpath" = yes ||
11600 test "$enable_shared" = no; then
11601 # Fast installation is not necessary
11602 enable_fast_install=needless
11603 fi
11604
11605
11606
11607
11608
11609
11610 if test "x$enable_dlopen" != xyes; then
11611 enable_dlopen=unknown
11612 enable_dlopen_self=unknown
11613 enable_dlopen_self_static=unknown
11614 else
11615 lt_cv_dlopen=no
11616 lt_cv_dlopen_libs=
11617
11618 case $host_os in
11619 beos*)
11620 lt_cv_dlopen="load_add_on"
11621 lt_cv_dlopen_libs=
11622 lt_cv_dlopen_self=yes
11623 ;;
11624
11625 mingw* | pw32* | cegcc*)
11626 lt_cv_dlopen="LoadLibrary"
11627 lt_cv_dlopen_libs=
11628 ;;
11629
11630 cygwin*)
11631 lt_cv_dlopen="dlopen"
11632 lt_cv_dlopen_libs=
11633 ;;
11634
11635 darwin*)
11636 # if libdl is installed we need to link against it
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11638 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11639 if ${ac_cv_lib_dl_dlopen+:} false; then :
11640 $as_echo_n "(cached) " >&6
11641 else
11642 ac_check_lib_save_LIBS=$LIBS
11643 LIBS="-ldl $LIBS"
11644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11645 /* end confdefs.h. */
11646
11647 /* Override any GCC internal prototype to avoid an error.
11648 Use char because int might match the return type of a GCC
11649 builtin and then its argument prototype would still apply. */
11650 #ifdef __cplusplus
11651 extern "C"
11652 #endif
11653 char dlopen ();
11654 int
11655 main ()
11656 {
11657 return dlopen ();
11658 ;
11659 return 0;
11660 }
11661 _ACEOF
11662 if ac_fn_c_try_link "$LINENO"; then :
11663 ac_cv_lib_dl_dlopen=yes
11664 else
11665 ac_cv_lib_dl_dlopen=no
11666 fi
11667 rm -f core conftest.err conftest.$ac_objext \
11668 conftest$ac_exeext conftest.$ac_ext
11669 LIBS=$ac_check_lib_save_LIBS
11670 fi
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11672 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11673 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11674 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11675 else
11676
11677 lt_cv_dlopen="dyld"
11678 lt_cv_dlopen_libs=
11679 lt_cv_dlopen_self=yes
11680
11681 fi
11682
11683 ;;
11684
11685 *)
11686 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11687 if test "x$ac_cv_func_shl_load" = xyes; then :
11688 lt_cv_dlopen="shl_load"
11689 else
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11691 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11692 if ${ac_cv_lib_dld_shl_load+:} false; then :
11693 $as_echo_n "(cached) " >&6
11694 else
11695 ac_check_lib_save_LIBS=$LIBS
11696 LIBS="-ldld $LIBS"
11697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11698 /* end confdefs.h. */
11699
11700 /* Override any GCC internal prototype to avoid an error.
11701 Use char because int might match the return type of a GCC
11702 builtin and then its argument prototype would still apply. */
11703 #ifdef __cplusplus
11704 extern "C"
11705 #endif
11706 char shl_load ();
11707 int
11708 main ()
11709 {
11710 return shl_load ();
11711 ;
11712 return 0;
11713 }
11714 _ACEOF
11715 if ac_fn_c_try_link "$LINENO"; then :
11716 ac_cv_lib_dld_shl_load=yes
11717 else
11718 ac_cv_lib_dld_shl_load=no
11719 fi
11720 rm -f core conftest.err conftest.$ac_objext \
11721 conftest$ac_exeext conftest.$ac_ext
11722 LIBS=$ac_check_lib_save_LIBS
11723 fi
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11725 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11726 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11727 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11728 else
11729 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11730 if test "x$ac_cv_func_dlopen" = xyes; then :
11731 lt_cv_dlopen="dlopen"
11732 else
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11734 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11735 if ${ac_cv_lib_dl_dlopen+:} false; then :
11736 $as_echo_n "(cached) " >&6
11737 else
11738 ac_check_lib_save_LIBS=$LIBS
11739 LIBS="-ldl $LIBS"
11740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11741 /* end confdefs.h. */
11742
11743 /* Override any GCC internal prototype to avoid an error.
11744 Use char because int might match the return type of a GCC
11745 builtin and then its argument prototype would still apply. */
11746 #ifdef __cplusplus
11747 extern "C"
11748 #endif
11749 char dlopen ();
11750 int
11751 main ()
11752 {
11753 return dlopen ();
11754 ;
11755 return 0;
11756 }
11757 _ACEOF
11758 if ac_fn_c_try_link "$LINENO"; then :
11759 ac_cv_lib_dl_dlopen=yes
11760 else
11761 ac_cv_lib_dl_dlopen=no
11762 fi
11763 rm -f core conftest.err conftest.$ac_objext \
11764 conftest$ac_exeext conftest.$ac_ext
11765 LIBS=$ac_check_lib_save_LIBS
11766 fi
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11768 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11769 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11770 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11771 else
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11773 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11774 if ${ac_cv_lib_svld_dlopen+:} false; then :
11775 $as_echo_n "(cached) " >&6
11776 else
11777 ac_check_lib_save_LIBS=$LIBS
11778 LIBS="-lsvld $LIBS"
11779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11780 /* end confdefs.h. */
11781
11782 /* Override any GCC internal prototype to avoid an error.
11783 Use char because int might match the return type of a GCC
11784 builtin and then its argument prototype would still apply. */
11785 #ifdef __cplusplus
11786 extern "C"
11787 #endif
11788 char dlopen ();
11789 int
11790 main ()
11791 {
11792 return dlopen ();
11793 ;
11794 return 0;
11795 }
11796 _ACEOF
11797 if ac_fn_c_try_link "$LINENO"; then :
11798 ac_cv_lib_svld_dlopen=yes
11799 else
11800 ac_cv_lib_svld_dlopen=no
11801 fi
11802 rm -f core conftest.err conftest.$ac_objext \
11803 conftest$ac_exeext conftest.$ac_ext
11804 LIBS=$ac_check_lib_save_LIBS
11805 fi
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11807 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11808 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11809 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11810 else
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11812 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11813 if ${ac_cv_lib_dld_dld_link+:} false; then :
11814 $as_echo_n "(cached) " >&6
11815 else
11816 ac_check_lib_save_LIBS=$LIBS
11817 LIBS="-ldld $LIBS"
11818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11819 /* end confdefs.h. */
11820
11821 /* Override any GCC internal prototype to avoid an error.
11822 Use char because int might match the return type of a GCC
11823 builtin and then its argument prototype would still apply. */
11824 #ifdef __cplusplus
11825 extern "C"
11826 #endif
11827 char dld_link ();
11828 int
11829 main ()
11830 {
11831 return dld_link ();
11832 ;
11833 return 0;
11834 }
11835 _ACEOF
11836 if ac_fn_c_try_link "$LINENO"; then :
11837 ac_cv_lib_dld_dld_link=yes
11838 else
11839 ac_cv_lib_dld_dld_link=no
11840 fi
11841 rm -f core conftest.err conftest.$ac_objext \
11842 conftest$ac_exeext conftest.$ac_ext
11843 LIBS=$ac_check_lib_save_LIBS
11844 fi
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11846 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11847 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11848 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11849 fi
11850
11851
11852 fi
11853
11854
11855 fi
11856
11857
11858 fi
11859
11860
11861 fi
11862
11863
11864 fi
11865
11866 ;;
11867 esac
11868
11869 if test "x$lt_cv_dlopen" != xno; then
11870 enable_dlopen=yes
11871 else
11872 enable_dlopen=no
11873 fi
11874
11875 case $lt_cv_dlopen in
11876 dlopen)
11877 save_CPPFLAGS="$CPPFLAGS"
11878 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11879
11880 save_LDFLAGS="$LDFLAGS"
11881 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11882
11883 save_LIBS="$LIBS"
11884 LIBS="$lt_cv_dlopen_libs $LIBS"
11885
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11887 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11888 if ${lt_cv_dlopen_self+:} false; then :
11889 $as_echo_n "(cached) " >&6
11890 else
11891 if test "$cross_compiling" = yes; then :
11892 lt_cv_dlopen_self=cross
11893 else
11894 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11895 lt_status=$lt_dlunknown
11896 cat > conftest.$ac_ext <<_LT_EOF
11897 #line 11897 "configure"
11898 #include "confdefs.h"
11899
11900 #if HAVE_DLFCN_H
11901 #include <dlfcn.h>
11902 #endif
11903
11904 #include <stdio.h>
11905
11906 #ifdef RTLD_GLOBAL
11907 # define LT_DLGLOBAL RTLD_GLOBAL
11908 #else
11909 # ifdef DL_GLOBAL
11910 # define LT_DLGLOBAL DL_GLOBAL
11911 # else
11912 # define LT_DLGLOBAL 0
11913 # endif
11914 #endif
11915
11916 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11917 find out it does not work in some platform. */
11918 #ifndef LT_DLLAZY_OR_NOW
11919 # ifdef RTLD_LAZY
11920 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11921 # else
11922 # ifdef DL_LAZY
11923 # define LT_DLLAZY_OR_NOW DL_LAZY
11924 # else
11925 # ifdef RTLD_NOW
11926 # define LT_DLLAZY_OR_NOW RTLD_NOW
11927 # else
11928 # ifdef DL_NOW
11929 # define LT_DLLAZY_OR_NOW DL_NOW
11930 # else
11931 # define LT_DLLAZY_OR_NOW 0
11932 # endif
11933 # endif
11934 # endif
11935 # endif
11936 #endif
11937
11938 /* When -fvisbility=hidden is used, assume the code has been annotated
11939 correspondingly for the symbols needed. */
11940 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11941 void fnord () __attribute__((visibility("default")));
11942 #endif
11943
11944 void fnord () { int i=42; }
11945 int main ()
11946 {
11947 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11948 int status = $lt_dlunknown;
11949
11950 if (self)
11951 {
11952 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11953 else
11954 {
11955 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11956 else puts (dlerror ());
11957 }
11958 /* dlclose (self); */
11959 }
11960 else
11961 puts (dlerror ());
11962
11963 return status;
11964 }
11965 _LT_EOF
11966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11967 (eval $ac_link) 2>&5
11968 ac_status=$?
11969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11970 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11971 (./conftest; exit; ) >&5 2>/dev/null
11972 lt_status=$?
11973 case x$lt_status in
11974 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11975 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11976 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11977 esac
11978 else :
11979 # compilation failed
11980 lt_cv_dlopen_self=no
11981 fi
11982 fi
11983 rm -fr conftest*
11984
11985
11986 fi
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11988 $as_echo "$lt_cv_dlopen_self" >&6; }
11989
11990 if test "x$lt_cv_dlopen_self" = xyes; then
11991 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11993 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11994 if ${lt_cv_dlopen_self_static+:} false; then :
11995 $as_echo_n "(cached) " >&6
11996 else
11997 if test "$cross_compiling" = yes; then :
11998 lt_cv_dlopen_self_static=cross
11999 else
12000 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12001 lt_status=$lt_dlunknown
12002 cat > conftest.$ac_ext <<_LT_EOF
12003 #line 12003 "configure"
12004 #include "confdefs.h"
12005
12006 #if HAVE_DLFCN_H
12007 #include <dlfcn.h>
12008 #endif
12009
12010 #include <stdio.h>
12011
12012 #ifdef RTLD_GLOBAL
12013 # define LT_DLGLOBAL RTLD_GLOBAL
12014 #else
12015 # ifdef DL_GLOBAL
12016 # define LT_DLGLOBAL DL_GLOBAL
12017 # else
12018 # define LT_DLGLOBAL 0
12019 # endif
12020 #endif
12021
12022 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12023 find out it does not work in some platform. */
12024 #ifndef LT_DLLAZY_OR_NOW
12025 # ifdef RTLD_LAZY
12026 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12027 # else
12028 # ifdef DL_LAZY
12029 # define LT_DLLAZY_OR_NOW DL_LAZY
12030 # else
12031 # ifdef RTLD_NOW
12032 # define LT_DLLAZY_OR_NOW RTLD_NOW
12033 # else
12034 # ifdef DL_NOW
12035 # define LT_DLLAZY_OR_NOW DL_NOW
12036 # else
12037 # define LT_DLLAZY_OR_NOW 0
12038 # endif
12039 # endif
12040 # endif
12041 # endif
12042 #endif
12043
12044 /* When -fvisbility=hidden is used, assume the code has been annotated
12045 correspondingly for the symbols needed. */
12046 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12047 void fnord () __attribute__((visibility("default")));
12048 #endif
12049
12050 void fnord () { int i=42; }
12051 int main ()
12052 {
12053 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12054 int status = $lt_dlunknown;
12055
12056 if (self)
12057 {
12058 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12059 else
12060 {
12061 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12062 else puts (dlerror ());
12063 }
12064 /* dlclose (self); */
12065 }
12066 else
12067 puts (dlerror ());
12068
12069 return status;
12070 }
12071 _LT_EOF
12072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12073 (eval $ac_link) 2>&5
12074 ac_status=$?
12075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12076 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12077 (./conftest; exit; ) >&5 2>/dev/null
12078 lt_status=$?
12079 case x$lt_status in
12080 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12081 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12082 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12083 esac
12084 else :
12085 # compilation failed
12086 lt_cv_dlopen_self_static=no
12087 fi
12088 fi
12089 rm -fr conftest*
12090
12091
12092 fi
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12094 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12095 fi
12096
12097 CPPFLAGS="$save_CPPFLAGS"
12098 LDFLAGS="$save_LDFLAGS"
12099 LIBS="$save_LIBS"
12100 ;;
12101 esac
12102
12103 case $lt_cv_dlopen_self in
12104 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12105 *) enable_dlopen_self=unknown ;;
12106 esac
12107
12108 case $lt_cv_dlopen_self_static in
12109 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12110 *) enable_dlopen_self_static=unknown ;;
12111 esac
12112 fi
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130 striplib=
12131 old_striplib=
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12133 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12134 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12135 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12136 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12138 $as_echo "yes" >&6; }
12139 else
12140 # FIXME - insert some real tests, host_os isn't really good enough
12141 case $host_os in
12142 darwin*)
12143 if test -n "$STRIP" ; then
12144 striplib="$STRIP -x"
12145 old_striplib="$STRIP -S"
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12147 $as_echo "yes" >&6; }
12148 else
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150 $as_echo "no" >&6; }
12151 fi
12152 ;;
12153 *)
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12155 $as_echo "no" >&6; }
12156 ;;
12157 esac
12158 fi
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171 # Report which library types will actually be built
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12173 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12175 $as_echo "$can_build_shared" >&6; }
12176
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12178 $as_echo_n "checking whether to build shared libraries... " >&6; }
12179 test "$can_build_shared" = "no" && enable_shared=no
12180
12181 # On AIX, shared libraries and static libraries use the same namespace, and
12182 # are all built from PIC.
12183 case $host_os in
12184 aix3*)
12185 test "$enable_shared" = yes && enable_static=no
12186 if test -n "$RANLIB"; then
12187 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12188 postinstall_cmds='$RANLIB $lib'
12189 fi
12190 ;;
12191
12192 aix[4-9]*)
12193 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12194 test "$enable_shared" = yes && enable_static=no
12195 fi
12196 ;;
12197 esac
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12199 $as_echo "$enable_shared" >&6; }
12200
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12202 $as_echo_n "checking whether to build static libraries... " >&6; }
12203 # Make sure either enable_shared or enable_static is yes.
12204 test "$enable_shared" = yes || enable_static=yes
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12206 $as_echo "$enable_static" >&6; }
12207
12208
12209
12210
12211 fi
12212 ac_ext=c
12213 ac_cpp='$CPP $CPPFLAGS'
12214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12217
12218 CC="$lt_save_CC"
12219
12220 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12221 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12222 (test "X$CXX" != "Xg++"))) ; then
12223 ac_ext=cpp
12224 ac_cpp='$CXXCPP $CPPFLAGS'
12225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12229 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12230 if test -z "$CXXCPP"; then
12231 if ${ac_cv_prog_CXXCPP+:} false; then :
12232 $as_echo_n "(cached) " >&6
12233 else
12234 # Double quotes because CXXCPP needs to be expanded
12235 for CXXCPP in "$CXX -E" "/lib/cpp"
12236 do
12237 ac_preproc_ok=false
12238 for ac_cxx_preproc_warn_flag in '' yes
12239 do
12240 # Use a header file that comes with gcc, so configuring glibc
12241 # with a fresh cross-compiler works.
12242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12243 # <limits.h> exists even on freestanding compilers.
12244 # On the NeXT, cc -E runs the code through the compiler's parser,
12245 # not just through cpp. "Syntax error" is here to catch this case.
12246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247 /* end confdefs.h. */
12248 #ifdef __STDC__
12249 # include <limits.h>
12250 #else
12251 # include <assert.h>
12252 #endif
12253 Syntax error
12254 _ACEOF
12255 if ac_fn_cxx_try_cpp "$LINENO"; then :
12256
12257 else
12258 # Broken: fails on valid input.
12259 continue
12260 fi
12261 rm -f conftest.err conftest.i conftest.$ac_ext
12262
12263 # OK, works on sane cases. Now check whether nonexistent headers
12264 # can be detected and how.
12265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266 /* end confdefs.h. */
12267 #include <ac_nonexistent.h>
12268 _ACEOF
12269 if ac_fn_cxx_try_cpp "$LINENO"; then :
12270 # Broken: success on invalid input.
12271 continue
12272 else
12273 # Passes both tests.
12274 ac_preproc_ok=:
12275 break
12276 fi
12277 rm -f conftest.err conftest.i conftest.$ac_ext
12278
12279 done
12280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12281 rm -f conftest.i conftest.err conftest.$ac_ext
12282 if $ac_preproc_ok; then :
12283 break
12284 fi
12285
12286 done
12287 ac_cv_prog_CXXCPP=$CXXCPP
12288
12289 fi
12290 CXXCPP=$ac_cv_prog_CXXCPP
12291 else
12292 ac_cv_prog_CXXCPP=$CXXCPP
12293 fi
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12295 $as_echo "$CXXCPP" >&6; }
12296 ac_preproc_ok=false
12297 for ac_cxx_preproc_warn_flag in '' yes
12298 do
12299 # Use a header file that comes with gcc, so configuring glibc
12300 # with a fresh cross-compiler works.
12301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12302 # <limits.h> exists even on freestanding compilers.
12303 # On the NeXT, cc -E runs the code through the compiler's parser,
12304 # not just through cpp. "Syntax error" is here to catch this case.
12305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12306 /* end confdefs.h. */
12307 #ifdef __STDC__
12308 # include <limits.h>
12309 #else
12310 # include <assert.h>
12311 #endif
12312 Syntax error
12313 _ACEOF
12314 if ac_fn_cxx_try_cpp "$LINENO"; then :
12315
12316 else
12317 # Broken: fails on valid input.
12318 continue
12319 fi
12320 rm -f conftest.err conftest.i conftest.$ac_ext
12321
12322 # OK, works on sane cases. Now check whether nonexistent headers
12323 # can be detected and how.
12324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h. */
12326 #include <ac_nonexistent.h>
12327 _ACEOF
12328 if ac_fn_cxx_try_cpp "$LINENO"; then :
12329 # Broken: success on invalid input.
12330 continue
12331 else
12332 # Passes both tests.
12333 ac_preproc_ok=:
12334 break
12335 fi
12336 rm -f conftest.err conftest.i conftest.$ac_ext
12337
12338 done
12339 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12340 rm -f conftest.i conftest.err conftest.$ac_ext
12341 if $ac_preproc_ok; then :
12342
12343 else
12344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12346 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12347 See \`config.log' for more details" "$LINENO" 5; }
12348 fi
12349
12350 ac_ext=c
12351 ac_cpp='$CPP $CPPFLAGS'
12352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12355
12356 else
12357 _lt_caught_CXX_error=yes
12358 fi
12359
12360 ac_ext=cpp
12361 ac_cpp='$CXXCPP $CPPFLAGS'
12362 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12363 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12364 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12365
12366 archive_cmds_need_lc_CXX=no
12367 allow_undefined_flag_CXX=
12368 always_export_symbols_CXX=no
12369 archive_expsym_cmds_CXX=
12370 compiler_needs_object_CXX=no
12371 export_dynamic_flag_spec_CXX=
12372 hardcode_direct_CXX=no
12373 hardcode_direct_absolute_CXX=no
12374 hardcode_libdir_flag_spec_CXX=
12375 hardcode_libdir_flag_spec_ld_CXX=
12376 hardcode_libdir_separator_CXX=
12377 hardcode_minus_L_CXX=no
12378 hardcode_shlibpath_var_CXX=unsupported
12379 hardcode_automatic_CXX=no
12380 inherit_rpath_CXX=no
12381 module_cmds_CXX=
12382 module_expsym_cmds_CXX=
12383 link_all_deplibs_CXX=unknown
12384 old_archive_cmds_CXX=$old_archive_cmds
12385 reload_flag_CXX=$reload_flag
12386 reload_cmds_CXX=$reload_cmds
12387 no_undefined_flag_CXX=
12388 whole_archive_flag_spec_CXX=
12389 enable_shared_with_static_runtimes_CXX=no
12390
12391 # Source file extension for C++ test sources.
12392 ac_ext=cpp
12393
12394 # Object file extension for compiled C++ test sources.
12395 objext=o
12396 objext_CXX=$objext
12397
12398 # No sense in running all these tests if we already determined that
12399 # the CXX compiler isn't working. Some variables (like enable_shared)
12400 # are currently assumed to apply to all compilers on this platform,
12401 # and will be corrupted by setting them based on a non-working compiler.
12402 if test "$_lt_caught_CXX_error" != yes; then
12403 # Code to be used in simple compile tests
12404 lt_simple_compile_test_code="int some_variable = 0;"
12405
12406 # Code to be used in simple link tests
12407 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12408
12409 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12410
12411
12412
12413
12414
12415
12416 # If no C compiler was specified, use CC.
12417 LTCC=${LTCC-"$CC"}
12418
12419 # If no C compiler flags were specified, use CFLAGS.
12420 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12421
12422 # Allow CC to be a program name with arguments.
12423 compiler=$CC
12424
12425
12426 # save warnings/boilerplate of simple test code
12427 ac_outfile=conftest.$ac_objext
12428 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12429 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12430 _lt_compiler_boilerplate=`cat conftest.err`
12431 $RM conftest*
12432
12433 ac_outfile=conftest.$ac_objext
12434 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12435 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12436 _lt_linker_boilerplate=`cat conftest.err`
12437 $RM -r conftest*
12438
12439
12440 # Allow CC to be a program name with arguments.
12441 lt_save_CC=$CC
12442 lt_save_LD=$LD
12443 lt_save_GCC=$GCC
12444 GCC=$GXX
12445 lt_save_with_gnu_ld=$with_gnu_ld
12446 lt_save_path_LD=$lt_cv_path_LD
12447 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12448 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12449 else
12450 $as_unset lt_cv_prog_gnu_ld
12451 fi
12452 if test -n "${lt_cv_path_LDCXX+set}"; then
12453 lt_cv_path_LD=$lt_cv_path_LDCXX
12454 else
12455 $as_unset lt_cv_path_LD
12456 fi
12457 test -z "${LDCXX+set}" || LD=$LDCXX
12458 CC=${CXX-"c++"}
12459 compiler=$CC
12460 compiler_CXX=$CC
12461 for cc_temp in $compiler""; do
12462 case $cc_temp in
12463 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12464 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12465 \-*) ;;
12466 *) break;;
12467 esac
12468 done
12469 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12470
12471
12472 if test -n "$compiler"; then
12473 # We don't want -fno-exception when compiling C++ code, so set the
12474 # no_builtin_flag separately
12475 if test "$GXX" = yes; then
12476 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12477 else
12478 lt_prog_compiler_no_builtin_flag_CXX=
12479 fi
12480
12481 if test "$GXX" = yes; then
12482 # Set up default GNU C++ configuration
12483
12484
12485
12486 # Check whether --with-gnu-ld was given.
12487 if test "${with_gnu_ld+set}" = set; then :
12488 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12489 else
12490 with_gnu_ld=no
12491 fi
12492
12493 ac_prog=ld
12494 if test "$GCC" = yes; then
12495 # Check if gcc -print-prog-name=ld gives a path.
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12497 $as_echo_n "checking for ld used by $CC... " >&6; }
12498 case $host in
12499 *-*-mingw*)
12500 # gcc leaves a trailing carriage return which upsets mingw
12501 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12502 *)
12503 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12504 esac
12505 case $ac_prog in
12506 # Accept absolute paths.
12507 [\\/]* | ?:[\\/]*)
12508 re_direlt='/[^/][^/]*/\.\./'
12509 # Canonicalize the pathname of ld
12510 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12511 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12512 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12513 done
12514 test -z "$LD" && LD="$ac_prog"
12515 ;;
12516 "")
12517 # If it fails, then pretend we aren't using GCC.
12518 ac_prog=ld
12519 ;;
12520 *)
12521 # If it is relative, then search for the first ld in PATH.
12522 with_gnu_ld=unknown
12523 ;;
12524 esac
12525 elif test "$with_gnu_ld" = yes; then
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12527 $as_echo_n "checking for GNU ld... " >&6; }
12528 else
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12530 $as_echo_n "checking for non-GNU ld... " >&6; }
12531 fi
12532 if ${lt_cv_path_LD+:} false; then :
12533 $as_echo_n "(cached) " >&6
12534 else
12535 if test -z "$LD"; then
12536 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12537 for ac_dir in $PATH; do
12538 IFS="$lt_save_ifs"
12539 test -z "$ac_dir" && ac_dir=.
12540 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12541 lt_cv_path_LD="$ac_dir/$ac_prog"
12542 # Check to see if the program is GNU ld. I'd rather use --version,
12543 # but apparently some variants of GNU ld only accept -v.
12544 # Break only if it was the GNU/non-GNU ld that we prefer.
12545 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12546 *GNU* | *'with BFD'*)
12547 test "$with_gnu_ld" != no && break
12548 ;;
12549 *)
12550 test "$with_gnu_ld" != yes && break
12551 ;;
12552 esac
12553 fi
12554 done
12555 IFS="$lt_save_ifs"
12556 else
12557 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12558 fi
12559 fi
12560
12561 LD="$lt_cv_path_LD"
12562 if test -n "$LD"; then
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12564 $as_echo "$LD" >&6; }
12565 else
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12567 $as_echo "no" >&6; }
12568 fi
12569 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12571 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12572 if ${lt_cv_prog_gnu_ld+:} false; then :
12573 $as_echo_n "(cached) " >&6
12574 else
12575 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12576 case `$LD -v 2>&1 </dev/null` in
12577 *GNU* | *'with BFD'*)
12578 lt_cv_prog_gnu_ld=yes
12579 ;;
12580 *)
12581 lt_cv_prog_gnu_ld=no
12582 ;;
12583 esac
12584 fi
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12586 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12587 with_gnu_ld=$lt_cv_prog_gnu_ld
12588
12589
12590
12591
12592
12593
12594
12595 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12596 # archiving commands below assume that GNU ld is being used.
12597 if test "$with_gnu_ld" = yes; then
12598 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12599 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'
12600
12601 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12602 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12603
12604 # If archive_cmds runs LD, not CC, wlarc should be empty
12605 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12606 # investigate it a little bit more. (MM)
12607 wlarc='${wl}'
12608
12609 # ancient GNU ld didn't support --whole-archive et. al.
12610 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12611 $GREP 'no-whole-archive' > /dev/null; then
12612 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12613 else
12614 whole_archive_flag_spec_CXX=
12615 fi
12616 else
12617 with_gnu_ld=no
12618 wlarc=
12619
12620 # A generic and very simple default shared library creation
12621 # command for GNU C++ for the case where it uses the native
12622 # linker, instead of GNU ld. If possible, this setting should
12623 # overridden to take advantage of the native linker features on
12624 # the platform it is being used on.
12625 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12626 fi
12627
12628 # Commands to make compiler produce verbose output that lists
12629 # what "hidden" libraries, object files and flags are used when
12630 # linking a shared library.
12631 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12632
12633 else
12634 GXX=no
12635 with_gnu_ld=no
12636 wlarc=
12637 fi
12638
12639 # PORTME: fill in a description of your system's C++ link characteristics
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12641 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12642 ld_shlibs_CXX=yes
12643 case $host_os in
12644 aix3*)
12645 # FIXME: insert proper C++ library support
12646 ld_shlibs_CXX=no
12647 ;;
12648 aix[4-9]*)
12649 if test "$host_cpu" = ia64; then
12650 # On IA64, the linker does run time linking by default, so we don't
12651 # have to do anything special.
12652 aix_use_runtimelinking=no
12653 exp_sym_flag='-Bexport'
12654 no_entry_flag=""
12655 else
12656 aix_use_runtimelinking=no
12657
12658 # Test if we are trying to use run time linking or normal
12659 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12660 # need to do runtime linking.
12661 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12662 for ld_flag in $LDFLAGS; do
12663 case $ld_flag in
12664 *-brtl*)
12665 aix_use_runtimelinking=yes
12666 break
12667 ;;
12668 esac
12669 done
12670 ;;
12671 esac
12672
12673 exp_sym_flag='-bexport'
12674 no_entry_flag='-bnoentry'
12675 fi
12676
12677 # When large executables or shared objects are built, AIX ld can
12678 # have problems creating the table of contents. If linking a library
12679 # or program results in "error TOC overflow" add -mminimal-toc to
12680 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12681 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12682
12683 archive_cmds_CXX=''
12684 hardcode_direct_CXX=yes
12685 hardcode_direct_absolute_CXX=yes
12686 hardcode_libdir_separator_CXX=':'
12687 link_all_deplibs_CXX=yes
12688 file_list_spec_CXX='${wl}-f,'
12689
12690 if test "$GXX" = yes; then
12691 case $host_os in aix4.[012]|aix4.[012].*)
12692 # We only want to do this on AIX 4.2 and lower, the check
12693 # below for broken collect2 doesn't work under 4.3+
12694 collect2name=`${CC} -print-prog-name=collect2`
12695 if test -f "$collect2name" &&
12696 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12697 then
12698 # We have reworked collect2
12699 :
12700 else
12701 # We have old collect2
12702 hardcode_direct_CXX=unsupported
12703 # It fails to find uninstalled libraries when the uninstalled
12704 # path is not listed in the libpath. Setting hardcode_minus_L
12705 # to unsupported forces relinking
12706 hardcode_minus_L_CXX=yes
12707 hardcode_libdir_flag_spec_CXX='-L$libdir'
12708 hardcode_libdir_separator_CXX=
12709 fi
12710 esac
12711 shared_flag='-shared'
12712 if test "$aix_use_runtimelinking" = yes; then
12713 shared_flag="$shared_flag "'${wl}-G'
12714 fi
12715 else
12716 # not using gcc
12717 if test "$host_cpu" = ia64; then
12718 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12719 # chokes on -Wl,-G. The following line is correct:
12720 shared_flag='-G'
12721 else
12722 if test "$aix_use_runtimelinking" = yes; then
12723 shared_flag='${wl}-G'
12724 else
12725 shared_flag='${wl}-bM:SRE'
12726 fi
12727 fi
12728 fi
12729
12730 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12731 # It seems that -bexpall does not export symbols beginning with
12732 # underscore (_), so it is better to generate a list of symbols to
12733 # export.
12734 always_export_symbols_CXX=yes
12735 if test "$aix_use_runtimelinking" = yes; then
12736 # Warning - without using the other runtime loading flags (-brtl),
12737 # -berok will link without error, but may produce a broken library.
12738 allow_undefined_flag_CXX='-berok'
12739 # Determine the default libpath from the value encoded in an empty
12740 # executable.
12741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12742 /* end confdefs.h. */
12743
12744 int
12745 main ()
12746 {
12747
12748 ;
12749 return 0;
12750 }
12751 _ACEOF
12752 if ac_fn_cxx_try_link "$LINENO"; then :
12753
12754 lt_aix_libpath_sed='
12755 /Import File Strings/,/^$/ {
12756 /^0/ {
12757 s/^0 *\(.*\)$/\1/
12758 p
12759 }
12760 }'
12761 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12762 # Check for a 64-bit object if we didn't find anything.
12763 if test -z "$aix_libpath"; then
12764 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12765 fi
12766 fi
12767 rm -f core conftest.err conftest.$ac_objext \
12768 conftest$ac_exeext conftest.$ac_ext
12769 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12770
12771 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12772
12773 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"
12774 else
12775 if test "$host_cpu" = ia64; then
12776 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12777 allow_undefined_flag_CXX="-z nodefs"
12778 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"
12779 else
12780 # Determine the default libpath from the value encoded in an
12781 # empty executable.
12782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h. */
12784
12785 int
12786 main ()
12787 {
12788
12789 ;
12790 return 0;
12791 }
12792 _ACEOF
12793 if ac_fn_cxx_try_link "$LINENO"; then :
12794
12795 lt_aix_libpath_sed='
12796 /Import File Strings/,/^$/ {
12797 /^0/ {
12798 s/^0 *\(.*\)$/\1/
12799 p
12800 }
12801 }'
12802 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12803 # Check for a 64-bit object if we didn't find anything.
12804 if test -z "$aix_libpath"; then
12805 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12806 fi
12807 fi
12808 rm -f core conftest.err conftest.$ac_objext \
12809 conftest$ac_exeext conftest.$ac_ext
12810 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12811
12812 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12813 # Warning - without using the other run time loading flags,
12814 # -berok will link without error, but may produce a broken library.
12815 no_undefined_flag_CXX=' ${wl}-bernotok'
12816 allow_undefined_flag_CXX=' ${wl}-berok'
12817 if test "$with_gnu_ld" = yes; then
12818 # We only use this code for GNU lds that support --whole-archive.
12819 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12820 else
12821 # Exported symbols can be pulled into shared objects from archives
12822 whole_archive_flag_spec_CXX='$convenience'
12823 fi
12824 archive_cmds_need_lc_CXX=yes
12825 # This is similar to how AIX traditionally builds its shared
12826 # libraries.
12827 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'
12828 fi
12829 fi
12830 ;;
12831
12832 beos*)
12833 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12834 allow_undefined_flag_CXX=unsupported
12835 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
12836 # support --undefined. This deserves some investigation. FIXME
12837 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12838 else
12839 ld_shlibs_CXX=no
12840 fi
12841 ;;
12842
12843 chorus*)
12844 case $cc_basename in
12845 *)
12846 # FIXME: insert proper C++ library support
12847 ld_shlibs_CXX=no
12848 ;;
12849 esac
12850 ;;
12851
12852 cygwin* | mingw* | pw32* | cegcc*)
12853 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12854 # as there is no search path for DLLs.
12855 hardcode_libdir_flag_spec_CXX='-L$libdir'
12856 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12857 allow_undefined_flag_CXX=unsupported
12858 always_export_symbols_CXX=no
12859 enable_shared_with_static_runtimes_CXX=yes
12860
12861 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12862 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'
12863 # If the export-symbols file already is a .def file (1st line
12864 # is EXPORTS), use it as is; otherwise, prepend...
12865 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12866 cp $export_symbols $output_objdir/$soname.def;
12867 else
12868 echo EXPORTS > $output_objdir/$soname.def;
12869 cat $export_symbols >> $output_objdir/$soname.def;
12870 fi~
12871 $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'
12872 else
12873 ld_shlibs_CXX=no
12874 fi
12875 ;;
12876 darwin* | rhapsody*)
12877
12878
12879 archive_cmds_need_lc_CXX=no
12880 hardcode_direct_CXX=no
12881 hardcode_automatic_CXX=yes
12882 hardcode_shlibpath_var_CXX=unsupported
12883 if test "$lt_cv_ld_force_load" = "yes"; then
12884 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\"`'
12885 else
12886 whole_archive_flag_spec_CXX=''
12887 fi
12888 link_all_deplibs_CXX=yes
12889 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12890 case $cc_basename in
12891 ifort*) _lt_dar_can_shared=yes ;;
12892 *) _lt_dar_can_shared=$GCC ;;
12893 esac
12894 if test "$_lt_dar_can_shared" = "yes"; then
12895 output_verbose_link_cmd=func_echo_all
12896 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}"
12897 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12898 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}"
12899 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}"
12900 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12901 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}"
12902 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}"
12903 fi
12904
12905 else
12906 ld_shlibs_CXX=no
12907 fi
12908
12909 ;;
12910
12911 dgux*)
12912 case $cc_basename in
12913 ec++*)
12914 # FIXME: insert proper C++ library support
12915 ld_shlibs_CXX=no
12916 ;;
12917 ghcx*)
12918 # Green Hills C++ Compiler
12919 # FIXME: insert proper C++ library support
12920 ld_shlibs_CXX=no
12921 ;;
12922 *)
12923 # FIXME: insert proper C++ library support
12924 ld_shlibs_CXX=no
12925 ;;
12926 esac
12927 ;;
12928
12929 freebsd2.*)
12930 # C++ shared libraries reported to be fairly broken before
12931 # switch to ELF
12932 ld_shlibs_CXX=no
12933 ;;
12934
12935 freebsd-elf*)
12936 archive_cmds_need_lc_CXX=no
12937 ;;
12938
12939 freebsd* | dragonfly*)
12940 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12941 # conventions
12942 ld_shlibs_CXX=yes
12943 ;;
12944
12945 gnu*)
12946 ;;
12947
12948 haiku*)
12949 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12950 link_all_deplibs_CXX=yes
12951 ;;
12952
12953 hpux9*)
12954 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12955 hardcode_libdir_separator_CXX=:
12956 export_dynamic_flag_spec_CXX='${wl}-E'
12957 hardcode_direct_CXX=yes
12958 hardcode_minus_L_CXX=yes # Not in the search PATH,
12959 # but as the default
12960 # location of the library.
12961
12962 case $cc_basename in
12963 CC*)
12964 # FIXME: insert proper C++ library support
12965 ld_shlibs_CXX=no
12966 ;;
12967 aCC*)
12968 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'
12969 # Commands to make compiler produce verbose output that lists
12970 # what "hidden" libraries, object files and flags are used when
12971 # linking a shared library.
12972 #
12973 # There doesn't appear to be a way to prevent this compiler from
12974 # explicitly linking system object files so we need to strip them
12975 # from the output so that they don't get included in the library
12976 # dependencies.
12977 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"'
12978 ;;
12979 *)
12980 if test "$GXX" = yes; then
12981 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'
12982 else
12983 # FIXME: insert proper C++ library support
12984 ld_shlibs_CXX=no
12985 fi
12986 ;;
12987 esac
12988 ;;
12989
12990 hpux10*|hpux11*)
12991 if test $with_gnu_ld = no; then
12992 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12993 hardcode_libdir_separator_CXX=:
12994
12995 case $host_cpu in
12996 hppa*64*|ia64*)
12997 ;;
12998 *)
12999 export_dynamic_flag_spec_CXX='${wl}-E'
13000 ;;
13001 esac
13002 fi
13003 case $host_cpu in
13004 hppa*64*|ia64*)
13005 hardcode_direct_CXX=no
13006 hardcode_shlibpath_var_CXX=no
13007 ;;
13008 *)
13009 hardcode_direct_CXX=yes
13010 hardcode_direct_absolute_CXX=yes
13011 hardcode_minus_L_CXX=yes # Not in the search PATH,
13012 # but as the default
13013 # location of the library.
13014 ;;
13015 esac
13016
13017 case $cc_basename in
13018 CC*)
13019 # FIXME: insert proper C++ library support
13020 ld_shlibs_CXX=no
13021 ;;
13022 aCC*)
13023 case $host_cpu in
13024 hppa*64*)
13025 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13026 ;;
13027 ia64*)
13028 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13029 ;;
13030 *)
13031 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13032 ;;
13033 esac
13034 # Commands to make compiler produce verbose output that lists
13035 # what "hidden" libraries, object files and flags are used when
13036 # linking a shared library.
13037 #
13038 # There doesn't appear to be a way to prevent this compiler from
13039 # explicitly linking system object files so we need to strip them
13040 # from the output so that they don't get included in the library
13041 # dependencies.
13042 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"'
13043 ;;
13044 *)
13045 if test "$GXX" = yes; then
13046 if test $with_gnu_ld = no; then
13047 case $host_cpu in
13048 hppa*64*)
13049 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13050 ;;
13051 ia64*)
13052 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13053 ;;
13054 *)
13055 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'
13056 ;;
13057 esac
13058 fi
13059 else
13060 # FIXME: insert proper C++ library support
13061 ld_shlibs_CXX=no
13062 fi
13063 ;;
13064 esac
13065 ;;
13066
13067 interix[3-9]*)
13068 hardcode_direct_CXX=no
13069 hardcode_shlibpath_var_CXX=no
13070 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13071 export_dynamic_flag_spec_CXX='${wl}-E'
13072 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13073 # Instead, shared libraries are loaded at an image base (0x10000000 by
13074 # default) and relocated if they conflict, which is a slow very memory
13075 # consuming and fragmenting process. To avoid this, we pick a random,
13076 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13077 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13078 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'
13079 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'
13080 ;;
13081 irix5* | irix6*)
13082 case $cc_basename in
13083 CC*)
13084 # SGI C++
13085 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'
13086
13087 # Archives containing C++ object files must be created using
13088 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13089 # necessary to make sure instantiated templates are included
13090 # in the archive.
13091 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13092 ;;
13093 *)
13094 if test "$GXX" = yes; then
13095 if test "$with_gnu_ld" = no; then
13096 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'
13097 else
13098 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'
13099 fi
13100 fi
13101 link_all_deplibs_CXX=yes
13102 ;;
13103 esac
13104 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13105 hardcode_libdir_separator_CXX=:
13106 inherit_rpath_CXX=yes
13107 ;;
13108
13109 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13110 case $cc_basename in
13111 KCC*)
13112 # Kuck and Associates, Inc. (KAI) C++ Compiler
13113
13114 # KCC will only create a shared library if the output file
13115 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13116 # to its proper name (with version) after linking.
13117 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'
13118 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'
13119 # Commands to make compiler produce verbose output that lists
13120 # what "hidden" libraries, object files and flags are used when
13121 # linking a shared library.
13122 #
13123 # There doesn't appear to be a way to prevent this compiler from
13124 # explicitly linking system object files so we need to strip them
13125 # from the output so that they don't get included in the library
13126 # dependencies.
13127 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"'
13128
13129 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13130 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13131
13132 # Archives containing C++ object files must be created using
13133 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13134 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13135 ;;
13136 icpc* | ecpc* )
13137 # Intel C++
13138 with_gnu_ld=yes
13139 # version 8.0 and above of icpc choke on multiply defined symbols
13140 # if we add $predep_objects and $postdep_objects, however 7.1 and
13141 # earlier do not add the objects themselves.
13142 case `$CC -V 2>&1` in
13143 *"Version 7."*)
13144 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13145 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'
13146 ;;
13147 *) # Version 8.0 or newer
13148 tmp_idyn=
13149 case $host_cpu in
13150 ia64*) tmp_idyn=' -i_dynamic';;
13151 esac
13152 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13153 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'
13154 ;;
13155 esac
13156 archive_cmds_need_lc_CXX=no
13157 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13158 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13159 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13160 ;;
13161 pgCC* | pgcpp*)
13162 # Portland Group C++ compiler
13163 case `$CC -V` in
13164 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13165 prelink_cmds_CXX='tpldir=Template.dir~
13166 rm -rf $tpldir~
13167 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13168 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13169 old_archive_cmds_CXX='tpldir=Template.dir~
13170 rm -rf $tpldir~
13171 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13172 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13173 $RANLIB $oldlib'
13174 archive_cmds_CXX='tpldir=Template.dir~
13175 rm -rf $tpldir~
13176 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13177 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13178 archive_expsym_cmds_CXX='tpldir=Template.dir~
13179 rm -rf $tpldir~
13180 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13181 $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'
13182 ;;
13183 *) # Version 6 and above use weak symbols
13184 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13185 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'
13186 ;;
13187 esac
13188
13189 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13190 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13191 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'
13192 ;;
13193 cxx*)
13194 # Compaq C++
13195 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13196 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'
13197
13198 runpath_var=LD_RUN_PATH
13199 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13200 hardcode_libdir_separator_CXX=:
13201
13202 # Commands to make compiler produce verbose output that lists
13203 # what "hidden" libraries, object files and flags are used when
13204 # linking a shared library.
13205 #
13206 # There doesn't appear to be a way to prevent this compiler from
13207 # explicitly linking system object files so we need to strip them
13208 # from the output so that they don't get included in the library
13209 # dependencies.
13210 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'
13211 ;;
13212 xl* | mpixl* | bgxl*)
13213 # IBM XL 8.0 on PPC, with GNU ld
13214 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13215 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13216 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13217 if test "x$supports_anon_versioning" = xyes; then
13218 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13219 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13220 echo "local: *; };" >> $output_objdir/$libname.ver~
13221 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13222 fi
13223 ;;
13224 *)
13225 case `$CC -V 2>&1 | sed 5q` in
13226 *Sun\ C*)
13227 # Sun C++ 5.9
13228 no_undefined_flag_CXX=' -zdefs'
13229 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13230 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'
13231 hardcode_libdir_flag_spec_CXX='-R$libdir'
13232 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'
13233 compiler_needs_object_CXX=yes
13234
13235 # Not sure whether something based on
13236 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13237 # would be better.
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 esac
13247 ;;
13248 esac
13249 ;;
13250
13251 lynxos*)
13252 # FIXME: insert proper C++ library support
13253 ld_shlibs_CXX=no
13254 ;;
13255
13256 m88k*)
13257 # FIXME: insert proper C++ library support
13258 ld_shlibs_CXX=no
13259 ;;
13260
13261 mvs*)
13262 case $cc_basename in
13263 cxx*)
13264 # FIXME: insert proper C++ library support
13265 ld_shlibs_CXX=no
13266 ;;
13267 *)
13268 # FIXME: insert proper C++ library support
13269 ld_shlibs_CXX=no
13270 ;;
13271 esac
13272 ;;
13273
13274 netbsd*)
13275 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13276 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13277 wlarc=
13278 hardcode_libdir_flag_spec_CXX='-R$libdir'
13279 hardcode_direct_CXX=yes
13280 hardcode_shlibpath_var_CXX=no
13281 fi
13282 # Workaround some broken pre-1.5 toolchains
13283 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13284 ;;
13285
13286 *nto* | *qnx*)
13287 ld_shlibs_CXX=yes
13288 ;;
13289
13290 openbsd2*)
13291 # C++ shared libraries are fairly broken
13292 ld_shlibs_CXX=no
13293 ;;
13294
13295 openbsd*)
13296 if test -f /usr/libexec/ld.so; then
13297 hardcode_direct_CXX=yes
13298 hardcode_shlibpath_var_CXX=no
13299 hardcode_direct_absolute_CXX=yes
13300 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13301 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13302 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13303 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13304 export_dynamic_flag_spec_CXX='${wl}-E'
13305 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13306 fi
13307 output_verbose_link_cmd=func_echo_all
13308 else
13309 ld_shlibs_CXX=no
13310 fi
13311 ;;
13312
13313 osf3* | osf4* | osf5*)
13314 case $cc_basename in
13315 KCC*)
13316 # Kuck and Associates, Inc. (KAI) C++ Compiler
13317
13318 # KCC will only create a shared library if the output file
13319 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13320 # to its proper name (with version) after linking.
13321 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'
13322
13323 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13324 hardcode_libdir_separator_CXX=:
13325
13326 # Archives containing C++ object files must be created using
13327 # the KAI C++ compiler.
13328 case $host in
13329 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13330 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13331 esac
13332 ;;
13333 RCC*)
13334 # Rational C++ 2.4.1
13335 # FIXME: insert proper C++ library support
13336 ld_shlibs_CXX=no
13337 ;;
13338 cxx*)
13339 case $host in
13340 osf3*)
13341 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13342 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'
13343 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13344 ;;
13345 *)
13346 allow_undefined_flag_CXX=' -expect_unresolved \*'
13347 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'
13348 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13349 echo "-hidden">> $lib.exp~
13350 $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~
13351 $RM $lib.exp'
13352 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13353 ;;
13354 esac
13355
13356 hardcode_libdir_separator_CXX=:
13357
13358 # Commands to make compiler produce verbose output that lists
13359 # what "hidden" libraries, object files and flags are used when
13360 # linking a shared library.
13361 #
13362 # There doesn't appear to be a way to prevent this compiler from
13363 # explicitly linking system object files so we need to strip them
13364 # from the output so that they don't get included in the library
13365 # dependencies.
13366 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"'
13367 ;;
13368 *)
13369 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13370 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13371 case $host in
13372 osf3*)
13373 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'
13374 ;;
13375 *)
13376 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'
13377 ;;
13378 esac
13379
13380 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13381 hardcode_libdir_separator_CXX=:
13382
13383 # Commands to make compiler produce verbose output that lists
13384 # what "hidden" libraries, object files and flags are used when
13385 # linking a shared library.
13386 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13387
13388 else
13389 # FIXME: insert proper C++ library support
13390 ld_shlibs_CXX=no
13391 fi
13392 ;;
13393 esac
13394 ;;
13395
13396 psos*)
13397 # FIXME: insert proper C++ library support
13398 ld_shlibs_CXX=no
13399 ;;
13400
13401 sunos4*)
13402 case $cc_basename in
13403 CC*)
13404 # Sun C++ 4.x
13405 # FIXME: insert proper C++ library support
13406 ld_shlibs_CXX=no
13407 ;;
13408 lcc*)
13409 # Lucid
13410 # FIXME: insert proper C++ library support
13411 ld_shlibs_CXX=no
13412 ;;
13413 *)
13414 # FIXME: insert proper C++ library support
13415 ld_shlibs_CXX=no
13416 ;;
13417 esac
13418 ;;
13419
13420 solaris*)
13421 case $cc_basename in
13422 CC*)
13423 # Sun C++ 4.2, 5.x and Centerline C++
13424 archive_cmds_need_lc_CXX=yes
13425 no_undefined_flag_CXX=' -zdefs'
13426 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13427 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13428 $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'
13429
13430 hardcode_libdir_flag_spec_CXX='-R$libdir'
13431 hardcode_shlibpath_var_CXX=no
13432 case $host_os in
13433 solaris2.[0-5] | solaris2.[0-5].*) ;;
13434 *)
13435 # The compiler driver will combine and reorder linker options,
13436 # but understands `-z linker_flag'.
13437 # Supported since Solaris 2.6 (maybe 2.5.1?)
13438 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13439 ;;
13440 esac
13441 link_all_deplibs_CXX=yes
13442
13443 output_verbose_link_cmd='func_echo_all'
13444
13445 # Archives containing C++ object files must be created using
13446 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13447 # necessary to make sure instantiated templates are included
13448 # in the archive.
13449 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13450 ;;
13451 gcx*)
13452 # Green Hills C++ Compiler
13453 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13454
13455 # The C++ compiler must be used to create the archive.
13456 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13457 ;;
13458 *)
13459 # GNU C++ compiler with Solaris linker
13460 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13461 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13462 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13463 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13464 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13465 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13466
13467 # Commands to make compiler produce verbose output that lists
13468 # what "hidden" libraries, object files and flags are used when
13469 # linking a shared library.
13470 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13471 else
13472 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13473 # platform.
13474 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13475 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13476 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13477
13478 # Commands to make compiler produce verbose output that lists
13479 # what "hidden" libraries, object files and flags are used when
13480 # linking a shared library.
13481 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13482 fi
13483
13484 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13485 case $host_os in
13486 solaris2.[0-5] | solaris2.[0-5].*) ;;
13487 *)
13488 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13489 ;;
13490 esac
13491 fi
13492 ;;
13493 esac
13494 ;;
13495
13496 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13497 no_undefined_flag_CXX='${wl}-z,text'
13498 archive_cmds_need_lc_CXX=no
13499 hardcode_shlibpath_var_CXX=no
13500 runpath_var='LD_RUN_PATH'
13501
13502 case $cc_basename in
13503 CC*)
13504 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13505 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13506 ;;
13507 *)
13508 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13509 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13510 ;;
13511 esac
13512 ;;
13513
13514 sysv5* | sco3.2v5* | sco5v6*)
13515 # Note: We can NOT use -z defs as we might desire, because we do not
13516 # link with -lc, and that would cause any symbols used from libc to
13517 # always be unresolved, which means just about no library would
13518 # ever link correctly. If we're not using GNU ld we use -z text
13519 # though, which does catch some bad symbols but isn't as heavy-handed
13520 # as -z defs.
13521 no_undefined_flag_CXX='${wl}-z,text'
13522 allow_undefined_flag_CXX='${wl}-z,nodefs'
13523 archive_cmds_need_lc_CXX=no
13524 hardcode_shlibpath_var_CXX=no
13525 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13526 hardcode_libdir_separator_CXX=':'
13527 link_all_deplibs_CXX=yes
13528 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13529 runpath_var='LD_RUN_PATH'
13530
13531 case $cc_basename in
13532 CC*)
13533 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13534 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13535 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13536 '"$old_archive_cmds_CXX"
13537 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13538 '"$reload_cmds_CXX"
13539 ;;
13540 *)
13541 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13542 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13543 ;;
13544 esac
13545 ;;
13546
13547 tandem*)
13548 case $cc_basename in
13549 NCC*)
13550 # NonStop-UX NCC 3.20
13551 # FIXME: insert proper C++ library support
13552 ld_shlibs_CXX=no
13553 ;;
13554 *)
13555 # FIXME: insert proper C++ library support
13556 ld_shlibs_CXX=no
13557 ;;
13558 esac
13559 ;;
13560
13561 vxworks*)
13562 # For VxWorks ports, we assume the use of a GNU linker with
13563 # standard elf conventions.
13564 ld_shlibs_CXX=yes
13565 ;;
13566
13567 *)
13568 # FIXME: insert proper C++ library support
13569 ld_shlibs_CXX=no
13570 ;;
13571 esac
13572
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13574 $as_echo "$ld_shlibs_CXX" >&6; }
13575 test "$ld_shlibs_CXX" = no && can_build_shared=no
13576
13577 GCC_CXX="$GXX"
13578 LD_CXX="$LD"
13579
13580 ## CAVEAT EMPTOR:
13581 ## There is no encapsulation within the following macros, do not change
13582 ## the running order or otherwise move them around unless you know exactly
13583 ## what you are doing...
13584 # Dependencies to place before and after the object being linked:
13585 predep_objects_CXX=
13586 postdep_objects_CXX=
13587 predeps_CXX=
13588 postdeps_CXX=
13589 compiler_lib_search_path_CXX=
13590
13591 cat > conftest.$ac_ext <<_LT_EOF
13592 class Foo
13593 {
13594 public:
13595 Foo (void) { a = 0; }
13596 private:
13597 int a;
13598 };
13599 _LT_EOF
13600
13601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13602 (eval $ac_compile) 2>&5
13603 ac_status=$?
13604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13605 test $ac_status = 0; }; then
13606 # Parse the compiler output and extract the necessary
13607 # objects, libraries and library flags.
13608
13609 # Sentinel used to keep track of whether or not we are before
13610 # the conftest object file.
13611 pre_test_object_deps_done=no
13612
13613 for p in `eval "$output_verbose_link_cmd"`; do
13614 case $p in
13615
13616 -L* | -R* | -l*)
13617 # Some compilers place space between "-{L,R}" and the path.
13618 # Remove the space.
13619 if test $p = "-L" ||
13620 test $p = "-R"; then
13621 prev=$p
13622 continue
13623 else
13624 prev=
13625 fi
13626
13627 if test "$pre_test_object_deps_done" = no; then
13628 case $p in
13629 -L* | -R*)
13630 # Internal compiler library paths should come after those
13631 # provided the user. The postdeps already come after the
13632 # user supplied libs so there is no need to process them.
13633 if test -z "$compiler_lib_search_path_CXX"; then
13634 compiler_lib_search_path_CXX="${prev}${p}"
13635 else
13636 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13637 fi
13638 ;;
13639 # The "-l" case would never come before the object being
13640 # linked, so don't bother handling this case.
13641 esac
13642 else
13643 if test -z "$postdeps_CXX"; then
13644 postdeps_CXX="${prev}${p}"
13645 else
13646 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13647 fi
13648 fi
13649 ;;
13650
13651 *.$objext)
13652 # This assumes that the test object file only shows up
13653 # once in the compiler output.
13654 if test "$p" = "conftest.$objext"; then
13655 pre_test_object_deps_done=yes
13656 continue
13657 fi
13658
13659 if test "$pre_test_object_deps_done" = no; then
13660 if test -z "$predep_objects_CXX"; then
13661 predep_objects_CXX="$p"
13662 else
13663 predep_objects_CXX="$predep_objects_CXX $p"
13664 fi
13665 else
13666 if test -z "$postdep_objects_CXX"; then
13667 postdep_objects_CXX="$p"
13668 else
13669 postdep_objects_CXX="$postdep_objects_CXX $p"
13670 fi
13671 fi
13672 ;;
13673
13674 *) ;; # Ignore the rest.
13675
13676 esac
13677 done
13678
13679 # Clean up.
13680 rm -f a.out a.exe
13681 else
13682 echo "libtool.m4: error: problem compiling CXX test program"
13683 fi
13684
13685 $RM -f confest.$objext
13686
13687 # PORTME: override above test on systems where it is broken
13688 case $host_os in
13689 interix[3-9]*)
13690 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13691 # hack all around it, let's just trust "g++" to DTRT.
13692 predep_objects_CXX=
13693 postdep_objects_CXX=
13694 postdeps_CXX=
13695 ;;
13696
13697 linux*)
13698 case `$CC -V 2>&1 | sed 5q` in
13699 *Sun\ C*)
13700 # Sun C++ 5.9
13701
13702 # The more standards-conforming stlport4 library is
13703 # incompatible with the Cstd library. Avoid specifying
13704 # it if it's in CXXFLAGS. Ignore libCrun as
13705 # -library=stlport4 depends on it.
13706 case " $CXX $CXXFLAGS " in
13707 *" -library=stlport4 "*)
13708 solaris_use_stlport4=yes
13709 ;;
13710 esac
13711
13712 if test "$solaris_use_stlport4" != yes; then
13713 postdeps_CXX='-library=Cstd -library=Crun'
13714 fi
13715 ;;
13716 esac
13717 ;;
13718
13719 solaris*)
13720 case $cc_basename in
13721 CC*)
13722 # The more standards-conforming stlport4 library is
13723 # incompatible with the Cstd library. Avoid specifying
13724 # it if it's in CXXFLAGS. Ignore libCrun as
13725 # -library=stlport4 depends on it.
13726 case " $CXX $CXXFLAGS " in
13727 *" -library=stlport4 "*)
13728 solaris_use_stlport4=yes
13729 ;;
13730 esac
13731
13732 # Adding this requires a known-good setup of shared libraries for
13733 # Sun compiler versions before 5.6, else PIC objects from an old
13734 # archive will be linked into the output, leading to subtle bugs.
13735 if test "$solaris_use_stlport4" != yes; then
13736 postdeps_CXX='-library=Cstd -library=Crun'
13737 fi
13738 ;;
13739 esac
13740 ;;
13741 esac
13742
13743
13744 case " $postdeps_CXX " in
13745 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13746 esac
13747 compiler_lib_search_dirs_CXX=
13748 if test -n "${compiler_lib_search_path_CXX}"; then
13749 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13750 fi
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782 lt_prog_compiler_wl_CXX=
13783 lt_prog_compiler_pic_CXX=
13784 lt_prog_compiler_static_CXX=
13785
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13787 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13788
13789 # C++ specific cases for pic, static, wl, etc.
13790 if test "$GXX" = yes; then
13791 lt_prog_compiler_wl_CXX='-Wl,'
13792 lt_prog_compiler_static_CXX='-static'
13793
13794 case $host_os in
13795 aix*)
13796 # All AIX code is PIC.
13797 if test "$host_cpu" = ia64; then
13798 # AIX 5 now supports IA64 processor
13799 lt_prog_compiler_static_CXX='-Bstatic'
13800 fi
13801 lt_prog_compiler_pic_CXX='-fPIC'
13802 ;;
13803
13804 amigaos*)
13805 case $host_cpu in
13806 powerpc)
13807 # see comment about AmigaOS4 .so support
13808 lt_prog_compiler_pic_CXX='-fPIC'
13809 ;;
13810 m68k)
13811 # FIXME: we need at least 68020 code to build shared libraries, but
13812 # adding the `-m68020' flag to GCC prevents building anything better,
13813 # like `-m68040'.
13814 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13815 ;;
13816 esac
13817 ;;
13818
13819 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13820 # PIC is the default for these OSes.
13821 ;;
13822 mingw* | cygwin* | os2* | pw32* | cegcc*)
13823 # This hack is so that the source file can tell whether it is being
13824 # built for inclusion in a dll (and should export symbols for example).
13825 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13826 # (--disable-auto-import) libraries
13827 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13828 ;;
13829 darwin* | rhapsody*)
13830 # PIC is the default on this platform
13831 # Common symbols not allowed in MH_DYLIB files
13832 lt_prog_compiler_pic_CXX='-fno-common'
13833 ;;
13834 *djgpp*)
13835 # DJGPP does not support shared libraries at all
13836 lt_prog_compiler_pic_CXX=
13837 ;;
13838 haiku*)
13839 # PIC is the default for Haiku.
13840 # The "-static" flag exists, but is broken.
13841 lt_prog_compiler_static_CXX=
13842 ;;
13843 interix[3-9]*)
13844 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13845 # Instead, we relocate shared libraries at runtime.
13846 ;;
13847 sysv4*MP*)
13848 if test -d /usr/nec; then
13849 lt_prog_compiler_pic_CXX=-Kconform_pic
13850 fi
13851 ;;
13852 hpux*)
13853 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13854 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13855 # sets the default TLS model and affects inlining.
13856 case $host_cpu in
13857 hppa*64*)
13858 ;;
13859 *)
13860 lt_prog_compiler_pic_CXX='-fPIC'
13861 ;;
13862 esac
13863 ;;
13864 *qnx* | *nto*)
13865 # QNX uses GNU C++, but need to define -shared option too, otherwise
13866 # it will coredump.
13867 lt_prog_compiler_pic_CXX='-fPIC -shared'
13868 ;;
13869 *)
13870 lt_prog_compiler_pic_CXX='-fPIC'
13871 ;;
13872 esac
13873 else
13874 case $host_os in
13875 aix[4-9]*)
13876 # All AIX code is PIC.
13877 if test "$host_cpu" = ia64; then
13878 # AIX 5 now supports IA64 processor
13879 lt_prog_compiler_static_CXX='-Bstatic'
13880 else
13881 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13882 fi
13883 ;;
13884 chorus*)
13885 case $cc_basename in
13886 cxch68*)
13887 # Green Hills C++ Compiler
13888 # _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"
13889 ;;
13890 esac
13891 ;;
13892 dgux*)
13893 case $cc_basename in
13894 ec++*)
13895 lt_prog_compiler_pic_CXX='-KPIC'
13896 ;;
13897 ghcx*)
13898 # Green Hills C++ Compiler
13899 lt_prog_compiler_pic_CXX='-pic'
13900 ;;
13901 *)
13902 ;;
13903 esac
13904 ;;
13905 freebsd* | dragonfly*)
13906 # FreeBSD uses GNU C++
13907 ;;
13908 hpux9* | hpux10* | hpux11*)
13909 case $cc_basename in
13910 CC*)
13911 lt_prog_compiler_wl_CXX='-Wl,'
13912 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13913 if test "$host_cpu" != ia64; then
13914 lt_prog_compiler_pic_CXX='+Z'
13915 fi
13916 ;;
13917 aCC*)
13918 lt_prog_compiler_wl_CXX='-Wl,'
13919 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13920 case $host_cpu in
13921 hppa*64*|ia64*)
13922 # +Z the default
13923 ;;
13924 *)
13925 lt_prog_compiler_pic_CXX='+Z'
13926 ;;
13927 esac
13928 ;;
13929 *)
13930 ;;
13931 esac
13932 ;;
13933 interix*)
13934 # This is c89, which is MS Visual C++ (no shared libs)
13935 # Anyone wants to do a port?
13936 ;;
13937 irix5* | irix6* | nonstopux*)
13938 case $cc_basename in
13939 CC*)
13940 lt_prog_compiler_wl_CXX='-Wl,'
13941 lt_prog_compiler_static_CXX='-non_shared'
13942 # CC pic flag -KPIC is the default.
13943 ;;
13944 *)
13945 ;;
13946 esac
13947 ;;
13948 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13949 case $cc_basename in
13950 KCC*)
13951 # KAI C++ Compiler
13952 lt_prog_compiler_wl_CXX='--backend -Wl,'
13953 lt_prog_compiler_pic_CXX='-fPIC'
13954 ;;
13955 ecpc* )
13956 # old Intel C++ for x86_64 which still supported -KPIC.
13957 lt_prog_compiler_wl_CXX='-Wl,'
13958 lt_prog_compiler_pic_CXX='-KPIC'
13959 lt_prog_compiler_static_CXX='-static'
13960 ;;
13961 icpc* )
13962 # Intel C++, used to be incompatible with GCC.
13963 # ICC 10 doesn't accept -KPIC any more.
13964 lt_prog_compiler_wl_CXX='-Wl,'
13965 lt_prog_compiler_pic_CXX='-fPIC'
13966 lt_prog_compiler_static_CXX='-static'
13967 ;;
13968 pgCC* | pgcpp*)
13969 # Portland Group C++ compiler
13970 lt_prog_compiler_wl_CXX='-Wl,'
13971 lt_prog_compiler_pic_CXX='-fpic'
13972 lt_prog_compiler_static_CXX='-Bstatic'
13973 ;;
13974 cxx*)
13975 # Compaq C++
13976 # Make sure the PIC flag is empty. It appears that all Alpha
13977 # Linux and Compaq Tru64 Unix objects are PIC.
13978 lt_prog_compiler_pic_CXX=
13979 lt_prog_compiler_static_CXX='-non_shared'
13980 ;;
13981 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13982 # IBM XL 8.0, 9.0 on PPC and BlueGene
13983 lt_prog_compiler_wl_CXX='-Wl,'
13984 lt_prog_compiler_pic_CXX='-qpic'
13985 lt_prog_compiler_static_CXX='-qstaticlink'
13986 ;;
13987 *)
13988 case `$CC -V 2>&1 | sed 5q` in
13989 *Sun\ C*)
13990 # Sun C++ 5.9
13991 lt_prog_compiler_pic_CXX='-KPIC'
13992 lt_prog_compiler_static_CXX='-Bstatic'
13993 lt_prog_compiler_wl_CXX='-Qoption ld '
13994 ;;
13995 esac
13996 ;;
13997 esac
13998 ;;
13999 lynxos*)
14000 ;;
14001 m88k*)
14002 ;;
14003 mvs*)
14004 case $cc_basename in
14005 cxx*)
14006 lt_prog_compiler_pic_CXX='-W c,exportall'
14007 ;;
14008 *)
14009 ;;
14010 esac
14011 ;;
14012 netbsd*)
14013 ;;
14014 *qnx* | *nto*)
14015 # QNX uses GNU C++, but need to define -shared option too, otherwise
14016 # it will coredump.
14017 lt_prog_compiler_pic_CXX='-fPIC -shared'
14018 ;;
14019 osf3* | osf4* | osf5*)
14020 case $cc_basename in
14021 KCC*)
14022 lt_prog_compiler_wl_CXX='--backend -Wl,'
14023 ;;
14024 RCC*)
14025 # Rational C++ 2.4.1
14026 lt_prog_compiler_pic_CXX='-pic'
14027 ;;
14028 cxx*)
14029 # Digital/Compaq C++
14030 lt_prog_compiler_wl_CXX='-Wl,'
14031 # Make sure the PIC flag is empty. It appears that all Alpha
14032 # Linux and Compaq Tru64 Unix objects are PIC.
14033 lt_prog_compiler_pic_CXX=
14034 lt_prog_compiler_static_CXX='-non_shared'
14035 ;;
14036 *)
14037 ;;
14038 esac
14039 ;;
14040 psos*)
14041 ;;
14042 solaris*)
14043 case $cc_basename in
14044 CC*)
14045 # Sun C++ 4.2, 5.x and Centerline C++
14046 lt_prog_compiler_pic_CXX='-KPIC'
14047 lt_prog_compiler_static_CXX='-Bstatic'
14048 lt_prog_compiler_wl_CXX='-Qoption ld '
14049 ;;
14050 gcx*)
14051 # Green Hills C++ Compiler
14052 lt_prog_compiler_pic_CXX='-PIC'
14053 ;;
14054 *)
14055 ;;
14056 esac
14057 ;;
14058 sunos4*)
14059 case $cc_basename in
14060 CC*)
14061 # Sun C++ 4.x
14062 lt_prog_compiler_pic_CXX='-pic'
14063 lt_prog_compiler_static_CXX='-Bstatic'
14064 ;;
14065 lcc*)
14066 # Lucid
14067 lt_prog_compiler_pic_CXX='-pic'
14068 ;;
14069 *)
14070 ;;
14071 esac
14072 ;;
14073 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14074 case $cc_basename in
14075 CC*)
14076 lt_prog_compiler_wl_CXX='-Wl,'
14077 lt_prog_compiler_pic_CXX='-KPIC'
14078 lt_prog_compiler_static_CXX='-Bstatic'
14079 ;;
14080 esac
14081 ;;
14082 tandem*)
14083 case $cc_basename in
14084 NCC*)
14085 # NonStop-UX NCC 3.20
14086 lt_prog_compiler_pic_CXX='-KPIC'
14087 ;;
14088 *)
14089 ;;
14090 esac
14091 ;;
14092 vxworks*)
14093 ;;
14094 *)
14095 lt_prog_compiler_can_build_shared_CXX=no
14096 ;;
14097 esac
14098 fi
14099
14100 case $host_os in
14101 # For platforms which do not support PIC, -DPIC is meaningless:
14102 *djgpp*)
14103 lt_prog_compiler_pic_CXX=
14104 ;;
14105 *)
14106 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14107 ;;
14108 esac
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14110 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14111
14112
14113
14114 #
14115 # Check to make sure the PIC flag actually works.
14116 #
14117 if test -n "$lt_prog_compiler_pic_CXX"; then
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14119 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14120 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14121 $as_echo_n "(cached) " >&6
14122 else
14123 lt_cv_prog_compiler_pic_works_CXX=no
14124 ac_outfile=conftest.$ac_objext
14125 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14126 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14127 # Insert the option either (1) after the last *FLAGS variable, or
14128 # (2) before a word containing "conftest.", or (3) at the end.
14129 # Note that $ac_compile itself does not contain backslashes and begins
14130 # with a dollar sign (not a hyphen), so the echo should work correctly.
14131 # The option is referenced via a variable to avoid confusing sed.
14132 lt_compile=`echo "$ac_compile" | $SED \
14133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14135 -e 's:$: $lt_compiler_flag:'`
14136 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14137 (eval "$lt_compile" 2>conftest.err)
14138 ac_status=$?
14139 cat conftest.err >&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 if (exit $ac_status) && test -s "$ac_outfile"; then
14142 # The compiler can only warn and ignore the option if not recognized
14143 # So say no if there are warnings other than the usual output.
14144 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14145 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14146 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14147 lt_cv_prog_compiler_pic_works_CXX=yes
14148 fi
14149 fi
14150 $RM conftest*
14151
14152 fi
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14154 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14155
14156 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14157 case $lt_prog_compiler_pic_CXX in
14158 "" | " "*) ;;
14159 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14160 esac
14161 else
14162 lt_prog_compiler_pic_CXX=
14163 lt_prog_compiler_can_build_shared_CXX=no
14164 fi
14165
14166 fi
14167
14168
14169
14170 #
14171 # Check to make sure the static flag actually works.
14172 #
14173 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14175 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14176 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14177 $as_echo_n "(cached) " >&6
14178 else
14179 lt_cv_prog_compiler_static_works_CXX=no
14180 save_LDFLAGS="$LDFLAGS"
14181 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14182 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14183 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14184 # The linker can only warn and ignore the option if not recognized
14185 # So say no if there are warnings
14186 if test -s conftest.err; then
14187 # Append any errors to the config.log.
14188 cat conftest.err 1>&5
14189 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14191 if diff conftest.exp conftest.er2 >/dev/null; then
14192 lt_cv_prog_compiler_static_works_CXX=yes
14193 fi
14194 else
14195 lt_cv_prog_compiler_static_works_CXX=yes
14196 fi
14197 fi
14198 $RM -r conftest*
14199 LDFLAGS="$save_LDFLAGS"
14200
14201 fi
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14203 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14204
14205 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14206 :
14207 else
14208 lt_prog_compiler_static_CXX=
14209 fi
14210
14211
14212
14213
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14215 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14216 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14217 $as_echo_n "(cached) " >&6
14218 else
14219 lt_cv_prog_compiler_c_o_CXX=no
14220 $RM -r conftest 2>/dev/null
14221 mkdir conftest
14222 cd conftest
14223 mkdir out
14224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14225
14226 lt_compiler_flag="-o out/conftest2.$ac_objext"
14227 # Insert the option either (1) after the last *FLAGS variable, or
14228 # (2) before a word containing "conftest.", or (3) at the end.
14229 # Note that $ac_compile itself does not contain backslashes and begins
14230 # with a dollar sign (not a hyphen), so the echo should work correctly.
14231 lt_compile=`echo "$ac_compile" | $SED \
14232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14234 -e 's:$: $lt_compiler_flag:'`
14235 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14236 (eval "$lt_compile" 2>out/conftest.err)
14237 ac_status=$?
14238 cat out/conftest.err >&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14241 then
14242 # The compiler can only warn and ignore the option if not recognized
14243 # So say no if there are warnings
14244 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14245 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14246 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14247 lt_cv_prog_compiler_c_o_CXX=yes
14248 fi
14249 fi
14250 chmod u+w . 2>&5
14251 $RM conftest*
14252 # SGI C++ compiler will create directory out/ii_files/ for
14253 # template instantiation
14254 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14255 $RM out/* && rmdir out
14256 cd ..
14257 $RM -r conftest
14258 $RM conftest*
14259
14260 fi
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14262 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14263
14264
14265
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14267 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14268 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14269 $as_echo_n "(cached) " >&6
14270 else
14271 lt_cv_prog_compiler_c_o_CXX=no
14272 $RM -r conftest 2>/dev/null
14273 mkdir conftest
14274 cd conftest
14275 mkdir out
14276 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14277
14278 lt_compiler_flag="-o out/conftest2.$ac_objext"
14279 # Insert the option either (1) after the last *FLAGS variable, or
14280 # (2) before a word containing "conftest.", or (3) at the end.
14281 # Note that $ac_compile itself does not contain backslashes and begins
14282 # with a dollar sign (not a hyphen), so the echo should work correctly.
14283 lt_compile=`echo "$ac_compile" | $SED \
14284 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14286 -e 's:$: $lt_compiler_flag:'`
14287 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14288 (eval "$lt_compile" 2>out/conftest.err)
14289 ac_status=$?
14290 cat out/conftest.err >&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14293 then
14294 # The compiler can only warn and ignore the option if not recognized
14295 # So say no if there are warnings
14296 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14297 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14298 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14299 lt_cv_prog_compiler_c_o_CXX=yes
14300 fi
14301 fi
14302 chmod u+w . 2>&5
14303 $RM conftest*
14304 # SGI C++ compiler will create directory out/ii_files/ for
14305 # template instantiation
14306 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14307 $RM out/* && rmdir out
14308 cd ..
14309 $RM -r conftest
14310 $RM conftest*
14311
14312 fi
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14314 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14315
14316
14317
14318
14319 hard_links="nottested"
14320 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14321 # do not overwrite the value of need_locks provided by the user
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14323 $as_echo_n "checking if we can lock with hard links... " >&6; }
14324 hard_links=yes
14325 $RM conftest*
14326 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14327 touch conftest.a
14328 ln conftest.a conftest.b 2>&5 || hard_links=no
14329 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14331 $as_echo "$hard_links" >&6; }
14332 if test "$hard_links" = no; then
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14334 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14335 need_locks=warn
14336 fi
14337 else
14338 need_locks=no
14339 fi
14340
14341
14342
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14344 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14345
14346 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14347 case $host_os in
14348 aix[4-9]*)
14349 # If we're using GNU nm, then we don't want the "-C" option.
14350 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14351 # Also, AIX nm treats weak defined symbols like other global defined
14352 # symbols, whereas GNU nm marks them as "W".
14353 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14354 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'
14355 else
14356 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'
14357 fi
14358 ;;
14359 pw32*)
14360 export_symbols_cmds_CXX="$ltdll_cmds"
14361 ;;
14362 cygwin* | mingw* | cegcc*)
14363 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'
14364 ;;
14365 *)
14366 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14367 ;;
14368 esac
14369 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14370
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14372 $as_echo "$ld_shlibs_CXX" >&6; }
14373 test "$ld_shlibs_CXX" = no && can_build_shared=no
14374
14375 with_gnu_ld_CXX=$with_gnu_ld
14376
14377
14378
14379
14380
14381
14382 #
14383 # Do we need to explicitly link libc?
14384 #
14385 case "x$archive_cmds_need_lc_CXX" in
14386 x|xyes)
14387 # Assume -lc should be added
14388 archive_cmds_need_lc_CXX=yes
14389
14390 if test "$enable_shared" = yes && test "$GCC" = yes; then
14391 case $archive_cmds_CXX in
14392 *'~'*)
14393 # FIXME: we may have to deal with multi-command sequences.
14394 ;;
14395 '$CC '*)
14396 # Test whether the compiler implicitly links with -lc since on some
14397 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14398 # to ld, don't add -lc before -lgcc.
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14400 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14401 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14402 $as_echo_n "(cached) " >&6
14403 else
14404 $RM conftest*
14405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14406
14407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14408 (eval $ac_compile) 2>&5
14409 ac_status=$?
14410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14411 test $ac_status = 0; } 2>conftest.err; then
14412 soname=conftest
14413 lib=conftest
14414 libobjs=conftest.$ac_objext
14415 deplibs=
14416 wl=$lt_prog_compiler_wl_CXX
14417 pic_flag=$lt_prog_compiler_pic_CXX
14418 compiler_flags=-v
14419 linker_flags=-v
14420 verstring=
14421 output_objdir=.
14422 libname=conftest
14423 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14424 allow_undefined_flag_CXX=
14425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14426 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14427 ac_status=$?
14428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14429 test $ac_status = 0; }
14430 then
14431 lt_cv_archive_cmds_need_lc_CXX=no
14432 else
14433 lt_cv_archive_cmds_need_lc_CXX=yes
14434 fi
14435 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14436 else
14437 cat conftest.err 1>&5
14438 fi
14439 $RM conftest*
14440
14441 fi
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14443 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14444 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14445 ;;
14446 esac
14447 fi
14448 ;;
14449 esac
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14515 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14516
14517 library_names_spec=
14518 libname_spec='lib$name'
14519 soname_spec=
14520 shrext_cmds=".so"
14521 postinstall_cmds=
14522 postuninstall_cmds=
14523 finish_cmds=
14524 finish_eval=
14525 shlibpath_var=
14526 shlibpath_overrides_runpath=unknown
14527 version_type=none
14528 dynamic_linker="$host_os ld.so"
14529 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14530 need_lib_prefix=unknown
14531 hardcode_into_libs=no
14532
14533 # when you set need_version to no, make sure it does not cause -set_version
14534 # flags to be left without arguments
14535 need_version=unknown
14536
14537 case $host_os in
14538 aix3*)
14539 version_type=linux
14540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14541 shlibpath_var=LIBPATH
14542
14543 # AIX 3 has no versioning support, so we append a major version to the name.
14544 soname_spec='${libname}${release}${shared_ext}$major'
14545 ;;
14546
14547 aix[4-9]*)
14548 version_type=linux
14549 need_lib_prefix=no
14550 need_version=no
14551 hardcode_into_libs=yes
14552 if test "$host_cpu" = ia64; then
14553 # AIX 5 supports IA64
14554 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14555 shlibpath_var=LD_LIBRARY_PATH
14556 else
14557 # With GCC up to 2.95.x, collect2 would create an import file
14558 # for dependence libraries. The import file would start with
14559 # the line `#! .'. This would cause the generated library to
14560 # depend on `.', always an invalid library. This was fixed in
14561 # development snapshots of GCC prior to 3.0.
14562 case $host_os in
14563 aix4 | aix4.[01] | aix4.[01].*)
14564 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14565 echo ' yes '
14566 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14567 :
14568 else
14569 can_build_shared=no
14570 fi
14571 ;;
14572 esac
14573 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14574 # soname into executable. Probably we can add versioning support to
14575 # collect2, so additional links can be useful in future.
14576 if test "$aix_use_runtimelinking" = yes; then
14577 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14578 # instead of lib<name>.a to let people know that these are not
14579 # typical AIX shared libraries.
14580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14581 else
14582 # We preserve .a as extension for shared libraries through AIX4.2
14583 # and later when we are not doing run time linking.
14584 library_names_spec='${libname}${release}.a $libname.a'
14585 soname_spec='${libname}${release}${shared_ext}$major'
14586 fi
14587 shlibpath_var=LIBPATH
14588 fi
14589 ;;
14590
14591 amigaos*)
14592 case $host_cpu in
14593 powerpc)
14594 # Since July 2007 AmigaOS4 officially supports .so libraries.
14595 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14597 ;;
14598 m68k)
14599 library_names_spec='$libname.ixlibrary $libname.a'
14600 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14601 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'
14602 ;;
14603 esac
14604 ;;
14605
14606 beos*)
14607 library_names_spec='${libname}${shared_ext}'
14608 dynamic_linker="$host_os ld.so"
14609 shlibpath_var=LIBRARY_PATH
14610 ;;
14611
14612 bsdi[45]*)
14613 version_type=linux
14614 need_version=no
14615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14616 soname_spec='${libname}${release}${shared_ext}$major'
14617 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14618 shlibpath_var=LD_LIBRARY_PATH
14619 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14620 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14621 # the default ld.so.conf also contains /usr/contrib/lib and
14622 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14623 # libtool to hard-code these into programs
14624 ;;
14625
14626 cygwin* | mingw* | pw32* | cegcc*)
14627 version_type=windows
14628 shrext_cmds=".dll"
14629 need_version=no
14630 need_lib_prefix=no
14631
14632 case $GCC,$host_os in
14633 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14634 library_names_spec='$libname.dll.a'
14635 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14636 postinstall_cmds='base_file=`basename \${file}`~
14637 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14638 dldir=$destdir/`dirname \$dlpath`~
14639 test -d \$dldir || mkdir -p \$dldir~
14640 $install_prog $dir/$dlname \$dldir/$dlname~
14641 chmod a+x \$dldir/$dlname~
14642 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14643 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14644 fi'
14645 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14646 dlpath=$dir/\$dldll~
14647 $RM \$dlpath'
14648 shlibpath_overrides_runpath=yes
14649
14650 case $host_os in
14651 cygwin*)
14652 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14653 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14654
14655 ;;
14656 mingw* | cegcc*)
14657 # MinGW DLLs use traditional 'lib' prefix
14658 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14659 ;;
14660 pw32*)
14661 # pw32 DLLs use 'pw' prefix rather than 'lib'
14662 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14663 ;;
14664 esac
14665 ;;
14666
14667 *)
14668 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14669 ;;
14670 esac
14671 dynamic_linker='Win32 ld.exe'
14672 # FIXME: first we should search . and the directory the executable is in
14673 shlibpath_var=PATH
14674 ;;
14675
14676 darwin* | rhapsody*)
14677 dynamic_linker="$host_os dyld"
14678 version_type=darwin
14679 need_lib_prefix=no
14680 need_version=no
14681 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14682 soname_spec='${libname}${release}${major}$shared_ext'
14683 shlibpath_overrides_runpath=yes
14684 shlibpath_var=DYLD_LIBRARY_PATH
14685 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14686
14687 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14688 ;;
14689
14690 dgux*)
14691 version_type=linux
14692 need_lib_prefix=no
14693 need_version=no
14694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14695 soname_spec='${libname}${release}${shared_ext}$major'
14696 shlibpath_var=LD_LIBRARY_PATH
14697 ;;
14698
14699 freebsd* | dragonfly*)
14700 # DragonFly does not have aout. When/if they implement a new
14701 # versioning mechanism, adjust this.
14702 if test -x /usr/bin/objformat; then
14703 objformat=`/usr/bin/objformat`
14704 else
14705 case $host_os in
14706 freebsd[23].*) objformat=aout ;;
14707 *) objformat=elf ;;
14708 esac
14709 fi
14710 version_type=freebsd-$objformat
14711 case $version_type in
14712 freebsd-elf*)
14713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14714 need_version=no
14715 need_lib_prefix=no
14716 ;;
14717 freebsd-*)
14718 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14719 need_version=yes
14720 ;;
14721 esac
14722 shlibpath_var=LD_LIBRARY_PATH
14723 case $host_os in
14724 freebsd2.*)
14725 shlibpath_overrides_runpath=yes
14726 ;;
14727 freebsd3.[01]* | freebsdelf3.[01]*)
14728 shlibpath_overrides_runpath=yes
14729 hardcode_into_libs=yes
14730 ;;
14731 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14732 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14733 shlibpath_overrides_runpath=no
14734 hardcode_into_libs=yes
14735 ;;
14736 *) # from 4.6 on, and DragonFly
14737 shlibpath_overrides_runpath=yes
14738 hardcode_into_libs=yes
14739 ;;
14740 esac
14741 ;;
14742
14743 haiku*)
14744 version_type=linux
14745 need_lib_prefix=no
14746 need_version=no
14747 dynamic_linker="$host_os runtime_loader"
14748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14749 soname_spec='${libname}${release}${shared_ext}$major'
14750 shlibpath_var=LIBRARY_PATH
14751 shlibpath_overrides_runpath=yes
14752 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14753 hardcode_into_libs=yes
14754 ;;
14755
14756 hpux9* | hpux10* | hpux11*)
14757 # Give a soname corresponding to the major version so that dld.sl refuses to
14758 # link against other versions.
14759 version_type=sunos
14760 need_lib_prefix=no
14761 need_version=no
14762 case $host_cpu in
14763 ia64*)
14764 shrext_cmds='.so'
14765 hardcode_into_libs=yes
14766 dynamic_linker="$host_os dld.so"
14767 shlibpath_var=LD_LIBRARY_PATH
14768 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14770 soname_spec='${libname}${release}${shared_ext}$major'
14771 if test "X$HPUX_IA64_MODE" = X32; then
14772 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14773 else
14774 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14775 fi
14776 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14777 ;;
14778 hppa*64*)
14779 shrext_cmds='.sl'
14780 hardcode_into_libs=yes
14781 dynamic_linker="$host_os dld.sl"
14782 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14783 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14785 soname_spec='${libname}${release}${shared_ext}$major'
14786 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14787 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14788 ;;
14789 *)
14790 shrext_cmds='.sl'
14791 dynamic_linker="$host_os dld.sl"
14792 shlibpath_var=SHLIB_PATH
14793 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14795 soname_spec='${libname}${release}${shared_ext}$major'
14796 ;;
14797 esac
14798 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14799 postinstall_cmds='chmod 555 $lib'
14800 # or fails outright, so override atomically:
14801 install_override_mode=555
14802 ;;
14803
14804 interix[3-9]*)
14805 version_type=linux
14806 need_lib_prefix=no
14807 need_version=no
14808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14809 soname_spec='${libname}${release}${shared_ext}$major'
14810 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14811 shlibpath_var=LD_LIBRARY_PATH
14812 shlibpath_overrides_runpath=no
14813 hardcode_into_libs=yes
14814 ;;
14815
14816 irix5* | irix6* | nonstopux*)
14817 case $host_os in
14818 nonstopux*) version_type=nonstopux ;;
14819 *)
14820 if test "$lt_cv_prog_gnu_ld" = yes; then
14821 version_type=linux
14822 else
14823 version_type=irix
14824 fi ;;
14825 esac
14826 need_lib_prefix=no
14827 need_version=no
14828 soname_spec='${libname}${release}${shared_ext}$major'
14829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14830 case $host_os in
14831 irix5* | nonstopux*)
14832 libsuff= shlibsuff=
14833 ;;
14834 *)
14835 case $LD in # libtool.m4 will add one of these switches to LD
14836 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14837 libsuff= shlibsuff= libmagic=32-bit;;
14838 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14839 libsuff=32 shlibsuff=N32 libmagic=N32;;
14840 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14841 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14842 *) libsuff= shlibsuff= libmagic=never-match;;
14843 esac
14844 ;;
14845 esac
14846 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14847 shlibpath_overrides_runpath=no
14848 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14849 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14850 hardcode_into_libs=yes
14851 ;;
14852
14853 # No shared lib support for Linux oldld, aout, or coff.
14854 linux*oldld* | linux*aout* | linux*coff*)
14855 dynamic_linker=no
14856 ;;
14857
14858 # This must be Linux ELF.
14859
14860 # uclinux* changes (here and below) have been submitted to the libtool
14861 # project, but have not yet been accepted: they are GCC-local changes
14862 # for the time being. (See
14863 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14864 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
14865 version_type=linux
14866 need_lib_prefix=no
14867 need_version=no
14868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14869 soname_spec='${libname}${release}${shared_ext}$major'
14870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14871 shlibpath_var=LD_LIBRARY_PATH
14872 shlibpath_overrides_runpath=no
14873
14874 # Some binutils ld are patched to set DT_RUNPATH
14875 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14876 $as_echo_n "(cached) " >&6
14877 else
14878 lt_cv_shlibpath_overrides_runpath=no
14879 save_LDFLAGS=$LDFLAGS
14880 save_libdir=$libdir
14881 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14882 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14884 /* end confdefs.h. */
14885
14886 int
14887 main ()
14888 {
14889
14890 ;
14891 return 0;
14892 }
14893 _ACEOF
14894 if ac_fn_cxx_try_link "$LINENO"; then :
14895 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14896 lt_cv_shlibpath_overrides_runpath=yes
14897 fi
14898 fi
14899 rm -f core conftest.err conftest.$ac_objext \
14900 conftest$ac_exeext conftest.$ac_ext
14901 LDFLAGS=$save_LDFLAGS
14902 libdir=$save_libdir
14903
14904 fi
14905
14906 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14907
14908 # This implies no fast_install, which is unacceptable.
14909 # Some rework will be needed to allow for fast_install
14910 # before this can be enabled.
14911 hardcode_into_libs=yes
14912
14913 # Append ld.so.conf contents to the search path
14914 if test -f /etc/ld.so.conf; then
14915 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' ' '`
14916 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14917 fi
14918
14919 # We used to test for /lib/ld.so.1 and disable shared libraries on
14920 # powerpc, because MkLinux only supported shared libraries with the
14921 # GNU dynamic linker. Since this was broken with cross compilers,
14922 # most powerpc-linux boxes support dynamic linking these days and
14923 # people can always --disable-shared, the test was removed, and we
14924 # assume the GNU/Linux dynamic linker is in use.
14925 dynamic_linker='GNU/Linux ld.so'
14926 ;;
14927
14928 netbsd*)
14929 version_type=sunos
14930 need_lib_prefix=no
14931 need_version=no
14932 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14935 dynamic_linker='NetBSD (a.out) ld.so'
14936 else
14937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14938 soname_spec='${libname}${release}${shared_ext}$major'
14939 dynamic_linker='NetBSD ld.elf_so'
14940 fi
14941 shlibpath_var=LD_LIBRARY_PATH
14942 shlibpath_overrides_runpath=yes
14943 hardcode_into_libs=yes
14944 ;;
14945
14946 newsos6)
14947 version_type=linux
14948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14949 shlibpath_var=LD_LIBRARY_PATH
14950 shlibpath_overrides_runpath=yes
14951 ;;
14952
14953 *nto* | *qnx*)
14954 version_type=qnx
14955 need_lib_prefix=no
14956 need_version=no
14957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14958 soname_spec='${libname}${release}${shared_ext}$major'
14959 shlibpath_var=LD_LIBRARY_PATH
14960 shlibpath_overrides_runpath=no
14961 hardcode_into_libs=yes
14962 dynamic_linker='ldqnx.so'
14963 ;;
14964
14965 openbsd*)
14966 version_type=sunos
14967 sys_lib_dlsearch_path_spec="/usr/lib"
14968 need_lib_prefix=no
14969 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14970 case $host_os in
14971 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14972 *) need_version=no ;;
14973 esac
14974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14975 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14976 shlibpath_var=LD_LIBRARY_PATH
14977 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14978 case $host_os in
14979 openbsd2.[89] | openbsd2.[89].*)
14980 shlibpath_overrides_runpath=no
14981 ;;
14982 *)
14983 shlibpath_overrides_runpath=yes
14984 ;;
14985 esac
14986 else
14987 shlibpath_overrides_runpath=yes
14988 fi
14989 ;;
14990
14991 os2*)
14992 libname_spec='$name'
14993 shrext_cmds=".dll"
14994 need_lib_prefix=no
14995 library_names_spec='$libname${shared_ext} $libname.a'
14996 dynamic_linker='OS/2 ld.exe'
14997 shlibpath_var=LIBPATH
14998 ;;
14999
15000 osf3* | osf4* | osf5*)
15001 version_type=osf
15002 need_lib_prefix=no
15003 need_version=no
15004 soname_spec='${libname}${release}${shared_ext}$major'
15005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15006 shlibpath_var=LD_LIBRARY_PATH
15007 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15008 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15009 ;;
15010
15011 rdos*)
15012 dynamic_linker=no
15013 ;;
15014
15015 solaris*)
15016 version_type=linux
15017 need_lib_prefix=no
15018 need_version=no
15019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15020 soname_spec='${libname}${release}${shared_ext}$major'
15021 shlibpath_var=LD_LIBRARY_PATH
15022 shlibpath_overrides_runpath=yes
15023 hardcode_into_libs=yes
15024 # ldd complains unless libraries are executable
15025 postinstall_cmds='chmod +x $lib'
15026 ;;
15027
15028 sunos4*)
15029 version_type=sunos
15030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15031 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15032 shlibpath_var=LD_LIBRARY_PATH
15033 shlibpath_overrides_runpath=yes
15034 if test "$with_gnu_ld" = yes; then
15035 need_lib_prefix=no
15036 fi
15037 need_version=yes
15038 ;;
15039
15040 sysv4 | sysv4.3*)
15041 version_type=linux
15042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15043 soname_spec='${libname}${release}${shared_ext}$major'
15044 shlibpath_var=LD_LIBRARY_PATH
15045 case $host_vendor in
15046 sni)
15047 shlibpath_overrides_runpath=no
15048 need_lib_prefix=no
15049 runpath_var=LD_RUN_PATH
15050 ;;
15051 siemens)
15052 need_lib_prefix=no
15053 ;;
15054 motorola)
15055 need_lib_prefix=no
15056 need_version=no
15057 shlibpath_overrides_runpath=no
15058 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15059 ;;
15060 esac
15061 ;;
15062
15063 sysv4*MP*)
15064 if test -d /usr/nec ;then
15065 version_type=linux
15066 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15067 soname_spec='$libname${shared_ext}.$major'
15068 shlibpath_var=LD_LIBRARY_PATH
15069 fi
15070 ;;
15071
15072 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15073 version_type=freebsd-elf
15074 need_lib_prefix=no
15075 need_version=no
15076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15077 soname_spec='${libname}${release}${shared_ext}$major'
15078 shlibpath_var=LD_LIBRARY_PATH
15079 shlibpath_overrides_runpath=yes
15080 hardcode_into_libs=yes
15081 if test "$with_gnu_ld" = yes; then
15082 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15083 else
15084 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15085 case $host_os in
15086 sco3.2v5*)
15087 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15088 ;;
15089 esac
15090 fi
15091 sys_lib_dlsearch_path_spec='/usr/lib'
15092 ;;
15093
15094 tpf*)
15095 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15096 version_type=linux
15097 need_lib_prefix=no
15098 need_version=no
15099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15100 shlibpath_var=LD_LIBRARY_PATH
15101 shlibpath_overrides_runpath=no
15102 hardcode_into_libs=yes
15103 ;;
15104
15105 uts4*)
15106 version_type=linux
15107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15108 soname_spec='${libname}${release}${shared_ext}$major'
15109 shlibpath_var=LD_LIBRARY_PATH
15110 ;;
15111
15112 # Shared libraries for VwWorks, >= 7 only at this stage
15113 # and (fpic) still incompatible with "large" code models
15114 # in a few configurations. Only for RTP mode in any case,
15115 # and upon explicit request at configure time.
15116 vxworks7*)
15117 dynamic_linker=no
15118 case ${with_multisubdir}-${enable_shared} in
15119 *large*)
15120 ;;
15121 *mrtp*-yes)
15122 version_type=linux
15123 need_lib_prefix=no
15124 need_version=no
15125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15126 soname_spec='${libname}${release}${shared_ext}$major'
15127 dynamic_linker="$host_os module_loader"
15128 ;;
15129 esac
15130 ;;
15131 *)
15132 dynamic_linker=no
15133 ;;
15134 esac
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15136 $as_echo "$dynamic_linker" >&6; }
15137 test "$dynamic_linker" = no && can_build_shared=no
15138
15139 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15140 if test "$GCC" = yes; then
15141 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15142 fi
15143
15144 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15145 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15146 fi
15147 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15148 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15149 fi
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15189 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15190 hardcode_action_CXX=
15191 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15192 test -n "$runpath_var_CXX" ||
15193 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15194
15195 # We can hardcode non-existent directories.
15196 if test "$hardcode_direct_CXX" != no &&
15197 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15198 # have to relink, otherwise we might link with an installed library
15199 # when we should be linking with a yet-to-be-installed one
15200 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15201 test "$hardcode_minus_L_CXX" != no; then
15202 # Linking always hardcodes the temporary library directory.
15203 hardcode_action_CXX=relink
15204 else
15205 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15206 hardcode_action_CXX=immediate
15207 fi
15208 else
15209 # We cannot hardcode anything, or else we can only hardcode existing
15210 # directories.
15211 hardcode_action_CXX=unsupported
15212 fi
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15214 $as_echo "$hardcode_action_CXX" >&6; }
15215
15216 if test "$hardcode_action_CXX" = relink ||
15217 test "$inherit_rpath_CXX" = yes; then
15218 # Fast installation is not supported
15219 enable_fast_install=no
15220 elif test "$shlibpath_overrides_runpath" = yes ||
15221 test "$enable_shared" = no; then
15222 # Fast installation is not necessary
15223 enable_fast_install=needless
15224 fi
15225
15226
15227
15228
15229
15230
15231
15232 fi # test -n "$compiler"
15233
15234 CC=$lt_save_CC
15235 LDCXX=$LD
15236 LD=$lt_save_LD
15237 GCC=$lt_save_GCC
15238 with_gnu_ld=$lt_save_with_gnu_ld
15239 lt_cv_path_LDCXX=$lt_cv_path_LD
15240 lt_cv_path_LD=$lt_save_path_LD
15241 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15242 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15243 fi # test "$_lt_caught_CXX_error" != yes
15244
15245 ac_ext=c
15246 ac_cpp='$CPP $CPPFLAGS'
15247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263 ac_config_commands="$ac_config_commands libtool"
15264
15265
15266
15267
15268 # Only expand once:
15269
15270
15271
15272 # The tests for host and target for $enable_largefile require
15273 # canonical names.
15274
15275
15276
15277 # As the $enable_largefile decision depends on --enable-plugins we must set it
15278 # even in directories otherwise not depending on the $plugins option.
15279
15280
15281 maybe_plugins=no
15282 for ac_header in dlfcn.h
15283 do :
15284 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15285 "
15286 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15287 cat >>confdefs.h <<_ACEOF
15288 #define HAVE_DLFCN_H 1
15289 _ACEOF
15290 maybe_plugins=yes
15291 fi
15292
15293 done
15294
15295 for ac_header in windows.h
15296 do :
15297 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15298 "
15299 if test "x$ac_cv_header_windows_h" = xyes; then :
15300 cat >>confdefs.h <<_ACEOF
15301 #define HAVE_WINDOWS_H 1
15302 _ACEOF
15303 maybe_plugins=yes
15304 fi
15305
15306 done
15307
15308
15309 # Check whether --enable-plugins was given.
15310 if test "${enable_plugins+set}" = set; then :
15311 enableval=$enable_plugins; case "${enableval}" in
15312 no) plugins=no ;;
15313 *) plugins=yes
15314 if test "$maybe_plugins" != "yes" ; then
15315 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15316 fi ;;
15317 esac
15318 else
15319 plugins=$maybe_plugins
15320
15321 fi
15322
15323 if test "$plugins" = "yes"; then
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
15325 $as_echo_n "checking for library containing dlsym... " >&6; }
15326 if ${ac_cv_search_dlsym+:} false; then :
15327 $as_echo_n "(cached) " >&6
15328 else
15329 ac_func_search_save_LIBS=$LIBS
15330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15331 /* end confdefs.h. */
15332
15333 /* Override any GCC internal prototype to avoid an error.
15334 Use char because int might match the return type of a GCC
15335 builtin and then its argument prototype would still apply. */
15336 #ifdef __cplusplus
15337 extern "C"
15338 #endif
15339 char dlsym ();
15340 int
15341 main ()
15342 {
15343 return dlsym ();
15344 ;
15345 return 0;
15346 }
15347 _ACEOF
15348 for ac_lib in '' dl; do
15349 if test -z "$ac_lib"; then
15350 ac_res="none required"
15351 else
15352 ac_res=-l$ac_lib
15353 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15354 fi
15355 if ac_fn_c_try_link "$LINENO"; then :
15356 ac_cv_search_dlsym=$ac_res
15357 fi
15358 rm -f core conftest.err conftest.$ac_objext \
15359 conftest$ac_exeext
15360 if ${ac_cv_search_dlsym+:} false; then :
15361 break
15362 fi
15363 done
15364 if ${ac_cv_search_dlsym+:} false; then :
15365
15366 else
15367 ac_cv_search_dlsym=no
15368 fi
15369 rm conftest.$ac_ext
15370 LIBS=$ac_func_search_save_LIBS
15371 fi
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
15373 $as_echo "$ac_cv_search_dlsym" >&6; }
15374 ac_res=$ac_cv_search_dlsym
15375 if test "$ac_res" != no; then :
15376 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15377
15378 fi
15379
15380 fi
15381
15382
15383 case "${host}" in
15384 sparc-*-solaris*|i?86-*-solaris*)
15385 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
15386 # were mutually exclusive until Solaris 11.3. Without procfs support,
15387 # the bfd/ elf module cannot provide certain routines such as
15388 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
15389 # explicitly requested large-file support through the
15390 # --enable-largefile switch, disable large-file support in favor of
15391 # procfs support.
15392 #
15393 # Check if <sys/procfs.h> is incompatible with large-file support.
15394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15395 /* end confdefs.h. */
15396 #define _FILE_OFFSET_BITS 64
15397 #define _STRUCTURED_PROC 1
15398 #include <sys/procfs.h>
15399 int
15400 main ()
15401 {
15402
15403 ;
15404 return 0;
15405 }
15406 _ACEOF
15407 if ac_fn_c_try_compile "$LINENO"; then :
15408 acx_cv_procfs_lfs=yes
15409 else
15410 acx_cv_procfs_lfs=no
15411 fi
15412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15413 #
15414 # Forcefully disable large-file support only if necessary, gdb is in
15415 # tree and enabled.
15416 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
15417 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
15418 : ${enable_largefile="no"}
15419 if test "$plugins" = yes; then
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15421 plugin support disabled; require large-file support which is incompatible with GDB." >&5
15422 $as_echo "$as_me: WARNING:
15423 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
15424 plugins=no
15425 fi
15426 fi
15427 #
15428 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
15429 # benefit of g++ 9+ which predefines it on Solaris.
15430 if test "$enable_largefile" = no; then
15431 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
15432
15433 fi
15434 ;;
15435 esac
15436
15437 # Check whether --enable-largefile was given.
15438 if test "${enable_largefile+set}" = set; then :
15439 enableval=$enable_largefile;
15440 fi
15441
15442 if test "$enable_largefile" != no; then
15443
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15445 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15446 if ${ac_cv_sys_largefile_CC+:} false; then :
15447 $as_echo_n "(cached) " >&6
15448 else
15449 ac_cv_sys_largefile_CC=no
15450 if test "$GCC" != yes; then
15451 ac_save_CC=$CC
15452 while :; do
15453 # IRIX 6.2 and later do not support large files by default,
15454 # so use the C compiler's -n32 option if that helps.
15455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15456 /* end confdefs.h. */
15457 #include <sys/types.h>
15458 /* Check that off_t can represent 2**63 - 1 correctly.
15459 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15460 since some C++ compilers masquerading as C compilers
15461 incorrectly reject 9223372036854775807. */
15462 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15463 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15464 && LARGE_OFF_T % 2147483647 == 1)
15465 ? 1 : -1];
15466 int
15467 main ()
15468 {
15469
15470 ;
15471 return 0;
15472 }
15473 _ACEOF
15474 if ac_fn_c_try_compile "$LINENO"; then :
15475 break
15476 fi
15477 rm -f core conftest.err conftest.$ac_objext
15478 CC="$CC -n32"
15479 if ac_fn_c_try_compile "$LINENO"; then :
15480 ac_cv_sys_largefile_CC=' -n32'; break
15481 fi
15482 rm -f core conftest.err conftest.$ac_objext
15483 break
15484 done
15485 CC=$ac_save_CC
15486 rm -f conftest.$ac_ext
15487 fi
15488 fi
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15490 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15491 if test "$ac_cv_sys_largefile_CC" != no; then
15492 CC=$CC$ac_cv_sys_largefile_CC
15493 fi
15494
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15496 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15497 if ${ac_cv_sys_file_offset_bits+:} false; then :
15498 $as_echo_n "(cached) " >&6
15499 else
15500 while :; do
15501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15502 /* end confdefs.h. */
15503 #include <sys/types.h>
15504 /* Check that off_t can represent 2**63 - 1 correctly.
15505 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15506 since some C++ compilers masquerading as C compilers
15507 incorrectly reject 9223372036854775807. */
15508 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15509 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15510 && LARGE_OFF_T % 2147483647 == 1)
15511 ? 1 : -1];
15512 int
15513 main ()
15514 {
15515
15516 ;
15517 return 0;
15518 }
15519 _ACEOF
15520 if ac_fn_c_try_compile "$LINENO"; then :
15521 ac_cv_sys_file_offset_bits=no; break
15522 fi
15523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15525 /* end confdefs.h. */
15526 #define _FILE_OFFSET_BITS 64
15527 #include <sys/types.h>
15528 /* Check that off_t can represent 2**63 - 1 correctly.
15529 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15530 since some C++ compilers masquerading as C compilers
15531 incorrectly reject 9223372036854775807. */
15532 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15533 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15534 && LARGE_OFF_T % 2147483647 == 1)
15535 ? 1 : -1];
15536 int
15537 main ()
15538 {
15539
15540 ;
15541 return 0;
15542 }
15543 _ACEOF
15544 if ac_fn_c_try_compile "$LINENO"; then :
15545 ac_cv_sys_file_offset_bits=64; break
15546 fi
15547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15548 ac_cv_sys_file_offset_bits=unknown
15549 break
15550 done
15551 fi
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15553 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15554 case $ac_cv_sys_file_offset_bits in #(
15555 no | unknown) ;;
15556 *)
15557 cat >>confdefs.h <<_ACEOF
15558 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15559 _ACEOF
15560 ;;
15561 esac
15562 rm -rf conftest*
15563 if test $ac_cv_sys_file_offset_bits = unknown; then
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15565 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15566 if ${ac_cv_sys_large_files+:} false; then :
15567 $as_echo_n "(cached) " >&6
15568 else
15569 while :; do
15570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15571 /* end confdefs.h. */
15572 #include <sys/types.h>
15573 /* Check that off_t can represent 2**63 - 1 correctly.
15574 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15575 since some C++ compilers masquerading as C compilers
15576 incorrectly reject 9223372036854775807. */
15577 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15578 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15579 && LARGE_OFF_T % 2147483647 == 1)
15580 ? 1 : -1];
15581 int
15582 main ()
15583 {
15584
15585 ;
15586 return 0;
15587 }
15588 _ACEOF
15589 if ac_fn_c_try_compile "$LINENO"; then :
15590 ac_cv_sys_large_files=no; break
15591 fi
15592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15594 /* end confdefs.h. */
15595 #define _LARGE_FILES 1
15596 #include <sys/types.h>
15597 /* Check that off_t can represent 2**63 - 1 correctly.
15598 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15599 since some C++ compilers masquerading as C compilers
15600 incorrectly reject 9223372036854775807. */
15601 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15602 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15603 && LARGE_OFF_T % 2147483647 == 1)
15604 ? 1 : -1];
15605 int
15606 main ()
15607 {
15608
15609 ;
15610 return 0;
15611 }
15612 _ACEOF
15613 if ac_fn_c_try_compile "$LINENO"; then :
15614 ac_cv_sys_large_files=1; break
15615 fi
15616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15617 ac_cv_sys_large_files=unknown
15618 break
15619 done
15620 fi
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15622 $as_echo "$ac_cv_sys_large_files" >&6; }
15623 case $ac_cv_sys_large_files in #(
15624 no | unknown) ;;
15625 *)
15626 cat >>confdefs.h <<_ACEOF
15627 #define _LARGE_FILES $ac_cv_sys_large_files
15628 _ACEOF
15629 ;;
15630 esac
15631 rm -rf conftest*
15632 fi
15633
15634
15635 fi
15636
15637
15638
15639 ac_checking=
15640 . ${srcdir}/bfd/development.sh
15641 test "$development" = true && ac_checking=yes
15642 # Check whether --enable-checking was given.
15643 if test "${enable_checking+set}" = set; then :
15644 enableval=$enable_checking; case "${enableval}" in
15645 no|none) ac_checking= ;;
15646 *) ac_checking=yes ;;
15647 esac
15648 fi
15649 if test x$ac_checking != x ; then
15650
15651 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
15652
15653 fi
15654
15655
15656 # Check whether --with-lib-path was given.
15657 if test "${with_lib_path+set}" = set; then :
15658 withval=$with_lib_path; LIB_PATH=$withval
15659 fi
15660
15661 # Check whether --enable-targets was given.
15662 if test "${enable_targets+set}" = set; then :
15663 enableval=$enable_targets; case "${enableval}" in
15664 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
15665 ;;
15666 no) enable_targets= ;;
15667 *) enable_targets=$enableval ;;
15668 esac
15669 fi
15670
15671 # See whether 64-bit bfd lib has been enabled.
15672 OLD_CPPFLAGS=$CPPFLAGS
15673 # Put the old CPPFLAGS last, in case the user's CPPFLAGS point somewhere
15674 # with bfd, with -I/foo/include. We always want our bfd.
15675 CPPFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CPPFLAGS"
15676 # Note we cannot cache the result of this check because BFD64 may change
15677 # when a secondary target has been added or removed and we have no access
15678 # to this information here.
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BFD is 64-bit" >&5
15680 $as_echo_n "checking whether BFD is 64-bit... " >&6; }
15681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15682 /* end confdefs.h. */
15683 #include "bfd.h"
15684 int
15685 main ()
15686 {
15687 #ifdef BFD64
15688 HAVE_BFD64
15689 #endif
15690 ;
15691 return 0;
15692 }
15693 _ACEOF
15694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15695 $EGREP "HAVE_BFD64" >/dev/null 2>&1; then :
15696 have_64_bit_bfd=yes
15697 else
15698 have_64_bit_bfd=no
15699 fi
15700 rm -f conftest*
15701
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_64_bit_bfd" >&5
15703 $as_echo "$have_64_bit_bfd" >&6; }
15704 CPPFLAGS=$OLD_CPPFLAGS
15705
15706
15707 # Check whether --with-sysroot was given.
15708 if test "${with_sysroot+set}" = set; then :
15709 withval=$with_sysroot;
15710 case ${with_sysroot} in
15711 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15712 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15713 esac
15714
15715 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15716 use_sysroot=yes
15717
15718 if test "x$prefix" = xNONE; then
15719 test_prefix=/usr/local
15720 else
15721 test_prefix=$prefix
15722 fi
15723 if test "x$exec_prefix" = xNONE; then
15724 test_exec_prefix=$test_prefix
15725 else
15726 test_exec_prefix=$exec_prefix
15727 fi
15728 case ${TARGET_SYSTEM_ROOT} in
15729 "${test_prefix}"|"${test_prefix}/"*|\
15730 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15731 '${prefix}'|'${prefix}/'*|\
15732 '${exec_prefix}'|'${exec_prefix}/'*)
15733 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15734 TARGET_SYSTEM_ROOT_DEFINE="$t"
15735 ;;
15736 esac
15737
15738 else
15739
15740 use_sysroot=no
15741 TARGET_SYSTEM_ROOT=
15742 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15743
15744 fi
15745
15746
15747
15748
15749
15750 # Check whether --enable-gold was given.
15751 if test "${enable_gold+set}" = set; then :
15752 enableval=$enable_gold; case "${enableval}" in
15753 default)
15754 install_as_default=no
15755 installed_linker=ld.bfd
15756 ;;
15757 yes|no)
15758 install_as_default=yes
15759 installed_linker=ld.bfd
15760 ;;
15761 *)
15762 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
15763 ;;
15764 esac
15765 else
15766 install_as_default=yes
15767 installed_linker=ld.bfd
15768 fi
15769
15770
15771
15772
15773 # Check whether --enable-got was given.
15774 if test "${enable_got+set}" = set; then :
15775 enableval=$enable_got; case "${enableval}" in
15776 target | single | negative | multigot) got_handling=$enableval ;;
15777 *) as_fn_error $? "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15778 esac
15779 else
15780 got_handling=target
15781 fi
15782
15783
15784 case "${got_handling}" in
15785 target)
15786
15787 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15788 ;;
15789 single)
15790
15791 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15792 ;;
15793 negative)
15794
15795 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15796 ;;
15797 multigot)
15798
15799 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15800 ;;
15801 *) as_fn_error $? "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15802 esac
15803
15804 # PR gas/19109
15805 # Decide the default method for compressing debug sections.
15806 ac_default_compressed_debug_sections=unset
15807 # Provide a configure time option to override our default.
15808 # Check whether --enable-compressed_debug_sections was given.
15809 if test "${enable_compressed_debug_sections+set}" = set; then :
15810 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
15811 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
15812 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
15813 esac
15814 fi
15815
15816 # Select default compression algorithm.
15817 ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_GABI_ZLIB
15818 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
15819 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
15820 enableval=$enable_default_compressed_debug_sections_algorithm; case "${enableval}" in
15821 zstd) ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_ZSTD ;;
15822 esac
15823 fi
15824
15825 # Decide setting DT_RUNPATH instead of DT_RPATH by default
15826 ac_default_new_dtags=unset
15827 # Provide a configure time option to override our default.
15828 # Check whether --enable-new_dtags was given.
15829 if test "${enable_new_dtags+set}" = set; then :
15830 enableval=$enable_new_dtags; case "${enableval}" in
15831 yes) ac_default_new_dtags=1 ;;
15832 no) ac_default_new_dtags=0 ;;
15833 esac
15834 fi
15835
15836 # Decide if -z relro should be enabled in ELF linker by default.
15837 ac_default_ld_z_relro=unset
15838 # Provide a configure time option to override our default.
15839 # Check whether --enable-relro was given.
15840 if test "${enable_relro+set}" = set; then :
15841 enableval=$enable_relro; case "${enableval}" in
15842 yes) ac_default_ld_z_relro=1 ;;
15843 no) ac_default_ld_z_relro=0 ;;
15844 esac
15845 fi
15846
15847 # Decide if DT_TEXTREL check should be enabled in ELF linker.
15848 ac_default_ld_textrel_check=unset
15849 # Check whether --enable-textrel-check was given.
15850 if test "${enable_textrel_check+set}" = set; then :
15851 enableval=$enable_textrel_check; case "${enableval}" in
15852 yes|no|warning|error) ac_default_ld_textrel_check=${enableval} ;;
15853 esac
15854 fi
15855
15856
15857 # Decide if -z separate-code should be enabled in ELF linker by default.
15858 ac_default_ld_z_separate_code=unset
15859 # Check whether --enable-separate-code was given.
15860 if test "${enable_separate_code+set}" = set; then :
15861 enableval=$enable_separate_code; case "${enableval}" in
15862 yes) ac_default_ld_z_separate_code=1 ;;
15863 no) ac_default_ld_z_separate_code=0 ;;
15864 esac
15865 fi
15866
15867
15868 # Decide if --rosegment should be enabled in the ELF linker by default.
15869 ac_default_ld_rosegment=unset
15870 # Check whether --enable-rosegment was given.
15871 if test "${enable_rosegment+set}" = set; then :
15872 enableval=$enable_rosegment; case "${enableval}" in
15873 yes) ac_default_ld_rosegment=1 ;;
15874 no) ac_default_ld_rosegment=0 ;;
15875 esac
15876 fi
15877
15878
15879 # Decide if -z mark-plt should be enabled in ELF x86-64 linker by default.
15880 ac_default_ld_z_mark_plt=unset
15881 # Check whether --enable-mark-plt was given.
15882 if test "${enable_mark_plt+set}" = set; then :
15883 enableval=$enable_mark_plt; case "${enableval}" in
15884 yes) ac_default_ld_z_mark_plt=1 ;;
15885 no) ac_default_ld_z_mark_plt=0 ;;
15886 esac
15887 fi
15888
15889
15890 # Decide if --gnu2-tls-tag should be enabled in ELF i386 and x86-64
15891 # linkers by default.
15892 ac_default_ld_enable_gnu2_tls_tag=unset
15893 # Check whether --enable-gnu2-tls-tag was given.
15894 if test "${enable_gnu2_tls_tag+set}" = set; then :
15895 enableval=$enable_gnu2_tls_tag; case "${enableval}" in
15896 yes) ac_default_ld_enable_gnu2_tls_tag=1 ;;
15897 no) ac_default_ld_enable_gnu2_tls_tag=0 ;;
15898 esac
15899 fi
15900
15901
15902 # Decide if --gnu-tls-tag should be enabled in ELF i386 linker by default.
15903 ac_default_ld_enable_gnu_tls_tag=unset
15904 # Check whether --enable-gnu-tls-tag was given.
15905 if test "${enable_gnu_tls_tag+set}" = set; then :
15906 enableval=$enable_gnu_tls_tag; case "${enableval}" in
15907 yes) ac_default_ld_enable_gnu_tls_tag=1 ;;
15908 no) ac_default_ld_enable_gnu_tls_tag=0 ;;
15909 esac
15910 fi
15911
15912
15913 # Decide if -z memory-seal should be enabled in ELF linker by default.
15914 ac_default_ld_z_memory_seal=unset
15915 # Check whether --enable-memory-seal was given.
15916 if test "${enable_memory_seal+set}" = set; then :
15917 enableval=$enable_memory_seal; case "${enableval}" in
15918 yes) ac_default_ld_z_memory_seal=1 ;;
15919 no) ac_default_ld_z_memory_seal=0 ;;
15920 esac
15921 fi
15922
15923
15924
15925 # By default warn when an executable stack is created due to object files
15926 # requesting such, not when the user specifies -z execstack.
15927 ac_default_ld_warn_execstack=2
15928 # Check whether --enable-warn-execstack was given.
15929 if test "${enable_warn_execstack+set}" = set; then :
15930 enableval=$enable_warn_execstack; case "${enableval}" in
15931 yes) ac_default_ld_warn_execstack=1 ;;
15932 no) ac_default_ld_warn_execstack=0 ;;
15933 esac
15934 fi
15935
15936
15937 ac_default_ld_error_execstack=0
15938 # Check whether --enable-error-execstack was given.
15939 if test "${enable_error_execstack+set}" = set; then :
15940 enableval=$enable_error_execstack; case "${enableval}" in
15941 yes) ac_default_ld_error_execstack=1 ;;
15942 no) ac_default_ld_error_execstack=0 ;;
15943 esac
15944 fi
15945
15946
15947 ac_default_ld_warn_rwx_segments=unset
15948 # Check whether --enable-warn-rwx-segments was given.
15949 if test "${enable_warn_rwx_segments+set}" = set; then :
15950 enableval=$enable_warn_rwx_segments; case "${enableval}" in
15951 yes) ac_default_ld_warn_rwx_segments=1 ;;
15952 no) ac_default_ld_warn_rwx_segments=0 ;;
15953 esac
15954 fi
15955
15956
15957 ac_default_ld_error_rwx_segments=0
15958 # Check whether --enable-error-rwx-segments was given.
15959 if test "${enable_error_rwx_segments+set}" = set; then :
15960 enableval=$enable_error_rwx_segments; case "${enableval}" in
15961 yes) ac_default_ld_error_rwx_segments=1 ;;
15962 no) ac_default_ld_error_rwx_segments=0 ;;
15963 esac
15964 fi
15965
15966
15967 ac_default_ld_default_execstack=unset
15968 # Check whether --enable-default-execstack was given.
15969 if test "${enable_default_execstack+set}" = set; then :
15970 enableval=$enable_default_execstack; case "${enableval}" in
15971 yes) ac_default_ld_default_execstack=1 ;;
15972 no) ac_default_ld_default_execstack=0 ;;
15973 esac
15974 fi
15975
15976
15977
15978 # Decide if --error-handling-script should be supported.
15979 ac_support_error_handling_script=unset
15980 # Check whether --enable-error-handling-script was given.
15981 if test "${enable_error_handling_script+set}" = set; then :
15982 enableval=$enable_error_handling_script; case "${enableval}" in
15983 yes) ac_support_error_handling_script=1 ;;
15984 no) ac_support_error_handling_script=0 ;;
15985 esac
15986 fi
15987
15988
15989 # Decide which "--hash-style" to use by default
15990 # Provide a configure time option to override our default.
15991 # Check whether --enable-default-hash-style was given.
15992 if test "${enable_default_hash_style+set}" = set; then :
15993 enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
15994 sysv | gnu | both) ;;
15995 *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
15996 esac
15997 else
15998 case "${target}" in
15999 # Enable gnu hash only on GNU targets, but not mips
16000 mips*-*-*) enable_default_hash_style=sysv ;;
16001 *-*-gnu* | *-*-linux*) enable_default_hash_style=both ;;
16002 *) enable_default_hash_style=sysv ;;
16003 esac
16004 fi
16005
16006
16007 case "${enable_default_hash_style}" in
16008 sysv | both) ac_default_emit_sysv_hash=1 ;;
16009 *) ac_default_emit_sysv_hash=0 ;;
16010 esac
16011
16012 case "${enable_default_hash_style}" in
16013 gnu | both) ac_default_emit_gnu_hash=1 ;;
16014 *) ac_default_emit_gnu_hash=0 ;;
16015 esac
16016
16017 # Check whether --enable-initfini-array was given.
16018 if test "${enable_initfini_array+set}" = set; then :
16019 enableval=$enable_initfini_array; case "${enableval}" in
16020 yes|no) ;;
16021 *) as_fn_error $? "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
16022 esac
16023 else
16024 enable_initfini_array=yes
16025 fi
16026
16027
16028 if test $enable_initfini_array = yes; then
16029
16030 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
16031
16032 fi
16033
16034 # Check whether --enable-libctf was given.
16035 if test "${enable_libctf+set}" = set; then :
16036 enableval=$enable_libctf;
16037 case "$enableval" in
16038 yes|no) ;;
16039 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
16040 esac
16041
16042 else
16043 enable_libctf=yes
16044 fi
16045
16046
16047 if test "${enable_libctf}" = yes; then
16048
16049 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
16050
16051 fi
16052 if test "${enable_libctf}" = yes; then
16053 ENABLE_LIBCTF_TRUE=
16054 ENABLE_LIBCTF_FALSE='#'
16055 else
16056 ENABLE_LIBCTF_TRUE='#'
16057 ENABLE_LIBCTF_FALSE=
16058 fi
16059
16060
16061
16062 # Used to validate --package-metadata= input. Disabled by default.
16063 # Check whether --enable-jansson was given.
16064 if test "${enable_jansson+set}" = set; then :
16065 enableval=$enable_jansson; enable_jansson=$enableval
16066 else
16067 enable_jansson="no"
16068 fi
16069
16070
16071 if test "x$enable_jansson" != "xno"; then :
16072
16073 pkg_failed=no
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
16075 $as_echo_n "checking for jansson... " >&6; }
16076
16077 if test -n "$JANSSON_CFLAGS"; then
16078 pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
16079 elif test -n "$PKG_CONFIG"; then
16080 if test -n "$PKG_CONFIG" && \
16081 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
16082 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
16083 ac_status=$?
16084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16085 test $ac_status = 0; }; then
16086 pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson" 2>/dev/null`
16087 test "x$?" != "x0" && pkg_failed=yes
16088 else
16089 pkg_failed=yes
16090 fi
16091 else
16092 pkg_failed=untried
16093 fi
16094 if test -n "$JANSSON_LIBS"; then
16095 pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
16096 elif test -n "$PKG_CONFIG"; then
16097 if test -n "$PKG_CONFIG" && \
16098 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
16099 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
16100 ac_status=$?
16101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16102 test $ac_status = 0; }; then
16103 pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson" 2>/dev/null`
16104 test "x$?" != "x0" && pkg_failed=yes
16105 else
16106 pkg_failed=yes
16107 fi
16108 else
16109 pkg_failed=untried
16110 fi
16111
16112 if test $pkg_failed = no; then
16113 pkg_save_LDFLAGS="$LDFLAGS"
16114 LDFLAGS="$LDFLAGS $pkg_cv_JANSSON_LIBS"
16115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16116 /* end confdefs.h. */
16117
16118 int
16119 main ()
16120 {
16121
16122 ;
16123 return 0;
16124 }
16125 _ACEOF
16126 if ac_fn_c_try_link "$LINENO"; then :
16127
16128 else
16129 pkg_failed=yes
16130 fi
16131 rm -f core conftest.err conftest.$ac_objext \
16132 conftest$ac_exeext conftest.$ac_ext
16133 LDFLAGS=$pkg_save_LDFLAGS
16134 fi
16135
16136
16137
16138 if test $pkg_failed = yes; then
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16140 $as_echo "no" >&6; }
16141
16142 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16143 _pkg_short_errors_supported=yes
16144 else
16145 _pkg_short_errors_supported=no
16146 fi
16147 if test $_pkg_short_errors_supported = yes; then
16148 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1`
16149 else
16150 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1`
16151 fi
16152 # Put the nasty error message in config.log where it belongs
16153 echo "$JANSSON_PKG_ERRORS" >&5
16154
16155 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
16156 elif test $pkg_failed = untried; then
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16158 $as_echo "no" >&6; }
16159 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
16160 else
16161 JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
16162 JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16164 $as_echo "yes" >&6; }
16165
16166
16167 $as_echo "#define HAVE_JANSSON 1" >>confdefs.h
16168
16169
16170
16171
16172 fi
16173
16174 fi
16175
16176
16177 # Set the 'development' global.
16178 . $srcdir/bfd/development.sh
16179
16180 # Set acp_cpp_for_build variable
16181 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
16182
16183 # Default set of GCC warnings to enable.
16184 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
16185 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
16186
16187 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
16188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16189 /* end confdefs.h. */
16190 __GNUC__
16191 _ACEOF
16192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16193 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
16194
16195 else
16196 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
16197 fi
16198 rm -f conftest*
16199
16200
16201 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
16202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16203 /* end confdefs.h. */
16204 __GNUC__
16205 _ACEOF
16206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16207 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
16208
16209 else
16210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16211 /* end confdefs.h. */
16212 __clang__
16213 _ACEOF
16214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16215 $EGREP "^__clang__$" >/dev/null 2>&1; then :
16216 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
16217 fi
16218 rm -f conftest*
16219
16220 fi
16221 rm -f conftest*
16222
16223
16224 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
16225 WARN_WRITE_STRINGS=""
16226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16227 /* end confdefs.h. */
16228 __GNUC__
16229 _ACEOF
16230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16231 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
16232
16233 else
16234 WARN_WRITE_STRINGS="-Wwrite-strings"
16235 fi
16236 rm -f conftest*
16237
16238
16239 # Verify CC_FOR_BUILD to be compatible with warning flags
16240
16241 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
16242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16243 /* end confdefs.h. */
16244 __GNUC__
16245 _ACEOF
16246 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
16247 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
16248
16249 else
16250 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
16251 fi
16252 rm -f conftest*
16253
16254
16255 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
16256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16257 /* end confdefs.h. */
16258 __GNUC__
16259 _ACEOF
16260 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
16261 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
16262
16263 else
16264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16265 /* end confdefs.h. */
16266 __clang__
16267 _ACEOF
16268 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
16269 $EGREP "^__clang__$" >/dev/null 2>&1; then :
16270 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
16271 fi
16272 rm -f conftest*
16273
16274 fi
16275 rm -f conftest*
16276
16277
16278 # Check whether --enable-werror was given.
16279 if test "${enable_werror+set}" = set; then :
16280 enableval=$enable_werror; case "${enableval}" in
16281 yes | y) ERROR_ON_WARNING="yes" ;;
16282 no | n) ERROR_ON_WARNING="no" ;;
16283 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16284 esac
16285 fi
16286
16287
16288 # Disable -Wformat by default when using gcc on mingw
16289 case "${host}" in
16290 *-*-mingw32*)
16291 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
16292 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
16293 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
16294 fi
16295 ;;
16296 *) ;;
16297 esac
16298
16299 # Enable -Werror by default when using gcc. Turn it off for releases.
16300 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
16301 ERROR_ON_WARNING=yes
16302 fi
16303
16304 NO_WERROR=
16305 if test "${ERROR_ON_WARNING}" = yes ; then
16306 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
16307 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
16308 NO_WERROR="-Wno-error"
16309 fi
16310
16311 if test "${GCC}" = yes ; then
16312 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
16313 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
16314 fi
16315
16316 # Check whether --enable-build-warnings was given.
16317 if test "${enable_build_warnings+set}" = set; then :
16318 enableval=$enable_build_warnings; case "${enableval}" in
16319 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
16320 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
16321 no) if test "${GCC}" = yes ; then
16322 WARN_CFLAGS="-w"
16323 WARN_CFLAGS_FOR_BUILD="-w"
16324 fi;;
16325 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16326 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
16327 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
16328 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16329 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
16330 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
16331 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
16332 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16333 esac
16334 fi
16335
16336
16337 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
16338 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
16339 fi
16340
16341
16342
16343
16344
16345
16346
16347
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
16349 $as_echo_n "checking for LC_MESSAGES... " >&6; }
16350 if ${am_cv_val_LC_MESSAGES+:} false; then :
16351 $as_echo_n "(cached) " >&6
16352 else
16353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16354 /* end confdefs.h. */
16355 #include <locale.h>
16356 int
16357 main ()
16358 {
16359 return LC_MESSAGES
16360 ;
16361 return 0;
16362 }
16363 _ACEOF
16364 if ac_fn_c_try_link "$LINENO"; then :
16365 am_cv_val_LC_MESSAGES=yes
16366 else
16367 am_cv_val_LC_MESSAGES=no
16368 fi
16369 rm -f core conftest.err conftest.$ac_objext \
16370 conftest$ac_exeext conftest.$ac_ext
16371 fi
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
16373 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
16374 if test $am_cv_val_LC_MESSAGES = yes; then
16375
16376 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
16377
16378 fi
16379
16380
16381 ac_config_headers="$ac_config_headers config.h:config.in"
16382
16383
16384 # PR 14072
16385
16386
16387 if test -z "$target" ; then
16388 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
16389 fi
16390 if test -z "$host" ; then
16391 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
16392 fi
16393
16394 # host-specific stuff:
16395
16396 ALL_LINGUAS="bg da de es fi fr ga id it ja pt_BR ru sr sv tr uk vi zh_CN zh_TW"
16397
16398 MKINSTALLDIRS=
16399 if test -n "$ac_aux_dir"; then
16400 case "$ac_aux_dir" in
16401 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16402 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16403 esac
16404 fi
16405 if test -z "$MKINSTALLDIRS"; then
16406 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16407 fi
16408
16409
16410
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16412 $as_echo_n "checking whether NLS is requested... " >&6; }
16413 # Check whether --enable-nls was given.
16414 if test "${enable_nls+set}" = set; then :
16415 enableval=$enable_nls; USE_NLS=$enableval
16416 else
16417 USE_NLS=yes
16418 fi
16419
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16421 $as_echo "$USE_NLS" >&6; }
16422
16423
16424
16425
16426
16427
16428 # Prepare PATH_SEPARATOR.
16429 # The user is always right.
16430 if test "${PATH_SEPARATOR+set}" != set; then
16431 echo "#! /bin/sh" >conf$$.sh
16432 echo "exit 0" >>conf$$.sh
16433 chmod +x conf$$.sh
16434 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16435 PATH_SEPARATOR=';'
16436 else
16437 PATH_SEPARATOR=:
16438 fi
16439 rm -f conf$$.sh
16440 fi
16441
16442 # Find out how to test for executable files. Don't use a zero-byte file,
16443 # as systems may use methods other than mode bits to determine executability.
16444 cat >conf$$.file <<_ASEOF
16445 #! /bin/sh
16446 exit 0
16447 _ASEOF
16448 chmod +x conf$$.file
16449 if test -x conf$$.file >/dev/null 2>&1; then
16450 ac_executable_p="test -x"
16451 else
16452 ac_executable_p="test -f"
16453 fi
16454 rm -f conf$$.file
16455
16456 # Extract the first word of "msgfmt", so it can be a program name with args.
16457 set dummy msgfmt; ac_word=$2
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16459 $as_echo_n "checking for $ac_word... " >&6; }
16460 if ${ac_cv_path_MSGFMT+:} false; then :
16461 $as_echo_n "(cached) " >&6
16462 else
16463 case "$MSGFMT" in
16464 [\\/]* | ?:[\\/]*)
16465 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16466 ;;
16467 *)
16468 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16469 for ac_dir in $PATH; do
16470 IFS="$ac_save_IFS"
16471 test -z "$ac_dir" && ac_dir=.
16472 for ac_exec_ext in '' $ac_executable_extensions; do
16473 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16474 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
16475 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16476 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16477 break 2
16478 fi
16479 fi
16480 done
16481 done
16482 IFS="$ac_save_IFS"
16483 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16484 ;;
16485 esac
16486 fi
16487 MSGFMT="$ac_cv_path_MSGFMT"
16488 if test "$MSGFMT" != ":"; then
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16490 $as_echo "$MSGFMT" >&6; }
16491 else
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16493 $as_echo "no" >&6; }
16494 fi
16495
16496 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16497 set dummy gmsgfmt; ac_word=$2
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16499 $as_echo_n "checking for $ac_word... " >&6; }
16500 if ${ac_cv_path_GMSGFMT+:} false; then :
16501 $as_echo_n "(cached) " >&6
16502 else
16503 case $GMSGFMT in
16504 [\\/]* | ?:[\\/]*)
16505 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16506 ;;
16507 *)
16508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16509 for as_dir in $PATH
16510 do
16511 IFS=$as_save_IFS
16512 test -z "$as_dir" && as_dir=.
16513 for ac_exec_ext in '' $ac_executable_extensions; do
16514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16515 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16517 break 2
16518 fi
16519 done
16520 done
16521 IFS=$as_save_IFS
16522
16523 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16524 ;;
16525 esac
16526 fi
16527 GMSGFMT=$ac_cv_path_GMSGFMT
16528 if test -n "$GMSGFMT"; then
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16530 $as_echo "$GMSGFMT" >&6; }
16531 else
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16533 $as_echo "no" >&6; }
16534 fi
16535
16536
16537
16538
16539 # Prepare PATH_SEPARATOR.
16540 # The user is always right.
16541 if test "${PATH_SEPARATOR+set}" != set; then
16542 echo "#! /bin/sh" >conf$$.sh
16543 echo "exit 0" >>conf$$.sh
16544 chmod +x conf$$.sh
16545 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16546 PATH_SEPARATOR=';'
16547 else
16548 PATH_SEPARATOR=:
16549 fi
16550 rm -f conf$$.sh
16551 fi
16552
16553 # Find out how to test for executable files. Don't use a zero-byte file,
16554 # as systems may use methods other than mode bits to determine executability.
16555 cat >conf$$.file <<_ASEOF
16556 #! /bin/sh
16557 exit 0
16558 _ASEOF
16559 chmod +x conf$$.file
16560 if test -x conf$$.file >/dev/null 2>&1; then
16561 ac_executable_p="test -x"
16562 else
16563 ac_executable_p="test -f"
16564 fi
16565 rm -f conf$$.file
16566
16567 # Extract the first word of "xgettext", so it can be a program name with args.
16568 set dummy xgettext; ac_word=$2
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16570 $as_echo_n "checking for $ac_word... " >&6; }
16571 if ${ac_cv_path_XGETTEXT+:} false; then :
16572 $as_echo_n "(cached) " >&6
16573 else
16574 case "$XGETTEXT" in
16575 [\\/]* | ?:[\\/]*)
16576 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16577 ;;
16578 *)
16579 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16580 for ac_dir in $PATH; do
16581 IFS="$ac_save_IFS"
16582 test -z "$ac_dir" && ac_dir=.
16583 for ac_exec_ext in '' $ac_executable_extensions; do
16584 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16585 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16586 (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
16587 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16588 break 2
16589 fi
16590 fi
16591 done
16592 done
16593 IFS="$ac_save_IFS"
16594 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16595 ;;
16596 esac
16597 fi
16598 XGETTEXT="$ac_cv_path_XGETTEXT"
16599 if test "$XGETTEXT" != ":"; then
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16601 $as_echo "$XGETTEXT" >&6; }
16602 else
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16604 $as_echo "no" >&6; }
16605 fi
16606
16607 rm -f messages.po
16608
16609
16610 # Prepare PATH_SEPARATOR.
16611 # The user is always right.
16612 if test "${PATH_SEPARATOR+set}" != set; then
16613 echo "#! /bin/sh" >conf$$.sh
16614 echo "exit 0" >>conf$$.sh
16615 chmod +x conf$$.sh
16616 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16617 PATH_SEPARATOR=';'
16618 else
16619 PATH_SEPARATOR=:
16620 fi
16621 rm -f conf$$.sh
16622 fi
16623
16624 # Find out how to test for executable files. Don't use a zero-byte file,
16625 # as systems may use methods other than mode bits to determine executability.
16626 cat >conf$$.file <<_ASEOF
16627 #! /bin/sh
16628 exit 0
16629 _ASEOF
16630 chmod +x conf$$.file
16631 if test -x conf$$.file >/dev/null 2>&1; then
16632 ac_executable_p="test -x"
16633 else
16634 ac_executable_p="test -f"
16635 fi
16636 rm -f conf$$.file
16637
16638 # Extract the first word of "msgmerge", so it can be a program name with args.
16639 set dummy msgmerge; ac_word=$2
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16641 $as_echo_n "checking for $ac_word... " >&6; }
16642 if ${ac_cv_path_MSGMERGE+:} false; then :
16643 $as_echo_n "(cached) " >&6
16644 else
16645 case "$MSGMERGE" in
16646 [\\/]* | ?:[\\/]*)
16647 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16648 ;;
16649 *)
16650 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16651 for ac_dir in $PATH; do
16652 IFS="$ac_save_IFS"
16653 test -z "$ac_dir" && ac_dir=.
16654 for ac_exec_ext in '' $ac_executable_extensions; do
16655 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16656 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16657 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16658 break 2
16659 fi
16660 fi
16661 done
16662 done
16663 IFS="$ac_save_IFS"
16664 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16665 ;;
16666 esac
16667 fi
16668 MSGMERGE="$ac_cv_path_MSGMERGE"
16669 if test "$MSGMERGE" != ":"; then
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16671 $as_echo "$MSGMERGE" >&6; }
16672 else
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16674 $as_echo "no" >&6; }
16675 fi
16676
16677
16678 if test "$GMSGFMT" != ":"; then
16679 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16680 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16681 : ;
16682 else
16683 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16685 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16686 GMSGFMT=":"
16687 fi
16688 fi
16689
16690 if test "$XGETTEXT" != ":"; then
16691 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16692 (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
16693 : ;
16694 else
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16696 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16697 XGETTEXT=":"
16698 fi
16699 rm -f messages.po
16700 fi
16701
16702 ac_config_commands="$ac_config_commands default-1"
16703
16704
16705
16706 if test "X$prefix" = "XNONE"; then
16707 acl_final_prefix="$ac_default_prefix"
16708 else
16709 acl_final_prefix="$prefix"
16710 fi
16711 if test "X$exec_prefix" = "XNONE"; then
16712 acl_final_exec_prefix='${prefix}'
16713 else
16714 acl_final_exec_prefix="$exec_prefix"
16715 fi
16716 acl_save_prefix="$prefix"
16717 prefix="$acl_final_prefix"
16718 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16719 prefix="$acl_save_prefix"
16720
16721
16722 # Check whether --with-gnu-ld was given.
16723 if test "${with_gnu_ld+set}" = set; then :
16724 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16725 else
16726 with_gnu_ld=no
16727 fi
16728
16729 # Prepare PATH_SEPARATOR.
16730 # The user is always right.
16731 if test "${PATH_SEPARATOR+set}" != set; then
16732 echo "#! /bin/sh" >conf$$.sh
16733 echo "exit 0" >>conf$$.sh
16734 chmod +x conf$$.sh
16735 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16736 PATH_SEPARATOR=';'
16737 else
16738 PATH_SEPARATOR=:
16739 fi
16740 rm -f conf$$.sh
16741 fi
16742 ac_prog=ld
16743 if test "$GCC" = yes; then
16744 # Check if gcc -print-prog-name=ld gives a path.
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16746 $as_echo_n "checking for ld used by GCC... " >&6; }
16747 case $host in
16748 *-*-mingw*)
16749 # gcc leaves a trailing carriage return which upsets mingw
16750 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16751 *)
16752 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16753 esac
16754 case $ac_prog in
16755 # Accept absolute paths.
16756 [\\/]* | [A-Za-z]:[\\/]*)
16757 re_direlt='/[^/][^/]*/\.\./'
16758 # Canonicalize the path of ld
16759 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16760 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16761 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16762 done
16763 test -z "$LD" && LD="$ac_prog"
16764 ;;
16765 "")
16766 # If it fails, then pretend we aren't using GCC.
16767 ac_prog=ld
16768 ;;
16769 *)
16770 # If it is relative, then search for the first ld in PATH.
16771 with_gnu_ld=unknown
16772 ;;
16773 esac
16774 elif test "$with_gnu_ld" = yes; then
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16776 $as_echo_n "checking for GNU ld... " >&6; }
16777 else
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16779 $as_echo_n "checking for non-GNU ld... " >&6; }
16780 fi
16781 if ${acl_cv_path_LD+:} false; then :
16782 $as_echo_n "(cached) " >&6
16783 else
16784 if test -z "$LD"; then
16785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16786 for ac_dir in $PATH; do
16787 test -z "$ac_dir" && ac_dir=.
16788 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16789 acl_cv_path_LD="$ac_dir/$ac_prog"
16790 # Check to see if the program is GNU ld. I'd rather use --version,
16791 # but apparently some GNU ld's only accept -v.
16792 # Break only if it was the GNU/non-GNU ld that we prefer.
16793 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
16794 test "$with_gnu_ld" != no && break
16795 else
16796 test "$with_gnu_ld" != yes && break
16797 fi
16798 fi
16799 done
16800 IFS="$ac_save_ifs"
16801 else
16802 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16803 fi
16804 fi
16805
16806 LD="$acl_cv_path_LD"
16807 if test -n "$LD"; then
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16809 $as_echo "$LD" >&6; }
16810 else
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16812 $as_echo "no" >&6; }
16813 fi
16814 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16816 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16817 if ${acl_cv_prog_gnu_ld+:} false; then :
16818 $as_echo_n "(cached) " >&6
16819 else
16820 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16821 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
16822 acl_cv_prog_gnu_ld=yes
16823 else
16824 acl_cv_prog_gnu_ld=no
16825 fi
16826 fi
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16828 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16829 with_gnu_ld=$acl_cv_prog_gnu_ld
16830
16831
16832
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16834 $as_echo_n "checking for shared library run path origin... " >&6; }
16835 if ${acl_cv_rpath+:} false; then :
16836 $as_echo_n "(cached) " >&6
16837 else
16838
16839 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16840 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16841 . ./conftest.sh
16842 rm -f ./conftest.sh
16843 acl_cv_rpath=done
16844
16845 fi
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16847 $as_echo "$acl_cv_rpath" >&6; }
16848 wl="$acl_cv_wl"
16849 libext="$acl_cv_libext"
16850 shlibext="$acl_cv_shlibext"
16851 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16852 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16853 hardcode_direct="$acl_cv_hardcode_direct"
16854 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16855 # Check whether --enable-rpath was given.
16856 if test "${enable_rpath+set}" = set; then :
16857 enableval=$enable_rpath; :
16858 else
16859 enable_rpath=yes
16860 fi
16861
16862
16863
16864
16865
16866
16867
16868
16869 use_additional=yes
16870
16871 acl_save_prefix="$prefix"
16872 prefix="$acl_final_prefix"
16873 acl_save_exec_prefix="$exec_prefix"
16874 exec_prefix="$acl_final_exec_prefix"
16875
16876 eval additional_includedir=\"$includedir\"
16877 eval additional_libdir=\"$libdir\"
16878
16879 exec_prefix="$acl_save_exec_prefix"
16880 prefix="$acl_save_prefix"
16881
16882
16883 # Check whether --with-libiconv-prefix was given.
16884 if test "${with_libiconv_prefix+set}" = set; then :
16885 withval=$with_libiconv_prefix;
16886 if test "X$withval" = "Xno"; then
16887 use_additional=no
16888 else
16889 if test "X$withval" = "X"; then
16890
16891 acl_save_prefix="$prefix"
16892 prefix="$acl_final_prefix"
16893 acl_save_exec_prefix="$exec_prefix"
16894 exec_prefix="$acl_final_exec_prefix"
16895
16896 eval additional_includedir=\"$includedir\"
16897 eval additional_libdir=\"$libdir\"
16898
16899 exec_prefix="$acl_save_exec_prefix"
16900 prefix="$acl_save_prefix"
16901
16902 else
16903 additional_includedir="$withval/include"
16904 additional_libdir="$withval/lib"
16905 fi
16906 fi
16907
16908 fi
16909
16910
16911 # Check whether --with-libiconv-type was given.
16912 if test "${with_libiconv_type+set}" = set; then :
16913 withval=$with_libiconv_type; with_libiconv_type=$withval
16914 else
16915 with_libiconv_type=auto
16916 fi
16917
16918 lib_type=`eval echo \$with_libiconv_type`
16919
16920 LIBICONV=
16921 LTLIBICONV=
16922 INCICONV=
16923 rpathdirs=
16924 ltrpathdirs=
16925 names_already_handled=
16926 names_next_round='iconv '
16927 while test -n "$names_next_round"; do
16928 names_this_round="$names_next_round"
16929 names_next_round=
16930 for name in $names_this_round; do
16931 already_handled=
16932 for n in $names_already_handled; do
16933 if test "$n" = "$name"; then
16934 already_handled=yes
16935 break
16936 fi
16937 done
16938 if test -z "$already_handled"; then
16939 names_already_handled="$names_already_handled $name"
16940 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16941 eval value=\"\$HAVE_LIB$uppername\"
16942 if test -n "$value"; then
16943 if test "$value" = yes; then
16944 eval value=\"\$LIB$uppername\"
16945 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16946 eval value=\"\$LTLIB$uppername\"
16947 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16948 else
16949 :
16950 fi
16951 else
16952 found_dir=
16953 found_la=
16954 found_so=
16955 found_a=
16956 if test $use_additional = yes; then
16957 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
16958 found_dir="$additional_libdir"
16959 found_so="$additional_libdir/lib$name.$shlibext"
16960 if test -f "$additional_libdir/lib$name.la"; then
16961 found_la="$additional_libdir/lib$name.la"
16962 fi
16963 elif test x$lib_type != xshared; then
16964 if test -f "$additional_libdir/lib$name.$libext"; then
16965 found_dir="$additional_libdir"
16966 found_a="$additional_libdir/lib$name.$libext"
16967 if test -f "$additional_libdir/lib$name.la"; then
16968 found_la="$additional_libdir/lib$name.la"
16969 fi
16970 fi
16971 fi
16972 fi
16973 if test "X$found_dir" = "X"; then
16974 for x in $LDFLAGS $LTLIBICONV; do
16975
16976 acl_save_prefix="$prefix"
16977 prefix="$acl_final_prefix"
16978 acl_save_exec_prefix="$exec_prefix"
16979 exec_prefix="$acl_final_exec_prefix"
16980 eval x=\"$x\"
16981 exec_prefix="$acl_save_exec_prefix"
16982 prefix="$acl_save_prefix"
16983
16984 case "$x" in
16985 -L*)
16986 dir=`echo "X$x" | sed -e 's/^X-L//'`
16987 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
16988 found_dir="$dir"
16989 found_so="$dir/lib$name.$shlibext"
16990 if test -f "$dir/lib$name.la"; then
16991 found_la="$dir/lib$name.la"
16992 fi
16993 elif test x$lib_type != xshared; then
16994 if test -f "$dir/lib$name.$libext"; then
16995 found_dir="$dir"
16996 found_a="$dir/lib$name.$libext"
16997 if test -f "$dir/lib$name.la"; then
16998 found_la="$dir/lib$name.la"
16999 fi
17000 fi
17001 fi
17002 ;;
17003 esac
17004 if test "X$found_dir" != "X"; then
17005 break
17006 fi
17007 done
17008 fi
17009 if test "X$found_dir" != "X"; then
17010 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17011 if test "X$found_so" != "X"; then
17012 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17013 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17014 else
17015 haveit=
17016 for x in $ltrpathdirs; do
17017 if test "X$x" = "X$found_dir"; then
17018 haveit=yes
17019 break
17020 fi
17021 done
17022 if test -z "$haveit"; then
17023 ltrpathdirs="$ltrpathdirs $found_dir"
17024 fi
17025 if test "$hardcode_direct" = yes; then
17026 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17027 else
17028 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17029 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17030 haveit=
17031 for x in $rpathdirs; do
17032 if test "X$x" = "X$found_dir"; then
17033 haveit=yes
17034 break
17035 fi
17036 done
17037 if test -z "$haveit"; then
17038 rpathdirs="$rpathdirs $found_dir"
17039 fi
17040 else
17041 haveit=
17042 for x in $LDFLAGS $LIBICONV; do
17043
17044 acl_save_prefix="$prefix"
17045 prefix="$acl_final_prefix"
17046 acl_save_exec_prefix="$exec_prefix"
17047 exec_prefix="$acl_final_exec_prefix"
17048 eval x=\"$x\"
17049 exec_prefix="$acl_save_exec_prefix"
17050 prefix="$acl_save_prefix"
17051
17052 if test "X$x" = "X-L$found_dir"; then
17053 haveit=yes
17054 break
17055 fi
17056 done
17057 if test -z "$haveit"; then
17058 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17059 fi
17060 if test "$hardcode_minus_L" != no; then
17061 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17062 else
17063 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17064 fi
17065 fi
17066 fi
17067 fi
17068 else
17069 if test "X$found_a" != "X"; then
17070 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17071 else
17072 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17073 fi
17074 fi
17075 additional_includedir=
17076 case "$found_dir" in
17077 */lib | */lib/)
17078 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17079 additional_includedir="$basedir/include"
17080 ;;
17081 esac
17082 if test "X$additional_includedir" != "X"; then
17083 if test "X$additional_includedir" != "X/usr/include"; then
17084 haveit=
17085 if test "X$additional_includedir" = "X/usr/local/include"; then
17086 if test -n "$GCC"; then
17087 case $host_os in
17088 linux*) haveit=yes;;
17089 esac
17090 fi
17091 fi
17092 if test -z "$haveit"; then
17093 for x in $CPPFLAGS $INCICONV; do
17094
17095 acl_save_prefix="$prefix"
17096 prefix="$acl_final_prefix"
17097 acl_save_exec_prefix="$exec_prefix"
17098 exec_prefix="$acl_final_exec_prefix"
17099 eval x=\"$x\"
17100 exec_prefix="$acl_save_exec_prefix"
17101 prefix="$acl_save_prefix"
17102
17103 if test "X$x" = "X-I$additional_includedir"; then
17104 haveit=yes
17105 break
17106 fi
17107 done
17108 if test -z "$haveit"; then
17109 if test -d "$additional_includedir"; then
17110 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17111 fi
17112 fi
17113 fi
17114 fi
17115 fi
17116 if test -n "$found_la"; then
17117 save_libdir="$libdir"
17118 case "$found_la" in
17119 */* | *\\*) . "$found_la" ;;
17120 *) . "./$found_la" ;;
17121 esac
17122 libdir="$save_libdir"
17123 for dep in $dependency_libs; do
17124 case "$dep" in
17125 -L*)
17126 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17127 if test "X$additional_libdir" != "X/usr/lib"; then
17128 haveit=
17129 if test "X$additional_libdir" = "X/usr/local/lib"; then
17130 if test -n "$GCC"; then
17131 case $host_os in
17132 linux*) haveit=yes;;
17133 esac
17134 fi
17135 fi
17136 if test -z "$haveit"; then
17137 haveit=
17138 for x in $LDFLAGS $LIBICONV; do
17139
17140 acl_save_prefix="$prefix"
17141 prefix="$acl_final_prefix"
17142 acl_save_exec_prefix="$exec_prefix"
17143 exec_prefix="$acl_final_exec_prefix"
17144 eval x=\"$x\"
17145 exec_prefix="$acl_save_exec_prefix"
17146 prefix="$acl_save_prefix"
17147
17148 if test "X$x" = "X-L$additional_libdir"; then
17149 haveit=yes
17150 break
17151 fi
17152 done
17153 if test -z "$haveit"; then
17154 if test -d "$additional_libdir"; then
17155 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17156 fi
17157 fi
17158 haveit=
17159 for x in $LDFLAGS $LTLIBICONV; do
17160
17161 acl_save_prefix="$prefix"
17162 prefix="$acl_final_prefix"
17163 acl_save_exec_prefix="$exec_prefix"
17164 exec_prefix="$acl_final_exec_prefix"
17165 eval x=\"$x\"
17166 exec_prefix="$acl_save_exec_prefix"
17167 prefix="$acl_save_prefix"
17168
17169 if test "X$x" = "X-L$additional_libdir"; then
17170 haveit=yes
17171 break
17172 fi
17173 done
17174 if test -z "$haveit"; then
17175 if test -d "$additional_libdir"; then
17176 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17177 fi
17178 fi
17179 fi
17180 fi
17181 ;;
17182 -R*)
17183 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17184 if test "$enable_rpath" != no; then
17185 haveit=
17186 for x in $rpathdirs; do
17187 if test "X$x" = "X$dir"; then
17188 haveit=yes
17189 break
17190 fi
17191 done
17192 if test -z "$haveit"; then
17193 rpathdirs="$rpathdirs $dir"
17194 fi
17195 haveit=
17196 for x in $ltrpathdirs; do
17197 if test "X$x" = "X$dir"; then
17198 haveit=yes
17199 break
17200 fi
17201 done
17202 if test -z "$haveit"; then
17203 ltrpathdirs="$ltrpathdirs $dir"
17204 fi
17205 fi
17206 ;;
17207 -l*)
17208 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17209 ;;
17210 *.la)
17211 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17212 ;;
17213 *)
17214 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17215 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17216 ;;
17217 esac
17218 done
17219 fi
17220 else
17221 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
17222 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17223 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17224 else
17225 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
17226 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
17227 fi
17228 fi
17229 fi
17230 fi
17231 done
17232 done
17233 if test "X$rpathdirs" != "X"; then
17234 if test -n "$hardcode_libdir_separator"; then
17235 alldirs=
17236 for found_dir in $rpathdirs; do
17237 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17238 done
17239 acl_save_libdir="$libdir"
17240 libdir="$alldirs"
17241 eval flag=\"$hardcode_libdir_flag_spec\"
17242 libdir="$acl_save_libdir"
17243 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17244 else
17245 for found_dir in $rpathdirs; do
17246 acl_save_libdir="$libdir"
17247 libdir="$found_dir"
17248 eval flag=\"$hardcode_libdir_flag_spec\"
17249 libdir="$acl_save_libdir"
17250 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17251 done
17252 fi
17253 fi
17254 if test "X$ltrpathdirs" != "X"; then
17255 for found_dir in $ltrpathdirs; do
17256 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17257 done
17258 fi
17259
17260
17261
17262
17263
17264 if test -f ../gettext/uninstalled-config.sh; then
17265 relative_builddir='$(top_builddir)/../gettext'
17266 . ../gettext/uninstalled-config.sh
17267 else
17268 # The sister gettext directory doesn't exist and won't collect information on
17269 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17294 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17295 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
17296 $as_echo_n "(cached) " >&6
17297 else
17298 gt_save_LIBS="$LIBS"
17299 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17301 /* end confdefs.h. */
17302 #include <CoreFoundation/CFPreferences.h>
17303 int
17304 main ()
17305 {
17306 CFPreferencesCopyAppValue(NULL, NULL)
17307 ;
17308 return 0;
17309 }
17310 _ACEOF
17311 if ac_fn_c_try_link "$LINENO"; then :
17312 gt_cv_func_CFPreferencesCopyAppValue=yes
17313 else
17314 gt_cv_func_CFPreferencesCopyAppValue=no
17315 fi
17316 rm -f core conftest.err conftest.$ac_objext \
17317 conftest$ac_exeext conftest.$ac_ext
17318 LIBS="$gt_save_LIBS"
17319 fi
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17321 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17322 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17323
17324 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17325
17326 fi
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
17328 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
17329 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
17330 $as_echo_n "(cached) " >&6
17331 else
17332 gt_save_LIBS="$LIBS"
17333 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17335 /* end confdefs.h. */
17336 #include <CoreFoundation/CFLocale.h>
17337 int
17338 main ()
17339 {
17340 CFLocaleCopyPreferredLanguages();
17341 ;
17342 return 0;
17343 }
17344 _ACEOF
17345 if ac_fn_c_try_link "$LINENO"; then :
17346 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
17347 else
17348 gt_cv_func_CFLocaleCopyPreferredLanguages=no
17349 fi
17350 rm -f core conftest.err conftest.$ac_objext \
17351 conftest$ac_exeext conftest.$ac_ext
17352 LIBS="$gt_save_LIBS"
17353 fi
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
17355 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
17356 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
17357
17358 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
17359
17360 fi
17361 INTL_MACOSX_LIBS=
17362 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
17363 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
17364 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
17365 fi
17366
17367
17368
17369
17370
17371
17372 LIBINTL=
17373 LTLIBINTL=
17374 POSUB=
17375
17376 case " $gt_needs " in
17377 *" need-formatstring-macros "*) gt_api_version=3 ;;
17378 *" need-ngettext "*) gt_api_version=2 ;;
17379 *) gt_api_version=1 ;;
17380 esac
17381 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
17382 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
17383
17384 if test "$USE_NLS" = "yes"; then
17385 gt_use_preinstalled_gnugettext=no
17386
17387
17388 if test $gt_api_version -ge 3; then
17389 gt_revision_test_code='
17390 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17391 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
17392 #endif
17393 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
17394 '
17395 else
17396 gt_revision_test_code=
17397 fi
17398 if test $gt_api_version -ge 2; then
17399 gt_expression_test_code=' + * ngettext ("", "", 0)'
17400 else
17401 gt_expression_test_code=
17402 fi
17403
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17405 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17406 if eval \${$gt_func_gnugettext_libc+:} false; then :
17407 $as_echo_n "(cached) " >&6
17408 else
17409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17410 /* end confdefs.h. */
17411
17412 #include <libintl.h>
17413 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17414 extern int _nl_msg_cat_cntr;
17415 extern int *_nl_domain_bindings;
17416 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
17417 #else
17418 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17419 #endif
17420 $gt_revision_test_code
17421
17422 int
17423 main ()
17424 {
17425
17426 bindtextdomain ("", "");
17427 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17428
17429 ;
17430 return 0;
17431 }
17432 _ACEOF
17433 if ac_fn_c_try_link "$LINENO"; then :
17434 eval "$gt_func_gnugettext_libc=yes"
17435 else
17436 eval "$gt_func_gnugettext_libc=no"
17437 fi
17438 rm -f core conftest.err conftest.$ac_objext \
17439 conftest$ac_exeext conftest.$ac_ext
17440 fi
17441 eval ac_res=\$$gt_func_gnugettext_libc
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17443 $as_echo "$ac_res" >&6; }
17444
17445 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
17446
17447
17448
17449
17450
17451 am_save_CPPFLAGS="$CPPFLAGS"
17452
17453 for element in $INCICONV; do
17454 haveit=
17455 for x in $CPPFLAGS; do
17456
17457 acl_save_prefix="$prefix"
17458 prefix="$acl_final_prefix"
17459 acl_save_exec_prefix="$exec_prefix"
17460 exec_prefix="$acl_final_exec_prefix"
17461 eval x=\"$x\"
17462 exec_prefix="$acl_save_exec_prefix"
17463 prefix="$acl_save_prefix"
17464
17465 if test "X$x" = "X$element"; then
17466 haveit=yes
17467 break
17468 fi
17469 done
17470 if test -z "$haveit"; then
17471 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17472 fi
17473 done
17474
17475
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17477 $as_echo_n "checking for iconv... " >&6; }
17478 if ${am_cv_func_iconv+:} false; then :
17479 $as_echo_n "(cached) " >&6
17480 else
17481
17482 am_cv_func_iconv="no, consider installing GNU libiconv"
17483 am_cv_lib_iconv=no
17484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17485 /* end confdefs.h. */
17486
17487 #include <stdlib.h>
17488 #include <iconv.h>
17489
17490 int
17491 main ()
17492 {
17493 iconv_t cd = iconv_open("","");
17494 iconv(cd,NULL,NULL,NULL,NULL);
17495 iconv_close(cd);
17496 ;
17497 return 0;
17498 }
17499 _ACEOF
17500 if ac_fn_c_try_link "$LINENO"; then :
17501 am_cv_func_iconv=yes
17502 fi
17503 rm -f core conftest.err conftest.$ac_objext \
17504 conftest$ac_exeext conftest.$ac_ext
17505 if test "$am_cv_func_iconv" != yes; then
17506 am_save_LIBS="$LIBS"
17507 LIBS="$LIBS $LIBICONV"
17508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17509 /* end confdefs.h. */
17510
17511 #include <stdlib.h>
17512 #include <iconv.h>
17513
17514 int
17515 main ()
17516 {
17517 iconv_t cd = iconv_open("","");
17518 iconv(cd,NULL,NULL,NULL,NULL);
17519 iconv_close(cd);
17520 ;
17521 return 0;
17522 }
17523 _ACEOF
17524 if ac_fn_c_try_link "$LINENO"; then :
17525 am_cv_lib_iconv=yes
17526 am_cv_func_iconv=yes
17527 fi
17528 rm -f core conftest.err conftest.$ac_objext \
17529 conftest$ac_exeext conftest.$ac_ext
17530 LIBS="$am_save_LIBS"
17531 fi
17532
17533 fi
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17535 $as_echo "$am_cv_func_iconv" >&6; }
17536 if test "$am_cv_func_iconv" = yes; then
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
17538 $as_echo_n "checking for working iconv... " >&6; }
17539 if ${am_cv_func_iconv_works+:} false; then :
17540 $as_echo_n "(cached) " >&6
17541 else
17542
17543 am_save_LIBS="$LIBS"
17544 if test $am_cv_lib_iconv = yes; then
17545 LIBS="$LIBS $LIBICONV"
17546 fi
17547 am_cv_func_iconv_works=no
17548 for ac_iconv_const in '' 'const'; do
17549 if test "$cross_compiling" = yes; then :
17550 case "$host_os" in
17551 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
17552 *) am_cv_func_iconv_works="guessing yes" ;;
17553 esac
17554 else
17555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17556 /* end confdefs.h. */
17557
17558 #include <iconv.h>
17559 #include <string.h>
17560
17561 #ifndef ICONV_CONST
17562 # define ICONV_CONST $ac_iconv_const
17563 #endif
17564
17565 int
17566 main ()
17567 {
17568 int result = 0;
17569 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
17570 successful returns. This is even documented in
17571 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
17572 {
17573 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17574 if (cd_utf8_to_88591 != (iconv_t)(-1))
17575 {
17576 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
17577 char buf[10];
17578 ICONV_CONST char *inptr = input;
17579 size_t inbytesleft = strlen (input);
17580 char *outptr = buf;
17581 size_t outbytesleft = sizeof (buf);
17582 size_t res = iconv (cd_utf8_to_88591,
17583 &inptr, &inbytesleft,
17584 &outptr, &outbytesleft);
17585 if (res == 0)
17586 result |= 1;
17587 iconv_close (cd_utf8_to_88591);
17588 }
17589 }
17590 /* Test against Solaris 10 bug: Failures are not distinguishable from
17591 successful returns. */
17592 {
17593 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
17594 if (cd_ascii_to_88591 != (iconv_t)(-1))
17595 {
17596 static ICONV_CONST char input[] = "\263";
17597 char buf[10];
17598 ICONV_CONST char *inptr = input;
17599 size_t inbytesleft = strlen (input);
17600 char *outptr = buf;
17601 size_t outbytesleft = sizeof (buf);
17602 size_t res = iconv (cd_ascii_to_88591,
17603 &inptr, &inbytesleft,
17604 &outptr, &outbytesleft);
17605 if (res == 0)
17606 result |= 2;
17607 iconv_close (cd_ascii_to_88591);
17608 }
17609 }
17610 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
17611 {
17612 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
17613 if (cd_88591_to_utf8 != (iconv_t)(-1))
17614 {
17615 static ICONV_CONST char input[] = "\304";
17616 static char buf[2] = { (char)0xDE, (char)0xAD };
17617 ICONV_CONST char *inptr = input;
17618 size_t inbytesleft = 1;
17619 char *outptr = buf;
17620 size_t outbytesleft = 1;
17621 size_t res = iconv (cd_88591_to_utf8,
17622 &inptr, &inbytesleft,
17623 &outptr, &outbytesleft);
17624 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
17625 result |= 4;
17626 iconv_close (cd_88591_to_utf8);
17627 }
17628 }
17629 #if 0 /* This bug could be worked around by the caller. */
17630 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
17631 {
17632 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17633 if (cd_88591_to_utf8 != (iconv_t)(-1))
17634 {
17635 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
17636 char buf[50];
17637 ICONV_CONST char *inptr = input;
17638 size_t inbytesleft = strlen (input);
17639 char *outptr = buf;
17640 size_t outbytesleft = sizeof (buf);
17641 size_t res = iconv (cd_88591_to_utf8,
17642 &inptr, &inbytesleft,
17643 &outptr, &outbytesleft);
17644 if ((int)res > 0)
17645 result |= 8;
17646 iconv_close (cd_88591_to_utf8);
17647 }
17648 }
17649 #endif
17650 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
17651 provided. */
17652 {
17653 /* Try standardized names. */
17654 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
17655 /* Try IRIX, OSF/1 names. */
17656 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
17657 /* Try AIX names. */
17658 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
17659 /* Try HP-UX names. */
17660 iconv_t cd4 = iconv_open ("utf8", "eucJP");
17661 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
17662 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
17663 result |= 16;
17664 if (cd1 != (iconv_t)(-1))
17665 iconv_close (cd1);
17666 if (cd2 != (iconv_t)(-1))
17667 iconv_close (cd2);
17668 if (cd3 != (iconv_t)(-1))
17669 iconv_close (cd3);
17670 if (cd4 != (iconv_t)(-1))
17671 iconv_close (cd4);
17672 }
17673 return result;
17674
17675 ;
17676 return 0;
17677 }
17678 _ACEOF
17679 if ac_fn_c_try_run "$LINENO"; then :
17680 am_cv_func_iconv_works=yes
17681 fi
17682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17683 conftest.$ac_objext conftest.beam conftest.$ac_ext
17684 fi
17685
17686 test "$am_cv_func_iconv_works" = no || break
17687 done
17688 LIBS="$am_save_LIBS"
17689
17690 fi
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
17692 $as_echo "$am_cv_func_iconv_works" >&6; }
17693 case "$am_cv_func_iconv_works" in
17694 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
17695 *) am_func_iconv=yes ;;
17696 esac
17697 else
17698 am_func_iconv=no am_cv_lib_iconv=no
17699 fi
17700 if test "$am_func_iconv" = yes; then
17701
17702 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17703
17704 fi
17705 if test "$am_cv_lib_iconv" = yes; then
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17707 $as_echo_n "checking how to link with libiconv... " >&6; }
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17709 $as_echo "$LIBICONV" >&6; }
17710 else
17711 CPPFLAGS="$am_save_CPPFLAGS"
17712 LIBICONV=
17713 LTLIBICONV=
17714 fi
17715
17716
17717
17718
17719
17720
17721 use_additional=yes
17722
17723 acl_save_prefix="$prefix"
17724 prefix="$acl_final_prefix"
17725 acl_save_exec_prefix="$exec_prefix"
17726 exec_prefix="$acl_final_exec_prefix"
17727
17728 eval additional_includedir=\"$includedir\"
17729 eval additional_libdir=\"$libdir\"
17730
17731 exec_prefix="$acl_save_exec_prefix"
17732 prefix="$acl_save_prefix"
17733
17734
17735 # Check whether --with-libintl-prefix was given.
17736 if test "${with_libintl_prefix+set}" = set; then :
17737 withval=$with_libintl_prefix;
17738 if test "X$withval" = "Xno"; then
17739 use_additional=no
17740 else
17741 if test "X$withval" = "X"; then
17742
17743 acl_save_prefix="$prefix"
17744 prefix="$acl_final_prefix"
17745 acl_save_exec_prefix="$exec_prefix"
17746 exec_prefix="$acl_final_exec_prefix"
17747
17748 eval additional_includedir=\"$includedir\"
17749 eval additional_libdir=\"$libdir\"
17750
17751 exec_prefix="$acl_save_exec_prefix"
17752 prefix="$acl_save_prefix"
17753
17754 else
17755 additional_includedir="$withval/include"
17756 additional_libdir="$withval/lib"
17757 fi
17758 fi
17759
17760 fi
17761
17762
17763 # Check whether --with-libintl-type was given.
17764 if test "${with_libintl_type+set}" = set; then :
17765 withval=$with_libintl_type; with_libintl_type=$withval
17766 else
17767 with_libintl_type=auto
17768 fi
17769
17770 lib_type=`eval echo \$with_libintl_type`
17771
17772 LIBINTL=
17773 LTLIBINTL=
17774 INCINTL=
17775 rpathdirs=
17776 ltrpathdirs=
17777 names_already_handled=
17778 names_next_round='intl '
17779 while test -n "$names_next_round"; do
17780 names_this_round="$names_next_round"
17781 names_next_round=
17782 for name in $names_this_round; do
17783 already_handled=
17784 for n in $names_already_handled; do
17785 if test "$n" = "$name"; then
17786 already_handled=yes
17787 break
17788 fi
17789 done
17790 if test -z "$already_handled"; then
17791 names_already_handled="$names_already_handled $name"
17792 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17793 eval value=\"\$HAVE_LIB$uppername\"
17794 if test -n "$value"; then
17795 if test "$value" = yes; then
17796 eval value=\"\$LIB$uppername\"
17797 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17798 eval value=\"\$LTLIB$uppername\"
17799 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17800 else
17801 :
17802 fi
17803 else
17804 found_dir=
17805 found_la=
17806 found_so=
17807 found_a=
17808 if test $use_additional = yes; then
17809 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
17810 found_dir="$additional_libdir"
17811 found_so="$additional_libdir/lib$name.$shlibext"
17812 if test -f "$additional_libdir/lib$name.la"; then
17813 found_la="$additional_libdir/lib$name.la"
17814 fi
17815 elif test x$lib_type != xshared; then
17816 if test -f "$additional_libdir/lib$name.$libext"; then
17817 found_dir="$additional_libdir"
17818 found_a="$additional_libdir/lib$name.$libext"
17819 if test -f "$additional_libdir/lib$name.la"; then
17820 found_la="$additional_libdir/lib$name.la"
17821 fi
17822 fi
17823 fi
17824 fi
17825 if test "X$found_dir" = "X"; then
17826 for x in $LDFLAGS $LTLIBINTL; do
17827
17828 acl_save_prefix="$prefix"
17829 prefix="$acl_final_prefix"
17830 acl_save_exec_prefix="$exec_prefix"
17831 exec_prefix="$acl_final_exec_prefix"
17832 eval x=\"$x\"
17833 exec_prefix="$acl_save_exec_prefix"
17834 prefix="$acl_save_prefix"
17835
17836 case "$x" in
17837 -L*)
17838 dir=`echo "X$x" | sed -e 's/^X-L//'`
17839 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
17840 found_dir="$dir"
17841 found_so="$dir/lib$name.$shlibext"
17842 if test -f "$dir/lib$name.la"; then
17843 found_la="$dir/lib$name.la"
17844 fi
17845 elif test x$lib_type != xshared; then
17846 if test -f "$dir/lib$name.$libext"; then
17847 found_dir="$dir"
17848 found_a="$dir/lib$name.$libext"
17849 if test -f "$dir/lib$name.la"; then
17850 found_la="$dir/lib$name.la"
17851 fi
17852 fi
17853 fi
17854 ;;
17855 esac
17856 if test "X$found_dir" != "X"; then
17857 break
17858 fi
17859 done
17860 fi
17861 if test "X$found_dir" != "X"; then
17862 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17863 if test "X$found_so" != "X"; then
17864 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17865 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17866 else
17867 haveit=
17868 for x in $ltrpathdirs; do
17869 if test "X$x" = "X$found_dir"; then
17870 haveit=yes
17871 break
17872 fi
17873 done
17874 if test -z "$haveit"; then
17875 ltrpathdirs="$ltrpathdirs $found_dir"
17876 fi
17877 if test "$hardcode_direct" = yes; then
17878 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17879 else
17880 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17881 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17882 haveit=
17883 for x in $rpathdirs; do
17884 if test "X$x" = "X$found_dir"; then
17885 haveit=yes
17886 break
17887 fi
17888 done
17889 if test -z "$haveit"; then
17890 rpathdirs="$rpathdirs $found_dir"
17891 fi
17892 else
17893 haveit=
17894 for x in $LDFLAGS $LIBINTL; do
17895
17896 acl_save_prefix="$prefix"
17897 prefix="$acl_final_prefix"
17898 acl_save_exec_prefix="$exec_prefix"
17899 exec_prefix="$acl_final_exec_prefix"
17900 eval x=\"$x\"
17901 exec_prefix="$acl_save_exec_prefix"
17902 prefix="$acl_save_prefix"
17903
17904 if test "X$x" = "X-L$found_dir"; then
17905 haveit=yes
17906 break
17907 fi
17908 done
17909 if test -z "$haveit"; then
17910 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17911 fi
17912 if test "$hardcode_minus_L" != no; then
17913 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17914 else
17915 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17916 fi
17917 fi
17918 fi
17919 fi
17920 else
17921 if test "X$found_a" != "X"; then
17922 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17923 else
17924 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17925 fi
17926 fi
17927 additional_includedir=
17928 case "$found_dir" in
17929 */lib | */lib/)
17930 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17931 additional_includedir="$basedir/include"
17932 ;;
17933 esac
17934 if test "X$additional_includedir" != "X"; then
17935 if test "X$additional_includedir" != "X/usr/include"; then
17936 haveit=
17937 if test "X$additional_includedir" = "X/usr/local/include"; then
17938 if test -n "$GCC"; then
17939 case $host_os in
17940 linux*) haveit=yes;;
17941 esac
17942 fi
17943 fi
17944 if test -z "$haveit"; then
17945 for x in $CPPFLAGS $INCINTL; do
17946
17947 acl_save_prefix="$prefix"
17948 prefix="$acl_final_prefix"
17949 acl_save_exec_prefix="$exec_prefix"
17950 exec_prefix="$acl_final_exec_prefix"
17951 eval x=\"$x\"
17952 exec_prefix="$acl_save_exec_prefix"
17953 prefix="$acl_save_prefix"
17954
17955 if test "X$x" = "X-I$additional_includedir"; then
17956 haveit=yes
17957 break
17958 fi
17959 done
17960 if test -z "$haveit"; then
17961 if test -d "$additional_includedir"; then
17962 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17963 fi
17964 fi
17965 fi
17966 fi
17967 fi
17968 if test -n "$found_la"; then
17969 save_libdir="$libdir"
17970 case "$found_la" in
17971 */* | *\\*) . "$found_la" ;;
17972 *) . "./$found_la" ;;
17973 esac
17974 libdir="$save_libdir"
17975 for dep in $dependency_libs; do
17976 case "$dep" in
17977 -L*)
17978 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17979 if test "X$additional_libdir" != "X/usr/lib"; then
17980 haveit=
17981 if test "X$additional_libdir" = "X/usr/local/lib"; then
17982 if test -n "$GCC"; then
17983 case $host_os in
17984 linux*) haveit=yes;;
17985 esac
17986 fi
17987 fi
17988 if test -z "$haveit"; then
17989 haveit=
17990 for x in $LDFLAGS $LIBINTL; do
17991
17992 acl_save_prefix="$prefix"
17993 prefix="$acl_final_prefix"
17994 acl_save_exec_prefix="$exec_prefix"
17995 exec_prefix="$acl_final_exec_prefix"
17996 eval x=\"$x\"
17997 exec_prefix="$acl_save_exec_prefix"
17998 prefix="$acl_save_prefix"
17999
18000 if test "X$x" = "X-L$additional_libdir"; then
18001 haveit=yes
18002 break
18003 fi
18004 done
18005 if test -z "$haveit"; then
18006 if test -d "$additional_libdir"; then
18007 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18008 fi
18009 fi
18010 haveit=
18011 for x in $LDFLAGS $LTLIBINTL; do
18012
18013 acl_save_prefix="$prefix"
18014 prefix="$acl_final_prefix"
18015 acl_save_exec_prefix="$exec_prefix"
18016 exec_prefix="$acl_final_exec_prefix"
18017 eval x=\"$x\"
18018 exec_prefix="$acl_save_exec_prefix"
18019 prefix="$acl_save_prefix"
18020
18021 if test "X$x" = "X-L$additional_libdir"; then
18022 haveit=yes
18023 break
18024 fi
18025 done
18026 if test -z "$haveit"; then
18027 if test -d "$additional_libdir"; then
18028 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18029 fi
18030 fi
18031 fi
18032 fi
18033 ;;
18034 -R*)
18035 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18036 if test "$enable_rpath" != no; then
18037 haveit=
18038 for x in $rpathdirs; do
18039 if test "X$x" = "X$dir"; then
18040 haveit=yes
18041 break
18042 fi
18043 done
18044 if test -z "$haveit"; then
18045 rpathdirs="$rpathdirs $dir"
18046 fi
18047 haveit=
18048 for x in $ltrpathdirs; do
18049 if test "X$x" = "X$dir"; then
18050 haveit=yes
18051 break
18052 fi
18053 done
18054 if test -z "$haveit"; then
18055 ltrpathdirs="$ltrpathdirs $dir"
18056 fi
18057 fi
18058 ;;
18059 -l*)
18060 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18061 ;;
18062 *.la)
18063 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18064 ;;
18065 *)
18066 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18067 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18068 ;;
18069 esac
18070 done
18071 fi
18072 else
18073 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
18074 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18075 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18076 else
18077 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
18078 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
18079 fi
18080 fi
18081 fi
18082 fi
18083 done
18084 done
18085 if test "X$rpathdirs" != "X"; then
18086 if test -n "$hardcode_libdir_separator"; then
18087 alldirs=
18088 for found_dir in $rpathdirs; do
18089 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18090 done
18091 acl_save_libdir="$libdir"
18092 libdir="$alldirs"
18093 eval flag=\"$hardcode_libdir_flag_spec\"
18094 libdir="$acl_save_libdir"
18095 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18096 else
18097 for found_dir in $rpathdirs; do
18098 acl_save_libdir="$libdir"
18099 libdir="$found_dir"
18100 eval flag=\"$hardcode_libdir_flag_spec\"
18101 libdir="$acl_save_libdir"
18102 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18103 done
18104 fi
18105 fi
18106 if test "X$ltrpathdirs" != "X"; then
18107 for found_dir in $ltrpathdirs; do
18108 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18109 done
18110 fi
18111
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18113 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18114 if eval \${$gt_func_gnugettext_libintl+:} false; then :
18115 $as_echo_n "(cached) " >&6
18116 else
18117 gt_save_CPPFLAGS="$CPPFLAGS"
18118 CPPFLAGS="$CPPFLAGS $INCINTL"
18119 gt_save_LIBS="$LIBS"
18120 LIBS="$LIBS $LIBINTL"
18121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18122 /* end confdefs.h. */
18123
18124 #include <libintl.h>
18125 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
18126 extern int _nl_msg_cat_cntr;
18127 extern
18128 #ifdef __cplusplus
18129 "C"
18130 #endif
18131 const char *_nl_expand_alias (const char *);
18132 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
18133 #else
18134 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
18135 #endif
18136 $gt_revision_test_code
18137
18138 int
18139 main ()
18140 {
18141
18142 bindtextdomain ("", "");
18143 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
18144
18145 ;
18146 return 0;
18147 }
18148 _ACEOF
18149 if ac_fn_c_try_link "$LINENO"; then :
18150 eval "$gt_func_gnugettext_libintl=yes"
18151 else
18152 eval "$gt_func_gnugettext_libintl=no"
18153 fi
18154 rm -f core conftest.err conftest.$ac_objext \
18155 conftest$ac_exeext conftest.$ac_ext
18156 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
18157 LIBS="$LIBS $LIBICONV"
18158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18159 /* end confdefs.h. */
18160
18161 #include <libintl.h>
18162 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
18163 extern int _nl_msg_cat_cntr;
18164 extern
18165 #ifdef __cplusplus
18166 "C"
18167 #endif
18168 const char *_nl_expand_alias (const char *);
18169 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
18170 #else
18171 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
18172 #endif
18173 $gt_revision_test_code
18174
18175 int
18176 main ()
18177 {
18178
18179 bindtextdomain ("", "");
18180 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
18181
18182 ;
18183 return 0;
18184 }
18185 _ACEOF
18186 if ac_fn_c_try_link "$LINENO"; then :
18187 LIBINTL="$LIBINTL $LIBICONV"
18188 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18189 eval "$gt_func_gnugettext_libintl=yes"
18190
18191 fi
18192 rm -f core conftest.err conftest.$ac_objext \
18193 conftest$ac_exeext conftest.$ac_ext
18194 fi
18195 CPPFLAGS="$gt_save_CPPFLAGS"
18196 LIBS="$gt_save_LIBS"
18197 fi
18198 eval ac_res=\$$gt_func_gnugettext_libintl
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18200 $as_echo "$ac_res" >&6; }
18201 fi
18202
18203 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
18204 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
18205 && test "$PACKAGE" != gettext-runtime \
18206 && test "$PACKAGE" != gettext-tools; }; then
18207 gt_use_preinstalled_gnugettext=yes
18208 else
18209 LIBINTL=
18210 LTLIBINTL=
18211 INCINTL=
18212 fi
18213
18214
18215
18216 if test -n "$INTL_MACOSX_LIBS"; then
18217 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18218 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18219 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18220 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18221 fi
18222 fi
18223
18224 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18225 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18226
18227 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18228
18229 else
18230 USE_NLS=no
18231 fi
18232 fi
18233
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18235 $as_echo_n "checking whether to use NLS... " >&6; }
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18237 $as_echo "$USE_NLS" >&6; }
18238 if test "$USE_NLS" = "yes"; then
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18240 $as_echo_n "checking where the gettext function comes from... " >&6; }
18241 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18242 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18243 gt_source="external libintl"
18244 else
18245 gt_source="libc"
18246 fi
18247 else
18248 gt_source="included intl directory"
18249 fi
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18251 $as_echo "$gt_source" >&6; }
18252 fi
18253
18254 if test "$USE_NLS" = "yes"; then
18255
18256 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18257 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18259 $as_echo_n "checking how to link with libintl... " >&6; }
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18261 $as_echo "$LIBINTL" >&6; }
18262
18263 for element in $INCINTL; do
18264 haveit=
18265 for x in $CPPFLAGS; do
18266
18267 acl_save_prefix="$prefix"
18268 prefix="$acl_final_prefix"
18269 acl_save_exec_prefix="$exec_prefix"
18270 exec_prefix="$acl_final_exec_prefix"
18271 eval x=\"$x\"
18272 exec_prefix="$acl_save_exec_prefix"
18273 prefix="$acl_save_prefix"
18274
18275 if test "X$x" = "X$element"; then
18276 haveit=yes
18277 break
18278 fi
18279 done
18280 if test -z "$haveit"; then
18281 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18282 fi
18283 done
18284
18285 fi
18286
18287
18288 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18289
18290
18291 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18292
18293 fi
18294
18295 POSUB=po
18296 fi
18297
18298
18299
18300 INTLLIBS="$LIBINTL"
18301
18302
18303
18304
18305
18306
18307 fi
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18320 $as_echo_n "checking whether NLS is requested... " >&6; }
18321 if test x"$USE_NLS" != xyes; then
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18323 $as_echo "no" >&6; }
18324 else
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18326 $as_echo "yes" >&6; }
18327
18328 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18329
18330
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
18332 $as_echo_n "checking for catalogs to be installed... " >&6; }
18333 # Look for .po and .gmo files in the source directory.
18334 CATALOGS=
18335 XLINGUAS=
18336 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
18337 # If there aren't any .gmo files the shell will give us the
18338 # literal string "../path/to/srcdir/po/*.gmo" which has to be
18339 # weeded out.
18340 case "$cat" in *\**)
18341 continue;;
18342 esac
18343 # The quadruple backslash is collapsed to a double backslash
18344 # by the backticks, then collapsed again by the double quotes,
18345 # leaving us with one backslash in the sed expression (right
18346 # before the dot that mustn't act as a wildcard).
18347 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
18348 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
18349 # The user is allowed to set LINGUAS to a list of languages to
18350 # install catalogs for. If it's empty that means "all of them."
18351 if test "x$LINGUAS" = x; then
18352 CATALOGS="$CATALOGS $cat"
18353 XLINGUAS="$XLINGUAS $lang"
18354 else
18355 case "$LINGUAS" in *$lang*)
18356 CATALOGS="$CATALOGS $cat"
18357 XLINGUAS="$XLINGUAS $lang"
18358 ;;
18359 esac
18360 fi
18361 done
18362 LINGUAS="$XLINGUAS"
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
18364 $as_echo "$LINGUAS" >&6; }
18365
18366
18367 DATADIRNAME=share
18368
18369 INSTOBJEXT=.mo
18370
18371 GENCAT=gencat
18372
18373 CATOBJEXT=.gmo
18374
18375 fi
18376
18377
18378
18379 for ac_prog in 'bison -y' byacc
18380 do
18381 # Extract the first word of "$ac_prog", so it can be a program name with args.
18382 set dummy $ac_prog; ac_word=$2
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18384 $as_echo_n "checking for $ac_word... " >&6; }
18385 if ${ac_cv_prog_YACC+:} false; then :
18386 $as_echo_n "(cached) " >&6
18387 else
18388 if test -n "$YACC"; then
18389 ac_cv_prog_YACC="$YACC" # Let the user override the test.
18390 else
18391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18392 for as_dir in $PATH
18393 do
18394 IFS=$as_save_IFS
18395 test -z "$as_dir" && as_dir=.
18396 for ac_exec_ext in '' $ac_executable_extensions; do
18397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18398 ac_cv_prog_YACC="$ac_prog"
18399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18400 break 2
18401 fi
18402 done
18403 done
18404 IFS=$as_save_IFS
18405
18406 fi
18407 fi
18408 YACC=$ac_cv_prog_YACC
18409 if test -n "$YACC"; then
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
18411 $as_echo "$YACC" >&6; }
18412 else
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18414 $as_echo "no" >&6; }
18415 fi
18416
18417
18418 test -n "$YACC" && break
18419 done
18420 test -n "$YACC" || YACC="yacc"
18421
18422 for ac_prog in flex lex
18423 do
18424 # Extract the first word of "$ac_prog", so it can be a program name with args.
18425 set dummy $ac_prog; ac_word=$2
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18427 $as_echo_n "checking for $ac_word... " >&6; }
18428 if ${ac_cv_prog_LEX+:} false; then :
18429 $as_echo_n "(cached) " >&6
18430 else
18431 if test -n "$LEX"; then
18432 ac_cv_prog_LEX="$LEX" # Let the user override the test.
18433 else
18434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18435 for as_dir in $PATH
18436 do
18437 IFS=$as_save_IFS
18438 test -z "$as_dir" && as_dir=.
18439 for ac_exec_ext in '' $ac_executable_extensions; do
18440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18441 ac_cv_prog_LEX="$ac_prog"
18442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18443 break 2
18444 fi
18445 done
18446 done
18447 IFS=$as_save_IFS
18448
18449 fi
18450 fi
18451 LEX=$ac_cv_prog_LEX
18452 if test -n "$LEX"; then
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
18454 $as_echo "$LEX" >&6; }
18455 else
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18457 $as_echo "no" >&6; }
18458 fi
18459
18460
18461 test -n "$LEX" && break
18462 done
18463 test -n "$LEX" || LEX=":"
18464
18465 case "$LEX" in
18466 :|*"missing "*) ;;
18467 *) cat >conftest.l <<_ACEOF
18468 %%
18469 a { ECHO; }
18470 b { REJECT; }
18471 c { yymore (); }
18472 d { yyless (1); }
18473 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
18474 yyless ((input () != 0)); }
18475 f { unput (yytext[0]); }
18476 . { BEGIN INITIAL; }
18477 %%
18478 #ifdef YYTEXT_POINTER
18479 extern char *yytext;
18480 #endif
18481 int
18482 main (void)
18483 {
18484 return ! yylex () + ! yywrap ();
18485 }
18486 _ACEOF
18487 { { ac_try="$LEX conftest.l"
18488 case "(($ac_try" in
18489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18490 *) ac_try_echo=$ac_try;;
18491 esac
18492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18493 $as_echo "$ac_try_echo"; } >&5
18494 (eval "$LEX conftest.l") 2>&5
18495 ac_status=$?
18496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18497 test $ac_status = 0; }
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
18499 $as_echo_n "checking lex output file root... " >&6; }
18500 if ${ac_cv_prog_lex_root+:} false; then :
18501 $as_echo_n "(cached) " >&6
18502 else
18503
18504 if test -f lex.yy.c; then
18505 ac_cv_prog_lex_root=lex.yy
18506 elif test -f lexyy.c; then
18507 ac_cv_prog_lex_root=lexyy
18508 else
18509 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
18510 fi
18511 fi
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
18513 $as_echo "$ac_cv_prog_lex_root" >&6; }
18514 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
18515
18516 if test -z "${LEXLIB+set}"; then
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
18518 $as_echo_n "checking lex library... " >&6; }
18519 if ${ac_cv_lib_lex+:} false; then :
18520 $as_echo_n "(cached) " >&6
18521 else
18522
18523 ac_save_LIBS=$LIBS
18524 ac_cv_lib_lex='none needed'
18525 for ac_lib in '' -lfl -ll; do
18526 LIBS="$ac_lib $ac_save_LIBS"
18527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18528 /* end confdefs.h. */
18529 `cat $LEX_OUTPUT_ROOT.c`
18530 _ACEOF
18531 if ac_fn_c_try_link "$LINENO"; then :
18532 ac_cv_lib_lex=$ac_lib
18533 fi
18534 rm -f core conftest.err conftest.$ac_objext \
18535 conftest$ac_exeext conftest.$ac_ext
18536 test "$ac_cv_lib_lex" != 'none needed' && break
18537 done
18538 LIBS=$ac_save_LIBS
18539
18540 fi
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
18542 $as_echo "$ac_cv_lib_lex" >&6; }
18543 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
18544 fi
18545
18546
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
18548 $as_echo_n "checking whether yytext is a pointer... " >&6; }
18549 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
18550 $as_echo_n "(cached) " >&6
18551 else
18552 # POSIX says lex can declare yytext either as a pointer or an array; the
18553 # default is implementation-dependent. Figure out which it is, since
18554 # not all implementations provide the %pointer and %array declarations.
18555 ac_cv_prog_lex_yytext_pointer=no
18556 ac_save_LIBS=$LIBS
18557 LIBS="$LEXLIB $ac_save_LIBS"
18558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18559 /* end confdefs.h. */
18560
18561 #define YYTEXT_POINTER 1
18562 `cat $LEX_OUTPUT_ROOT.c`
18563 _ACEOF
18564 if ac_fn_c_try_link "$LINENO"; then :
18565 ac_cv_prog_lex_yytext_pointer=yes
18566 fi
18567 rm -f core conftest.err conftest.$ac_objext \
18568 conftest$ac_exeext conftest.$ac_ext
18569 LIBS=$ac_save_LIBS
18570
18571 fi
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
18573 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
18574 if test $ac_cv_prog_lex_yytext_pointer = yes; then
18575
18576 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
18577
18578 fi
18579 rm -f conftest.l $LEX_OUTPUT_ROOT.c
18580 ;;
18581 esac
18582 if test "$LEX" = :; then
18583 LEX=${am_missing_run}flex
18584 fi
18585
18586
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18588 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18589 # Check whether --enable-maintainer-mode was given.
18590 if test "${enable_maintainer_mode+set}" = set; then :
18591 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18592 else
18593 USE_MAINTAINER_MODE=no
18594 fi
18595
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18597 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18598 if test $USE_MAINTAINER_MODE = yes; then
18599 MAINTAINER_MODE_TRUE=
18600 MAINTAINER_MODE_FALSE='#'
18601 else
18602 MAINTAINER_MODE_TRUE='#'
18603 MAINTAINER_MODE_FALSE=
18604 fi
18605
18606 MAINT=$MAINTAINER_MODE_TRUE
18607
18608
18609 if false; then
18610 GENINSRC_NEVER_TRUE=
18611 GENINSRC_NEVER_FALSE='#'
18612 else
18613 GENINSRC_NEVER_TRUE='#'
18614 GENINSRC_NEVER_FALSE=
18615 fi
18616
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
18618 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
18619 if ${gcc_cv_prog_cmp_skip+:} false; then :
18620 $as_echo_n "(cached) " >&6
18621 else
18622 echo abfoo >t1
18623 echo cdfoo >t2
18624 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
18625 if cmp t1 t2 2 2 > /dev/null 2>&1; then
18626 if cmp t1 t2 1 1 > /dev/null 2>&1; then
18627 :
18628 else
18629 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
18630 fi
18631 fi
18632 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
18633 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
18634 :
18635 else
18636 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
18637 fi
18638 fi
18639 rm t1 t2
18640
18641 fi
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
18643 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
18644 do_compare="$gcc_cv_prog_cmp_skip"
18645
18646
18647
18648 . ${srcdir}/configure.host
18649
18650
18651
18652
18653 # We use headers from include/ that check various HAVE_*_H macros, thus
18654 # should ensure they are set by configure. This is true even when C99
18655 # guarantees they are available.
18656 # sha1.h and md4.h test HAVE_LIMITS_H, HAVE_SYS_TYPES_H and HAVE_STDINT_H
18657 # plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
18658 # Besides those, we need to check anything used in ld/ not in C99.
18659 for ac_header in fcntl.h elf-hints.h limits.h inttypes.h stdint.h \
18660 sys/file.h sys/mman.h sys/param.h sys/stat.h sys/time.h \
18661 sys/types.h unistd.h
18662 do :
18663 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18664 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18665 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18666 cat >>confdefs.h <<_ACEOF
18667 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18668 _ACEOF
18669
18670 fi
18671
18672 done
18673
18674 for ac_func in close getrusage glob lseek mkstemp open realpath waitpid mallinfo mallinfo2
18675 do :
18676 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18677 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18678 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18679 cat >>confdefs.h <<_ACEOF
18680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18681 _ACEOF
18682
18683 fi
18684 done
18685
18686
18687
18688 case "${host}" in
18689 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
18690
18691 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
18692 ;;
18693 esac
18694
18695 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
18696 if test "x$ac_cv_have_decl_environ" = xyes; then :
18697 ac_have_decl=1
18698 else
18699 ac_have_decl=0
18700 fi
18701
18702 cat >>confdefs.h <<_ACEOF
18703 #define HAVE_DECL_ENVIRON $ac_have_decl
18704 _ACEOF
18705 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
18706 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
18707 ac_have_decl=1
18708 else
18709 ac_have_decl=0
18710 fi
18711
18712 cat >>confdefs.h <<_ACEOF
18713 #define HAVE_DECL_STPCPY $ac_have_decl
18714 _ACEOF
18715 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
18716 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
18717 ac_have_decl=1
18718 else
18719 ac_have_decl=0
18720 fi
18721
18722 cat >>confdefs.h <<_ACEOF
18723 #define HAVE_DECL_STRTOULL $ac_have_decl
18724 _ACEOF
18725
18726
18727
18728
18729
18730 for ac_header in $ac_header_list
18731 do :
18732 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18733 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18734 "
18735 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18736 cat >>confdefs.h <<_ACEOF
18737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18738 _ACEOF
18739
18740 fi
18741
18742 done
18743
18744
18745
18746
18747
18748
18749
18750 save_ASAN_OPTIONS="$ASAN_OPTIONS"
18751 ASAN_OPTIONS=detect_leaks=0
18752 export ASAN_OPTIONS
18753
18754 for ac_func in getpagesize
18755 do :
18756 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18757 if test "x$ac_cv_func_getpagesize" = xyes; then :
18758 cat >>confdefs.h <<_ACEOF
18759 #define HAVE_GETPAGESIZE 1
18760 _ACEOF
18761
18762 fi
18763 done
18764
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18766 $as_echo_n "checking for working mmap... " >&6; }
18767 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
18768 $as_echo_n "(cached) " >&6
18769 else
18770 if test "$cross_compiling" = yes; then :
18771 ac_cv_func_mmap_fixed_mapped=no
18772 else
18773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18774 /* end confdefs.h. */
18775 $ac_includes_default
18776 /* malloc might have been renamed as rpl_malloc. */
18777 #undef malloc
18778
18779 /* Thanks to Mike Haertel and Jim Avera for this test.
18780 Here is a matrix of mmap possibilities:
18781 mmap private not fixed
18782 mmap private fixed at somewhere currently unmapped
18783 mmap private fixed at somewhere already mapped
18784 mmap shared not fixed
18785 mmap shared fixed at somewhere currently unmapped
18786 mmap shared fixed at somewhere already mapped
18787 For private mappings, we should verify that changes cannot be read()
18788 back from the file, nor mmap's back from the file at a different
18789 address. (There have been systems where private was not correctly
18790 implemented like the infamous i386 svr4.0, and systems where the
18791 VM page cache was not coherent with the file system buffer cache
18792 like early versions of FreeBSD and possibly contemporary NetBSD.)
18793 For shared mappings, we should conversely verify that changes get
18794 propagated back to all the places they're supposed to be.
18795
18796 Grep wants private fixed already mapped.
18797 The main things grep needs to know about mmap are:
18798 * does it exist and is it safe to write into the mmap'd area
18799 * how to use it (BSD variants) */
18800
18801 #include <fcntl.h>
18802 #include <sys/mman.h>
18803
18804 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18805 char *malloc ();
18806 #endif
18807
18808 /* This mess was copied from the GNU getpagesize.h. */
18809 #ifndef HAVE_GETPAGESIZE
18810 # ifdef _SC_PAGESIZE
18811 # define getpagesize() sysconf(_SC_PAGESIZE)
18812 # else /* no _SC_PAGESIZE */
18813 # ifdef HAVE_SYS_PARAM_H
18814 # include <sys/param.h>
18815 # ifdef EXEC_PAGESIZE
18816 # define getpagesize() EXEC_PAGESIZE
18817 # else /* no EXEC_PAGESIZE */
18818 # ifdef NBPG
18819 # define getpagesize() NBPG * CLSIZE
18820 # ifndef CLSIZE
18821 # define CLSIZE 1
18822 # endif /* no CLSIZE */
18823 # else /* no NBPG */
18824 # ifdef NBPC
18825 # define getpagesize() NBPC
18826 # else /* no NBPC */
18827 # ifdef PAGESIZE
18828 # define getpagesize() PAGESIZE
18829 # endif /* PAGESIZE */
18830 # endif /* no NBPC */
18831 # endif /* no NBPG */
18832 # endif /* no EXEC_PAGESIZE */
18833 # else /* no HAVE_SYS_PARAM_H */
18834 # define getpagesize() 8192 /* punt totally */
18835 # endif /* no HAVE_SYS_PARAM_H */
18836 # endif /* no _SC_PAGESIZE */
18837
18838 #endif /* no HAVE_GETPAGESIZE */
18839
18840 int
18841 main ()
18842 {
18843 char *data, *data2, *data3;
18844 const char *cdata2;
18845 int i, pagesize;
18846 int fd, fd2;
18847
18848 pagesize = getpagesize ();
18849
18850 /* First, make a file with some known garbage in it. */
18851 data = (char *) malloc (pagesize);
18852 if (!data)
18853 return 1;
18854 for (i = 0; i < pagesize; ++i)
18855 *(data + i) = rand ();
18856 umask (0);
18857 fd = creat ("conftest.mmap", 0600);
18858 if (fd < 0)
18859 return 2;
18860 if (write (fd, data, pagesize) != pagesize)
18861 return 3;
18862 close (fd);
18863
18864 /* Next, check that the tail of a page is zero-filled. File must have
18865 non-zero length, otherwise we risk SIGBUS for entire page. */
18866 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18867 if (fd2 < 0)
18868 return 4;
18869 cdata2 = "";
18870 if (write (fd2, cdata2, 1) != 1)
18871 return 5;
18872 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18873 if (data2 == MAP_FAILED)
18874 return 6;
18875 for (i = 0; i < pagesize; ++i)
18876 if (*(data2 + i))
18877 return 7;
18878 close (fd2);
18879 if (munmap (data2, pagesize))
18880 return 8;
18881
18882 /* Next, try to mmap the file at a fixed address which already has
18883 something else allocated at it. If we can, also make sure that
18884 we see the same garbage. */
18885 fd = open ("conftest.mmap", O_RDWR);
18886 if (fd < 0)
18887 return 9;
18888 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18889 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18890 return 10;
18891 for (i = 0; i < pagesize; ++i)
18892 if (*(data + i) != *(data2 + i))
18893 return 11;
18894
18895 /* Finally, make sure that changes to the mapped area do not
18896 percolate back to the file as seen by read(). (This is a bug on
18897 some variants of i386 svr4.0.) */
18898 for (i = 0; i < pagesize; ++i)
18899 *(data2 + i) = *(data2 + i) + 1;
18900 data3 = (char *) malloc (pagesize);
18901 if (!data3)
18902 return 12;
18903 if (read (fd, data3, pagesize) != pagesize)
18904 return 13;
18905 for (i = 0; i < pagesize; ++i)
18906 if (*(data + i) != *(data3 + i))
18907 return 14;
18908 close (fd);
18909 return 0;
18910 }
18911 _ACEOF
18912 if ac_fn_c_try_run "$LINENO"; then :
18913 ac_cv_func_mmap_fixed_mapped=yes
18914 else
18915 ac_cv_func_mmap_fixed_mapped=no
18916 fi
18917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18918 conftest.$ac_objext conftest.beam conftest.$ac_ext
18919 fi
18920
18921 fi
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18923 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18924 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18925
18926 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18927
18928 fi
18929 rm -f conftest.mmap conftest.txt
18930
18931 ASAN_OPTIONS="$save_ASAN_OPTIONS"
18932
18933
18934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18935 $as_echo_n "checking for library containing dlopen... " >&6; }
18936 if ${ac_cv_search_dlopen+:} false; then :
18937 $as_echo_n "(cached) " >&6
18938 else
18939 ac_func_search_save_LIBS=$LIBS
18940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18941 /* end confdefs.h. */
18942
18943 /* Override any GCC internal prototype to avoid an error.
18944 Use char because int might match the return type of a GCC
18945 builtin and then its argument prototype would still apply. */
18946 #ifdef __cplusplus
18947 extern "C"
18948 #endif
18949 char dlopen ();
18950 int
18951 main ()
18952 {
18953 return dlopen ();
18954 ;
18955 return 0;
18956 }
18957 _ACEOF
18958 for ac_lib in '' dl; do
18959 if test -z "$ac_lib"; then
18960 ac_res="none required"
18961 else
18962 ac_res=-l$ac_lib
18963 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18964 fi
18965 if ac_fn_c_try_link "$LINENO"; then :
18966 ac_cv_search_dlopen=$ac_res
18967 fi
18968 rm -f core conftest.err conftest.$ac_objext \
18969 conftest$ac_exeext
18970 if ${ac_cv_search_dlopen+:} false; then :
18971 break
18972 fi
18973 done
18974 if ${ac_cv_search_dlopen+:} false; then :
18975
18976 else
18977 ac_cv_search_dlopen=no
18978 fi
18979 rm conftest.$ac_ext
18980 LIBS=$ac_func_search_save_LIBS
18981 fi
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18983 $as_echo "$ac_cv_search_dlopen" >&6; }
18984 ac_res=$ac_cv_search_dlopen
18985 if test "$ac_res" != no; then :
18986 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18987
18988 fi
18989
18990
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
18992 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
18993 if ${ld_cv_decl_getopt_unistd_h+:} false; then :
18994 $as_echo_n "(cached) " >&6
18995 else
18996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18997 /* end confdefs.h. */
18998 #include <unistd.h>
18999 int
19000 main ()
19001 {
19002 extern int getopt (int, char *const*, const char *);
19003 ;
19004 return 0;
19005 }
19006 _ACEOF
19007 if ac_fn_c_try_compile "$LINENO"; then :
19008 ld_cv_decl_getopt_unistd_h=yes
19009 else
19010 ld_cv_decl_getopt_unistd_h=no
19011 fi
19012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19013 fi
19014
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
19016 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
19017 if test $ld_cv_decl_getopt_unistd_h = yes; then
19018
19019 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
19020
19021 fi
19022
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
19024 $as_echo_n "checking whether to use xxhash... " >&6; }
19025
19026 # Check whether --with-xxhash was given.
19027 if test "${with_xxhash+set}" = set; then :
19028 withval=$with_xxhash;
19029 else
19030 with_xxhash=auto
19031 fi
19032
19033 if test "x$with_xxhash" != "xno"; then
19034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19035 /* end confdefs.h. */
19036
19037 #define XXH_INLINE_ALL
19038 #include <xxhash.h>
19039 XXH128_hash_t r;
19040 void foo (void) { r = XXH128("foo", 3, 0); }
19041
19042 _ACEOF
19043 if ac_fn_c_try_compile "$LINENO"; then :
19044
19045 with_xxhash=yes
19046
19047 $as_echo "#define WITH_XXHASH 1" >>confdefs.h
19048
19049
19050 else
19051
19052 if test "$with_xxhash" = yes; then
19053 as_fn_error $? "xxhash is missing or unusable" "$LINENO" 5
19054 fi
19055 with_xxhash=no
19056 fi
19057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19058 fi
19059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
19060 $as_echo "$with_xxhash" >&6; }
19061
19062 # Link in zlib/zstd if we can. This allows us to read and write
19063 # compressed debug sections.
19064
19065 # Use the system's zlib library.
19066 zlibdir="-L\$(top_builddir)/../zlib"
19067 zlibinc="-I\$(top_srcdir)/../zlib"
19068
19069 # Check whether --with-system-zlib was given.
19070 if test "${with_system_zlib+set}" = set; then :
19071 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
19072 zlibdir=
19073 zlibinc=
19074 fi
19075
19076 fi
19077
19078
19079
19080
19081
19082
19083 # Check whether --with-zstd was given.
19084 if test "${with_zstd+set}" = set; then :
19085 withval=$with_zstd;
19086 else
19087 with_zstd=auto
19088 fi
19089
19090
19091 if test "$with_zstd" != no; then :
19092
19093 pkg_failed=no
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
19095 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
19096
19097 if test -n "$ZSTD_CFLAGS"; then
19098 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
19099 elif test -n "$PKG_CONFIG"; then
19100 if test -n "$PKG_CONFIG" && \
19101 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19102 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19103 ac_status=$?
19104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19105 test $ac_status = 0; }; then
19106 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
19107 test "x$?" != "x0" && pkg_failed=yes
19108 else
19109 pkg_failed=yes
19110 fi
19111 else
19112 pkg_failed=untried
19113 fi
19114 if test -n "$ZSTD_LIBS"; then
19115 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
19116 elif test -n "$PKG_CONFIG"; then
19117 if test -n "$PKG_CONFIG" && \
19118 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19119 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19120 ac_status=$?
19121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19122 test $ac_status = 0; }; then
19123 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
19124 test "x$?" != "x0" && pkg_failed=yes
19125 else
19126 pkg_failed=yes
19127 fi
19128 else
19129 pkg_failed=untried
19130 fi
19131
19132 if test $pkg_failed = no; then
19133 pkg_save_LDFLAGS="$LDFLAGS"
19134 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
19135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19136 /* end confdefs.h. */
19137
19138 int
19139 main ()
19140 {
19141
19142 ;
19143 return 0;
19144 }
19145 _ACEOF
19146 if ac_fn_c_try_link "$LINENO"; then :
19147
19148 else
19149 pkg_failed=yes
19150 fi
19151 rm -f core conftest.err conftest.$ac_objext \
19152 conftest$ac_exeext conftest.$ac_ext
19153 LDFLAGS=$pkg_save_LDFLAGS
19154 fi
19155
19156
19157
19158 if test $pkg_failed = yes; then
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19160 $as_echo "no" >&6; }
19161
19162 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19163 _pkg_short_errors_supported=yes
19164 else
19165 _pkg_short_errors_supported=no
19166 fi
19167 if test $_pkg_short_errors_supported = yes; then
19168 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19169 else
19170 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19171 fi
19172 # Put the nasty error message in config.log where it belongs
19173 echo "$ZSTD_PKG_ERRORS" >&5
19174
19175
19176 if test "$with_zstd" = yes; then
19177 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19178 fi
19179
19180 elif test $pkg_failed = untried; then
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19182 $as_echo "no" >&6; }
19183
19184 if test "$with_zstd" = yes; then
19185 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19186 fi
19187
19188 else
19189 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
19190 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19192 $as_echo "yes" >&6; }
19193
19194
19195 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
19196
19197
19198 fi
19199
19200 fi
19201
19202
19203 # target-specific stuff:
19204
19205 all_targets=
19206 EMUL=
19207 all_emuls=
19208 all_emul_extras=
19209 all_libpath=
19210 TDIRS=
19211
19212 elf_list_options=false
19213 elf_shlib_list_options=false
19214 elf_plt_unwind_list_options=false
19215 elf_sframe_list_options=false
19216 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
19217 do
19218 if test "$targ_alias" = "all"; then
19219 all_targets=true
19220 elf_list_options=true
19221 elf_shlib_list_options=true
19222 elf_plt_unwind_list_options=true
19223 elf_sframe_list_options=true
19224 else
19225 # Canonicalize the secondary target names.
19226 result=`$ac_config_sub $targ_alias 2>/dev/null`
19227 if test -n "$result"; then
19228 targ=$result
19229 else
19230 targ=$targ_alias
19231 fi
19232
19233 . ${srcdir}/configure.tgt
19234
19235 if test "$targ" = "$target"; then
19236 EMUL=$targ_emul
19237 fi
19238
19239 if test x${have_64_bit_bfd} = xno; then
19240 . ${srcdir}/../bfd/config.bfd
19241 fi
19242
19243 if test x${have_64_bit_bfd} = xyes; then
19244 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
19245 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
19246 fi
19247
19248 for i in $targ_emul $targ_extra_libpath $targ_extra_emuls; do
19249 case " $all_emuls " in
19250 *" e${i}.o "*) ;;
19251 *)
19252 all_emuls="$all_emuls e${i}.o"
19253 eval result=\$tdir_$i
19254 test -z "$result" && result=$targ_alias
19255 TDIRS="$TDIRS
19256 tdir_$i=$result"
19257 case "${i}" in
19258 *elf*)
19259 elf_list_options=true
19260 ;;
19261 *)
19262 if $GREP "TEMPLATE_NAME=elf" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
19263 elf_list_options=true
19264 fi
19265 ;;
19266 esac
19267 if test "$elf_list_options" = "true"; then
19268 source_sh()
19269 {
19270 . $1
19271 }
19272 source_sh ${srcdir}/emulparams/${i}.sh
19273 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
19274 elf_shlib_list_options=true
19275 fi
19276 if test x${PLT_UNWIND} = xyes; then
19277 elf_plt_unwind_list_options=true
19278 fi
19279 if test x${SFRAME_INFO} = xyes; then
19280 elf_sframe_list_options=true
19281 fi
19282 fi
19283 ;;
19284 esac
19285 done
19286
19287 for i in $targ_emul $targ_extra_libpath; do
19288 case " $all_libpath " in
19289 *" ${i} "*) ;;
19290 *)
19291 if test -z "$all_libpath"; then
19292 all_libpath=${i}
19293 else
19294 all_libpath="$all_libpath ${i}"
19295 fi
19296 ;;
19297 esac
19298 done
19299
19300 for i in $targ_extra_ofiles; do
19301 case " $all_emul_extras " in
19302 *" ${i} "*) ;;
19303 *)
19304 all_emul_extras="$all_emul_extras ${i}"
19305 ;;
19306 esac
19307 done
19308
19309 fi
19310 done
19311
19312 if test x$ac_default_compressed_debug_sections = xyes ; then
19313
19314 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
19315
19316 fi
19317
19318
19319 cat >>confdefs.h <<_ACEOF
19320 #define DEFAULT_COMPRESSED_DEBUG_ALGORITHM $ac_default_compressed_debug_sections_algorithm
19321 _ACEOF
19322
19323
19324 if test "${ac_default_new_dtags}" = unset; then
19325 ac_default_new_dtags=0
19326 fi
19327
19328 cat >>confdefs.h <<_ACEOF
19329 #define DEFAULT_NEW_DTAGS $ac_default_new_dtags
19330 _ACEOF
19331
19332
19333 if test "${ac_default_ld_z_relro}" = unset; then
19334 ac_default_ld_z_relro=0
19335 fi
19336
19337 cat >>confdefs.h <<_ACEOF
19338 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
19339 _ACEOF
19340
19341
19342 ac_default_ld_textrel_check_warning=0
19343 case "${ac_default_ld_textrel_check}" in
19344 unset|no)
19345 ac_default_ld_textrel_check=textrel_check_none
19346 ;;
19347 yes|warning)
19348 ac_default_ld_textrel_check=textrel_check_warning
19349 ac_default_ld_textrel_check_warning=1
19350 ;;
19351 error)
19352 ac_default_ld_textrel_check=textrel_check_error
19353 ;;
19354 esac
19355
19356 cat >>confdefs.h <<_ACEOF
19357 #define DEFAULT_LD_TEXTREL_CHECK $ac_default_ld_textrel_check
19358 _ACEOF
19359
19360
19361 cat >>confdefs.h <<_ACEOF
19362 #define DEFAULT_LD_TEXTREL_CHECK_WARNING $ac_default_ld_textrel_check_warning
19363 _ACEOF
19364
19365
19366 if test "${ac_default_ld_z_separate_code}" = unset; then
19367 ac_default_ld_z_separate_code=0
19368 fi
19369
19370 cat >>confdefs.h <<_ACEOF
19371 #define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
19372 _ACEOF
19373
19374
19375 if test "${ac_default_ld_rosegment}" = unset; then
19376 ac_default_ld_rosegment=0
19377 fi
19378
19379 cat >>confdefs.h <<_ACEOF
19380 #define DEFAULT_LD_ROSEGMENT $ac_default_ld_rosegment
19381 _ACEOF
19382
19383
19384 if test "${ac_default_ld_z_mark_plt}" = unset; then
19385 ac_default_ld_z_mark_plt=0
19386 fi
19387
19388 cat >>confdefs.h <<_ACEOF
19389 #define DEFAULT_LD_Z_MARK_PLT $ac_default_ld_z_mark_plt
19390 _ACEOF
19391
19392
19393 if test "${ac_default_ld_z_memory_seal}" = unset; then
19394 ac_default_ld_z_memory_seal=0
19395 fi
19396
19397 cat >>confdefs.h <<_ACEOF
19398 #define DEFAULT_LD_Z_MEMORY_SEAL $ac_default_ld_z_memory_seal
19399 _ACEOF
19400
19401
19402 if test "${ac_default_ld_enable_gnu2_tls_tag}" = unset; then
19403 # Default to enable --gnu2-tls-tag if libc.so has the GLIBC_ABI_GNU2_TLS
19404 # version.
19405 ac_default_ld_enable_gnu2_tls_tag=2
19406 fi
19407
19408 cat >>confdefs.h <<_ACEOF
19409 #define DEFAULT_LD_GNU2_TLS_TAG $ac_default_ld_enable_gnu2_tls_tag
19410 _ACEOF
19411
19412
19413 if test "${ac_default_ld_enable_gnu_tls_tag}" = unset; then
19414 # Default to enable --gnu-tls-tag if libc.so has the GLIBC_ABI_GNU_TLS
19415 # version.
19416 ac_default_ld_enable_gnu_tls_tag=2
19417 fi
19418
19419 cat >>confdefs.h <<_ACEOF
19420 #define DEFAULT_LD_GNU_TLS_TAG $ac_default_ld_enable_gnu_tls_tag
19421 _ACEOF
19422
19423
19424
19425 cat >>confdefs.h <<_ACEOF
19426 #define DEFAULT_LD_WARN_EXECSTACK $ac_default_ld_warn_execstack
19427 _ACEOF
19428
19429
19430
19431 cat >>confdefs.h <<_ACEOF
19432 #define DEFAULT_LD_ERROR_EXECSTACK $ac_default_ld_error_execstack
19433 _ACEOF
19434
19435
19436 if test "${ac_default_ld_warn_rwx_segments}" = unset; then
19437 ac_default_ld_warn_rwx_segments=1
19438 fi
19439
19440 cat >>confdefs.h <<_ACEOF
19441 #define DEFAULT_LD_WARN_RWX_SEGMENTS $ac_default_ld_warn_rwx_segments
19442 _ACEOF
19443
19444
19445
19446 cat >>confdefs.h <<_ACEOF
19447 #define DEFAULT_LD_ERROR_RWX_SEGMENTS $ac_default_ld_error_rwx_segments
19448 _ACEOF
19449
19450
19451 if test "${ac_default_ld_default_execstack}" = unset; then
19452 ac_default_ld_default_execstack=1
19453 fi
19454
19455 cat >>confdefs.h <<_ACEOF
19456 #define DEFAULT_LD_EXECSTACK $ac_default_ld_default_execstack
19457 _ACEOF
19458
19459
19460
19461 if test "${ac_support_error_handling_script}" = unset; then
19462 ac_support_error_handling_script=1
19463 fi
19464
19465 cat >>confdefs.h <<_ACEOF
19466 #define SUPPORT_ERROR_HANDLING_SCRIPT $ac_support_error_handling_script
19467 _ACEOF
19468
19469
19470
19471 cat >>confdefs.h <<_ACEOF
19472 #define DEFAULT_EMIT_SYSV_HASH $ac_default_emit_sysv_hash
19473 _ACEOF
19474
19475
19476
19477 cat >>confdefs.h <<_ACEOF
19478 #define DEFAULT_EMIT_GNU_HASH $ac_default_emit_gnu_hash
19479 _ACEOF
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491 if test x${all_targets} = xtrue; then
19492 if test x${have_64_bit_bfd} = xyes; then
19493 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
19494 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
19495 else
19496 EMULATION_OFILES='$(ALL_EMULATIONS)'
19497 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
19498 fi
19499 else
19500 EMULATION_OFILES=$all_emuls
19501 EMUL_EXTRA_OFILES=$all_emul_extras
19502 fi
19503
19504
19505
19506
19507 EMULATION_LIBPATH=$all_libpath
19508
19509
19510 if test x${enable_static} = xno; then
19511 TESTBFDLIB="-Wl,--rpath,../bfd/.libs ../bfd/.libs/libbfd.so"
19512 TESTCTFLIB="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
19513 TESTSFRAMELIB="-Wl,--rpath,../libsframe/.libs ../libsframe/.libs/libsframe.so"
19514 else
19515 TESTBFDLIB="../bfd/.libs/libbfd.a"
19516 TESTCTFLIB="../libctf/.libs/libctf.a"
19517 TESTSFRAMELIB="../libsframe/.libs/libsframe.a"
19518 fi
19519 if test "${enable_libctf}" = no; then
19520 TESTCTFLIB=
19521 fi
19522
19523
19524
19525
19526 target_vendor=${target_vendor=$host_vendor}
19527 case "$target_vendor" in
19528 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
19529 *) EXTRA_SHLIB_EXTENSION= ;;
19530 esac
19531
19532 case "$target_os" in
19533 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
19534 esac
19535
19536 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
19537
19538 cat >>confdefs.h <<_ACEOF
19539 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
19540 _ACEOF
19541
19542 fi
19543
19544 ac_config_commands="$ac_config_commands default"
19545
19546
19547
19548
19549
19550
19551
19552 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
19553
19554 cat >confcache <<\_ACEOF
19555 # This file is a shell script that caches the results of configure
19556 # tests run on this system so they can be shared between configure
19557 # scripts and configure runs, see configure's option --config-cache.
19558 # It is not useful on other systems. If it contains results you don't
19559 # want to keep, you may remove or edit it.
19560 #
19561 # config.status only pays attention to the cache file if you give it
19562 # the --recheck option to rerun configure.
19563 #
19564 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19565 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19566 # following values.
19567
19568 _ACEOF
19569
19570 # The following way of writing the cache mishandles newlines in values,
19571 # but we know of no workaround that is simple, portable, and efficient.
19572 # So, we kill variables containing newlines.
19573 # Ultrix sh set writes to stderr and can't be redirected directly,
19574 # and sets the high bit in the cache file unless we assign to the vars.
19575 (
19576 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19577 eval ac_val=\$$ac_var
19578 case $ac_val in #(
19579 *${as_nl}*)
19580 case $ac_var in #(
19581 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19582 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19583 esac
19584 case $ac_var in #(
19585 _ | IFS | as_nl) ;; #(
19586 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19587 *) { eval $ac_var=; unset $ac_var;} ;;
19588 esac ;;
19589 esac
19590 done
19591
19592 (set) 2>&1 |
19593 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19594 *${as_nl}ac_space=\ *)
19595 # `set' does not quote correctly, so add quotes: double-quote
19596 # substitution turns \\\\ into \\, and sed turns \\ into \.
19597 sed -n \
19598 "s/'/'\\\\''/g;
19599 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19600 ;; #(
19601 *)
19602 # `set' quotes correctly as required by POSIX, so do not add quotes.
19603 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19604 ;;
19605 esac |
19606 sort
19607 ) |
19608 sed '
19609 /^ac_cv_env_/b end
19610 t clear
19611 :clear
19612 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19613 t end
19614 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19615 :end' >>confcache
19616 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19617 if test -w "$cache_file"; then
19618 if test "x$cache_file" != "x/dev/null"; then
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19620 $as_echo "$as_me: updating cache $cache_file" >&6;}
19621 if test ! -f "$cache_file" || test -h "$cache_file"; then
19622 cat confcache >"$cache_file"
19623 else
19624 case $cache_file in #(
19625 */* | ?:*)
19626 mv -f confcache "$cache_file"$$ &&
19627 mv -f "$cache_file"$$ "$cache_file" ;; #(
19628 *)
19629 mv -f confcache "$cache_file" ;;
19630 esac
19631 fi
19632 fi
19633 else
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19635 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19636 fi
19637 fi
19638 rm -f confcache
19639
19640 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19641 # Let make expand exec_prefix.
19642 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19643
19644 DEFS=-DHAVE_CONFIG_H
19645
19646 ac_libobjs=
19647 ac_ltlibobjs=
19648 U=
19649 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19650 # 1. Remove the extension, and $U if already installed.
19651 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19652 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19653 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19654 # will be set to the directory where LIBOBJS objects are built.
19655 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19656 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19657 done
19658 LIBOBJS=$ac_libobjs
19659
19660 LTLIBOBJS=$ac_ltlibobjs
19661
19662
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19664 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19665 if test -n "$am_sleep_pid"; then
19666 # Hide warnings about reused PIDs.
19667 wait $am_sleep_pid 2>/dev/null
19668 fi
19669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19670 $as_echo "done" >&6; }
19671 if test -n "$EXEEXT"; then
19672 am__EXEEXT_TRUE=
19673 am__EXEEXT_FALSE='#'
19674 else
19675 am__EXEEXT_TRUE='#'
19676 am__EXEEXT_FALSE=
19677 fi
19678
19679 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19680 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19682 fi
19683 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19684 as_fn_error $? "conditional \"AMDEP\" was never defined.
19685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19686 fi
19687 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19688 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19690 fi
19691 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19692 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19694 fi
19695 if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
19696 as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined.
19697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19698 fi
19699 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19700 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19702 fi
19703 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
19704 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
19705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19706 fi
19707
19708 : "${CONFIG_STATUS=./config.status}"
19709 ac_write_fail=0
19710 ac_clean_files_save=$ac_clean_files
19711 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19713 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19714 as_write_fail=0
19715 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19716 #! $SHELL
19717 # Generated by $as_me.
19718 # Run this file to recreate the current configuration.
19719 # Compiler output produced by configure, useful for debugging
19720 # configure, is in config.log if it exists.
19721
19722 debug=false
19723 ac_cs_recheck=false
19724 ac_cs_silent=false
19725
19726 SHELL=\${CONFIG_SHELL-$SHELL}
19727 export SHELL
19728 _ASEOF
19729 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19730 ## -------------------- ##
19731 ## M4sh Initialization. ##
19732 ## -------------------- ##
19733
19734 # Be more Bourne compatible
19735 DUALCASE=1; export DUALCASE # for MKS sh
19736 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19737 emulate sh
19738 NULLCMD=:
19739 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19740 # is contrary to our usage. Disable this feature.
19741 alias -g '${1+"$@"}'='"$@"'
19742 setopt NO_GLOB_SUBST
19743 else
19744 case `(set -o) 2>/dev/null` in #(
19745 *posix*) :
19746 set -o posix ;; #(
19747 *) :
19748 ;;
19749 esac
19750 fi
19751
19752
19753 as_nl='
19754 '
19755 export as_nl
19756 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19757 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19758 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19759 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19760 # Prefer a ksh shell builtin over an external printf program on Solaris,
19761 # but without wasting forks for bash or zsh.
19762 if test -z "$BASH_VERSION$ZSH_VERSION" \
19763 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19764 as_echo='print -r --'
19765 as_echo_n='print -rn --'
19766 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19767 as_echo='printf %s\n'
19768 as_echo_n='printf %s'
19769 else
19770 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19771 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19772 as_echo_n='/usr/ucb/echo -n'
19773 else
19774 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19775 as_echo_n_body='eval
19776 arg=$1;
19777 case $arg in #(
19778 *"$as_nl"*)
19779 expr "X$arg" : "X\\(.*\\)$as_nl";
19780 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19781 esac;
19782 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19783 '
19784 export as_echo_n_body
19785 as_echo_n='sh -c $as_echo_n_body as_echo'
19786 fi
19787 export as_echo_body
19788 as_echo='sh -c $as_echo_body as_echo'
19789 fi
19790
19791 # The user is always right.
19792 if test "${PATH_SEPARATOR+set}" != set; then
19793 PATH_SEPARATOR=:
19794 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19795 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19796 PATH_SEPARATOR=';'
19797 }
19798 fi
19799
19800
19801 # IFS
19802 # We need space, tab and new line, in precisely that order. Quoting is
19803 # there to prevent editors from complaining about space-tab.
19804 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19805 # splitting by setting IFS to empty value.)
19806 IFS=" "" $as_nl"
19807
19808 # Find who we are. Look in the path if we contain no directory separator.
19809 as_myself=
19810 case $0 in #((
19811 *[\\/]* ) as_myself=$0 ;;
19812 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19813 for as_dir in $PATH
19814 do
19815 IFS=$as_save_IFS
19816 test -z "$as_dir" && as_dir=.
19817 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19818 done
19819 IFS=$as_save_IFS
19820
19821 ;;
19822 esac
19823 # We did not find ourselves, most probably we were run as `sh COMMAND'
19824 # in which case we are not to be found in the path.
19825 if test "x$as_myself" = x; then
19826 as_myself=$0
19827 fi
19828 if test ! -f "$as_myself"; then
19829 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19830 exit 1
19831 fi
19832
19833 # Unset variables that we do not need and which cause bugs (e.g. in
19834 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19835 # suppresses any "Segmentation fault" message there. '((' could
19836 # trigger a bug in pdksh 5.2.14.
19837 for as_var in BASH_ENV ENV MAIL MAILPATH
19838 do eval test x\${$as_var+set} = xset \
19839 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19840 done
19841 PS1='$ '
19842 PS2='> '
19843 PS4='+ '
19844
19845 # NLS nuisances.
19846 LC_ALL=C
19847 export LC_ALL
19848 LANGUAGE=C
19849 export LANGUAGE
19850
19851 # CDPATH.
19852 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19853
19854
19855 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19856 # ----------------------------------------
19857 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19858 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19859 # script with STATUS, using 1 if that was 0.
19860 as_fn_error ()
19861 {
19862 as_status=$1; test $as_status -eq 0 && as_status=1
19863 if test "$4"; then
19864 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19865 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19866 fi
19867 $as_echo "$as_me: error: $2" >&2
19868 as_fn_exit $as_status
19869 } # as_fn_error
19870
19871
19872 # as_fn_set_status STATUS
19873 # -----------------------
19874 # Set $? to STATUS, without forking.
19875 as_fn_set_status ()
19876 {
19877 return $1
19878 } # as_fn_set_status
19879
19880 # as_fn_exit STATUS
19881 # -----------------
19882 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19883 as_fn_exit ()
19884 {
19885 set +e
19886 as_fn_set_status $1
19887 exit $1
19888 } # as_fn_exit
19889
19890 # as_fn_unset VAR
19891 # ---------------
19892 # Portably unset VAR.
19893 as_fn_unset ()
19894 {
19895 { eval $1=; unset $1;}
19896 }
19897 as_unset=as_fn_unset
19898 # as_fn_append VAR VALUE
19899 # ----------------------
19900 # Append the text in VALUE to the end of the definition contained in VAR. Take
19901 # advantage of any shell optimizations that allow amortized linear growth over
19902 # repeated appends, instead of the typical quadratic growth present in naive
19903 # implementations.
19904 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19905 eval 'as_fn_append ()
19906 {
19907 eval $1+=\$2
19908 }'
19909 else
19910 as_fn_append ()
19911 {
19912 eval $1=\$$1\$2
19913 }
19914 fi # as_fn_append
19915
19916 # as_fn_arith ARG...
19917 # ------------------
19918 # Perform arithmetic evaluation on the ARGs, and store the result in the
19919 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19920 # must be portable across $(()) and expr.
19921 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19922 eval 'as_fn_arith ()
19923 {
19924 as_val=$(( $* ))
19925 }'
19926 else
19927 as_fn_arith ()
19928 {
19929 as_val=`expr "$@" || test $? -eq 1`
19930 }
19931 fi # as_fn_arith
19932
19933
19934 if expr a : '\(a\)' >/dev/null 2>&1 &&
19935 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19936 as_expr=expr
19937 else
19938 as_expr=false
19939 fi
19940
19941 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19942 as_basename=basename
19943 else
19944 as_basename=false
19945 fi
19946
19947 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19948 as_dirname=dirname
19949 else
19950 as_dirname=false
19951 fi
19952
19953 as_me=`$as_basename -- "$0" ||
19954 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19955 X"$0" : 'X\(//\)$' \| \
19956 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19957 $as_echo X/"$0" |
19958 sed '/^.*\/\([^/][^/]*\)\/*$/{
19959 s//\1/
19960 q
19961 }
19962 /^X\/\(\/\/\)$/{
19963 s//\1/
19964 q
19965 }
19966 /^X\/\(\/\).*/{
19967 s//\1/
19968 q
19969 }
19970 s/.*/./; q'`
19971
19972 # Avoid depending upon Character Ranges.
19973 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19974 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19975 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19976 as_cr_digits='0123456789'
19977 as_cr_alnum=$as_cr_Letters$as_cr_digits
19978
19979 ECHO_C= ECHO_N= ECHO_T=
19980 case `echo -n x` in #(((((
19981 -n*)
19982 case `echo 'xy\c'` in
19983 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19984 xy) ECHO_C='\c';;
19985 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19986 ECHO_T=' ';;
19987 esac;;
19988 *)
19989 ECHO_N='-n';;
19990 esac
19991
19992 rm -f conf$$ conf$$.exe conf$$.file
19993 if test -d conf$$.dir; then
19994 rm -f conf$$.dir/conf$$.file
19995 else
19996 rm -f conf$$.dir
19997 mkdir conf$$.dir 2>/dev/null
19998 fi
19999 if (echo >conf$$.file) 2>/dev/null; then
20000 if ln -s conf$$.file conf$$ 2>/dev/null; then
20001 as_ln_s='ln -s'
20002 # ... but there are two gotchas:
20003 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20004 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20005 # In both cases, we have to default to `cp -pR'.
20006 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20007 as_ln_s='cp -pR'
20008 elif ln conf$$.file conf$$ 2>/dev/null; then
20009 as_ln_s=ln
20010 else
20011 as_ln_s='cp -pR'
20012 fi
20013 else
20014 as_ln_s='cp -pR'
20015 fi
20016 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20017 rmdir conf$$.dir 2>/dev/null
20018
20019
20020 # as_fn_mkdir_p
20021 # -------------
20022 # Create "$as_dir" as a directory, including parents if necessary.
20023 as_fn_mkdir_p ()
20024 {
20025
20026 case $as_dir in #(
20027 -*) as_dir=./$as_dir;;
20028 esac
20029 test -d "$as_dir" || eval $as_mkdir_p || {
20030 as_dirs=
20031 while :; do
20032 case $as_dir in #(
20033 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20034 *) as_qdir=$as_dir;;
20035 esac
20036 as_dirs="'$as_qdir' $as_dirs"
20037 as_dir=`$as_dirname -- "$as_dir" ||
20038 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20039 X"$as_dir" : 'X\(//\)[^/]' \| \
20040 X"$as_dir" : 'X\(//\)$' \| \
20041 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20042 $as_echo X"$as_dir" |
20043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20044 s//\1/
20045 q
20046 }
20047 /^X\(\/\/\)[^/].*/{
20048 s//\1/
20049 q
20050 }
20051 /^X\(\/\/\)$/{
20052 s//\1/
20053 q
20054 }
20055 /^X\(\/\).*/{
20056 s//\1/
20057 q
20058 }
20059 s/.*/./; q'`
20060 test -d "$as_dir" && break
20061 done
20062 test -z "$as_dirs" || eval "mkdir $as_dirs"
20063 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20064
20065
20066 } # as_fn_mkdir_p
20067 if mkdir -p . 2>/dev/null; then
20068 as_mkdir_p='mkdir -p "$as_dir"'
20069 else
20070 test -d ./-p && rmdir ./-p
20071 as_mkdir_p=false
20072 fi
20073
20074
20075 # as_fn_executable_p FILE
20076 # -----------------------
20077 # Test if FILE is an executable regular file.
20078 as_fn_executable_p ()
20079 {
20080 test -f "$1" && test -x "$1"
20081 } # as_fn_executable_p
20082 as_test_x='test -x'
20083 as_executable_p=as_fn_executable_p
20084
20085 # Sed expression to map a string onto a valid CPP name.
20086 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20087
20088 # Sed expression to map a string onto a valid variable name.
20089 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20090
20091
20092 exec 6>&1
20093 ## ----------------------------------- ##
20094 ## Main body of $CONFIG_STATUS script. ##
20095 ## ----------------------------------- ##
20096 _ASEOF
20097 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20098
20099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20100 # Save the log message, to keep $0 and so on meaningful, and to
20101 # report actual input values of CONFIG_FILES etc. instead of their
20102 # values after options handling.
20103 ac_log="
20104 This file was extended by ld $as_me 2.46.0, which was
20105 generated by GNU Autoconf 2.69. Invocation command line was
20106
20107 CONFIG_FILES = $CONFIG_FILES
20108 CONFIG_HEADERS = $CONFIG_HEADERS
20109 CONFIG_LINKS = $CONFIG_LINKS
20110 CONFIG_COMMANDS = $CONFIG_COMMANDS
20111 $ $0 $@
20112
20113 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20114 "
20115
20116 _ACEOF
20117
20118 case $ac_config_files in *"
20119 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20120 esac
20121
20122 case $ac_config_headers in *"
20123 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20124 esac
20125
20126
20127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20128 # Files that config.status was made for.
20129 config_files="$ac_config_files"
20130 config_headers="$ac_config_headers"
20131 config_commands="$ac_config_commands"
20132
20133 _ACEOF
20134
20135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20136 ac_cs_usage="\
20137 \`$as_me' instantiates files and other configuration actions
20138 from templates according to the current configuration. Unless the files
20139 and actions are specified as TAGs, all are instantiated by default.
20140
20141 Usage: $0 [OPTION]... [TAG]...
20142
20143 -h, --help print this help, then exit
20144 -V, --version print version number and configuration settings, then exit
20145 --config print configuration, then exit
20146 -q, --quiet, --silent
20147 do not print progress messages
20148 -d, --debug don't remove temporary files
20149 --recheck update $as_me by reconfiguring in the same conditions
20150 --file=FILE[:TEMPLATE]
20151 instantiate the configuration file FILE
20152 --header=FILE[:TEMPLATE]
20153 instantiate the configuration header FILE
20154
20155 Configuration files:
20156 $config_files
20157
20158 Configuration headers:
20159 $config_headers
20160
20161 Configuration commands:
20162 $config_commands
20163
20164 Report bugs to the package provider."
20165
20166 _ACEOF
20167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20168 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20169 ac_cs_version="\\
20170 ld config.status 2.46.0
20171 configured by $0, generated by GNU Autoconf 2.69,
20172 with options \\"\$ac_cs_config\\"
20173
20174 Copyright (C) 2012 Free Software Foundation, Inc.
20175 This config.status script is free software; the Free Software Foundation
20176 gives unlimited permission to copy, distribute and modify it."
20177
20178 ac_pwd='$ac_pwd'
20179 srcdir='$srcdir'
20180 INSTALL='$INSTALL'
20181 MKDIR_P='$MKDIR_P'
20182 AWK='$AWK'
20183 test -n "\$AWK" || AWK=awk
20184 _ACEOF
20185
20186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20187 # The default lists apply if the user does not specify any file.
20188 ac_need_defaults=:
20189 while test $# != 0
20190 do
20191 case $1 in
20192 --*=?*)
20193 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20194 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20195 ac_shift=:
20196 ;;
20197 --*=)
20198 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20199 ac_optarg=
20200 ac_shift=:
20201 ;;
20202 *)
20203 ac_option=$1
20204 ac_optarg=$2
20205 ac_shift=shift
20206 ;;
20207 esac
20208
20209 case $ac_option in
20210 # Handling of the options.
20211 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20212 ac_cs_recheck=: ;;
20213 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20214 $as_echo "$ac_cs_version"; exit ;;
20215 --config | --confi | --conf | --con | --co | --c )
20216 $as_echo "$ac_cs_config"; exit ;;
20217 --debug | --debu | --deb | --de | --d | -d )
20218 debug=: ;;
20219 --file | --fil | --fi | --f )
20220 $ac_shift
20221 case $ac_optarg in
20222 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20223 '') as_fn_error $? "missing file argument" ;;
20224 esac
20225 as_fn_append CONFIG_FILES " '$ac_optarg'"
20226 ac_need_defaults=false;;
20227 --header | --heade | --head | --hea )
20228 $ac_shift
20229 case $ac_optarg in
20230 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20231 esac
20232 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20233 ac_need_defaults=false;;
20234 --he | --h)
20235 # Conflict between --help and --header
20236 as_fn_error $? "ambiguous option: \`$1'
20237 Try \`$0 --help' for more information.";;
20238 --help | --hel | -h )
20239 $as_echo "$ac_cs_usage"; exit ;;
20240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20241 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20242 ac_cs_silent=: ;;
20243
20244 # This is an error.
20245 -*) as_fn_error $? "unrecognized option: \`$1'
20246 Try \`$0 --help' for more information." ;;
20247
20248 *) as_fn_append ac_config_targets " $1"
20249 ac_need_defaults=false ;;
20250
20251 esac
20252 shift
20253 done
20254
20255 ac_configure_extra_args=
20256
20257 if $ac_cs_silent; then
20258 exec 6>/dev/null
20259 ac_configure_extra_args="$ac_configure_extra_args --silent"
20260 fi
20261
20262 _ACEOF
20263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20264 if \$ac_cs_recheck; then
20265 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20266 shift
20267 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20268 CONFIG_SHELL='$SHELL'
20269 export CONFIG_SHELL
20270 exec "\$@"
20271 fi
20272
20273 _ACEOF
20274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20275 exec 5>>config.log
20276 {
20277 echo
20278 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20279 ## Running $as_me. ##
20280 _ASBOX
20281 $as_echo "$ac_log"
20282 } >&5
20283
20284 _ACEOF
20285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20286 #
20287 # INIT-COMMANDS
20288 #
20289 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20290
20291
20292 # The HP-UX ksh and POSIX shell print the target directory to stdout
20293 # if CDPATH is set.
20294 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20295
20296 sed_quote_subst='$sed_quote_subst'
20297 double_quote_subst='$double_quote_subst'
20298 delay_variable_subst='$delay_variable_subst'
20299 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20300 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20301 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20302 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20303 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20304 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20305 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20306 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20307 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20308 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20309 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20310 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20311 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20312 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20313 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20314 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20315 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20316 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20317 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20318 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20319 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20320 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20321 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20322 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20323 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20324 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20325 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20326 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20327 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20328 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20329 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20330 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20331 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20332 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20333 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20334 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20335 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20336 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20337 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20338 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20339 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20340 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20341 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20342 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20343 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20344 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20345 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20346 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20347 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"`'
20348 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20349 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20350 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20351 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20352 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20353 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20354 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20355 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20356 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20357 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20358 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20359 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20360 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20361 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20362 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20363 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20364 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20365 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20366 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20367 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20368 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20369 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20370 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20371 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20372 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20373 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20374 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20375 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20376 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20377 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20378 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20379 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
20380 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20381 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20382 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20383 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20384 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20385 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20386 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20387 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20388 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
20389 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20390 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20391 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20392 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20393 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20394 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20395 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20396 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20397 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20398 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20399 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20400 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20401 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20402 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20403 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20404 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20405 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20406 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20407 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20408 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20409 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20410 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20411 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20412 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20413 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20414 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20415 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20416 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20417 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20418 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20419 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20420 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20421 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20422 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20423 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20424 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20425 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20426 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20427 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20428 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20429 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20430 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20431 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20432 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20433 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20434 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20435 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20436 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20437 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20438 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20439 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20440 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20441 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20442 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20443 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20444 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20445 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20446 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20447 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20448 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20449 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20450 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20451 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
20452 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20453 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20454 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20455 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20456 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20457 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20458 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20459 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20460 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
20461 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20462 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20463 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20464 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20465 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20466 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20467 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20468 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20469 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20470 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20471 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20472 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20473 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20474
20475 LTCC='$LTCC'
20476 LTCFLAGS='$LTCFLAGS'
20477 compiler='$compiler_DEFAULT'
20478
20479 # A function that is used when there is no print builtin or printf.
20480 func_fallback_echo ()
20481 {
20482 eval 'cat <<_LTECHO_EOF
20483 \$1
20484 _LTECHO_EOF'
20485 }
20486
20487 # Quote evaled strings.
20488 for var in SHELL \
20489 ECHO \
20490 SED \
20491 GREP \
20492 EGREP \
20493 FGREP \
20494 LD \
20495 NM \
20496 LN_S \
20497 lt_SP2NL \
20498 lt_NL2SP \
20499 reload_flag \
20500 OBJDUMP \
20501 deplibs_check_method \
20502 file_magic_cmd \
20503 AR \
20504 AR_FLAGS \
20505 STRIP \
20506 RANLIB \
20507 CC \
20508 CFLAGS \
20509 compiler \
20510 lt_cv_sys_global_symbol_pipe \
20511 lt_cv_sys_global_symbol_to_cdecl \
20512 lt_cv_sys_global_symbol_to_c_name_address \
20513 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20514 lt_prog_compiler_no_builtin_flag \
20515 lt_prog_compiler_wl \
20516 lt_prog_compiler_pic \
20517 lt_prog_compiler_static \
20518 lt_cv_prog_compiler_c_o \
20519 need_locks \
20520 DSYMUTIL \
20521 NMEDIT \
20522 LIPO \
20523 OTOOL \
20524 OTOOL64 \
20525 shrext_cmds \
20526 export_dynamic_flag_spec \
20527 whole_archive_flag_spec \
20528 compiler_needs_object \
20529 with_gnu_ld \
20530 allow_undefined_flag \
20531 no_undefined_flag \
20532 hardcode_libdir_flag_spec \
20533 hardcode_libdir_flag_spec_ld \
20534 hardcode_libdir_separator \
20535 fix_srcfile_path \
20536 exclude_expsyms \
20537 include_expsyms \
20538 file_list_spec \
20539 variables_saved_for_relink \
20540 libname_spec \
20541 library_names_spec \
20542 soname_spec \
20543 install_override_mode \
20544 finish_eval \
20545 old_striplib \
20546 striplib \
20547 compiler_lib_search_dirs \
20548 predep_objects \
20549 postdep_objects \
20550 predeps \
20551 postdeps \
20552 compiler_lib_search_path \
20553 LD_CXX \
20554 reload_flag_CXX \
20555 compiler_CXX \
20556 lt_prog_compiler_no_builtin_flag_CXX \
20557 lt_prog_compiler_wl_CXX \
20558 lt_prog_compiler_pic_CXX \
20559 lt_prog_compiler_static_CXX \
20560 lt_cv_prog_compiler_c_o_CXX \
20561 export_dynamic_flag_spec_CXX \
20562 whole_archive_flag_spec_CXX \
20563 compiler_needs_object_CXX \
20564 with_gnu_ld_CXX \
20565 allow_undefined_flag_CXX \
20566 no_undefined_flag_CXX \
20567 hardcode_libdir_flag_spec_CXX \
20568 hardcode_libdir_flag_spec_ld_CXX \
20569 hardcode_libdir_separator_CXX \
20570 fix_srcfile_path_CXX \
20571 exclude_expsyms_CXX \
20572 include_expsyms_CXX \
20573 file_list_spec_CXX \
20574 compiler_lib_search_dirs_CXX \
20575 predep_objects_CXX \
20576 postdep_objects_CXX \
20577 predeps_CXX \
20578 postdeps_CXX \
20579 compiler_lib_search_path_CXX; do
20580 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20581 *[\\\\\\\`\\"\\\$]*)
20582 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20583 ;;
20584 *)
20585 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20586 ;;
20587 esac
20588 done
20589
20590 # Double-quote double-evaled strings.
20591 for var in reload_cmds \
20592 old_postinstall_cmds \
20593 old_postuninstall_cmds \
20594 old_archive_cmds \
20595 extract_expsyms_cmds \
20596 old_archive_from_new_cmds \
20597 old_archive_from_expsyms_cmds \
20598 archive_cmds \
20599 archive_expsym_cmds \
20600 module_cmds \
20601 module_expsym_cmds \
20602 export_symbols_cmds \
20603 prelink_cmds \
20604 postinstall_cmds \
20605 postuninstall_cmds \
20606 finish_cmds \
20607 sys_lib_search_path_spec \
20608 sys_lib_dlsearch_path_spec \
20609 reload_cmds_CXX \
20610 old_archive_cmds_CXX \
20611 old_archive_from_new_cmds_CXX \
20612 old_archive_from_expsyms_cmds_CXX \
20613 archive_cmds_CXX \
20614 archive_expsym_cmds_CXX \
20615 module_cmds_CXX \
20616 module_expsym_cmds_CXX \
20617 export_symbols_cmds_CXX \
20618 prelink_cmds_CXX; do
20619 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20620 *[\\\\\\\`\\"\\\$]*)
20621 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20622 ;;
20623 *)
20624 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20625 ;;
20626 esac
20627 done
20628
20629 ac_aux_dir='$ac_aux_dir'
20630 xsi_shell='$xsi_shell'
20631 lt_shell_append='$lt_shell_append'
20632
20633 # See if we are running on zsh, and set the options which allow our
20634 # commands through without removal of \ escapes INIT.
20635 if test -n "\${ZSH_VERSION+set}" ; then
20636 setopt NO_GLOB_SUBST
20637 fi
20638
20639
20640 PACKAGE='$PACKAGE'
20641 VERSION='$VERSION'
20642 TIMESTAMP='$TIMESTAMP'
20643 RM='$RM'
20644 ofile='$ofile'
20645
20646
20647
20648
20649
20650 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20651 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20652 # from automake.
20653 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20654 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20655 LINGUAS="${LINGUAS-%UNSET%}"
20656
20657
20658
20659 _ACEOF
20660
20661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20662
20663 # Handling of arguments.
20664 for ac_config_target in $ac_config_targets
20665 do
20666 case $ac_config_target in
20667 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20668 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20669 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
20670 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20671 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20672 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20673 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
20674
20675 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20676 esac
20677 done
20678
20679
20680 # If the user did not use the arguments to specify the items to instantiate,
20681 # then the envvar interface is used. Set only those that are not.
20682 # We use the long form for the default assignment because of an extremely
20683 # bizarre bug on SunOS 4.1.3.
20684 if $ac_need_defaults; then
20685 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20686 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20687 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20688 fi
20689
20690 # Have a temporary directory for convenience. Make it in the build tree
20691 # simply because there is no reason against having it here, and in addition,
20692 # creating and moving files from /tmp can sometimes cause problems.
20693 # Hook for its removal unless debugging.
20694 # Note that there is a small window in which the directory will not be cleaned:
20695 # after its creation but before its name has been assigned to `$tmp'.
20696 $debug ||
20697 {
20698 tmp= ac_tmp=
20699 trap 'exit_status=$?
20700 : "${ac_tmp:=$tmp}"
20701 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20702 ' 0
20703 trap 'as_fn_exit 1' 1 2 13 15
20704 }
20705 # Create a (secure) tmp directory for tmp files.
20706
20707 {
20708 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20709 test -d "$tmp"
20710 } ||
20711 {
20712 tmp=./conf$$-$RANDOM
20713 (umask 077 && mkdir "$tmp")
20714 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20715 ac_tmp=$tmp
20716
20717 # Set up the scripts for CONFIG_FILES section.
20718 # No need to generate them if there are no CONFIG_FILES.
20719 # This happens for instance with `./config.status config.h'.
20720 if test -n "$CONFIG_FILES"; then
20721
20722
20723 ac_cr=`echo X | tr X '\015'`
20724 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20725 # But we know of no other shell where ac_cr would be empty at this
20726 # point, so we can use a bashism as a fallback.
20727 if test "x$ac_cr" = x; then
20728 eval ac_cr=\$\'\\r\'
20729 fi
20730 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20731 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20732 ac_cs_awk_cr='\\r'
20733 else
20734 ac_cs_awk_cr=$ac_cr
20735 fi
20736
20737 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20738 _ACEOF
20739
20740
20741 {
20742 echo "cat >conf$$subs.awk <<_ACEOF" &&
20743 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20744 echo "_ACEOF"
20745 } >conf$$subs.sh ||
20746 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20747 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20748 ac_delim='%!_!# '
20749 for ac_last_try in false false false false false :; do
20750 . ./conf$$subs.sh ||
20751 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20752
20753 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20754 if test $ac_delim_n = $ac_delim_num; then
20755 break
20756 elif $ac_last_try; then
20757 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20758 else
20759 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20760 fi
20761 done
20762 rm -f conf$$subs.sh
20763
20764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20765 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20766 _ACEOF
20767 sed -n '
20768 h
20769 s/^/S["/; s/!.*/"]=/
20770 p
20771 g
20772 s/^[^!]*!//
20773 :repl
20774 t repl
20775 s/'"$ac_delim"'$//
20776 t delim
20777 :nl
20778 h
20779 s/\(.\{148\}\)..*/\1/
20780 t more1
20781 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20782 p
20783 n
20784 b repl
20785 :more1
20786 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20787 p
20788 g
20789 s/.\{148\}//
20790 t nl
20791 :delim
20792 h
20793 s/\(.\{148\}\)..*/\1/
20794 t more2
20795 s/["\\]/\\&/g; s/^/"/; s/$/"/
20796 p
20797 b
20798 :more2
20799 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20800 p
20801 g
20802 s/.\{148\}//
20803 t delim
20804 ' <conf$$subs.awk | sed '
20805 /^[^""]/{
20806 N
20807 s/\n//
20808 }
20809 ' >>$CONFIG_STATUS || ac_write_fail=1
20810 rm -f conf$$subs.awk
20811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20812 _ACAWK
20813 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20814 for (key in S) S_is_set[key] = 1
20815 FS = ""
20816
20817 }
20818 {
20819 line = $ 0
20820 nfields = split(line, field, "@")
20821 substed = 0
20822 len = length(field[1])
20823 for (i = 2; i < nfields; i++) {
20824 key = field[i]
20825 keylen = length(key)
20826 if (S_is_set[key]) {
20827 value = S[key]
20828 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20829 len += length(value) + length(field[++i])
20830 substed = 1
20831 } else
20832 len += 1 + keylen
20833 }
20834
20835 print line
20836 }
20837
20838 _ACAWK
20839 _ACEOF
20840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20841 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20842 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20843 else
20844 cat
20845 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20846 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20847 _ACEOF
20848
20849 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20850 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20851 # trailing colons and then remove the whole line if VPATH becomes empty
20852 # (actually we leave an empty line to preserve line numbers).
20853 if test "x$srcdir" = x.; then
20854 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20855 h
20856 s///
20857 s/^/:/
20858 s/[ ]*$/:/
20859 s/:\$(srcdir):/:/g
20860 s/:\${srcdir}:/:/g
20861 s/:@srcdir@:/:/g
20862 s/^:*//
20863 s/:*$//
20864 x
20865 s/\(=[ ]*\).*/\1/
20866 G
20867 s/\n//
20868 s/^[^=]*=[ ]*$//
20869 }'
20870 fi
20871
20872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20873 fi # test -n "$CONFIG_FILES"
20874
20875 # Set up the scripts for CONFIG_HEADERS section.
20876 # No need to generate them if there are no CONFIG_HEADERS.
20877 # This happens for instance with `./config.status Makefile'.
20878 if test -n "$CONFIG_HEADERS"; then
20879 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20880 BEGIN {
20881 _ACEOF
20882
20883 # Transform confdefs.h into an awk script `defines.awk', embedded as
20884 # here-document in config.status, that substitutes the proper values into
20885 # config.h.in to produce config.h.
20886
20887 # Create a delimiter string that does not exist in confdefs.h, to ease
20888 # handling of long lines.
20889 ac_delim='%!_!# '
20890 for ac_last_try in false false :; do
20891 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20892 if test -z "$ac_tt"; then
20893 break
20894 elif $ac_last_try; then
20895 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20896 else
20897 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20898 fi
20899 done
20900
20901 # For the awk script, D is an array of macro values keyed by name,
20902 # likewise P contains macro parameters if any. Preserve backslash
20903 # newline sequences.
20904
20905 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20906 sed -n '
20907 s/.\{148\}/&'"$ac_delim"'/g
20908 t rset
20909 :rset
20910 s/^[ ]*#[ ]*define[ ][ ]*/ /
20911 t def
20912 d
20913 :def
20914 s/\\$//
20915 t bsnl
20916 s/["\\]/\\&/g
20917 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20918 D["\1"]=" \3"/p
20919 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20920 d
20921 :bsnl
20922 s/["\\]/\\&/g
20923 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20924 D["\1"]=" \3\\\\\\n"\\/p
20925 t cont
20926 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20927 t cont
20928 d
20929 :cont
20930 n
20931 s/.\{148\}/&'"$ac_delim"'/g
20932 t clear
20933 :clear
20934 s/\\$//
20935 t bsnlc
20936 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20937 d
20938 :bsnlc
20939 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20940 b cont
20941 ' <confdefs.h | sed '
20942 s/'"$ac_delim"'/"\\\
20943 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20944
20945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20946 for (key in D) D_is_set[key] = 1
20947 FS = ""
20948 }
20949 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20950 line = \$ 0
20951 split(line, arg, " ")
20952 if (arg[1] == "#") {
20953 defundef = arg[2]
20954 mac1 = arg[3]
20955 } else {
20956 defundef = substr(arg[1], 2)
20957 mac1 = arg[2]
20958 }
20959 split(mac1, mac2, "(") #)
20960 macro = mac2[1]
20961 prefix = substr(line, 1, index(line, defundef) - 1)
20962 if (D_is_set[macro]) {
20963 # Preserve the white space surrounding the "#".
20964 print prefix "define", macro P[macro] D[macro]
20965 next
20966 } else {
20967 # Replace #undef with comments. This is necessary, for example,
20968 # in the case of _POSIX_SOURCE, which is predefined and required
20969 # on some systems where configure will not decide to define it.
20970 if (defundef == "undef") {
20971 print "/*", prefix defundef, macro, "*/"
20972 next
20973 }
20974 }
20975 }
20976 { print }
20977 _ACAWK
20978 _ACEOF
20979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20980 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20981 fi # test -n "$CONFIG_HEADERS"
20982
20983
20984 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20985 shift
20986 for ac_tag
20987 do
20988 case $ac_tag in
20989 :[FHLC]) ac_mode=$ac_tag; continue;;
20990 esac
20991 case $ac_mode$ac_tag in
20992 :[FHL]*:*);;
20993 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20994 :[FH]-) ac_tag=-:-;;
20995 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20996 esac
20997 ac_save_IFS=$IFS
20998 IFS=:
20999 set x $ac_tag
21000 IFS=$ac_save_IFS
21001 shift
21002 ac_file=$1
21003 shift
21004
21005 case $ac_mode in
21006 :L) ac_source=$1;;
21007 :[FH])
21008 ac_file_inputs=
21009 for ac_f
21010 do
21011 case $ac_f in
21012 -) ac_f="$ac_tmp/stdin";;
21013 *) # Look for the file first in the build tree, then in the source tree
21014 # (if the path is not absolute). The absolute path cannot be DOS-style,
21015 # because $ac_f cannot contain `:'.
21016 test -f "$ac_f" ||
21017 case $ac_f in
21018 [\\/$]*) false;;
21019 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21020 esac ||
21021 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21022 esac
21023 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21024 as_fn_append ac_file_inputs " '$ac_f'"
21025 done
21026
21027 # Let's still pretend it is `configure' which instantiates (i.e., don't
21028 # use $as_me), people would be surprised to read:
21029 # /* config.h. Generated by config.status. */
21030 configure_input='Generated from '`
21031 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21032 `' by configure.'
21033 if test x"$ac_file" != x-; then
21034 configure_input="$ac_file. $configure_input"
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21036 $as_echo "$as_me: creating $ac_file" >&6;}
21037 fi
21038 # Neutralize special characters interpreted by sed in replacement strings.
21039 case $configure_input in #(
21040 *\&* | *\|* | *\\* )
21041 ac_sed_conf_input=`$as_echo "$configure_input" |
21042 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21043 *) ac_sed_conf_input=$configure_input;;
21044 esac
21045
21046 case $ac_tag in
21047 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21048 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21049 esac
21050 ;;
21051 esac
21052
21053 ac_dir=`$as_dirname -- "$ac_file" ||
21054 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21055 X"$ac_file" : 'X\(//\)[^/]' \| \
21056 X"$ac_file" : 'X\(//\)$' \| \
21057 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21058 $as_echo X"$ac_file" |
21059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21060 s//\1/
21061 q
21062 }
21063 /^X\(\/\/\)[^/].*/{
21064 s//\1/
21065 q
21066 }
21067 /^X\(\/\/\)$/{
21068 s//\1/
21069 q
21070 }
21071 /^X\(\/\).*/{
21072 s//\1/
21073 q
21074 }
21075 s/.*/./; q'`
21076 as_dir="$ac_dir"; as_fn_mkdir_p
21077 ac_builddir=.
21078
21079 case "$ac_dir" in
21080 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21081 *)
21082 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21083 # A ".." for each directory in $ac_dir_suffix.
21084 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21085 case $ac_top_builddir_sub in
21086 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21087 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21088 esac ;;
21089 esac
21090 ac_abs_top_builddir=$ac_pwd
21091 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21092 # for backward compatibility:
21093 ac_top_builddir=$ac_top_build_prefix
21094
21095 case $srcdir in
21096 .) # We are building in place.
21097 ac_srcdir=.
21098 ac_top_srcdir=$ac_top_builddir_sub
21099 ac_abs_top_srcdir=$ac_pwd ;;
21100 [\\/]* | ?:[\\/]* ) # Absolute name.
21101 ac_srcdir=$srcdir$ac_dir_suffix;
21102 ac_top_srcdir=$srcdir
21103 ac_abs_top_srcdir=$srcdir ;;
21104 *) # Relative name.
21105 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21106 ac_top_srcdir=$ac_top_build_prefix$srcdir
21107 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21108 esac
21109 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21110
21111
21112 case $ac_mode in
21113 :F)
21114 #
21115 # CONFIG_FILE
21116 #
21117
21118 case $INSTALL in
21119 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21120 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21121 esac
21122 ac_MKDIR_P=$MKDIR_P
21123 case $MKDIR_P in
21124 [\\/$]* | ?:[\\/]* ) ;;
21125 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21126 esac
21127 _ACEOF
21128
21129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21130 # If the template does not know about datarootdir, expand it.
21131 # FIXME: This hack should be removed a few years after 2.60.
21132 ac_datarootdir_hack=; ac_datarootdir_seen=
21133 ac_sed_dataroot='
21134 /datarootdir/ {
21135 p
21136 q
21137 }
21138 /@datadir@/p
21139 /@docdir@/p
21140 /@infodir@/p
21141 /@localedir@/p
21142 /@mandir@/p'
21143 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21144 *datarootdir*) ac_datarootdir_seen=yes;;
21145 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21147 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21148 _ACEOF
21149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21150 ac_datarootdir_hack='
21151 s&@datadir@&$datadir&g
21152 s&@docdir@&$docdir&g
21153 s&@infodir@&$infodir&g
21154 s&@localedir@&$localedir&g
21155 s&@mandir@&$mandir&g
21156 s&\\\${datarootdir}&$datarootdir&g' ;;
21157 esac
21158 _ACEOF
21159
21160 # Neutralize VPATH when `$srcdir' = `.'.
21161 # Shell code in configure.ac might set extrasub.
21162 # FIXME: do we really want to maintain this feature?
21163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21164 ac_sed_extra="$ac_vpsub
21165 $extrasub
21166 _ACEOF
21167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21168 :t
21169 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21170 s|@configure_input@|$ac_sed_conf_input|;t t
21171 s&@top_builddir@&$ac_top_builddir_sub&;t t
21172 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21173 s&@srcdir@&$ac_srcdir&;t t
21174 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21175 s&@top_srcdir@&$ac_top_srcdir&;t t
21176 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21177 s&@builddir@&$ac_builddir&;t t
21178 s&@abs_builddir@&$ac_abs_builddir&;t t
21179 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21180 s&@INSTALL@&$ac_INSTALL&;t t
21181 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21182 $ac_datarootdir_hack
21183 "
21184 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21185 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21186
21187 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21188 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21189 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21190 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21192 which seems to be undefined. Please make sure it is defined" >&5
21193 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21194 which seems to be undefined. Please make sure it is defined" >&2;}
21195
21196 rm -f "$ac_tmp/stdin"
21197 case $ac_file in
21198 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21199 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21200 esac \
21201 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21202 ;;
21203 :H)
21204 #
21205 # CONFIG_HEADER
21206 #
21207 if test x"$ac_file" != x-; then
21208 {
21209 $as_echo "/* $configure_input */" \
21210 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21211 } >"$ac_tmp/config.h" \
21212 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21213 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21214 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21215 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21216 else
21217 rm -f "$ac_file"
21218 mv "$ac_tmp/config.h" "$ac_file" \
21219 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21220 fi
21221 else
21222 $as_echo "/* $configure_input */" \
21223 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21224 || as_fn_error $? "could not create -" "$LINENO" 5
21225 fi
21226 # Compute "$ac_file"'s index in $config_headers.
21227 _am_arg="$ac_file"
21228 _am_stamp_count=1
21229 for _am_header in $config_headers :; do
21230 case $_am_header in
21231 $_am_arg | $_am_arg:* )
21232 break ;;
21233 * )
21234 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21235 esac
21236 done
21237 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21238 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21239 X"$_am_arg" : 'X\(//\)[^/]' \| \
21240 X"$_am_arg" : 'X\(//\)$' \| \
21241 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21242 $as_echo X"$_am_arg" |
21243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21244 s//\1/
21245 q
21246 }
21247 /^X\(\/\/\)[^/].*/{
21248 s//\1/
21249 q
21250 }
21251 /^X\(\/\/\)$/{
21252 s//\1/
21253 q
21254 }
21255 /^X\(\/\).*/{
21256 s//\1/
21257 q
21258 }
21259 s/.*/./; q'`/stamp-h$_am_stamp_count
21260 ;;
21261
21262 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21263 $as_echo "$as_me: executing $ac_file commands" >&6;}
21264 ;;
21265 esac
21266
21267
21268 case $ac_file$ac_mode in
21269 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21270 # Older Autoconf quotes --file arguments for eval, but not when files
21271 # are listed without --file. Let's play safe and only enable the eval
21272 # if we detect the quoting.
21273 case $CONFIG_FILES in
21274 *\'*) eval set x "$CONFIG_FILES" ;;
21275 *) set x $CONFIG_FILES ;;
21276 esac
21277 shift
21278 for mf
21279 do
21280 # Strip MF so we end up with the name of the file.
21281 mf=`echo "$mf" | sed -e 's/:.*$//'`
21282 # Check whether this is an Automake generated Makefile or not.
21283 # We used to match only the files named 'Makefile.in', but
21284 # some people rename them; so instead we look at the file content.
21285 # Grep'ing the first line is not enough: some people post-process
21286 # each Makefile.in and add a new line on top of each file to say so.
21287 # Grep'ing the whole file is not good either: AIX grep has a line
21288 # limit of 2048, but all sed's we know have understand at least 4000.
21289 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21290 dirpart=`$as_dirname -- "$mf" ||
21291 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21292 X"$mf" : 'X\(//\)[^/]' \| \
21293 X"$mf" : 'X\(//\)$' \| \
21294 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21295 $as_echo X"$mf" |
21296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21297 s//\1/
21298 q
21299 }
21300 /^X\(\/\/\)[^/].*/{
21301 s//\1/
21302 q
21303 }
21304 /^X\(\/\/\)$/{
21305 s//\1/
21306 q
21307 }
21308 /^X\(\/\).*/{
21309 s//\1/
21310 q
21311 }
21312 s/.*/./; q'`
21313 else
21314 continue
21315 fi
21316 # Extract the definition of DEPDIR, am__include, and am__quote
21317 # from the Makefile without running 'make'.
21318 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21319 test -z "$DEPDIR" && continue
21320 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21321 test -z "$am__include" && continue
21322 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21323 # Find all dependency output files, they are included files with
21324 # $(DEPDIR) in their names. We invoke sed twice because it is the
21325 # simplest approach to changing $(DEPDIR) to its actual value in the
21326 # expansion.
21327 for file in `sed -n "
21328 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21329 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21330 # Make sure the directory exists.
21331 test -f "$dirpart/$file" && continue
21332 fdir=`$as_dirname -- "$file" ||
21333 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21334 X"$file" : 'X\(//\)[^/]' \| \
21335 X"$file" : 'X\(//\)$' \| \
21336 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21337 $as_echo X"$file" |
21338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21339 s//\1/
21340 q
21341 }
21342 /^X\(\/\/\)[^/].*/{
21343 s//\1/
21344 q
21345 }
21346 /^X\(\/\/\)$/{
21347 s//\1/
21348 q
21349 }
21350 /^X\(\/\).*/{
21351 s//\1/
21352 q
21353 }
21354 s/.*/./; q'`
21355 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21356 # echo "creating $dirpart/$file"
21357 echo '# dummy' > "$dirpart/$file"
21358 done
21359 done
21360 }
21361 ;;
21362 "libtool":C)
21363
21364 # See if we are running on zsh, and set the options which allow our
21365 # commands through without removal of \ escapes.
21366 if test -n "${ZSH_VERSION+set}" ; then
21367 setopt NO_GLOB_SUBST
21368 fi
21369
21370 cfgfile="${ofile}T"
21371 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21372 $RM "$cfgfile"
21373
21374 cat <<_LT_EOF >> "$cfgfile"
21375 #! $SHELL
21376
21377 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21378 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21379 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21380 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21381 #
21382 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21383 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
21384 # Written by Gordon Matzigkeit, 1996
21385 #
21386 # This file is part of GNU Libtool.
21387 #
21388 # GNU Libtool is free software; you can redistribute it and/or
21389 # modify it under the terms of the GNU General Public License as
21390 # published by the Free Software Foundation; either version 2 of
21391 # the License, or (at your option) any later version.
21392 #
21393 # As a special exception to the GNU General Public License,
21394 # if you distribute this file as part of a program or library that
21395 # is built using GNU Libtool, you may include this file under the
21396 # same distribution terms that you use for the rest of that program.
21397 #
21398 # GNU Libtool is distributed in the hope that it will be useful,
21399 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21400 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21401 # GNU General Public License for more details.
21402 #
21403 # You should have received a copy of the GNU General Public License
21404 # along with GNU Libtool; see the file COPYING. If not, a copy
21405 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21406 # obtained by writing to the Free Software Foundation, Inc.,
21407 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21408
21409
21410 # The names of the tagged configurations supported by this script.
21411 available_tags="CXX "
21412
21413 # ### BEGIN LIBTOOL CONFIG
21414
21415 # Which release of libtool.m4 was used?
21416 macro_version=$macro_version
21417 macro_revision=$macro_revision
21418
21419 # Whether or not to build shared libraries.
21420 build_libtool_libs=$enable_shared
21421
21422 # Whether or not to build static libraries.
21423 build_old_libs=$enable_static
21424
21425 # What type of objects to build.
21426 pic_mode=$pic_mode
21427
21428 # Whether or not to optimize for fast installation.
21429 fast_install=$enable_fast_install
21430
21431 # Shell to use when invoking shell scripts.
21432 SHELL=$lt_SHELL
21433
21434 # An echo program that protects backslashes.
21435 ECHO=$lt_ECHO
21436
21437 # The host system.
21438 host_alias=$host_alias
21439 host=$host
21440 host_os=$host_os
21441
21442 # The build system.
21443 build_alias=$build_alias
21444 build=$build
21445 build_os=$build_os
21446
21447 # A sed program that does not truncate output.
21448 SED=$lt_SED
21449
21450 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21451 Xsed="\$SED -e 1s/^X//"
21452
21453 # A grep program that handles long lines.
21454 GREP=$lt_GREP
21455
21456 # An ERE matcher.
21457 EGREP=$lt_EGREP
21458
21459 # A literal string matcher.
21460 FGREP=$lt_FGREP
21461
21462 # A BSD- or MS-compatible name lister.
21463 NM=$lt_NM
21464
21465 # Whether we need soft or hard links.
21466 LN_S=$lt_LN_S
21467
21468 # What is the maximum length of a command?
21469 max_cmd_len=$max_cmd_len
21470
21471 # Object file suffix (normally "o").
21472 objext=$ac_objext
21473
21474 # Executable file suffix (normally "").
21475 exeext=$exeext
21476
21477 # whether the shell understands "unset".
21478 lt_unset=$lt_unset
21479
21480 # turn spaces into newlines.
21481 SP2NL=$lt_lt_SP2NL
21482
21483 # turn newlines into spaces.
21484 NL2SP=$lt_lt_NL2SP
21485
21486 # An object symbol dumper.
21487 OBJDUMP=$lt_OBJDUMP
21488
21489 # Method to check whether dependent libraries are shared objects.
21490 deplibs_check_method=$lt_deplibs_check_method
21491
21492 # Command to use when deplibs_check_method == "file_magic".
21493 file_magic_cmd=$lt_file_magic_cmd
21494
21495 # The archiver.
21496 AR=$lt_AR
21497 AR_FLAGS=$lt_AR_FLAGS
21498
21499 # A symbol stripping program.
21500 STRIP=$lt_STRIP
21501
21502 # Commands used to install an old-style archive.
21503 RANLIB=$lt_RANLIB
21504 old_postinstall_cmds=$lt_old_postinstall_cmds
21505 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21506
21507 # Whether to use a lock for old archive extraction.
21508 lock_old_archive_extraction=$lock_old_archive_extraction
21509
21510 # A C compiler.
21511 LTCC=$lt_CC
21512
21513 # LTCC compiler flags.
21514 LTCFLAGS=$lt_CFLAGS
21515
21516 # Take the output of nm and produce a listing of raw symbols and C names.
21517 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21518
21519 # Transform the output of nm in a proper C declaration.
21520 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21521
21522 # Transform the output of nm in a C name address pair.
21523 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21524
21525 # Transform the output of nm in a C name address pair when lib prefix is needed.
21526 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21527
21528 # The name of the directory that contains temporary libtool files.
21529 objdir=$objdir
21530
21531 # Used to examine libraries when file_magic_cmd begins with "file".
21532 MAGIC_CMD=$MAGIC_CMD
21533
21534 # Must we lock files when doing compilation?
21535 need_locks=$lt_need_locks
21536
21537 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21538 DSYMUTIL=$lt_DSYMUTIL
21539
21540 # Tool to change global to local symbols on Mac OS X.
21541 NMEDIT=$lt_NMEDIT
21542
21543 # Tool to manipulate fat objects and archives on Mac OS X.
21544 LIPO=$lt_LIPO
21545
21546 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21547 OTOOL=$lt_OTOOL
21548
21549 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21550 OTOOL64=$lt_OTOOL64
21551
21552 # Old archive suffix (normally "a").
21553 libext=$libext
21554
21555 # Shared library suffix (normally ".so").
21556 shrext_cmds=$lt_shrext_cmds
21557
21558 # The commands to extract the exported symbol list from a shared archive.
21559 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21560
21561 # Variables whose values should be saved in libtool wrapper scripts and
21562 # restored at link time.
21563 variables_saved_for_relink=$lt_variables_saved_for_relink
21564
21565 # Do we need the "lib" prefix for modules?
21566 need_lib_prefix=$need_lib_prefix
21567
21568 # Do we need a version for libraries?
21569 need_version=$need_version
21570
21571 # Library versioning type.
21572 version_type=$version_type
21573
21574 # Shared library runtime path variable.
21575 runpath_var=$runpath_var
21576
21577 # Shared library path variable.
21578 shlibpath_var=$shlibpath_var
21579
21580 # Is shlibpath searched before the hard-coded library search path?
21581 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21582
21583 # Format of library name prefix.
21584 libname_spec=$lt_libname_spec
21585
21586 # List of archive names. First name is the real one, the rest are links.
21587 # The last name is the one that the linker finds with -lNAME
21588 library_names_spec=$lt_library_names_spec
21589
21590 # The coded name of the library, if different from the real name.
21591 soname_spec=$lt_soname_spec
21592
21593 # Permission mode override for installation of shared libraries.
21594 install_override_mode=$lt_install_override_mode
21595
21596 # Command to use after installation of a shared archive.
21597 postinstall_cmds=$lt_postinstall_cmds
21598
21599 # Command to use after uninstallation of a shared archive.
21600 postuninstall_cmds=$lt_postuninstall_cmds
21601
21602 # Commands used to finish a libtool library installation in a directory.
21603 finish_cmds=$lt_finish_cmds
21604
21605 # As "finish_cmds", except a single script fragment to be evaled but
21606 # not shown.
21607 finish_eval=$lt_finish_eval
21608
21609 # Whether we should hardcode library paths into libraries.
21610 hardcode_into_libs=$hardcode_into_libs
21611
21612 # Compile-time system search path for libraries.
21613 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21614
21615 # Run-time system search path for libraries.
21616 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21617
21618 # Whether dlopen is supported.
21619 dlopen_support=$enable_dlopen
21620
21621 # Whether dlopen of programs is supported.
21622 dlopen_self=$enable_dlopen_self
21623
21624 # Whether dlopen of statically linked programs is supported.
21625 dlopen_self_static=$enable_dlopen_self_static
21626
21627 # Commands to strip libraries.
21628 old_striplib=$lt_old_striplib
21629 striplib=$lt_striplib
21630
21631
21632 # The linker used to build libraries.
21633 LD=$lt_LD
21634
21635 # How to create reloadable object files.
21636 reload_flag=$lt_reload_flag
21637 reload_cmds=$lt_reload_cmds
21638
21639 # Commands used to build an old-style archive.
21640 old_archive_cmds=$lt_old_archive_cmds
21641
21642 # A language specific compiler.
21643 CC=$lt_compiler
21644
21645 # Is the compiler the GNU compiler?
21646 with_gcc=$GCC
21647
21648 # Compiler flag to turn off builtin functions.
21649 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21650
21651 # How to pass a linker flag through the compiler.
21652 wl=$lt_lt_prog_compiler_wl
21653
21654 # Additional compiler flags for building library objects.
21655 pic_flag=$lt_lt_prog_compiler_pic
21656
21657 # Compiler flag to prevent dynamic linking.
21658 link_static_flag=$lt_lt_prog_compiler_static
21659
21660 # Does compiler simultaneously support -c and -o options?
21661 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21662
21663 # Whether or not to add -lc for building shared libraries.
21664 build_libtool_need_lc=$archive_cmds_need_lc
21665
21666 # Whether or not to disallow shared libs when runtime libs are static.
21667 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21668
21669 # Compiler flag to allow reflexive dlopens.
21670 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21671
21672 # Compiler flag to generate shared objects directly from archives.
21673 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21674
21675 # Whether the compiler copes with passing no objects directly.
21676 compiler_needs_object=$lt_compiler_needs_object
21677
21678 # Create an old-style archive from a shared archive.
21679 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21680
21681 # Create a temporary old-style archive to link instead of a shared archive.
21682 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21683
21684 # Commands used to build a shared archive.
21685 archive_cmds=$lt_archive_cmds
21686 archive_expsym_cmds=$lt_archive_expsym_cmds
21687
21688 # Commands used to build a loadable module if different from building
21689 # a shared archive.
21690 module_cmds=$lt_module_cmds
21691 module_expsym_cmds=$lt_module_expsym_cmds
21692
21693 # Whether we are building with GNU ld or not.
21694 with_gnu_ld=$lt_with_gnu_ld
21695
21696 # Flag that allows shared libraries with undefined symbols to be built.
21697 allow_undefined_flag=$lt_allow_undefined_flag
21698
21699 # Flag that enforces no undefined symbols.
21700 no_undefined_flag=$lt_no_undefined_flag
21701
21702 # Flag to hardcode \$libdir into a binary during linking.
21703 # This must work even if \$libdir does not exist
21704 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21705
21706 # If ld is used when linking, flag to hardcode \$libdir into a binary
21707 # during linking. This must work even if \$libdir does not exist.
21708 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21709
21710 # Whether we need a single "-rpath" flag with a separated argument.
21711 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21712
21713 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21714 # DIR into the resulting binary.
21715 hardcode_direct=$hardcode_direct
21716
21717 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21718 # DIR into the resulting binary and the resulting library dependency is
21719 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21720 # library is relocated.
21721 hardcode_direct_absolute=$hardcode_direct_absolute
21722
21723 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21724 # into the resulting binary.
21725 hardcode_minus_L=$hardcode_minus_L
21726
21727 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21728 # into the resulting binary.
21729 hardcode_shlibpath_var=$hardcode_shlibpath_var
21730
21731 # Set to "yes" if building a shared library automatically hardcodes DIR
21732 # into the library and all subsequent libraries and executables linked
21733 # against it.
21734 hardcode_automatic=$hardcode_automatic
21735
21736 # Set to yes if linker adds runtime paths of dependent libraries
21737 # to runtime path list.
21738 inherit_rpath=$inherit_rpath
21739
21740 # Whether libtool must link a program against all its dependency libraries.
21741 link_all_deplibs=$link_all_deplibs
21742
21743 # Fix the shell variable \$srcfile for the compiler.
21744 fix_srcfile_path=$lt_fix_srcfile_path
21745
21746 # Set to "yes" if exported symbols are required.
21747 always_export_symbols=$always_export_symbols
21748
21749 # The commands to list exported symbols.
21750 export_symbols_cmds=$lt_export_symbols_cmds
21751
21752 # Symbols that should not be listed in the preloaded symbols.
21753 exclude_expsyms=$lt_exclude_expsyms
21754
21755 # Symbols that must always be exported.
21756 include_expsyms=$lt_include_expsyms
21757
21758 # Commands necessary for linking programs (against libraries) with templates.
21759 prelink_cmds=$lt_prelink_cmds
21760
21761 # Specify filename containing input files.
21762 file_list_spec=$lt_file_list_spec
21763
21764 # How to hardcode a shared library path into an executable.
21765 hardcode_action=$hardcode_action
21766
21767 # The directories searched by this compiler when creating a shared library.
21768 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21769
21770 # Dependencies to place before and after the objects being linked to
21771 # create a shared library.
21772 predep_objects=$lt_predep_objects
21773 postdep_objects=$lt_postdep_objects
21774 predeps=$lt_predeps
21775 postdeps=$lt_postdeps
21776
21777 # The library search path used internally by the compiler when linking
21778 # a shared library.
21779 compiler_lib_search_path=$lt_compiler_lib_search_path
21780
21781 # ### END LIBTOOL CONFIG
21782
21783 _LT_EOF
21784
21785 case $host_os in
21786 aix3*)
21787 cat <<\_LT_EOF >> "$cfgfile"
21788 # AIX sometimes has problems with the GCC collect2 program. For some
21789 # reason, if we set the COLLECT_NAMES environment variable, the problems
21790 # vanish in a puff of smoke.
21791 if test "X${COLLECT_NAMES+set}" != Xset; then
21792 COLLECT_NAMES=
21793 export COLLECT_NAMES
21794 fi
21795 _LT_EOF
21796 ;;
21797 esac
21798
21799
21800 ltmain="$ac_aux_dir/ltmain.sh"
21801
21802
21803 # We use sed instead of cat because bash on DJGPP gets confused if
21804 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21805 # text mode, it properly converts lines to CR/LF. This bash problem
21806 # is reportedly fixed, but why not run on old versions too?
21807 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21808 || (rm -f "$cfgfile"; exit 1)
21809
21810 case $xsi_shell in
21811 yes)
21812 cat << \_LT_EOF >> "$cfgfile"
21813
21814 # func_dirname file append nondir_replacement
21815 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21816 # otherwise set result to NONDIR_REPLACEMENT.
21817 func_dirname ()
21818 {
21819 case ${1} in
21820 */*) func_dirname_result="${1%/*}${2}" ;;
21821 * ) func_dirname_result="${3}" ;;
21822 esac
21823 }
21824
21825 # func_basename file
21826 func_basename ()
21827 {
21828 func_basename_result="${1##*/}"
21829 }
21830
21831 # func_dirname_and_basename file append nondir_replacement
21832 # perform func_basename and func_dirname in a single function
21833 # call:
21834 # dirname: Compute the dirname of FILE. If nonempty,
21835 # add APPEND to the result, otherwise set result
21836 # to NONDIR_REPLACEMENT.
21837 # value returned in "$func_dirname_result"
21838 # basename: Compute filename of FILE.
21839 # value retuned in "$func_basename_result"
21840 # Implementation must be kept synchronized with func_dirname
21841 # and func_basename. For efficiency, we do not delegate to
21842 # those functions but instead duplicate the functionality here.
21843 func_dirname_and_basename ()
21844 {
21845 case ${1} in
21846 */*) func_dirname_result="${1%/*}${2}" ;;
21847 * ) func_dirname_result="${3}" ;;
21848 esac
21849 func_basename_result="${1##*/}"
21850 }
21851
21852 # func_stripname prefix suffix name
21853 # strip PREFIX and SUFFIX off of NAME.
21854 # PREFIX and SUFFIX must not contain globbing or regex special
21855 # characters, hashes, percent signs, but SUFFIX may contain a leading
21856 # dot (in which case that matches only a dot).
21857 func_stripname ()
21858 {
21859 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21860 # positional parameters, so assign one to ordinary parameter first.
21861 func_stripname_result=${3}
21862 func_stripname_result=${func_stripname_result#"${1}"}
21863 func_stripname_result=${func_stripname_result%"${2}"}
21864 }
21865
21866 # func_opt_split
21867 func_opt_split ()
21868 {
21869 func_opt_split_opt=${1%%=*}
21870 func_opt_split_arg=${1#*=}
21871 }
21872
21873 # func_lo2o object
21874 func_lo2o ()
21875 {
21876 case ${1} in
21877 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21878 *) func_lo2o_result=${1} ;;
21879 esac
21880 }
21881
21882 # func_xform libobj-or-source
21883 func_xform ()
21884 {
21885 func_xform_result=${1%.*}.lo
21886 }
21887
21888 # func_arith arithmetic-term...
21889 func_arith ()
21890 {
21891 func_arith_result=$(( $* ))
21892 }
21893
21894 # func_len string
21895 # STRING may not start with a hyphen.
21896 func_len ()
21897 {
21898 func_len_result=${#1}
21899 }
21900
21901 _LT_EOF
21902 ;;
21903 *) # Bourne compatible functions.
21904 cat << \_LT_EOF >> "$cfgfile"
21905
21906 # func_dirname file append nondir_replacement
21907 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21908 # otherwise set result to NONDIR_REPLACEMENT.
21909 func_dirname ()
21910 {
21911 # Extract subdirectory from the argument.
21912 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
21913 if test "X$func_dirname_result" = "X${1}"; then
21914 func_dirname_result="${3}"
21915 else
21916 func_dirname_result="$func_dirname_result${2}"
21917 fi
21918 }
21919
21920 # func_basename file
21921 func_basename ()
21922 {
21923 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
21924 }
21925
21926
21927 # func_stripname prefix suffix name
21928 # strip PREFIX and SUFFIX off of NAME.
21929 # PREFIX and SUFFIX must not contain globbing or regex special
21930 # characters, hashes, percent signs, but SUFFIX may contain a leading
21931 # dot (in which case that matches only a dot).
21932 # func_strip_suffix prefix name
21933 func_stripname ()
21934 {
21935 case ${2} in
21936 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
21937 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
21938 esac
21939 }
21940
21941 # sed scripts:
21942 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21943 my_sed_long_arg='1s/^-[^=]*=//'
21944
21945 # func_opt_split
21946 func_opt_split ()
21947 {
21948 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
21949 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
21950 }
21951
21952 # func_lo2o object
21953 func_lo2o ()
21954 {
21955 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
21956 }
21957
21958 # func_xform libobj-or-source
21959 func_xform ()
21960 {
21961 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
21962 }
21963
21964 # func_arith arithmetic-term...
21965 func_arith ()
21966 {
21967 func_arith_result=`expr "$@"`
21968 }
21969
21970 # func_len string
21971 # STRING may not start with a hyphen.
21972 func_len ()
21973 {
21974 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21975 }
21976
21977 _LT_EOF
21978 esac
21979
21980 case $lt_shell_append in
21981 yes)
21982 cat << \_LT_EOF >> "$cfgfile"
21983
21984 # func_append var value
21985 # Append VALUE to the end of shell variable VAR.
21986 func_append ()
21987 {
21988 eval "$1+=\$2"
21989 }
21990 _LT_EOF
21991 ;;
21992 *)
21993 cat << \_LT_EOF >> "$cfgfile"
21994
21995 # func_append var value
21996 # Append VALUE to the end of shell variable VAR.
21997 func_append ()
21998 {
21999 eval "$1=\$$1\$2"
22000 }
22001
22002 _LT_EOF
22003 ;;
22004 esac
22005
22006
22007 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22008 || (rm -f "$cfgfile"; exit 1)
22009
22010 mv -f "$cfgfile" "$ofile" ||
22011 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22012 chmod +x "$ofile"
22013
22014
22015 cat <<_LT_EOF >> "$ofile"
22016
22017 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22018
22019 # The linker used to build libraries.
22020 LD=$lt_LD_CXX
22021
22022 # How to create reloadable object files.
22023 reload_flag=$lt_reload_flag_CXX
22024 reload_cmds=$lt_reload_cmds_CXX
22025
22026 # Commands used to build an old-style archive.
22027 old_archive_cmds=$lt_old_archive_cmds_CXX
22028
22029 # A language specific compiler.
22030 CC=$lt_compiler_CXX
22031
22032 # Is the compiler the GNU compiler?
22033 with_gcc=$GCC_CXX
22034
22035 # Compiler flag to turn off builtin functions.
22036 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22037
22038 # How to pass a linker flag through the compiler.
22039 wl=$lt_lt_prog_compiler_wl_CXX
22040
22041 # Additional compiler flags for building library objects.
22042 pic_flag=$lt_lt_prog_compiler_pic_CXX
22043
22044 # Compiler flag to prevent dynamic linking.
22045 link_static_flag=$lt_lt_prog_compiler_static_CXX
22046
22047 # Does compiler simultaneously support -c and -o options?
22048 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22049
22050 # Whether or not to add -lc for building shared libraries.
22051 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22052
22053 # Whether or not to disallow shared libs when runtime libs are static.
22054 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22055
22056 # Compiler flag to allow reflexive dlopens.
22057 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22058
22059 # Compiler flag to generate shared objects directly from archives.
22060 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22061
22062 # Whether the compiler copes with passing no objects directly.
22063 compiler_needs_object=$lt_compiler_needs_object_CXX
22064
22065 # Create an old-style archive from a shared archive.
22066 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22067
22068 # Create a temporary old-style archive to link instead of a shared archive.
22069 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22070
22071 # Commands used to build a shared archive.
22072 archive_cmds=$lt_archive_cmds_CXX
22073 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22074
22075 # Commands used to build a loadable module if different from building
22076 # a shared archive.
22077 module_cmds=$lt_module_cmds_CXX
22078 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22079
22080 # Whether we are building with GNU ld or not.
22081 with_gnu_ld=$lt_with_gnu_ld_CXX
22082
22083 # Flag that allows shared libraries with undefined symbols to be built.
22084 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22085
22086 # Flag that enforces no undefined symbols.
22087 no_undefined_flag=$lt_no_undefined_flag_CXX
22088
22089 # Flag to hardcode \$libdir into a binary during linking.
22090 # This must work even if \$libdir does not exist
22091 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22092
22093 # If ld is used when linking, flag to hardcode \$libdir into a binary
22094 # during linking. This must work even if \$libdir does not exist.
22095 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22096
22097 # Whether we need a single "-rpath" flag with a separated argument.
22098 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22099
22100 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22101 # DIR into the resulting binary.
22102 hardcode_direct=$hardcode_direct_CXX
22103
22104 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22105 # DIR into the resulting binary and the resulting library dependency is
22106 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22107 # library is relocated.
22108 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22109
22110 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22111 # into the resulting binary.
22112 hardcode_minus_L=$hardcode_minus_L_CXX
22113
22114 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22115 # into the resulting binary.
22116 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22117
22118 # Set to "yes" if building a shared library automatically hardcodes DIR
22119 # into the library and all subsequent libraries and executables linked
22120 # against it.
22121 hardcode_automatic=$hardcode_automatic_CXX
22122
22123 # Set to yes if linker adds runtime paths of dependent libraries
22124 # to runtime path list.
22125 inherit_rpath=$inherit_rpath_CXX
22126
22127 # Whether libtool must link a program against all its dependency libraries.
22128 link_all_deplibs=$link_all_deplibs_CXX
22129
22130 # Fix the shell variable \$srcfile for the compiler.
22131 fix_srcfile_path=$lt_fix_srcfile_path_CXX
22132
22133 # Set to "yes" if exported symbols are required.
22134 always_export_symbols=$always_export_symbols_CXX
22135
22136 # The commands to list exported symbols.
22137 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22138
22139 # Symbols that should not be listed in the preloaded symbols.
22140 exclude_expsyms=$lt_exclude_expsyms_CXX
22141
22142 # Symbols that must always be exported.
22143 include_expsyms=$lt_include_expsyms_CXX
22144
22145 # Commands necessary for linking programs (against libraries) with templates.
22146 prelink_cmds=$lt_prelink_cmds_CXX
22147
22148 # Specify filename containing input files.
22149 file_list_spec=$lt_file_list_spec_CXX
22150
22151 # How to hardcode a shared library path into an executable.
22152 hardcode_action=$hardcode_action_CXX
22153
22154 # The directories searched by this compiler when creating a shared library.
22155 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22156
22157 # Dependencies to place before and after the objects being linked to
22158 # create a shared library.
22159 predep_objects=$lt_predep_objects_CXX
22160 postdep_objects=$lt_postdep_objects_CXX
22161 predeps=$lt_predeps_CXX
22162 postdeps=$lt_postdeps_CXX
22163
22164 # The library search path used internally by the compiler when linking
22165 # a shared library.
22166 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22167
22168 # ### END LIBTOOL TAG CONFIG: CXX
22169 _LT_EOF
22170
22171 ;;
22172 "default-1":C)
22173 for ac_file in $CONFIG_FILES; do
22174 # Support "outfile[:infile[:infile...]]"
22175 case "$ac_file" in
22176 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22177 esac
22178 # PO directories have a Makefile.in generated from Makefile.in.in.
22179 case "$ac_file" in */Makefile.in)
22180 # Adjust a relative srcdir.
22181 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22182 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
22183 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22184 # In autoconf-2.13 it is called $ac_given_srcdir.
22185 # In autoconf-2.50 it is called $srcdir.
22186 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22187 case "$ac_given_srcdir" in
22188 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22189 /*) top_srcdir="$ac_given_srcdir" ;;
22190 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22191 esac
22192 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22193 rm -f "$ac_dir/POTFILES"
22194 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22195 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22196 POMAKEFILEDEPS="POTFILES.in"
22197 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22198 # on $ac_dir but don't depend on user-specified configuration
22199 # parameters.
22200 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22201 # The LINGUAS file contains the set of available languages.
22202 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22203 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
22204 fi
22205 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22206 # Hide the ALL_LINGUAS assigment from automake.
22207 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22208 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22209 else
22210 # The set of available languages was given in configure.ac.
22211 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22212 fi
22213 case "$ac_given_srcdir" in
22214 .) srcdirpre= ;;
22215 *) srcdirpre='$(srcdir)/' ;;
22216 esac
22217 POFILES=
22218 GMOFILES=
22219 UPDATEPOFILES=
22220 DUMMYPOFILES=
22221 for lang in $ALL_LINGUAS; do
22222 POFILES="$POFILES $srcdirpre$lang.po"
22223 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22224 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22225 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22226 done
22227 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22228 # environment variable.
22229 INST_LINGUAS=
22230 if test -n "$ALL_LINGUAS"; then
22231 for presentlang in $ALL_LINGUAS; do
22232 useit=no
22233 if test "%UNSET%" != "$LINGUAS"; then
22234 desiredlanguages="$LINGUAS"
22235 else
22236 desiredlanguages="$ALL_LINGUAS"
22237 fi
22238 for desiredlang in $desiredlanguages; do
22239 # Use the presentlang catalog if desiredlang is
22240 # a. equal to presentlang, or
22241 # b. a variant of presentlang (because in this case,
22242 # presentlang can be used as a fallback for messages
22243 # which are not translated in the desiredlang catalog).
22244 case "$desiredlang" in
22245 "$presentlang"*) useit=yes;;
22246 esac
22247 done
22248 if test $useit = yes; then
22249 INST_LINGUAS="$INST_LINGUAS $presentlang"
22250 fi
22251 done
22252 fi
22253 CATALOGS=
22254 if test -n "$INST_LINGUAS"; then
22255 for lang in $INST_LINGUAS; do
22256 CATALOGS="$CATALOGS $lang.gmo"
22257 done
22258 fi
22259 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22260 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"
22261 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22262 if test -f "$f"; then
22263 case "$f" in
22264 *.orig | *.bak | *~) ;;
22265 *) cat "$f" >> "$ac_dir/Makefile" ;;
22266 esac
22267 fi
22268 done
22269 fi
22270 ;;
22271 esac
22272 done ;;
22273 "default":C)
22274 case "$srcdir" in
22275 .) srcdirpre= ;;
22276 *) srcdirpre='$(srcdir)/' ;;
22277 esac
22278 POFILES=
22279 GMOFILES=
22280 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
22281 if test $lang != dummy; then
22282 POFILES="$POFILES $srcdirpre$lang.po"
22283 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22284 fi
22285 done
22286 sed -e '/^SRC-POTFILES =/r po/SRC-POTFILES' \
22287 -e '/^BLD-POTFILES =/r po/BLD-POTFILES' \
22288 -e "s,@POFILES@,$POFILES," \
22289 -e "s,@GMOFILES@,$GMOFILES," \
22290 po/Makefile.in > po/Makefile ;;
22291
22292 esac
22293 done # for ac_tag
22294
22295
22296 as_fn_exit 0
22297 _ACEOF
22298 ac_clean_files=$ac_clean_files_save
22299
22300 test $ac_write_fail = 0 ||
22301 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22302
22303
22304 # configure is writing to config.log, and then calls config.status.
22305 # config.status does its own redirection, appending to config.log.
22306 # Unfortunately, on DOS this fails, as config.log is still kept open
22307 # by configure, so config.status won't be able to write to it; its
22308 # output is simply discarded. So we exec the FD to /dev/null,
22309 # effectively closing config.log, so it can be properly (re)opened and
22310 # appended to by config.status. When coming back to configure, we
22311 # need to make the FD available again.
22312 if test "$no_create" != yes; then
22313 ac_cs_success=:
22314 ac_config_status_args=
22315 test "$silent" = yes &&
22316 ac_config_status_args="$ac_config_status_args --quiet"
22317 exec 5>/dev/null
22318 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22319 exec 5>>config.log
22320 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22321 # would make configure fail if this is the last instruction.
22322 $ac_cs_success || as_fn_exit 1
22323 fi
22324 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22326 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22327 fi
22328
22329
22330
22331 touch config.status.tmp
22332 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
22333 sed '/as_fn_exit 0/i \
22334 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
22335 touch --reference=Makefile Makefile.tmp \
22336 mv Makefile.tmp Makefile \
22337 ' config.status > config.status.tmp
22338 touch --reference=config.status config.status.tmp
22339 mv config.status.tmp config.status
22340 chmod +x config.status
22341 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
22342 touch --reference=Makefile Makefile.tmp
22343 mv Makefile.tmp Makefile
22344 else
22345 rm -f config.status.tmp
22346 fi
22347