Add ability to change linker warning messages into errors when reporting executable...
[binutils-gdb.git] / ld / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ld 2.41.50.
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@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.41.50'
591 PACKAGE_STRING='ld 2.41.50'
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 ac_header_list=
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 TESTSFRAMELIB
638 TESTCTFLIB
639 TESTBFDLIB
640 EMULATION_LIBPATH
641 LIB_PATH
642 EMUL_EXTRA_OFILES
643 EMULATION_OFILES
644 TDIRS
645 EMUL
646 elf_plt_unwind_list_options
647 elf_shlib_list_options
648 elf_list_options
649 ZSTD_LIBS
650 ZSTD_CFLAGS
651 zlibinc
652 zlibdir
653 NATIVE_LIB_DIRS
654 HDEFINES
655 do_compare
656 GENINSRC_NEVER_FALSE
657 GENINSRC_NEVER_TRUE
658 LEXLIB
659 LEX_OUTPUT_ROOT
660 LEX
661 YFLAGS
662 YACC
663 MSGMERGE
664 MSGFMT
665 MKINSTALLDIRS
666 CATOBJEXT
667 GENCAT
668 INSTOBJEXT
669 DATADIRNAME
670 CATALOGS
671 POSUB
672 GMSGFMT
673 XGETTEXT
674 INCINTL
675 LIBINTL_DEP
676 LIBINTL
677 USE_NLS
678 WARN_WRITE_STRINGS
679 NO_WERROR
680 WARN_CFLAGS_FOR_BUILD
681 WARN_CFLAGS
682 JANSSON_LIBS
683 JANSSON_CFLAGS
684 enable_libctf
685 ENABLE_LIBCTF_FALSE
686 ENABLE_LIBCTF_TRUE
687 enable_initfini_array
688 installed_linker
689 install_as_default
690 TARGET_SYSTEM_ROOT_DEFINE
691 TARGET_SYSTEM_ROOT
692 use_sysroot
693 ENABLE_BFD_64_BIT_FALSE
694 ENABLE_BFD_64_BIT_TRUE
695 LARGEFILE_CPPFLAGS
696 CXXCPP
697 OTOOL64
698 OTOOL
699 LIPO
700 NMEDIT
701 DSYMUTIL
702 RANLIB
703 AR
704 OBJDUMP
705 LN_S
706 NM
707 ac_ct_DUMPBIN
708 DUMPBIN
709 LD
710 FGREP
711 SED
712 LIBTOOL
713 PKG_CONFIG_LIBDIR
714 PKG_CONFIG_PATH
715 PKG_CONFIG
716 EGREP
717 CPP
718 GREP
719 am__fastdepCXX_FALSE
720 am__fastdepCXX_TRUE
721 CXXDEPMODE
722 ac_ct_CXX
723 CXXFLAGS
724 CXX
725 am__fastdepCC_FALSE
726 am__fastdepCC_TRUE
727 CCDEPMODE
728 am__nodep
729 AMDEPBACKSLASH
730 AMDEP_FALSE
731 AMDEP_TRUE
732 am__quote
733 am__include
734 DEPDIR
735 OBJEXT
736 EXEEXT
737 ac_ct_CC
738 CPPFLAGS
739 LDFLAGS
740 CFLAGS
741 CC
742 MAINT
743 MAINTAINER_MODE_FALSE
744 MAINTAINER_MODE_TRUE
745 AM_BACKSLASH
746 AM_DEFAULT_VERBOSITY
747 AM_DEFAULT_V
748 AM_V
749 am__untar
750 am__tar
751 AMTAR
752 am__leading_dot
753 SET_MAKE
754 AWK
755 mkdir_p
756 MKDIR_P
757 INSTALL_STRIP_PROGRAM
758 STRIP
759 install_sh
760 MAKEINFO
761 AUTOHEADER
762 AUTOMAKE
763 AUTOCONF
764 ACLOCAL
765 VERSION
766 PACKAGE
767 CYGPATH_W
768 am__isrc
769 INSTALL_DATA
770 INSTALL_SCRIPT
771 INSTALL_PROGRAM
772 target_os
773 target_vendor
774 target_cpu
775 target
776 host_os
777 host_vendor
778 host_cpu
779 host
780 build_os
781 build_vendor
782 build_cpu
783 build
784 target_alias
785 host_alias
786 build_alias
787 LIBS
788 ECHO_T
789 ECHO_N
790 ECHO_C
791 DEFS
792 mandir
793 localedir
794 libdir
795 psdir
796 pdfdir
797 dvidir
798 htmldir
799 infodir
800 docdir
801 oldincludedir
802 includedir
803 localstatedir
804 sharedstatedir
805 sysconfdir
806 datadir
807 datarootdir
808 libexecdir
809 sbindir
810 bindir
811 program_transform_name
812 prefix
813 exec_prefix
814 PACKAGE_URL
815 PACKAGE_BUGREPORT
816 PACKAGE_STRING
817 PACKAGE_VERSION
818 PACKAGE_TARNAME
819 PACKAGE_NAME
820 PATH_SEPARATOR
821 SHELL'
822 ac_subst_files=''
823 ac_user_opts='
824 enable_option_checking
825 enable_silent_rules
826 enable_maintainer_mode
827 enable_dependency_tracking
828 enable_shared
829 enable_static
830 with_pic
831 enable_fast_install
832 with_gnu_ld
833 enable_libtool_lock
834 enable_plugins
835 enable_largefile
836 enable_checking
837 with_lib_path
838 enable_targets
839 enable_64_bit_bfd
840 with_sysroot
841 enable_gold
842 enable_got
843 enable_compressed_debug_sections
844 enable_default_compressed_debug_sections_algorithm
845 enable_new_dtags
846 enable_relro
847 enable_textrel_check
848 enable_separate_code
849 enable_warn_execstack
850 enable_error_execstack
851 enable_warn_rwx_segments
852 enable_error_rwx_segments
853 enable_default_execstack
854 enable_error_handling_script
855 enable_default_hash_style
856 enable_initfini_array
857 enable_libctf
858 enable_jansson
859 enable_werror
860 enable_build_warnings
861 enable_nls
862 with_system_zlib
863 with_zstd
864 '
865 ac_precious_vars='build_alias
866 host_alias
867 target_alias
868 CC
869 CFLAGS
870 LDFLAGS
871 LIBS
872 CPPFLAGS
873 CXX
874 CXXFLAGS
875 CCC
876 CPP
877 PKG_CONFIG
878 PKG_CONFIG_PATH
879 PKG_CONFIG_LIBDIR
880 CXXCPP
881 JANSSON_CFLAGS
882 JANSSON_LIBS
883 YACC
884 YFLAGS
885 ZSTD_CFLAGS
886 ZSTD_LIBS'
887
888
889 # Initialize some variables set by options.
890 ac_init_help=
891 ac_init_version=false
892 ac_unrecognized_opts=
893 ac_unrecognized_sep=
894 # The variables have the same names as the options, with
895 # dashes changed to underlines.
896 cache_file=/dev/null
897 exec_prefix=NONE
898 no_create=
899 no_recursion=
900 prefix=NONE
901 program_prefix=NONE
902 program_suffix=NONE
903 program_transform_name=s,x,x,
904 silent=
905 site=
906 srcdir=
907 verbose=
908 x_includes=NONE
909 x_libraries=NONE
910
911 # Installation directory options.
912 # These are left unexpanded so users can "make install exec_prefix=/foo"
913 # and all the variables that are supposed to be based on exec_prefix
914 # by default will actually change.
915 # Use braces instead of parens because sh, perl, etc. also accept them.
916 # (The list follows the same order as the GNU Coding Standards.)
917 bindir='${exec_prefix}/bin'
918 sbindir='${exec_prefix}/sbin'
919 libexecdir='${exec_prefix}/libexec'
920 datarootdir='${prefix}/share'
921 datadir='${datarootdir}'
922 sysconfdir='${prefix}/etc'
923 sharedstatedir='${prefix}/com'
924 localstatedir='${prefix}/var'
925 includedir='${prefix}/include'
926 oldincludedir='/usr/include'
927 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
928 infodir='${datarootdir}/info'
929 htmldir='${docdir}'
930 dvidir='${docdir}'
931 pdfdir='${docdir}'
932 psdir='${docdir}'
933 libdir='${exec_prefix}/lib'
934 localedir='${datarootdir}/locale'
935 mandir='${datarootdir}/man'
936
937 ac_prev=
938 ac_dashdash=
939 for ac_option
940 do
941 # If the previous option needs an argument, assign it.
942 if test -n "$ac_prev"; then
943 eval $ac_prev=\$ac_option
944 ac_prev=
945 continue
946 fi
947
948 case $ac_option in
949 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950 *=) ac_optarg= ;;
951 *) ac_optarg=yes ;;
952 esac
953
954 # Accept the important Cygnus configure options, so we can diagnose typos.
955
956 case $ac_dashdash$ac_option in
957 --)
958 ac_dashdash=yes ;;
959
960 -bindir | --bindir | --bindi | --bind | --bin | --bi)
961 ac_prev=bindir ;;
962 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
963 bindir=$ac_optarg ;;
964
965 -build | --build | --buil | --bui | --bu)
966 ac_prev=build_alias ;;
967 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
968 build_alias=$ac_optarg ;;
969
970 -cache-file | --cache-file | --cache-fil | --cache-fi \
971 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972 ac_prev=cache_file ;;
973 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
975 cache_file=$ac_optarg ;;
976
977 --config-cache | -C)
978 cache_file=config.cache ;;
979
980 -datadir | --datadir | --datadi | --datad)
981 ac_prev=datadir ;;
982 -datadir=* | --datadir=* | --datadi=* | --datad=*)
983 datadir=$ac_optarg ;;
984
985 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986 | --dataroo | --dataro | --datar)
987 ac_prev=datarootdir ;;
988 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990 datarootdir=$ac_optarg ;;
991
992 -disable-* | --disable-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 as_fn_error $? "invalid feature name: $ac_useropt"
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1000 *"
1001 "enable_$ac_useropt"
1002 "*) ;;
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1005 esac
1006 eval enable_$ac_useropt=no ;;
1007
1008 -docdir | --docdir | --docdi | --doc | --do)
1009 ac_prev=docdir ;;
1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011 docdir=$ac_optarg ;;
1012
1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014 ac_prev=dvidir ;;
1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016 dvidir=$ac_optarg ;;
1017
1018 -enable-* | --enable-*)
1019 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022 as_fn_error $? "invalid feature name: $ac_useropt"
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1026 *"
1027 "enable_$ac_useropt"
1028 "*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
1031 esac
1032 eval enable_$ac_useropt=\$ac_optarg ;;
1033
1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036 | --exec | --exe | --ex)
1037 ac_prev=exec_prefix ;;
1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040 | --exec=* | --exe=* | --ex=*)
1041 exec_prefix=$ac_optarg ;;
1042
1043 -gas | --gas | --ga | --g)
1044 # Obsolete; use --with-gas.
1045 with_gas=yes ;;
1046
1047 -help | --help | --hel | --he | -h)
1048 ac_init_help=long ;;
1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050 ac_init_help=recursive ;;
1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052 ac_init_help=short ;;
1053
1054 -host | --host | --hos | --ho)
1055 ac_prev=host_alias ;;
1056 -host=* | --host=* | --hos=* | --ho=*)
1057 host_alias=$ac_optarg ;;
1058
1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 ac_prev=htmldir ;;
1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 | --ht=*)
1063 htmldir=$ac_optarg ;;
1064
1065 -includedir | --includedir | --includedi | --included | --include \
1066 | --includ | --inclu | --incl | --inc)
1067 ac_prev=includedir ;;
1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069 | --includ=* | --inclu=* | --incl=* | --inc=*)
1070 includedir=$ac_optarg ;;
1071
1072 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 ac_prev=infodir ;;
1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075 infodir=$ac_optarg ;;
1076
1077 -libdir | --libdir | --libdi | --libd)
1078 ac_prev=libdir ;;
1079 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1080 libdir=$ac_optarg ;;
1081
1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083 | --libexe | --libex | --libe)
1084 ac_prev=libexecdir ;;
1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086 | --libexe=* | --libex=* | --libe=*)
1087 libexecdir=$ac_optarg ;;
1088
1089 -localedir | --localedir | --localedi | --localed | --locale)
1090 ac_prev=localedir ;;
1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092 localedir=$ac_optarg ;;
1093
1094 -localstatedir | --localstatedir | --localstatedi | --localstated \
1095 | --localstate | --localstat | --localsta | --localst | --locals)
1096 ac_prev=localstatedir ;;
1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1099 localstatedir=$ac_optarg ;;
1100
1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 ac_prev=mandir ;;
1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104 mandir=$ac_optarg ;;
1105
1106 -nfp | --nfp | --nf)
1107 # Obsolete; use --without-fp.
1108 with_fp=no ;;
1109
1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111 | --no-cr | --no-c | -n)
1112 no_create=yes ;;
1113
1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 no_recursion=yes ;;
1117
1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120 | --oldin | --oldi | --old | --ol | --o)
1121 ac_prev=oldincludedir ;;
1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125 oldincludedir=$ac_optarg ;;
1126
1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 ac_prev=prefix ;;
1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130 prefix=$ac_optarg ;;
1131
1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133 | --program-pre | --program-pr | --program-p)
1134 ac_prev=program_prefix ;;
1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137 program_prefix=$ac_optarg ;;
1138
1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140 | --program-suf | --program-su | --program-s)
1141 ac_prev=program_suffix ;;
1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144 program_suffix=$ac_optarg ;;
1145
1146 -program-transform-name | --program-transform-name \
1147 | --program-transform-nam | --program-transform-na \
1148 | --program-transform-n | --program-transform- \
1149 | --program-transform | --program-transfor \
1150 | --program-transfo | --program-transf \
1151 | --program-trans | --program-tran \
1152 | --progr-tra | --program-tr | --program-t)
1153 ac_prev=program_transform_name ;;
1154 -program-transform-name=* | --program-transform-name=* \
1155 | --program-transform-nam=* | --program-transform-na=* \
1156 | --program-transform-n=* | --program-transform-=* \
1157 | --program-transform=* | --program-transfor=* \
1158 | --program-transfo=* | --program-transf=* \
1159 | --program-trans=* | --program-tran=* \
1160 | --progr-tra=* | --program-tr=* | --program-t=*)
1161 program_transform_name=$ac_optarg ;;
1162
1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 ac_prev=pdfdir ;;
1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166 pdfdir=$ac_optarg ;;
1167
1168 -psdir | --psdir | --psdi | --psd | --ps)
1169 ac_prev=psdir ;;
1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 psdir=$ac_optarg ;;
1172
1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174 | -silent | --silent | --silen | --sile | --sil)
1175 silent=yes ;;
1176
1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178 ac_prev=sbindir ;;
1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180 | --sbi=* | --sb=*)
1181 sbindir=$ac_optarg ;;
1182
1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185 | --sharedst | --shareds | --shared | --share | --shar \
1186 | --sha | --sh)
1187 ac_prev=sharedstatedir ;;
1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191 | --sha=* | --sh=*)
1192 sharedstatedir=$ac_optarg ;;
1193
1194 -site | --site | --sit)
1195 ac_prev=site ;;
1196 -site=* | --site=* | --sit=*)
1197 site=$ac_optarg ;;
1198
1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200 ac_prev=srcdir ;;
1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1202 srcdir=$ac_optarg ;;
1203
1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205 | --syscon | --sysco | --sysc | --sys | --sy)
1206 ac_prev=sysconfdir ;;
1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1209 sysconfdir=$ac_optarg ;;
1210
1211 -target | --target | --targe | --targ | --tar | --ta | --t)
1212 ac_prev=target_alias ;;
1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1214 target_alias=$ac_optarg ;;
1215
1216 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217 verbose=yes ;;
1218
1219 -version | --version | --versio | --versi | --vers | -V)
1220 ac_init_version=: ;;
1221
1222 -with-* | --with-*)
1223 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 as_fn_error $? "invalid package name: $ac_useropt"
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1230 *"
1231 "with_$ac_useropt"
1232 "*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1235 esac
1236 eval with_$ac_useropt=\$ac_optarg ;;
1237
1238 -without-* | --without-*)
1239 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1251 esac
1252 eval with_$ac_useropt=no ;;
1253
1254 --x)
1255 # Obsolete; use --with-x.
1256 with_x=yes ;;
1257
1258 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1259 | --x-incl | --x-inc | --x-in | --x-i)
1260 ac_prev=x_includes ;;
1261 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1262 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1263 x_includes=$ac_optarg ;;
1264
1265 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1266 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1267 ac_prev=x_libraries ;;
1268 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1269 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1270 x_libraries=$ac_optarg ;;
1271
1272 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1273 Try \`$0 --help' for more information"
1274 ;;
1275
1276 *=*)
1277 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1278 # Reject names that are not valid shell variable names.
1279 case $ac_envvar in #(
1280 '' | [0-9]* | *[!_$as_cr_alnum]* )
1281 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1282 esac
1283 eval $ac_envvar=\$ac_optarg
1284 export $ac_envvar ;;
1285
1286 *)
1287 # FIXME: should be removed in autoconf 3.0.
1288 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1289 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1290 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1291 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1292 ;;
1293
1294 esac
1295 done
1296
1297 if test -n "$ac_prev"; then
1298 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1299 as_fn_error $? "missing argument to $ac_option"
1300 fi
1301
1302 if test -n "$ac_unrecognized_opts"; then
1303 case $enable_option_checking in
1304 no) ;;
1305 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1306 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1307 esac
1308 fi
1309
1310 # Check all directory arguments for consistency.
1311 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1312 datadir sysconfdir sharedstatedir localstatedir includedir \
1313 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1314 libdir localedir mandir
1315 do
1316 eval ac_val=\$$ac_var
1317 # Remove trailing slashes.
1318 case $ac_val in
1319 */ )
1320 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1321 eval $ac_var=\$ac_val;;
1322 esac
1323 # Be sure to have absolute directory names.
1324 case $ac_val in
1325 [\\/$]* | ?:[\\/]* ) continue;;
1326 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1327 esac
1328 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1329 done
1330
1331 # There might be people who depend on the old broken behavior: `$host'
1332 # used to hold the argument of --host etc.
1333 # FIXME: To remove some day.
1334 build=$build_alias
1335 host=$host_alias
1336 target=$target_alias
1337
1338 # FIXME: To remove some day.
1339 if test "x$host_alias" != x; then
1340 if test "x$build_alias" = x; then
1341 cross_compiling=maybe
1342 elif test "x$build_alias" != "x$host_alias"; then
1343 cross_compiling=yes
1344 fi
1345 fi
1346
1347 ac_tool_prefix=
1348 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1349
1350 test "$silent" = yes && exec 6>/dev/null
1351
1352
1353 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1354 ac_ls_di=`ls -di .` &&
1355 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1356 as_fn_error $? "working directory cannot be determined"
1357 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358 as_fn_error $? "pwd does not report name of working directory"
1359
1360
1361 # Find the source files, if location was not specified.
1362 if test -z "$srcdir"; then
1363 ac_srcdir_defaulted=yes
1364 # Try the directory containing this script, then the parent directory.
1365 ac_confdir=`$as_dirname -- "$as_myself" ||
1366 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367 X"$as_myself" : 'X\(//\)[^/]' \| \
1368 X"$as_myself" : 'X\(//\)$' \| \
1369 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1370 $as_echo X"$as_myself" |
1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\/\)[^/].*/{
1376 s//\1/
1377 q
1378 }
1379 /^X\(\/\/\)$/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\).*/{
1384 s//\1/
1385 q
1386 }
1387 s/.*/./; q'`
1388 srcdir=$ac_confdir
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390 srcdir=..
1391 fi
1392 else
1393 ac_srcdir_defaulted=no
1394 fi
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1397 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1398 fi
1399 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400 ac_abs_confdir=`(
1401 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1402 pwd)`
1403 # When building in place, set srcdir=.
1404 if test "$ac_abs_confdir" = "$ac_pwd"; then
1405 srcdir=.
1406 fi
1407 # Remove unnecessary trailing slashes from srcdir.
1408 # Double slashes in file names in object file debugging info
1409 # mess up M-x gdb in Emacs.
1410 case $srcdir in
1411 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1412 esac
1413 for ac_var in $ac_precious_vars; do
1414 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_env_${ac_var}_value=\$${ac_var}
1416 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1418 done
1419
1420 #
1421 # Report the --help message.
1422 #
1423 if test "$ac_init_help" = "long"; then
1424 # Omit some internal or obsolete options to make the list less imposing.
1425 # This message is too long to be a string in the A/UX 3.1 sh.
1426 cat <<_ACEOF
1427 \`configure' configures ld 2.41.50 to adapt to many kinds of systems.
1428
1429 Usage: $0 [OPTION]... [VAR=VALUE]...
1430
1431 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1432 VAR=VALUE. See below for descriptions of some of the useful variables.
1433
1434 Defaults for the options are specified in brackets.
1435
1436 Configuration:
1437 -h, --help display this help and exit
1438 --help=short display options specific to this package
1439 --help=recursive display the short help of all the included packages
1440 -V, --version display version information and exit
1441 -q, --quiet, --silent do not print \`checking ...' messages
1442 --cache-file=FILE cache test results in FILE [disabled]
1443 -C, --config-cache alias for \`--cache-file=config.cache'
1444 -n, --no-create do not create output files
1445 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1446
1447 Installation directories:
1448 --prefix=PREFIX install architecture-independent files in PREFIX
1449 [$ac_default_prefix]
1450 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1451 [PREFIX]
1452
1453 By default, \`make install' will install all the files in
1454 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1455 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1456 for instance \`--prefix=\$HOME'.
1457
1458 For better control, use the options below.
1459
1460 Fine tuning of the installation directories:
1461 --bindir=DIR user executables [EPREFIX/bin]
1462 --sbindir=DIR system admin executables [EPREFIX/sbin]
1463 --libexecdir=DIR program executables [EPREFIX/libexec]
1464 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1465 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1466 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1467 --libdir=DIR object code libraries [EPREFIX/lib]
1468 --includedir=DIR C header files [PREFIX/include]
1469 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1470 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1471 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1472 --infodir=DIR info documentation [DATAROOTDIR/info]
1473 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1474 --mandir=DIR man documentation [DATAROOTDIR/man]
1475 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
1476 --htmldir=DIR html documentation [DOCDIR]
1477 --dvidir=DIR dvi documentation [DOCDIR]
1478 --pdfdir=DIR pdf documentation [DOCDIR]
1479 --psdir=DIR ps documentation [DOCDIR]
1480 _ACEOF
1481
1482 cat <<\_ACEOF
1483
1484 Program names:
1485 --program-prefix=PREFIX prepend PREFIX to installed program names
1486 --program-suffix=SUFFIX append SUFFIX to installed program names
1487 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1488
1489 System types:
1490 --build=BUILD configure for building on BUILD [guessed]
1491 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1492 --target=TARGET configure for building compilers for TARGET [HOST]
1493 _ACEOF
1494 fi
1495
1496 if test -n "$ac_init_help"; then
1497 case $ac_init_help in
1498 short | recursive ) echo "Configuration of ld 2.41.50:";;
1499 esac
1500 cat <<\_ACEOF
1501
1502 Optional Features:
1503 --disable-option-checking ignore unrecognized --enable/--with options
1504 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1505 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1506 --enable-silent-rules less verbose build output (undo: "make V=1")
1507 --disable-silent-rules verbose build output (undo: "make V=0")
1508 --enable-maintainer-mode
1509 enable make rules and dependencies not useful (and
1510 sometimes confusing) to the casual installer
1511 --enable-dependency-tracking
1512 do not reject slow dependency extractors
1513 --disable-dependency-tracking
1514 speeds up one-time build
1515 --enable-shared[=PKGS] build shared libraries [default=yes]
1516 --enable-static[=PKGS] build static libraries [default=yes]
1517 --enable-fast-install[=PKGS]
1518 optimize for fast installation [default=yes]
1519 --disable-libtool-lock avoid locking (might break parallel builds)
1520 --enable-plugins Enable support for plugins
1521 --disable-largefile omit support for large files
1522 --enable-checking enable run-time checks
1523 --enable-targets alternative target configurations
1524 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1525 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1526 --enable-got=<type> GOT handling scheme (target, single, negative,
1527 multigot)
1528 --enable-compressed-debug-sections={all,ld,none}
1529 compress debug sections by default]
1530 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1531 Default compression algorithm for
1532 --enable-compressed-debug-sections.
1533 --enable-new-dtags set DT_RUNPATH instead of DT_RPATH by default]
1534 --enable-relro enable -z relro in ELF linker by default
1535 --enable-textrel-check=[yes|no|warning|error]
1536 enable DT_TEXTREL check in ELF linker
1537 --enable-separate-code enable -z separate-code in ELF linker by default
1538 --enable-warn-execstack enable warnings when creating an executable stack
1539 --enable-warn-rwx-segments
1540 enable warnings when creating segments with RWX
1541 permissions
1542 --enable-default-execstack
1543 create an executable stack if an input file is
1544 missing a .note.GNU-stack section
1545 --enable-error-handling-script
1546 enable/disable support for the
1547 --error-handling-script option
1548 --enable-default-hash-style={sysv,gnu,both}
1549 use this default hash style
1550 --disable-initfini-array do not use .init_array/.fini_array sections
1551 --enable-libctf Handle .ctf type-info sections [default=yes]
1552 --enable-jansson enable jansson [default=no]
1553 --enable-werror treat compile warnings as errors
1554 --enable-build-warnings enable build-time compiler warnings
1555 --disable-nls do not use Native Language Support
1556
1557 Optional Packages:
1558 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1559 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1560 --with-pic try to use only PIC/non-PIC objects [default=use
1561 both]
1562 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1563 --with-lib-path=dir1:dir2... set default LIB_PATH
1564 --with-sysroot=DIR Search for usr/lib et al within DIR.
1565 --with-system-zlib use installed libz
1566 --with-zstd support zstd compressed debug sections
1567 (default=auto)
1568
1569 Some influential environment variables:
1570 CC C compiler command
1571 CFLAGS C compiler flags
1572 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1573 nonstandard directory <lib dir>
1574 LIBS libraries to pass to the linker, e.g. -l<library>
1575 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1576 you have headers in a nonstandard directory <include dir>
1577 CXX C++ compiler command
1578 CXXFLAGS C++ compiler flags
1579 CPP C preprocessor
1580 PKG_CONFIG path to pkg-config utility
1581 PKG_CONFIG_PATH
1582 directories to add to pkg-config's search path
1583 PKG_CONFIG_LIBDIR
1584 path overriding pkg-config's built-in search path
1585 CXXCPP C++ preprocessor
1586 JANSSON_CFLAGS
1587 C compiler flags for JANSSON, overriding pkg-config
1588 JANSSON_LIBS
1589 linker flags for JANSSON, overriding pkg-config
1590 YACC The `Yet Another Compiler Compiler' implementation to use.
1591 Defaults to the first program found out of: `bison -y', `byacc',
1592 `yacc'.
1593 YFLAGS The list of arguments that will be passed by default to $YACC.
1594 This script will default YFLAGS to the empty string to avoid a
1595 default value of `-d' given by some make applications.
1596 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1597 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1598
1599 Use these variables to override the choices made by `configure' or to help
1600 it to find libraries and programs with nonstandard names/locations.
1601
1602 Report bugs to the package provider.
1603 _ACEOF
1604 ac_status=$?
1605 fi
1606
1607 if test "$ac_init_help" = "recursive"; then
1608 # If there are subdirs, report their specific --help.
1609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1610 test -d "$ac_dir" ||
1611 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1612 continue
1613 ac_builddir=.
1614
1615 case "$ac_dir" in
1616 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 *)
1618 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1619 # A ".." for each directory in $ac_dir_suffix.
1620 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1621 case $ac_top_builddir_sub in
1622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1624 esac ;;
1625 esac
1626 ac_abs_top_builddir=$ac_pwd
1627 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1628 # for backward compatibility:
1629 ac_top_builddir=$ac_top_build_prefix
1630
1631 case $srcdir in
1632 .) # We are building in place.
1633 ac_srcdir=.
1634 ac_top_srcdir=$ac_top_builddir_sub
1635 ac_abs_top_srcdir=$ac_pwd ;;
1636 [\\/]* | ?:[\\/]* ) # Absolute name.
1637 ac_srcdir=$srcdir$ac_dir_suffix;
1638 ac_top_srcdir=$srcdir
1639 ac_abs_top_srcdir=$srcdir ;;
1640 *) # Relative name.
1641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642 ac_top_srcdir=$ac_top_build_prefix$srcdir
1643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1644 esac
1645 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1646
1647 cd "$ac_dir" || { ac_status=$?; continue; }
1648 # Check for guested configure.
1649 if test -f "$ac_srcdir/configure.gnu"; then
1650 echo &&
1651 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1652 elif test -f "$ac_srcdir/configure"; then
1653 echo &&
1654 $SHELL "$ac_srcdir/configure" --help=recursive
1655 else
1656 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1657 fi || ac_status=$?
1658 cd "$ac_pwd" || { ac_status=$?; break; }
1659 done
1660 fi
1661
1662 test -n "$ac_init_help" && exit $ac_status
1663 if $ac_init_version; then
1664 cat <<\_ACEOF
1665 ld configure 2.41.50
1666 generated by GNU Autoconf 2.69
1667
1668 Copyright (C) 2012 Free Software Foundation, Inc.
1669 This configure script is free software; the Free Software Foundation
1670 gives unlimited permission to copy, distribute and modify it.
1671 _ACEOF
1672 exit
1673 fi
1674
1675 ## ------------------------ ##
1676 ## Autoconf initialization. ##
1677 ## ------------------------ ##
1678
1679 # ac_fn_c_try_compile LINENO
1680 # --------------------------
1681 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_c_try_compile ()
1683 {
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext
1686 if { { ac_try="$ac_compile"
1687 case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_compile") 2>conftest.err
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1699 fi
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest.$ac_objext; then :
1705 ac_retval=0
1706 else
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1709
1710 ac_retval=1
1711 fi
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_compile
1716
1717 # ac_fn_cxx_try_compile LINENO
1718 # ----------------------------
1719 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1720 ac_fn_cxx_try_compile ()
1721 {
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 rm -f conftest.$ac_objext
1724 if { { ac_try="$ac_compile"
1725 case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_compile") 2>conftest.err
1732 ac_status=$?
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1737 fi
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && {
1740 test -z "$ac_cxx_werror_flag" ||
1741 test ! -s conftest.err
1742 } && test -s conftest.$ac_objext; then :
1743 ac_retval=0
1744 else
1745 $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1747
1748 ac_retval=1
1749 fi
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1752
1753 } # ac_fn_cxx_try_compile
1754
1755 # ac_fn_c_try_cpp LINENO
1756 # ----------------------
1757 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1758 ac_fn_c_try_cpp ()
1759 {
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_cpp conftest.$ac_ext"
1762 case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1769 ac_status=$?
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1774 fi
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } > conftest.i && {
1777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1778 test ! -s conftest.err
1779 }; then :
1780 ac_retval=0
1781 else
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1784
1785 ac_retval=1
1786 fi
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1789
1790 } # ac_fn_c_try_cpp
1791
1792 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1793 # -------------------------------------------------------
1794 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1795 # the include files in INCLUDES and setting the cache variable VAR
1796 # accordingly.
1797 ac_fn_c_check_header_mongrel ()
1798 {
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 if eval \${$3+:} false; then :
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if eval \${$3+:} false; then :
1804 $as_echo_n "(cached) " >&6
1805 fi
1806 eval ac_res=\$$3
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1809 else
1810 # Is the header compilable?
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1812 $as_echo_n "checking $2 usability... " >&6; }
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1815 $4
1816 #include <$2>
1817 _ACEOF
1818 if ac_fn_c_try_compile "$LINENO"; then :
1819 ac_header_compiler=yes
1820 else
1821 ac_header_compiler=no
1822 fi
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1825 $as_echo "$ac_header_compiler" >&6; }
1826
1827 # Is the header present?
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1829 $as_echo_n "checking $2 presence... " >&6; }
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1832 #include <$2>
1833 _ACEOF
1834 if ac_fn_c_try_cpp "$LINENO"; then :
1835 ac_header_preproc=yes
1836 else
1837 ac_header_preproc=no
1838 fi
1839 rm -f conftest.err conftest.i conftest.$ac_ext
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1841 $as_echo "$ac_header_preproc" >&6; }
1842
1843 # So? What about this header?
1844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1845 yes:no: )
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1847 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1849 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1850 ;;
1851 no:yes:* )
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1853 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1855 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1857 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1859 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862 ;;
1863 esac
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865 $as_echo_n "checking for $2... " >&6; }
1866 if eval \${$3+:} false; then :
1867 $as_echo_n "(cached) " >&6
1868 else
1869 eval "$3=\$ac_header_compiler"
1870 fi
1871 eval ac_res=\$$3
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1874 fi
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876
1877 } # ac_fn_c_check_header_mongrel
1878
1879 # ac_fn_c_try_run LINENO
1880 # ----------------------
1881 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1882 # that executables *can* be run.
1883 ac_fn_c_try_run ()
1884 {
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 if { { ac_try="$ac_link"
1887 case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_link") 2>&5
1894 ac_status=$?
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1897 { { case "(($ac_try" in
1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1900 esac
1901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902 $as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_try") 2>&5
1904 ac_status=$?
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; }; }; then :
1907 ac_retval=0
1908 else
1909 $as_echo "$as_me: program exited with status $ac_status" >&5
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1912
1913 ac_retval=$ac_status
1914 fi
1915 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 as_fn_set_status $ac_retval
1918
1919 } # ac_fn_c_try_run
1920
1921 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1922 # -------------------------------------------------------
1923 # Tests whether HEADER exists and can be compiled using the include files in
1924 # INCLUDES, setting the cache variable VAR accordingly.
1925 ac_fn_c_check_header_compile ()
1926 {
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if eval \${$3+:} false; then :
1931 $as_echo_n "(cached) " >&6
1932 else
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1935 $4
1936 #include <$2>
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939 eval "$3=yes"
1940 else
1941 eval "$3=no"
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 fi
1945 eval ac_res=\$$3
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949
1950 } # ac_fn_c_check_header_compile
1951
1952 # ac_fn_c_try_link LINENO
1953 # -----------------------
1954 # Try to link conftest.$ac_ext, and return whether this succeeded.
1955 ac_fn_c_try_link ()
1956 {
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 rm -f conftest.$ac_objext conftest$ac_exeext
1959 if { { ac_try="$ac_link"
1960 case "(($ac_try" in
1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962 *) ac_try_echo=$ac_try;;
1963 esac
1964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965 $as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_link") 2>conftest.err
1967 ac_status=$?
1968 if test -s conftest.err; then
1969 grep -v '^ *+' conftest.err >conftest.er1
1970 cat conftest.er1 >&5
1971 mv -f conftest.er1 conftest.err
1972 fi
1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974 test $ac_status = 0; } && {
1975 test -z "$ac_c_werror_flag" ||
1976 test ! -s conftest.err
1977 } && test -s conftest$ac_exeext && {
1978 test "$cross_compiling" = yes ||
1979 test -x conftest$ac_exeext
1980 }; then :
1981 ac_retval=0
1982 else
1983 $as_echo "$as_me: failed program was:" >&5
1984 sed 's/^/| /' conftest.$ac_ext >&5
1985
1986 ac_retval=1
1987 fi
1988 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1989 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1990 # interfere with the next link command; also delete a directory that is
1991 # left behind by Apple's compiler. We do this before executing the actions.
1992 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994 as_fn_set_status $ac_retval
1995
1996 } # ac_fn_c_try_link
1997
1998 # ac_fn_c_check_func LINENO FUNC VAR
1999 # ----------------------------------
2000 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2001 ac_fn_c_check_func ()
2002 {
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005 $as_echo_n "checking for $2... " >&6; }
2006 if eval \${$3+:} false; then :
2007 $as_echo_n "(cached) " >&6
2008 else
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2011 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2013 #define $2 innocuous_$2
2014
2015 /* System header to define __stub macros and hopefully few prototypes,
2016 which can conflict with char $2 (); below.
2017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2018 <limits.h> exists even on freestanding compilers. */
2019
2020 #ifdef __STDC__
2021 # include <limits.h>
2022 #else
2023 # include <assert.h>
2024 #endif
2025
2026 #undef $2
2027
2028 /* Override any GCC internal prototype to avoid an error.
2029 Use char because int might match the return type of a GCC
2030 builtin and then its argument prototype would still apply. */
2031 #ifdef __cplusplus
2032 extern "C"
2033 #endif
2034 char $2 ();
2035 /* The GNU C library defines this for functions which it implements
2036 to always fail with ENOSYS. Some functions are actually named
2037 something starting with __ and the normal name is an alias. */
2038 #if defined __stub_$2 || defined __stub___$2
2039 choke me
2040 #endif
2041
2042 int
2043 main ()
2044 {
2045 return $2 ();
2046 ;
2047 return 0;
2048 }
2049 _ACEOF
2050 if ac_fn_c_try_link "$LINENO"; then :
2051 eval "$3=yes"
2052 else
2053 eval "$3=no"
2054 fi
2055 rm -f core conftest.err conftest.$ac_objext \
2056 conftest$ac_exeext conftest.$ac_ext
2057 fi
2058 eval ac_res=\$$3
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060 $as_echo "$ac_res" >&6; }
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062
2063 } # ac_fn_c_check_func
2064
2065 # ac_fn_cxx_try_cpp LINENO
2066 # ------------------------
2067 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2068 ac_fn_cxx_try_cpp ()
2069 {
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 if { { ac_try="$ac_cpp conftest.$ac_ext"
2072 case "(($ac_try" in
2073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2074 *) ac_try_echo=$ac_try;;
2075 esac
2076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2077 $as_echo "$ac_try_echo"; } >&5
2078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2079 ac_status=$?
2080 if test -s conftest.err; then
2081 grep -v '^ *+' conftest.err >conftest.er1
2082 cat conftest.er1 >&5
2083 mv -f conftest.er1 conftest.err
2084 fi
2085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2086 test $ac_status = 0; } > conftest.i && {
2087 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2088 test ! -s conftest.err
2089 }; then :
2090 ac_retval=0
2091 else
2092 $as_echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2094
2095 ac_retval=1
2096 fi
2097 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098 as_fn_set_status $ac_retval
2099
2100 } # ac_fn_cxx_try_cpp
2101
2102 # ac_fn_cxx_try_link LINENO
2103 # -------------------------
2104 # Try to link conftest.$ac_ext, and return whether this succeeded.
2105 ac_fn_cxx_try_link ()
2106 {
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 rm -f conftest.$ac_objext conftest$ac_exeext
2109 if { { ac_try="$ac_link"
2110 case "(($ac_try" in
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2113 esac
2114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2115 $as_echo "$ac_try_echo"; } >&5
2116 (eval "$ac_link") 2>conftest.err
2117 ac_status=$?
2118 if test -s conftest.err; then
2119 grep -v '^ *+' conftest.err >conftest.er1
2120 cat conftest.er1 >&5
2121 mv -f conftest.er1 conftest.err
2122 fi
2123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2124 test $ac_status = 0; } && {
2125 test -z "$ac_cxx_werror_flag" ||
2126 test ! -s conftest.err
2127 } && test -s conftest$ac_exeext && {
2128 test "$cross_compiling" = yes ||
2129 test -x conftest$ac_exeext
2130 }; then :
2131 ac_retval=0
2132 else
2133 $as_echo "$as_me: failed program was:" >&5
2134 sed 's/^/| /' conftest.$ac_ext >&5
2135
2136 ac_retval=1
2137 fi
2138 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2139 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2140 # interfere with the next link command; also delete a directory that is
2141 # left behind by Apple's compiler. We do this before executing the actions.
2142 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2143 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2144 as_fn_set_status $ac_retval
2145
2146 } # ac_fn_cxx_try_link
2147
2148 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2149 # --------------------------------------------
2150 # Tries to find the compile-time value of EXPR in a program that includes
2151 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2152 # computed
2153 ac_fn_c_compute_int ()
2154 {
2155 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156 if test "$cross_compiling" = yes; then
2157 # Depending upon the size, compute the lo and hi bounds.
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2160 $4
2161 int
2162 main ()
2163 {
2164 static int test_array [1 - 2 * !(($2) >= 0)];
2165 test_array [0] = 0;
2166 return test_array [0];
2167
2168 ;
2169 return 0;
2170 }
2171 _ACEOF
2172 if ac_fn_c_try_compile "$LINENO"; then :
2173 ac_lo=0 ac_mid=0
2174 while :; do
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2177 $4
2178 int
2179 main ()
2180 {
2181 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2182 test_array [0] = 0;
2183 return test_array [0];
2184
2185 ;
2186 return 0;
2187 }
2188 _ACEOF
2189 if ac_fn_c_try_compile "$LINENO"; then :
2190 ac_hi=$ac_mid; break
2191 else
2192 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2193 if test $ac_lo -le $ac_mid; then
2194 ac_lo= ac_hi=
2195 break
2196 fi
2197 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2198 fi
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200 done
2201 else
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2204 $4
2205 int
2206 main ()
2207 {
2208 static int test_array [1 - 2 * !(($2) < 0)];
2209 test_array [0] = 0;
2210 return test_array [0];
2211
2212 ;
2213 return 0;
2214 }
2215 _ACEOF
2216 if ac_fn_c_try_compile "$LINENO"; then :
2217 ac_hi=-1 ac_mid=-1
2218 while :; do
2219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220 /* end confdefs.h. */
2221 $4
2222 int
2223 main ()
2224 {
2225 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2226 test_array [0] = 0;
2227 return test_array [0];
2228
2229 ;
2230 return 0;
2231 }
2232 _ACEOF
2233 if ac_fn_c_try_compile "$LINENO"; then :
2234 ac_lo=$ac_mid; break
2235 else
2236 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2237 if test $ac_mid -le $ac_hi; then
2238 ac_lo= ac_hi=
2239 break
2240 fi
2241 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2242 fi
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 done
2245 else
2246 ac_lo= ac_hi=
2247 fi
2248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 fi
2250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251 # Binary search between lo and hi bounds.
2252 while test "x$ac_lo" != "x$ac_hi"; do
2253 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2256 $4
2257 int
2258 main ()
2259 {
2260 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2261 test_array [0] = 0;
2262 return test_array [0];
2263
2264 ;
2265 return 0;
2266 }
2267 _ACEOF
2268 if ac_fn_c_try_compile "$LINENO"; then :
2269 ac_hi=$ac_mid
2270 else
2271 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2272 fi
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 done
2275 case $ac_lo in #((
2276 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2277 '') ac_retval=1 ;;
2278 esac
2279 else
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2282 $4
2283 static long int longval () { return $2; }
2284 static unsigned long int ulongval () { return $2; }
2285 #include <stdio.h>
2286 #include <stdlib.h>
2287 int
2288 main ()
2289 {
2290
2291 FILE *f = fopen ("conftest.val", "w");
2292 if (! f)
2293 return 1;
2294 if (($2) < 0)
2295 {
2296 long int i = longval ();
2297 if (i != ($2))
2298 return 1;
2299 fprintf (f, "%ld", i);
2300 }
2301 else
2302 {
2303 unsigned long int i = ulongval ();
2304 if (i != ($2))
2305 return 1;
2306 fprintf (f, "%lu", i);
2307 }
2308 /* Do not output a trailing newline, as this causes \r\n confusion
2309 on some platforms. */
2310 return ferror (f) || fclose (f) != 0;
2311
2312 ;
2313 return 0;
2314 }
2315 _ACEOF
2316 if ac_fn_c_try_run "$LINENO"; then :
2317 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2318 else
2319 ac_retval=1
2320 fi
2321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2322 conftest.$ac_objext conftest.beam conftest.$ac_ext
2323 rm -f conftest.val
2324
2325 fi
2326 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2327 as_fn_set_status $ac_retval
2328
2329 } # ac_fn_c_compute_int
2330
2331 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2332 # ---------------------------------------------
2333 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2334 # accordingly.
2335 ac_fn_c_check_decl ()
2336 {
2337 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2338 as_decl_name=`echo $2|sed 's/ *(.*//'`
2339 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2341 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2342 if eval \${$3+:} false; then :
2343 $as_echo_n "(cached) " >&6
2344 else
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h. */
2347 $4
2348 int
2349 main ()
2350 {
2351 #ifndef $as_decl_name
2352 #ifdef __cplusplus
2353 (void) $as_decl_use;
2354 #else
2355 (void) $as_decl_name;
2356 #endif
2357 #endif
2358
2359 ;
2360 return 0;
2361 }
2362 _ACEOF
2363 if ac_fn_c_try_compile "$LINENO"; then :
2364 eval "$3=yes"
2365 else
2366 eval "$3=no"
2367 fi
2368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2369 fi
2370 eval ac_res=\$$3
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2372 $as_echo "$ac_res" >&6; }
2373 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2374
2375 } # ac_fn_c_check_decl
2376 cat >config.log <<_ACEOF
2377 This file contains any messages produced by compilers while
2378 running configure, to aid debugging if configure makes a mistake.
2379
2380 It was created by ld $as_me 2.41.50, which was
2381 generated by GNU Autoconf 2.69. Invocation command line was
2382
2383 $ $0 $@
2384
2385 _ACEOF
2386 exec 5>>config.log
2387 {
2388 cat <<_ASUNAME
2389 ## --------- ##
2390 ## Platform. ##
2391 ## --------- ##
2392
2393 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2394 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2395 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2396 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2397 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2398
2399 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2400 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2401
2402 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2403 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2404 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2405 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2406 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2407 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2408 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2409
2410 _ASUNAME
2411
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 for as_dir in $PATH
2414 do
2415 IFS=$as_save_IFS
2416 test -z "$as_dir" && as_dir=.
2417 $as_echo "PATH: $as_dir"
2418 done
2419 IFS=$as_save_IFS
2420
2421 } >&5
2422
2423 cat >&5 <<_ACEOF
2424
2425
2426 ## ----------- ##
2427 ## Core tests. ##
2428 ## ----------- ##
2429
2430 _ACEOF
2431
2432
2433 # Keep a trace of the command line.
2434 # Strip out --no-create and --no-recursion so they do not pile up.
2435 # Strip out --silent because we don't want to record it for future runs.
2436 # Also quote any args containing shell meta-characters.
2437 # Make two passes to allow for proper duplicate-argument suppression.
2438 ac_configure_args=
2439 ac_configure_args0=
2440 ac_configure_args1=
2441 ac_must_keep_next=false
2442 for ac_pass in 1 2
2443 do
2444 for ac_arg
2445 do
2446 case $ac_arg in
2447 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2448 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2449 | -silent | --silent | --silen | --sile | --sil)
2450 continue ;;
2451 *\'*)
2452 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2453 esac
2454 case $ac_pass in
2455 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2456 2)
2457 as_fn_append ac_configure_args1 " '$ac_arg'"
2458 if test $ac_must_keep_next = true; then
2459 ac_must_keep_next=false # Got value, back to normal.
2460 else
2461 case $ac_arg in
2462 *=* | --config-cache | -C | -disable-* | --disable-* \
2463 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2464 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2465 | -with-* | --with-* | -without-* | --without-* | --x)
2466 case "$ac_configure_args0 " in
2467 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2468 esac
2469 ;;
2470 -* ) ac_must_keep_next=true ;;
2471 esac
2472 fi
2473 as_fn_append ac_configure_args " '$ac_arg'"
2474 ;;
2475 esac
2476 done
2477 done
2478 { ac_configure_args0=; unset ac_configure_args0;}
2479 { ac_configure_args1=; unset ac_configure_args1;}
2480
2481 # When interrupted or exit'd, cleanup temporary files, and complete
2482 # config.log. We remove comments because anyway the quotes in there
2483 # would cause problems or look ugly.
2484 # WARNING: Use '\'' to represent an apostrophe within the trap.
2485 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2486 trap 'exit_status=$?
2487 # Save into config.log some information that might help in debugging.
2488 {
2489 echo
2490
2491 $as_echo "## ---------------- ##
2492 ## Cache variables. ##
2493 ## ---------------- ##"
2494 echo
2495 # The following way of writing the cache mishandles newlines in values,
2496 (
2497 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2498 eval ac_val=\$$ac_var
2499 case $ac_val in #(
2500 *${as_nl}*)
2501 case $ac_var in #(
2502 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2503 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2504 esac
2505 case $ac_var in #(
2506 _ | IFS | as_nl) ;; #(
2507 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2508 *) { eval $ac_var=; unset $ac_var;} ;;
2509 esac ;;
2510 esac
2511 done
2512 (set) 2>&1 |
2513 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2514 *${as_nl}ac_space=\ *)
2515 sed -n \
2516 "s/'\''/'\''\\\\'\'''\''/g;
2517 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2518 ;; #(
2519 *)
2520 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2521 ;;
2522 esac |
2523 sort
2524 )
2525 echo
2526
2527 $as_echo "## ----------------- ##
2528 ## Output variables. ##
2529 ## ----------------- ##"
2530 echo
2531 for ac_var in $ac_subst_vars
2532 do
2533 eval ac_val=\$$ac_var
2534 case $ac_val in
2535 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2536 esac
2537 $as_echo "$ac_var='\''$ac_val'\''"
2538 done | sort
2539 echo
2540
2541 if test -n "$ac_subst_files"; then
2542 $as_echo "## ------------------- ##
2543 ## File substitutions. ##
2544 ## ------------------- ##"
2545 echo
2546 for ac_var in $ac_subst_files
2547 do
2548 eval ac_val=\$$ac_var
2549 case $ac_val in
2550 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2551 esac
2552 $as_echo "$ac_var='\''$ac_val'\''"
2553 done | sort
2554 echo
2555 fi
2556
2557 if test -s confdefs.h; then
2558 $as_echo "## ----------- ##
2559 ## confdefs.h. ##
2560 ## ----------- ##"
2561 echo
2562 cat confdefs.h
2563 echo
2564 fi
2565 test "$ac_signal" != 0 &&
2566 $as_echo "$as_me: caught signal $ac_signal"
2567 $as_echo "$as_me: exit $exit_status"
2568 } >&5
2569 rm -f core *.core core.conftest.* &&
2570 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2571 exit $exit_status
2572 ' 0
2573 for ac_signal in 1 2 13 15; do
2574 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2575 done
2576 ac_signal=0
2577
2578 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2579 rm -f -r conftest* confdefs.h
2580
2581 $as_echo "/* confdefs.h */" > confdefs.h
2582
2583 # Predefined preprocessor variables.
2584
2585 cat >>confdefs.h <<_ACEOF
2586 #define PACKAGE_NAME "$PACKAGE_NAME"
2587 _ACEOF
2588
2589 cat >>confdefs.h <<_ACEOF
2590 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2591 _ACEOF
2592
2593 cat >>confdefs.h <<_ACEOF
2594 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2595 _ACEOF
2596
2597 cat >>confdefs.h <<_ACEOF
2598 #define PACKAGE_STRING "$PACKAGE_STRING"
2599 _ACEOF
2600
2601 cat >>confdefs.h <<_ACEOF
2602 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2603 _ACEOF
2604
2605 cat >>confdefs.h <<_ACEOF
2606 #define PACKAGE_URL "$PACKAGE_URL"
2607 _ACEOF
2608
2609
2610 # Let the site file select an alternate cache file if it wants to.
2611 # Prefer an explicitly selected file to automatically selected ones.
2612 ac_site_file1=NONE
2613 ac_site_file2=NONE
2614 if test -n "$CONFIG_SITE"; then
2615 # We do not want a PATH search for config.site.
2616 case $CONFIG_SITE in #((
2617 -*) ac_site_file1=./$CONFIG_SITE;;
2618 */*) ac_site_file1=$CONFIG_SITE;;
2619 *) ac_site_file1=./$CONFIG_SITE;;
2620 esac
2621 elif test "x$prefix" != xNONE; then
2622 ac_site_file1=$prefix/share/config.site
2623 ac_site_file2=$prefix/etc/config.site
2624 else
2625 ac_site_file1=$ac_default_prefix/share/config.site
2626 ac_site_file2=$ac_default_prefix/etc/config.site
2627 fi
2628 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2629 do
2630 test "x$ac_site_file" = xNONE && continue
2631 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2633 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2634 sed 's/^/| /' "$ac_site_file" >&5
2635 . "$ac_site_file" \
2636 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2638 as_fn_error $? "failed to load site script $ac_site_file
2639 See \`config.log' for more details" "$LINENO" 5; }
2640 fi
2641 done
2642
2643 if test -r "$cache_file"; then
2644 # Some versions of bash will fail to source /dev/null (special files
2645 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2646 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2648 $as_echo "$as_me: loading cache $cache_file" >&6;}
2649 case $cache_file in
2650 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2651 *) . "./$cache_file";;
2652 esac
2653 fi
2654 else
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2656 $as_echo "$as_me: creating cache $cache_file" >&6;}
2657 >$cache_file
2658 fi
2659
2660 as_fn_append ac_header_list " stdlib.h"
2661 as_fn_append ac_header_list " unistd.h"
2662 as_fn_append ac_header_list " sys/param.h"
2663 # Check that the precious variables saved in the cache have kept the same
2664 # value.
2665 ac_cache_corrupted=false
2666 for ac_var in $ac_precious_vars; do
2667 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2668 eval ac_new_set=\$ac_env_${ac_var}_set
2669 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2670 eval ac_new_val=\$ac_env_${ac_var}_value
2671 case $ac_old_set,$ac_new_set in
2672 set,)
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2674 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2675 ac_cache_corrupted=: ;;
2676 ,set)
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2678 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2679 ac_cache_corrupted=: ;;
2680 ,);;
2681 *)
2682 if test "x$ac_old_val" != "x$ac_new_val"; then
2683 # differences in whitespace do not lead to failure.
2684 ac_old_val_w=`echo x $ac_old_val`
2685 ac_new_val_w=`echo x $ac_new_val`
2686 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2688 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2689 ac_cache_corrupted=:
2690 else
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2692 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2693 eval $ac_var=\$ac_old_val
2694 fi
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2696 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2698 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2699 fi;;
2700 esac
2701 # Pass precious variables to config.status.
2702 if test "$ac_new_set" = set; then
2703 case $ac_new_val in
2704 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2705 *) ac_arg=$ac_var=$ac_new_val ;;
2706 esac
2707 case " $ac_configure_args " in
2708 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2709 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2710 esac
2711 fi
2712 done
2713 if $ac_cache_corrupted; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2717 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2718 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2719 fi
2720 ## -------------------- ##
2721 ## Main body of script. ##
2722 ## -------------------- ##
2723
2724 ac_ext=c
2725 ac_cpp='$CPP $CPPFLAGS'
2726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2729
2730
2731
2732
2733
2734
2735
2736 ac_aux_dir=
2737 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2738 if test -f "$ac_dir/install-sh"; then
2739 ac_aux_dir=$ac_dir
2740 ac_install_sh="$ac_aux_dir/install-sh -c"
2741 break
2742 elif test -f "$ac_dir/install.sh"; then
2743 ac_aux_dir=$ac_dir
2744 ac_install_sh="$ac_aux_dir/install.sh -c"
2745 break
2746 elif test -f "$ac_dir/shtool"; then
2747 ac_aux_dir=$ac_dir
2748 ac_install_sh="$ac_aux_dir/shtool install -c"
2749 break
2750 fi
2751 done
2752 if test -z "$ac_aux_dir"; then
2753 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2754 fi
2755
2756 # These three variables are undocumented and unsupported,
2757 # and are intended to be withdrawn in a future Autoconf release.
2758 # They can cause serious problems if a builder's source tree is in a directory
2759 # whose full name contains unusual characters.
2760 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2761 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2762 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2763
2764
2765 # Make sure we can run config.sub.
2766 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2767 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2768
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2770 $as_echo_n "checking build system type... " >&6; }
2771 if ${ac_cv_build+:} false; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 ac_build_alias=$build_alias
2775 test "x$ac_build_alias" = x &&
2776 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2777 test "x$ac_build_alias" = x &&
2778 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2779 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2780 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2781
2782 fi
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2784 $as_echo "$ac_cv_build" >&6; }
2785 case $ac_cv_build in
2786 *-*-*) ;;
2787 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2788 esac
2789 build=$ac_cv_build
2790 ac_save_IFS=$IFS; IFS='-'
2791 set x $ac_cv_build
2792 shift
2793 build_cpu=$1
2794 build_vendor=$2
2795 shift; shift
2796 # Remember, the first character of IFS is used to create $*,
2797 # except with old shells:
2798 build_os=$*
2799 IFS=$ac_save_IFS
2800 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2801
2802
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2804 $as_echo_n "checking host system type... " >&6; }
2805 if ${ac_cv_host+:} false; then :
2806 $as_echo_n "(cached) " >&6
2807 else
2808 if test "x$host_alias" = x; then
2809 ac_cv_host=$ac_cv_build
2810 else
2811 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2812 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2813 fi
2814
2815 fi
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2817 $as_echo "$ac_cv_host" >&6; }
2818 case $ac_cv_host in
2819 *-*-*) ;;
2820 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2821 esac
2822 host=$ac_cv_host
2823 ac_save_IFS=$IFS; IFS='-'
2824 set x $ac_cv_host
2825 shift
2826 host_cpu=$1
2827 host_vendor=$2
2828 shift; shift
2829 # Remember, the first character of IFS is used to create $*,
2830 # except with old shells:
2831 host_os=$*
2832 IFS=$ac_save_IFS
2833 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2834
2835
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2837 $as_echo_n "checking target system type... " >&6; }
2838 if ${ac_cv_target+:} false; then :
2839 $as_echo_n "(cached) " >&6
2840 else
2841 if test "x$target_alias" = x; then
2842 ac_cv_target=$ac_cv_host
2843 else
2844 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2845 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2846 fi
2847
2848 fi
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2850 $as_echo "$ac_cv_target" >&6; }
2851 case $ac_cv_target in
2852 *-*-*) ;;
2853 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2854 esac
2855 target=$ac_cv_target
2856 ac_save_IFS=$IFS; IFS='-'
2857 set x $ac_cv_target
2858 shift
2859 target_cpu=$1
2860 target_vendor=$2
2861 shift; shift
2862 # Remember, the first character of IFS is used to create $*,
2863 # except with old shells:
2864 target_os=$*
2865 IFS=$ac_save_IFS
2866 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2867
2868
2869 # The aliases save the names the user supplied, while $host etc.
2870 # will get canonicalized.
2871 test -n "$target_alias" &&
2872 test "$program_prefix$program_suffix$program_transform_name" = \
2873 NONENONEs,x,x, &&
2874 program_prefix=${target_alias}-
2875
2876
2877 am__api_version='1.15'
2878
2879 # Find a good install program. We prefer a C program (faster),
2880 # so one script is as good as another. But avoid the broken or
2881 # incompatible versions:
2882 # SysV /etc/install, /usr/sbin/install
2883 # SunOS /usr/etc/install
2884 # IRIX /sbin/install
2885 # AIX /bin/install
2886 # AmigaOS /C/install, which installs bootblocks on floppy discs
2887 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2888 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2889 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2890 # OS/2's system install, which has a completely different semantic
2891 # ./install, which can be erroneously created by make from ./install.sh.
2892 # Reject install programs that cannot install multiple files.
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2894 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2895 if test -z "$INSTALL"; then
2896 if ${ac_cv_path_install+:} false; then :
2897 $as_echo_n "(cached) " >&6
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 # Account for people who put trailing slashes in PATH elements.
2905 case $as_dir/ in #((
2906 ./ | .// | /[cC]/* | \
2907 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2908 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2909 /usr/ucb/* ) ;;
2910 *)
2911 # OSF1 and SCO ODT 3.0 have their own names for install.
2912 # Don't use installbsd from OSF since it installs stuff as root
2913 # by default.
2914 for ac_prog in ginstall scoinst install; do
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2917 if test $ac_prog = install &&
2918 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2919 # AIX install. It has an incompatible calling convention.
2920 :
2921 elif test $ac_prog = install &&
2922 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2923 # program-specific install script used by HP pwplus--don't use.
2924 :
2925 else
2926 rm -rf conftest.one conftest.two conftest.dir
2927 echo one > conftest.one
2928 echo two > conftest.two
2929 mkdir conftest.dir
2930 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2931 test -s conftest.one && test -s conftest.two &&
2932 test -s conftest.dir/conftest.one &&
2933 test -s conftest.dir/conftest.two
2934 then
2935 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2936 break 3
2937 fi
2938 fi
2939 fi
2940 done
2941 done
2942 ;;
2943 esac
2944
2945 done
2946 IFS=$as_save_IFS
2947
2948 rm -rf conftest.one conftest.two conftest.dir
2949
2950 fi
2951 if test "${ac_cv_path_install+set}" = set; then
2952 INSTALL=$ac_cv_path_install
2953 else
2954 # As a last resort, use the slow shell script. Don't cache a
2955 # value for INSTALL within a source directory, because that will
2956 # break other packages using the cache if that directory is
2957 # removed, or if the value is a relative name.
2958 INSTALL=$ac_install_sh
2959 fi
2960 fi
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2962 $as_echo "$INSTALL" >&6; }
2963
2964 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2965 # It thinks the first close brace ends the variable substitution.
2966 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2967
2968 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2969
2970 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2971
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2973 $as_echo_n "checking whether build environment is sane... " >&6; }
2974 # Reject unsafe characters in $srcdir or the absolute working directory
2975 # name. Accept space and tab only in the latter.
2976 am_lf='
2977 '
2978 case `pwd` in
2979 *[\\\"\#\$\&\'\`$am_lf]*)
2980 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2981 esac
2982 case $srcdir in
2983 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2984 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2985 esac
2986
2987 # Do 'set' in a subshell so we don't clobber the current shell's
2988 # arguments. Must try -L first in case configure is actually a
2989 # symlink; some systems play weird games with the mod time of symlinks
2990 # (eg FreeBSD returns the mod time of the symlink's containing
2991 # directory).
2992 if (
2993 am_has_slept=no
2994 for am_try in 1 2; do
2995 echo "timestamp, slept: $am_has_slept" > conftest.file
2996 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2997 if test "$*" = "X"; then
2998 # -L didn't work.
2999 set X `ls -t "$srcdir/configure" conftest.file`
3000 fi
3001 if test "$*" != "X $srcdir/configure conftest.file" \
3002 && test "$*" != "X conftest.file $srcdir/configure"; then
3003
3004 # If neither matched, then we have a broken ls. This can happen
3005 # if, for instance, CONFIG_SHELL is bash and it inherits a
3006 # broken ls alias from the environment. This has actually
3007 # happened. Such a system could not be considered "sane".
3008 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3009 alias in your environment" "$LINENO" 5
3010 fi
3011 if test "$2" = conftest.file || test $am_try -eq 2; then
3012 break
3013 fi
3014 # Just in case.
3015 sleep 1
3016 am_has_slept=yes
3017 done
3018 test "$2" = conftest.file
3019 )
3020 then
3021 # Ok.
3022 :
3023 else
3024 as_fn_error $? "newly created file is older than distributed files!
3025 Check your system clock" "$LINENO" 5
3026 fi
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3028 $as_echo "yes" >&6; }
3029 # If we didn't sleep, we still need to ensure time stamps of config.status and
3030 # generated files are strictly newer.
3031 am_sleep_pid=
3032 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3033 ( sleep 1 ) &
3034 am_sleep_pid=$!
3035 fi
3036
3037 rm -f conftest.file
3038
3039 test "$program_prefix" != NONE &&
3040 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3041 # Use a double $ so make ignores it.
3042 test "$program_suffix" != NONE &&
3043 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3044 # Double any \ or $.
3045 # By default was `s,x,x', remove it if useless.
3046 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3047 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3048
3049 # Expand $ac_aux_dir to an absolute path.
3050 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3051
3052 if test x"${MISSING+set}" != xset; then
3053 case $am_aux_dir in
3054 *\ * | *\ *)
3055 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3056 *)
3057 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3058 esac
3059 fi
3060 # Use eval to expand $SHELL
3061 if eval "$MISSING --is-lightweight"; then
3062 am_missing_run="$MISSING "
3063 else
3064 am_missing_run=
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3066 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3067 fi
3068
3069 if test x"${install_sh+set}" != xset; then
3070 case $am_aux_dir in
3071 *\ * | *\ *)
3072 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3073 *)
3074 install_sh="\${SHELL} $am_aux_dir/install-sh"
3075 esac
3076 fi
3077
3078 # Installed binaries are usually stripped using 'strip' when the user
3079 # run "make install-strip". However 'strip' might not be the right
3080 # tool to use in cross-compilation environments, therefore Automake
3081 # will honor the 'STRIP' environment variable to overrule this program.
3082 if test "$cross_compiling" != no; then
3083 if test -n "$ac_tool_prefix"; then
3084 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3085 set dummy ${ac_tool_prefix}strip; ac_word=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if ${ac_cv_prog_STRIP+:} false; then :
3089 $as_echo_n "(cached) " >&6
3090 else
3091 if test -n "$STRIP"; then
3092 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3093 else
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH
3096 do
3097 IFS=$as_save_IFS
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 break 2
3104 fi
3105 done
3106 done
3107 IFS=$as_save_IFS
3108
3109 fi
3110 fi
3111 STRIP=$ac_cv_prog_STRIP
3112 if test -n "$STRIP"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3114 $as_echo "$STRIP" >&6; }
3115 else
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3118 fi
3119
3120
3121 fi
3122 if test -z "$ac_cv_prog_STRIP"; then
3123 ac_ct_STRIP=$STRIP
3124 # Extract the first word of "strip", so it can be a program name with args.
3125 set dummy strip; ac_word=$2
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127 $as_echo_n "checking for $ac_word... " >&6; }
3128 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3129 $as_echo_n "(cached) " >&6
3130 else
3131 if test -n "$ac_ct_STRIP"; then
3132 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3133 else
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 for as_dir in $PATH
3136 do
3137 IFS=$as_save_IFS
3138 test -z "$as_dir" && as_dir=.
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141 ac_cv_prog_ac_ct_STRIP="strip"
3142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 break 2
3144 fi
3145 done
3146 done
3147 IFS=$as_save_IFS
3148
3149 fi
3150 fi
3151 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3152 if test -n "$ac_ct_STRIP"; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3154 $as_echo "$ac_ct_STRIP" >&6; }
3155 else
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157 $as_echo "no" >&6; }
3158 fi
3159
3160 if test "x$ac_ct_STRIP" = x; then
3161 STRIP=":"
3162 else
3163 case $cross_compiling:$ac_tool_warned in
3164 yes:)
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3167 ac_tool_warned=yes ;;
3168 esac
3169 STRIP=$ac_ct_STRIP
3170 fi
3171 else
3172 STRIP="$ac_cv_prog_STRIP"
3173 fi
3174
3175 fi
3176 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3177
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3179 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3180 if test -z "$MKDIR_P"; then
3181 if ${ac_cv_path_mkdir+:} false; then :
3182 $as_echo_n "(cached) " >&6
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3186 do
3187 IFS=$as_save_IFS
3188 test -z "$as_dir" && as_dir=.
3189 for ac_prog in mkdir gmkdir; do
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3192 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3193 'mkdir (GNU coreutils) '* | \
3194 'mkdir (coreutils) '* | \
3195 'mkdir (fileutils) '4.1*)
3196 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3197 break 3;;
3198 esac
3199 done
3200 done
3201 done
3202 IFS=$as_save_IFS
3203
3204 fi
3205
3206 test -d ./--version && rmdir ./--version
3207 if test "${ac_cv_path_mkdir+set}" = set; then
3208 MKDIR_P="$ac_cv_path_mkdir -p"
3209 else
3210 # As a last resort, use the slow shell script. Don't cache a
3211 # value for MKDIR_P within a source directory, because that will
3212 # break other packages using the cache if that directory is
3213 # removed, or if the value is a relative name.
3214 MKDIR_P="$ac_install_sh -d"
3215 fi
3216 fi
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3218 $as_echo "$MKDIR_P" >&6; }
3219
3220 for ac_prog in gawk mawk nawk awk
3221 do
3222 # Extract the first word of "$ac_prog", so it can be a program name with args.
3223 set dummy $ac_prog; ac_word=$2
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3225 $as_echo_n "checking for $ac_word... " >&6; }
3226 if ${ac_cv_prog_AWK+:} false; then :
3227 $as_echo_n "(cached) " >&6
3228 else
3229 if test -n "$AWK"; then
3230 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3231 else
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH
3234 do
3235 IFS=$as_save_IFS
3236 test -z "$as_dir" && as_dir=.
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3239 ac_cv_prog_AWK="$ac_prog"
3240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 break 2
3242 fi
3243 done
3244 done
3245 IFS=$as_save_IFS
3246
3247 fi
3248 fi
3249 AWK=$ac_cv_prog_AWK
3250 if test -n "$AWK"; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3252 $as_echo "$AWK" >&6; }
3253 else
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3256 fi
3257
3258
3259 test -n "$AWK" && break
3260 done
3261
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3263 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3264 set x ${MAKE-make}
3265 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3266 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3267 $as_echo_n "(cached) " >&6
3268 else
3269 cat >conftest.make <<\_ACEOF
3270 SHELL = /bin/sh
3271 all:
3272 @echo '@@@%%%=$(MAKE)=@@@%%%'
3273 _ACEOF
3274 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3275 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3276 *@@@%%%=?*=@@@%%%*)
3277 eval ac_cv_prog_make_${ac_make}_set=yes;;
3278 *)
3279 eval ac_cv_prog_make_${ac_make}_set=no;;
3280 esac
3281 rm -f conftest.make
3282 fi
3283 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3285 $as_echo "yes" >&6; }
3286 SET_MAKE=
3287 else
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3290 SET_MAKE="MAKE=${MAKE-make}"
3291 fi
3292
3293 rm -rf .tst 2>/dev/null
3294 mkdir .tst 2>/dev/null
3295 if test -d .tst; then
3296 am__leading_dot=.
3297 else
3298 am__leading_dot=_
3299 fi
3300 rmdir .tst 2>/dev/null
3301
3302 # Check whether --enable-silent-rules was given.
3303 if test "${enable_silent_rules+set}" = set; then :
3304 enableval=$enable_silent_rules;
3305 fi
3306
3307 case $enable_silent_rules in # (((
3308 yes) AM_DEFAULT_VERBOSITY=0;;
3309 no) AM_DEFAULT_VERBOSITY=1;;
3310 *) AM_DEFAULT_VERBOSITY=1;;
3311 esac
3312 am_make=${MAKE-make}
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3314 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3315 if ${am_cv_make_support_nested_variables+:} false; then :
3316 $as_echo_n "(cached) " >&6
3317 else
3318 if $as_echo 'TRUE=$(BAR$(V))
3319 BAR0=false
3320 BAR1=true
3321 V=1
3322 am__doit:
3323 @$(TRUE)
3324 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3325 am_cv_make_support_nested_variables=yes
3326 else
3327 am_cv_make_support_nested_variables=no
3328 fi
3329 fi
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3331 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3332 if test $am_cv_make_support_nested_variables = yes; then
3333 AM_V='$(V)'
3334 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3335 else
3336 AM_V=$AM_DEFAULT_VERBOSITY
3337 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3338 fi
3339 AM_BACKSLASH='\'
3340
3341 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3342 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3343 # is not polluted with repeated "-I."
3344 am__isrc=' -I$(srcdir)'
3345 # test to see if srcdir already configured
3346 if test -f $srcdir/config.status; then
3347 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3348 fi
3349 fi
3350
3351 # test whether we have cygpath
3352 if test -z "$CYGPATH_W"; then
3353 if (cygpath --version) >/dev/null 2>/dev/null; then
3354 CYGPATH_W='cygpath -w'
3355 else
3356 CYGPATH_W=echo
3357 fi
3358 fi
3359
3360
3361 # Define the identity of the package.
3362 PACKAGE='ld'
3363 VERSION='2.41.50'
3364
3365
3366 cat >>confdefs.h <<_ACEOF
3367 #define PACKAGE "$PACKAGE"
3368 _ACEOF
3369
3370
3371 cat >>confdefs.h <<_ACEOF
3372 #define VERSION "$VERSION"
3373 _ACEOF
3374
3375 # Some tools Automake needs.
3376
3377 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3378
3379
3380 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3381
3382
3383 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3384
3385
3386 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3387
3388
3389 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3390
3391 # For better backward compatibility. To be removed once Automake 1.9.x
3392 # dies out for good. For more background, see:
3393 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3394 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3395 mkdir_p='$(MKDIR_P)'
3396
3397 # We need awk for the "check" target (and possibly the TAP driver). The
3398 # system "awk" is bad on some platforms.
3399 # Always define AMTAR for backward compatibility. Yes, it's still used
3400 # in the wild :-( We should find a proper way to deprecate it ...
3401 AMTAR='$${TAR-tar}'
3402
3403
3404 # We'll loop over all known methods to create a tar archive until one works.
3405 _am_tools='gnutar pax cpio none'
3406
3407 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3408
3409
3410
3411
3412
3413
3414 # POSIX will say in a future version that running "rm -f" with no argument
3415 # is OK; and we want to be able to make that assumption in our Makefile
3416 # recipes. So use an aggressive probe to check that the usage we want is
3417 # actually supported "in the wild" to an acceptable degree.
3418 # See automake bug#10828.
3419 # To make any issue more visible, cause the running configure to be aborted
3420 # by default if the 'rm' program in use doesn't match our expectations; the
3421 # user can still override this though.
3422 if rm -f && rm -fr && rm -rf; then : OK; else
3423 cat >&2 <<'END'
3424 Oops!
3425
3426 Your 'rm' program seems unable to run without file operands specified
3427 on the command line, even when the '-f' option is present. This is contrary
3428 to the behaviour of most rm programs out there, and not conforming with
3429 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3430
3431 Please tell bug-automake@gnu.org about your system, including the value
3432 of your $PATH and any error possibly output before this message. This
3433 can help us improve future automake versions.
3434
3435 END
3436 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3437 echo 'Configuration will proceed anyway, since you have set the' >&2
3438 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3439 echo >&2
3440 else
3441 cat >&2 <<'END'
3442 Aborting the configuration process, to ensure you take notice of the issue.
3443
3444 You can download and install GNU coreutils to get an 'rm' implementation
3445 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3446
3447 If you want to complete the configuration process using your problematic
3448 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3449 to "yes", and re-run configure.
3450
3451 END
3452 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3453 fi
3454 fi
3455
3456 # Check whether --enable-silent-rules was given.
3457 if test "${enable_silent_rules+set}" = set; then :
3458 enableval=$enable_silent_rules;
3459 fi
3460
3461 case $enable_silent_rules in # (((
3462 yes) AM_DEFAULT_VERBOSITY=0;;
3463 no) AM_DEFAULT_VERBOSITY=1;;
3464 *) AM_DEFAULT_VERBOSITY=0;;
3465 esac
3466 am_make=${MAKE-make}
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3468 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3469 if ${am_cv_make_support_nested_variables+:} false; then :
3470 $as_echo_n "(cached) " >&6
3471 else
3472 if $as_echo 'TRUE=$(BAR$(V))
3473 BAR0=false
3474 BAR1=true
3475 V=1
3476 am__doit:
3477 @$(TRUE)
3478 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3479 am_cv_make_support_nested_variables=yes
3480 else
3481 am_cv_make_support_nested_variables=no
3482 fi
3483 fi
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3485 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3486 if test $am_cv_make_support_nested_variables = yes; then
3487 AM_V='$(V)'
3488 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3489 else
3490 AM_V=$AM_DEFAULT_VERBOSITY
3491 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3492 fi
3493 AM_BACKSLASH='\'
3494
3495
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3497 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3498 # Check whether --enable-maintainer-mode was given.
3499 if test "${enable_maintainer_mode+set}" = set; then :
3500 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3501 else
3502 USE_MAINTAINER_MODE=no
3503 fi
3504
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3506 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3507 if test $USE_MAINTAINER_MODE = yes; then
3508 MAINTAINER_MODE_TRUE=
3509 MAINTAINER_MODE_FALSE='#'
3510 else
3511 MAINTAINER_MODE_TRUE='#'
3512 MAINTAINER_MODE_FALSE=
3513 fi
3514
3515 MAINT=$MAINTAINER_MODE_TRUE
3516
3517
3518
3519 ac_ext=c
3520 ac_cpp='$CPP $CPPFLAGS'
3521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3524 if test -n "$ac_tool_prefix"; then
3525 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3526 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3528 $as_echo_n "checking for $ac_word... " >&6; }
3529 if ${ac_cv_prog_CC+:} false; then :
3530 $as_echo_n "(cached) " >&6
3531 else
3532 if test -n "$CC"; then
3533 ac_cv_prog_CC="$CC" # Let the user override the test.
3534 else
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 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3544 break 2
3545 fi
3546 done
3547 done
3548 IFS=$as_save_IFS
3549
3550 fi
3551 fi
3552 CC=$ac_cv_prog_CC
3553 if test -n "$CC"; then
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3555 $as_echo "$CC" >&6; }
3556 else
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558 $as_echo "no" >&6; }
3559 fi
3560
3561
3562 fi
3563 if test -z "$ac_cv_prog_CC"; then
3564 ac_ct_CC=$CC
3565 # Extract the first word of "gcc", so it can be a program name with args.
3566 set dummy gcc; ac_word=$2
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3568 $as_echo_n "checking for $ac_word... " >&6; }
3569 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3570 $as_echo_n "(cached) " >&6
3571 else
3572 if test -n "$ac_ct_CC"; then
3573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3574 else
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 for as_dir in $PATH
3577 do
3578 IFS=$as_save_IFS
3579 test -z "$as_dir" && as_dir=.
3580 for ac_exec_ext in '' $ac_executable_extensions; do
3581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3582 ac_cv_prog_ac_ct_CC="gcc"
3583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3584 break 2
3585 fi
3586 done
3587 done
3588 IFS=$as_save_IFS
3589
3590 fi
3591 fi
3592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3593 if test -n "$ac_ct_CC"; then
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3595 $as_echo "$ac_ct_CC" >&6; }
3596 else
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598 $as_echo "no" >&6; }
3599 fi
3600
3601 if test "x$ac_ct_CC" = x; then
3602 CC=""
3603 else
3604 case $cross_compiling:$ac_tool_warned in
3605 yes:)
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3608 ac_tool_warned=yes ;;
3609 esac
3610 CC=$ac_ct_CC
3611 fi
3612 else
3613 CC="$ac_cv_prog_CC"
3614 fi
3615
3616 if test -z "$CC"; then
3617 if test -n "$ac_tool_prefix"; then
3618 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3619 set dummy ${ac_tool_prefix}cc; ac_word=$2
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3621 $as_echo_n "checking for $ac_word... " >&6; }
3622 if ${ac_cv_prog_CC+:} false; then :
3623 $as_echo_n "(cached) " >&6
3624 else
3625 if test -n "$CC"; then
3626 ac_cv_prog_CC="$CC" # Let the user override the test.
3627 else
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 for as_dir in $PATH
3630 do
3631 IFS=$as_save_IFS
3632 test -z "$as_dir" && as_dir=.
3633 for ac_exec_ext in '' $ac_executable_extensions; do
3634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3635 ac_cv_prog_CC="${ac_tool_prefix}cc"
3636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3637 break 2
3638 fi
3639 done
3640 done
3641 IFS=$as_save_IFS
3642
3643 fi
3644 fi
3645 CC=$ac_cv_prog_CC
3646 if test -n "$CC"; then
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3648 $as_echo "$CC" >&6; }
3649 else
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651 $as_echo "no" >&6; }
3652 fi
3653
3654
3655 fi
3656 fi
3657 if test -z "$CC"; then
3658 # Extract the first word of "cc", so it can be a program name with args.
3659 set dummy cc; ac_word=$2
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3661 $as_echo_n "checking for $ac_word... " >&6; }
3662 if ${ac_cv_prog_CC+:} false; then :
3663 $as_echo_n "(cached) " >&6
3664 else
3665 if test -n "$CC"; then
3666 ac_cv_prog_CC="$CC" # Let the user override the test.
3667 else
3668 ac_prog_rejected=no
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 for as_dir in $PATH
3671 do
3672 IFS=$as_save_IFS
3673 test -z "$as_dir" && as_dir=.
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3676 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3677 ac_prog_rejected=yes
3678 continue
3679 fi
3680 ac_cv_prog_CC="cc"
3681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3682 break 2
3683 fi
3684 done
3685 done
3686 IFS=$as_save_IFS
3687
3688 if test $ac_prog_rejected = yes; then
3689 # We found a bogon in the path, so make sure we never use it.
3690 set dummy $ac_cv_prog_CC
3691 shift
3692 if test $# != 0; then
3693 # We chose a different compiler from the bogus one.
3694 # However, it has the same basename, so the bogon will be chosen
3695 # first if we set CC to just the basename; use the full file name.
3696 shift
3697 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3698 fi
3699 fi
3700 fi
3701 fi
3702 CC=$ac_cv_prog_CC
3703 if test -n "$CC"; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3705 $as_echo "$CC" >&6; }
3706 else
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3709 fi
3710
3711
3712 fi
3713 if test -z "$CC"; then
3714 if test -n "$ac_tool_prefix"; then
3715 for ac_prog in cl.exe
3716 do
3717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3718 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720 $as_echo_n "checking for $ac_word... " >&6; }
3721 if ${ac_cv_prog_CC+:} false; then :
3722 $as_echo_n "(cached) " >&6
3723 else
3724 if test -n "$CC"; then
3725 ac_cv_prog_CC="$CC" # Let the user override the test.
3726 else
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH
3729 do
3730 IFS=$as_save_IFS
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3734 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3736 break 2
3737 fi
3738 done
3739 done
3740 IFS=$as_save_IFS
3741
3742 fi
3743 fi
3744 CC=$ac_cv_prog_CC
3745 if test -n "$CC"; then
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3747 $as_echo "$CC" >&6; }
3748 else
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750 $as_echo "no" >&6; }
3751 fi
3752
3753
3754 test -n "$CC" && break
3755 done
3756 fi
3757 if test -z "$CC"; then
3758 ac_ct_CC=$CC
3759 for ac_prog in cl.exe
3760 do
3761 # Extract the first word of "$ac_prog", so it can be a program name with args.
3762 set dummy $ac_prog; ac_word=$2
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3764 $as_echo_n "checking for $ac_word... " >&6; }
3765 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3766 $as_echo_n "(cached) " >&6
3767 else
3768 if test -n "$ac_ct_CC"; then
3769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3770 else
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3773 do
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3778 ac_cv_prog_ac_ct_CC="$ac_prog"
3779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 break 2
3781 fi
3782 done
3783 done
3784 IFS=$as_save_IFS
3785
3786 fi
3787 fi
3788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3789 if test -n "$ac_ct_CC"; then
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3791 $as_echo "$ac_ct_CC" >&6; }
3792 else
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3795 fi
3796
3797
3798 test -n "$ac_ct_CC" && break
3799 done
3800
3801 if test "x$ac_ct_CC" = x; then
3802 CC=""
3803 else
3804 case $cross_compiling:$ac_tool_warned in
3805 yes:)
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3808 ac_tool_warned=yes ;;
3809 esac
3810 CC=$ac_ct_CC
3811 fi
3812 fi
3813
3814 fi
3815
3816
3817 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3819 as_fn_error $? "no acceptable C compiler found in \$PATH
3820 See \`config.log' for more details" "$LINENO" 5; }
3821
3822 # Provide some information about the compiler.
3823 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3824 set X $ac_compile
3825 ac_compiler=$2
3826 for ac_option in --version -v -V -qversion; do
3827 { { ac_try="$ac_compiler $ac_option >&5"
3828 case "(($ac_try" in
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3831 esac
3832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3833 $as_echo "$ac_try_echo"; } >&5
3834 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3835 ac_status=$?
3836 if test -s conftest.err; then
3837 sed '10a\
3838 ... rest of stderr output deleted ...
3839 10q' conftest.err >conftest.er1
3840 cat conftest.er1 >&5
3841 fi
3842 rm -f conftest.er1 conftest.err
3843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3844 test $ac_status = 0; }
3845 done
3846
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3849
3850 int
3851 main ()
3852 {
3853
3854 ;
3855 return 0;
3856 }
3857 _ACEOF
3858 ac_clean_files_save=$ac_clean_files
3859 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3860 # Try to create an executable without -o first, disregard a.out.
3861 # It will help us diagnose broken compilers, and finding out an intuition
3862 # of exeext.
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3864 $as_echo_n "checking whether the C compiler works... " >&6; }
3865 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3866
3867 # The possible output files:
3868 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3869
3870 ac_rmfiles=
3871 for ac_file in $ac_files
3872 do
3873 case $ac_file in
3874 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3875 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3876 esac
3877 done
3878 rm -f $ac_rmfiles
3879
3880 if { { ac_try="$ac_link_default"
3881 case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884 esac
3885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3886 $as_echo "$ac_try_echo"; } >&5
3887 (eval "$ac_link_default") 2>&5
3888 ac_status=$?
3889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3890 test $ac_status = 0; }; then :
3891 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3892 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3893 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3894 # so that the user can short-circuit this test for compilers unknown to
3895 # Autoconf.
3896 for ac_file in $ac_files ''
3897 do
3898 test -f "$ac_file" || continue
3899 case $ac_file in
3900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3901 ;;
3902 [ab].out )
3903 # We found the default executable, but exeext='' is most
3904 # certainly right.
3905 break;;
3906 *.* )
3907 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3908 then :; else
3909 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3910 fi
3911 # We set ac_cv_exeext here because the later test for it is not
3912 # safe: cross compilers may not add the suffix if given an `-o'
3913 # argument, so we may need to know it at that point already.
3914 # Even if this section looks crufty: it has the advantage of
3915 # actually working.
3916 break;;
3917 * )
3918 break;;
3919 esac
3920 done
3921 test "$ac_cv_exeext" = no && ac_cv_exeext=
3922
3923 else
3924 ac_file=''
3925 fi
3926 if test -z "$ac_file"; then :
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928 $as_echo "no" >&6; }
3929 $as_echo "$as_me: failed program was:" >&5
3930 sed 's/^/| /' conftest.$ac_ext >&5
3931
3932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3934 as_fn_error 77 "C compiler cannot create executables
3935 See \`config.log' for more details" "$LINENO" 5; }
3936 else
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3938 $as_echo "yes" >&6; }
3939 fi
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3941 $as_echo_n "checking for C compiler default output file name... " >&6; }
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3943 $as_echo "$ac_file" >&6; }
3944 ac_exeext=$ac_cv_exeext
3945
3946 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3947 ac_clean_files=$ac_clean_files_save
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3949 $as_echo_n "checking for suffix of executables... " >&6; }
3950 if { { ac_try="$ac_link"
3951 case "(($ac_try" in
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3954 esac
3955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3956 $as_echo "$ac_try_echo"; } >&5
3957 (eval "$ac_link") 2>&5
3958 ac_status=$?
3959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3960 test $ac_status = 0; }; then :
3961 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3962 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3963 # work properly (i.e., refer to `conftest.exe'), while it won't with
3964 # `rm'.
3965 for ac_file in conftest.exe conftest conftest.*; do
3966 test -f "$ac_file" || continue
3967 case $ac_file in
3968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3969 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3970 break;;
3971 * ) break;;
3972 esac
3973 done
3974 else
3975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3977 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3978 See \`config.log' for more details" "$LINENO" 5; }
3979 fi
3980 rm -f conftest conftest$ac_cv_exeext
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3982 $as_echo "$ac_cv_exeext" >&6; }
3983
3984 rm -f conftest.$ac_ext
3985 EXEEXT=$ac_cv_exeext
3986 ac_exeext=$EXEEXT
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
3989 #include <stdio.h>
3990 int
3991 main ()
3992 {
3993 FILE *f = fopen ("conftest.out", "w");
3994 return ferror (f) || fclose (f) != 0;
3995
3996 ;
3997 return 0;
3998 }
3999 _ACEOF
4000 ac_clean_files="$ac_clean_files conftest.out"
4001 # Check that the compiler produces executables we can run. If not, either
4002 # the compiler is broken, or we cross compile.
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4004 $as_echo_n "checking whether we are cross compiling... " >&6; }
4005 if test "$cross_compiling" != yes; then
4006 { { ac_try="$ac_link"
4007 case "(($ac_try" in
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4010 esac
4011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4012 $as_echo "$ac_try_echo"; } >&5
4013 (eval "$ac_link") 2>&5
4014 ac_status=$?
4015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016 test $ac_status = 0; }
4017 if { ac_try='./conftest$ac_cv_exeext'
4018 { { case "(($ac_try" in
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4021 esac
4022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4023 $as_echo "$ac_try_echo"; } >&5
4024 (eval "$ac_try") 2>&5
4025 ac_status=$?
4026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4027 test $ac_status = 0; }; }; then
4028 cross_compiling=no
4029 else
4030 if test "$cross_compiling" = maybe; then
4031 cross_compiling=yes
4032 else
4033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4035 as_fn_error $? "cannot run C compiled programs.
4036 If you meant to cross compile, use \`--host'.
4037 See \`config.log' for more details" "$LINENO" 5; }
4038 fi
4039 fi
4040 fi
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4042 $as_echo "$cross_compiling" >&6; }
4043
4044 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4045 ac_clean_files=$ac_clean_files_save
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4047 $as_echo_n "checking for suffix of object files... " >&6; }
4048 if ${ac_cv_objext+:} false; then :
4049 $as_echo_n "(cached) " >&6
4050 else
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4053
4054 int
4055 main ()
4056 {
4057
4058 ;
4059 return 0;
4060 }
4061 _ACEOF
4062 rm -f conftest.o conftest.obj
4063 if { { ac_try="$ac_compile"
4064 case "(($ac_try" in
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4067 esac
4068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4069 $as_echo "$ac_try_echo"; } >&5
4070 (eval "$ac_compile") 2>&5
4071 ac_status=$?
4072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4073 test $ac_status = 0; }; then :
4074 for ac_file in conftest.o conftest.obj conftest.*; do
4075 test -f "$ac_file" || continue;
4076 case $ac_file in
4077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4078 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4079 break;;
4080 esac
4081 done
4082 else
4083 $as_echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4085
4086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4088 as_fn_error $? "cannot compute suffix of object files: cannot compile
4089 See \`config.log' for more details" "$LINENO" 5; }
4090 fi
4091 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4092 fi
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4094 $as_echo "$ac_cv_objext" >&6; }
4095 OBJEXT=$ac_cv_objext
4096 ac_objext=$OBJEXT
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4098 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4099 if ${ac_cv_c_compiler_gnu+:} false; then :
4100 $as_echo_n "(cached) " >&6
4101 else
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4104
4105 int
4106 main ()
4107 {
4108 #ifndef __GNUC__
4109 choke me
4110 #endif
4111
4112 ;
4113 return 0;
4114 }
4115 _ACEOF
4116 if ac_fn_c_try_compile "$LINENO"; then :
4117 ac_compiler_gnu=yes
4118 else
4119 ac_compiler_gnu=no
4120 fi
4121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4122 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4123
4124 fi
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4126 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4127 if test $ac_compiler_gnu = yes; then
4128 GCC=yes
4129 else
4130 GCC=
4131 fi
4132 ac_test_CFLAGS=${CFLAGS+set}
4133 ac_save_CFLAGS=$CFLAGS
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4135 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4136 if ${ac_cv_prog_cc_g+:} false; then :
4137 $as_echo_n "(cached) " >&6
4138 else
4139 ac_save_c_werror_flag=$ac_c_werror_flag
4140 ac_c_werror_flag=yes
4141 ac_cv_prog_cc_g=no
4142 CFLAGS="-g"
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4145
4146 int
4147 main ()
4148 {
4149
4150 ;
4151 return 0;
4152 }
4153 _ACEOF
4154 if ac_fn_c_try_compile "$LINENO"; then :
4155 ac_cv_prog_cc_g=yes
4156 else
4157 CFLAGS=""
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4160
4161 int
4162 main ()
4163 {
4164
4165 ;
4166 return 0;
4167 }
4168 _ACEOF
4169 if ac_fn_c_try_compile "$LINENO"; then :
4170
4171 else
4172 ac_c_werror_flag=$ac_save_c_werror_flag
4173 CFLAGS="-g"
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4176
4177 int
4178 main ()
4179 {
4180
4181 ;
4182 return 0;
4183 }
4184 _ACEOF
4185 if ac_fn_c_try_compile "$LINENO"; then :
4186 ac_cv_prog_cc_g=yes
4187 fi
4188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4189 fi
4190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4191 fi
4192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193 ac_c_werror_flag=$ac_save_c_werror_flag
4194 fi
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4196 $as_echo "$ac_cv_prog_cc_g" >&6; }
4197 if test "$ac_test_CFLAGS" = set; then
4198 CFLAGS=$ac_save_CFLAGS
4199 elif test $ac_cv_prog_cc_g = yes; then
4200 if test "$GCC" = yes; then
4201 CFLAGS="-g -O2"
4202 else
4203 CFLAGS="-g"
4204 fi
4205 else
4206 if test "$GCC" = yes; then
4207 CFLAGS="-O2"
4208 else
4209 CFLAGS=
4210 fi
4211 fi
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4213 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4214 if ${ac_cv_prog_cc_c89+:} false; then :
4215 $as_echo_n "(cached) " >&6
4216 else
4217 ac_cv_prog_cc_c89=no
4218 ac_save_CC=$CC
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h. */
4221 #include <stdarg.h>
4222 #include <stdio.h>
4223 struct stat;
4224 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4225 struct buf { int x; };
4226 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4227 static char *e (p, i)
4228 char **p;
4229 int i;
4230 {
4231 return p[i];
4232 }
4233 static char *f (char * (*g) (char **, int), char **p, ...)
4234 {
4235 char *s;
4236 va_list v;
4237 va_start (v,p);
4238 s = g (p, va_arg (v,int));
4239 va_end (v);
4240 return s;
4241 }
4242
4243 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4244 function prototypes and stuff, but not '\xHH' hex character constants.
4245 These don't provoke an error unfortunately, instead are silently treated
4246 as 'x'. The following induces an error, until -std is added to get
4247 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4248 array size at least. It's necessary to write '\x00'==0 to get something
4249 that's true only with -std. */
4250 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4251
4252 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4253 inside strings and character constants. */
4254 #define FOO(x) 'x'
4255 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4256
4257 int test (int i, double x);
4258 struct s1 {int (*f) (int a);};
4259 struct s2 {int (*f) (double a);};
4260 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4261 int argc;
4262 char **argv;
4263 int
4264 main ()
4265 {
4266 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4267 ;
4268 return 0;
4269 }
4270 _ACEOF
4271 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4272 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4273 do
4274 CC="$ac_save_CC $ac_arg"
4275 if ac_fn_c_try_compile "$LINENO"; then :
4276 ac_cv_prog_cc_c89=$ac_arg
4277 fi
4278 rm -f core conftest.err conftest.$ac_objext
4279 test "x$ac_cv_prog_cc_c89" != "xno" && break
4280 done
4281 rm -f conftest.$ac_ext
4282 CC=$ac_save_CC
4283
4284 fi
4285 # AC_CACHE_VAL
4286 case "x$ac_cv_prog_cc_c89" in
4287 x)
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4289 $as_echo "none needed" >&6; } ;;
4290 xno)
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4292 $as_echo "unsupported" >&6; } ;;
4293 *)
4294 CC="$CC $ac_cv_prog_cc_c89"
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4296 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4297 esac
4298 if test "x$ac_cv_prog_cc_c89" != xno; then :
4299
4300 fi
4301
4302 ac_ext=c
4303 ac_cpp='$CPP $CPPFLAGS'
4304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307
4308 ac_ext=c
4309 ac_cpp='$CPP $CPPFLAGS'
4310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4314 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4315 if ${am_cv_prog_cc_c_o+:} false; then :
4316 $as_echo_n "(cached) " >&6
4317 else
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h. */
4320
4321 int
4322 main ()
4323 {
4324
4325 ;
4326 return 0;
4327 }
4328 _ACEOF
4329 # Make sure it works both with $CC and with simple cc.
4330 # Following AC_PROG_CC_C_O, we do the test twice because some
4331 # compilers refuse to overwrite an existing .o file with -o,
4332 # though they will create one.
4333 am_cv_prog_cc_c_o=yes
4334 for am_i in 1 2; do
4335 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4336 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4337 ac_status=$?
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); } \
4340 && test -f conftest2.$ac_objext; then
4341 : OK
4342 else
4343 am_cv_prog_cc_c_o=no
4344 break
4345 fi
4346 done
4347 rm -f core conftest*
4348 unset am_i
4349 fi
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4351 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4352 if test "$am_cv_prog_cc_c_o" != yes; then
4353 # Losing compiler, so override with the script.
4354 # FIXME: It is wrong to rewrite CC.
4355 # But if we don't then we get into trouble of one sort or another.
4356 # A longer-term fix would be to have automake use am__CC in this case,
4357 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4358 CC="$am_aux_dir/compile $CC"
4359 fi
4360 ac_ext=c
4361 ac_cpp='$CPP $CPPFLAGS'
4362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4365
4366 DEPDIR="${am__leading_dot}deps"
4367
4368 ac_config_commands="$ac_config_commands depfiles"
4369
4370
4371 am_make=${MAKE-make}
4372 cat > confinc << 'END'
4373 am__doit:
4374 @echo this is the am__doit target
4375 .PHONY: am__doit
4376 END
4377 # If we don't find an include directive, just comment out the code.
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4379 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4380 am__include="#"
4381 am__quote=
4382 _am_result=none
4383 # First try GNU make style include.
4384 echo "include confinc" > confmf
4385 # Ignore all kinds of additional output from 'make'.
4386 case `$am_make -s -f confmf 2> /dev/null` in #(
4387 *the\ am__doit\ target*)
4388 am__include=include
4389 am__quote=
4390 _am_result=GNU
4391 ;;
4392 esac
4393 # Now try BSD make style include.
4394 if test "$am__include" = "#"; then
4395 echo '.include "confinc"' > confmf
4396 case `$am_make -s -f confmf 2> /dev/null` in #(
4397 *the\ am__doit\ target*)
4398 am__include=.include
4399 am__quote="\""
4400 _am_result=BSD
4401 ;;
4402 esac
4403 fi
4404
4405
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4407 $as_echo "$_am_result" >&6; }
4408 rm -f confinc confmf
4409
4410 # Check whether --enable-dependency-tracking was given.
4411 if test "${enable_dependency_tracking+set}" = set; then :
4412 enableval=$enable_dependency_tracking;
4413 fi
4414
4415 if test "x$enable_dependency_tracking" != xno; then
4416 am_depcomp="$ac_aux_dir/depcomp"
4417 AMDEPBACKSLASH='\'
4418 am__nodep='_no'
4419 fi
4420 if test "x$enable_dependency_tracking" != xno; then
4421 AMDEP_TRUE=
4422 AMDEP_FALSE='#'
4423 else
4424 AMDEP_TRUE='#'
4425 AMDEP_FALSE=
4426 fi
4427
4428
4429
4430 depcc="$CC" am_compiler_list=
4431
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4433 $as_echo_n "checking dependency style of $depcc... " >&6; }
4434 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4435 $as_echo_n "(cached) " >&6
4436 else
4437 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4438 # We make a subdir and do the tests there. Otherwise we can end up
4439 # making bogus files that we don't know about and never remove. For
4440 # instance it was reported that on HP-UX the gcc test will end up
4441 # making a dummy file named 'D' -- because '-MD' means "put the output
4442 # in D".
4443 rm -rf conftest.dir
4444 mkdir conftest.dir
4445 # Copy depcomp to subdir because otherwise we won't find it if we're
4446 # using a relative directory.
4447 cp "$am_depcomp" conftest.dir
4448 cd conftest.dir
4449 # We will build objects and dependencies in a subdirectory because
4450 # it helps to detect inapplicable dependency modes. For instance
4451 # both Tru64's cc and ICC support -MD to output dependencies as a
4452 # side effect of compilation, but ICC will put the dependencies in
4453 # the current directory while Tru64 will put them in the object
4454 # directory.
4455 mkdir sub
4456
4457 am_cv_CC_dependencies_compiler_type=none
4458 if test "$am_compiler_list" = ""; then
4459 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4460 fi
4461 am__universal=false
4462 case " $depcc " in #(
4463 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4464 esac
4465
4466 for depmode in $am_compiler_list; do
4467 # Setup a source with many dependencies, because some compilers
4468 # like to wrap large dependency lists on column 80 (with \), and
4469 # we should not choose a depcomp mode which is confused by this.
4470 #
4471 # We need to recreate these files for each test, as the compiler may
4472 # overwrite some of them when testing with obscure command lines.
4473 # This happens at least with the AIX C compiler.
4474 : > sub/conftest.c
4475 for i in 1 2 3 4 5 6; do
4476 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4477 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4478 # Solaris 10 /bin/sh.
4479 echo '/* dummy */' > sub/conftst$i.h
4480 done
4481 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4482
4483 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4484 # mode. It turns out that the SunPro C++ compiler does not properly
4485 # handle '-M -o', and we need to detect this. Also, some Intel
4486 # versions had trouble with output in subdirs.
4487 am__obj=sub/conftest.${OBJEXT-o}
4488 am__minus_obj="-o $am__obj"
4489 case $depmode in
4490 gcc)
4491 # This depmode causes a compiler race in universal mode.
4492 test "$am__universal" = false || continue
4493 ;;
4494 nosideeffect)
4495 # After this tag, mechanisms are not by side-effect, so they'll
4496 # only be used when explicitly requested.
4497 if test "x$enable_dependency_tracking" = xyes; then
4498 continue
4499 else
4500 break
4501 fi
4502 ;;
4503 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4504 # This compiler won't grok '-c -o', but also, the minuso test has
4505 # not run yet. These depmodes are late enough in the game, and
4506 # so weak that their functioning should not be impacted.
4507 am__obj=conftest.${OBJEXT-o}
4508 am__minus_obj=
4509 ;;
4510 none) break ;;
4511 esac
4512 if depmode=$depmode \
4513 source=sub/conftest.c object=$am__obj \
4514 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4515 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4516 >/dev/null 2>conftest.err &&
4517 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4518 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4519 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4520 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4521 # icc doesn't choke on unknown options, it will just issue warnings
4522 # or remarks (even with -Werror). So we grep stderr for any message
4523 # that says an option was ignored or not supported.
4524 # When given -MP, icc 7.0 and 7.1 complain thusly:
4525 # icc: Command line warning: ignoring option '-M'; no argument required
4526 # The diagnosis changed in icc 8.0:
4527 # icc: Command line remark: option '-MP' not supported
4528 if (grep 'ignoring option' conftest.err ||
4529 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4530 am_cv_CC_dependencies_compiler_type=$depmode
4531 break
4532 fi
4533 fi
4534 done
4535
4536 cd ..
4537 rm -rf conftest.dir
4538 else
4539 am_cv_CC_dependencies_compiler_type=none
4540 fi
4541
4542 fi
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4544 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4545 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4546
4547 if
4548 test "x$enable_dependency_tracking" != xno \
4549 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4550 am__fastdepCC_TRUE=
4551 am__fastdepCC_FALSE='#'
4552 else
4553 am__fastdepCC_TRUE='#'
4554 am__fastdepCC_FALSE=
4555 fi
4556
4557
4558 ac_ext=cpp
4559 ac_cpp='$CXXCPP $CPPFLAGS'
4560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4563 if test -z "$CXX"; then
4564 if test -n "$CCC"; then
4565 CXX=$CCC
4566 else
4567 if test -n "$ac_tool_prefix"; then
4568 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4569 do
4570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4571 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573 $as_echo_n "checking for $ac_word... " >&6; }
4574 if ${ac_cv_prog_CXX+:} false; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 if test -n "$CXX"; then
4578 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4579 else
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4582 do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4587 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4590 fi
4591 done
4592 done
4593 IFS=$as_save_IFS
4594
4595 fi
4596 fi
4597 CXX=$ac_cv_prog_CXX
4598 if test -n "$CXX"; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4600 $as_echo "$CXX" >&6; }
4601 else
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603 $as_echo "no" >&6; }
4604 fi
4605
4606
4607 test -n "$CXX" && break
4608 done
4609 fi
4610 if test -z "$CXX"; then
4611 ac_ct_CXX=$CXX
4612 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4613 do
4614 # Extract the first word of "$ac_prog", so it can be a program name with args.
4615 set dummy $ac_prog; ac_word=$2
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4617 $as_echo_n "checking for $ac_word... " >&6; }
4618 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4619 $as_echo_n "(cached) " >&6
4620 else
4621 if test -n "$ac_ct_CXX"; then
4622 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4623 else
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH
4626 do
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
4629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4631 ac_cv_prog_ac_ct_CXX="$ac_prog"
4632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 break 2
4634 fi
4635 done
4636 done
4637 IFS=$as_save_IFS
4638
4639 fi
4640 fi
4641 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4642 if test -n "$ac_ct_CXX"; then
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4644 $as_echo "$ac_ct_CXX" >&6; }
4645 else
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647 $as_echo "no" >&6; }
4648 fi
4649
4650
4651 test -n "$ac_ct_CXX" && break
4652 done
4653
4654 if test "x$ac_ct_CXX" = x; then
4655 CXX="g++"
4656 else
4657 case $cross_compiling:$ac_tool_warned in
4658 yes:)
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4661 ac_tool_warned=yes ;;
4662 esac
4663 CXX=$ac_ct_CXX
4664 fi
4665 fi
4666
4667 fi
4668 fi
4669 # Provide some information about the compiler.
4670 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4671 set X $ac_compile
4672 ac_compiler=$2
4673 for ac_option in --version -v -V -qversion; do
4674 { { ac_try="$ac_compiler $ac_option >&5"
4675 case "(($ac_try" in
4676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677 *) ac_try_echo=$ac_try;;
4678 esac
4679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4680 $as_echo "$ac_try_echo"; } >&5
4681 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4682 ac_status=$?
4683 if test -s conftest.err; then
4684 sed '10a\
4685 ... rest of stderr output deleted ...
4686 10q' conftest.err >conftest.er1
4687 cat conftest.er1 >&5
4688 fi
4689 rm -f conftest.er1 conftest.err
4690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4691 test $ac_status = 0; }
4692 done
4693
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4695 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4696 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4701
4702 int
4703 main ()
4704 {
4705 #ifndef __GNUC__
4706 choke me
4707 #endif
4708
4709 ;
4710 return 0;
4711 }
4712 _ACEOF
4713 if ac_fn_cxx_try_compile "$LINENO"; then :
4714 ac_compiler_gnu=yes
4715 else
4716 ac_compiler_gnu=no
4717 fi
4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4720
4721 fi
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4723 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4724 if test $ac_compiler_gnu = yes; then
4725 GXX=yes
4726 else
4727 GXX=
4728 fi
4729 ac_test_CXXFLAGS=${CXXFLAGS+set}
4730 ac_save_CXXFLAGS=$CXXFLAGS
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4732 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4733 if ${ac_cv_prog_cxx_g+:} false; then :
4734 $as_echo_n "(cached) " >&6
4735 else
4736 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4737 ac_cxx_werror_flag=yes
4738 ac_cv_prog_cxx_g=no
4739 CXXFLAGS="-g"
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4742
4743 int
4744 main ()
4745 {
4746
4747 ;
4748 return 0;
4749 }
4750 _ACEOF
4751 if ac_fn_cxx_try_compile "$LINENO"; then :
4752 ac_cv_prog_cxx_g=yes
4753 else
4754 CXXFLAGS=""
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h. */
4757
4758 int
4759 main ()
4760 {
4761
4762 ;
4763 return 0;
4764 }
4765 _ACEOF
4766 if ac_fn_cxx_try_compile "$LINENO"; then :
4767
4768 else
4769 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4770 CXXFLAGS="-g"
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4773
4774 int
4775 main ()
4776 {
4777
4778 ;
4779 return 0;
4780 }
4781 _ACEOF
4782 if ac_fn_cxx_try_compile "$LINENO"; then :
4783 ac_cv_prog_cxx_g=yes
4784 fi
4785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786 fi
4787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4788 fi
4789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4791 fi
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4793 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4794 if test "$ac_test_CXXFLAGS" = set; then
4795 CXXFLAGS=$ac_save_CXXFLAGS
4796 elif test $ac_cv_prog_cxx_g = yes; then
4797 if test "$GXX" = yes; then
4798 CXXFLAGS="-g -O2"
4799 else
4800 CXXFLAGS="-g"
4801 fi
4802 else
4803 if test "$GXX" = yes; then
4804 CXXFLAGS="-O2"
4805 else
4806 CXXFLAGS=
4807 fi
4808 fi
4809 ac_ext=c
4810 ac_cpp='$CPP $CPPFLAGS'
4811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4814
4815 depcc="$CXX" am_compiler_list=
4816
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4818 $as_echo_n "checking dependency style of $depcc... " >&6; }
4819 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4823 # We make a subdir and do the tests there. Otherwise we can end up
4824 # making bogus files that we don't know about and never remove. For
4825 # instance it was reported that on HP-UX the gcc test will end up
4826 # making a dummy file named 'D' -- because '-MD' means "put the output
4827 # in D".
4828 rm -rf conftest.dir
4829 mkdir conftest.dir
4830 # Copy depcomp to subdir because otherwise we won't find it if we're
4831 # using a relative directory.
4832 cp "$am_depcomp" conftest.dir
4833 cd conftest.dir
4834 # We will build objects and dependencies in a subdirectory because
4835 # it helps to detect inapplicable dependency modes. For instance
4836 # both Tru64's cc and ICC support -MD to output dependencies as a
4837 # side effect of compilation, but ICC will put the dependencies in
4838 # the current directory while Tru64 will put them in the object
4839 # directory.
4840 mkdir sub
4841
4842 am_cv_CXX_dependencies_compiler_type=none
4843 if test "$am_compiler_list" = ""; then
4844 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4845 fi
4846 am__universal=false
4847 case " $depcc " in #(
4848 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4849 esac
4850
4851 for depmode in $am_compiler_list; do
4852 # Setup a source with many dependencies, because some compilers
4853 # like to wrap large dependency lists on column 80 (with \), and
4854 # we should not choose a depcomp mode which is confused by this.
4855 #
4856 # We need to recreate these files for each test, as the compiler may
4857 # overwrite some of them when testing with obscure command lines.
4858 # This happens at least with the AIX C compiler.
4859 : > sub/conftest.c
4860 for i in 1 2 3 4 5 6; do
4861 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4862 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4863 # Solaris 10 /bin/sh.
4864 echo '/* dummy */' > sub/conftst$i.h
4865 done
4866 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4867
4868 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4869 # mode. It turns out that the SunPro C++ compiler does not properly
4870 # handle '-M -o', and we need to detect this. Also, some Intel
4871 # versions had trouble with output in subdirs.
4872 am__obj=sub/conftest.${OBJEXT-o}
4873 am__minus_obj="-o $am__obj"
4874 case $depmode in
4875 gcc)
4876 # This depmode causes a compiler race in universal mode.
4877 test "$am__universal" = false || continue
4878 ;;
4879 nosideeffect)
4880 # After this tag, mechanisms are not by side-effect, so they'll
4881 # only be used when explicitly requested.
4882 if test "x$enable_dependency_tracking" = xyes; then
4883 continue
4884 else
4885 break
4886 fi
4887 ;;
4888 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4889 # This compiler won't grok '-c -o', but also, the minuso test has
4890 # not run yet. These depmodes are late enough in the game, and
4891 # so weak that their functioning should not be impacted.
4892 am__obj=conftest.${OBJEXT-o}
4893 am__minus_obj=
4894 ;;
4895 none) break ;;
4896 esac
4897 if depmode=$depmode \
4898 source=sub/conftest.c object=$am__obj \
4899 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4900 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4901 >/dev/null 2>conftest.err &&
4902 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4903 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4904 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4905 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4906 # icc doesn't choke on unknown options, it will just issue warnings
4907 # or remarks (even with -Werror). So we grep stderr for any message
4908 # that says an option was ignored or not supported.
4909 # When given -MP, icc 7.0 and 7.1 complain thusly:
4910 # icc: Command line warning: ignoring option '-M'; no argument required
4911 # The diagnosis changed in icc 8.0:
4912 # icc: Command line remark: option '-MP' not supported
4913 if (grep 'ignoring option' conftest.err ||
4914 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4915 am_cv_CXX_dependencies_compiler_type=$depmode
4916 break
4917 fi
4918 fi
4919 done
4920
4921 cd ..
4922 rm -rf conftest.dir
4923 else
4924 am_cv_CXX_dependencies_compiler_type=none
4925 fi
4926
4927 fi
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4929 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4930 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4931
4932 if
4933 test "x$enable_dependency_tracking" != xno \
4934 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4935 am__fastdepCXX_TRUE=
4936 am__fastdepCXX_FALSE='#'
4937 else
4938 am__fastdepCXX_TRUE='#'
4939 am__fastdepCXX_FALSE=
4940 fi
4941
4942
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4944 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4945 if ${ac_cv_path_GREP+:} false; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 if test -z "$GREP"; then
4949 ac_path_GREP_found=false
4950 # Loop through the user's path and test for each of PROGNAME-LIST
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4953 do
4954 IFS=$as_save_IFS
4955 test -z "$as_dir" && as_dir=.
4956 for ac_prog in grep ggrep; do
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4959 as_fn_executable_p "$ac_path_GREP" || continue
4960 # Check for GNU ac_path_GREP and select it if it is found.
4961 # Check for GNU $ac_path_GREP
4962 case `"$ac_path_GREP" --version 2>&1` in
4963 *GNU*)
4964 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4965 *)
4966 ac_count=0
4967 $as_echo_n 0123456789 >"conftest.in"
4968 while :
4969 do
4970 cat "conftest.in" "conftest.in" >"conftest.tmp"
4971 mv "conftest.tmp" "conftest.in"
4972 cp "conftest.in" "conftest.nl"
4973 $as_echo 'GREP' >> "conftest.nl"
4974 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4975 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4976 as_fn_arith $ac_count + 1 && ac_count=$as_val
4977 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4978 # Best one so far, save it but keep looking for a better one
4979 ac_cv_path_GREP="$ac_path_GREP"
4980 ac_path_GREP_max=$ac_count
4981 fi
4982 # 10*(2^10) chars as input seems more than enough
4983 test $ac_count -gt 10 && break
4984 done
4985 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4986 esac
4987
4988 $ac_path_GREP_found && break 3
4989 done
4990 done
4991 done
4992 IFS=$as_save_IFS
4993 if test -z "$ac_cv_path_GREP"; then
4994 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4995 fi
4996 else
4997 ac_cv_path_GREP=$GREP
4998 fi
4999
5000 fi
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5002 $as_echo "$ac_cv_path_GREP" >&6; }
5003 GREP="$ac_cv_path_GREP"
5004
5005
5006
5007 ac_ext=c
5008 ac_cpp='$CPP $CPPFLAGS'
5009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5013 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5014 # On Suns, sometimes $CPP names a directory.
5015 if test -n "$CPP" && test -d "$CPP"; then
5016 CPP=
5017 fi
5018 if test -z "$CPP"; then
5019 if ${ac_cv_prog_CPP+:} false; then :
5020 $as_echo_n "(cached) " >&6
5021 else
5022 # Double quotes because CPP needs to be expanded
5023 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5024 do
5025 ac_preproc_ok=false
5026 for ac_c_preproc_warn_flag in '' yes
5027 do
5028 # Use a header file that comes with gcc, so configuring glibc
5029 # with a fresh cross-compiler works.
5030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5031 # <limits.h> exists even on freestanding compilers.
5032 # On the NeXT, cc -E runs the code through the compiler's parser,
5033 # not just through cpp. "Syntax error" is here to catch this case.
5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035 /* end confdefs.h. */
5036 #ifdef __STDC__
5037 # include <limits.h>
5038 #else
5039 # include <assert.h>
5040 #endif
5041 Syntax error
5042 _ACEOF
5043 if ac_fn_c_try_cpp "$LINENO"; then :
5044
5045 else
5046 # Broken: fails on valid input.
5047 continue
5048 fi
5049 rm -f conftest.err conftest.i conftest.$ac_ext
5050
5051 # OK, works on sane cases. Now check whether nonexistent headers
5052 # can be detected and how.
5053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054 /* end confdefs.h. */
5055 #include <ac_nonexistent.h>
5056 _ACEOF
5057 if ac_fn_c_try_cpp "$LINENO"; then :
5058 # Broken: success on invalid input.
5059 continue
5060 else
5061 # Passes both tests.
5062 ac_preproc_ok=:
5063 break
5064 fi
5065 rm -f conftest.err conftest.i conftest.$ac_ext
5066
5067 done
5068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5069 rm -f conftest.i conftest.err conftest.$ac_ext
5070 if $ac_preproc_ok; then :
5071 break
5072 fi
5073
5074 done
5075 ac_cv_prog_CPP=$CPP
5076
5077 fi
5078 CPP=$ac_cv_prog_CPP
5079 else
5080 ac_cv_prog_CPP=$CPP
5081 fi
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5083 $as_echo "$CPP" >&6; }
5084 ac_preproc_ok=false
5085 for ac_c_preproc_warn_flag in '' yes
5086 do
5087 # Use a header file that comes with gcc, so configuring glibc
5088 # with a fresh cross-compiler works.
5089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5090 # <limits.h> exists even on freestanding compilers.
5091 # On the NeXT, cc -E runs the code through the compiler's parser,
5092 # not just through cpp. "Syntax error" is here to catch this case.
5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094 /* end confdefs.h. */
5095 #ifdef __STDC__
5096 # include <limits.h>
5097 #else
5098 # include <assert.h>
5099 #endif
5100 Syntax error
5101 _ACEOF
5102 if ac_fn_c_try_cpp "$LINENO"; then :
5103
5104 else
5105 # Broken: fails on valid input.
5106 continue
5107 fi
5108 rm -f conftest.err conftest.i conftest.$ac_ext
5109
5110 # OK, works on sane cases. Now check whether nonexistent headers
5111 # can be detected and how.
5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5114 #include <ac_nonexistent.h>
5115 _ACEOF
5116 if ac_fn_c_try_cpp "$LINENO"; then :
5117 # Broken: success on invalid input.
5118 continue
5119 else
5120 # Passes both tests.
5121 ac_preproc_ok=:
5122 break
5123 fi
5124 rm -f conftest.err conftest.i conftest.$ac_ext
5125
5126 done
5127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5128 rm -f conftest.i conftest.err conftest.$ac_ext
5129 if $ac_preproc_ok; then :
5130
5131 else
5132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5134 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5135 See \`config.log' for more details" "$LINENO" 5; }
5136 fi
5137
5138 ac_ext=c
5139 ac_cpp='$CPP $CPPFLAGS'
5140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5143
5144
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5146 $as_echo_n "checking for egrep... " >&6; }
5147 if ${ac_cv_path_EGREP+:} false; then :
5148 $as_echo_n "(cached) " >&6
5149 else
5150 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5151 then ac_cv_path_EGREP="$GREP -E"
5152 else
5153 if test -z "$EGREP"; then
5154 ac_path_EGREP_found=false
5155 # Loop through the user's path and test for each of PROGNAME-LIST
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5158 do
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_prog in egrep; do
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5164 as_fn_executable_p "$ac_path_EGREP" || continue
5165 # Check for GNU ac_path_EGREP and select it if it is found.
5166 # Check for GNU $ac_path_EGREP
5167 case `"$ac_path_EGREP" --version 2>&1` in
5168 *GNU*)
5169 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5170 *)
5171 ac_count=0
5172 $as_echo_n 0123456789 >"conftest.in"
5173 while :
5174 do
5175 cat "conftest.in" "conftest.in" >"conftest.tmp"
5176 mv "conftest.tmp" "conftest.in"
5177 cp "conftest.in" "conftest.nl"
5178 $as_echo 'EGREP' >> "conftest.nl"
5179 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5180 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5181 as_fn_arith $ac_count + 1 && ac_count=$as_val
5182 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5183 # Best one so far, save it but keep looking for a better one
5184 ac_cv_path_EGREP="$ac_path_EGREP"
5185 ac_path_EGREP_max=$ac_count
5186 fi
5187 # 10*(2^10) chars as input seems more than enough
5188 test $ac_count -gt 10 && break
5189 done
5190 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5191 esac
5192
5193 $ac_path_EGREP_found && break 3
5194 done
5195 done
5196 done
5197 IFS=$as_save_IFS
5198 if test -z "$ac_cv_path_EGREP"; then
5199 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5200 fi
5201 else
5202 ac_cv_path_EGREP=$EGREP
5203 fi
5204
5205 fi
5206 fi
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5208 $as_echo "$ac_cv_path_EGREP" >&6; }
5209 EGREP="$ac_cv_path_EGREP"
5210
5211
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5213 $as_echo_n "checking for ANSI C header files... " >&6; }
5214 if ${ac_cv_header_stdc+:} false; then :
5215 $as_echo_n "(cached) " >&6
5216 else
5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h. */
5219 #include <stdlib.h>
5220 #include <stdarg.h>
5221 #include <string.h>
5222 #include <float.h>
5223
5224 int
5225 main ()
5226 {
5227
5228 ;
5229 return 0;
5230 }
5231 _ACEOF
5232 if ac_fn_c_try_compile "$LINENO"; then :
5233 ac_cv_header_stdc=yes
5234 else
5235 ac_cv_header_stdc=no
5236 fi
5237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5238
5239 if test $ac_cv_header_stdc = yes; then
5240 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h. */
5243 #include <string.h>
5244
5245 _ACEOF
5246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5247 $EGREP "memchr" >/dev/null 2>&1; then :
5248
5249 else
5250 ac_cv_header_stdc=no
5251 fi
5252 rm -f conftest*
5253
5254 fi
5255
5256 if test $ac_cv_header_stdc = yes; then
5257 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5260 #include <stdlib.h>
5261
5262 _ACEOF
5263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5264 $EGREP "free" >/dev/null 2>&1; then :
5265
5266 else
5267 ac_cv_header_stdc=no
5268 fi
5269 rm -f conftest*
5270
5271 fi
5272
5273 if test $ac_cv_header_stdc = yes; then
5274 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5275 if test "$cross_compiling" = yes; then :
5276 :
5277 else
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5280 #include <ctype.h>
5281 #include <stdlib.h>
5282 #if ((' ' & 0x0FF) == 0x020)
5283 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5284 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5285 #else
5286 # define ISLOWER(c) \
5287 (('a' <= (c) && (c) <= 'i') \
5288 || ('j' <= (c) && (c) <= 'r') \
5289 || ('s' <= (c) && (c) <= 'z'))
5290 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5291 #endif
5292
5293 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5294 int
5295 main ()
5296 {
5297 int i;
5298 for (i = 0; i < 256; i++)
5299 if (XOR (islower (i), ISLOWER (i))
5300 || toupper (i) != TOUPPER (i))
5301 return 2;
5302 return 0;
5303 }
5304 _ACEOF
5305 if ac_fn_c_try_run "$LINENO"; then :
5306
5307 else
5308 ac_cv_header_stdc=no
5309 fi
5310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5311 conftest.$ac_objext conftest.beam conftest.$ac_ext
5312 fi
5313
5314 fi
5315 fi
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5317 $as_echo "$ac_cv_header_stdc" >&6; }
5318 if test $ac_cv_header_stdc = yes; then
5319
5320 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5321
5322 fi
5323
5324 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5325 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5326 inttypes.h stdint.h unistd.h
5327 do :
5328 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5329 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5330 "
5331 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5332 cat >>confdefs.h <<_ACEOF
5333 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5334 _ACEOF
5335
5336 fi
5337
5338 done
5339
5340
5341
5342 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5343 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5344 MINIX=yes
5345 else
5346 MINIX=
5347 fi
5348
5349
5350 if test "$MINIX" = yes; then
5351
5352 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5353
5354
5355 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5356
5357
5358 $as_echo "#define _MINIX 1" >>confdefs.h
5359
5360 fi
5361
5362
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5364 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5365 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5366 $as_echo_n "(cached) " >&6
5367 else
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h. */
5370
5371 # define __EXTENSIONS__ 1
5372 $ac_includes_default
5373 int
5374 main ()
5375 {
5376
5377 ;
5378 return 0;
5379 }
5380 _ACEOF
5381 if ac_fn_c_try_compile "$LINENO"; then :
5382 ac_cv_safe_to_define___extensions__=yes
5383 else
5384 ac_cv_safe_to_define___extensions__=no
5385 fi
5386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5387 fi
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5389 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5390 test $ac_cv_safe_to_define___extensions__ = yes &&
5391 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5392
5393 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5394
5395 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5396
5397 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5398
5399 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5413 if test -n "$ac_tool_prefix"; then
5414 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5415 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5417 $as_echo_n "checking for $ac_word... " >&6; }
5418 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5419 $as_echo_n "(cached) " >&6
5420 else
5421 case $PKG_CONFIG in
5422 [\\/]* | ?:[\\/]*)
5423 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5424 ;;
5425 *)
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH
5428 do
5429 IFS=$as_save_IFS
5430 test -z "$as_dir" && as_dir=.
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 break 2
5436 fi
5437 done
5438 done
5439 IFS=$as_save_IFS
5440
5441 ;;
5442 esac
5443 fi
5444 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5445 if test -n "$PKG_CONFIG"; then
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5447 $as_echo "$PKG_CONFIG" >&6; }
5448 else
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5451 fi
5452
5453
5454 fi
5455 if test -z "$ac_cv_path_PKG_CONFIG"; then
5456 ac_pt_PKG_CONFIG=$PKG_CONFIG
5457 # Extract the first word of "pkg-config", so it can be a program name with args.
5458 set dummy pkg-config; ac_word=$2
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5460 $as_echo_n "checking for $ac_word... " >&6; }
5461 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5462 $as_echo_n "(cached) " >&6
5463 else
5464 case $ac_pt_PKG_CONFIG in
5465 [\\/]* | ?:[\\/]*)
5466 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5467 ;;
5468 *)
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5471 do
5472 IFS=$as_save_IFS
5473 test -z "$as_dir" && as_dir=.
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5476 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 break 2
5479 fi
5480 done
5481 done
5482 IFS=$as_save_IFS
5483
5484 ;;
5485 esac
5486 fi
5487 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5488 if test -n "$ac_pt_PKG_CONFIG"; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5490 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5491 else
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5494 fi
5495
5496 if test "x$ac_pt_PKG_CONFIG" = x; then
5497 PKG_CONFIG=""
5498 else
5499 case $cross_compiling:$ac_tool_warned in
5500 yes:)
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5503 ac_tool_warned=yes ;;
5504 esac
5505 PKG_CONFIG=$ac_pt_PKG_CONFIG
5506 fi
5507 else
5508 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5509 fi
5510
5511 fi
5512 if test -n "$PKG_CONFIG"; then
5513 _pkg_min_version=0.9.0
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5515 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5516 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5518 $as_echo "yes" >&6; }
5519 else
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521 $as_echo "no" >&6; }
5522 PKG_CONFIG=""
5523 fi
5524 fi
5525
5526 case `pwd` in
5527 *\ * | *\ *)
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5529 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5530 esac
5531
5532
5533
5534 macro_version='2.2.7a'
5535 macro_revision='1.3134'
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549 ltmain="$ac_aux_dir/ltmain.sh"
5550
5551 # Backslashify metacharacters that are still active within
5552 # double-quoted strings.
5553 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5554
5555 # Same as above, but do not quote variable references.
5556 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5557
5558 # Sed substitution to delay expansion of an escaped shell variable in a
5559 # double_quote_subst'ed string.
5560 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5561
5562 # Sed substitution to delay expansion of an escaped single quote.
5563 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5564
5565 # Sed substitution to avoid accidental globbing in evaled expressions
5566 no_glob_subst='s/\*/\\\*/g'
5567
5568 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5569 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5570 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5571
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5573 $as_echo_n "checking how to print strings... " >&6; }
5574 # Test print first, because it will be a builtin if present.
5575 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5576 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5577 ECHO='print -r --'
5578 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5579 ECHO='printf %s\n'
5580 else
5581 # Use this function as a fallback that always works.
5582 func_fallback_echo ()
5583 {
5584 eval 'cat <<_LTECHO_EOF
5585 $1
5586 _LTECHO_EOF'
5587 }
5588 ECHO='func_fallback_echo'
5589 fi
5590
5591 # func_echo_all arg...
5592 # Invoke $ECHO with all args, space-separated.
5593 func_echo_all ()
5594 {
5595 $ECHO ""
5596 }
5597
5598 case "$ECHO" in
5599 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5600 $as_echo "printf" >&6; } ;;
5601 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5602 $as_echo "print -r" >&6; } ;;
5603 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5604 $as_echo "cat" >&6; } ;;
5605 esac
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5621 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5622 if ${ac_cv_path_SED+:} false; then :
5623 $as_echo_n "(cached) " >&6
5624 else
5625 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5626 for ac_i in 1 2 3 4 5 6 7; do
5627 ac_script="$ac_script$as_nl$ac_script"
5628 done
5629 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5630 { ac_script=; unset ac_script;}
5631 if test -z "$SED"; then
5632 ac_path_SED_found=false
5633 # Loop through the user's path and test for each of PROGNAME-LIST
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 for as_dir in $PATH
5636 do
5637 IFS=$as_save_IFS
5638 test -z "$as_dir" && as_dir=.
5639 for ac_prog in sed gsed; do
5640 for ac_exec_ext in '' $ac_executable_extensions; do
5641 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5642 as_fn_executable_p "$ac_path_SED" || continue
5643 # Check for GNU ac_path_SED and select it if it is found.
5644 # Check for GNU $ac_path_SED
5645 case `"$ac_path_SED" --version 2>&1` in
5646 *GNU*)
5647 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5648 *)
5649 ac_count=0
5650 $as_echo_n 0123456789 >"conftest.in"
5651 while :
5652 do
5653 cat "conftest.in" "conftest.in" >"conftest.tmp"
5654 mv "conftest.tmp" "conftest.in"
5655 cp "conftest.in" "conftest.nl"
5656 $as_echo '' >> "conftest.nl"
5657 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5659 as_fn_arith $ac_count + 1 && ac_count=$as_val
5660 if test $ac_count -gt ${ac_path_SED_max-0}; then
5661 # Best one so far, save it but keep looking for a better one
5662 ac_cv_path_SED="$ac_path_SED"
5663 ac_path_SED_max=$ac_count
5664 fi
5665 # 10*(2^10) chars as input seems more than enough
5666 test $ac_count -gt 10 && break
5667 done
5668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5669 esac
5670
5671 $ac_path_SED_found && break 3
5672 done
5673 done
5674 done
5675 IFS=$as_save_IFS
5676 if test -z "$ac_cv_path_SED"; then
5677 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5678 fi
5679 else
5680 ac_cv_path_SED=$SED
5681 fi
5682
5683 fi
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5685 $as_echo "$ac_cv_path_SED" >&6; }
5686 SED="$ac_cv_path_SED"
5687 rm -f conftest.sed
5688
5689 test -z "$SED" && SED=sed
5690 Xsed="$SED -e 1s/^X//"
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5703 $as_echo_n "checking for fgrep... " >&6; }
5704 if ${ac_cv_path_FGREP+:} false; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5708 then ac_cv_path_FGREP="$GREP -F"
5709 else
5710 if test -z "$FGREP"; then
5711 ac_path_FGREP_found=false
5712 # Loop through the user's path and test for each of PROGNAME-LIST
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5715 do
5716 IFS=$as_save_IFS
5717 test -z "$as_dir" && as_dir=.
5718 for ac_prog in fgrep; do
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5721 as_fn_executable_p "$ac_path_FGREP" || continue
5722 # Check for GNU ac_path_FGREP and select it if it is found.
5723 # Check for GNU $ac_path_FGREP
5724 case `"$ac_path_FGREP" --version 2>&1` in
5725 *GNU*)
5726 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5727 *)
5728 ac_count=0
5729 $as_echo_n 0123456789 >"conftest.in"
5730 while :
5731 do
5732 cat "conftest.in" "conftest.in" >"conftest.tmp"
5733 mv "conftest.tmp" "conftest.in"
5734 cp "conftest.in" "conftest.nl"
5735 $as_echo 'FGREP' >> "conftest.nl"
5736 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5737 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5738 as_fn_arith $ac_count + 1 && ac_count=$as_val
5739 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5740 # Best one so far, save it but keep looking for a better one
5741 ac_cv_path_FGREP="$ac_path_FGREP"
5742 ac_path_FGREP_max=$ac_count
5743 fi
5744 # 10*(2^10) chars as input seems more than enough
5745 test $ac_count -gt 10 && break
5746 done
5747 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5748 esac
5749
5750 $ac_path_FGREP_found && break 3
5751 done
5752 done
5753 done
5754 IFS=$as_save_IFS
5755 if test -z "$ac_cv_path_FGREP"; then
5756 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5757 fi
5758 else
5759 ac_cv_path_FGREP=$FGREP
5760 fi
5761
5762 fi
5763 fi
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5765 $as_echo "$ac_cv_path_FGREP" >&6; }
5766 FGREP="$ac_cv_path_FGREP"
5767
5768
5769 test -z "$GREP" && GREP=grep
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789 # Check whether --with-gnu-ld was given.
5790 if test "${with_gnu_ld+set}" = set; then :
5791 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5792 else
5793 with_gnu_ld=no
5794 fi
5795
5796 ac_prog=ld
5797 if test "$GCC" = yes; then
5798 # Check if gcc -print-prog-name=ld gives a path.
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5800 $as_echo_n "checking for ld used by $CC... " >&6; }
5801 case $host in
5802 *-*-mingw*)
5803 # gcc leaves a trailing carriage return which upsets mingw
5804 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5805 *)
5806 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5807 esac
5808 case $ac_prog in
5809 # Accept absolute paths.
5810 [\\/]* | ?:[\\/]*)
5811 re_direlt='/[^/][^/]*/\.\./'
5812 # Canonicalize the pathname of ld
5813 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5814 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5815 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5816 done
5817 test -z "$LD" && LD="$ac_prog"
5818 ;;
5819 "")
5820 # If it fails, then pretend we aren't using GCC.
5821 ac_prog=ld
5822 ;;
5823 *)
5824 # If it is relative, then search for the first ld in PATH.
5825 with_gnu_ld=unknown
5826 ;;
5827 esac
5828 elif test "$with_gnu_ld" = yes; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5830 $as_echo_n "checking for GNU ld... " >&6; }
5831 else
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5833 $as_echo_n "checking for non-GNU ld... " >&6; }
5834 fi
5835 if ${lt_cv_path_LD+:} false; then :
5836 $as_echo_n "(cached) " >&6
5837 else
5838 if test -z "$LD"; then
5839 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5840 for ac_dir in $PATH; do
5841 IFS="$lt_save_ifs"
5842 test -z "$ac_dir" && ac_dir=.
5843 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5844 lt_cv_path_LD="$ac_dir/$ac_prog"
5845 # Check to see if the program is GNU ld. I'd rather use --version,
5846 # but apparently some variants of GNU ld only accept -v.
5847 # Break only if it was the GNU/non-GNU ld that we prefer.
5848 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5849 *GNU* | *'with BFD'*)
5850 test "$with_gnu_ld" != no && break
5851 ;;
5852 *)
5853 test "$with_gnu_ld" != yes && break
5854 ;;
5855 esac
5856 fi
5857 done
5858 IFS="$lt_save_ifs"
5859 else
5860 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5861 fi
5862 fi
5863
5864 LD="$lt_cv_path_LD"
5865 if test -n "$LD"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5867 $as_echo "$LD" >&6; }
5868 else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5871 fi
5872 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5874 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5875 if ${lt_cv_prog_gnu_ld+:} false; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5879 case `$LD -v 2>&1 </dev/null` in
5880 *GNU* | *'with BFD'*)
5881 lt_cv_prog_gnu_ld=yes
5882 ;;
5883 *)
5884 lt_cv_prog_gnu_ld=no
5885 ;;
5886 esac
5887 fi
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5889 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5890 with_gnu_ld=$lt_cv_prog_gnu_ld
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5901 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5902 if ${lt_cv_path_NM+:} false; then :
5903 $as_echo_n "(cached) " >&6
5904 else
5905 if test -n "$NM"; then
5906 # Let the user override the nm to test.
5907 lt_nm_to_check="$NM"
5908 else
5909 lt_nm_to_check="${ac_tool_prefix}nm"
5910 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5911 lt_nm_to_check="$lt_nm_to_check nm"
5912 fi
5913 fi
5914 for lt_tmp_nm in "$lt_nm_to_check"; do
5915 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5916 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5917 IFS="$lt_save_ifs"
5918 test -z "$ac_dir" && ac_dir=.
5919 # Strip out any user-provided options from the nm to test twice,
5920 # the first time to test to see if nm (rather than its options) has
5921 # an explicit path, the second time to yield a file which can be
5922 # nm'ed itself.
5923 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5924 case "$tmp_nm_path" in
5925 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5926 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5927 esac
5928 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5929 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5930 # Check to see if the nm accepts a BSD-compat flag.
5931 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5932 # nm: unknown option "B" ignored
5933 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5934 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5935 break
5936 ;;
5937 *)
5938 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5939 *$tmp_nm*)
5940 lt_cv_path_NM="$tmp_nm -p"
5941 break
5942 ;;
5943 *)
5944 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5945 continue # so that we can try to find one that supports BSD flags
5946 ;;
5947 esac
5948 ;;
5949 esac
5950 fi
5951 done
5952 IFS="$lt_save_ifs"
5953 done
5954 : ${lt_cv_path_NM=no}
5955 fi
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5957 $as_echo "$lt_cv_path_NM" >&6; }
5958 if test "$lt_cv_path_NM" != "no"; then
5959 NM="$lt_cv_path_NM"
5960 else
5961 # Didn't find any BSD compatible name lister, look for dumpbin.
5962 if test -n "$DUMPBIN"; then :
5963 # Let the user override the test.
5964 else
5965 if test -n "$ac_tool_prefix"; then
5966 for ac_prog in dumpbin "link -dump"
5967 do
5968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5971 $as_echo_n "checking for $ac_word... " >&6; }
5972 if ${ac_cv_prog_DUMPBIN+:} false; then :
5973 $as_echo_n "(cached) " >&6
5974 else
5975 if test -n "$DUMPBIN"; then
5976 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5977 else
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 for as_dir in $PATH
5980 do
5981 IFS=$as_save_IFS
5982 test -z "$as_dir" && as_dir=.
5983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5985 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5987 break 2
5988 fi
5989 done
5990 done
5991 IFS=$as_save_IFS
5992
5993 fi
5994 fi
5995 DUMPBIN=$ac_cv_prog_DUMPBIN
5996 if test -n "$DUMPBIN"; then
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5998 $as_echo "$DUMPBIN" >&6; }
5999 else
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6001 $as_echo "no" >&6; }
6002 fi
6003
6004
6005 test -n "$DUMPBIN" && break
6006 done
6007 fi
6008 if test -z "$DUMPBIN"; then
6009 ac_ct_DUMPBIN=$DUMPBIN
6010 for ac_prog in dumpbin "link -dump"
6011 do
6012 # Extract the first word of "$ac_prog", so it can be a program name with args.
6013 set dummy $ac_prog; ac_word=$2
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6015 $as_echo_n "checking for $ac_word... " >&6; }
6016 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6017 $as_echo_n "(cached) " >&6
6018 else
6019 if test -n "$ac_ct_DUMPBIN"; then
6020 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6021 else
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 for as_dir in $PATH
6024 do
6025 IFS=$as_save_IFS
6026 test -z "$as_dir" && as_dir=.
6027 for ac_exec_ext in '' $ac_executable_extensions; do
6028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6029 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6031 break 2
6032 fi
6033 done
6034 done
6035 IFS=$as_save_IFS
6036
6037 fi
6038 fi
6039 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6040 if test -n "$ac_ct_DUMPBIN"; then
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6042 $as_echo "$ac_ct_DUMPBIN" >&6; }
6043 else
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6045 $as_echo "no" >&6; }
6046 fi
6047
6048
6049 test -n "$ac_ct_DUMPBIN" && break
6050 done
6051
6052 if test "x$ac_ct_DUMPBIN" = x; then
6053 DUMPBIN=":"
6054 else
6055 case $cross_compiling:$ac_tool_warned in
6056 yes:)
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6059 ac_tool_warned=yes ;;
6060 esac
6061 DUMPBIN=$ac_ct_DUMPBIN
6062 fi
6063 fi
6064
6065 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6066 *COFF*)
6067 DUMPBIN="$DUMPBIN -symbols"
6068 ;;
6069 *)
6070 DUMPBIN=:
6071 ;;
6072 esac
6073 fi
6074
6075 if test "$DUMPBIN" != ":"; then
6076 NM="$DUMPBIN"
6077 fi
6078 fi
6079 test -z "$NM" && NM=nm
6080
6081
6082
6083
6084
6085
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6087 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6088 if ${lt_cv_nm_interface+:} false; then :
6089 $as_echo_n "(cached) " >&6
6090 else
6091 lt_cv_nm_interface="BSD nm"
6092 echo "int some_variable = 0;" > conftest.$ac_ext
6093 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6094 (eval "$ac_compile" 2>conftest.err)
6095 cat conftest.err >&5
6096 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6097 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6098 cat conftest.err >&5
6099 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6100 cat conftest.out >&5
6101 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6102 lt_cv_nm_interface="MS dumpbin"
6103 fi
6104 rm -f conftest*
6105 fi
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6107 $as_echo "$lt_cv_nm_interface" >&6; }
6108
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6110 $as_echo_n "checking whether ln -s works... " >&6; }
6111 LN_S=$as_ln_s
6112 if test "$LN_S" = "ln -s"; then
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6114 $as_echo "yes" >&6; }
6115 else
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6117 $as_echo "no, using $LN_S" >&6; }
6118 fi
6119
6120 # find the maximum length of command line arguments
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6122 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6123 if ${lt_cv_sys_max_cmd_len+:} false; then :
6124 $as_echo_n "(cached) " >&6
6125 else
6126 i=0
6127 teststring="ABCD"
6128
6129 case $build_os in
6130 msdosdjgpp*)
6131 # On DJGPP, this test can blow up pretty badly due to problems in libc
6132 # (any single argument exceeding 2000 bytes causes a buffer overrun
6133 # during glob expansion). Even if it were fixed, the result of this
6134 # check would be larger than it should be.
6135 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6136 ;;
6137
6138 gnu*)
6139 # Under GNU Hurd, this test is not required because there is
6140 # no limit to the length of command line arguments.
6141 # Libtool will interpret -1 as no limit whatsoever
6142 lt_cv_sys_max_cmd_len=-1;
6143 ;;
6144
6145 cygwin* | mingw* | cegcc*)
6146 # On Win9x/ME, this test blows up -- it succeeds, but takes
6147 # about 5 minutes as the teststring grows exponentially.
6148 # Worse, since 9x/ME are not pre-emptively multitasking,
6149 # you end up with a "frozen" computer, even though with patience
6150 # the test eventually succeeds (with a max line length of 256k).
6151 # Instead, let's just punt: use the minimum linelength reported by
6152 # all of the supported platforms: 8192 (on NT/2K/XP).
6153 lt_cv_sys_max_cmd_len=8192;
6154 ;;
6155
6156 mint*)
6157 # On MiNT this can take a long time and run out of memory.
6158 lt_cv_sys_max_cmd_len=8192;
6159 ;;
6160
6161 amigaos*)
6162 # On AmigaOS with pdksh, this test takes hours, literally.
6163 # So we just punt and use a minimum line length of 8192.
6164 lt_cv_sys_max_cmd_len=8192;
6165 ;;
6166
6167 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6168 # This has been around since 386BSD, at least. Likely further.
6169 if test -x /sbin/sysctl; then
6170 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6171 elif test -x /usr/sbin/sysctl; then
6172 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6173 else
6174 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6175 fi
6176 # And add a safety zone
6177 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6178 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6179 ;;
6180
6181 interix*)
6182 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6183 lt_cv_sys_max_cmd_len=196608
6184 ;;
6185
6186 osf*)
6187 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6188 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6189 # nice to cause kernel panics so lets avoid the loop below.
6190 # First set a reasonable default.
6191 lt_cv_sys_max_cmd_len=16384
6192 #
6193 if test -x /sbin/sysconfig; then
6194 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6195 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6196 esac
6197 fi
6198 ;;
6199 sco3.2v5*)
6200 lt_cv_sys_max_cmd_len=102400
6201 ;;
6202 sysv5* | sco5v6* | sysv4.2uw2*)
6203 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6204 if test -n "$kargmax"; then
6205 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6206 else
6207 lt_cv_sys_max_cmd_len=32768
6208 fi
6209 ;;
6210 *)
6211 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6212 if test -n "$lt_cv_sys_max_cmd_len"; then
6213 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6214 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6215 else
6216 # Make teststring a little bigger before we do anything with it.
6217 # a 1K string should be a reasonable start.
6218 for i in 1 2 3 4 5 6 7 8 ; do
6219 teststring=$teststring$teststring
6220 done
6221 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6222 # If test is not a shell built-in, we'll probably end up computing a
6223 # maximum length that is only half of the actual maximum length, but
6224 # we can't tell.
6225 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6226 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6227 test $i != 17 # 1/2 MB should be enough
6228 do
6229 i=`expr $i + 1`
6230 teststring=$teststring$teststring
6231 done
6232 # Only check the string length outside the loop.
6233 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6234 teststring=
6235 # Add a significant safety factor because C++ compilers can tack on
6236 # massive amounts of additional arguments before passing them to the
6237 # linker. It appears as though 1/2 is a usable value.
6238 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6239 fi
6240 ;;
6241 esac
6242
6243 fi
6244
6245 if test -n $lt_cv_sys_max_cmd_len ; then
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6247 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6248 else
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6250 $as_echo "none" >&6; }
6251 fi
6252 max_cmd_len=$lt_cv_sys_max_cmd_len
6253
6254
6255
6256
6257
6258
6259 : ${CP="cp -f"}
6260 : ${MV="mv -f"}
6261 : ${RM="rm -f"}
6262
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6264 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6265 # Try some XSI features
6266 xsi_shell=no
6267 ( _lt_dummy="a/b/c"
6268 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6269 = c,a/b,, \
6270 && eval 'test $(( 1 + 1 )) -eq 2 \
6271 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6272 && xsi_shell=yes
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6274 $as_echo "$xsi_shell" >&6; }
6275
6276
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6278 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6279 lt_shell_append=no
6280 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6281 >/dev/null 2>&1 \
6282 && lt_shell_append=yes
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6284 $as_echo "$lt_shell_append" >&6; }
6285
6286
6287 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6288 lt_unset=unset
6289 else
6290 lt_unset=false
6291 fi
6292
6293
6294
6295
6296
6297 # test EBCDIC or ASCII
6298 case `echo X|tr X '\101'` in
6299 A) # ASCII based system
6300 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6301 lt_SP2NL='tr \040 \012'
6302 lt_NL2SP='tr \015\012 \040\040'
6303 ;;
6304 *) # EBCDIC based system
6305 lt_SP2NL='tr \100 \n'
6306 lt_NL2SP='tr \r\n \100\100'
6307 ;;
6308 esac
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6319 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6320 if ${lt_cv_ld_reload_flag+:} false; then :
6321 $as_echo_n "(cached) " >&6
6322 else
6323 lt_cv_ld_reload_flag='-r'
6324 fi
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6326 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6327 reload_flag=$lt_cv_ld_reload_flag
6328 case $reload_flag in
6329 "" | " "*) ;;
6330 *) reload_flag=" $reload_flag" ;;
6331 esac
6332 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6333 case $host_os in
6334 darwin*)
6335 if test "$GCC" = yes; then
6336 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6337 else
6338 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6339 fi
6340 ;;
6341 esac
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351 if test -n "$ac_tool_prefix"; then
6352 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6353 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6355 $as_echo_n "checking for $ac_word... " >&6; }
6356 if ${ac_cv_prog_OBJDUMP+:} false; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 if test -n "$OBJDUMP"; then
6360 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6361 else
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH
6364 do
6365 IFS=$as_save_IFS
6366 test -z "$as_dir" && as_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6369 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 break 2
6372 fi
6373 done
6374 done
6375 IFS=$as_save_IFS
6376
6377 fi
6378 fi
6379 OBJDUMP=$ac_cv_prog_OBJDUMP
6380 if test -n "$OBJDUMP"; then
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6382 $as_echo "$OBJDUMP" >&6; }
6383 else
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385 $as_echo "no" >&6; }
6386 fi
6387
6388
6389 fi
6390 if test -z "$ac_cv_prog_OBJDUMP"; then
6391 ac_ct_OBJDUMP=$OBJDUMP
6392 # Extract the first word of "objdump", so it can be a program name with args.
6393 set dummy objdump; ac_word=$2
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6395 $as_echo_n "checking for $ac_word... " >&6; }
6396 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6397 $as_echo_n "(cached) " >&6
6398 else
6399 if test -n "$ac_ct_OBJDUMP"; then
6400 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6401 else
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 for as_dir in $PATH
6404 do
6405 IFS=$as_save_IFS
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6409 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 break 2
6412 fi
6413 done
6414 done
6415 IFS=$as_save_IFS
6416
6417 fi
6418 fi
6419 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6420 if test -n "$ac_ct_OBJDUMP"; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6422 $as_echo "$ac_ct_OBJDUMP" >&6; }
6423 else
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425 $as_echo "no" >&6; }
6426 fi
6427
6428 if test "x$ac_ct_OBJDUMP" = x; then
6429 OBJDUMP="false"
6430 else
6431 case $cross_compiling:$ac_tool_warned in
6432 yes:)
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6435 ac_tool_warned=yes ;;
6436 esac
6437 OBJDUMP=$ac_ct_OBJDUMP
6438 fi
6439 else
6440 OBJDUMP="$ac_cv_prog_OBJDUMP"
6441 fi
6442
6443 test -z "$OBJDUMP" && OBJDUMP=objdump
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6454 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6455 if ${lt_cv_deplibs_check_method+:} false; then :
6456 $as_echo_n "(cached) " >&6
6457 else
6458 lt_cv_file_magic_cmd='$MAGIC_CMD'
6459 lt_cv_file_magic_test_file=
6460 lt_cv_deplibs_check_method='unknown'
6461 # Need to set the preceding variable on all platforms that support
6462 # interlibrary dependencies.
6463 # 'none' -- dependencies not supported.
6464 # `unknown' -- same as none, but documents that we really don't know.
6465 # 'pass_all' -- all dependencies passed with no checks.
6466 # 'test_compile' -- check by making test program.
6467 # 'file_magic [[regex]]' -- check by looking for files in library path
6468 # which responds to the $file_magic_cmd with a given extended regex.
6469 # If you have `file' or equivalent on your system and you're not sure
6470 # whether `pass_all' will *always* work, you probably want this one.
6471
6472 case $host_os in
6473 aix[4-9]*)
6474 lt_cv_deplibs_check_method=pass_all
6475 ;;
6476
6477 beos*)
6478 lt_cv_deplibs_check_method=pass_all
6479 ;;
6480
6481 bsdi[45]*)
6482 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6483 lt_cv_file_magic_cmd='/usr/bin/file -L'
6484 lt_cv_file_magic_test_file=/shlib/libc.so
6485 ;;
6486
6487 cygwin*)
6488 # func_win32_libid is a shell function defined in ltmain.sh
6489 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6490 lt_cv_file_magic_cmd='func_win32_libid'
6491 ;;
6492
6493 mingw* | pw32*)
6494 # Base MSYS/MinGW do not provide the 'file' command needed by
6495 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6496 # unless we find 'file', for example because we are cross-compiling.
6497 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6498 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6499 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6500 lt_cv_file_magic_cmd='func_win32_libid'
6501 else
6502 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6503 lt_cv_file_magic_cmd='$OBJDUMP -f'
6504 fi
6505 ;;
6506
6507 cegcc*)
6508 # use the weaker test based on 'objdump'. See mingw*.
6509 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6510 lt_cv_file_magic_cmd='$OBJDUMP -f'
6511 ;;
6512
6513 darwin* | rhapsody*)
6514 lt_cv_deplibs_check_method=pass_all
6515 ;;
6516
6517 freebsd* | dragonfly*)
6518 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6519 case $host_cpu in
6520 i*86 )
6521 # Not sure whether the presence of OpenBSD here was a mistake.
6522 # Let's accept both of them until this is cleared up.
6523 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6524 lt_cv_file_magic_cmd=/usr/bin/file
6525 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6526 ;;
6527 esac
6528 else
6529 lt_cv_deplibs_check_method=pass_all
6530 fi
6531 ;;
6532
6533 gnu*)
6534 lt_cv_deplibs_check_method=pass_all
6535 ;;
6536
6537 haiku*)
6538 lt_cv_deplibs_check_method=pass_all
6539 ;;
6540
6541 hpux10.20* | hpux11*)
6542 lt_cv_file_magic_cmd=/usr/bin/file
6543 case $host_cpu in
6544 ia64*)
6545 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6546 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6547 ;;
6548 hppa*64*)
6549 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]'
6550 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6551 ;;
6552 *)
6553 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6554 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6555 ;;
6556 esac
6557 ;;
6558
6559 interix[3-9]*)
6560 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6561 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6562 ;;
6563
6564 irix5* | irix6* | nonstopux*)
6565 case $LD in
6566 *-32|*"-32 ") libmagic=32-bit;;
6567 *-n32|*"-n32 ") libmagic=N32;;
6568 *-64|*"-64 ") libmagic=64-bit;;
6569 *) libmagic=never-match;;
6570 esac
6571 lt_cv_deplibs_check_method=pass_all
6572 ;;
6573
6574 # This must be Linux ELF.
6575 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6576 lt_cv_deplibs_check_method=pass_all
6577 ;;
6578
6579 netbsd*)
6580 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6581 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6582 else
6583 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6584 fi
6585 ;;
6586
6587 newos6*)
6588 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6589 lt_cv_file_magic_cmd=/usr/bin/file
6590 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6591 ;;
6592
6593 *nto* | *qnx*)
6594 lt_cv_deplibs_check_method=pass_all
6595 ;;
6596
6597 openbsd*)
6598 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6599 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6600 else
6601 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6602 fi
6603 ;;
6604
6605 osf3* | osf4* | osf5*)
6606 lt_cv_deplibs_check_method=pass_all
6607 ;;
6608
6609 rdos*)
6610 lt_cv_deplibs_check_method=pass_all
6611 ;;
6612
6613 solaris*)
6614 lt_cv_deplibs_check_method=pass_all
6615 ;;
6616
6617 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6618 lt_cv_deplibs_check_method=pass_all
6619 ;;
6620
6621 sysv4 | sysv4.3*)
6622 case $host_vendor in
6623 motorola)
6624 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]'
6625 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6626 ;;
6627 ncr)
6628 lt_cv_deplibs_check_method=pass_all
6629 ;;
6630 sequent)
6631 lt_cv_file_magic_cmd='/bin/file'
6632 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6633 ;;
6634 sni)
6635 lt_cv_file_magic_cmd='/bin/file'
6636 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6637 lt_cv_file_magic_test_file=/lib/libc.so
6638 ;;
6639 siemens)
6640 lt_cv_deplibs_check_method=pass_all
6641 ;;
6642 pc)
6643 lt_cv_deplibs_check_method=pass_all
6644 ;;
6645 esac
6646 ;;
6647
6648 tpf*)
6649 lt_cv_deplibs_check_method=pass_all
6650 ;;
6651 vxworks*)
6652 # Assume VxWorks cross toolchains are built on Linux, possibly
6653 # as canadian for Windows hosts.
6654 lt_cv_deplibs_check_method=pass_all
6655 ;;
6656 esac
6657
6658 fi
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6660 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6661 file_magic_cmd=$lt_cv_file_magic_cmd
6662 deplibs_check_method=$lt_cv_deplibs_check_method
6663 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676 plugin_option=
6677 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6678 for plugin in $plugin_names; do
6679 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6680 if test x$plugin_so = x$plugin; then
6681 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6682 fi
6683 if test x$plugin_so != x$plugin; then
6684 plugin_option="--plugin $plugin_so"
6685 break
6686 fi
6687 done
6688
6689 if test -n "$ac_tool_prefix"; then
6690 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6691 set dummy ${ac_tool_prefix}ar; ac_word=$2
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693 $as_echo_n "checking for $ac_word... " >&6; }
6694 if ${ac_cv_prog_AR+:} false; then :
6695 $as_echo_n "(cached) " >&6
6696 else
6697 if test -n "$AR"; then
6698 ac_cv_prog_AR="$AR" # Let the user override the test.
6699 else
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 for as_dir in $PATH
6702 do
6703 IFS=$as_save_IFS
6704 test -z "$as_dir" && as_dir=.
6705 for ac_exec_ext in '' $ac_executable_extensions; do
6706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6707 ac_cv_prog_AR="${ac_tool_prefix}ar"
6708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 break 2
6710 fi
6711 done
6712 done
6713 IFS=$as_save_IFS
6714
6715 fi
6716 fi
6717 AR=$ac_cv_prog_AR
6718 if test -n "$AR"; then
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6720 $as_echo "$AR" >&6; }
6721 else
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6723 $as_echo "no" >&6; }
6724 fi
6725
6726
6727 fi
6728 if test -z "$ac_cv_prog_AR"; then
6729 ac_ct_AR=$AR
6730 # Extract the first word of "ar", so it can be a program name with args.
6731 set dummy ar; ac_word=$2
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 $as_echo_n "checking for $ac_word... " >&6; }
6734 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6735 $as_echo_n "(cached) " >&6
6736 else
6737 if test -n "$ac_ct_AR"; then
6738 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6739 else
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6742 do
6743 IFS=$as_save_IFS
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6747 ac_cv_prog_ac_ct_AR="ar"
6748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 break 2
6750 fi
6751 done
6752 done
6753 IFS=$as_save_IFS
6754
6755 fi
6756 fi
6757 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6758 if test -n "$ac_ct_AR"; then
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6760 $as_echo "$ac_ct_AR" >&6; }
6761 else
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763 $as_echo "no" >&6; }
6764 fi
6765
6766 if test "x$ac_ct_AR" = x; then
6767 AR="false"
6768 else
6769 case $cross_compiling:$ac_tool_warned in
6770 yes:)
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6773 ac_tool_warned=yes ;;
6774 esac
6775 AR=$ac_ct_AR
6776 fi
6777 else
6778 AR="$ac_cv_prog_AR"
6779 fi
6780
6781 test -z "$AR" && AR=ar
6782 if test -n "$plugin_option"; then
6783 if $AR --help 2>&1 | grep -q "\--plugin"; then
6784 touch conftest.c
6785 $AR $plugin_option rc conftest.a conftest.c
6786 if test "$?" != 0; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6788 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6789 else
6790 AR="$AR $plugin_option"
6791 fi
6792 rm -f conftest.*
6793 fi
6794 fi
6795 test -z "$AR_FLAGS" && AR_FLAGS=cru
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807 if test -n "$ac_tool_prefix"; then
6808 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6809 set dummy ${ac_tool_prefix}strip; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if ${ac_cv_prog_STRIP+:} false; then :
6813 $as_echo_n "(cached) " >&6
6814 else
6815 if test -n "$STRIP"; then
6816 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6817 else
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6820 do
6821 IFS=$as_save_IFS
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827 break 2
6828 fi
6829 done
6830 done
6831 IFS=$as_save_IFS
6832
6833 fi
6834 fi
6835 STRIP=$ac_cv_prog_STRIP
6836 if test -n "$STRIP"; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6838 $as_echo "$STRIP" >&6; }
6839 else
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6842 fi
6843
6844
6845 fi
6846 if test -z "$ac_cv_prog_STRIP"; then
6847 ac_ct_STRIP=$STRIP
6848 # Extract the first word of "strip", so it can be a program name with args.
6849 set dummy strip; ac_word=$2
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6851 $as_echo_n "checking for $ac_word... " >&6; }
6852 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6853 $as_echo_n "(cached) " >&6
6854 else
6855 if test -n "$ac_ct_STRIP"; then
6856 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6857 else
6858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859 for as_dir in $PATH
6860 do
6861 IFS=$as_save_IFS
6862 test -z "$as_dir" && as_dir=.
6863 for ac_exec_ext in '' $ac_executable_extensions; do
6864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6865 ac_cv_prog_ac_ct_STRIP="strip"
6866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6867 break 2
6868 fi
6869 done
6870 done
6871 IFS=$as_save_IFS
6872
6873 fi
6874 fi
6875 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6876 if test -n "$ac_ct_STRIP"; then
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6878 $as_echo "$ac_ct_STRIP" >&6; }
6879 else
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6881 $as_echo "no" >&6; }
6882 fi
6883
6884 if test "x$ac_ct_STRIP" = x; then
6885 STRIP=":"
6886 else
6887 case $cross_compiling:$ac_tool_warned in
6888 yes:)
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6891 ac_tool_warned=yes ;;
6892 esac
6893 STRIP=$ac_ct_STRIP
6894 fi
6895 else
6896 STRIP="$ac_cv_prog_STRIP"
6897 fi
6898
6899 test -z "$STRIP" && STRIP=:
6900
6901
6902
6903
6904
6905
6906 if test -n "$ac_tool_prefix"; then
6907 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6908 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6910 $as_echo_n "checking for $ac_word... " >&6; }
6911 if ${ac_cv_prog_RANLIB+:} false; then :
6912 $as_echo_n "(cached) " >&6
6913 else
6914 if test -n "$RANLIB"; then
6915 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6916 else
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 for as_dir in $PATH
6919 do
6920 IFS=$as_save_IFS
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6924 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 break 2
6927 fi
6928 done
6929 done
6930 IFS=$as_save_IFS
6931
6932 fi
6933 fi
6934 RANLIB=$ac_cv_prog_RANLIB
6935 if test -n "$RANLIB"; then
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6937 $as_echo "$RANLIB" >&6; }
6938 else
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940 $as_echo "no" >&6; }
6941 fi
6942
6943
6944 fi
6945 if test -z "$ac_cv_prog_RANLIB"; then
6946 ac_ct_RANLIB=$RANLIB
6947 # Extract the first word of "ranlib", so it can be a program name with args.
6948 set dummy ranlib; ac_word=$2
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6950 $as_echo_n "checking for $ac_word... " >&6; }
6951 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6952 $as_echo_n "(cached) " >&6
6953 else
6954 if test -n "$ac_ct_RANLIB"; then
6955 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6956 else
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 for as_dir in $PATH
6959 do
6960 IFS=$as_save_IFS
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6964 ac_cv_prog_ac_ct_RANLIB="ranlib"
6965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 break 2
6967 fi
6968 done
6969 done
6970 IFS=$as_save_IFS
6971
6972 fi
6973 fi
6974 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6975 if test -n "$ac_ct_RANLIB"; then
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6977 $as_echo "$ac_ct_RANLIB" >&6; }
6978 else
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980 $as_echo "no" >&6; }
6981 fi
6982
6983 if test "x$ac_ct_RANLIB" = x; then
6984 RANLIB=":"
6985 else
6986 case $cross_compiling:$ac_tool_warned in
6987 yes:)
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6990 ac_tool_warned=yes ;;
6991 esac
6992 RANLIB=$ac_ct_RANLIB
6993 fi
6994 else
6995 RANLIB="$ac_cv_prog_RANLIB"
6996 fi
6997
6998 test -z "$RANLIB" && RANLIB=:
6999 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7000 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7001 RANLIB="$RANLIB $plugin_option"
7002 fi
7003 fi
7004
7005
7006
7007
7008
7009
7010 # Determine commands to create old-style static archives.
7011 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7012 old_postinstall_cmds='chmod 644 $oldlib'
7013 old_postuninstall_cmds=
7014
7015 if test -n "$RANLIB"; then
7016 case $host_os in
7017 openbsd*)
7018 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7019 ;;
7020 *)
7021 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7022 ;;
7023 esac
7024 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7025 fi
7026
7027 case $host_os in
7028 darwin*)
7029 lock_old_archive_extraction=yes ;;
7030 *)
7031 lock_old_archive_extraction=no ;;
7032 esac
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072 # If no C compiler was specified, use CC.
7073 LTCC=${LTCC-"$CC"}
7074
7075 # If no C compiler flags were specified, use CFLAGS.
7076 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7077
7078 # Allow CC to be a program name with arguments.
7079 compiler=$CC
7080
7081
7082 # Check for command to grab the raw symbol name followed by C symbol from nm.
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7084 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7085 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7086 $as_echo_n "(cached) " >&6
7087 else
7088
7089 # These are sane defaults that work on at least a few old systems.
7090 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7091
7092 # Character class describing NM global symbol codes.
7093 symcode='[BCDEGRST]'
7094
7095 # Regexp to match symbols that can be accessed directly from C.
7096 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7097
7098 # Define system-specific variables.
7099 case $host_os in
7100 aix*)
7101 symcode='[BCDT]'
7102 ;;
7103 cygwin* | mingw* | pw32* | cegcc*)
7104 symcode='[ABCDGISTW]'
7105 ;;
7106 hpux*)
7107 if test "$host_cpu" = ia64; then
7108 symcode='[ABCDEGRST]'
7109 fi
7110 ;;
7111 irix* | nonstopux*)
7112 symcode='[BCDEGRST]'
7113 ;;
7114 osf*)
7115 symcode='[BCDEGQRST]'
7116 ;;
7117 solaris*)
7118 symcode='[BCDRT]'
7119 ;;
7120 sco3.2v5*)
7121 symcode='[DT]'
7122 ;;
7123 sysv4.2uw2*)
7124 symcode='[DT]'
7125 ;;
7126 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7127 symcode='[ABDT]'
7128 ;;
7129 sysv4)
7130 symcode='[DFNSTU]'
7131 ;;
7132 esac
7133
7134 # If we're using GNU nm, then use its standard symbol codes.
7135 case `$NM -V 2>&1` in
7136 *GNU* | *'with BFD'*)
7137 symcode='[ABCDGIRSTW]' ;;
7138 esac
7139
7140 # Transform an extracted symbol line into a proper C declaration.
7141 # Some systems (esp. on ia64) link data and code symbols differently,
7142 # so use this general approach.
7143 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7144
7145 # Transform an extracted symbol line into symbol name and symbol address
7146 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7147 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'"
7148
7149 # Handle CRLF in mingw tool chain
7150 opt_cr=
7151 case $build_os in
7152 mingw*)
7153 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7154 ;;
7155 esac
7156
7157 # Try without a prefix underscore, then with it.
7158 for ac_symprfx in "" "_"; do
7159
7160 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7161 symxfrm="\\1 $ac_symprfx\\2 \\2"
7162
7163 # Write the raw and C identifiers.
7164 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7165 # Fake it for dumpbin and say T for any non-static function
7166 # and D for any global variable.
7167 # Also find C++ and __fastcall symbols from MSVC++,
7168 # which start with @ or ?.
7169 lt_cv_sys_global_symbol_pipe="$AWK '"\
7170 " {last_section=section; section=\$ 3};"\
7171 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7172 " \$ 0!~/External *\|/{next};"\
7173 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7174 " {if(hide[section]) next};"\
7175 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7176 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7177 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7178 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7179 " ' prfx=^$ac_symprfx"
7180 else
7181 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7182 fi
7183
7184 # Check to see that the pipe works correctly.
7185 pipe_works=no
7186
7187 rm -f conftest*
7188 cat > conftest.$ac_ext <<_LT_EOF
7189 #ifdef __cplusplus
7190 extern "C" {
7191 #endif
7192 char nm_test_var;
7193 void nm_test_func(void);
7194 void nm_test_func(void){}
7195 #ifdef __cplusplus
7196 }
7197 #endif
7198 int main(){nm_test_var='a';nm_test_func();return(0);}
7199 _LT_EOF
7200
7201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7202 (eval $ac_compile) 2>&5
7203 ac_status=$?
7204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7205 test $ac_status = 0; }; then
7206 # Now try to grab the symbols.
7207 nlist=conftest.nm
7208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7209 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7210 ac_status=$?
7211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7212 test $ac_status = 0; } && test -s "$nlist"; then
7213 # Try sorting and uniquifying the output.
7214 if sort "$nlist" | uniq > "$nlist"T; then
7215 mv -f "$nlist"T "$nlist"
7216 else
7217 rm -f "$nlist"T
7218 fi
7219
7220 # Make sure that we snagged all the symbols we need.
7221 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7222 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7223 cat <<_LT_EOF > conftest.$ac_ext
7224 #ifdef __cplusplus
7225 extern "C" {
7226 #endif
7227
7228 _LT_EOF
7229 # Now generate the symbol file.
7230 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7231
7232 cat <<_LT_EOF >> conftest.$ac_ext
7233
7234 /* The mapping between symbol names and symbols. */
7235 const struct {
7236 const char *name;
7237 void *address;
7238 }
7239 lt__PROGRAM__LTX_preloaded_symbols[] =
7240 {
7241 { "@PROGRAM@", (void *) 0 },
7242 _LT_EOF
7243 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7244 cat <<\_LT_EOF >> conftest.$ac_ext
7245 {0, (void *) 0}
7246 };
7247
7248 /* This works around a problem in FreeBSD linker */
7249 #ifdef FREEBSD_WORKAROUND
7250 static const void *lt_preloaded_setup() {
7251 return lt__PROGRAM__LTX_preloaded_symbols;
7252 }
7253 #endif
7254
7255 #ifdef __cplusplus
7256 }
7257 #endif
7258 _LT_EOF
7259 # Now try linking the two files.
7260 mv conftest.$ac_objext conftstm.$ac_objext
7261 lt_save_LIBS="$LIBS"
7262 lt_save_CFLAGS="$CFLAGS"
7263 LIBS="conftstm.$ac_objext"
7264 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7266 (eval $ac_link) 2>&5
7267 ac_status=$?
7268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7269 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7270 pipe_works=yes
7271 fi
7272 LIBS="$lt_save_LIBS"
7273 CFLAGS="$lt_save_CFLAGS"
7274 else
7275 echo "cannot find nm_test_func in $nlist" >&5
7276 fi
7277 else
7278 echo "cannot find nm_test_var in $nlist" >&5
7279 fi
7280 else
7281 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7282 fi
7283 else
7284 echo "$progname: failed program was:" >&5
7285 cat conftest.$ac_ext >&5
7286 fi
7287 rm -rf conftest* conftst*
7288
7289 # Do not use the global_symbol_pipe unless it works.
7290 if test "$pipe_works" = yes; then
7291 break
7292 else
7293 lt_cv_sys_global_symbol_pipe=
7294 fi
7295 done
7296
7297 fi
7298
7299 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7300 lt_cv_sys_global_symbol_to_cdecl=
7301 fi
7302 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7304 $as_echo "failed" >&6; }
7305 else
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7307 $as_echo "ok" >&6; }
7308 fi
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331 # Check whether --enable-libtool-lock was given.
7332 if test "${enable_libtool_lock+set}" = set; then :
7333 enableval=$enable_libtool_lock;
7334 fi
7335
7336 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7337
7338 # Some flags need to be propagated to the compiler or linker for good
7339 # libtool support.
7340 case $host in
7341 ia64-*-hpux*)
7342 # Find out which ABI we are using.
7343 echo 'int i;' > conftest.$ac_ext
7344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7345 (eval $ac_compile) 2>&5
7346 ac_status=$?
7347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7348 test $ac_status = 0; }; then
7349 case `/usr/bin/file conftest.$ac_objext` in
7350 *ELF-32*)
7351 HPUX_IA64_MODE="32"
7352 ;;
7353 *ELF-64*)
7354 HPUX_IA64_MODE="64"
7355 ;;
7356 esac
7357 fi
7358 rm -rf conftest*
7359 ;;
7360 *-*-irix6*)
7361 # Find out which ABI we are using.
7362 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7364 (eval $ac_compile) 2>&5
7365 ac_status=$?
7366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7367 test $ac_status = 0; }; then
7368 if test "$lt_cv_prog_gnu_ld" = yes; then
7369 case `/usr/bin/file conftest.$ac_objext` in
7370 *32-bit*)
7371 LD="${LD-ld} -melf32bsmip"
7372 ;;
7373 *N32*)
7374 LD="${LD-ld} -melf32bmipn32"
7375 ;;
7376 *64-bit*)
7377 LD="${LD-ld} -melf64bmip"
7378 ;;
7379 esac
7380 else
7381 case `/usr/bin/file conftest.$ac_objext` in
7382 *32-bit*)
7383 LD="${LD-ld} -32"
7384 ;;
7385 *N32*)
7386 LD="${LD-ld} -n32"
7387 ;;
7388 *64-bit*)
7389 LD="${LD-ld} -64"
7390 ;;
7391 esac
7392 fi
7393 fi
7394 rm -rf conftest*
7395 ;;
7396
7397 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7398 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7399 # Find out which ABI we are using.
7400 echo 'int i;' > conftest.$ac_ext
7401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7402 (eval $ac_compile) 2>&5
7403 ac_status=$?
7404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7405 test $ac_status = 0; }; then
7406 case `/usr/bin/file conftest.o` in
7407 *32-bit*)
7408 case $host in
7409 x86_64-*kfreebsd*-gnu)
7410 LD="${LD-ld} -m elf_i386_fbsd"
7411 ;;
7412 x86_64-*linux*)
7413 case `/usr/bin/file conftest.o` in
7414 *x86-64*)
7415 LD="${LD-ld} -m elf32_x86_64"
7416 ;;
7417 *)
7418 LD="${LD-ld} -m elf_i386"
7419 ;;
7420 esac
7421 ;;
7422 powerpc64le-*linux*)
7423 LD="${LD-ld} -m elf32lppclinux"
7424 ;;
7425 powerpc64-*linux*)
7426 LD="${LD-ld} -m elf32ppclinux"
7427 ;;
7428 s390x-*linux*)
7429 LD="${LD-ld} -m elf_s390"
7430 ;;
7431 sparc64-*linux*)
7432 LD="${LD-ld} -m elf32_sparc"
7433 ;;
7434 esac
7435 ;;
7436 *64-bit*)
7437 case $host in
7438 x86_64-*kfreebsd*-gnu)
7439 LD="${LD-ld} -m elf_x86_64_fbsd"
7440 ;;
7441 x86_64-*linux*)
7442 LD="${LD-ld} -m elf_x86_64"
7443 ;;
7444 powerpcle-*linux*)
7445 LD="${LD-ld} -m elf64lppc"
7446 ;;
7447 powerpc-*linux*)
7448 LD="${LD-ld} -m elf64ppc"
7449 ;;
7450 s390*-*linux*|s390*-*tpf*)
7451 LD="${LD-ld} -m elf64_s390"
7452 ;;
7453 sparc*-*linux*)
7454 LD="${LD-ld} -m elf64_sparc"
7455 ;;
7456 esac
7457 ;;
7458 esac
7459 fi
7460 rm -rf conftest*
7461 ;;
7462
7463 *-*-sco3.2v5*)
7464 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7465 SAVE_CFLAGS="$CFLAGS"
7466 CFLAGS="$CFLAGS -belf"
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7468 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7469 if ${lt_cv_cc_needs_belf+:} false; then :
7470 $as_echo_n "(cached) " >&6
7471 else
7472 ac_ext=c
7473 ac_cpp='$CPP $CPPFLAGS'
7474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7477
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7480
7481 int
7482 main ()
7483 {
7484
7485 ;
7486 return 0;
7487 }
7488 _ACEOF
7489 if ac_fn_c_try_link "$LINENO"; then :
7490 lt_cv_cc_needs_belf=yes
7491 else
7492 lt_cv_cc_needs_belf=no
7493 fi
7494 rm -f core conftest.err conftest.$ac_objext \
7495 conftest$ac_exeext conftest.$ac_ext
7496 ac_ext=c
7497 ac_cpp='$CPP $CPPFLAGS'
7498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7501
7502 fi
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7504 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7505 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7506 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7507 CFLAGS="$SAVE_CFLAGS"
7508 fi
7509 ;;
7510 sparc*-*solaris*)
7511 # Find out which ABI we are using.
7512 echo 'int i;' > conftest.$ac_ext
7513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7514 (eval $ac_compile) 2>&5
7515 ac_status=$?
7516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7517 test $ac_status = 0; }; then
7518 case `/usr/bin/file conftest.o` in
7519 *64-bit*)
7520 case $lt_cv_prog_gnu_ld in
7521 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7522 *)
7523 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7524 LD="${LD-ld} -64"
7525 fi
7526 ;;
7527 esac
7528 ;;
7529 esac
7530 fi
7531 rm -rf conftest*
7532 ;;
7533 esac
7534
7535 need_locks="$enable_libtool_lock"
7536
7537
7538 case $host_os in
7539 rhapsody* | darwin*)
7540 if test -n "$ac_tool_prefix"; then
7541 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7542 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544 $as_echo_n "checking for $ac_word... " >&6; }
7545 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7546 $as_echo_n "(cached) " >&6
7547 else
7548 if test -n "$DSYMUTIL"; then
7549 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7550 else
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 for as_dir in $PATH
7553 do
7554 IFS=$as_save_IFS
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7558 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 break 2
7561 fi
7562 done
7563 done
7564 IFS=$as_save_IFS
7565
7566 fi
7567 fi
7568 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7569 if test -n "$DSYMUTIL"; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7571 $as_echo "$DSYMUTIL" >&6; }
7572 else
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574 $as_echo "no" >&6; }
7575 fi
7576
7577
7578 fi
7579 if test -z "$ac_cv_prog_DSYMUTIL"; then
7580 ac_ct_DSYMUTIL=$DSYMUTIL
7581 # Extract the first word of "dsymutil", so it can be a program name with args.
7582 set dummy dsymutil; ac_word=$2
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584 $as_echo_n "checking for $ac_word... " >&6; }
7585 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588 if test -n "$ac_ct_DSYMUTIL"; then
7589 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7590 else
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 for as_dir in $PATH
7593 do
7594 IFS=$as_save_IFS
7595 test -z "$as_dir" && as_dir=.
7596 for ac_exec_ext in '' $ac_executable_extensions; do
7597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7598 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7600 break 2
7601 fi
7602 done
7603 done
7604 IFS=$as_save_IFS
7605
7606 fi
7607 fi
7608 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7609 if test -n "$ac_ct_DSYMUTIL"; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7611 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7612 else
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7615 fi
7616
7617 if test "x$ac_ct_DSYMUTIL" = x; then
7618 DSYMUTIL=":"
7619 else
7620 case $cross_compiling:$ac_tool_warned in
7621 yes:)
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7624 ac_tool_warned=yes ;;
7625 esac
7626 DSYMUTIL=$ac_ct_DSYMUTIL
7627 fi
7628 else
7629 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7630 fi
7631
7632 if test -n "$ac_tool_prefix"; then
7633 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7634 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636 $as_echo_n "checking for $ac_word... " >&6; }
7637 if ${ac_cv_prog_NMEDIT+:} false; then :
7638 $as_echo_n "(cached) " >&6
7639 else
7640 if test -n "$NMEDIT"; then
7641 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7642 else
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 for as_dir in $PATH
7645 do
7646 IFS=$as_save_IFS
7647 test -z "$as_dir" && as_dir=.
7648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7650 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 break 2
7653 fi
7654 done
7655 done
7656 IFS=$as_save_IFS
7657
7658 fi
7659 fi
7660 NMEDIT=$ac_cv_prog_NMEDIT
7661 if test -n "$NMEDIT"; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7663 $as_echo "$NMEDIT" >&6; }
7664 else
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666 $as_echo "no" >&6; }
7667 fi
7668
7669
7670 fi
7671 if test -z "$ac_cv_prog_NMEDIT"; then
7672 ac_ct_NMEDIT=$NMEDIT
7673 # Extract the first word of "nmedit", so it can be a program name with args.
7674 set dummy nmedit; ac_word=$2
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7676 $as_echo_n "checking for $ac_word... " >&6; }
7677 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7678 $as_echo_n "(cached) " >&6
7679 else
7680 if test -n "$ac_ct_NMEDIT"; then
7681 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7682 else
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 for as_dir in $PATH
7685 do
7686 IFS=$as_save_IFS
7687 test -z "$as_dir" && as_dir=.
7688 for ac_exec_ext in '' $ac_executable_extensions; do
7689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7690 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 break 2
7693 fi
7694 done
7695 done
7696 IFS=$as_save_IFS
7697
7698 fi
7699 fi
7700 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7701 if test -n "$ac_ct_NMEDIT"; then
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7703 $as_echo "$ac_ct_NMEDIT" >&6; }
7704 else
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706 $as_echo "no" >&6; }
7707 fi
7708
7709 if test "x$ac_ct_NMEDIT" = x; then
7710 NMEDIT=":"
7711 else
7712 case $cross_compiling:$ac_tool_warned in
7713 yes:)
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7716 ac_tool_warned=yes ;;
7717 esac
7718 NMEDIT=$ac_ct_NMEDIT
7719 fi
7720 else
7721 NMEDIT="$ac_cv_prog_NMEDIT"
7722 fi
7723
7724 if test -n "$ac_tool_prefix"; then
7725 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7726 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7728 $as_echo_n "checking for $ac_word... " >&6; }
7729 if ${ac_cv_prog_LIPO+:} false; then :
7730 $as_echo_n "(cached) " >&6
7731 else
7732 if test -n "$LIPO"; then
7733 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7734 else
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 for as_dir in $PATH
7737 do
7738 IFS=$as_save_IFS
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7742 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 break 2
7745 fi
7746 done
7747 done
7748 IFS=$as_save_IFS
7749
7750 fi
7751 fi
7752 LIPO=$ac_cv_prog_LIPO
7753 if test -n "$LIPO"; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7755 $as_echo "$LIPO" >&6; }
7756 else
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758 $as_echo "no" >&6; }
7759 fi
7760
7761
7762 fi
7763 if test -z "$ac_cv_prog_LIPO"; then
7764 ac_ct_LIPO=$LIPO
7765 # Extract the first word of "lipo", so it can be a program name with args.
7766 set dummy lipo; ac_word=$2
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768 $as_echo_n "checking for $ac_word... " >&6; }
7769 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7770 $as_echo_n "(cached) " >&6
7771 else
7772 if test -n "$ac_ct_LIPO"; then
7773 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7774 else
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 for as_dir in $PATH
7777 do
7778 IFS=$as_save_IFS
7779 test -z "$as_dir" && as_dir=.
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7782 ac_cv_prog_ac_ct_LIPO="lipo"
7783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7784 break 2
7785 fi
7786 done
7787 done
7788 IFS=$as_save_IFS
7789
7790 fi
7791 fi
7792 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7793 if test -n "$ac_ct_LIPO"; then
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7795 $as_echo "$ac_ct_LIPO" >&6; }
7796 else
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 $as_echo "no" >&6; }
7799 fi
7800
7801 if test "x$ac_ct_LIPO" = x; then
7802 LIPO=":"
7803 else
7804 case $cross_compiling:$ac_tool_warned in
7805 yes:)
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7808 ac_tool_warned=yes ;;
7809 esac
7810 LIPO=$ac_ct_LIPO
7811 fi
7812 else
7813 LIPO="$ac_cv_prog_LIPO"
7814 fi
7815
7816 if test -n "$ac_tool_prefix"; then
7817 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7818 set dummy ${ac_tool_prefix}otool; ac_word=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 $as_echo_n "checking for $ac_word... " >&6; }
7821 if ${ac_cv_prog_OTOOL+:} false; then :
7822 $as_echo_n "(cached) " >&6
7823 else
7824 if test -n "$OTOOL"; then
7825 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7826 else
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7829 do
7830 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7834 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 break 2
7837 fi
7838 done
7839 done
7840 IFS=$as_save_IFS
7841
7842 fi
7843 fi
7844 OTOOL=$ac_cv_prog_OTOOL
7845 if test -n "$OTOOL"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7847 $as_echo "$OTOOL" >&6; }
7848 else
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7851 fi
7852
7853
7854 fi
7855 if test -z "$ac_cv_prog_OTOOL"; then
7856 ac_ct_OTOOL=$OTOOL
7857 # Extract the first word of "otool", so it can be a program name with args.
7858 set dummy otool; ac_word=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 $as_echo_n "checking for $ac_word... " >&6; }
7861 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7862 $as_echo_n "(cached) " >&6
7863 else
7864 if test -n "$ac_ct_OTOOL"; then
7865 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7866 else
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7869 do
7870 IFS=$as_save_IFS
7871 test -z "$as_dir" && as_dir=.
7872 for ac_exec_ext in '' $ac_executable_extensions; do
7873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7874 ac_cv_prog_ac_ct_OTOOL="otool"
7875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 break 2
7877 fi
7878 done
7879 done
7880 IFS=$as_save_IFS
7881
7882 fi
7883 fi
7884 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7885 if test -n "$ac_ct_OTOOL"; then
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7887 $as_echo "$ac_ct_OTOOL" >&6; }
7888 else
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7891 fi
7892
7893 if test "x$ac_ct_OTOOL" = x; then
7894 OTOOL=":"
7895 else
7896 case $cross_compiling:$ac_tool_warned in
7897 yes:)
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7900 ac_tool_warned=yes ;;
7901 esac
7902 OTOOL=$ac_ct_OTOOL
7903 fi
7904 else
7905 OTOOL="$ac_cv_prog_OTOOL"
7906 fi
7907
7908 if test -n "$ac_tool_prefix"; then
7909 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7910 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912 $as_echo_n "checking for $ac_word... " >&6; }
7913 if ${ac_cv_prog_OTOOL64+:} false; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 if test -n "$OTOOL64"; then
7917 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7918 else
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 for as_dir in $PATH
7921 do
7922 IFS=$as_save_IFS
7923 test -z "$as_dir" && as_dir=.
7924 for ac_exec_ext in '' $ac_executable_extensions; do
7925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7926 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7928 break 2
7929 fi
7930 done
7931 done
7932 IFS=$as_save_IFS
7933
7934 fi
7935 fi
7936 OTOOL64=$ac_cv_prog_OTOOL64
7937 if test -n "$OTOOL64"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7939 $as_echo "$OTOOL64" >&6; }
7940 else
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7943 fi
7944
7945
7946 fi
7947 if test -z "$ac_cv_prog_OTOOL64"; then
7948 ac_ct_OTOOL64=$OTOOL64
7949 # Extract the first word of "otool64", so it can be a program name with args.
7950 set dummy otool64; ac_word=$2
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7952 $as_echo_n "checking for $ac_word... " >&6; }
7953 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956 if test -n "$ac_ct_OTOOL64"; then
7957 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7958 else
7959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960 for as_dir in $PATH
7961 do
7962 IFS=$as_save_IFS
7963 test -z "$as_dir" && as_dir=.
7964 for ac_exec_ext in '' $ac_executable_extensions; do
7965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7966 ac_cv_prog_ac_ct_OTOOL64="otool64"
7967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7968 break 2
7969 fi
7970 done
7971 done
7972 IFS=$as_save_IFS
7973
7974 fi
7975 fi
7976 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7977 if test -n "$ac_ct_OTOOL64"; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7979 $as_echo "$ac_ct_OTOOL64" >&6; }
7980 else
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982 $as_echo "no" >&6; }
7983 fi
7984
7985 if test "x$ac_ct_OTOOL64" = x; then
7986 OTOOL64=":"
7987 else
7988 case $cross_compiling:$ac_tool_warned in
7989 yes:)
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7992 ac_tool_warned=yes ;;
7993 esac
7994 OTOOL64=$ac_ct_OTOOL64
7995 fi
7996 else
7997 OTOOL64="$ac_cv_prog_OTOOL64"
7998 fi
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8027 $as_echo_n "checking for -single_module linker flag... " >&6; }
8028 if ${lt_cv_apple_cc_single_mod+:} false; then :
8029 $as_echo_n "(cached) " >&6
8030 else
8031 lt_cv_apple_cc_single_mod=no
8032 if test -z "${LT_MULTI_MODULE}"; then
8033 # By default we will add the -single_module flag. You can override
8034 # by either setting the environment variable LT_MULTI_MODULE
8035 # non-empty at configure time, or by adding -multi_module to the
8036 # link flags.
8037 rm -rf libconftest.dylib*
8038 echo "int foo(void){return 1;}" > conftest.c
8039 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8040 -dynamiclib -Wl,-single_module conftest.c" >&5
8041 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8042 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8043 _lt_result=$?
8044 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8045 lt_cv_apple_cc_single_mod=yes
8046 else
8047 cat conftest.err >&5
8048 fi
8049 rm -rf libconftest.dylib*
8050 rm -f conftest.*
8051 fi
8052 fi
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8054 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8056 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8057 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8058 $as_echo_n "(cached) " >&6
8059 else
8060 lt_cv_ld_exported_symbols_list=no
8061 save_LDFLAGS=$LDFLAGS
8062 echo "_main" > conftest.sym
8063 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h. */
8066
8067 int
8068 main ()
8069 {
8070
8071 ;
8072 return 0;
8073 }
8074 _ACEOF
8075 if ac_fn_c_try_link "$LINENO"; then :
8076 lt_cv_ld_exported_symbols_list=yes
8077 else
8078 lt_cv_ld_exported_symbols_list=no
8079 fi
8080 rm -f core conftest.err conftest.$ac_objext \
8081 conftest$ac_exeext conftest.$ac_ext
8082 LDFLAGS="$save_LDFLAGS"
8083
8084 fi
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8086 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8088 $as_echo_n "checking for -force_load linker flag... " >&6; }
8089 if ${lt_cv_ld_force_load+:} false; then :
8090 $as_echo_n "(cached) " >&6
8091 else
8092 lt_cv_ld_force_load=no
8093 cat > conftest.c << _LT_EOF
8094 int forced_loaded() { return 2;}
8095 _LT_EOF
8096 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8097 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8098 echo "$AR cru libconftest.a conftest.o" >&5
8099 $AR cru libconftest.a conftest.o 2>&5
8100 cat > conftest.c << _LT_EOF
8101 int main() { return 0;}
8102 _LT_EOF
8103 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8104 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8105 _lt_result=$?
8106 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8107 lt_cv_ld_force_load=yes
8108 else
8109 cat conftest.err >&5
8110 fi
8111 rm -f conftest.err libconftest.a conftest conftest.c
8112 rm -rf conftest.dSYM
8113
8114 fi
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8116 $as_echo "$lt_cv_ld_force_load" >&6; }
8117 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8118 # build without first building modern cctools / linker.
8119 case $host_cpu-$host_os in
8120 *-rhapsody* | *-darwin1.[012])
8121 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8122 *-darwin1.*)
8123 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8124 *-darwin*)
8125 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8126 # deployment target is forced to an earlier version.
8127 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8128 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8129 ;;
8130 10.[012][,.]*)
8131 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8132 ;;
8133 *)
8134 ;;
8135 esac
8136 ;;
8137 esac
8138 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8139 _lt_dar_single_mod='$single_module'
8140 fi
8141 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8142 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8143 else
8144 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8145 fi
8146 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8147 _lt_dsymutil='~$DSYMUTIL $lib || :'
8148 else
8149 _lt_dsymutil=
8150 fi
8151 ;;
8152 esac
8153
8154 for ac_header in dlfcn.h
8155 do :
8156 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8157 "
8158 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8159 cat >>confdefs.h <<_ACEOF
8160 #define HAVE_DLFCN_H 1
8161 _ACEOF
8162
8163 fi
8164
8165 done
8166
8167
8168
8169
8170
8171
8172 # Set options
8173
8174
8175
8176 enable_dlopen=no
8177
8178
8179 enable_win32_dll=no
8180
8181
8182 # Check whether --enable-shared was given.
8183 if test "${enable_shared+set}" = set; then :
8184 enableval=$enable_shared; p=${PACKAGE-default}
8185 case $enableval in
8186 yes) enable_shared=yes ;;
8187 no) enable_shared=no ;;
8188 *)
8189 enable_shared=no
8190 # Look at the argument we got. We use all the common list separators.
8191 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8192 for pkg in $enableval; do
8193 IFS="$lt_save_ifs"
8194 if test "X$pkg" = "X$p"; then
8195 enable_shared=yes
8196 fi
8197 done
8198 IFS="$lt_save_ifs"
8199 ;;
8200 esac
8201 else
8202 enable_shared=yes
8203 fi
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213 # Check whether --enable-static was given.
8214 if test "${enable_static+set}" = set; then :
8215 enableval=$enable_static; p=${PACKAGE-default}
8216 case $enableval in
8217 yes) enable_static=yes ;;
8218 no) enable_static=no ;;
8219 *)
8220 enable_static=no
8221 # Look at the argument we got. We use all the common list separators.
8222 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8223 for pkg in $enableval; do
8224 IFS="$lt_save_ifs"
8225 if test "X$pkg" = "X$p"; then
8226 enable_static=yes
8227 fi
8228 done
8229 IFS="$lt_save_ifs"
8230 ;;
8231 esac
8232 else
8233 enable_static=yes
8234 fi
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245 # Check whether --with-pic was given.
8246 if test "${with_pic+set}" = set; then :
8247 withval=$with_pic; pic_mode="$withval"
8248 else
8249 pic_mode=default
8250 fi
8251
8252
8253 test -z "$pic_mode" && pic_mode=default
8254
8255
8256
8257
8258
8259
8260
8261 # Check whether --enable-fast-install was given.
8262 if test "${enable_fast_install+set}" = set; then :
8263 enableval=$enable_fast_install; p=${PACKAGE-default}
8264 case $enableval in
8265 yes) enable_fast_install=yes ;;
8266 no) enable_fast_install=no ;;
8267 *)
8268 enable_fast_install=no
8269 # Look at the argument we got. We use all the common list separators.
8270 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8271 for pkg in $enableval; do
8272 IFS="$lt_save_ifs"
8273 if test "X$pkg" = "X$p"; then
8274 enable_fast_install=yes
8275 fi
8276 done
8277 IFS="$lt_save_ifs"
8278 ;;
8279 esac
8280 else
8281 enable_fast_install=yes
8282 fi
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294 # This can be used to rebuild libtool when needed
8295 LIBTOOL_DEPS="$ltmain"
8296
8297 # Always use our own libtool.
8298 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325 test -z "$LN_S" && LN_S="ln -s"
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340 if test -n "${ZSH_VERSION+set}" ; then
8341 setopt NO_GLOB_SUBST
8342 fi
8343
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8345 $as_echo_n "checking for objdir... " >&6; }
8346 if ${lt_cv_objdir+:} false; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 rm -f .libs 2>/dev/null
8350 mkdir .libs 2>/dev/null
8351 if test -d .libs; then
8352 lt_cv_objdir=.libs
8353 else
8354 # MS-DOS does not allow filenames that begin with a dot.
8355 lt_cv_objdir=_libs
8356 fi
8357 rmdir .libs 2>/dev/null
8358 fi
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8360 $as_echo "$lt_cv_objdir" >&6; }
8361 objdir=$lt_cv_objdir
8362
8363
8364
8365
8366
8367 cat >>confdefs.h <<_ACEOF
8368 #define LT_OBJDIR "$lt_cv_objdir/"
8369 _ACEOF
8370
8371
8372
8373
8374 case $host_os in
8375 aix3*)
8376 # AIX sometimes has problems with the GCC collect2 program. For some
8377 # reason, if we set the COLLECT_NAMES environment variable, the problems
8378 # vanish in a puff of smoke.
8379 if test "X${COLLECT_NAMES+set}" != Xset; then
8380 COLLECT_NAMES=
8381 export COLLECT_NAMES
8382 fi
8383 ;;
8384 esac
8385
8386 # Global variables:
8387 ofile=libtool
8388 can_build_shared=yes
8389
8390 # All known linkers require a `.a' archive for static linking (except MSVC,
8391 # which needs '.lib').
8392 libext=a
8393
8394 with_gnu_ld="$lt_cv_prog_gnu_ld"
8395
8396 old_CC="$CC"
8397 old_CFLAGS="$CFLAGS"
8398
8399 # Set sane defaults for various variables
8400 test -z "$CC" && CC=cc
8401 test -z "$LTCC" && LTCC=$CC
8402 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8403 test -z "$LD" && LD=ld
8404 test -z "$ac_objext" && ac_objext=o
8405
8406 for cc_temp in $compiler""; do
8407 case $cc_temp in
8408 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8409 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8410 \-*) ;;
8411 *) break;;
8412 esac
8413 done
8414 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8415
8416
8417 # Only perform the check for file, if the check method requires it
8418 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8419 case $deplibs_check_method in
8420 file_magic*)
8421 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8423 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8424 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8425 $as_echo_n "(cached) " >&6
8426 else
8427 case $MAGIC_CMD in
8428 [\\/*] | ?:[\\/]*)
8429 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8430 ;;
8431 *)
8432 lt_save_MAGIC_CMD="$MAGIC_CMD"
8433 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8434 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8435 for ac_dir in $ac_dummy; do
8436 IFS="$lt_save_ifs"
8437 test -z "$ac_dir" && ac_dir=.
8438 if test -f $ac_dir/${ac_tool_prefix}file; then
8439 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8440 if test -n "$file_magic_test_file"; then
8441 case $deplibs_check_method in
8442 "file_magic "*)
8443 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8444 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8445 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8446 $EGREP "$file_magic_regex" > /dev/null; then
8447 :
8448 else
8449 cat <<_LT_EOF 1>&2
8450
8451 *** Warning: the command libtool uses to detect shared libraries,
8452 *** $file_magic_cmd, produces output that libtool cannot recognize.
8453 *** The result is that libtool may fail to recognize shared libraries
8454 *** as such. This will affect the creation of libtool libraries that
8455 *** depend on shared libraries, but programs linked with such libtool
8456 *** libraries will work regardless of this problem. Nevertheless, you
8457 *** may want to report the problem to your system manager and/or to
8458 *** bug-libtool@gnu.org
8459
8460 _LT_EOF
8461 fi ;;
8462 esac
8463 fi
8464 break
8465 fi
8466 done
8467 IFS="$lt_save_ifs"
8468 MAGIC_CMD="$lt_save_MAGIC_CMD"
8469 ;;
8470 esac
8471 fi
8472
8473 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8474 if test -n "$MAGIC_CMD"; then
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8476 $as_echo "$MAGIC_CMD" >&6; }
8477 else
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479 $as_echo "no" >&6; }
8480 fi
8481
8482
8483
8484
8485
8486 if test -z "$lt_cv_path_MAGIC_CMD"; then
8487 if test -n "$ac_tool_prefix"; then
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8489 $as_echo_n "checking for file... " >&6; }
8490 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8491 $as_echo_n "(cached) " >&6
8492 else
8493 case $MAGIC_CMD in
8494 [\\/*] | ?:[\\/]*)
8495 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8496 ;;
8497 *)
8498 lt_save_MAGIC_CMD="$MAGIC_CMD"
8499 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8500 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8501 for ac_dir in $ac_dummy; do
8502 IFS="$lt_save_ifs"
8503 test -z "$ac_dir" && ac_dir=.
8504 if test -f $ac_dir/file; then
8505 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8506 if test -n "$file_magic_test_file"; then
8507 case $deplibs_check_method in
8508 "file_magic "*)
8509 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8510 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8511 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8512 $EGREP "$file_magic_regex" > /dev/null; then
8513 :
8514 else
8515 cat <<_LT_EOF 1>&2
8516
8517 *** Warning: the command libtool uses to detect shared libraries,
8518 *** $file_magic_cmd, produces output that libtool cannot recognize.
8519 *** The result is that libtool may fail to recognize shared libraries
8520 *** as such. This will affect the creation of libtool libraries that
8521 *** depend on shared libraries, but programs linked with such libtool
8522 *** libraries will work regardless of this problem. Nevertheless, you
8523 *** may want to report the problem to your system manager and/or to
8524 *** bug-libtool@gnu.org
8525
8526 _LT_EOF
8527 fi ;;
8528 esac
8529 fi
8530 break
8531 fi
8532 done
8533 IFS="$lt_save_ifs"
8534 MAGIC_CMD="$lt_save_MAGIC_CMD"
8535 ;;
8536 esac
8537 fi
8538
8539 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8540 if test -n "$MAGIC_CMD"; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8542 $as_echo "$MAGIC_CMD" >&6; }
8543 else
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545 $as_echo "no" >&6; }
8546 fi
8547
8548
8549 else
8550 MAGIC_CMD=:
8551 fi
8552 fi
8553
8554 fi
8555 ;;
8556 esac
8557
8558 # Use C for the default configuration in the libtool script
8559
8560 lt_save_CC="$CC"
8561 ac_ext=c
8562 ac_cpp='$CPP $CPPFLAGS'
8563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8566
8567
8568 # Source file extension for C test sources.
8569 ac_ext=c
8570
8571 # Object file extension for compiled C test sources.
8572 objext=o
8573 objext=$objext
8574
8575 # Code to be used in simple compile tests
8576 lt_simple_compile_test_code="int some_variable = 0;"
8577
8578 # Code to be used in simple link tests
8579 lt_simple_link_test_code='int main(){return(0);}'
8580
8581
8582
8583
8584
8585
8586
8587 # If no C compiler was specified, use CC.
8588 LTCC=${LTCC-"$CC"}
8589
8590 # If no C compiler flags were specified, use CFLAGS.
8591 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8592
8593 # Allow CC to be a program name with arguments.
8594 compiler=$CC
8595
8596 # Save the default compiler, since it gets overwritten when the other
8597 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8598 compiler_DEFAULT=$CC
8599
8600 # save warnings/boilerplate of simple test code
8601 ac_outfile=conftest.$ac_objext
8602 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8603 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8604 _lt_compiler_boilerplate=`cat conftest.err`
8605 $RM conftest*
8606
8607 ac_outfile=conftest.$ac_objext
8608 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8609 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8610 _lt_linker_boilerplate=`cat conftest.err`
8611 $RM -r conftest*
8612
8613
8614 ## CAVEAT EMPTOR:
8615 ## There is no encapsulation within the following macros, do not change
8616 ## the running order or otherwise move them around unless you know exactly
8617 ## what you are doing...
8618 if test -n "$compiler"; then
8619
8620 lt_prog_compiler_no_builtin_flag=
8621
8622 if test "$GCC" = yes; then
8623 case $cc_basename in
8624 nvcc*)
8625 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8626 *)
8627 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8628 esac
8629
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8631 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8632 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8633 $as_echo_n "(cached) " >&6
8634 else
8635 lt_cv_prog_compiler_rtti_exceptions=no
8636 ac_outfile=conftest.$ac_objext
8637 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8638 lt_compiler_flag="-fno-rtti -fno-exceptions"
8639 # Insert the option either (1) after the last *FLAGS variable, or
8640 # (2) before a word containing "conftest.", or (3) at the end.
8641 # Note that $ac_compile itself does not contain backslashes and begins
8642 # with a dollar sign (not a hyphen), so the echo should work correctly.
8643 # The option is referenced via a variable to avoid confusing sed.
8644 lt_compile=`echo "$ac_compile" | $SED \
8645 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8646 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8647 -e 's:$: $lt_compiler_flag:'`
8648 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8649 (eval "$lt_compile" 2>conftest.err)
8650 ac_status=$?
8651 cat conftest.err >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 if (exit $ac_status) && test -s "$ac_outfile"; then
8654 # The compiler can only warn and ignore the option if not recognized
8655 # So say no if there are warnings other than the usual output.
8656 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8657 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8658 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8659 lt_cv_prog_compiler_rtti_exceptions=yes
8660 fi
8661 fi
8662 $RM conftest*
8663
8664 fi
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8666 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8667
8668 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8669 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8670 else
8671 :
8672 fi
8673
8674 fi
8675
8676
8677
8678
8679
8680
8681 lt_prog_compiler_wl=
8682 lt_prog_compiler_pic=
8683 lt_prog_compiler_static=
8684
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8686 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8687
8688 if test "$GCC" = yes; then
8689 lt_prog_compiler_wl='-Wl,'
8690 lt_prog_compiler_static='-static'
8691
8692 case $host_os in
8693 aix*)
8694 # All AIX code is PIC.
8695 if test "$host_cpu" = ia64; then
8696 # AIX 5 now supports IA64 processor
8697 lt_prog_compiler_static='-Bstatic'
8698 fi
8699 lt_prog_compiler_pic='-fPIC'
8700 ;;
8701
8702 amigaos*)
8703 case $host_cpu in
8704 powerpc)
8705 # see comment about AmigaOS4 .so support
8706 lt_prog_compiler_pic='-fPIC'
8707 ;;
8708 m68k)
8709 # FIXME: we need at least 68020 code to build shared libraries, but
8710 # adding the `-m68020' flag to GCC prevents building anything better,
8711 # like `-m68040'.
8712 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8713 ;;
8714 esac
8715 ;;
8716
8717 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8718 # PIC is the default for these OSes.
8719 ;;
8720
8721 mingw* | cygwin* | pw32* | os2* | cegcc*)
8722 # This hack is so that the source file can tell whether it is being
8723 # built for inclusion in a dll (and should export symbols for example).
8724 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8725 # (--disable-auto-import) libraries
8726 lt_prog_compiler_pic='-DDLL_EXPORT'
8727 ;;
8728
8729 darwin* | rhapsody*)
8730 # PIC is the default on this platform
8731 # Common symbols not allowed in MH_DYLIB files
8732 lt_prog_compiler_pic='-fno-common'
8733 ;;
8734
8735 haiku*)
8736 # PIC is the default for Haiku.
8737 # The "-static" flag exists, but is broken.
8738 lt_prog_compiler_static=
8739 ;;
8740
8741 hpux*)
8742 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8743 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8744 # sets the default TLS model and affects inlining.
8745 case $host_cpu in
8746 hppa*64*)
8747 # +Z the default
8748 ;;
8749 *)
8750 lt_prog_compiler_pic='-fPIC'
8751 ;;
8752 esac
8753 ;;
8754
8755 interix[3-9]*)
8756 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8757 # Instead, we relocate shared libraries at runtime.
8758 ;;
8759
8760 msdosdjgpp*)
8761 # Just because we use GCC doesn't mean we suddenly get shared libraries
8762 # on systems that don't support them.
8763 lt_prog_compiler_can_build_shared=no
8764 enable_shared=no
8765 ;;
8766
8767 *nto* | *qnx*)
8768 # QNX uses GNU C++, but need to define -shared option too, otherwise
8769 # it will coredump.
8770 lt_prog_compiler_pic='-fPIC -shared'
8771 ;;
8772
8773 sysv4*MP*)
8774 if test -d /usr/nec; then
8775 lt_prog_compiler_pic=-Kconform_pic
8776 fi
8777 ;;
8778
8779 *)
8780 lt_prog_compiler_pic='-fPIC'
8781 ;;
8782 esac
8783
8784 case $cc_basename in
8785 nvcc*) # Cuda Compiler Driver 2.2
8786 lt_prog_compiler_wl='-Xlinker '
8787 lt_prog_compiler_pic='-Xcompiler -fPIC'
8788 ;;
8789 esac
8790 else
8791 # PORTME Check for flag to pass linker flags through the system compiler.
8792 case $host_os in
8793 aix*)
8794 lt_prog_compiler_wl='-Wl,'
8795 if test "$host_cpu" = ia64; then
8796 # AIX 5 now supports IA64 processor
8797 lt_prog_compiler_static='-Bstatic'
8798 else
8799 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8800 fi
8801 ;;
8802
8803 mingw* | cygwin* | pw32* | os2* | cegcc*)
8804 # This hack is so that the source file can tell whether it is being
8805 # built for inclusion in a dll (and should export symbols for example).
8806 lt_prog_compiler_pic='-DDLL_EXPORT'
8807 ;;
8808
8809 hpux9* | hpux10* | hpux11*)
8810 lt_prog_compiler_wl='-Wl,'
8811 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8812 # not for PA HP-UX.
8813 case $host_cpu in
8814 hppa*64*|ia64*)
8815 # +Z the default
8816 ;;
8817 *)
8818 lt_prog_compiler_pic='+Z'
8819 ;;
8820 esac
8821 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8822 lt_prog_compiler_static='${wl}-a ${wl}archive'
8823 ;;
8824
8825 irix5* | irix6* | nonstopux*)
8826 lt_prog_compiler_wl='-Wl,'
8827 # PIC (with -KPIC) is the default.
8828 lt_prog_compiler_static='-non_shared'
8829 ;;
8830
8831 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8832 case $cc_basename in
8833 # old Intel for x86_64 which still supported -KPIC.
8834 ecc*)
8835 lt_prog_compiler_wl='-Wl,'
8836 lt_prog_compiler_pic='-KPIC'
8837 lt_prog_compiler_static='-static'
8838 ;;
8839 # icc used to be incompatible with GCC.
8840 # ICC 10 doesn't accept -KPIC any more.
8841 icc* | ifort*)
8842 lt_prog_compiler_wl='-Wl,'
8843 lt_prog_compiler_pic='-fPIC'
8844 lt_prog_compiler_static='-static'
8845 ;;
8846 # Lahey Fortran 8.1.
8847 lf95*)
8848 lt_prog_compiler_wl='-Wl,'
8849 lt_prog_compiler_pic='--shared'
8850 lt_prog_compiler_static='--static'
8851 ;;
8852 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8853 # Portland Group compilers (*not* the Pentium gcc compiler,
8854 # which looks to be a dead project)
8855 lt_prog_compiler_wl='-Wl,'
8856 lt_prog_compiler_pic='-fpic'
8857 lt_prog_compiler_static='-Bstatic'
8858 ;;
8859 ccc*)
8860 lt_prog_compiler_wl='-Wl,'
8861 # All Alpha code is PIC.
8862 lt_prog_compiler_static='-non_shared'
8863 ;;
8864 xl* | bgxl* | bgf* | mpixl*)
8865 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8866 lt_prog_compiler_wl='-Wl,'
8867 lt_prog_compiler_pic='-qpic'
8868 lt_prog_compiler_static='-qstaticlink'
8869 ;;
8870 *)
8871 case `$CC -V 2>&1 | sed 5q` in
8872 *Sun\ F* | *Sun*Fortran*)
8873 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8874 lt_prog_compiler_pic='-KPIC'
8875 lt_prog_compiler_static='-Bstatic'
8876 lt_prog_compiler_wl=''
8877 ;;
8878 *Sun\ C*)
8879 # Sun C 5.9
8880 lt_prog_compiler_pic='-KPIC'
8881 lt_prog_compiler_static='-Bstatic'
8882 lt_prog_compiler_wl='-Wl,'
8883 ;;
8884 esac
8885 ;;
8886 esac
8887 ;;
8888
8889 newsos6)
8890 lt_prog_compiler_pic='-KPIC'
8891 lt_prog_compiler_static='-Bstatic'
8892 ;;
8893
8894 *nto* | *qnx*)
8895 # QNX uses GNU C++, but need to define -shared option too, otherwise
8896 # it will coredump.
8897 lt_prog_compiler_pic='-fPIC -shared'
8898 ;;
8899
8900 osf3* | osf4* | osf5*)
8901 lt_prog_compiler_wl='-Wl,'
8902 # All OSF/1 code is PIC.
8903 lt_prog_compiler_static='-non_shared'
8904 ;;
8905
8906 rdos*)
8907 lt_prog_compiler_static='-non_shared'
8908 ;;
8909
8910 solaris*)
8911 lt_prog_compiler_pic='-KPIC'
8912 lt_prog_compiler_static='-Bstatic'
8913 case $cc_basename in
8914 f77* | f90* | f95*)
8915 lt_prog_compiler_wl='-Qoption ld ';;
8916 *)
8917 lt_prog_compiler_wl='-Wl,';;
8918 esac
8919 ;;
8920
8921 sunos4*)
8922 lt_prog_compiler_wl='-Qoption ld '
8923 lt_prog_compiler_pic='-PIC'
8924 lt_prog_compiler_static='-Bstatic'
8925 ;;
8926
8927 sysv4 | sysv4.2uw2* | sysv4.3*)
8928 lt_prog_compiler_wl='-Wl,'
8929 lt_prog_compiler_pic='-KPIC'
8930 lt_prog_compiler_static='-Bstatic'
8931 ;;
8932
8933 sysv4*MP*)
8934 if test -d /usr/nec ;then
8935 lt_prog_compiler_pic='-Kconform_pic'
8936 lt_prog_compiler_static='-Bstatic'
8937 fi
8938 ;;
8939
8940 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8941 lt_prog_compiler_wl='-Wl,'
8942 lt_prog_compiler_pic='-KPIC'
8943 lt_prog_compiler_static='-Bstatic'
8944 ;;
8945
8946 unicos*)
8947 lt_prog_compiler_wl='-Wl,'
8948 lt_prog_compiler_can_build_shared=no
8949 ;;
8950
8951 uts4*)
8952 lt_prog_compiler_pic='-pic'
8953 lt_prog_compiler_static='-Bstatic'
8954 ;;
8955
8956 *)
8957 lt_prog_compiler_can_build_shared=no
8958 ;;
8959 esac
8960 fi
8961
8962 case $host_os in
8963 # For platforms which do not support PIC, -DPIC is meaningless:
8964 *djgpp*)
8965 lt_prog_compiler_pic=
8966 ;;
8967 *)
8968 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8969 ;;
8970 esac
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8972 $as_echo "$lt_prog_compiler_pic" >&6; }
8973
8974
8975
8976
8977
8978
8979 #
8980 # Check to make sure the PIC flag actually works.
8981 #
8982 if test -n "$lt_prog_compiler_pic"; then
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8984 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8985 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8986 $as_echo_n "(cached) " >&6
8987 else
8988 lt_cv_prog_compiler_pic_works=no
8989 ac_outfile=conftest.$ac_objext
8990 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8991 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8992 # Insert the option either (1) after the last *FLAGS variable, or
8993 # (2) before a word containing "conftest.", or (3) at the end.
8994 # Note that $ac_compile itself does not contain backslashes and begins
8995 # with a dollar sign (not a hyphen), so the echo should work correctly.
8996 # The option is referenced via a variable to avoid confusing sed.
8997 lt_compile=`echo "$ac_compile" | $SED \
8998 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8999 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9000 -e 's:$: $lt_compiler_flag:'`
9001 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9002 (eval "$lt_compile" 2>conftest.err)
9003 ac_status=$?
9004 cat conftest.err >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 if (exit $ac_status) && test -s "$ac_outfile"; then
9007 # The compiler can only warn and ignore the option if not recognized
9008 # So say no if there are warnings other than the usual output.
9009 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9010 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9011 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9012 lt_cv_prog_compiler_pic_works=yes
9013 fi
9014 fi
9015 $RM conftest*
9016
9017 fi
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9019 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9020
9021 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9022 case $lt_prog_compiler_pic in
9023 "" | " "*) ;;
9024 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9025 esac
9026 else
9027 lt_prog_compiler_pic=
9028 lt_prog_compiler_can_build_shared=no
9029 fi
9030
9031 fi
9032
9033
9034
9035
9036
9037
9038 #
9039 # Check to make sure the static flag actually works.
9040 #
9041 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9043 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9044 if ${lt_cv_prog_compiler_static_works+:} false; then :
9045 $as_echo_n "(cached) " >&6
9046 else
9047 lt_cv_prog_compiler_static_works=no
9048 save_LDFLAGS="$LDFLAGS"
9049 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9050 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9051 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9052 # The linker can only warn and ignore the option if not recognized
9053 # So say no if there are warnings
9054 if test -s conftest.err; then
9055 # Append any errors to the config.log.
9056 cat conftest.err 1>&5
9057 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9058 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9059 if diff conftest.exp conftest.er2 >/dev/null; then
9060 lt_cv_prog_compiler_static_works=yes
9061 fi
9062 else
9063 lt_cv_prog_compiler_static_works=yes
9064 fi
9065 fi
9066 $RM -r conftest*
9067 LDFLAGS="$save_LDFLAGS"
9068
9069 fi
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9071 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9072
9073 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9074 :
9075 else
9076 lt_prog_compiler_static=
9077 fi
9078
9079
9080
9081
9082
9083
9084
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9086 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9087 if ${lt_cv_prog_compiler_c_o+:} false; then :
9088 $as_echo_n "(cached) " >&6
9089 else
9090 lt_cv_prog_compiler_c_o=no
9091 $RM -r conftest 2>/dev/null
9092 mkdir conftest
9093 cd conftest
9094 mkdir out
9095 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9096
9097 lt_compiler_flag="-o out/conftest2.$ac_objext"
9098 # Insert the option either (1) after the last *FLAGS variable, or
9099 # (2) before a word containing "conftest.", or (3) at the end.
9100 # Note that $ac_compile itself does not contain backslashes and begins
9101 # with a dollar sign (not a hyphen), so the echo should work correctly.
9102 lt_compile=`echo "$ac_compile" | $SED \
9103 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9105 -e 's:$: $lt_compiler_flag:'`
9106 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9107 (eval "$lt_compile" 2>out/conftest.err)
9108 ac_status=$?
9109 cat out/conftest.err >&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9112 then
9113 # The compiler can only warn and ignore the option if not recognized
9114 # So say no if there are warnings
9115 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9116 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9117 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9118 lt_cv_prog_compiler_c_o=yes
9119 fi
9120 fi
9121 chmod u+w . 2>&5
9122 $RM conftest*
9123 # SGI C++ compiler will create directory out/ii_files/ for
9124 # template instantiation
9125 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9126 $RM out/* && rmdir out
9127 cd ..
9128 $RM -r conftest
9129 $RM conftest*
9130
9131 fi
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9133 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9134
9135
9136
9137
9138
9139
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9141 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9142 if ${lt_cv_prog_compiler_c_o+:} false; then :
9143 $as_echo_n "(cached) " >&6
9144 else
9145 lt_cv_prog_compiler_c_o=no
9146 $RM -r conftest 2>/dev/null
9147 mkdir conftest
9148 cd conftest
9149 mkdir out
9150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9151
9152 lt_compiler_flag="-o out/conftest2.$ac_objext"
9153 # Insert the option either (1) after the last *FLAGS variable, or
9154 # (2) before a word containing "conftest.", or (3) at the end.
9155 # Note that $ac_compile itself does not contain backslashes and begins
9156 # with a dollar sign (not a hyphen), so the echo should work correctly.
9157 lt_compile=`echo "$ac_compile" | $SED \
9158 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9159 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9160 -e 's:$: $lt_compiler_flag:'`
9161 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9162 (eval "$lt_compile" 2>out/conftest.err)
9163 ac_status=$?
9164 cat out/conftest.err >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9167 then
9168 # The compiler can only warn and ignore the option if not recognized
9169 # So say no if there are warnings
9170 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9171 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9172 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9173 lt_cv_prog_compiler_c_o=yes
9174 fi
9175 fi
9176 chmod u+w . 2>&5
9177 $RM conftest*
9178 # SGI C++ compiler will create directory out/ii_files/ for
9179 # template instantiation
9180 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9181 $RM out/* && rmdir out
9182 cd ..
9183 $RM -r conftest
9184 $RM conftest*
9185
9186 fi
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9188 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9189
9190
9191
9192
9193 hard_links="nottested"
9194 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9195 # do not overwrite the value of need_locks provided by the user
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9197 $as_echo_n "checking if we can lock with hard links... " >&6; }
9198 hard_links=yes
9199 $RM conftest*
9200 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9201 touch conftest.a
9202 ln conftest.a conftest.b 2>&5 || hard_links=no
9203 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9205 $as_echo "$hard_links" >&6; }
9206 if test "$hard_links" = no; then
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9208 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9209 need_locks=warn
9210 fi
9211 else
9212 need_locks=no
9213 fi
9214
9215
9216
9217
9218
9219
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9221 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9222
9223 runpath_var=
9224 allow_undefined_flag=
9225 always_export_symbols=no
9226 archive_cmds=
9227 archive_expsym_cmds=
9228 compiler_needs_object=no
9229 enable_shared_with_static_runtimes=no
9230 export_dynamic_flag_spec=
9231 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9232 hardcode_automatic=no
9233 hardcode_direct=no
9234 hardcode_direct_absolute=no
9235 hardcode_libdir_flag_spec=
9236 hardcode_libdir_flag_spec_ld=
9237 hardcode_libdir_separator=
9238 hardcode_minus_L=no
9239 hardcode_shlibpath_var=unsupported
9240 inherit_rpath=no
9241 link_all_deplibs=unknown
9242 module_cmds=
9243 module_expsym_cmds=
9244 old_archive_from_new_cmds=
9245 old_archive_from_expsyms_cmds=
9246 thread_safe_flag_spec=
9247 whole_archive_flag_spec=
9248 # include_expsyms should be a list of space-separated symbols to be *always*
9249 # included in the symbol list
9250 include_expsyms=
9251 # exclude_expsyms can be an extended regexp of symbols to exclude
9252 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9253 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9254 # as well as any symbol that contains `d'.
9255 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9256 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9257 # platforms (ab)use it in PIC code, but their linkers get confused if
9258 # the symbol is explicitly referenced. Since portable code cannot
9259 # rely on this symbol name, it's probably fine to never include it in
9260 # preloaded symbol tables.
9261 # Exclude shared library initialization/finalization symbols.
9262 extract_expsyms_cmds=
9263
9264 case $host_os in
9265 cygwin* | mingw* | pw32* | cegcc*)
9266 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9267 # When not using gcc, we currently assume that we are using
9268 # Microsoft Visual C++.
9269 if test "$GCC" != yes; then
9270 with_gnu_ld=no
9271 fi
9272 ;;
9273 interix*)
9274 # we just hope/assume this is gcc and not c89 (= MSVC++)
9275 with_gnu_ld=yes
9276 ;;
9277 openbsd*)
9278 with_gnu_ld=no
9279 ;;
9280 esac
9281
9282 ld_shlibs=yes
9283
9284 # On some targets, GNU ld is compatible enough with the native linker
9285 # that we're better off using the native interface for both.
9286 lt_use_gnu_ld_interface=no
9287 if test "$with_gnu_ld" = yes; then
9288 case $host_os in
9289 aix*)
9290 # The AIX port of GNU ld has always aspired to compatibility
9291 # with the native linker. However, as the warning in the GNU ld
9292 # block says, versions before 2.19.5* couldn't really create working
9293 # shared libraries, regardless of the interface used.
9294 case `$LD -v 2>&1` in
9295 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9296 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9297 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9298 *)
9299 lt_use_gnu_ld_interface=yes
9300 ;;
9301 esac
9302 ;;
9303 *)
9304 lt_use_gnu_ld_interface=yes
9305 ;;
9306 esac
9307 fi
9308
9309 if test "$lt_use_gnu_ld_interface" = yes; then
9310 # If archive_cmds runs LD, not CC, wlarc should be empty
9311 wlarc='${wl}'
9312
9313 # Set some defaults for GNU ld with shared library support. These
9314 # are reset later if shared libraries are not supported. Putting them
9315 # here allows them to be overridden if necessary.
9316 runpath_var=LD_RUN_PATH
9317 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9318 export_dynamic_flag_spec='${wl}--export-dynamic'
9319 # ancient GNU ld didn't support --whole-archive et. al.
9320 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9321 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9322 else
9323 whole_archive_flag_spec=
9324 fi
9325 supports_anon_versioning=no
9326 case `$LD -v 2>&1` in
9327 *GNU\ gold*) supports_anon_versioning=yes ;;
9328 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9329 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9330 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9331 *\ 2.11.*) ;; # other 2.11 versions
9332 *) supports_anon_versioning=yes ;;
9333 esac
9334
9335 # See if GNU ld supports shared libraries.
9336 case $host_os in
9337 aix[3-9]*)
9338 # On AIX/PPC, the GNU linker is very broken
9339 if test "$host_cpu" != ia64; then
9340 ld_shlibs=no
9341 cat <<_LT_EOF 1>&2
9342
9343 *** Warning: the GNU linker, at least up to release 2.19, is reported
9344 *** to be unable to reliably create shared libraries on AIX.
9345 *** Therefore, libtool is disabling shared libraries support. If you
9346 *** really care for shared libraries, you may want to install binutils
9347 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9348 *** You will then need to restart the configuration process.
9349
9350 _LT_EOF
9351 fi
9352 ;;
9353
9354 amigaos*)
9355 case $host_cpu in
9356 powerpc)
9357 # see comment about AmigaOS4 .so support
9358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9359 archive_expsym_cmds=''
9360 ;;
9361 m68k)
9362 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)'
9363 hardcode_libdir_flag_spec='-L$libdir'
9364 hardcode_minus_L=yes
9365 ;;
9366 esac
9367 ;;
9368
9369 beos*)
9370 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9371 allow_undefined_flag=unsupported
9372 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9373 # support --undefined. This deserves some investigation. FIXME
9374 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9375 else
9376 ld_shlibs=no
9377 fi
9378 ;;
9379
9380 cygwin* | mingw* | pw32* | cegcc*)
9381 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9382 # as there is no search path for DLLs.
9383 hardcode_libdir_flag_spec='-L$libdir'
9384 export_dynamic_flag_spec='${wl}--export-all-symbols'
9385 allow_undefined_flag=unsupported
9386 always_export_symbols=no
9387 enable_shared_with_static_runtimes=yes
9388 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9389
9390 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9392 # If the export-symbols file already is a .def file (1st line
9393 # is EXPORTS), use it as is; otherwise, prepend...
9394 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9395 cp $export_symbols $output_objdir/$soname.def;
9396 else
9397 echo EXPORTS > $output_objdir/$soname.def;
9398 cat $export_symbols >> $output_objdir/$soname.def;
9399 fi~
9400 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9401 else
9402 ld_shlibs=no
9403 fi
9404 ;;
9405
9406 haiku*)
9407 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9408 link_all_deplibs=yes
9409 ;;
9410
9411 interix[3-9]*)
9412 hardcode_direct=no
9413 hardcode_shlibpath_var=no
9414 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9415 export_dynamic_flag_spec='${wl}-E'
9416 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9417 # Instead, shared libraries are loaded at an image base (0x10000000 by
9418 # default) and relocated if they conflict, which is a slow very memory
9419 # consuming and fragmenting process. To avoid this, we pick a random,
9420 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9421 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9422 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9423 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'
9424 ;;
9425
9426 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9427 tmp_diet=no
9428 if test "$host_os" = linux-dietlibc; then
9429 case $cc_basename in
9430 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9431 esac
9432 fi
9433 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9434 && test "$tmp_diet" = no
9435 then
9436 tmp_addflag=' $pic_flag'
9437 tmp_sharedflag='-shared'
9438 case $cc_basename,$host_cpu in
9439 pgcc*) # Portland Group C compiler
9440 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'
9441 tmp_addflag=' $pic_flag'
9442 ;;
9443 pgf77* | pgf90* | pgf95* | pgfortran*)
9444 # Portland Group f77 and f90 compilers
9445 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'
9446 tmp_addflag=' $pic_flag -Mnomain' ;;
9447 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9448 tmp_addflag=' -i_dynamic' ;;
9449 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9450 tmp_addflag=' -i_dynamic -nofor_main' ;;
9451 ifc* | ifort*) # Intel Fortran compiler
9452 tmp_addflag=' -nofor_main' ;;
9453 lf95*) # Lahey Fortran 8.1
9454 whole_archive_flag_spec=
9455 tmp_sharedflag='--shared' ;;
9456 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9457 tmp_sharedflag='-qmkshrobj'
9458 tmp_addflag= ;;
9459 nvcc*) # Cuda Compiler Driver 2.2
9460 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'
9461 compiler_needs_object=yes
9462 ;;
9463 esac
9464 case `$CC -V 2>&1 | sed 5q` in
9465 *Sun\ C*) # Sun C 5.9
9466 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'
9467 compiler_needs_object=yes
9468 tmp_sharedflag='-G' ;;
9469 *Sun\ F*) # Sun Fortran 8.3
9470 tmp_sharedflag='-G' ;;
9471 esac
9472 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9473
9474 if test "x$supports_anon_versioning" = xyes; then
9475 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9476 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9477 echo "local: *; };" >> $output_objdir/$libname.ver~
9478 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9479 fi
9480
9481 case $cc_basename in
9482 xlf* | bgf* | bgxlf* | mpixlf*)
9483 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9484 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9485 hardcode_libdir_flag_spec=
9486 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9487 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9488 if test "x$supports_anon_versioning" = xyes; then
9489 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9490 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9491 echo "local: *; };" >> $output_objdir/$libname.ver~
9492 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9493 fi
9494 ;;
9495 esac
9496 else
9497 ld_shlibs=no
9498 fi
9499 ;;
9500
9501 netbsd*)
9502 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9503 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9504 wlarc=
9505 else
9506 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9507 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9508 fi
9509 ;;
9510
9511 solaris*)
9512 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9513 ld_shlibs=no
9514 cat <<_LT_EOF 1>&2
9515
9516 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9517 *** create shared libraries on Solaris systems. Therefore, libtool
9518 *** is disabling shared libraries support. We urge you to upgrade GNU
9519 *** binutils to release 2.9.1 or newer. Another option is to modify
9520 *** your PATH or compiler configuration so that the native linker is
9521 *** used, and then restart.
9522
9523 _LT_EOF
9524 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9525 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9526 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9527 else
9528 ld_shlibs=no
9529 fi
9530 ;;
9531
9532 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9533 case `$LD -v 2>&1` in
9534 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9535 ld_shlibs=no
9536 cat <<_LT_EOF 1>&2
9537
9538 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9539 *** reliably create shared libraries on SCO systems. Therefore, libtool
9540 *** is disabling shared libraries support. We urge you to upgrade GNU
9541 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9542 *** your PATH or compiler configuration so that the native linker is
9543 *** used, and then restart.
9544
9545 _LT_EOF
9546 ;;
9547 *)
9548 # For security reasons, it is highly recommended that you always
9549 # use absolute paths for naming shared libraries, and exclude the
9550 # DT_RUNPATH tag from executables and libraries. But doing so
9551 # requires that you compile everything twice, which is a pain.
9552 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9553 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9554 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9555 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9556 else
9557 ld_shlibs=no
9558 fi
9559 ;;
9560 esac
9561 ;;
9562
9563 sunos4*)
9564 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9565 wlarc=
9566 hardcode_direct=yes
9567 hardcode_shlibpath_var=no
9568 ;;
9569
9570 *)
9571 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9572 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9573 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9574 else
9575 ld_shlibs=no
9576 fi
9577 ;;
9578 esac
9579
9580 if test "$ld_shlibs" = no; then
9581 runpath_var=
9582 hardcode_libdir_flag_spec=
9583 export_dynamic_flag_spec=
9584 whole_archive_flag_spec=
9585 fi
9586 else
9587 # PORTME fill in a description of your system's linker (not GNU ld)
9588 case $host_os in
9589 aix3*)
9590 allow_undefined_flag=unsupported
9591 always_export_symbols=yes
9592 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'
9593 # Note: this linker hardcodes the directories in LIBPATH if there
9594 # are no directories specified by -L.
9595 hardcode_minus_L=yes
9596 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9597 # Neither direct hardcoding nor static linking is supported with a
9598 # broken collect2.
9599 hardcode_direct=unsupported
9600 fi
9601 ;;
9602
9603 aix[4-9]*)
9604 if test "$host_cpu" = ia64; then
9605 # On IA64, the linker does run time linking by default, so we don't
9606 # have to do anything special.
9607 aix_use_runtimelinking=no
9608 exp_sym_flag='-Bexport'
9609 no_entry_flag=""
9610 else
9611 # If we're using GNU nm, then we don't want the "-C" option.
9612 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9613 # Also, AIX nm treats weak defined symbols like other global
9614 # defined symbols, whereas GNU nm marks them as "W".
9615 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9616 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'
9617 else
9618 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'
9619 fi
9620 aix_use_runtimelinking=no
9621
9622 # Test if we are trying to use run time linking or normal
9623 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9624 # need to do runtime linking.
9625 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9626 for ld_flag in $LDFLAGS; do
9627 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9628 aix_use_runtimelinking=yes
9629 break
9630 fi
9631 done
9632 ;;
9633 esac
9634
9635 exp_sym_flag='-bexport'
9636 no_entry_flag='-bnoentry'
9637 fi
9638
9639 # When large executables or shared objects are built, AIX ld can
9640 # have problems creating the table of contents. If linking a library
9641 # or program results in "error TOC overflow" add -mminimal-toc to
9642 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9643 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9644
9645 archive_cmds=''
9646 hardcode_direct=yes
9647 hardcode_direct_absolute=yes
9648 hardcode_libdir_separator=':'
9649 link_all_deplibs=yes
9650 file_list_spec='${wl}-f,'
9651
9652 if test "$GCC" = yes; then
9653 case $host_os in aix4.[012]|aix4.[012].*)
9654 # We only want to do this on AIX 4.2 and lower, the check
9655 # below for broken collect2 doesn't work under 4.3+
9656 collect2name=`${CC} -print-prog-name=collect2`
9657 if test -f "$collect2name" &&
9658 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9659 then
9660 # We have reworked collect2
9661 :
9662 else
9663 # We have old collect2
9664 hardcode_direct=unsupported
9665 # It fails to find uninstalled libraries when the uninstalled
9666 # path is not listed in the libpath. Setting hardcode_minus_L
9667 # to unsupported forces relinking
9668 hardcode_minus_L=yes
9669 hardcode_libdir_flag_spec='-L$libdir'
9670 hardcode_libdir_separator=
9671 fi
9672 ;;
9673 esac
9674 shared_flag='-shared'
9675 if test "$aix_use_runtimelinking" = yes; then
9676 shared_flag="$shared_flag "'${wl}-G'
9677 fi
9678 else
9679 # not using gcc
9680 if test "$host_cpu" = ia64; then
9681 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9682 # chokes on -Wl,-G. The following line is correct:
9683 shared_flag='-G'
9684 else
9685 if test "$aix_use_runtimelinking" = yes; then
9686 shared_flag='${wl}-G'
9687 else
9688 shared_flag='${wl}-bM:SRE'
9689 fi
9690 fi
9691 fi
9692
9693 export_dynamic_flag_spec='${wl}-bexpall'
9694 # It seems that -bexpall does not export symbols beginning with
9695 # underscore (_), so it is better to generate a list of symbols to export.
9696 always_export_symbols=yes
9697 if test "$aix_use_runtimelinking" = yes; then
9698 # Warning - without using the other runtime loading flags (-brtl),
9699 # -berok will link without error, but may produce a broken library.
9700 allow_undefined_flag='-berok'
9701 # Determine the default libpath from the value encoded in an
9702 # empty executable.
9703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704 /* end confdefs.h. */
9705
9706 int
9707 main ()
9708 {
9709
9710 ;
9711 return 0;
9712 }
9713 _ACEOF
9714 if ac_fn_c_try_link "$LINENO"; then :
9715
9716 lt_aix_libpath_sed='
9717 /Import File Strings/,/^$/ {
9718 /^0/ {
9719 s/^0 *\(.*\)$/\1/
9720 p
9721 }
9722 }'
9723 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9724 # Check for a 64-bit object if we didn't find anything.
9725 if test -z "$aix_libpath"; then
9726 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9727 fi
9728 fi
9729 rm -f core conftest.err conftest.$ac_objext \
9730 conftest$ac_exeext conftest.$ac_ext
9731 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9732
9733 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9734 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"
9735 else
9736 if test "$host_cpu" = ia64; then
9737 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9738 allow_undefined_flag="-z nodefs"
9739 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"
9740 else
9741 # Determine the default libpath from the value encoded in an
9742 # empty executable.
9743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744 /* end confdefs.h. */
9745
9746 int
9747 main ()
9748 {
9749
9750 ;
9751 return 0;
9752 }
9753 _ACEOF
9754 if ac_fn_c_try_link "$LINENO"; then :
9755
9756 lt_aix_libpath_sed='
9757 /Import File Strings/,/^$/ {
9758 /^0/ {
9759 s/^0 *\(.*\)$/\1/
9760 p
9761 }
9762 }'
9763 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9764 # Check for a 64-bit object if we didn't find anything.
9765 if test -z "$aix_libpath"; then
9766 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9767 fi
9768 fi
9769 rm -f core conftest.err conftest.$ac_objext \
9770 conftest$ac_exeext conftest.$ac_ext
9771 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9772
9773 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9774 # Warning - without using the other run time loading flags,
9775 # -berok will link without error, but may produce a broken library.
9776 no_undefined_flag=' ${wl}-bernotok'
9777 allow_undefined_flag=' ${wl}-berok'
9778 if test "$with_gnu_ld" = yes; then
9779 # We only use this code for GNU lds that support --whole-archive.
9780 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9781 else
9782 # Exported symbols can be pulled into shared objects from archives
9783 whole_archive_flag_spec='$convenience'
9784 fi
9785 archive_cmds_need_lc=yes
9786 # This is similar to how AIX traditionally builds its shared libraries.
9787 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'
9788 fi
9789 fi
9790 ;;
9791
9792 amigaos*)
9793 case $host_cpu in
9794 powerpc)
9795 # see comment about AmigaOS4 .so support
9796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9797 archive_expsym_cmds=''
9798 ;;
9799 m68k)
9800 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)'
9801 hardcode_libdir_flag_spec='-L$libdir'
9802 hardcode_minus_L=yes
9803 ;;
9804 esac
9805 ;;
9806
9807 bsdi[45]*)
9808 export_dynamic_flag_spec=-rdynamic
9809 ;;
9810
9811 cygwin* | mingw* | pw32* | cegcc*)
9812 # When not using gcc, we currently assume that we are using
9813 # Microsoft Visual C++.
9814 # hardcode_libdir_flag_spec is actually meaningless, as there is
9815 # no search path for DLLs.
9816 hardcode_libdir_flag_spec=' '
9817 allow_undefined_flag=unsupported
9818 # Tell ltmain to make .lib files, not .a files.
9819 libext=lib
9820 # Tell ltmain to make .dll files, not .so files.
9821 shrext_cmds=".dll"
9822 # FIXME: Setting linknames here is a bad hack.
9823 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9824 # The linker will automatically build a .lib file if we build a DLL.
9825 old_archive_from_new_cmds='true'
9826 # FIXME: Should let the user specify the lib program.
9827 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9828 fix_srcfile_path='`cygpath -w "$srcfile"`'
9829 enable_shared_with_static_runtimes=yes
9830 ;;
9831
9832 darwin* | rhapsody*)
9833
9834
9835 archive_cmds_need_lc=no
9836 hardcode_direct=no
9837 hardcode_automatic=yes
9838 hardcode_shlibpath_var=unsupported
9839 if test "$lt_cv_ld_force_load" = "yes"; then
9840 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\"`'
9841 else
9842 whole_archive_flag_spec=''
9843 fi
9844 link_all_deplibs=yes
9845 allow_undefined_flag="$_lt_dar_allow_undefined"
9846 case $cc_basename in
9847 ifort*) _lt_dar_can_shared=yes ;;
9848 *) _lt_dar_can_shared=$GCC ;;
9849 esac
9850 if test "$_lt_dar_can_shared" = "yes"; then
9851 output_verbose_link_cmd=func_echo_all
9852 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9853 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9854 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}"
9855 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}"
9856
9857 else
9858 ld_shlibs=no
9859 fi
9860
9861 ;;
9862
9863 dgux*)
9864 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9865 hardcode_libdir_flag_spec='-L$libdir'
9866 hardcode_shlibpath_var=no
9867 ;;
9868
9869 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9870 # support. Future versions do this automatically, but an explicit c++rt0.o
9871 # does not break anything, and helps significantly (at the cost of a little
9872 # extra space).
9873 freebsd2.2*)
9874 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9875 hardcode_libdir_flag_spec='-R$libdir'
9876 hardcode_direct=yes
9877 hardcode_shlibpath_var=no
9878 ;;
9879
9880 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9881 freebsd2.*)
9882 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9883 hardcode_direct=yes
9884 hardcode_minus_L=yes
9885 hardcode_shlibpath_var=no
9886 ;;
9887
9888 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9889 freebsd* | dragonfly*)
9890 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9891 hardcode_libdir_flag_spec='-R$libdir'
9892 hardcode_direct=yes
9893 hardcode_shlibpath_var=no
9894 ;;
9895
9896 hpux9*)
9897 if test "$GCC" = yes; then
9898 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'
9899 else
9900 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'
9901 fi
9902 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9903 hardcode_libdir_separator=:
9904 hardcode_direct=yes
9905
9906 # hardcode_minus_L: Not really in the search PATH,
9907 # but as the default location of the library.
9908 hardcode_minus_L=yes
9909 export_dynamic_flag_spec='${wl}-E'
9910 ;;
9911
9912 hpux10*)
9913 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9914 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9915 else
9916 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9917 fi
9918 if test "$with_gnu_ld" = no; then
9919 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9920 hardcode_libdir_flag_spec_ld='+b $libdir'
9921 hardcode_libdir_separator=:
9922 hardcode_direct=yes
9923 hardcode_direct_absolute=yes
9924 export_dynamic_flag_spec='${wl}-E'
9925 # hardcode_minus_L: Not really in the search PATH,
9926 # but as the default location of the library.
9927 hardcode_minus_L=yes
9928 fi
9929 ;;
9930
9931 hpux11*)
9932 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9933 case $host_cpu in
9934 hppa*64*)
9935 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9936 ;;
9937 ia64*)
9938 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9939 ;;
9940 *)
9941 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9942 ;;
9943 esac
9944 else
9945 case $host_cpu in
9946 hppa*64*)
9947 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9948 ;;
9949 ia64*)
9950 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9951 ;;
9952 *)
9953
9954 # Older versions of the 11.00 compiler do not understand -b yet
9955 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9957 $as_echo_n "checking if $CC understands -b... " >&6; }
9958 if ${lt_cv_prog_compiler__b+:} false; then :
9959 $as_echo_n "(cached) " >&6
9960 else
9961 lt_cv_prog_compiler__b=no
9962 save_LDFLAGS="$LDFLAGS"
9963 LDFLAGS="$LDFLAGS -b"
9964 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9965 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9966 # The linker can only warn and ignore the option if not recognized
9967 # So say no if there are warnings
9968 if test -s conftest.err; then
9969 # Append any errors to the config.log.
9970 cat conftest.err 1>&5
9971 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9972 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9973 if diff conftest.exp conftest.er2 >/dev/null; then
9974 lt_cv_prog_compiler__b=yes
9975 fi
9976 else
9977 lt_cv_prog_compiler__b=yes
9978 fi
9979 fi
9980 $RM -r conftest*
9981 LDFLAGS="$save_LDFLAGS"
9982
9983 fi
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9985 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9986
9987 if test x"$lt_cv_prog_compiler__b" = xyes; then
9988 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9989 else
9990 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9991 fi
9992
9993 ;;
9994 esac
9995 fi
9996 if test "$with_gnu_ld" = no; then
9997 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9998 hardcode_libdir_separator=:
9999
10000 case $host_cpu in
10001 hppa*64*|ia64*)
10002 hardcode_direct=no
10003 hardcode_shlibpath_var=no
10004 ;;
10005 *)
10006 hardcode_direct=yes
10007 hardcode_direct_absolute=yes
10008 export_dynamic_flag_spec='${wl}-E'
10009
10010 # hardcode_minus_L: Not really in the search PATH,
10011 # but as the default location of the library.
10012 hardcode_minus_L=yes
10013 ;;
10014 esac
10015 fi
10016 ;;
10017
10018 irix5* | irix6* | nonstopux*)
10019 if test "$GCC" = yes; then
10020 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'
10021 # Try to use the -exported_symbol ld option, if it does not
10022 # work, assume that -exports_file does not work either and
10023 # implicitly export all symbols.
10024 save_LDFLAGS="$LDFLAGS"
10025 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027 /* end confdefs.h. */
10028 int foo(void) {}
10029 _ACEOF
10030 if ac_fn_c_try_link "$LINENO"; then :
10031 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'
10032
10033 fi
10034 rm -f core conftest.err conftest.$ac_objext \
10035 conftest$ac_exeext conftest.$ac_ext
10036 LDFLAGS="$save_LDFLAGS"
10037 else
10038 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'
10039 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'
10040 fi
10041 archive_cmds_need_lc='no'
10042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10043 hardcode_libdir_separator=:
10044 inherit_rpath=yes
10045 link_all_deplibs=yes
10046 ;;
10047
10048 netbsd*)
10049 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10050 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10051 else
10052 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10053 fi
10054 hardcode_libdir_flag_spec='-R$libdir'
10055 hardcode_direct=yes
10056 hardcode_shlibpath_var=no
10057 ;;
10058
10059 newsos6)
10060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10061 hardcode_direct=yes
10062 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10063 hardcode_libdir_separator=:
10064 hardcode_shlibpath_var=no
10065 ;;
10066
10067 *nto* | *qnx*)
10068 ;;
10069
10070 openbsd*)
10071 if test -f /usr/libexec/ld.so; then
10072 hardcode_direct=yes
10073 hardcode_shlibpath_var=no
10074 hardcode_direct_absolute=yes
10075 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10076 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10077 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10078 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10079 export_dynamic_flag_spec='${wl}-E'
10080 else
10081 case $host_os in
10082 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10083 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10084 hardcode_libdir_flag_spec='-R$libdir'
10085 ;;
10086 *)
10087 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10088 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10089 ;;
10090 esac
10091 fi
10092 else
10093 ld_shlibs=no
10094 fi
10095 ;;
10096
10097 os2*)
10098 hardcode_libdir_flag_spec='-L$libdir'
10099 hardcode_minus_L=yes
10100 allow_undefined_flag=unsupported
10101 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'
10102 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10103 ;;
10104
10105 osf3*)
10106 if test "$GCC" = yes; then
10107 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10108 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'
10109 else
10110 allow_undefined_flag=' -expect_unresolved \*'
10111 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'
10112 fi
10113 archive_cmds_need_lc='no'
10114 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10115 hardcode_libdir_separator=:
10116 ;;
10117
10118 osf4* | osf5*) # as osf3* with the addition of -msym flag
10119 if test "$GCC" = yes; then
10120 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10121 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'
10122 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10123 else
10124 allow_undefined_flag=' -expect_unresolved \*'
10125 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'
10126 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~
10127 $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'
10128
10129 # Both c and cxx compiler support -rpath directly
10130 hardcode_libdir_flag_spec='-rpath $libdir'
10131 fi
10132 archive_cmds_need_lc='no'
10133 hardcode_libdir_separator=:
10134 ;;
10135
10136 solaris*)
10137 no_undefined_flag=' -z defs'
10138 if test "$GCC" = yes; then
10139 wlarc='${wl}'
10140 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10141 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10142 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10143 else
10144 case `$CC -V 2>&1` in
10145 *"Compilers 5.0"*)
10146 wlarc=''
10147 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10148 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10149 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10150 ;;
10151 *)
10152 wlarc='${wl}'
10153 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10154 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10155 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10156 ;;
10157 esac
10158 fi
10159 hardcode_libdir_flag_spec='-R$libdir'
10160 hardcode_shlibpath_var=no
10161 case $host_os in
10162 solaris2.[0-5] | solaris2.[0-5].*) ;;
10163 *)
10164 # The compiler driver will combine and reorder linker options,
10165 # but understands `-z linker_flag'. GCC discards it without `$wl',
10166 # but is careful enough not to reorder.
10167 # Supported since Solaris 2.6 (maybe 2.5.1?)
10168 if test "$GCC" = yes; then
10169 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10170 else
10171 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10172 fi
10173 ;;
10174 esac
10175 link_all_deplibs=yes
10176 ;;
10177
10178 sunos4*)
10179 if test "x$host_vendor" = xsequent; then
10180 # Use $CC to link under sequent, because it throws in some extra .o
10181 # files that make .init and .fini sections work.
10182 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10183 else
10184 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10185 fi
10186 hardcode_libdir_flag_spec='-L$libdir'
10187 hardcode_direct=yes
10188 hardcode_minus_L=yes
10189 hardcode_shlibpath_var=no
10190 ;;
10191
10192 sysv4)
10193 case $host_vendor in
10194 sni)
10195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10196 hardcode_direct=yes # is this really true???
10197 ;;
10198 siemens)
10199 ## LD is ld it makes a PLAMLIB
10200 ## CC just makes a GrossModule.
10201 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10202 reload_cmds='$CC -r -o $output$reload_objs'
10203 hardcode_direct=no
10204 ;;
10205 motorola)
10206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10207 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10208 ;;
10209 esac
10210 runpath_var='LD_RUN_PATH'
10211 hardcode_shlibpath_var=no
10212 ;;
10213
10214 sysv4.3*)
10215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10216 hardcode_shlibpath_var=no
10217 export_dynamic_flag_spec='-Bexport'
10218 ;;
10219
10220 sysv4*MP*)
10221 if test -d /usr/nec; then
10222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10223 hardcode_shlibpath_var=no
10224 runpath_var=LD_RUN_PATH
10225 hardcode_runpath_var=yes
10226 ld_shlibs=yes
10227 fi
10228 ;;
10229
10230 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10231 no_undefined_flag='${wl}-z,text'
10232 archive_cmds_need_lc=no
10233 hardcode_shlibpath_var=no
10234 runpath_var='LD_RUN_PATH'
10235
10236 if test "$GCC" = yes; then
10237 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10238 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10239 else
10240 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10241 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10242 fi
10243 ;;
10244
10245 sysv5* | sco3.2v5* | sco5v6*)
10246 # Note: We can NOT use -z defs as we might desire, because we do not
10247 # link with -lc, and that would cause any symbols used from libc to
10248 # always be unresolved, which means just about no library would
10249 # ever link correctly. If we're not using GNU ld we use -z text
10250 # though, which does catch some bad symbols but isn't as heavy-handed
10251 # as -z defs.
10252 no_undefined_flag='${wl}-z,text'
10253 allow_undefined_flag='${wl}-z,nodefs'
10254 archive_cmds_need_lc=no
10255 hardcode_shlibpath_var=no
10256 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10257 hardcode_libdir_separator=':'
10258 link_all_deplibs=yes
10259 export_dynamic_flag_spec='${wl}-Bexport'
10260 runpath_var='LD_RUN_PATH'
10261
10262 if test "$GCC" = yes; then
10263 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10264 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10265 else
10266 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10267 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10268 fi
10269 ;;
10270
10271 uts4*)
10272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10273 hardcode_libdir_flag_spec='-L$libdir'
10274 hardcode_shlibpath_var=no
10275 ;;
10276
10277 *)
10278 ld_shlibs=no
10279 ;;
10280 esac
10281
10282 if test x$host_vendor = xsni; then
10283 case $host in
10284 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10285 export_dynamic_flag_spec='${wl}-Blargedynsym'
10286 ;;
10287 esac
10288 fi
10289 fi
10290
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10292 $as_echo "$ld_shlibs" >&6; }
10293 test "$ld_shlibs" = no && can_build_shared=no
10294
10295 with_gnu_ld=$with_gnu_ld
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311 #
10312 # Do we need to explicitly link libc?
10313 #
10314 case "x$archive_cmds_need_lc" in
10315 x|xyes)
10316 # Assume -lc should be added
10317 archive_cmds_need_lc=yes
10318
10319 if test "$enable_shared" = yes && test "$GCC" = yes; then
10320 case $archive_cmds in
10321 *'~'*)
10322 # FIXME: we may have to deal with multi-command sequences.
10323 ;;
10324 '$CC '*)
10325 # Test whether the compiler implicitly links with -lc since on some
10326 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10327 # to ld, don't add -lc before -lgcc.
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10329 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10330 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10331 $as_echo_n "(cached) " >&6
10332 else
10333 $RM conftest*
10334 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10335
10336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10337 (eval $ac_compile) 2>&5
10338 ac_status=$?
10339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10340 test $ac_status = 0; } 2>conftest.err; then
10341 soname=conftest
10342 lib=conftest
10343 libobjs=conftest.$ac_objext
10344 deplibs=
10345 wl=$lt_prog_compiler_wl
10346 pic_flag=$lt_prog_compiler_pic
10347 compiler_flags=-v
10348 linker_flags=-v
10349 verstring=
10350 output_objdir=.
10351 libname=conftest
10352 lt_save_allow_undefined_flag=$allow_undefined_flag
10353 allow_undefined_flag=
10354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10355 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10356 ac_status=$?
10357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10358 test $ac_status = 0; }
10359 then
10360 lt_cv_archive_cmds_need_lc=no
10361 else
10362 lt_cv_archive_cmds_need_lc=yes
10363 fi
10364 allow_undefined_flag=$lt_save_allow_undefined_flag
10365 else
10366 cat conftest.err 1>&5
10367 fi
10368 $RM conftest*
10369
10370 fi
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10372 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10373 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10374 ;;
10375 esac
10376 fi
10377 ;;
10378 esac
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10537 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10538
10539 if test "$GCC" = yes; then
10540 case $host_os in
10541 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10542 *) lt_awk_arg="/^libraries:/" ;;
10543 esac
10544 case $host_os in
10545 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10546 *) lt_sed_strip_eq="s,=/,/,g" ;;
10547 esac
10548 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10549 case $lt_search_path_spec in
10550 *\;*)
10551 # if the path contains ";" then we assume it to be the separator
10552 # otherwise default to the standard path separator (i.e. ":") - it is
10553 # assumed that no part of a normal pathname contains ";" but that should
10554 # okay in the real world where ";" in dirpaths is itself problematic.
10555 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10556 ;;
10557 *)
10558 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10559 ;;
10560 esac
10561 # Ok, now we have the path, separated by spaces, we can step through it
10562 # and add multilib dir if necessary.
10563 lt_tmp_lt_search_path_spec=
10564 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10565 for lt_sys_path in $lt_search_path_spec; do
10566 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10567 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10568 else
10569 test -d "$lt_sys_path" && \
10570 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10571 fi
10572 done
10573 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10574 BEGIN {RS=" "; FS="/|\n";} {
10575 lt_foo="";
10576 lt_count=0;
10577 for (lt_i = NF; lt_i > 0; lt_i--) {
10578 if ($lt_i != "" && $lt_i != ".") {
10579 if ($lt_i == "..") {
10580 lt_count++;
10581 } else {
10582 if (lt_count == 0) {
10583 lt_foo="/" $lt_i lt_foo;
10584 } else {
10585 lt_count--;
10586 }
10587 }
10588 }
10589 }
10590 if (lt_foo != "") { lt_freq[lt_foo]++; }
10591 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10592 }'`
10593 # AWK program above erroneously prepends '/' to C:/dos/paths
10594 # for these hosts.
10595 case $host_os in
10596 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10597 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10598 esac
10599 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10600 else
10601 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10602 fi
10603 library_names_spec=
10604 libname_spec='lib$name'
10605 soname_spec=
10606 shrext_cmds=".so"
10607 postinstall_cmds=
10608 postuninstall_cmds=
10609 finish_cmds=
10610 finish_eval=
10611 shlibpath_var=
10612 shlibpath_overrides_runpath=unknown
10613 version_type=none
10614 dynamic_linker="$host_os ld.so"
10615 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10616 need_lib_prefix=unknown
10617 hardcode_into_libs=no
10618
10619 # when you set need_version to no, make sure it does not cause -set_version
10620 # flags to be left without arguments
10621 need_version=unknown
10622
10623 case $host_os in
10624 aix3*)
10625 version_type=linux
10626 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10627 shlibpath_var=LIBPATH
10628
10629 # AIX 3 has no versioning support, so we append a major version to the name.
10630 soname_spec='${libname}${release}${shared_ext}$major'
10631 ;;
10632
10633 aix[4-9]*)
10634 version_type=linux
10635 need_lib_prefix=no
10636 need_version=no
10637 hardcode_into_libs=yes
10638 if test "$host_cpu" = ia64; then
10639 # AIX 5 supports IA64
10640 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10641 shlibpath_var=LD_LIBRARY_PATH
10642 else
10643 # With GCC up to 2.95.x, collect2 would create an import file
10644 # for dependence libraries. The import file would start with
10645 # the line `#! .'. This would cause the generated library to
10646 # depend on `.', always an invalid library. This was fixed in
10647 # development snapshots of GCC prior to 3.0.
10648 case $host_os in
10649 aix4 | aix4.[01] | aix4.[01].*)
10650 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10651 echo ' yes '
10652 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10653 :
10654 else
10655 can_build_shared=no
10656 fi
10657 ;;
10658 esac
10659 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10660 # soname into executable. Probably we can add versioning support to
10661 # collect2, so additional links can be useful in future.
10662 if test "$aix_use_runtimelinking" = yes; then
10663 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10664 # instead of lib<name>.a to let people know that these are not
10665 # typical AIX shared libraries.
10666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10667 else
10668 # We preserve .a as extension for shared libraries through AIX4.2
10669 # and later when we are not doing run time linking.
10670 library_names_spec='${libname}${release}.a $libname.a'
10671 soname_spec='${libname}${release}${shared_ext}$major'
10672 fi
10673 shlibpath_var=LIBPATH
10674 fi
10675 ;;
10676
10677 amigaos*)
10678 case $host_cpu in
10679 powerpc)
10680 # Since July 2007 AmigaOS4 officially supports .so libraries.
10681 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10683 ;;
10684 m68k)
10685 library_names_spec='$libname.ixlibrary $libname.a'
10686 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10687 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'
10688 ;;
10689 esac
10690 ;;
10691
10692 beos*)
10693 library_names_spec='${libname}${shared_ext}'
10694 dynamic_linker="$host_os ld.so"
10695 shlibpath_var=LIBRARY_PATH
10696 ;;
10697
10698 bsdi[45]*)
10699 version_type=linux
10700 need_version=no
10701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10702 soname_spec='${libname}${release}${shared_ext}$major'
10703 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10704 shlibpath_var=LD_LIBRARY_PATH
10705 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10706 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10707 # the default ld.so.conf also contains /usr/contrib/lib and
10708 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10709 # libtool to hard-code these into programs
10710 ;;
10711
10712 cygwin* | mingw* | pw32* | cegcc*)
10713 version_type=windows
10714 shrext_cmds=".dll"
10715 need_version=no
10716 need_lib_prefix=no
10717
10718 case $GCC,$host_os in
10719 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10720 library_names_spec='$libname.dll.a'
10721 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10722 postinstall_cmds='base_file=`basename \${file}`~
10723 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10724 dldir=$destdir/`dirname \$dlpath`~
10725 test -d \$dldir || mkdir -p \$dldir~
10726 $install_prog $dir/$dlname \$dldir/$dlname~
10727 chmod a+x \$dldir/$dlname~
10728 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10729 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10730 fi'
10731 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10732 dlpath=$dir/\$dldll~
10733 $RM \$dlpath'
10734 shlibpath_overrides_runpath=yes
10735
10736 case $host_os in
10737 cygwin*)
10738 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10739 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10740
10741 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10742 ;;
10743 mingw* | cegcc*)
10744 # MinGW DLLs use traditional 'lib' prefix
10745 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10746 ;;
10747 pw32*)
10748 # pw32 DLLs use 'pw' prefix rather than 'lib'
10749 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10750 ;;
10751 esac
10752 ;;
10753
10754 *)
10755 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10756 ;;
10757 esac
10758 dynamic_linker='Win32 ld.exe'
10759 # FIXME: first we should search . and the directory the executable is in
10760 shlibpath_var=PATH
10761 ;;
10762
10763 darwin* | rhapsody*)
10764 dynamic_linker="$host_os dyld"
10765 version_type=darwin
10766 need_lib_prefix=no
10767 need_version=no
10768 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10769 soname_spec='${libname}${release}${major}$shared_ext'
10770 shlibpath_overrides_runpath=yes
10771 shlibpath_var=DYLD_LIBRARY_PATH
10772 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10773
10774 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10775 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10776 ;;
10777
10778 dgux*)
10779 version_type=linux
10780 need_lib_prefix=no
10781 need_version=no
10782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10783 soname_spec='${libname}${release}${shared_ext}$major'
10784 shlibpath_var=LD_LIBRARY_PATH
10785 ;;
10786
10787 freebsd* | dragonfly*)
10788 # DragonFly does not have aout. When/if they implement a new
10789 # versioning mechanism, adjust this.
10790 if test -x /usr/bin/objformat; then
10791 objformat=`/usr/bin/objformat`
10792 else
10793 case $host_os in
10794 freebsd[23].*) objformat=aout ;;
10795 *) objformat=elf ;;
10796 esac
10797 fi
10798 version_type=freebsd-$objformat
10799 case $version_type in
10800 freebsd-elf*)
10801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10802 need_version=no
10803 need_lib_prefix=no
10804 ;;
10805 freebsd-*)
10806 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10807 need_version=yes
10808 ;;
10809 esac
10810 shlibpath_var=LD_LIBRARY_PATH
10811 case $host_os in
10812 freebsd2.*)
10813 shlibpath_overrides_runpath=yes
10814 ;;
10815 freebsd3.[01]* | freebsdelf3.[01]*)
10816 shlibpath_overrides_runpath=yes
10817 hardcode_into_libs=yes
10818 ;;
10819 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10820 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10821 shlibpath_overrides_runpath=no
10822 hardcode_into_libs=yes
10823 ;;
10824 *) # from 4.6 on, and DragonFly
10825 shlibpath_overrides_runpath=yes
10826 hardcode_into_libs=yes
10827 ;;
10828 esac
10829 ;;
10830
10831 haiku*)
10832 version_type=linux
10833 need_lib_prefix=no
10834 need_version=no
10835 dynamic_linker="$host_os runtime_loader"
10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10837 soname_spec='${libname}${release}${shared_ext}$major'
10838 shlibpath_var=LIBRARY_PATH
10839 shlibpath_overrides_runpath=yes
10840 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10841 hardcode_into_libs=yes
10842 ;;
10843
10844 hpux9* | hpux10* | hpux11*)
10845 # Give a soname corresponding to the major version so that dld.sl refuses to
10846 # link against other versions.
10847 version_type=sunos
10848 need_lib_prefix=no
10849 need_version=no
10850 case $host_cpu in
10851 ia64*)
10852 shrext_cmds='.so'
10853 hardcode_into_libs=yes
10854 dynamic_linker="$host_os dld.so"
10855 shlibpath_var=LD_LIBRARY_PATH
10856 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10858 soname_spec='${libname}${release}${shared_ext}$major'
10859 if test "X$HPUX_IA64_MODE" = X32; then
10860 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10861 else
10862 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10863 fi
10864 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10865 ;;
10866 hppa*64*)
10867 shrext_cmds='.sl'
10868 hardcode_into_libs=yes
10869 dynamic_linker="$host_os dld.sl"
10870 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10871 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10873 soname_spec='${libname}${release}${shared_ext}$major'
10874 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10875 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10876 ;;
10877 *)
10878 shrext_cmds='.sl'
10879 dynamic_linker="$host_os dld.sl"
10880 shlibpath_var=SHLIB_PATH
10881 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10883 soname_spec='${libname}${release}${shared_ext}$major'
10884 ;;
10885 esac
10886 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10887 postinstall_cmds='chmod 555 $lib'
10888 # or fails outright, so override atomically:
10889 install_override_mode=555
10890 ;;
10891
10892 interix[3-9]*)
10893 version_type=linux
10894 need_lib_prefix=no
10895 need_version=no
10896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10897 soname_spec='${libname}${release}${shared_ext}$major'
10898 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10899 shlibpath_var=LD_LIBRARY_PATH
10900 shlibpath_overrides_runpath=no
10901 hardcode_into_libs=yes
10902 ;;
10903
10904 irix5* | irix6* | nonstopux*)
10905 case $host_os in
10906 nonstopux*) version_type=nonstopux ;;
10907 *)
10908 if test "$lt_cv_prog_gnu_ld" = yes; then
10909 version_type=linux
10910 else
10911 version_type=irix
10912 fi ;;
10913 esac
10914 need_lib_prefix=no
10915 need_version=no
10916 soname_spec='${libname}${release}${shared_ext}$major'
10917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10918 case $host_os in
10919 irix5* | nonstopux*)
10920 libsuff= shlibsuff=
10921 ;;
10922 *)
10923 case $LD in # libtool.m4 will add one of these switches to LD
10924 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10925 libsuff= shlibsuff= libmagic=32-bit;;
10926 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10927 libsuff=32 shlibsuff=N32 libmagic=N32;;
10928 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10929 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10930 *) libsuff= shlibsuff= libmagic=never-match;;
10931 esac
10932 ;;
10933 esac
10934 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10935 shlibpath_overrides_runpath=no
10936 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10937 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10938 hardcode_into_libs=yes
10939 ;;
10940
10941 # No shared lib support for Linux oldld, aout, or coff.
10942 linux*oldld* | linux*aout* | linux*coff*)
10943 dynamic_linker=no
10944 ;;
10945
10946 # This must be Linux ELF.
10947
10948 # uclinux* changes (here and below) have been submitted to the libtool
10949 # project, but have not yet been accepted: they are GCC-local changes
10950 # for the time being. (See
10951 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10952 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10953 version_type=linux
10954 need_lib_prefix=no
10955 need_version=no
10956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10957 soname_spec='${libname}${release}${shared_ext}$major'
10958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10959 shlibpath_var=LD_LIBRARY_PATH
10960 shlibpath_overrides_runpath=no
10961
10962 # Some binutils ld are patched to set DT_RUNPATH
10963 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10964 $as_echo_n "(cached) " >&6
10965 else
10966 lt_cv_shlibpath_overrides_runpath=no
10967 save_LDFLAGS=$LDFLAGS
10968 save_libdir=$libdir
10969 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10970 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10972 /* end confdefs.h. */
10973
10974 int
10975 main ()
10976 {
10977
10978 ;
10979 return 0;
10980 }
10981 _ACEOF
10982 if ac_fn_c_try_link "$LINENO"; then :
10983 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10984 lt_cv_shlibpath_overrides_runpath=yes
10985 fi
10986 fi
10987 rm -f core conftest.err conftest.$ac_objext \
10988 conftest$ac_exeext conftest.$ac_ext
10989 LDFLAGS=$save_LDFLAGS
10990 libdir=$save_libdir
10991
10992 fi
10993
10994 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10995
10996 # This implies no fast_install, which is unacceptable.
10997 # Some rework will be needed to allow for fast_install
10998 # before this can be enabled.
10999 hardcode_into_libs=yes
11000
11001 # Append ld.so.conf contents to the search path
11002 if test -f /etc/ld.so.conf; then
11003 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' ' '`
11004 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11005 fi
11006
11007 # We used to test for /lib/ld.so.1 and disable shared libraries on
11008 # powerpc, because MkLinux only supported shared libraries with the
11009 # GNU dynamic linker. Since this was broken with cross compilers,
11010 # most powerpc-linux boxes support dynamic linking these days and
11011 # people can always --disable-shared, the test was removed, and we
11012 # assume the GNU/Linux dynamic linker is in use.
11013 dynamic_linker='GNU/Linux ld.so'
11014 ;;
11015
11016 netbsd*)
11017 version_type=sunos
11018 need_lib_prefix=no
11019 need_version=no
11020 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11022 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11023 dynamic_linker='NetBSD (a.out) ld.so'
11024 else
11025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11026 soname_spec='${libname}${release}${shared_ext}$major'
11027 dynamic_linker='NetBSD ld.elf_so'
11028 fi
11029 shlibpath_var=LD_LIBRARY_PATH
11030 shlibpath_overrides_runpath=yes
11031 hardcode_into_libs=yes
11032 ;;
11033
11034 newsos6)
11035 version_type=linux
11036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11037 shlibpath_var=LD_LIBRARY_PATH
11038 shlibpath_overrides_runpath=yes
11039 ;;
11040
11041 *nto* | *qnx*)
11042 version_type=qnx
11043 need_lib_prefix=no
11044 need_version=no
11045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11046 soname_spec='${libname}${release}${shared_ext}$major'
11047 shlibpath_var=LD_LIBRARY_PATH
11048 shlibpath_overrides_runpath=no
11049 hardcode_into_libs=yes
11050 dynamic_linker='ldqnx.so'
11051 ;;
11052
11053 openbsd*)
11054 version_type=sunos
11055 sys_lib_dlsearch_path_spec="/usr/lib"
11056 need_lib_prefix=no
11057 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11058 case $host_os in
11059 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11060 *) need_version=no ;;
11061 esac
11062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11064 shlibpath_var=LD_LIBRARY_PATH
11065 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11066 case $host_os in
11067 openbsd2.[89] | openbsd2.[89].*)
11068 shlibpath_overrides_runpath=no
11069 ;;
11070 *)
11071 shlibpath_overrides_runpath=yes
11072 ;;
11073 esac
11074 else
11075 shlibpath_overrides_runpath=yes
11076 fi
11077 ;;
11078
11079 os2*)
11080 libname_spec='$name'
11081 shrext_cmds=".dll"
11082 need_lib_prefix=no
11083 library_names_spec='$libname${shared_ext} $libname.a'
11084 dynamic_linker='OS/2 ld.exe'
11085 shlibpath_var=LIBPATH
11086 ;;
11087
11088 osf3* | osf4* | osf5*)
11089 version_type=osf
11090 need_lib_prefix=no
11091 need_version=no
11092 soname_spec='${libname}${release}${shared_ext}$major'
11093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11094 shlibpath_var=LD_LIBRARY_PATH
11095 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11096 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11097 ;;
11098
11099 rdos*)
11100 dynamic_linker=no
11101 ;;
11102
11103 solaris*)
11104 version_type=linux
11105 need_lib_prefix=no
11106 need_version=no
11107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11108 soname_spec='${libname}${release}${shared_ext}$major'
11109 shlibpath_var=LD_LIBRARY_PATH
11110 shlibpath_overrides_runpath=yes
11111 hardcode_into_libs=yes
11112 # ldd complains unless libraries are executable
11113 postinstall_cmds='chmod +x $lib'
11114 ;;
11115
11116 sunos4*)
11117 version_type=sunos
11118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11119 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11120 shlibpath_var=LD_LIBRARY_PATH
11121 shlibpath_overrides_runpath=yes
11122 if test "$with_gnu_ld" = yes; then
11123 need_lib_prefix=no
11124 fi
11125 need_version=yes
11126 ;;
11127
11128 sysv4 | sysv4.3*)
11129 version_type=linux
11130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11131 soname_spec='${libname}${release}${shared_ext}$major'
11132 shlibpath_var=LD_LIBRARY_PATH
11133 case $host_vendor in
11134 sni)
11135 shlibpath_overrides_runpath=no
11136 need_lib_prefix=no
11137 runpath_var=LD_RUN_PATH
11138 ;;
11139 siemens)
11140 need_lib_prefix=no
11141 ;;
11142 motorola)
11143 need_lib_prefix=no
11144 need_version=no
11145 shlibpath_overrides_runpath=no
11146 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11147 ;;
11148 esac
11149 ;;
11150
11151 sysv4*MP*)
11152 if test -d /usr/nec ;then
11153 version_type=linux
11154 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11155 soname_spec='$libname${shared_ext}.$major'
11156 shlibpath_var=LD_LIBRARY_PATH
11157 fi
11158 ;;
11159
11160 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11161 version_type=freebsd-elf
11162 need_lib_prefix=no
11163 need_version=no
11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11165 soname_spec='${libname}${release}${shared_ext}$major'
11166 shlibpath_var=LD_LIBRARY_PATH
11167 shlibpath_overrides_runpath=yes
11168 hardcode_into_libs=yes
11169 if test "$with_gnu_ld" = yes; then
11170 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11171 else
11172 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11173 case $host_os in
11174 sco3.2v5*)
11175 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11176 ;;
11177 esac
11178 fi
11179 sys_lib_dlsearch_path_spec='/usr/lib'
11180 ;;
11181
11182 tpf*)
11183 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11184 version_type=linux
11185 need_lib_prefix=no
11186 need_version=no
11187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11188 shlibpath_var=LD_LIBRARY_PATH
11189 shlibpath_overrides_runpath=no
11190 hardcode_into_libs=yes
11191 ;;
11192
11193 uts4*)
11194 version_type=linux
11195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11196 soname_spec='${libname}${release}${shared_ext}$major'
11197 shlibpath_var=LD_LIBRARY_PATH
11198 ;;
11199
11200 # Shared libraries for VwWorks, >= 7 only at this stage
11201 # and (fpic) still incompatible with "large" code models
11202 # in a few configurations. Only for RTP mode in any case,
11203 # and upon explicit request at configure time.
11204 vxworks7*)
11205 dynamic_linker=no
11206 case ${with_multisubdir}-${enable_shared} in
11207 *large*)
11208 ;;
11209 *mrtp*-yes)
11210 version_type=linux
11211 need_lib_prefix=no
11212 need_version=no
11213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11214 soname_spec='${libname}${release}${shared_ext}$major'
11215 dynamic_linker="$host_os module_loader"
11216 ;;
11217 esac
11218 ;;
11219 *)
11220 dynamic_linker=no
11221 ;;
11222 esac
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11224 $as_echo "$dynamic_linker" >&6; }
11225 test "$dynamic_linker" = no && can_build_shared=no
11226
11227 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11228 if test "$GCC" = yes; then
11229 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11230 fi
11231
11232 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11233 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11234 fi
11235 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11236 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11237 fi
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11331 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11332 hardcode_action=
11333 if test -n "$hardcode_libdir_flag_spec" ||
11334 test -n "$runpath_var" ||
11335 test "X$hardcode_automatic" = "Xyes" ; then
11336
11337 # We can hardcode non-existent directories.
11338 if test "$hardcode_direct" != no &&
11339 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11340 # have to relink, otherwise we might link with an installed library
11341 # when we should be linking with a yet-to-be-installed one
11342 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11343 test "$hardcode_minus_L" != no; then
11344 # Linking always hardcodes the temporary library directory.
11345 hardcode_action=relink
11346 else
11347 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11348 hardcode_action=immediate
11349 fi
11350 else
11351 # We cannot hardcode anything, or else we can only hardcode existing
11352 # directories.
11353 hardcode_action=unsupported
11354 fi
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11356 $as_echo "$hardcode_action" >&6; }
11357
11358 if test "$hardcode_action" = relink ||
11359 test "$inherit_rpath" = yes; then
11360 # Fast installation is not supported
11361 enable_fast_install=no
11362 elif test "$shlibpath_overrides_runpath" = yes ||
11363 test "$enable_shared" = no; then
11364 # Fast installation is not necessary
11365 enable_fast_install=needless
11366 fi
11367
11368
11369
11370
11371
11372
11373 if test "x$enable_dlopen" != xyes; then
11374 enable_dlopen=unknown
11375 enable_dlopen_self=unknown
11376 enable_dlopen_self_static=unknown
11377 else
11378 lt_cv_dlopen=no
11379 lt_cv_dlopen_libs=
11380
11381 case $host_os in
11382 beos*)
11383 lt_cv_dlopen="load_add_on"
11384 lt_cv_dlopen_libs=
11385 lt_cv_dlopen_self=yes
11386 ;;
11387
11388 mingw* | pw32* | cegcc*)
11389 lt_cv_dlopen="LoadLibrary"
11390 lt_cv_dlopen_libs=
11391 ;;
11392
11393 cygwin*)
11394 lt_cv_dlopen="dlopen"
11395 lt_cv_dlopen_libs=
11396 ;;
11397
11398 darwin*)
11399 # if libdl is installed we need to link against it
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11401 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11402 if ${ac_cv_lib_dl_dlopen+:} false; then :
11403 $as_echo_n "(cached) " >&6
11404 else
11405 ac_check_lib_save_LIBS=$LIBS
11406 LIBS="-ldl $LIBS"
11407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11408 /* end confdefs.h. */
11409
11410 /* Override any GCC internal prototype to avoid an error.
11411 Use char because int might match the return type of a GCC
11412 builtin and then its argument prototype would still apply. */
11413 #ifdef __cplusplus
11414 extern "C"
11415 #endif
11416 char dlopen ();
11417 int
11418 main ()
11419 {
11420 return dlopen ();
11421 ;
11422 return 0;
11423 }
11424 _ACEOF
11425 if ac_fn_c_try_link "$LINENO"; then :
11426 ac_cv_lib_dl_dlopen=yes
11427 else
11428 ac_cv_lib_dl_dlopen=no
11429 fi
11430 rm -f core conftest.err conftest.$ac_objext \
11431 conftest$ac_exeext conftest.$ac_ext
11432 LIBS=$ac_check_lib_save_LIBS
11433 fi
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11435 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11436 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11437 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11438 else
11439
11440 lt_cv_dlopen="dyld"
11441 lt_cv_dlopen_libs=
11442 lt_cv_dlopen_self=yes
11443
11444 fi
11445
11446 ;;
11447
11448 *)
11449 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11450 if test "x$ac_cv_func_shl_load" = xyes; then :
11451 lt_cv_dlopen="shl_load"
11452 else
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11454 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11455 if ${ac_cv_lib_dld_shl_load+:} false; then :
11456 $as_echo_n "(cached) " >&6
11457 else
11458 ac_check_lib_save_LIBS=$LIBS
11459 LIBS="-ldld $LIBS"
11460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461 /* end confdefs.h. */
11462
11463 /* Override any GCC internal prototype to avoid an error.
11464 Use char because int might match the return type of a GCC
11465 builtin and then its argument prototype would still apply. */
11466 #ifdef __cplusplus
11467 extern "C"
11468 #endif
11469 char shl_load ();
11470 int
11471 main ()
11472 {
11473 return shl_load ();
11474 ;
11475 return 0;
11476 }
11477 _ACEOF
11478 if ac_fn_c_try_link "$LINENO"; then :
11479 ac_cv_lib_dld_shl_load=yes
11480 else
11481 ac_cv_lib_dld_shl_load=no
11482 fi
11483 rm -f core conftest.err conftest.$ac_objext \
11484 conftest$ac_exeext conftest.$ac_ext
11485 LIBS=$ac_check_lib_save_LIBS
11486 fi
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11488 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11489 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11490 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11491 else
11492 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11493 if test "x$ac_cv_func_dlopen" = xyes; then :
11494 lt_cv_dlopen="dlopen"
11495 else
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11497 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11498 if ${ac_cv_lib_dl_dlopen+:} false; then :
11499 $as_echo_n "(cached) " >&6
11500 else
11501 ac_check_lib_save_LIBS=$LIBS
11502 LIBS="-ldl $LIBS"
11503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11504 /* end confdefs.h. */
11505
11506 /* Override any GCC internal prototype to avoid an error.
11507 Use char because int might match the return type of a GCC
11508 builtin and then its argument prototype would still apply. */
11509 #ifdef __cplusplus
11510 extern "C"
11511 #endif
11512 char dlopen ();
11513 int
11514 main ()
11515 {
11516 return dlopen ();
11517 ;
11518 return 0;
11519 }
11520 _ACEOF
11521 if ac_fn_c_try_link "$LINENO"; then :
11522 ac_cv_lib_dl_dlopen=yes
11523 else
11524 ac_cv_lib_dl_dlopen=no
11525 fi
11526 rm -f core conftest.err conftest.$ac_objext \
11527 conftest$ac_exeext conftest.$ac_ext
11528 LIBS=$ac_check_lib_save_LIBS
11529 fi
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11531 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11532 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11533 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11534 else
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11536 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11537 if ${ac_cv_lib_svld_dlopen+:} false; then :
11538 $as_echo_n "(cached) " >&6
11539 else
11540 ac_check_lib_save_LIBS=$LIBS
11541 LIBS="-lsvld $LIBS"
11542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11543 /* end confdefs.h. */
11544
11545 /* Override any GCC internal prototype to avoid an error.
11546 Use char because int might match the return type of a GCC
11547 builtin and then its argument prototype would still apply. */
11548 #ifdef __cplusplus
11549 extern "C"
11550 #endif
11551 char dlopen ();
11552 int
11553 main ()
11554 {
11555 return dlopen ();
11556 ;
11557 return 0;
11558 }
11559 _ACEOF
11560 if ac_fn_c_try_link "$LINENO"; then :
11561 ac_cv_lib_svld_dlopen=yes
11562 else
11563 ac_cv_lib_svld_dlopen=no
11564 fi
11565 rm -f core conftest.err conftest.$ac_objext \
11566 conftest$ac_exeext conftest.$ac_ext
11567 LIBS=$ac_check_lib_save_LIBS
11568 fi
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11570 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11571 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11572 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11573 else
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11575 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11576 if ${ac_cv_lib_dld_dld_link+:} false; then :
11577 $as_echo_n "(cached) " >&6
11578 else
11579 ac_check_lib_save_LIBS=$LIBS
11580 LIBS="-ldld $LIBS"
11581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11582 /* end confdefs.h. */
11583
11584 /* Override any GCC internal prototype to avoid an error.
11585 Use char because int might match the return type of a GCC
11586 builtin and then its argument prototype would still apply. */
11587 #ifdef __cplusplus
11588 extern "C"
11589 #endif
11590 char dld_link ();
11591 int
11592 main ()
11593 {
11594 return dld_link ();
11595 ;
11596 return 0;
11597 }
11598 _ACEOF
11599 if ac_fn_c_try_link "$LINENO"; then :
11600 ac_cv_lib_dld_dld_link=yes
11601 else
11602 ac_cv_lib_dld_dld_link=no
11603 fi
11604 rm -f core conftest.err conftest.$ac_objext \
11605 conftest$ac_exeext conftest.$ac_ext
11606 LIBS=$ac_check_lib_save_LIBS
11607 fi
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11609 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11610 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11611 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11612 fi
11613
11614
11615 fi
11616
11617
11618 fi
11619
11620
11621 fi
11622
11623
11624 fi
11625
11626
11627 fi
11628
11629 ;;
11630 esac
11631
11632 if test "x$lt_cv_dlopen" != xno; then
11633 enable_dlopen=yes
11634 else
11635 enable_dlopen=no
11636 fi
11637
11638 case $lt_cv_dlopen in
11639 dlopen)
11640 save_CPPFLAGS="$CPPFLAGS"
11641 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11642
11643 save_LDFLAGS="$LDFLAGS"
11644 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11645
11646 save_LIBS="$LIBS"
11647 LIBS="$lt_cv_dlopen_libs $LIBS"
11648
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11650 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11651 if ${lt_cv_dlopen_self+:} false; then :
11652 $as_echo_n "(cached) " >&6
11653 else
11654 if test "$cross_compiling" = yes; then :
11655 lt_cv_dlopen_self=cross
11656 else
11657 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11658 lt_status=$lt_dlunknown
11659 cat > conftest.$ac_ext <<_LT_EOF
11660 #line 11658 "configure"
11661 #include "confdefs.h"
11662
11663 #if HAVE_DLFCN_H
11664 #include <dlfcn.h>
11665 #endif
11666
11667 #include <stdio.h>
11668
11669 #ifdef RTLD_GLOBAL
11670 # define LT_DLGLOBAL RTLD_GLOBAL
11671 #else
11672 # ifdef DL_GLOBAL
11673 # define LT_DLGLOBAL DL_GLOBAL
11674 # else
11675 # define LT_DLGLOBAL 0
11676 # endif
11677 #endif
11678
11679 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11680 find out it does not work in some platform. */
11681 #ifndef LT_DLLAZY_OR_NOW
11682 # ifdef RTLD_LAZY
11683 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11684 # else
11685 # ifdef DL_LAZY
11686 # define LT_DLLAZY_OR_NOW DL_LAZY
11687 # else
11688 # ifdef RTLD_NOW
11689 # define LT_DLLAZY_OR_NOW RTLD_NOW
11690 # else
11691 # ifdef DL_NOW
11692 # define LT_DLLAZY_OR_NOW DL_NOW
11693 # else
11694 # define LT_DLLAZY_OR_NOW 0
11695 # endif
11696 # endif
11697 # endif
11698 # endif
11699 #endif
11700
11701 /* When -fvisbility=hidden is used, assume the code has been annotated
11702 correspondingly for the symbols needed. */
11703 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11704 void fnord () __attribute__((visibility("default")));
11705 #endif
11706
11707 void fnord () { int i=42; }
11708 int main ()
11709 {
11710 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11711 int status = $lt_dlunknown;
11712
11713 if (self)
11714 {
11715 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11716 else
11717 {
11718 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11719 else puts (dlerror ());
11720 }
11721 /* dlclose (self); */
11722 }
11723 else
11724 puts (dlerror ());
11725
11726 return status;
11727 }
11728 _LT_EOF
11729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11730 (eval $ac_link) 2>&5
11731 ac_status=$?
11732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11733 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11734 (./conftest; exit; ) >&5 2>/dev/null
11735 lt_status=$?
11736 case x$lt_status in
11737 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11738 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11739 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11740 esac
11741 else :
11742 # compilation failed
11743 lt_cv_dlopen_self=no
11744 fi
11745 fi
11746 rm -fr conftest*
11747
11748
11749 fi
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11751 $as_echo "$lt_cv_dlopen_self" >&6; }
11752
11753 if test "x$lt_cv_dlopen_self" = xyes; then
11754 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11756 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11757 if ${lt_cv_dlopen_self_static+:} false; then :
11758 $as_echo_n "(cached) " >&6
11759 else
11760 if test "$cross_compiling" = yes; then :
11761 lt_cv_dlopen_self_static=cross
11762 else
11763 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11764 lt_status=$lt_dlunknown
11765 cat > conftest.$ac_ext <<_LT_EOF
11766 #line 11764 "configure"
11767 #include "confdefs.h"
11768
11769 #if HAVE_DLFCN_H
11770 #include <dlfcn.h>
11771 #endif
11772
11773 #include <stdio.h>
11774
11775 #ifdef RTLD_GLOBAL
11776 # define LT_DLGLOBAL RTLD_GLOBAL
11777 #else
11778 # ifdef DL_GLOBAL
11779 # define LT_DLGLOBAL DL_GLOBAL
11780 # else
11781 # define LT_DLGLOBAL 0
11782 # endif
11783 #endif
11784
11785 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11786 find out it does not work in some platform. */
11787 #ifndef LT_DLLAZY_OR_NOW
11788 # ifdef RTLD_LAZY
11789 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11790 # else
11791 # ifdef DL_LAZY
11792 # define LT_DLLAZY_OR_NOW DL_LAZY
11793 # else
11794 # ifdef RTLD_NOW
11795 # define LT_DLLAZY_OR_NOW RTLD_NOW
11796 # else
11797 # ifdef DL_NOW
11798 # define LT_DLLAZY_OR_NOW DL_NOW
11799 # else
11800 # define LT_DLLAZY_OR_NOW 0
11801 # endif
11802 # endif
11803 # endif
11804 # endif
11805 #endif
11806
11807 /* When -fvisbility=hidden is used, assume the code has been annotated
11808 correspondingly for the symbols needed. */
11809 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11810 void fnord () __attribute__((visibility("default")));
11811 #endif
11812
11813 void fnord () { int i=42; }
11814 int main ()
11815 {
11816 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11817 int status = $lt_dlunknown;
11818
11819 if (self)
11820 {
11821 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11822 else
11823 {
11824 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11825 else puts (dlerror ());
11826 }
11827 /* dlclose (self); */
11828 }
11829 else
11830 puts (dlerror ());
11831
11832 return status;
11833 }
11834 _LT_EOF
11835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11836 (eval $ac_link) 2>&5
11837 ac_status=$?
11838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11839 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11840 (./conftest; exit; ) >&5 2>/dev/null
11841 lt_status=$?
11842 case x$lt_status in
11843 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11844 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11845 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11846 esac
11847 else :
11848 # compilation failed
11849 lt_cv_dlopen_self_static=no
11850 fi
11851 fi
11852 rm -fr conftest*
11853
11854
11855 fi
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11857 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11858 fi
11859
11860 CPPFLAGS="$save_CPPFLAGS"
11861 LDFLAGS="$save_LDFLAGS"
11862 LIBS="$save_LIBS"
11863 ;;
11864 esac
11865
11866 case $lt_cv_dlopen_self in
11867 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11868 *) enable_dlopen_self=unknown ;;
11869 esac
11870
11871 case $lt_cv_dlopen_self_static in
11872 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11873 *) enable_dlopen_self_static=unknown ;;
11874 esac
11875 fi
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893 striplib=
11894 old_striplib=
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11896 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11897 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11898 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11899 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11901 $as_echo "yes" >&6; }
11902 else
11903 # FIXME - insert some real tests, host_os isn't really good enough
11904 case $host_os in
11905 darwin*)
11906 if test -n "$STRIP" ; then
11907 striplib="$STRIP -x"
11908 old_striplib="$STRIP -S"
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11910 $as_echo "yes" >&6; }
11911 else
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913 $as_echo "no" >&6; }
11914 fi
11915 ;;
11916 *)
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918 $as_echo "no" >&6; }
11919 ;;
11920 esac
11921 fi
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934 # Report which library types will actually be built
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11936 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11938 $as_echo "$can_build_shared" >&6; }
11939
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11941 $as_echo_n "checking whether to build shared libraries... " >&6; }
11942 test "$can_build_shared" = "no" && enable_shared=no
11943
11944 # On AIX, shared libraries and static libraries use the same namespace, and
11945 # are all built from PIC.
11946 case $host_os in
11947 aix3*)
11948 test "$enable_shared" = yes && enable_static=no
11949 if test -n "$RANLIB"; then
11950 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11951 postinstall_cmds='$RANLIB $lib'
11952 fi
11953 ;;
11954
11955 aix[4-9]*)
11956 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11957 test "$enable_shared" = yes && enable_static=no
11958 fi
11959 ;;
11960 esac
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11962 $as_echo "$enable_shared" >&6; }
11963
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11965 $as_echo_n "checking whether to build static libraries... " >&6; }
11966 # Make sure either enable_shared or enable_static is yes.
11967 test "$enable_shared" = yes || enable_static=yes
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11969 $as_echo "$enable_static" >&6; }
11970
11971
11972
11973
11974 fi
11975 ac_ext=c
11976 ac_cpp='$CPP $CPPFLAGS'
11977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11980
11981 CC="$lt_save_CC"
11982
11983 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11984 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11985 (test "X$CXX" != "Xg++"))) ; then
11986 ac_ext=cpp
11987 ac_cpp='$CXXCPP $CPPFLAGS'
11988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11992 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11993 if test -z "$CXXCPP"; then
11994 if ${ac_cv_prog_CXXCPP+:} false; then :
11995 $as_echo_n "(cached) " >&6
11996 else
11997 # Double quotes because CXXCPP needs to be expanded
11998 for CXXCPP in "$CXX -E" "/lib/cpp"
11999 do
12000 ac_preproc_ok=false
12001 for ac_cxx_preproc_warn_flag in '' yes
12002 do
12003 # Use a header file that comes with gcc, so configuring glibc
12004 # with a fresh cross-compiler works.
12005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12006 # <limits.h> exists even on freestanding compilers.
12007 # On the NeXT, cc -E runs the code through the compiler's parser,
12008 # not just through cpp. "Syntax error" is here to catch this case.
12009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12010 /* end confdefs.h. */
12011 #ifdef __STDC__
12012 # include <limits.h>
12013 #else
12014 # include <assert.h>
12015 #endif
12016 Syntax error
12017 _ACEOF
12018 if ac_fn_cxx_try_cpp "$LINENO"; then :
12019
12020 else
12021 # Broken: fails on valid input.
12022 continue
12023 fi
12024 rm -f conftest.err conftest.i conftest.$ac_ext
12025
12026 # OK, works on sane cases. Now check whether nonexistent headers
12027 # can be detected and how.
12028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12029 /* end confdefs.h. */
12030 #include <ac_nonexistent.h>
12031 _ACEOF
12032 if ac_fn_cxx_try_cpp "$LINENO"; then :
12033 # Broken: success on invalid input.
12034 continue
12035 else
12036 # Passes both tests.
12037 ac_preproc_ok=:
12038 break
12039 fi
12040 rm -f conftest.err conftest.i conftest.$ac_ext
12041
12042 done
12043 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12044 rm -f conftest.i conftest.err conftest.$ac_ext
12045 if $ac_preproc_ok; then :
12046 break
12047 fi
12048
12049 done
12050 ac_cv_prog_CXXCPP=$CXXCPP
12051
12052 fi
12053 CXXCPP=$ac_cv_prog_CXXCPP
12054 else
12055 ac_cv_prog_CXXCPP=$CXXCPP
12056 fi
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12058 $as_echo "$CXXCPP" >&6; }
12059 ac_preproc_ok=false
12060 for ac_cxx_preproc_warn_flag in '' yes
12061 do
12062 # Use a header file that comes with gcc, so configuring glibc
12063 # with a fresh cross-compiler works.
12064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12065 # <limits.h> exists even on freestanding compilers.
12066 # On the NeXT, cc -E runs the code through the compiler's parser,
12067 # not just through cpp. "Syntax error" is here to catch this case.
12068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069 /* end confdefs.h. */
12070 #ifdef __STDC__
12071 # include <limits.h>
12072 #else
12073 # include <assert.h>
12074 #endif
12075 Syntax error
12076 _ACEOF
12077 if ac_fn_cxx_try_cpp "$LINENO"; then :
12078
12079 else
12080 # Broken: fails on valid input.
12081 continue
12082 fi
12083 rm -f conftest.err conftest.i conftest.$ac_ext
12084
12085 # OK, works on sane cases. Now check whether nonexistent headers
12086 # can be detected and how.
12087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12088 /* end confdefs.h. */
12089 #include <ac_nonexistent.h>
12090 _ACEOF
12091 if ac_fn_cxx_try_cpp "$LINENO"; then :
12092 # Broken: success on invalid input.
12093 continue
12094 else
12095 # Passes both tests.
12096 ac_preproc_ok=:
12097 break
12098 fi
12099 rm -f conftest.err conftest.i conftest.$ac_ext
12100
12101 done
12102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12103 rm -f conftest.i conftest.err conftest.$ac_ext
12104 if $ac_preproc_ok; then :
12105
12106 else
12107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12109 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12110 See \`config.log' for more details" "$LINENO" 5; }
12111 fi
12112
12113 ac_ext=c
12114 ac_cpp='$CPP $CPPFLAGS'
12115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12118
12119 else
12120 _lt_caught_CXX_error=yes
12121 fi
12122
12123 ac_ext=cpp
12124 ac_cpp='$CXXCPP $CPPFLAGS'
12125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12128
12129 archive_cmds_need_lc_CXX=no
12130 allow_undefined_flag_CXX=
12131 always_export_symbols_CXX=no
12132 archive_expsym_cmds_CXX=
12133 compiler_needs_object_CXX=no
12134 export_dynamic_flag_spec_CXX=
12135 hardcode_direct_CXX=no
12136 hardcode_direct_absolute_CXX=no
12137 hardcode_libdir_flag_spec_CXX=
12138 hardcode_libdir_flag_spec_ld_CXX=
12139 hardcode_libdir_separator_CXX=
12140 hardcode_minus_L_CXX=no
12141 hardcode_shlibpath_var_CXX=unsupported
12142 hardcode_automatic_CXX=no
12143 inherit_rpath_CXX=no
12144 module_cmds_CXX=
12145 module_expsym_cmds_CXX=
12146 link_all_deplibs_CXX=unknown
12147 old_archive_cmds_CXX=$old_archive_cmds
12148 reload_flag_CXX=$reload_flag
12149 reload_cmds_CXX=$reload_cmds
12150 no_undefined_flag_CXX=
12151 whole_archive_flag_spec_CXX=
12152 enable_shared_with_static_runtimes_CXX=no
12153
12154 # Source file extension for C++ test sources.
12155 ac_ext=cpp
12156
12157 # Object file extension for compiled C++ test sources.
12158 objext=o
12159 objext_CXX=$objext
12160
12161 # No sense in running all these tests if we already determined that
12162 # the CXX compiler isn't working. Some variables (like enable_shared)
12163 # are currently assumed to apply to all compilers on this platform,
12164 # and will be corrupted by setting them based on a non-working compiler.
12165 if test "$_lt_caught_CXX_error" != yes; then
12166 # Code to be used in simple compile tests
12167 lt_simple_compile_test_code="int some_variable = 0;"
12168
12169 # Code to be used in simple link tests
12170 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12171
12172 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12173
12174
12175
12176
12177
12178
12179 # If no C compiler was specified, use CC.
12180 LTCC=${LTCC-"$CC"}
12181
12182 # If no C compiler flags were specified, use CFLAGS.
12183 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12184
12185 # Allow CC to be a program name with arguments.
12186 compiler=$CC
12187
12188
12189 # save warnings/boilerplate of simple test code
12190 ac_outfile=conftest.$ac_objext
12191 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12192 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12193 _lt_compiler_boilerplate=`cat conftest.err`
12194 $RM conftest*
12195
12196 ac_outfile=conftest.$ac_objext
12197 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12198 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12199 _lt_linker_boilerplate=`cat conftest.err`
12200 $RM -r conftest*
12201
12202
12203 # Allow CC to be a program name with arguments.
12204 lt_save_CC=$CC
12205 lt_save_LD=$LD
12206 lt_save_GCC=$GCC
12207 GCC=$GXX
12208 lt_save_with_gnu_ld=$with_gnu_ld
12209 lt_save_path_LD=$lt_cv_path_LD
12210 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12211 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12212 else
12213 $as_unset lt_cv_prog_gnu_ld
12214 fi
12215 if test -n "${lt_cv_path_LDCXX+set}"; then
12216 lt_cv_path_LD=$lt_cv_path_LDCXX
12217 else
12218 $as_unset lt_cv_path_LD
12219 fi
12220 test -z "${LDCXX+set}" || LD=$LDCXX
12221 CC=${CXX-"c++"}
12222 compiler=$CC
12223 compiler_CXX=$CC
12224 for cc_temp in $compiler""; do
12225 case $cc_temp in
12226 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12227 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12228 \-*) ;;
12229 *) break;;
12230 esac
12231 done
12232 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12233
12234
12235 if test -n "$compiler"; then
12236 # We don't want -fno-exception when compiling C++ code, so set the
12237 # no_builtin_flag separately
12238 if test "$GXX" = yes; then
12239 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12240 else
12241 lt_prog_compiler_no_builtin_flag_CXX=
12242 fi
12243
12244 if test "$GXX" = yes; then
12245 # Set up default GNU C++ configuration
12246
12247
12248
12249 # Check whether --with-gnu-ld was given.
12250 if test "${with_gnu_ld+set}" = set; then :
12251 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12252 else
12253 with_gnu_ld=no
12254 fi
12255
12256 ac_prog=ld
12257 if test "$GCC" = yes; then
12258 # Check if gcc -print-prog-name=ld gives a path.
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12260 $as_echo_n "checking for ld used by $CC... " >&6; }
12261 case $host in
12262 *-*-mingw*)
12263 # gcc leaves a trailing carriage return which upsets mingw
12264 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12265 *)
12266 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12267 esac
12268 case $ac_prog in
12269 # Accept absolute paths.
12270 [\\/]* | ?:[\\/]*)
12271 re_direlt='/[^/][^/]*/\.\./'
12272 # Canonicalize the pathname of ld
12273 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12274 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12275 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12276 done
12277 test -z "$LD" && LD="$ac_prog"
12278 ;;
12279 "")
12280 # If it fails, then pretend we aren't using GCC.
12281 ac_prog=ld
12282 ;;
12283 *)
12284 # If it is relative, then search for the first ld in PATH.
12285 with_gnu_ld=unknown
12286 ;;
12287 esac
12288 elif test "$with_gnu_ld" = yes; then
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12290 $as_echo_n "checking for GNU ld... " >&6; }
12291 else
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12293 $as_echo_n "checking for non-GNU ld... " >&6; }
12294 fi
12295 if ${lt_cv_path_LD+:} false; then :
12296 $as_echo_n "(cached) " >&6
12297 else
12298 if test -z "$LD"; then
12299 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12300 for ac_dir in $PATH; do
12301 IFS="$lt_save_ifs"
12302 test -z "$ac_dir" && ac_dir=.
12303 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12304 lt_cv_path_LD="$ac_dir/$ac_prog"
12305 # Check to see if the program is GNU ld. I'd rather use --version,
12306 # but apparently some variants of GNU ld only accept -v.
12307 # Break only if it was the GNU/non-GNU ld that we prefer.
12308 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12309 *GNU* | *'with BFD'*)
12310 test "$with_gnu_ld" != no && break
12311 ;;
12312 *)
12313 test "$with_gnu_ld" != yes && break
12314 ;;
12315 esac
12316 fi
12317 done
12318 IFS="$lt_save_ifs"
12319 else
12320 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12321 fi
12322 fi
12323
12324 LD="$lt_cv_path_LD"
12325 if test -n "$LD"; then
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12327 $as_echo "$LD" >&6; }
12328 else
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12330 $as_echo "no" >&6; }
12331 fi
12332 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12334 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12335 if ${lt_cv_prog_gnu_ld+:} false; then :
12336 $as_echo_n "(cached) " >&6
12337 else
12338 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12339 case `$LD -v 2>&1 </dev/null` in
12340 *GNU* | *'with BFD'*)
12341 lt_cv_prog_gnu_ld=yes
12342 ;;
12343 *)
12344 lt_cv_prog_gnu_ld=no
12345 ;;
12346 esac
12347 fi
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12349 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12350 with_gnu_ld=$lt_cv_prog_gnu_ld
12351
12352
12353
12354
12355
12356
12357
12358 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12359 # archiving commands below assume that GNU ld is being used.
12360 if test "$with_gnu_ld" = yes; then
12361 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12362 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'
12363
12364 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12365 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12366
12367 # If archive_cmds runs LD, not CC, wlarc should be empty
12368 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12369 # investigate it a little bit more. (MM)
12370 wlarc='${wl}'
12371
12372 # ancient GNU ld didn't support --whole-archive et. al.
12373 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12374 $GREP 'no-whole-archive' > /dev/null; then
12375 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12376 else
12377 whole_archive_flag_spec_CXX=
12378 fi
12379 else
12380 with_gnu_ld=no
12381 wlarc=
12382
12383 # A generic and very simple default shared library creation
12384 # command for GNU C++ for the case where it uses the native
12385 # linker, instead of GNU ld. If possible, this setting should
12386 # overridden to take advantage of the native linker features on
12387 # the platform it is being used on.
12388 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12389 fi
12390
12391 # Commands to make compiler produce verbose output that lists
12392 # what "hidden" libraries, object files and flags are used when
12393 # linking a shared library.
12394 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12395
12396 else
12397 GXX=no
12398 with_gnu_ld=no
12399 wlarc=
12400 fi
12401
12402 # PORTME: fill in a description of your system's C++ link characteristics
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12404 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12405 ld_shlibs_CXX=yes
12406 case $host_os in
12407 aix3*)
12408 # FIXME: insert proper C++ library support
12409 ld_shlibs_CXX=no
12410 ;;
12411 aix[4-9]*)
12412 if test "$host_cpu" = ia64; then
12413 # On IA64, the linker does run time linking by default, so we don't
12414 # have to do anything special.
12415 aix_use_runtimelinking=no
12416 exp_sym_flag='-Bexport'
12417 no_entry_flag=""
12418 else
12419 aix_use_runtimelinking=no
12420
12421 # Test if we are trying to use run time linking or normal
12422 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12423 # need to do runtime linking.
12424 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12425 for ld_flag in $LDFLAGS; do
12426 case $ld_flag in
12427 *-brtl*)
12428 aix_use_runtimelinking=yes
12429 break
12430 ;;
12431 esac
12432 done
12433 ;;
12434 esac
12435
12436 exp_sym_flag='-bexport'
12437 no_entry_flag='-bnoentry'
12438 fi
12439
12440 # When large executables or shared objects are built, AIX ld can
12441 # have problems creating the table of contents. If linking a library
12442 # or program results in "error TOC overflow" add -mminimal-toc to
12443 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12444 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12445
12446 archive_cmds_CXX=''
12447 hardcode_direct_CXX=yes
12448 hardcode_direct_absolute_CXX=yes
12449 hardcode_libdir_separator_CXX=':'
12450 link_all_deplibs_CXX=yes
12451 file_list_spec_CXX='${wl}-f,'
12452
12453 if test "$GXX" = yes; then
12454 case $host_os in aix4.[012]|aix4.[012].*)
12455 # We only want to do this on AIX 4.2 and lower, the check
12456 # below for broken collect2 doesn't work under 4.3+
12457 collect2name=`${CC} -print-prog-name=collect2`
12458 if test -f "$collect2name" &&
12459 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12460 then
12461 # We have reworked collect2
12462 :
12463 else
12464 # We have old collect2
12465 hardcode_direct_CXX=unsupported
12466 # It fails to find uninstalled libraries when the uninstalled
12467 # path is not listed in the libpath. Setting hardcode_minus_L
12468 # to unsupported forces relinking
12469 hardcode_minus_L_CXX=yes
12470 hardcode_libdir_flag_spec_CXX='-L$libdir'
12471 hardcode_libdir_separator_CXX=
12472 fi
12473 esac
12474 shared_flag='-shared'
12475 if test "$aix_use_runtimelinking" = yes; then
12476 shared_flag="$shared_flag "'${wl}-G'
12477 fi
12478 else
12479 # not using gcc
12480 if test "$host_cpu" = ia64; then
12481 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12482 # chokes on -Wl,-G. The following line is correct:
12483 shared_flag='-G'
12484 else
12485 if test "$aix_use_runtimelinking" = yes; then
12486 shared_flag='${wl}-G'
12487 else
12488 shared_flag='${wl}-bM:SRE'
12489 fi
12490 fi
12491 fi
12492
12493 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12494 # It seems that -bexpall does not export symbols beginning with
12495 # underscore (_), so it is better to generate a list of symbols to
12496 # export.
12497 always_export_symbols_CXX=yes
12498 if test "$aix_use_runtimelinking" = yes; then
12499 # Warning - without using the other runtime loading flags (-brtl),
12500 # -berok will link without error, but may produce a broken library.
12501 allow_undefined_flag_CXX='-berok'
12502 # Determine the default libpath from the value encoded in an empty
12503 # executable.
12504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12505 /* end confdefs.h. */
12506
12507 int
12508 main ()
12509 {
12510
12511 ;
12512 return 0;
12513 }
12514 _ACEOF
12515 if ac_fn_cxx_try_link "$LINENO"; then :
12516
12517 lt_aix_libpath_sed='
12518 /Import File Strings/,/^$/ {
12519 /^0/ {
12520 s/^0 *\(.*\)$/\1/
12521 p
12522 }
12523 }'
12524 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12525 # Check for a 64-bit object if we didn't find anything.
12526 if test -z "$aix_libpath"; then
12527 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12528 fi
12529 fi
12530 rm -f core conftest.err conftest.$ac_objext \
12531 conftest$ac_exeext conftest.$ac_ext
12532 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12533
12534 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12535
12536 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"
12537 else
12538 if test "$host_cpu" = ia64; then
12539 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12540 allow_undefined_flag_CXX="-z nodefs"
12541 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"
12542 else
12543 # Determine the default libpath from the value encoded in an
12544 # empty executable.
12545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546 /* end confdefs.h. */
12547
12548 int
12549 main ()
12550 {
12551
12552 ;
12553 return 0;
12554 }
12555 _ACEOF
12556 if ac_fn_cxx_try_link "$LINENO"; then :
12557
12558 lt_aix_libpath_sed='
12559 /Import File Strings/,/^$/ {
12560 /^0/ {
12561 s/^0 *\(.*\)$/\1/
12562 p
12563 }
12564 }'
12565 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12566 # Check for a 64-bit object if we didn't find anything.
12567 if test -z "$aix_libpath"; then
12568 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12569 fi
12570 fi
12571 rm -f core conftest.err conftest.$ac_objext \
12572 conftest$ac_exeext conftest.$ac_ext
12573 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12574
12575 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12576 # Warning - without using the other run time loading flags,
12577 # -berok will link without error, but may produce a broken library.
12578 no_undefined_flag_CXX=' ${wl}-bernotok'
12579 allow_undefined_flag_CXX=' ${wl}-berok'
12580 if test "$with_gnu_ld" = yes; then
12581 # We only use this code for GNU lds that support --whole-archive.
12582 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12583 else
12584 # Exported symbols can be pulled into shared objects from archives
12585 whole_archive_flag_spec_CXX='$convenience'
12586 fi
12587 archive_cmds_need_lc_CXX=yes
12588 # This is similar to how AIX traditionally builds its shared
12589 # libraries.
12590 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'
12591 fi
12592 fi
12593 ;;
12594
12595 beos*)
12596 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12597 allow_undefined_flag_CXX=unsupported
12598 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12599 # support --undefined. This deserves some investigation. FIXME
12600 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12601 else
12602 ld_shlibs_CXX=no
12603 fi
12604 ;;
12605
12606 chorus*)
12607 case $cc_basename in
12608 *)
12609 # FIXME: insert proper C++ library support
12610 ld_shlibs_CXX=no
12611 ;;
12612 esac
12613 ;;
12614
12615 cygwin* | mingw* | pw32* | cegcc*)
12616 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12617 # as there is no search path for DLLs.
12618 hardcode_libdir_flag_spec_CXX='-L$libdir'
12619 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12620 allow_undefined_flag_CXX=unsupported
12621 always_export_symbols_CXX=no
12622 enable_shared_with_static_runtimes_CXX=yes
12623
12624 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12625 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'
12626 # If the export-symbols file already is a .def file (1st line
12627 # is EXPORTS), use it as is; otherwise, prepend...
12628 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12629 cp $export_symbols $output_objdir/$soname.def;
12630 else
12631 echo EXPORTS > $output_objdir/$soname.def;
12632 cat $export_symbols >> $output_objdir/$soname.def;
12633 fi~
12634 $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'
12635 else
12636 ld_shlibs_CXX=no
12637 fi
12638 ;;
12639 darwin* | rhapsody*)
12640
12641
12642 archive_cmds_need_lc_CXX=no
12643 hardcode_direct_CXX=no
12644 hardcode_automatic_CXX=yes
12645 hardcode_shlibpath_var_CXX=unsupported
12646 if test "$lt_cv_ld_force_load" = "yes"; then
12647 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\"`'
12648 else
12649 whole_archive_flag_spec_CXX=''
12650 fi
12651 link_all_deplibs_CXX=yes
12652 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12653 case $cc_basename in
12654 ifort*) _lt_dar_can_shared=yes ;;
12655 *) _lt_dar_can_shared=$GCC ;;
12656 esac
12657 if test "$_lt_dar_can_shared" = "yes"; then
12658 output_verbose_link_cmd=func_echo_all
12659 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}"
12660 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12661 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}"
12662 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}"
12663 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12664 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}"
12665 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}"
12666 fi
12667
12668 else
12669 ld_shlibs_CXX=no
12670 fi
12671
12672 ;;
12673
12674 dgux*)
12675 case $cc_basename in
12676 ec++*)
12677 # FIXME: insert proper C++ library support
12678 ld_shlibs_CXX=no
12679 ;;
12680 ghcx*)
12681 # Green Hills C++ Compiler
12682 # FIXME: insert proper C++ library support
12683 ld_shlibs_CXX=no
12684 ;;
12685 *)
12686 # FIXME: insert proper C++ library support
12687 ld_shlibs_CXX=no
12688 ;;
12689 esac
12690 ;;
12691
12692 freebsd2.*)
12693 # C++ shared libraries reported to be fairly broken before
12694 # switch to ELF
12695 ld_shlibs_CXX=no
12696 ;;
12697
12698 freebsd-elf*)
12699 archive_cmds_need_lc_CXX=no
12700 ;;
12701
12702 freebsd* | dragonfly*)
12703 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12704 # conventions
12705 ld_shlibs_CXX=yes
12706 ;;
12707
12708 gnu*)
12709 ;;
12710
12711 haiku*)
12712 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12713 link_all_deplibs_CXX=yes
12714 ;;
12715
12716 hpux9*)
12717 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12718 hardcode_libdir_separator_CXX=:
12719 export_dynamic_flag_spec_CXX='${wl}-E'
12720 hardcode_direct_CXX=yes
12721 hardcode_minus_L_CXX=yes # Not in the search PATH,
12722 # but as the default
12723 # location of the library.
12724
12725 case $cc_basename in
12726 CC*)
12727 # FIXME: insert proper C++ library support
12728 ld_shlibs_CXX=no
12729 ;;
12730 aCC*)
12731 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'
12732 # Commands to make compiler produce verbose output that lists
12733 # what "hidden" libraries, object files and flags are used when
12734 # linking a shared library.
12735 #
12736 # There doesn't appear to be a way to prevent this compiler from
12737 # explicitly linking system object files so we need to strip them
12738 # from the output so that they don't get included in the library
12739 # dependencies.
12740 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"'
12741 ;;
12742 *)
12743 if test "$GXX" = yes; then
12744 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'
12745 else
12746 # FIXME: insert proper C++ library support
12747 ld_shlibs_CXX=no
12748 fi
12749 ;;
12750 esac
12751 ;;
12752
12753 hpux10*|hpux11*)
12754 if test $with_gnu_ld = no; then
12755 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12756 hardcode_libdir_separator_CXX=:
12757
12758 case $host_cpu in
12759 hppa*64*|ia64*)
12760 ;;
12761 *)
12762 export_dynamic_flag_spec_CXX='${wl}-E'
12763 ;;
12764 esac
12765 fi
12766 case $host_cpu in
12767 hppa*64*|ia64*)
12768 hardcode_direct_CXX=no
12769 hardcode_shlibpath_var_CXX=no
12770 ;;
12771 *)
12772 hardcode_direct_CXX=yes
12773 hardcode_direct_absolute_CXX=yes
12774 hardcode_minus_L_CXX=yes # Not in the search PATH,
12775 # but as the default
12776 # location of the library.
12777 ;;
12778 esac
12779
12780 case $cc_basename in
12781 CC*)
12782 # FIXME: insert proper C++ library support
12783 ld_shlibs_CXX=no
12784 ;;
12785 aCC*)
12786 case $host_cpu in
12787 hppa*64*)
12788 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12789 ;;
12790 ia64*)
12791 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12792 ;;
12793 *)
12794 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12795 ;;
12796 esac
12797 # Commands to make compiler produce verbose output that lists
12798 # what "hidden" libraries, object files and flags are used when
12799 # linking a shared library.
12800 #
12801 # There doesn't appear to be a way to prevent this compiler from
12802 # explicitly linking system object files so we need to strip them
12803 # from the output so that they don't get included in the library
12804 # dependencies.
12805 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"'
12806 ;;
12807 *)
12808 if test "$GXX" = yes; then
12809 if test $with_gnu_ld = no; then
12810 case $host_cpu in
12811 hppa*64*)
12812 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12813 ;;
12814 ia64*)
12815 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12816 ;;
12817 *)
12818 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'
12819 ;;
12820 esac
12821 fi
12822 else
12823 # FIXME: insert proper C++ library support
12824 ld_shlibs_CXX=no
12825 fi
12826 ;;
12827 esac
12828 ;;
12829
12830 interix[3-9]*)
12831 hardcode_direct_CXX=no
12832 hardcode_shlibpath_var_CXX=no
12833 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12834 export_dynamic_flag_spec_CXX='${wl}-E'
12835 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12836 # Instead, shared libraries are loaded at an image base (0x10000000 by
12837 # default) and relocated if they conflict, which is a slow very memory
12838 # consuming and fragmenting process. To avoid this, we pick a random,
12839 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12840 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12841 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'
12842 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'
12843 ;;
12844 irix5* | irix6*)
12845 case $cc_basename in
12846 CC*)
12847 # SGI C++
12848 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'
12849
12850 # Archives containing C++ object files must be created using
12851 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12852 # necessary to make sure instantiated templates are included
12853 # in the archive.
12854 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12855 ;;
12856 *)
12857 if test "$GXX" = yes; then
12858 if test "$with_gnu_ld" = no; then
12859 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'
12860 else
12861 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'
12862 fi
12863 fi
12864 link_all_deplibs_CXX=yes
12865 ;;
12866 esac
12867 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12868 hardcode_libdir_separator_CXX=:
12869 inherit_rpath_CXX=yes
12870 ;;
12871
12872 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12873 case $cc_basename in
12874 KCC*)
12875 # Kuck and Associates, Inc. (KAI) C++ Compiler
12876
12877 # KCC will only create a shared library if the output file
12878 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12879 # to its proper name (with version) after linking.
12880 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'
12881 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'
12882 # Commands to make compiler produce verbose output that lists
12883 # what "hidden" libraries, object files and flags are used when
12884 # linking a shared library.
12885 #
12886 # There doesn't appear to be a way to prevent this compiler from
12887 # explicitly linking system object files so we need to strip them
12888 # from the output so that they don't get included in the library
12889 # dependencies.
12890 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"'
12891
12892 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12893 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12894
12895 # Archives containing C++ object files must be created using
12896 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12897 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12898 ;;
12899 icpc* | ecpc* )
12900 # Intel C++
12901 with_gnu_ld=yes
12902 # version 8.0 and above of icpc choke on multiply defined symbols
12903 # if we add $predep_objects and $postdep_objects, however 7.1 and
12904 # earlier do not add the objects themselves.
12905 case `$CC -V 2>&1` in
12906 *"Version 7."*)
12907 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12908 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'
12909 ;;
12910 *) # Version 8.0 or newer
12911 tmp_idyn=
12912 case $host_cpu in
12913 ia64*) tmp_idyn=' -i_dynamic';;
12914 esac
12915 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12916 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'
12917 ;;
12918 esac
12919 archive_cmds_need_lc_CXX=no
12920 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12921 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12922 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12923 ;;
12924 pgCC* | pgcpp*)
12925 # Portland Group C++ compiler
12926 case `$CC -V` in
12927 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12928 prelink_cmds_CXX='tpldir=Template.dir~
12929 rm -rf $tpldir~
12930 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12931 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12932 old_archive_cmds_CXX='tpldir=Template.dir~
12933 rm -rf $tpldir~
12934 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12935 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12936 $RANLIB $oldlib'
12937 archive_cmds_CXX='tpldir=Template.dir~
12938 rm -rf $tpldir~
12939 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12940 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12941 archive_expsym_cmds_CXX='tpldir=Template.dir~
12942 rm -rf $tpldir~
12943 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12944 $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'
12945 ;;
12946 *) # Version 6 and above use weak symbols
12947 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12948 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'
12949 ;;
12950 esac
12951
12952 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12953 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12954 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'
12955 ;;
12956 cxx*)
12957 # Compaq C++
12958 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12959 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'
12960
12961 runpath_var=LD_RUN_PATH
12962 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12963 hardcode_libdir_separator_CXX=:
12964
12965 # Commands to make compiler produce verbose output that lists
12966 # what "hidden" libraries, object files and flags are used when
12967 # linking a shared library.
12968 #
12969 # There doesn't appear to be a way to prevent this compiler from
12970 # explicitly linking system object files so we need to strip them
12971 # from the output so that they don't get included in the library
12972 # dependencies.
12973 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'
12974 ;;
12975 xl* | mpixl* | bgxl*)
12976 # IBM XL 8.0 on PPC, with GNU ld
12977 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12978 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12979 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12980 if test "x$supports_anon_versioning" = xyes; then
12981 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12982 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12983 echo "local: *; };" >> $output_objdir/$libname.ver~
12984 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12985 fi
12986 ;;
12987 *)
12988 case `$CC -V 2>&1 | sed 5q` in
12989 *Sun\ C*)
12990 # Sun C++ 5.9
12991 no_undefined_flag_CXX=' -zdefs'
12992 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12993 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'
12994 hardcode_libdir_flag_spec_CXX='-R$libdir'
12995 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'
12996 compiler_needs_object_CXX=yes
12997
12998 # Not sure whether something based on
12999 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13000 # would be better.
13001 output_verbose_link_cmd='func_echo_all'
13002
13003 # Archives containing C++ object files must be created using
13004 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13005 # necessary to make sure instantiated templates are included
13006 # in the archive.
13007 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13008 ;;
13009 esac
13010 ;;
13011 esac
13012 ;;
13013
13014 lynxos*)
13015 # FIXME: insert proper C++ library support
13016 ld_shlibs_CXX=no
13017 ;;
13018
13019 m88k*)
13020 # FIXME: insert proper C++ library support
13021 ld_shlibs_CXX=no
13022 ;;
13023
13024 mvs*)
13025 case $cc_basename in
13026 cxx*)
13027 # FIXME: insert proper C++ library support
13028 ld_shlibs_CXX=no
13029 ;;
13030 *)
13031 # FIXME: insert proper C++ library support
13032 ld_shlibs_CXX=no
13033 ;;
13034 esac
13035 ;;
13036
13037 netbsd*)
13038 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13039 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13040 wlarc=
13041 hardcode_libdir_flag_spec_CXX='-R$libdir'
13042 hardcode_direct_CXX=yes
13043 hardcode_shlibpath_var_CXX=no
13044 fi
13045 # Workaround some broken pre-1.5 toolchains
13046 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13047 ;;
13048
13049 *nto* | *qnx*)
13050 ld_shlibs_CXX=yes
13051 ;;
13052
13053 openbsd2*)
13054 # C++ shared libraries are fairly broken
13055 ld_shlibs_CXX=no
13056 ;;
13057
13058 openbsd*)
13059 if test -f /usr/libexec/ld.so; then
13060 hardcode_direct_CXX=yes
13061 hardcode_shlibpath_var_CXX=no
13062 hardcode_direct_absolute_CXX=yes
13063 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13064 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13065 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13066 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13067 export_dynamic_flag_spec_CXX='${wl}-E'
13068 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13069 fi
13070 output_verbose_link_cmd=func_echo_all
13071 else
13072 ld_shlibs_CXX=no
13073 fi
13074 ;;
13075
13076 osf3* | osf4* | osf5*)
13077 case $cc_basename in
13078 KCC*)
13079 # Kuck and Associates, Inc. (KAI) C++ Compiler
13080
13081 # KCC will only create a shared library if the output file
13082 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13083 # to its proper name (with version) after linking.
13084 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'
13085
13086 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13087 hardcode_libdir_separator_CXX=:
13088
13089 # Archives containing C++ object files must be created using
13090 # the KAI C++ compiler.
13091 case $host in
13092 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13093 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13094 esac
13095 ;;
13096 RCC*)
13097 # Rational C++ 2.4.1
13098 # FIXME: insert proper C++ library support
13099 ld_shlibs_CXX=no
13100 ;;
13101 cxx*)
13102 case $host in
13103 osf3*)
13104 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13105 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'
13106 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13107 ;;
13108 *)
13109 allow_undefined_flag_CXX=' -expect_unresolved \*'
13110 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'
13111 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13112 echo "-hidden">> $lib.exp~
13113 $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~
13114 $RM $lib.exp'
13115 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13116 ;;
13117 esac
13118
13119 hardcode_libdir_separator_CXX=:
13120
13121 # Commands to make compiler produce verbose output that lists
13122 # what "hidden" libraries, object files and flags are used when
13123 # linking a shared library.
13124 #
13125 # There doesn't appear to be a way to prevent this compiler from
13126 # explicitly linking system object files so we need to strip them
13127 # from the output so that they don't get included in the library
13128 # dependencies.
13129 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"'
13130 ;;
13131 *)
13132 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13133 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13134 case $host in
13135 osf3*)
13136 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'
13137 ;;
13138 *)
13139 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'
13140 ;;
13141 esac
13142
13143 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13144 hardcode_libdir_separator_CXX=:
13145
13146 # Commands to make compiler produce verbose output that lists
13147 # what "hidden" libraries, object files and flags are used when
13148 # linking a shared library.
13149 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13150
13151 else
13152 # FIXME: insert proper C++ library support
13153 ld_shlibs_CXX=no
13154 fi
13155 ;;
13156 esac
13157 ;;
13158
13159 psos*)
13160 # FIXME: insert proper C++ library support
13161 ld_shlibs_CXX=no
13162 ;;
13163
13164 sunos4*)
13165 case $cc_basename in
13166 CC*)
13167 # Sun C++ 4.x
13168 # FIXME: insert proper C++ library support
13169 ld_shlibs_CXX=no
13170 ;;
13171 lcc*)
13172 # Lucid
13173 # FIXME: insert proper C++ library support
13174 ld_shlibs_CXX=no
13175 ;;
13176 *)
13177 # FIXME: insert proper C++ library support
13178 ld_shlibs_CXX=no
13179 ;;
13180 esac
13181 ;;
13182
13183 solaris*)
13184 case $cc_basename in
13185 CC*)
13186 # Sun C++ 4.2, 5.x and Centerline C++
13187 archive_cmds_need_lc_CXX=yes
13188 no_undefined_flag_CXX=' -zdefs'
13189 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13190 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13191 $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'
13192
13193 hardcode_libdir_flag_spec_CXX='-R$libdir'
13194 hardcode_shlibpath_var_CXX=no
13195 case $host_os in
13196 solaris2.[0-5] | solaris2.[0-5].*) ;;
13197 *)
13198 # The compiler driver will combine and reorder linker options,
13199 # but understands `-z linker_flag'.
13200 # Supported since Solaris 2.6 (maybe 2.5.1?)
13201 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13202 ;;
13203 esac
13204 link_all_deplibs_CXX=yes
13205
13206 output_verbose_link_cmd='func_echo_all'
13207
13208 # Archives containing C++ object files must be created using
13209 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13210 # necessary to make sure instantiated templates are included
13211 # in the archive.
13212 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13213 ;;
13214 gcx*)
13215 # Green Hills C++ Compiler
13216 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13217
13218 # The C++ compiler must be used to create the archive.
13219 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13220 ;;
13221 *)
13222 # GNU C++ compiler with Solaris linker
13223 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13224 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13225 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13226 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13227 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13228 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13229
13230 # Commands to make compiler produce verbose output that lists
13231 # what "hidden" libraries, object files and flags are used when
13232 # linking a shared library.
13233 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13234 else
13235 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13236 # platform.
13237 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13238 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13239 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13240
13241 # Commands to make compiler produce verbose output that lists
13242 # what "hidden" libraries, object files and flags are used when
13243 # linking a shared library.
13244 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13245 fi
13246
13247 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13248 case $host_os in
13249 solaris2.[0-5] | solaris2.[0-5].*) ;;
13250 *)
13251 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13252 ;;
13253 esac
13254 fi
13255 ;;
13256 esac
13257 ;;
13258
13259 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13260 no_undefined_flag_CXX='${wl}-z,text'
13261 archive_cmds_need_lc_CXX=no
13262 hardcode_shlibpath_var_CXX=no
13263 runpath_var='LD_RUN_PATH'
13264
13265 case $cc_basename in
13266 CC*)
13267 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13268 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13269 ;;
13270 *)
13271 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13272 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13273 ;;
13274 esac
13275 ;;
13276
13277 sysv5* | sco3.2v5* | sco5v6*)
13278 # Note: We can NOT use -z defs as we might desire, because we do not
13279 # link with -lc, and that would cause any symbols used from libc to
13280 # always be unresolved, which means just about no library would
13281 # ever link correctly. If we're not using GNU ld we use -z text
13282 # though, which does catch some bad symbols but isn't as heavy-handed
13283 # as -z defs.
13284 no_undefined_flag_CXX='${wl}-z,text'
13285 allow_undefined_flag_CXX='${wl}-z,nodefs'
13286 archive_cmds_need_lc_CXX=no
13287 hardcode_shlibpath_var_CXX=no
13288 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13289 hardcode_libdir_separator_CXX=':'
13290 link_all_deplibs_CXX=yes
13291 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13292 runpath_var='LD_RUN_PATH'
13293
13294 case $cc_basename in
13295 CC*)
13296 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13297 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13298 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13299 '"$old_archive_cmds_CXX"
13300 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13301 '"$reload_cmds_CXX"
13302 ;;
13303 *)
13304 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13305 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13306 ;;
13307 esac
13308 ;;
13309
13310 tandem*)
13311 case $cc_basename in
13312 NCC*)
13313 # NonStop-UX NCC 3.20
13314 # FIXME: insert proper C++ library support
13315 ld_shlibs_CXX=no
13316 ;;
13317 *)
13318 # FIXME: insert proper C++ library support
13319 ld_shlibs_CXX=no
13320 ;;
13321 esac
13322 ;;
13323
13324 vxworks*)
13325 # For VxWorks ports, we assume the use of a GNU linker with
13326 # standard elf conventions.
13327 ld_shlibs_CXX=yes
13328 ;;
13329
13330 *)
13331 # FIXME: insert proper C++ library support
13332 ld_shlibs_CXX=no
13333 ;;
13334 esac
13335
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13337 $as_echo "$ld_shlibs_CXX" >&6; }
13338 test "$ld_shlibs_CXX" = no && can_build_shared=no
13339
13340 GCC_CXX="$GXX"
13341 LD_CXX="$LD"
13342
13343 ## CAVEAT EMPTOR:
13344 ## There is no encapsulation within the following macros, do not change
13345 ## the running order or otherwise move them around unless you know exactly
13346 ## what you are doing...
13347 # Dependencies to place before and after the object being linked:
13348 predep_objects_CXX=
13349 postdep_objects_CXX=
13350 predeps_CXX=
13351 postdeps_CXX=
13352 compiler_lib_search_path_CXX=
13353
13354 cat > conftest.$ac_ext <<_LT_EOF
13355 class Foo
13356 {
13357 public:
13358 Foo (void) { a = 0; }
13359 private:
13360 int a;
13361 };
13362 _LT_EOF
13363
13364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13365 (eval $ac_compile) 2>&5
13366 ac_status=$?
13367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13368 test $ac_status = 0; }; then
13369 # Parse the compiler output and extract the necessary
13370 # objects, libraries and library flags.
13371
13372 # Sentinel used to keep track of whether or not we are before
13373 # the conftest object file.
13374 pre_test_object_deps_done=no
13375
13376 for p in `eval "$output_verbose_link_cmd"`; do
13377 case $p in
13378
13379 -L* | -R* | -l*)
13380 # Some compilers place space between "-{L,R}" and the path.
13381 # Remove the space.
13382 if test $p = "-L" ||
13383 test $p = "-R"; then
13384 prev=$p
13385 continue
13386 else
13387 prev=
13388 fi
13389
13390 if test "$pre_test_object_deps_done" = no; then
13391 case $p in
13392 -L* | -R*)
13393 # Internal compiler library paths should come after those
13394 # provided the user. The postdeps already come after the
13395 # user supplied libs so there is no need to process them.
13396 if test -z "$compiler_lib_search_path_CXX"; then
13397 compiler_lib_search_path_CXX="${prev}${p}"
13398 else
13399 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13400 fi
13401 ;;
13402 # The "-l" case would never come before the object being
13403 # linked, so don't bother handling this case.
13404 esac
13405 else
13406 if test -z "$postdeps_CXX"; then
13407 postdeps_CXX="${prev}${p}"
13408 else
13409 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13410 fi
13411 fi
13412 ;;
13413
13414 *.$objext)
13415 # This assumes that the test object file only shows up
13416 # once in the compiler output.
13417 if test "$p" = "conftest.$objext"; then
13418 pre_test_object_deps_done=yes
13419 continue
13420 fi
13421
13422 if test "$pre_test_object_deps_done" = no; then
13423 if test -z "$predep_objects_CXX"; then
13424 predep_objects_CXX="$p"
13425 else
13426 predep_objects_CXX="$predep_objects_CXX $p"
13427 fi
13428 else
13429 if test -z "$postdep_objects_CXX"; then
13430 postdep_objects_CXX="$p"
13431 else
13432 postdep_objects_CXX="$postdep_objects_CXX $p"
13433 fi
13434 fi
13435 ;;
13436
13437 *) ;; # Ignore the rest.
13438
13439 esac
13440 done
13441
13442 # Clean up.
13443 rm -f a.out a.exe
13444 else
13445 echo "libtool.m4: error: problem compiling CXX test program"
13446 fi
13447
13448 $RM -f confest.$objext
13449
13450 # PORTME: override above test on systems where it is broken
13451 case $host_os in
13452 interix[3-9]*)
13453 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13454 # hack all around it, let's just trust "g++" to DTRT.
13455 predep_objects_CXX=
13456 postdep_objects_CXX=
13457 postdeps_CXX=
13458 ;;
13459
13460 linux*)
13461 case `$CC -V 2>&1 | sed 5q` in
13462 *Sun\ C*)
13463 # Sun C++ 5.9
13464
13465 # The more standards-conforming stlport4 library is
13466 # incompatible with the Cstd library. Avoid specifying
13467 # it if it's in CXXFLAGS. Ignore libCrun as
13468 # -library=stlport4 depends on it.
13469 case " $CXX $CXXFLAGS " in
13470 *" -library=stlport4 "*)
13471 solaris_use_stlport4=yes
13472 ;;
13473 esac
13474
13475 if test "$solaris_use_stlport4" != yes; then
13476 postdeps_CXX='-library=Cstd -library=Crun'
13477 fi
13478 ;;
13479 esac
13480 ;;
13481
13482 solaris*)
13483 case $cc_basename in
13484 CC*)
13485 # The more standards-conforming stlport4 library is
13486 # incompatible with the Cstd library. Avoid specifying
13487 # it if it's in CXXFLAGS. Ignore libCrun as
13488 # -library=stlport4 depends on it.
13489 case " $CXX $CXXFLAGS " in
13490 *" -library=stlport4 "*)
13491 solaris_use_stlport4=yes
13492 ;;
13493 esac
13494
13495 # Adding this requires a known-good setup of shared libraries for
13496 # Sun compiler versions before 5.6, else PIC objects from an old
13497 # archive will be linked into the output, leading to subtle bugs.
13498 if test "$solaris_use_stlport4" != yes; then
13499 postdeps_CXX='-library=Cstd -library=Crun'
13500 fi
13501 ;;
13502 esac
13503 ;;
13504 esac
13505
13506
13507 case " $postdeps_CXX " in
13508 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13509 esac
13510 compiler_lib_search_dirs_CXX=
13511 if test -n "${compiler_lib_search_path_CXX}"; then
13512 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13513 fi
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545 lt_prog_compiler_wl_CXX=
13546 lt_prog_compiler_pic_CXX=
13547 lt_prog_compiler_static_CXX=
13548
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13550 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13551
13552 # C++ specific cases for pic, static, wl, etc.
13553 if test "$GXX" = yes; then
13554 lt_prog_compiler_wl_CXX='-Wl,'
13555 lt_prog_compiler_static_CXX='-static'
13556
13557 case $host_os in
13558 aix*)
13559 # All AIX code is PIC.
13560 if test "$host_cpu" = ia64; then
13561 # AIX 5 now supports IA64 processor
13562 lt_prog_compiler_static_CXX='-Bstatic'
13563 fi
13564 lt_prog_compiler_pic_CXX='-fPIC'
13565 ;;
13566
13567 amigaos*)
13568 case $host_cpu in
13569 powerpc)
13570 # see comment about AmigaOS4 .so support
13571 lt_prog_compiler_pic_CXX='-fPIC'
13572 ;;
13573 m68k)
13574 # FIXME: we need at least 68020 code to build shared libraries, but
13575 # adding the `-m68020' flag to GCC prevents building anything better,
13576 # like `-m68040'.
13577 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13578 ;;
13579 esac
13580 ;;
13581
13582 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13583 # PIC is the default for these OSes.
13584 ;;
13585 mingw* | cygwin* | os2* | pw32* | cegcc*)
13586 # This hack is so that the source file can tell whether it is being
13587 # built for inclusion in a dll (and should export symbols for example).
13588 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13589 # (--disable-auto-import) libraries
13590 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13591 ;;
13592 darwin* | rhapsody*)
13593 # PIC is the default on this platform
13594 # Common symbols not allowed in MH_DYLIB files
13595 lt_prog_compiler_pic_CXX='-fno-common'
13596 ;;
13597 *djgpp*)
13598 # DJGPP does not support shared libraries at all
13599 lt_prog_compiler_pic_CXX=
13600 ;;
13601 haiku*)
13602 # PIC is the default for Haiku.
13603 # The "-static" flag exists, but is broken.
13604 lt_prog_compiler_static_CXX=
13605 ;;
13606 interix[3-9]*)
13607 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13608 # Instead, we relocate shared libraries at runtime.
13609 ;;
13610 sysv4*MP*)
13611 if test -d /usr/nec; then
13612 lt_prog_compiler_pic_CXX=-Kconform_pic
13613 fi
13614 ;;
13615 hpux*)
13616 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13617 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13618 # sets the default TLS model and affects inlining.
13619 case $host_cpu in
13620 hppa*64*)
13621 ;;
13622 *)
13623 lt_prog_compiler_pic_CXX='-fPIC'
13624 ;;
13625 esac
13626 ;;
13627 *qnx* | *nto*)
13628 # QNX uses GNU C++, but need to define -shared option too, otherwise
13629 # it will coredump.
13630 lt_prog_compiler_pic_CXX='-fPIC -shared'
13631 ;;
13632 *)
13633 lt_prog_compiler_pic_CXX='-fPIC'
13634 ;;
13635 esac
13636 else
13637 case $host_os in
13638 aix[4-9]*)
13639 # All AIX code is PIC.
13640 if test "$host_cpu" = ia64; then
13641 # AIX 5 now supports IA64 processor
13642 lt_prog_compiler_static_CXX='-Bstatic'
13643 else
13644 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13645 fi
13646 ;;
13647 chorus*)
13648 case $cc_basename in
13649 cxch68*)
13650 # Green Hills C++ Compiler
13651 # _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"
13652 ;;
13653 esac
13654 ;;
13655 dgux*)
13656 case $cc_basename in
13657 ec++*)
13658 lt_prog_compiler_pic_CXX='-KPIC'
13659 ;;
13660 ghcx*)
13661 # Green Hills C++ Compiler
13662 lt_prog_compiler_pic_CXX='-pic'
13663 ;;
13664 *)
13665 ;;
13666 esac
13667 ;;
13668 freebsd* | dragonfly*)
13669 # FreeBSD uses GNU C++
13670 ;;
13671 hpux9* | hpux10* | hpux11*)
13672 case $cc_basename in
13673 CC*)
13674 lt_prog_compiler_wl_CXX='-Wl,'
13675 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13676 if test "$host_cpu" != ia64; then
13677 lt_prog_compiler_pic_CXX='+Z'
13678 fi
13679 ;;
13680 aCC*)
13681 lt_prog_compiler_wl_CXX='-Wl,'
13682 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13683 case $host_cpu in
13684 hppa*64*|ia64*)
13685 # +Z the default
13686 ;;
13687 *)
13688 lt_prog_compiler_pic_CXX='+Z'
13689 ;;
13690 esac
13691 ;;
13692 *)
13693 ;;
13694 esac
13695 ;;
13696 interix*)
13697 # This is c89, which is MS Visual C++ (no shared libs)
13698 # Anyone wants to do a port?
13699 ;;
13700 irix5* | irix6* | nonstopux*)
13701 case $cc_basename in
13702 CC*)
13703 lt_prog_compiler_wl_CXX='-Wl,'
13704 lt_prog_compiler_static_CXX='-non_shared'
13705 # CC pic flag -KPIC is the default.
13706 ;;
13707 *)
13708 ;;
13709 esac
13710 ;;
13711 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13712 case $cc_basename in
13713 KCC*)
13714 # KAI C++ Compiler
13715 lt_prog_compiler_wl_CXX='--backend -Wl,'
13716 lt_prog_compiler_pic_CXX='-fPIC'
13717 ;;
13718 ecpc* )
13719 # old Intel C++ for x86_64 which still supported -KPIC.
13720 lt_prog_compiler_wl_CXX='-Wl,'
13721 lt_prog_compiler_pic_CXX='-KPIC'
13722 lt_prog_compiler_static_CXX='-static'
13723 ;;
13724 icpc* )
13725 # Intel C++, used to be incompatible with GCC.
13726 # ICC 10 doesn't accept -KPIC any more.
13727 lt_prog_compiler_wl_CXX='-Wl,'
13728 lt_prog_compiler_pic_CXX='-fPIC'
13729 lt_prog_compiler_static_CXX='-static'
13730 ;;
13731 pgCC* | pgcpp*)
13732 # Portland Group C++ compiler
13733 lt_prog_compiler_wl_CXX='-Wl,'
13734 lt_prog_compiler_pic_CXX='-fpic'
13735 lt_prog_compiler_static_CXX='-Bstatic'
13736 ;;
13737 cxx*)
13738 # Compaq C++
13739 # Make sure the PIC flag is empty. It appears that all Alpha
13740 # Linux and Compaq Tru64 Unix objects are PIC.
13741 lt_prog_compiler_pic_CXX=
13742 lt_prog_compiler_static_CXX='-non_shared'
13743 ;;
13744 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13745 # IBM XL 8.0, 9.0 on PPC and BlueGene
13746 lt_prog_compiler_wl_CXX='-Wl,'
13747 lt_prog_compiler_pic_CXX='-qpic'
13748 lt_prog_compiler_static_CXX='-qstaticlink'
13749 ;;
13750 *)
13751 case `$CC -V 2>&1 | sed 5q` in
13752 *Sun\ C*)
13753 # Sun C++ 5.9
13754 lt_prog_compiler_pic_CXX='-KPIC'
13755 lt_prog_compiler_static_CXX='-Bstatic'
13756 lt_prog_compiler_wl_CXX='-Qoption ld '
13757 ;;
13758 esac
13759 ;;
13760 esac
13761 ;;
13762 lynxos*)
13763 ;;
13764 m88k*)
13765 ;;
13766 mvs*)
13767 case $cc_basename in
13768 cxx*)
13769 lt_prog_compiler_pic_CXX='-W c,exportall'
13770 ;;
13771 *)
13772 ;;
13773 esac
13774 ;;
13775 netbsd*)
13776 ;;
13777 *qnx* | *nto*)
13778 # QNX uses GNU C++, but need to define -shared option too, otherwise
13779 # it will coredump.
13780 lt_prog_compiler_pic_CXX='-fPIC -shared'
13781 ;;
13782 osf3* | osf4* | osf5*)
13783 case $cc_basename in
13784 KCC*)
13785 lt_prog_compiler_wl_CXX='--backend -Wl,'
13786 ;;
13787 RCC*)
13788 # Rational C++ 2.4.1
13789 lt_prog_compiler_pic_CXX='-pic'
13790 ;;
13791 cxx*)
13792 # Digital/Compaq C++
13793 lt_prog_compiler_wl_CXX='-Wl,'
13794 # Make sure the PIC flag is empty. It appears that all Alpha
13795 # Linux and Compaq Tru64 Unix objects are PIC.
13796 lt_prog_compiler_pic_CXX=
13797 lt_prog_compiler_static_CXX='-non_shared'
13798 ;;
13799 *)
13800 ;;
13801 esac
13802 ;;
13803 psos*)
13804 ;;
13805 solaris*)
13806 case $cc_basename in
13807 CC*)
13808 # Sun C++ 4.2, 5.x and Centerline C++
13809 lt_prog_compiler_pic_CXX='-KPIC'
13810 lt_prog_compiler_static_CXX='-Bstatic'
13811 lt_prog_compiler_wl_CXX='-Qoption ld '
13812 ;;
13813 gcx*)
13814 # Green Hills C++ Compiler
13815 lt_prog_compiler_pic_CXX='-PIC'
13816 ;;
13817 *)
13818 ;;
13819 esac
13820 ;;
13821 sunos4*)
13822 case $cc_basename in
13823 CC*)
13824 # Sun C++ 4.x
13825 lt_prog_compiler_pic_CXX='-pic'
13826 lt_prog_compiler_static_CXX='-Bstatic'
13827 ;;
13828 lcc*)
13829 # Lucid
13830 lt_prog_compiler_pic_CXX='-pic'
13831 ;;
13832 *)
13833 ;;
13834 esac
13835 ;;
13836 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13837 case $cc_basename in
13838 CC*)
13839 lt_prog_compiler_wl_CXX='-Wl,'
13840 lt_prog_compiler_pic_CXX='-KPIC'
13841 lt_prog_compiler_static_CXX='-Bstatic'
13842 ;;
13843 esac
13844 ;;
13845 tandem*)
13846 case $cc_basename in
13847 NCC*)
13848 # NonStop-UX NCC 3.20
13849 lt_prog_compiler_pic_CXX='-KPIC'
13850 ;;
13851 *)
13852 ;;
13853 esac
13854 ;;
13855 vxworks*)
13856 ;;
13857 *)
13858 lt_prog_compiler_can_build_shared_CXX=no
13859 ;;
13860 esac
13861 fi
13862
13863 case $host_os in
13864 # For platforms which do not support PIC, -DPIC is meaningless:
13865 *djgpp*)
13866 lt_prog_compiler_pic_CXX=
13867 ;;
13868 *)
13869 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13870 ;;
13871 esac
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13873 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13874
13875
13876
13877 #
13878 # Check to make sure the PIC flag actually works.
13879 #
13880 if test -n "$lt_prog_compiler_pic_CXX"; then
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13882 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13883 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13884 $as_echo_n "(cached) " >&6
13885 else
13886 lt_cv_prog_compiler_pic_works_CXX=no
13887 ac_outfile=conftest.$ac_objext
13888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13889 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13890 # Insert the option either (1) after the last *FLAGS variable, or
13891 # (2) before a word containing "conftest.", or (3) at the end.
13892 # Note that $ac_compile itself does not contain backslashes and begins
13893 # with a dollar sign (not a hyphen), so the echo should work correctly.
13894 # The option is referenced via a variable to avoid confusing sed.
13895 lt_compile=`echo "$ac_compile" | $SED \
13896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13898 -e 's:$: $lt_compiler_flag:'`
13899 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13900 (eval "$lt_compile" 2>conftest.err)
13901 ac_status=$?
13902 cat conftest.err >&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 if (exit $ac_status) && test -s "$ac_outfile"; then
13905 # The compiler can only warn and ignore the option if not recognized
13906 # So say no if there are warnings other than the usual output.
13907 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13908 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13909 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13910 lt_cv_prog_compiler_pic_works_CXX=yes
13911 fi
13912 fi
13913 $RM conftest*
13914
13915 fi
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13917 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13918
13919 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13920 case $lt_prog_compiler_pic_CXX in
13921 "" | " "*) ;;
13922 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13923 esac
13924 else
13925 lt_prog_compiler_pic_CXX=
13926 lt_prog_compiler_can_build_shared_CXX=no
13927 fi
13928
13929 fi
13930
13931
13932
13933 #
13934 # Check to make sure the static flag actually works.
13935 #
13936 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13938 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13939 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13940 $as_echo_n "(cached) " >&6
13941 else
13942 lt_cv_prog_compiler_static_works_CXX=no
13943 save_LDFLAGS="$LDFLAGS"
13944 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13945 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13946 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13947 # The linker can only warn and ignore the option if not recognized
13948 # So say no if there are warnings
13949 if test -s conftest.err; then
13950 # Append any errors to the config.log.
13951 cat conftest.err 1>&5
13952 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13954 if diff conftest.exp conftest.er2 >/dev/null; then
13955 lt_cv_prog_compiler_static_works_CXX=yes
13956 fi
13957 else
13958 lt_cv_prog_compiler_static_works_CXX=yes
13959 fi
13960 fi
13961 $RM -r conftest*
13962 LDFLAGS="$save_LDFLAGS"
13963
13964 fi
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13966 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13967
13968 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13969 :
13970 else
13971 lt_prog_compiler_static_CXX=
13972 fi
13973
13974
13975
13976
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13978 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13979 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13980 $as_echo_n "(cached) " >&6
13981 else
13982 lt_cv_prog_compiler_c_o_CXX=no
13983 $RM -r conftest 2>/dev/null
13984 mkdir conftest
13985 cd conftest
13986 mkdir out
13987 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13988
13989 lt_compiler_flag="-o out/conftest2.$ac_objext"
13990 # Insert the option either (1) after the last *FLAGS variable, or
13991 # (2) before a word containing "conftest.", or (3) at the end.
13992 # Note that $ac_compile itself does not contain backslashes and begins
13993 # with a dollar sign (not a hyphen), so the echo should work correctly.
13994 lt_compile=`echo "$ac_compile" | $SED \
13995 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13996 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13997 -e 's:$: $lt_compiler_flag:'`
13998 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13999 (eval "$lt_compile" 2>out/conftest.err)
14000 ac_status=$?
14001 cat out/conftest.err >&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14004 then
14005 # The compiler can only warn and ignore the option if not recognized
14006 # So say no if there are warnings
14007 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14008 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14009 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14010 lt_cv_prog_compiler_c_o_CXX=yes
14011 fi
14012 fi
14013 chmod u+w . 2>&5
14014 $RM conftest*
14015 # SGI C++ compiler will create directory out/ii_files/ for
14016 # template instantiation
14017 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14018 $RM out/* && rmdir out
14019 cd ..
14020 $RM -r conftest
14021 $RM conftest*
14022
14023 fi
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14025 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14026
14027
14028
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14030 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14031 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14032 $as_echo_n "(cached) " >&6
14033 else
14034 lt_cv_prog_compiler_c_o_CXX=no
14035 $RM -r conftest 2>/dev/null
14036 mkdir conftest
14037 cd conftest
14038 mkdir out
14039 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14040
14041 lt_compiler_flag="-o out/conftest2.$ac_objext"
14042 # Insert the option either (1) after the last *FLAGS variable, or
14043 # (2) before a word containing "conftest.", or (3) at the end.
14044 # Note that $ac_compile itself does not contain backslashes and begins
14045 # with a dollar sign (not a hyphen), so the echo should work correctly.
14046 lt_compile=`echo "$ac_compile" | $SED \
14047 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14048 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14049 -e 's:$: $lt_compiler_flag:'`
14050 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14051 (eval "$lt_compile" 2>out/conftest.err)
14052 ac_status=$?
14053 cat out/conftest.err >&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14056 then
14057 # The compiler can only warn and ignore the option if not recognized
14058 # So say no if there are warnings
14059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14060 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14061 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14062 lt_cv_prog_compiler_c_o_CXX=yes
14063 fi
14064 fi
14065 chmod u+w . 2>&5
14066 $RM conftest*
14067 # SGI C++ compiler will create directory out/ii_files/ for
14068 # template instantiation
14069 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14070 $RM out/* && rmdir out
14071 cd ..
14072 $RM -r conftest
14073 $RM conftest*
14074
14075 fi
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14077 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14078
14079
14080
14081
14082 hard_links="nottested"
14083 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14084 # do not overwrite the value of need_locks provided by the user
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14086 $as_echo_n "checking if we can lock with hard links... " >&6; }
14087 hard_links=yes
14088 $RM conftest*
14089 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14090 touch conftest.a
14091 ln conftest.a conftest.b 2>&5 || hard_links=no
14092 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14094 $as_echo "$hard_links" >&6; }
14095 if test "$hard_links" = no; then
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14097 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14098 need_locks=warn
14099 fi
14100 else
14101 need_locks=no
14102 fi
14103
14104
14105
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14107 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14108
14109 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14110 case $host_os in
14111 aix[4-9]*)
14112 # If we're using GNU nm, then we don't want the "-C" option.
14113 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14114 # Also, AIX nm treats weak defined symbols like other global defined
14115 # symbols, whereas GNU nm marks them as "W".
14116 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14117 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'
14118 else
14119 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'
14120 fi
14121 ;;
14122 pw32*)
14123 export_symbols_cmds_CXX="$ltdll_cmds"
14124 ;;
14125 cygwin* | mingw* | cegcc*)
14126 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'
14127 ;;
14128 *)
14129 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14130 ;;
14131 esac
14132 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14133
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14135 $as_echo "$ld_shlibs_CXX" >&6; }
14136 test "$ld_shlibs_CXX" = no && can_build_shared=no
14137
14138 with_gnu_ld_CXX=$with_gnu_ld
14139
14140
14141
14142
14143
14144
14145 #
14146 # Do we need to explicitly link libc?
14147 #
14148 case "x$archive_cmds_need_lc_CXX" in
14149 x|xyes)
14150 # Assume -lc should be added
14151 archive_cmds_need_lc_CXX=yes
14152
14153 if test "$enable_shared" = yes && test "$GCC" = yes; then
14154 case $archive_cmds_CXX in
14155 *'~'*)
14156 # FIXME: we may have to deal with multi-command sequences.
14157 ;;
14158 '$CC '*)
14159 # Test whether the compiler implicitly links with -lc since on some
14160 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14161 # to ld, don't add -lc before -lgcc.
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14163 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14164 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14165 $as_echo_n "(cached) " >&6
14166 else
14167 $RM conftest*
14168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14169
14170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14171 (eval $ac_compile) 2>&5
14172 ac_status=$?
14173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14174 test $ac_status = 0; } 2>conftest.err; then
14175 soname=conftest
14176 lib=conftest
14177 libobjs=conftest.$ac_objext
14178 deplibs=
14179 wl=$lt_prog_compiler_wl_CXX
14180 pic_flag=$lt_prog_compiler_pic_CXX
14181 compiler_flags=-v
14182 linker_flags=-v
14183 verstring=
14184 output_objdir=.
14185 libname=conftest
14186 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14187 allow_undefined_flag_CXX=
14188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14189 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14190 ac_status=$?
14191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14192 test $ac_status = 0; }
14193 then
14194 lt_cv_archive_cmds_need_lc_CXX=no
14195 else
14196 lt_cv_archive_cmds_need_lc_CXX=yes
14197 fi
14198 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14199 else
14200 cat conftest.err 1>&5
14201 fi
14202 $RM conftest*
14203
14204 fi
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14206 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14207 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14208 ;;
14209 esac
14210 fi
14211 ;;
14212 esac
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14278 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14279
14280 library_names_spec=
14281 libname_spec='lib$name'
14282 soname_spec=
14283 shrext_cmds=".so"
14284 postinstall_cmds=
14285 postuninstall_cmds=
14286 finish_cmds=
14287 finish_eval=
14288 shlibpath_var=
14289 shlibpath_overrides_runpath=unknown
14290 version_type=none
14291 dynamic_linker="$host_os ld.so"
14292 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14293 need_lib_prefix=unknown
14294 hardcode_into_libs=no
14295
14296 # when you set need_version to no, make sure it does not cause -set_version
14297 # flags to be left without arguments
14298 need_version=unknown
14299
14300 case $host_os in
14301 aix3*)
14302 version_type=linux
14303 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14304 shlibpath_var=LIBPATH
14305
14306 # AIX 3 has no versioning support, so we append a major version to the name.
14307 soname_spec='${libname}${release}${shared_ext}$major'
14308 ;;
14309
14310 aix[4-9]*)
14311 version_type=linux
14312 need_lib_prefix=no
14313 need_version=no
14314 hardcode_into_libs=yes
14315 if test "$host_cpu" = ia64; then
14316 # AIX 5 supports IA64
14317 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14318 shlibpath_var=LD_LIBRARY_PATH
14319 else
14320 # With GCC up to 2.95.x, collect2 would create an import file
14321 # for dependence libraries. The import file would start with
14322 # the line `#! .'. This would cause the generated library to
14323 # depend on `.', always an invalid library. This was fixed in
14324 # development snapshots of GCC prior to 3.0.
14325 case $host_os in
14326 aix4 | aix4.[01] | aix4.[01].*)
14327 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14328 echo ' yes '
14329 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14330 :
14331 else
14332 can_build_shared=no
14333 fi
14334 ;;
14335 esac
14336 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14337 # soname into executable. Probably we can add versioning support to
14338 # collect2, so additional links can be useful in future.
14339 if test "$aix_use_runtimelinking" = yes; then
14340 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14341 # instead of lib<name>.a to let people know that these are not
14342 # typical AIX shared libraries.
14343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14344 else
14345 # We preserve .a as extension for shared libraries through AIX4.2
14346 # and later when we are not doing run time linking.
14347 library_names_spec='${libname}${release}.a $libname.a'
14348 soname_spec='${libname}${release}${shared_ext}$major'
14349 fi
14350 shlibpath_var=LIBPATH
14351 fi
14352 ;;
14353
14354 amigaos*)
14355 case $host_cpu in
14356 powerpc)
14357 # Since July 2007 AmigaOS4 officially supports .so libraries.
14358 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14360 ;;
14361 m68k)
14362 library_names_spec='$libname.ixlibrary $libname.a'
14363 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14364 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'
14365 ;;
14366 esac
14367 ;;
14368
14369 beos*)
14370 library_names_spec='${libname}${shared_ext}'
14371 dynamic_linker="$host_os ld.so"
14372 shlibpath_var=LIBRARY_PATH
14373 ;;
14374
14375 bsdi[45]*)
14376 version_type=linux
14377 need_version=no
14378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14379 soname_spec='${libname}${release}${shared_ext}$major'
14380 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14381 shlibpath_var=LD_LIBRARY_PATH
14382 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14383 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14384 # the default ld.so.conf also contains /usr/contrib/lib and
14385 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14386 # libtool to hard-code these into programs
14387 ;;
14388
14389 cygwin* | mingw* | pw32* | cegcc*)
14390 version_type=windows
14391 shrext_cmds=".dll"
14392 need_version=no
14393 need_lib_prefix=no
14394
14395 case $GCC,$host_os in
14396 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14397 library_names_spec='$libname.dll.a'
14398 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14399 postinstall_cmds='base_file=`basename \${file}`~
14400 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14401 dldir=$destdir/`dirname \$dlpath`~
14402 test -d \$dldir || mkdir -p \$dldir~
14403 $install_prog $dir/$dlname \$dldir/$dlname~
14404 chmod a+x \$dldir/$dlname~
14405 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14406 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14407 fi'
14408 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14409 dlpath=$dir/\$dldll~
14410 $RM \$dlpath'
14411 shlibpath_overrides_runpath=yes
14412
14413 case $host_os in
14414 cygwin*)
14415 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14416 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14417
14418 ;;
14419 mingw* | cegcc*)
14420 # MinGW DLLs use traditional 'lib' prefix
14421 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14422 ;;
14423 pw32*)
14424 # pw32 DLLs use 'pw' prefix rather than 'lib'
14425 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14426 ;;
14427 esac
14428 ;;
14429
14430 *)
14431 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14432 ;;
14433 esac
14434 dynamic_linker='Win32 ld.exe'
14435 # FIXME: first we should search . and the directory the executable is in
14436 shlibpath_var=PATH
14437 ;;
14438
14439 darwin* | rhapsody*)
14440 dynamic_linker="$host_os dyld"
14441 version_type=darwin
14442 need_lib_prefix=no
14443 need_version=no
14444 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14445 soname_spec='${libname}${release}${major}$shared_ext'
14446 shlibpath_overrides_runpath=yes
14447 shlibpath_var=DYLD_LIBRARY_PATH
14448 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14449
14450 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14451 ;;
14452
14453 dgux*)
14454 version_type=linux
14455 need_lib_prefix=no
14456 need_version=no
14457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14458 soname_spec='${libname}${release}${shared_ext}$major'
14459 shlibpath_var=LD_LIBRARY_PATH
14460 ;;
14461
14462 freebsd* | dragonfly*)
14463 # DragonFly does not have aout. When/if they implement a new
14464 # versioning mechanism, adjust this.
14465 if test -x /usr/bin/objformat; then
14466 objformat=`/usr/bin/objformat`
14467 else
14468 case $host_os in
14469 freebsd[23].*) objformat=aout ;;
14470 *) objformat=elf ;;
14471 esac
14472 fi
14473 version_type=freebsd-$objformat
14474 case $version_type in
14475 freebsd-elf*)
14476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14477 need_version=no
14478 need_lib_prefix=no
14479 ;;
14480 freebsd-*)
14481 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14482 need_version=yes
14483 ;;
14484 esac
14485 shlibpath_var=LD_LIBRARY_PATH
14486 case $host_os in
14487 freebsd2.*)
14488 shlibpath_overrides_runpath=yes
14489 ;;
14490 freebsd3.[01]* | freebsdelf3.[01]*)
14491 shlibpath_overrides_runpath=yes
14492 hardcode_into_libs=yes
14493 ;;
14494 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14495 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14496 shlibpath_overrides_runpath=no
14497 hardcode_into_libs=yes
14498 ;;
14499 *) # from 4.6 on, and DragonFly
14500 shlibpath_overrides_runpath=yes
14501 hardcode_into_libs=yes
14502 ;;
14503 esac
14504 ;;
14505
14506 haiku*)
14507 version_type=linux
14508 need_lib_prefix=no
14509 need_version=no
14510 dynamic_linker="$host_os runtime_loader"
14511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14512 soname_spec='${libname}${release}${shared_ext}$major'
14513 shlibpath_var=LIBRARY_PATH
14514 shlibpath_overrides_runpath=yes
14515 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14516 hardcode_into_libs=yes
14517 ;;
14518
14519 hpux9* | hpux10* | hpux11*)
14520 # Give a soname corresponding to the major version so that dld.sl refuses to
14521 # link against other versions.
14522 version_type=sunos
14523 need_lib_prefix=no
14524 need_version=no
14525 case $host_cpu in
14526 ia64*)
14527 shrext_cmds='.so'
14528 hardcode_into_libs=yes
14529 dynamic_linker="$host_os dld.so"
14530 shlibpath_var=LD_LIBRARY_PATH
14531 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14533 soname_spec='${libname}${release}${shared_ext}$major'
14534 if test "X$HPUX_IA64_MODE" = X32; then
14535 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14536 else
14537 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14538 fi
14539 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14540 ;;
14541 hppa*64*)
14542 shrext_cmds='.sl'
14543 hardcode_into_libs=yes
14544 dynamic_linker="$host_os dld.sl"
14545 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14546 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14548 soname_spec='${libname}${release}${shared_ext}$major'
14549 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14551 ;;
14552 *)
14553 shrext_cmds='.sl'
14554 dynamic_linker="$host_os dld.sl"
14555 shlibpath_var=SHLIB_PATH
14556 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14558 soname_spec='${libname}${release}${shared_ext}$major'
14559 ;;
14560 esac
14561 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14562 postinstall_cmds='chmod 555 $lib'
14563 # or fails outright, so override atomically:
14564 install_override_mode=555
14565 ;;
14566
14567 interix[3-9]*)
14568 version_type=linux
14569 need_lib_prefix=no
14570 need_version=no
14571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14572 soname_spec='${libname}${release}${shared_ext}$major'
14573 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14574 shlibpath_var=LD_LIBRARY_PATH
14575 shlibpath_overrides_runpath=no
14576 hardcode_into_libs=yes
14577 ;;
14578
14579 irix5* | irix6* | nonstopux*)
14580 case $host_os in
14581 nonstopux*) version_type=nonstopux ;;
14582 *)
14583 if test "$lt_cv_prog_gnu_ld" = yes; then
14584 version_type=linux
14585 else
14586 version_type=irix
14587 fi ;;
14588 esac
14589 need_lib_prefix=no
14590 need_version=no
14591 soname_spec='${libname}${release}${shared_ext}$major'
14592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14593 case $host_os in
14594 irix5* | nonstopux*)
14595 libsuff= shlibsuff=
14596 ;;
14597 *)
14598 case $LD in # libtool.m4 will add one of these switches to LD
14599 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14600 libsuff= shlibsuff= libmagic=32-bit;;
14601 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14602 libsuff=32 shlibsuff=N32 libmagic=N32;;
14603 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14604 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14605 *) libsuff= shlibsuff= libmagic=never-match;;
14606 esac
14607 ;;
14608 esac
14609 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14610 shlibpath_overrides_runpath=no
14611 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14612 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14613 hardcode_into_libs=yes
14614 ;;
14615
14616 # No shared lib support for Linux oldld, aout, or coff.
14617 linux*oldld* | linux*aout* | linux*coff*)
14618 dynamic_linker=no
14619 ;;
14620
14621 # This must be Linux ELF.
14622
14623 # uclinux* changes (here and below) have been submitted to the libtool
14624 # project, but have not yet been accepted: they are GCC-local changes
14625 # for the time being. (See
14626 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14627 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
14628 version_type=linux
14629 need_lib_prefix=no
14630 need_version=no
14631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14632 soname_spec='${libname}${release}${shared_ext}$major'
14633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14634 shlibpath_var=LD_LIBRARY_PATH
14635 shlibpath_overrides_runpath=no
14636
14637 # Some binutils ld are patched to set DT_RUNPATH
14638 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14639 $as_echo_n "(cached) " >&6
14640 else
14641 lt_cv_shlibpath_overrides_runpath=no
14642 save_LDFLAGS=$LDFLAGS
14643 save_libdir=$libdir
14644 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14645 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14647 /* end confdefs.h. */
14648
14649 int
14650 main ()
14651 {
14652
14653 ;
14654 return 0;
14655 }
14656 _ACEOF
14657 if ac_fn_cxx_try_link "$LINENO"; then :
14658 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14659 lt_cv_shlibpath_overrides_runpath=yes
14660 fi
14661 fi
14662 rm -f core conftest.err conftest.$ac_objext \
14663 conftest$ac_exeext conftest.$ac_ext
14664 LDFLAGS=$save_LDFLAGS
14665 libdir=$save_libdir
14666
14667 fi
14668
14669 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14670
14671 # This implies no fast_install, which is unacceptable.
14672 # Some rework will be needed to allow for fast_install
14673 # before this can be enabled.
14674 hardcode_into_libs=yes
14675
14676 # Append ld.so.conf contents to the search path
14677 if test -f /etc/ld.so.conf; then
14678 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' ' '`
14679 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14680 fi
14681
14682 # We used to test for /lib/ld.so.1 and disable shared libraries on
14683 # powerpc, because MkLinux only supported shared libraries with the
14684 # GNU dynamic linker. Since this was broken with cross compilers,
14685 # most powerpc-linux boxes support dynamic linking these days and
14686 # people can always --disable-shared, the test was removed, and we
14687 # assume the GNU/Linux dynamic linker is in use.
14688 dynamic_linker='GNU/Linux ld.so'
14689 ;;
14690
14691 netbsd*)
14692 version_type=sunos
14693 need_lib_prefix=no
14694 need_version=no
14695 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14698 dynamic_linker='NetBSD (a.out) ld.so'
14699 else
14700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14701 soname_spec='${libname}${release}${shared_ext}$major'
14702 dynamic_linker='NetBSD ld.elf_so'
14703 fi
14704 shlibpath_var=LD_LIBRARY_PATH
14705 shlibpath_overrides_runpath=yes
14706 hardcode_into_libs=yes
14707 ;;
14708
14709 newsos6)
14710 version_type=linux
14711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14712 shlibpath_var=LD_LIBRARY_PATH
14713 shlibpath_overrides_runpath=yes
14714 ;;
14715
14716 *nto* | *qnx*)
14717 version_type=qnx
14718 need_lib_prefix=no
14719 need_version=no
14720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14721 soname_spec='${libname}${release}${shared_ext}$major'
14722 shlibpath_var=LD_LIBRARY_PATH
14723 shlibpath_overrides_runpath=no
14724 hardcode_into_libs=yes
14725 dynamic_linker='ldqnx.so'
14726 ;;
14727
14728 openbsd*)
14729 version_type=sunos
14730 sys_lib_dlsearch_path_spec="/usr/lib"
14731 need_lib_prefix=no
14732 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14733 case $host_os in
14734 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14735 *) need_version=no ;;
14736 esac
14737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14739 shlibpath_var=LD_LIBRARY_PATH
14740 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14741 case $host_os in
14742 openbsd2.[89] | openbsd2.[89].*)
14743 shlibpath_overrides_runpath=no
14744 ;;
14745 *)
14746 shlibpath_overrides_runpath=yes
14747 ;;
14748 esac
14749 else
14750 shlibpath_overrides_runpath=yes
14751 fi
14752 ;;
14753
14754 os2*)
14755 libname_spec='$name'
14756 shrext_cmds=".dll"
14757 need_lib_prefix=no
14758 library_names_spec='$libname${shared_ext} $libname.a'
14759 dynamic_linker='OS/2 ld.exe'
14760 shlibpath_var=LIBPATH
14761 ;;
14762
14763 osf3* | osf4* | osf5*)
14764 version_type=osf
14765 need_lib_prefix=no
14766 need_version=no
14767 soname_spec='${libname}${release}${shared_ext}$major'
14768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14769 shlibpath_var=LD_LIBRARY_PATH
14770 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14771 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14772 ;;
14773
14774 rdos*)
14775 dynamic_linker=no
14776 ;;
14777
14778 solaris*)
14779 version_type=linux
14780 need_lib_prefix=no
14781 need_version=no
14782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14783 soname_spec='${libname}${release}${shared_ext}$major'
14784 shlibpath_var=LD_LIBRARY_PATH
14785 shlibpath_overrides_runpath=yes
14786 hardcode_into_libs=yes
14787 # ldd complains unless libraries are executable
14788 postinstall_cmds='chmod +x $lib'
14789 ;;
14790
14791 sunos4*)
14792 version_type=sunos
14793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14794 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14795 shlibpath_var=LD_LIBRARY_PATH
14796 shlibpath_overrides_runpath=yes
14797 if test "$with_gnu_ld" = yes; then
14798 need_lib_prefix=no
14799 fi
14800 need_version=yes
14801 ;;
14802
14803 sysv4 | sysv4.3*)
14804 version_type=linux
14805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14806 soname_spec='${libname}${release}${shared_ext}$major'
14807 shlibpath_var=LD_LIBRARY_PATH
14808 case $host_vendor in
14809 sni)
14810 shlibpath_overrides_runpath=no
14811 need_lib_prefix=no
14812 runpath_var=LD_RUN_PATH
14813 ;;
14814 siemens)
14815 need_lib_prefix=no
14816 ;;
14817 motorola)
14818 need_lib_prefix=no
14819 need_version=no
14820 shlibpath_overrides_runpath=no
14821 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14822 ;;
14823 esac
14824 ;;
14825
14826 sysv4*MP*)
14827 if test -d /usr/nec ;then
14828 version_type=linux
14829 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14830 soname_spec='$libname${shared_ext}.$major'
14831 shlibpath_var=LD_LIBRARY_PATH
14832 fi
14833 ;;
14834
14835 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14836 version_type=freebsd-elf
14837 need_lib_prefix=no
14838 need_version=no
14839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14840 soname_spec='${libname}${release}${shared_ext}$major'
14841 shlibpath_var=LD_LIBRARY_PATH
14842 shlibpath_overrides_runpath=yes
14843 hardcode_into_libs=yes
14844 if test "$with_gnu_ld" = yes; then
14845 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14846 else
14847 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14848 case $host_os in
14849 sco3.2v5*)
14850 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14851 ;;
14852 esac
14853 fi
14854 sys_lib_dlsearch_path_spec='/usr/lib'
14855 ;;
14856
14857 tpf*)
14858 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14859 version_type=linux
14860 need_lib_prefix=no
14861 need_version=no
14862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14863 shlibpath_var=LD_LIBRARY_PATH
14864 shlibpath_overrides_runpath=no
14865 hardcode_into_libs=yes
14866 ;;
14867
14868 uts4*)
14869 version_type=linux
14870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14871 soname_spec='${libname}${release}${shared_ext}$major'
14872 shlibpath_var=LD_LIBRARY_PATH
14873 ;;
14874
14875 # Shared libraries for VwWorks, >= 7 only at this stage
14876 # and (fpic) still incompatible with "large" code models
14877 # in a few configurations. Only for RTP mode in any case,
14878 # and upon explicit request at configure time.
14879 vxworks7*)
14880 dynamic_linker=no
14881 case ${with_multisubdir}-${enable_shared} in
14882 *large*)
14883 ;;
14884 *mrtp*-yes)
14885 version_type=linux
14886 need_lib_prefix=no
14887 need_version=no
14888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14889 soname_spec='${libname}${release}${shared_ext}$major'
14890 dynamic_linker="$host_os module_loader"
14891 ;;
14892 esac
14893 ;;
14894 *)
14895 dynamic_linker=no
14896 ;;
14897 esac
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14899 $as_echo "$dynamic_linker" >&6; }
14900 test "$dynamic_linker" = no && can_build_shared=no
14901
14902 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14903 if test "$GCC" = yes; then
14904 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14905 fi
14906
14907 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14908 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14909 fi
14910 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14911 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14912 fi
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14952 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14953 hardcode_action_CXX=
14954 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14955 test -n "$runpath_var_CXX" ||
14956 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14957
14958 # We can hardcode non-existent directories.
14959 if test "$hardcode_direct_CXX" != no &&
14960 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14961 # have to relink, otherwise we might link with an installed library
14962 # when we should be linking with a yet-to-be-installed one
14963 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14964 test "$hardcode_minus_L_CXX" != no; then
14965 # Linking always hardcodes the temporary library directory.
14966 hardcode_action_CXX=relink
14967 else
14968 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14969 hardcode_action_CXX=immediate
14970 fi
14971 else
14972 # We cannot hardcode anything, or else we can only hardcode existing
14973 # directories.
14974 hardcode_action_CXX=unsupported
14975 fi
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14977 $as_echo "$hardcode_action_CXX" >&6; }
14978
14979 if test "$hardcode_action_CXX" = relink ||
14980 test "$inherit_rpath_CXX" = yes; then
14981 # Fast installation is not supported
14982 enable_fast_install=no
14983 elif test "$shlibpath_overrides_runpath" = yes ||
14984 test "$enable_shared" = no; then
14985 # Fast installation is not necessary
14986 enable_fast_install=needless
14987 fi
14988
14989
14990
14991
14992
14993
14994
14995 fi # test -n "$compiler"
14996
14997 CC=$lt_save_CC
14998 LDCXX=$LD
14999 LD=$lt_save_LD
15000 GCC=$lt_save_GCC
15001 with_gnu_ld=$lt_save_with_gnu_ld
15002 lt_cv_path_LDCXX=$lt_cv_path_LD
15003 lt_cv_path_LD=$lt_save_path_LD
15004 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15005 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15006 fi # test "$_lt_caught_CXX_error" != yes
15007
15008 ac_ext=c
15009 ac_cpp='$CPP $CPPFLAGS'
15010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026 ac_config_commands="$ac_config_commands libtool"
15027
15028
15029
15030
15031 # Only expand once:
15032
15033
15034
15035 # The tests for host and target for $enable_largefile require
15036 # canonical names.
15037
15038
15039
15040 # As the $enable_largefile decision depends on --enable-plugins we must set it
15041 # even in directories otherwise not depending on the $plugins option.
15042
15043
15044 maybe_plugins=no
15045 for ac_header in dlfcn.h
15046 do :
15047 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15048 "
15049 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15050 cat >>confdefs.h <<_ACEOF
15051 #define HAVE_DLFCN_H 1
15052 _ACEOF
15053 maybe_plugins=yes
15054 fi
15055
15056 done
15057
15058 for ac_header in windows.h
15059 do :
15060 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15061 "
15062 if test "x$ac_cv_header_windows_h" = xyes; then :
15063 cat >>confdefs.h <<_ACEOF
15064 #define HAVE_WINDOWS_H 1
15065 _ACEOF
15066 maybe_plugins=yes
15067 fi
15068
15069 done
15070
15071
15072 # Check whether --enable-plugins was given.
15073 if test "${enable_plugins+set}" = set; then :
15074 enableval=$enable_plugins; case "${enableval}" in
15075 no) plugins=no ;;
15076 *) plugins=yes
15077 if test "$maybe_plugins" != "yes" ; then
15078 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15079 fi ;;
15080 esac
15081 else
15082 plugins=$maybe_plugins
15083
15084 fi
15085
15086 if test "$plugins" = "yes"; then
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
15088 $as_echo_n "checking for library containing dlsym... " >&6; }
15089 if ${ac_cv_search_dlsym+:} false; then :
15090 $as_echo_n "(cached) " >&6
15091 else
15092 ac_func_search_save_LIBS=$LIBS
15093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094 /* end confdefs.h. */
15095
15096 /* Override any GCC internal prototype to avoid an error.
15097 Use char because int might match the return type of a GCC
15098 builtin and then its argument prototype would still apply. */
15099 #ifdef __cplusplus
15100 extern "C"
15101 #endif
15102 char dlsym ();
15103 int
15104 main ()
15105 {
15106 return dlsym ();
15107 ;
15108 return 0;
15109 }
15110 _ACEOF
15111 for ac_lib in '' dl; do
15112 if test -z "$ac_lib"; then
15113 ac_res="none required"
15114 else
15115 ac_res=-l$ac_lib
15116 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15117 fi
15118 if ac_fn_c_try_link "$LINENO"; then :
15119 ac_cv_search_dlsym=$ac_res
15120 fi
15121 rm -f core conftest.err conftest.$ac_objext \
15122 conftest$ac_exeext
15123 if ${ac_cv_search_dlsym+:} false; then :
15124 break
15125 fi
15126 done
15127 if ${ac_cv_search_dlsym+:} false; then :
15128
15129 else
15130 ac_cv_search_dlsym=no
15131 fi
15132 rm conftest.$ac_ext
15133 LIBS=$ac_func_search_save_LIBS
15134 fi
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
15136 $as_echo "$ac_cv_search_dlsym" >&6; }
15137 ac_res=$ac_cv_search_dlsym
15138 if test "$ac_res" != no; then :
15139 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15140
15141 fi
15142
15143 fi
15144
15145
15146 case "${host}" in
15147 sparc-*-solaris*|i?86-*-solaris*)
15148 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
15149 # were mutually exclusive until Solaris 11.3. Without procfs support,
15150 # the bfd/ elf module cannot provide certain routines such as
15151 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
15152 # explicitly requested large-file support through the
15153 # --enable-largefile switch, disable large-file support in favor of
15154 # procfs support.
15155 #
15156 # Check if <sys/procfs.h> is incompatible with large-file support.
15157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15158 /* end confdefs.h. */
15159 #define _FILE_OFFSET_BITS 64
15160 #define _STRUCTURED_PROC 1
15161 #include <sys/procfs.h>
15162 int
15163 main ()
15164 {
15165
15166 ;
15167 return 0;
15168 }
15169 _ACEOF
15170 if ac_fn_c_try_compile "$LINENO"; then :
15171 acx_cv_procfs_lfs=yes
15172 else
15173 acx_cv_procfs_lfs=no
15174 fi
15175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15176 #
15177 # Forcefully disable large-file support only if necessary, gdb is in
15178 # tree and enabled.
15179 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
15180 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
15181 : ${enable_largefile="no"}
15182 if test "$plugins" = yes; then
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15184 plugin support disabled; require large-file support which is incompatible with GDB." >&5
15185 $as_echo "$as_me: WARNING:
15186 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
15187 plugins=no
15188 fi
15189 fi
15190 #
15191 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
15192 # benefit of g++ 9+ which predefines it on Solaris.
15193 if test "$enable_largefile" = no; then
15194 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
15195
15196 fi
15197 ;;
15198 esac
15199
15200 # Check whether --enable-largefile was given.
15201 if test "${enable_largefile+set}" = set; then :
15202 enableval=$enable_largefile;
15203 fi
15204
15205 if test "$enable_largefile" != no; then
15206
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15208 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15209 if ${ac_cv_sys_largefile_CC+:} false; then :
15210 $as_echo_n "(cached) " >&6
15211 else
15212 ac_cv_sys_largefile_CC=no
15213 if test "$GCC" != yes; then
15214 ac_save_CC=$CC
15215 while :; do
15216 # IRIX 6.2 and later do not support large files by default,
15217 # so use the C compiler's -n32 option if that helps.
15218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15219 /* end confdefs.h. */
15220 #include <sys/types.h>
15221 /* Check that off_t can represent 2**63 - 1 correctly.
15222 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15223 since some C++ compilers masquerading as C compilers
15224 incorrectly reject 9223372036854775807. */
15225 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15226 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15227 && LARGE_OFF_T % 2147483647 == 1)
15228 ? 1 : -1];
15229 int
15230 main ()
15231 {
15232
15233 ;
15234 return 0;
15235 }
15236 _ACEOF
15237 if ac_fn_c_try_compile "$LINENO"; then :
15238 break
15239 fi
15240 rm -f core conftest.err conftest.$ac_objext
15241 CC="$CC -n32"
15242 if ac_fn_c_try_compile "$LINENO"; then :
15243 ac_cv_sys_largefile_CC=' -n32'; break
15244 fi
15245 rm -f core conftest.err conftest.$ac_objext
15246 break
15247 done
15248 CC=$ac_save_CC
15249 rm -f conftest.$ac_ext
15250 fi
15251 fi
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15253 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15254 if test "$ac_cv_sys_largefile_CC" != no; then
15255 CC=$CC$ac_cv_sys_largefile_CC
15256 fi
15257
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15259 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15260 if ${ac_cv_sys_file_offset_bits+:} false; then :
15261 $as_echo_n "(cached) " >&6
15262 else
15263 while :; do
15264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15265 /* end confdefs.h. */
15266 #include <sys/types.h>
15267 /* Check that off_t can represent 2**63 - 1 correctly.
15268 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15269 since some C++ compilers masquerading as C compilers
15270 incorrectly reject 9223372036854775807. */
15271 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15272 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15273 && LARGE_OFF_T % 2147483647 == 1)
15274 ? 1 : -1];
15275 int
15276 main ()
15277 {
15278
15279 ;
15280 return 0;
15281 }
15282 _ACEOF
15283 if ac_fn_c_try_compile "$LINENO"; then :
15284 ac_cv_sys_file_offset_bits=no; break
15285 fi
15286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15288 /* end confdefs.h. */
15289 #define _FILE_OFFSET_BITS 64
15290 #include <sys/types.h>
15291 /* Check that off_t can represent 2**63 - 1 correctly.
15292 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15293 since some C++ compilers masquerading as C compilers
15294 incorrectly reject 9223372036854775807. */
15295 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15296 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15297 && LARGE_OFF_T % 2147483647 == 1)
15298 ? 1 : -1];
15299 int
15300 main ()
15301 {
15302
15303 ;
15304 return 0;
15305 }
15306 _ACEOF
15307 if ac_fn_c_try_compile "$LINENO"; then :
15308 ac_cv_sys_file_offset_bits=64; break
15309 fi
15310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15311 ac_cv_sys_file_offset_bits=unknown
15312 break
15313 done
15314 fi
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15316 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15317 case $ac_cv_sys_file_offset_bits in #(
15318 no | unknown) ;;
15319 *)
15320 cat >>confdefs.h <<_ACEOF
15321 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15322 _ACEOF
15323 ;;
15324 esac
15325 rm -rf conftest*
15326 if test $ac_cv_sys_file_offset_bits = unknown; then
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15328 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15329 if ${ac_cv_sys_large_files+:} false; then :
15330 $as_echo_n "(cached) " >&6
15331 else
15332 while :; do
15333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15334 /* end confdefs.h. */
15335 #include <sys/types.h>
15336 /* Check that off_t can represent 2**63 - 1 correctly.
15337 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15338 since some C++ compilers masquerading as C compilers
15339 incorrectly reject 9223372036854775807. */
15340 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15341 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15342 && LARGE_OFF_T % 2147483647 == 1)
15343 ? 1 : -1];
15344 int
15345 main ()
15346 {
15347
15348 ;
15349 return 0;
15350 }
15351 _ACEOF
15352 if ac_fn_c_try_compile "$LINENO"; then :
15353 ac_cv_sys_large_files=no; break
15354 fi
15355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357 /* end confdefs.h. */
15358 #define _LARGE_FILES 1
15359 #include <sys/types.h>
15360 /* Check that off_t can represent 2**63 - 1 correctly.
15361 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15362 since some C++ compilers masquerading as C compilers
15363 incorrectly reject 9223372036854775807. */
15364 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15365 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15366 && LARGE_OFF_T % 2147483647 == 1)
15367 ? 1 : -1];
15368 int
15369 main ()
15370 {
15371
15372 ;
15373 return 0;
15374 }
15375 _ACEOF
15376 if ac_fn_c_try_compile "$LINENO"; then :
15377 ac_cv_sys_large_files=1; break
15378 fi
15379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15380 ac_cv_sys_large_files=unknown
15381 break
15382 done
15383 fi
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15385 $as_echo "$ac_cv_sys_large_files" >&6; }
15386 case $ac_cv_sys_large_files in #(
15387 no | unknown) ;;
15388 *)
15389 cat >>confdefs.h <<_ACEOF
15390 #define _LARGE_FILES $ac_cv_sys_large_files
15391 _ACEOF
15392 ;;
15393 esac
15394 rm -rf conftest*
15395 fi
15396
15397
15398 fi
15399
15400
15401
15402 ac_checking=
15403 . ${srcdir}/../bfd/development.sh
15404 test "$development" = true && ac_checking=yes
15405 # Check whether --enable-checking was given.
15406 if test "${enable_checking+set}" = set; then :
15407 enableval=$enable_checking; case "${enableval}" in
15408 no|none) ac_checking= ;;
15409 *) ac_checking=yes ;;
15410 esac
15411 fi
15412 if test x$ac_checking != x ; then
15413
15414 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
15415
15416 fi
15417
15418
15419 # Check whether --with-lib-path was given.
15420 if test "${with_lib_path+set}" = set; then :
15421 withval=$with_lib_path; LIB_PATH=$withval
15422 fi
15423
15424 # Check whether --enable-targets was given.
15425 if test "${enable_targets+set}" = set; then :
15426 enableval=$enable_targets; case "${enableval}" in
15427 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
15428 ;;
15429 no) enable_targets= ;;
15430 *) enable_targets=$enableval ;;
15431 esac
15432 fi
15433
15434 # Check whether --enable-64-bit-bfd was given.
15435 if test "${enable_64_bit_bfd+set}" = set; then :
15436 enableval=$enable_64_bit_bfd; case $enableval in #(
15437 yes|no) :
15438 ;; #(
15439 *) :
15440 as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
15441 *) :
15442 ;;
15443 esac
15444 else
15445 enable_64_bit_bfd=no
15446 fi
15447
15448
15449 if test "x$enable_64_bit_bfd" = "xno"; then :
15450 # The cast to long int works around a bug in the HP C Compiler
15451 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15452 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15453 # This bug is HP SR number 8606223364.
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15455 $as_echo_n "checking size of void *... " >&6; }
15456 if ${ac_cv_sizeof_void_p+:} false; then :
15457 $as_echo_n "(cached) " >&6
15458 else
15459 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15460
15461 else
15462 if test "$ac_cv_type_void_p" = yes; then
15463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15465 as_fn_error 77 "cannot compute sizeof (void *)
15466 See \`config.log' for more details" "$LINENO" 5; }
15467 else
15468 ac_cv_sizeof_void_p=0
15469 fi
15470 fi
15471
15472 fi
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15474 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15475
15476
15477
15478 cat >>confdefs.h <<_ACEOF
15479 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15480 _ACEOF
15481
15482
15483 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
15484 enable_64_bit_bfd=yes
15485 fi
15486
15487 fi
15488
15489 if test "x$enable_64_bit_bfd" = "xyes"; then
15490 ENABLE_BFD_64_BIT_TRUE=
15491 ENABLE_BFD_64_BIT_FALSE='#'
15492 else
15493 ENABLE_BFD_64_BIT_TRUE='#'
15494 ENABLE_BFD_64_BIT_FALSE=
15495 fi
15496
15497
15498
15499
15500 # Check whether --with-sysroot was given.
15501 if test "${with_sysroot+set}" = set; then :
15502 withval=$with_sysroot;
15503 case ${with_sysroot} in
15504 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15505 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15506 esac
15507
15508 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15509 use_sysroot=yes
15510
15511 if test "x$prefix" = xNONE; then
15512 test_prefix=/usr/local
15513 else
15514 test_prefix=$prefix
15515 fi
15516 if test "x$exec_prefix" = xNONE; then
15517 test_exec_prefix=$test_prefix
15518 else
15519 test_exec_prefix=$exec_prefix
15520 fi
15521 case ${TARGET_SYSTEM_ROOT} in
15522 "${test_prefix}"|"${test_prefix}/"*|\
15523 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15524 '${prefix}'|'${prefix}/'*|\
15525 '${exec_prefix}'|'${exec_prefix}/'*)
15526 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15527 TARGET_SYSTEM_ROOT_DEFINE="$t"
15528 ;;
15529 esac
15530
15531 else
15532
15533 use_sysroot=no
15534 TARGET_SYSTEM_ROOT=
15535 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15536
15537 fi
15538
15539
15540
15541
15542
15543 # Check whether --enable-gold was given.
15544 if test "${enable_gold+set}" = set; then :
15545 enableval=$enable_gold; case "${enableval}" in
15546 default)
15547 install_as_default=no
15548 installed_linker=ld.bfd
15549 ;;
15550 yes|no)
15551 install_as_default=yes
15552 installed_linker=ld.bfd
15553 ;;
15554 *)
15555 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
15556 ;;
15557 esac
15558 else
15559 install_as_default=yes
15560 installed_linker=ld.bfd
15561 fi
15562
15563
15564
15565
15566 # Check whether --enable-got was given.
15567 if test "${enable_got+set}" = set; then :
15568 enableval=$enable_got; case "${enableval}" in
15569 target | single | negative | multigot) got_handling=$enableval ;;
15570 *) as_fn_error $? "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15571 esac
15572 else
15573 got_handling=target
15574 fi
15575
15576
15577 case "${got_handling}" in
15578 target)
15579
15580 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15581 ;;
15582 single)
15583
15584 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15585 ;;
15586 negative)
15587
15588 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15589 ;;
15590 multigot)
15591
15592 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15593 ;;
15594 *) as_fn_error $? "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15595 esac
15596
15597 # PR gas/19109
15598 # Decide the default method for compressing debug sections.
15599 ac_default_compressed_debug_sections=unset
15600 # Provide a configure time option to override our default.
15601 # Check whether --enable-compressed_debug_sections was given.
15602 if test "${enable_compressed_debug_sections+set}" = set; then :
15603 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
15604 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
15605 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
15606 esac
15607 fi
15608
15609 # Select default compression algorithm.
15610 ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_GABI_ZLIB
15611 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
15612 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
15613 enableval=$enable_default_compressed_debug_sections_algorithm; case "${enableval}" in
15614 zstd) ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_ZSTD ;;
15615 esac
15616 fi
15617
15618 # Decide setting DT_RUNPATH instead of DT_RPATH by default
15619 ac_default_new_dtags=unset
15620 # Provide a configure time option to override our default.
15621 # Check whether --enable-new_dtags was given.
15622 if test "${enable_new_dtags+set}" = set; then :
15623 enableval=$enable_new_dtags; case "${enableval}" in
15624 yes) ac_default_new_dtags=1 ;;
15625 no) ac_default_new_dtags=0 ;;
15626 esac
15627 fi
15628
15629 # Decide if -z relro should be enabled in ELF linker by default.
15630 ac_default_ld_z_relro=unset
15631 # Provide a configure time option to override our default.
15632 # Check whether --enable-relro was given.
15633 if test "${enable_relro+set}" = set; then :
15634 enableval=$enable_relro; case "${enableval}" in
15635 yes) ac_default_ld_z_relro=1 ;;
15636 no) ac_default_ld_z_relro=0 ;;
15637 esac
15638 fi
15639
15640 # Decide if DT_TEXTREL check should be enabled in ELF linker.
15641 ac_default_ld_textrel_check=unset
15642 # Check whether --enable-textrel-check was given.
15643 if test "${enable_textrel_check+set}" = set; then :
15644 enableval=$enable_textrel_check; case "${enableval}" in
15645 yes|no|warning|error) ac_default_ld_textrel_check=${enableval} ;;
15646 esac
15647 fi
15648
15649
15650 # Decide if -z separate-code should be enabled in ELF linker by default.
15651 ac_default_ld_z_separate_code=unset
15652 # Check whether --enable-separate-code was given.
15653 if test "${enable_separate_code+set}" = set; then :
15654 enableval=$enable_separate_code; case "${enableval}" in
15655 yes) ac_default_ld_z_separate_code=1 ;;
15656 no) ac_default_ld_z_separate_code=0 ;;
15657 esac
15658 fi
15659
15660
15661
15662 # By default warn when an executable stack is created due to object files
15663 # requesting such, not when the user specifies -z execstack.
15664 ac_default_ld_warn_execstack=2
15665 # Check whether --enable-warn-execstack was given.
15666 if test "${enable_warn_execstack+set}" = set; then :
15667 enableval=$enable_warn_execstack; case "${enableval}" in
15668 yes) ac_default_ld_warn_execstack=1 ;;
15669 no) ac_default_ld_warn_execstack=0 ;;
15670 esac
15671 fi
15672
15673
15674 ac_default_ld_error_execstack=0
15675 # Check whether --enable-error-execstack was given.
15676 if test "${enable_error_execstack+set}" = set; then :
15677 enableval=$enable_error_execstack; case "${enableval}" in
15678 yes) ac_default_ld_error_execstack=1 ;;
15679 no) ac_default_ld_error_execstack=0 ;;
15680 esac
15681 fi
15682
15683
15684 ac_default_ld_warn_rwx_segments=unset
15685 # Check whether --enable-warn-rwx-segments was given.
15686 if test "${enable_warn_rwx_segments+set}" = set; then :
15687 enableval=$enable_warn_rwx_segments; case "${enableval}" in
15688 yes) ac_default_ld_warn_rwx_segments=1 ;;
15689 no) ac_default_ld_warn_rwx_segments=0 ;;
15690 esac
15691 fi
15692
15693
15694 ac_default_ld_error_rwx_segments=0
15695 # Check whether --enable-error-rwx-segments was given.
15696 if test "${enable_error_rwx_segments+set}" = set; then :
15697 enableval=$enable_error_rwx_segments; case "${enableval}" in
15698 yes) ac_default_ld_error_rwx_segments=1 ;;
15699 no) ac_default_ld_error_rwx_segments=0 ;;
15700 esac
15701 fi
15702
15703
15704 ac_default_ld_default_execstack=unset
15705 # Check whether --enable-default-execstack was given.
15706 if test "${enable_default_execstack+set}" = set; then :
15707 enableval=$enable_default_execstack; case "${enableval}" in
15708 yes) ac_default_ld_default_execstack=1 ;;
15709 no) ac_default_ld_default_execstack=0 ;;
15710 esac
15711 fi
15712
15713
15714
15715 # Decide if --error-handling-script should be supported.
15716 ac_support_error_handling_script=unset
15717 # Check whether --enable-error-handling-script was given.
15718 if test "${enable_error_handling_script+set}" = set; then :
15719 enableval=$enable_error_handling_script; case "${enableval}" in
15720 yes) ac_support_error_handling_script=1 ;;
15721 no) ac_support_error_handling_script=0 ;;
15722 esac
15723 fi
15724
15725
15726 # Decide which "--hash-style" to use by default
15727 # Provide a configure time option to override our default.
15728 # Check whether --enable-default-hash-style was given.
15729 if test "${enable_default_hash_style+set}" = set; then :
15730 enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
15731 sysv | gnu | both) ;;
15732 *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
15733 esac
15734 else
15735 case "${target}" in
15736 # Enable gnu hash only on GNU targets, but not mips
15737 mips*-*-*) enable_default_hash_style=sysv ;;
15738 *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
15739 *) enable_default_hash_style=sysv ;;
15740 esac
15741 fi
15742
15743
15744 case "${enable_default_hash_style}" in
15745 sysv | both) ac_default_emit_sysv_hash=1 ;;
15746 *) ac_default_emit_sysv_hash=0 ;;
15747 esac
15748
15749 case "${enable_default_hash_style}" in
15750 gnu | both) ac_default_emit_gnu_hash=1 ;;
15751 *) ac_default_emit_gnu_hash=0 ;;
15752 esac
15753
15754 # Check whether --enable-initfini-array was given.
15755 if test "${enable_initfini_array+set}" = set; then :
15756 enableval=$enable_initfini_array; case "${enableval}" in
15757 yes|no) ;;
15758 *) as_fn_error $? "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
15759 esac
15760 else
15761 enable_initfini_array=yes
15762 fi
15763
15764
15765 if test $enable_initfini_array = yes; then
15766
15767 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
15768
15769 fi
15770
15771 # Check whether --enable-libctf was given.
15772 if test "${enable_libctf+set}" = set; then :
15773 enableval=$enable_libctf;
15774 case "$enableval" in
15775 yes|no) ;;
15776 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
15777 esac
15778
15779 else
15780 enable_libctf=yes
15781 fi
15782
15783
15784 if test "${enable_libctf}" = yes; then
15785
15786 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
15787
15788 fi
15789 if test "${enable_libctf}" = yes; then
15790 ENABLE_LIBCTF_TRUE=
15791 ENABLE_LIBCTF_FALSE='#'
15792 else
15793 ENABLE_LIBCTF_TRUE='#'
15794 ENABLE_LIBCTF_FALSE=
15795 fi
15796
15797
15798
15799 # Used to validate --package-metadata= input. Disabled by default.
15800 # Check whether --enable-jansson was given.
15801 if test "${enable_jansson+set}" = set; then :
15802 enableval=$enable_jansson; enable_jansson=$enableval
15803 else
15804 enable_jansson="no"
15805 fi
15806
15807
15808 if test "x$enable_jansson" != "xno"; then :
15809
15810 pkg_failed=no
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
15812 $as_echo_n "checking for jansson... " >&6; }
15813
15814 if test -n "$JANSSON_CFLAGS"; then
15815 pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
15816 elif test -n "$PKG_CONFIG"; then
15817 if test -n "$PKG_CONFIG" && \
15818 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15819 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15820 ac_status=$?
15821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15822 test $ac_status = 0; }; then
15823 pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson" 2>/dev/null`
15824 test "x$?" != "x0" && pkg_failed=yes
15825 else
15826 pkg_failed=yes
15827 fi
15828 else
15829 pkg_failed=untried
15830 fi
15831 if test -n "$JANSSON_LIBS"; then
15832 pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
15833 elif test -n "$PKG_CONFIG"; then
15834 if test -n "$PKG_CONFIG" && \
15835 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15836 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15837 ac_status=$?
15838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15839 test $ac_status = 0; }; then
15840 pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson" 2>/dev/null`
15841 test "x$?" != "x0" && pkg_failed=yes
15842 else
15843 pkg_failed=yes
15844 fi
15845 else
15846 pkg_failed=untried
15847 fi
15848
15849 if test $pkg_failed = no; then
15850 pkg_save_LDFLAGS="$LDFLAGS"
15851 LDFLAGS="$LDFLAGS $pkg_cv_JANSSON_LIBS"
15852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15853 /* end confdefs.h. */
15854
15855 int
15856 main ()
15857 {
15858
15859 ;
15860 return 0;
15861 }
15862 _ACEOF
15863 if ac_fn_c_try_link "$LINENO"; then :
15864
15865 else
15866 pkg_failed=yes
15867 fi
15868 rm -f core conftest.err conftest.$ac_objext \
15869 conftest$ac_exeext conftest.$ac_ext
15870 LDFLAGS=$pkg_save_LDFLAGS
15871 fi
15872
15873
15874
15875 if test $pkg_failed = yes; then
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15877 $as_echo "no" >&6; }
15878
15879 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15880 _pkg_short_errors_supported=yes
15881 else
15882 _pkg_short_errors_supported=no
15883 fi
15884 if test $_pkg_short_errors_supported = yes; then
15885 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1`
15886 else
15887 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1`
15888 fi
15889 # Put the nasty error message in config.log where it belongs
15890 echo "$JANSSON_PKG_ERRORS" >&5
15891
15892 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
15893 elif test $pkg_failed = untried; then
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15895 $as_echo "no" >&6; }
15896 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
15897 else
15898 JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
15899 JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15901 $as_echo "yes" >&6; }
15902
15903
15904 $as_echo "#define HAVE_JANSSON 1" >>confdefs.h
15905
15906
15907
15908
15909 fi
15910
15911 fi
15912
15913
15914 # Set the 'development' global.
15915 . $srcdir/../bfd/development.sh
15916
15917 # Set acp_cpp_for_build variable
15918 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
15919
15920 # Default set of GCC warnings to enable.
15921 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15922 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15923
15924 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15926 /* end confdefs.h. */
15927 __GNUC__
15928 _ACEOF
15929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15930 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
15931
15932 else
15933 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
15934 fi
15935 rm -f conftest*
15936
15937
15938 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15940 /* end confdefs.h. */
15941 __GNUC__
15942 _ACEOF
15943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15944 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
15945
15946 else
15947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15948 /* end confdefs.h. */
15949 __clang__
15950 _ACEOF
15951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15952 $EGREP "^__clang__$" >/dev/null 2>&1; then :
15953 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
15954 fi
15955 rm -f conftest*
15956
15957 fi
15958 rm -f conftest*
15959
15960
15961 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
15962 WARN_WRITE_STRINGS=""
15963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15964 /* end confdefs.h. */
15965 __GNUC__
15966 _ACEOF
15967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15968 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
15969
15970 else
15971 WARN_WRITE_STRINGS="-Wwrite-strings"
15972 fi
15973 rm -f conftest*
15974
15975
15976 # Verify CC_FOR_BUILD to be compatible with warning flags
15977
15978 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15980 /* end confdefs.h. */
15981 __GNUC__
15982 _ACEOF
15983 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
15984 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
15985
15986 else
15987 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
15988 fi
15989 rm -f conftest*
15990
15991
15992 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15994 /* end confdefs.h. */
15995 __GNUC__
15996 _ACEOF
15997 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
15998 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
15999
16000 else
16001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16002 /* end confdefs.h. */
16003 __clang__
16004 _ACEOF
16005 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
16006 $EGREP "^__clang__$" >/dev/null 2>&1; then :
16007 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
16008 fi
16009 rm -f conftest*
16010
16011 fi
16012 rm -f conftest*
16013
16014
16015 # Check whether --enable-werror was given.
16016 if test "${enable_werror+set}" = set; then :
16017 enableval=$enable_werror; case "${enableval}" in
16018 yes | y) ERROR_ON_WARNING="yes" ;;
16019 no | n) ERROR_ON_WARNING="no" ;;
16020 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16021 esac
16022 fi
16023
16024
16025 # Disable -Wformat by default when using gcc on mingw
16026 case "${host}" in
16027 *-*-mingw32*)
16028 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
16029 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
16030 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
16031 fi
16032 ;;
16033 *) ;;
16034 esac
16035
16036 # Enable -Werror by default when using gcc. Turn it off for releases.
16037 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
16038 ERROR_ON_WARNING=yes
16039 fi
16040
16041 NO_WERROR=
16042 if test "${ERROR_ON_WARNING}" = yes ; then
16043 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
16044 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
16045 NO_WERROR="-Wno-error"
16046 fi
16047
16048 if test "${GCC}" = yes ; then
16049 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
16050 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
16051 fi
16052
16053 # Check whether --enable-build-warnings was given.
16054 if test "${enable_build_warnings+set}" = set; then :
16055 enableval=$enable_build_warnings; case "${enableval}" in
16056 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
16057 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
16058 no) if test "${GCC}" = yes ; then
16059 WARN_CFLAGS="-w"
16060 WARN_CFLAGS_FOR_BUILD="-w"
16061 fi;;
16062 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16063 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
16064 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
16065 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16066 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
16067 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
16068 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
16069 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16070 esac
16071 fi
16072
16073
16074 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
16075 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
16076 fi
16077
16078
16079
16080
16081
16082
16083
16084
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
16086 $as_echo_n "checking for LC_MESSAGES... " >&6; }
16087 if ${am_cv_val_LC_MESSAGES+:} false; then :
16088 $as_echo_n "(cached) " >&6
16089 else
16090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16091 /* end confdefs.h. */
16092 #include <locale.h>
16093 int
16094 main ()
16095 {
16096 return LC_MESSAGES
16097 ;
16098 return 0;
16099 }
16100 _ACEOF
16101 if ac_fn_c_try_link "$LINENO"; then :
16102 am_cv_val_LC_MESSAGES=yes
16103 else
16104 am_cv_val_LC_MESSAGES=no
16105 fi
16106 rm -f core conftest.err conftest.$ac_objext \
16107 conftest$ac_exeext conftest.$ac_ext
16108 fi
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
16110 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
16111 if test $am_cv_val_LC_MESSAGES = yes; then
16112
16113 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
16114
16115 fi
16116
16117
16118 ac_config_headers="$ac_config_headers config.h:config.in"
16119
16120
16121 # PR 14072
16122
16123
16124 if test -z "$target" ; then
16125 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
16126 fi
16127 if test -z "$host" ; then
16128 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
16129 fi
16130
16131 # host-specific stuff:
16132
16133 ALL_LINGUAS="bg da de es fi fr ga id it ja pt_BR ru sr sv tr uk vi zh_CN zh_TW"
16134 # If we haven't got the data from the intl directory,
16135 # assume NLS is disabled.
16136 USE_NLS=no
16137 LIBINTL=
16138 LIBINTL_DEP=
16139 INCINTL=
16140 XGETTEXT=
16141 GMSGFMT=
16142 POSUB=
16143
16144 if test -f ../intl/config.intl; then
16145 . ../intl/config.intl
16146 fi
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16148 $as_echo_n "checking whether NLS is requested... " >&6; }
16149 if test x"$USE_NLS" != xyes; then
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16151 $as_echo "no" >&6; }
16152 else
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16154 $as_echo "yes" >&6; }
16155
16156 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
16157
16158
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
16160 $as_echo_n "checking for catalogs to be installed... " >&6; }
16161 # Look for .po and .gmo files in the source directory.
16162 CATALOGS=
16163 XLINGUAS=
16164 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
16165 # If there aren't any .gmo files the shell will give us the
16166 # literal string "../path/to/srcdir/po/*.gmo" which has to be
16167 # weeded out.
16168 case "$cat" in *\**)
16169 continue;;
16170 esac
16171 # The quadruple backslash is collapsed to a double backslash
16172 # by the backticks, then collapsed again by the double quotes,
16173 # leaving us with one backslash in the sed expression (right
16174 # before the dot that mustn't act as a wildcard).
16175 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
16176 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
16177 # The user is allowed to set LINGUAS to a list of languages to
16178 # install catalogs for. If it's empty that means "all of them."
16179 if test "x$LINGUAS" = x; then
16180 CATALOGS="$CATALOGS $cat"
16181 XLINGUAS="$XLINGUAS $lang"
16182 else
16183 case "$LINGUAS" in *$lang*)
16184 CATALOGS="$CATALOGS $cat"
16185 XLINGUAS="$XLINGUAS $lang"
16186 ;;
16187 esac
16188 fi
16189 done
16190 LINGUAS="$XLINGUAS"
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
16192 $as_echo "$LINGUAS" >&6; }
16193
16194
16195 DATADIRNAME=share
16196
16197 INSTOBJEXT=.mo
16198
16199 GENCAT=gencat
16200
16201 CATOBJEXT=.gmo
16202
16203 fi
16204
16205 MKINSTALLDIRS=
16206 if test -n "$ac_aux_dir"; then
16207 case "$ac_aux_dir" in
16208 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16209 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16210 esac
16211 fi
16212 if test -z "$MKINSTALLDIRS"; then
16213 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16214 fi
16215
16216
16217
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16219 $as_echo_n "checking whether NLS is requested... " >&6; }
16220 # Check whether --enable-nls was given.
16221 if test "${enable_nls+set}" = set; then :
16222 enableval=$enable_nls; USE_NLS=$enableval
16223 else
16224 USE_NLS=yes
16225 fi
16226
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16228 $as_echo "$USE_NLS" >&6; }
16229
16230
16231
16232
16233
16234
16235 # Prepare PATH_SEPARATOR.
16236 # The user is always right.
16237 if test "${PATH_SEPARATOR+set}" != set; then
16238 echo "#! /bin/sh" >conf$$.sh
16239 echo "exit 0" >>conf$$.sh
16240 chmod +x conf$$.sh
16241 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16242 PATH_SEPARATOR=';'
16243 else
16244 PATH_SEPARATOR=:
16245 fi
16246 rm -f conf$$.sh
16247 fi
16248
16249 # Find out how to test for executable files. Don't use a zero-byte file,
16250 # as systems may use methods other than mode bits to determine executability.
16251 cat >conf$$.file <<_ASEOF
16252 #! /bin/sh
16253 exit 0
16254 _ASEOF
16255 chmod +x conf$$.file
16256 if test -x conf$$.file >/dev/null 2>&1; then
16257 ac_executable_p="test -x"
16258 else
16259 ac_executable_p="test -f"
16260 fi
16261 rm -f conf$$.file
16262
16263 # Extract the first word of "msgfmt", so it can be a program name with args.
16264 set dummy msgfmt; ac_word=$2
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16266 $as_echo_n "checking for $ac_word... " >&6; }
16267 if ${ac_cv_path_MSGFMT+:} false; then :
16268 $as_echo_n "(cached) " >&6
16269 else
16270 case "$MSGFMT" in
16271 [\\/]* | ?:[\\/]*)
16272 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16273 ;;
16274 *)
16275 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16276 for ac_dir in $PATH; do
16277 IFS="$ac_save_IFS"
16278 test -z "$ac_dir" && ac_dir=.
16279 for ac_exec_ext in '' $ac_executable_extensions; do
16280 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16281 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
16282 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16283 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16284 break 2
16285 fi
16286 fi
16287 done
16288 done
16289 IFS="$ac_save_IFS"
16290 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16291 ;;
16292 esac
16293 fi
16294 MSGFMT="$ac_cv_path_MSGFMT"
16295 if test "$MSGFMT" != ":"; then
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16297 $as_echo "$MSGFMT" >&6; }
16298 else
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16300 $as_echo "no" >&6; }
16301 fi
16302
16303 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16304 set dummy gmsgfmt; ac_word=$2
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16306 $as_echo_n "checking for $ac_word... " >&6; }
16307 if ${ac_cv_path_GMSGFMT+:} false; then :
16308 $as_echo_n "(cached) " >&6
16309 else
16310 case $GMSGFMT in
16311 [\\/]* | ?:[\\/]*)
16312 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16313 ;;
16314 *)
16315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16316 for as_dir in $PATH
16317 do
16318 IFS=$as_save_IFS
16319 test -z "$as_dir" && as_dir=.
16320 for ac_exec_ext in '' $ac_executable_extensions; do
16321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16322 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16324 break 2
16325 fi
16326 done
16327 done
16328 IFS=$as_save_IFS
16329
16330 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16331 ;;
16332 esac
16333 fi
16334 GMSGFMT=$ac_cv_path_GMSGFMT
16335 if test -n "$GMSGFMT"; then
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16337 $as_echo "$GMSGFMT" >&6; }
16338 else
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16340 $as_echo "no" >&6; }
16341 fi
16342
16343
16344
16345
16346 # Prepare PATH_SEPARATOR.
16347 # The user is always right.
16348 if test "${PATH_SEPARATOR+set}" != set; then
16349 echo "#! /bin/sh" >conf$$.sh
16350 echo "exit 0" >>conf$$.sh
16351 chmod +x conf$$.sh
16352 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16353 PATH_SEPARATOR=';'
16354 else
16355 PATH_SEPARATOR=:
16356 fi
16357 rm -f conf$$.sh
16358 fi
16359
16360 # Find out how to test for executable files. Don't use a zero-byte file,
16361 # as systems may use methods other than mode bits to determine executability.
16362 cat >conf$$.file <<_ASEOF
16363 #! /bin/sh
16364 exit 0
16365 _ASEOF
16366 chmod +x conf$$.file
16367 if test -x conf$$.file >/dev/null 2>&1; then
16368 ac_executable_p="test -x"
16369 else
16370 ac_executable_p="test -f"
16371 fi
16372 rm -f conf$$.file
16373
16374 # Extract the first word of "xgettext", so it can be a program name with args.
16375 set dummy xgettext; ac_word=$2
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16377 $as_echo_n "checking for $ac_word... " >&6; }
16378 if ${ac_cv_path_XGETTEXT+:} false; then :
16379 $as_echo_n "(cached) " >&6
16380 else
16381 case "$XGETTEXT" in
16382 [\\/]* | ?:[\\/]*)
16383 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16384 ;;
16385 *)
16386 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16387 for ac_dir in $PATH; do
16388 IFS="$ac_save_IFS"
16389 test -z "$ac_dir" && ac_dir=.
16390 for ac_exec_ext in '' $ac_executable_extensions; do
16391 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16392 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16393 (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
16394 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16395 break 2
16396 fi
16397 fi
16398 done
16399 done
16400 IFS="$ac_save_IFS"
16401 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16402 ;;
16403 esac
16404 fi
16405 XGETTEXT="$ac_cv_path_XGETTEXT"
16406 if test "$XGETTEXT" != ":"; then
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16408 $as_echo "$XGETTEXT" >&6; }
16409 else
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16411 $as_echo "no" >&6; }
16412 fi
16413
16414 rm -f messages.po
16415
16416
16417 # Prepare PATH_SEPARATOR.
16418 # The user is always right.
16419 if test "${PATH_SEPARATOR+set}" != set; then
16420 echo "#! /bin/sh" >conf$$.sh
16421 echo "exit 0" >>conf$$.sh
16422 chmod +x conf$$.sh
16423 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16424 PATH_SEPARATOR=';'
16425 else
16426 PATH_SEPARATOR=:
16427 fi
16428 rm -f conf$$.sh
16429 fi
16430
16431 # Find out how to test for executable files. Don't use a zero-byte file,
16432 # as systems may use methods other than mode bits to determine executability.
16433 cat >conf$$.file <<_ASEOF
16434 #! /bin/sh
16435 exit 0
16436 _ASEOF
16437 chmod +x conf$$.file
16438 if test -x conf$$.file >/dev/null 2>&1; then
16439 ac_executable_p="test -x"
16440 else
16441 ac_executable_p="test -f"
16442 fi
16443 rm -f conf$$.file
16444
16445 # Extract the first word of "msgmerge", so it can be a program name with args.
16446 set dummy msgmerge; ac_word=$2
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16448 $as_echo_n "checking for $ac_word... " >&6; }
16449 if ${ac_cv_path_MSGMERGE+:} false; then :
16450 $as_echo_n "(cached) " >&6
16451 else
16452 case "$MSGMERGE" in
16453 [\\/]* | ?:[\\/]*)
16454 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16455 ;;
16456 *)
16457 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16458 for ac_dir in $PATH; do
16459 IFS="$ac_save_IFS"
16460 test -z "$ac_dir" && ac_dir=.
16461 for ac_exec_ext in '' $ac_executable_extensions; do
16462 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16463 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16464 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16465 break 2
16466 fi
16467 fi
16468 done
16469 done
16470 IFS="$ac_save_IFS"
16471 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16472 ;;
16473 esac
16474 fi
16475 MSGMERGE="$ac_cv_path_MSGMERGE"
16476 if test "$MSGMERGE" != ":"; then
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16478 $as_echo "$MSGMERGE" >&6; }
16479 else
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16481 $as_echo "no" >&6; }
16482 fi
16483
16484
16485 if test "$GMSGFMT" != ":"; then
16486 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16487 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16488 : ;
16489 else
16490 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16492 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16493 GMSGFMT=":"
16494 fi
16495 fi
16496
16497 if test "$XGETTEXT" != ":"; then
16498 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16499 (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
16500 : ;
16501 else
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16503 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16504 XGETTEXT=":"
16505 fi
16506 rm -f messages.po
16507 fi
16508
16509 ac_config_commands="$ac_config_commands default-1"
16510
16511
16512
16513
16514
16515 for ac_prog in 'bison -y' byacc
16516 do
16517 # Extract the first word of "$ac_prog", so it can be a program name with args.
16518 set dummy $ac_prog; ac_word=$2
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16520 $as_echo_n "checking for $ac_word... " >&6; }
16521 if ${ac_cv_prog_YACC+:} false; then :
16522 $as_echo_n "(cached) " >&6
16523 else
16524 if test -n "$YACC"; then
16525 ac_cv_prog_YACC="$YACC" # Let the user override the test.
16526 else
16527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16528 for as_dir in $PATH
16529 do
16530 IFS=$as_save_IFS
16531 test -z "$as_dir" && as_dir=.
16532 for ac_exec_ext in '' $ac_executable_extensions; do
16533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16534 ac_cv_prog_YACC="$ac_prog"
16535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16536 break 2
16537 fi
16538 done
16539 done
16540 IFS=$as_save_IFS
16541
16542 fi
16543 fi
16544 YACC=$ac_cv_prog_YACC
16545 if test -n "$YACC"; then
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16547 $as_echo "$YACC" >&6; }
16548 else
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16550 $as_echo "no" >&6; }
16551 fi
16552
16553
16554 test -n "$YACC" && break
16555 done
16556 test -n "$YACC" || YACC="yacc"
16557
16558 for ac_prog in flex lex
16559 do
16560 # Extract the first word of "$ac_prog", so it can be a program name with args.
16561 set dummy $ac_prog; ac_word=$2
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16563 $as_echo_n "checking for $ac_word... " >&6; }
16564 if ${ac_cv_prog_LEX+:} false; then :
16565 $as_echo_n "(cached) " >&6
16566 else
16567 if test -n "$LEX"; then
16568 ac_cv_prog_LEX="$LEX" # Let the user override the test.
16569 else
16570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16571 for as_dir in $PATH
16572 do
16573 IFS=$as_save_IFS
16574 test -z "$as_dir" && as_dir=.
16575 for ac_exec_ext in '' $ac_executable_extensions; do
16576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16577 ac_cv_prog_LEX="$ac_prog"
16578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16579 break 2
16580 fi
16581 done
16582 done
16583 IFS=$as_save_IFS
16584
16585 fi
16586 fi
16587 LEX=$ac_cv_prog_LEX
16588 if test -n "$LEX"; then
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16590 $as_echo "$LEX" >&6; }
16591 else
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16593 $as_echo "no" >&6; }
16594 fi
16595
16596
16597 test -n "$LEX" && break
16598 done
16599 test -n "$LEX" || LEX=":"
16600
16601 case "$LEX" in
16602 :|*"missing "*) ;;
16603 *) cat >conftest.l <<_ACEOF
16604 %%
16605 a { ECHO; }
16606 b { REJECT; }
16607 c { yymore (); }
16608 d { yyless (1); }
16609 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
16610 yyless ((input () != 0)); }
16611 f { unput (yytext[0]); }
16612 . { BEGIN INITIAL; }
16613 %%
16614 #ifdef YYTEXT_POINTER
16615 extern char *yytext;
16616 #endif
16617 int
16618 main (void)
16619 {
16620 return ! yylex () + ! yywrap ();
16621 }
16622 _ACEOF
16623 { { ac_try="$LEX conftest.l"
16624 case "(($ac_try" in
16625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16626 *) ac_try_echo=$ac_try;;
16627 esac
16628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16629 $as_echo "$ac_try_echo"; } >&5
16630 (eval "$LEX conftest.l") 2>&5
16631 ac_status=$?
16632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16633 test $ac_status = 0; }
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16635 $as_echo_n "checking lex output file root... " >&6; }
16636 if ${ac_cv_prog_lex_root+:} false; then :
16637 $as_echo_n "(cached) " >&6
16638 else
16639
16640 if test -f lex.yy.c; then
16641 ac_cv_prog_lex_root=lex.yy
16642 elif test -f lexyy.c; then
16643 ac_cv_prog_lex_root=lexyy
16644 else
16645 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
16646 fi
16647 fi
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16649 $as_echo "$ac_cv_prog_lex_root" >&6; }
16650 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
16651
16652 if test -z "${LEXLIB+set}"; then
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16654 $as_echo_n "checking lex library... " >&6; }
16655 if ${ac_cv_lib_lex+:} false; then :
16656 $as_echo_n "(cached) " >&6
16657 else
16658
16659 ac_save_LIBS=$LIBS
16660 ac_cv_lib_lex='none needed'
16661 for ac_lib in '' -lfl -ll; do
16662 LIBS="$ac_lib $ac_save_LIBS"
16663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16664 /* end confdefs.h. */
16665 `cat $LEX_OUTPUT_ROOT.c`
16666 _ACEOF
16667 if ac_fn_c_try_link "$LINENO"; then :
16668 ac_cv_lib_lex=$ac_lib
16669 fi
16670 rm -f core conftest.err conftest.$ac_objext \
16671 conftest$ac_exeext conftest.$ac_ext
16672 test "$ac_cv_lib_lex" != 'none needed' && break
16673 done
16674 LIBS=$ac_save_LIBS
16675
16676 fi
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16678 $as_echo "$ac_cv_lib_lex" >&6; }
16679 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
16680 fi
16681
16682
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16684 $as_echo_n "checking whether yytext is a pointer... " >&6; }
16685 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
16686 $as_echo_n "(cached) " >&6
16687 else
16688 # POSIX says lex can declare yytext either as a pointer or an array; the
16689 # default is implementation-dependent. Figure out which it is, since
16690 # not all implementations provide the %pointer and %array declarations.
16691 ac_cv_prog_lex_yytext_pointer=no
16692 ac_save_LIBS=$LIBS
16693 LIBS="$LEXLIB $ac_save_LIBS"
16694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16695 /* end confdefs.h. */
16696
16697 #define YYTEXT_POINTER 1
16698 `cat $LEX_OUTPUT_ROOT.c`
16699 _ACEOF
16700 if ac_fn_c_try_link "$LINENO"; then :
16701 ac_cv_prog_lex_yytext_pointer=yes
16702 fi
16703 rm -f core conftest.err conftest.$ac_objext \
16704 conftest$ac_exeext conftest.$ac_ext
16705 LIBS=$ac_save_LIBS
16706
16707 fi
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16709 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
16710 if test $ac_cv_prog_lex_yytext_pointer = yes; then
16711
16712 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
16713
16714 fi
16715 rm -f conftest.l $LEX_OUTPUT_ROOT.c
16716 ;;
16717 esac
16718 if test "$LEX" = :; then
16719 LEX=${am_missing_run}flex
16720 fi
16721
16722
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16724 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16725 # Check whether --enable-maintainer-mode was given.
16726 if test "${enable_maintainer_mode+set}" = set; then :
16727 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16728 else
16729 USE_MAINTAINER_MODE=no
16730 fi
16731
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16733 $as_echo "$USE_MAINTAINER_MODE" >&6; }
16734 if test $USE_MAINTAINER_MODE = yes; then
16735 MAINTAINER_MODE_TRUE=
16736 MAINTAINER_MODE_FALSE='#'
16737 else
16738 MAINTAINER_MODE_TRUE='#'
16739 MAINTAINER_MODE_FALSE=
16740 fi
16741
16742 MAINT=$MAINTAINER_MODE_TRUE
16743
16744
16745 if false; then
16746 GENINSRC_NEVER_TRUE=
16747 GENINSRC_NEVER_FALSE='#'
16748 else
16749 GENINSRC_NEVER_TRUE='#'
16750 GENINSRC_NEVER_FALSE=
16751 fi
16752
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16754 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16755 if ${gcc_cv_prog_cmp_skip+:} false; then :
16756 $as_echo_n "(cached) " >&6
16757 else
16758 echo abfoo >t1
16759 echo cdfoo >t2
16760 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
16761 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16762 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16763 :
16764 else
16765 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16766 fi
16767 fi
16768 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16769 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16770 :
16771 else
16772 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16773 fi
16774 fi
16775 rm t1 t2
16776
16777 fi
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16779 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
16780 do_compare="$gcc_cv_prog_cmp_skip"
16781
16782
16783
16784 . ${srcdir}/configure.host
16785
16786
16787
16788
16789 # We use headers from include/ that check various HAVE_*_H macros, thus
16790 # should ensure they are set by configure. This is true even when C99
16791 # guarantees they are available.
16792 # sha1.h and md4.h test HAVE_LIMITS_H, HAVE_SYS_TYPES_H and HAVE_STDINT_H
16793 # plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
16794 # Besides those, we need to check anything used in ld/ not in C99.
16795 for ac_header in fcntl.h elf-hints.h limits.h inttypes.h stdint.h \
16796 sys/file.h sys/mman.h sys/param.h sys/stat.h sys/time.h \
16797 sys/types.h unistd.h
16798 do :
16799 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16800 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16801 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16802 cat >>confdefs.h <<_ACEOF
16803 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16804 _ACEOF
16805
16806 fi
16807
16808 done
16809
16810 for ac_func in close glob lseek mkstemp open realpath waitpid
16811 do :
16812 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16813 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16814 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16815 cat >>confdefs.h <<_ACEOF
16816 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16817 _ACEOF
16818
16819 fi
16820 done
16821
16822
16823
16824 case "${host}" in
16825 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
16826
16827 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
16828 ;;
16829 esac
16830
16831 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
16832 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
16833 ac_have_decl=1
16834 else
16835 ac_have_decl=0
16836 fi
16837
16838 cat >>confdefs.h <<_ACEOF
16839 #define HAVE_DECL_ASPRINTF $ac_have_decl
16840 _ACEOF
16841 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16842 if test "x$ac_cv_have_decl_environ" = xyes; then :
16843 ac_have_decl=1
16844 else
16845 ac_have_decl=0
16846 fi
16847
16848 cat >>confdefs.h <<_ACEOF
16849 #define HAVE_DECL_ENVIRON $ac_have_decl
16850 _ACEOF
16851 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
16852 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
16853 ac_have_decl=1
16854 else
16855 ac_have_decl=0
16856 fi
16857
16858 cat >>confdefs.h <<_ACEOF
16859 #define HAVE_DECL_STPCPY $ac_have_decl
16860 _ACEOF
16861
16862
16863
16864
16865
16866 for ac_header in $ac_header_list
16867 do :
16868 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16869 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16870 "
16871 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16872 cat >>confdefs.h <<_ACEOF
16873 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16874 _ACEOF
16875
16876 fi
16877
16878 done
16879
16880
16881
16882
16883
16884
16885
16886
16887 for ac_func in getpagesize
16888 do :
16889 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16890 if test "x$ac_cv_func_getpagesize" = xyes; then :
16891 cat >>confdefs.h <<_ACEOF
16892 #define HAVE_GETPAGESIZE 1
16893 _ACEOF
16894
16895 fi
16896 done
16897
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16899 $as_echo_n "checking for working mmap... " >&6; }
16900 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
16901 $as_echo_n "(cached) " >&6
16902 else
16903 if test "$cross_compiling" = yes; then :
16904 ac_cv_func_mmap_fixed_mapped=no
16905 else
16906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16907 /* end confdefs.h. */
16908 $ac_includes_default
16909 /* malloc might have been renamed as rpl_malloc. */
16910 #undef malloc
16911
16912 /* Thanks to Mike Haertel and Jim Avera for this test.
16913 Here is a matrix of mmap possibilities:
16914 mmap private not fixed
16915 mmap private fixed at somewhere currently unmapped
16916 mmap private fixed at somewhere already mapped
16917 mmap shared not fixed
16918 mmap shared fixed at somewhere currently unmapped
16919 mmap shared fixed at somewhere already mapped
16920 For private mappings, we should verify that changes cannot be read()
16921 back from the file, nor mmap's back from the file at a different
16922 address. (There have been systems where private was not correctly
16923 implemented like the infamous i386 svr4.0, and systems where the
16924 VM page cache was not coherent with the file system buffer cache
16925 like early versions of FreeBSD and possibly contemporary NetBSD.)
16926 For shared mappings, we should conversely verify that changes get
16927 propagated back to all the places they're supposed to be.
16928
16929 Grep wants private fixed already mapped.
16930 The main things grep needs to know about mmap are:
16931 * does it exist and is it safe to write into the mmap'd area
16932 * how to use it (BSD variants) */
16933
16934 #include <fcntl.h>
16935 #include <sys/mman.h>
16936
16937 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16938 char *malloc ();
16939 #endif
16940
16941 /* This mess was copied from the GNU getpagesize.h. */
16942 #ifndef HAVE_GETPAGESIZE
16943 # ifdef _SC_PAGESIZE
16944 # define getpagesize() sysconf(_SC_PAGESIZE)
16945 # else /* no _SC_PAGESIZE */
16946 # ifdef HAVE_SYS_PARAM_H
16947 # include <sys/param.h>
16948 # ifdef EXEC_PAGESIZE
16949 # define getpagesize() EXEC_PAGESIZE
16950 # else /* no EXEC_PAGESIZE */
16951 # ifdef NBPG
16952 # define getpagesize() NBPG * CLSIZE
16953 # ifndef CLSIZE
16954 # define CLSIZE 1
16955 # endif /* no CLSIZE */
16956 # else /* no NBPG */
16957 # ifdef NBPC
16958 # define getpagesize() NBPC
16959 # else /* no NBPC */
16960 # ifdef PAGESIZE
16961 # define getpagesize() PAGESIZE
16962 # endif /* PAGESIZE */
16963 # endif /* no NBPC */
16964 # endif /* no NBPG */
16965 # endif /* no EXEC_PAGESIZE */
16966 # else /* no HAVE_SYS_PARAM_H */
16967 # define getpagesize() 8192 /* punt totally */
16968 # endif /* no HAVE_SYS_PARAM_H */
16969 # endif /* no _SC_PAGESIZE */
16970
16971 #endif /* no HAVE_GETPAGESIZE */
16972
16973 int
16974 main ()
16975 {
16976 char *data, *data2, *data3;
16977 const char *cdata2;
16978 int i, pagesize;
16979 int fd, fd2;
16980
16981 pagesize = getpagesize ();
16982
16983 /* First, make a file with some known garbage in it. */
16984 data = (char *) malloc (pagesize);
16985 if (!data)
16986 return 1;
16987 for (i = 0; i < pagesize; ++i)
16988 *(data + i) = rand ();
16989 umask (0);
16990 fd = creat ("conftest.mmap", 0600);
16991 if (fd < 0)
16992 return 2;
16993 if (write (fd, data, pagesize) != pagesize)
16994 return 3;
16995 close (fd);
16996
16997 /* Next, check that the tail of a page is zero-filled. File must have
16998 non-zero length, otherwise we risk SIGBUS for entire page. */
16999 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
17000 if (fd2 < 0)
17001 return 4;
17002 cdata2 = "";
17003 if (write (fd2, cdata2, 1) != 1)
17004 return 5;
17005 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
17006 if (data2 == MAP_FAILED)
17007 return 6;
17008 for (i = 0; i < pagesize; ++i)
17009 if (*(data2 + i))
17010 return 7;
17011 close (fd2);
17012 if (munmap (data2, pagesize))
17013 return 8;
17014
17015 /* Next, try to mmap the file at a fixed address which already has
17016 something else allocated at it. If we can, also make sure that
17017 we see the same garbage. */
17018 fd = open ("conftest.mmap", O_RDWR);
17019 if (fd < 0)
17020 return 9;
17021 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17022 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17023 return 10;
17024 for (i = 0; i < pagesize; ++i)
17025 if (*(data + i) != *(data2 + i))
17026 return 11;
17027
17028 /* Finally, make sure that changes to the mapped area do not
17029 percolate back to the file as seen by read(). (This is a bug on
17030 some variants of i386 svr4.0.) */
17031 for (i = 0; i < pagesize; ++i)
17032 *(data2 + i) = *(data2 + i) + 1;
17033 data3 = (char *) malloc (pagesize);
17034 if (!data3)
17035 return 12;
17036 if (read (fd, data3, pagesize) != pagesize)
17037 return 13;
17038 for (i = 0; i < pagesize; ++i)
17039 if (*(data + i) != *(data3 + i))
17040 return 14;
17041 close (fd);
17042 return 0;
17043 }
17044 _ACEOF
17045 if ac_fn_c_try_run "$LINENO"; then :
17046 ac_cv_func_mmap_fixed_mapped=yes
17047 else
17048 ac_cv_func_mmap_fixed_mapped=no
17049 fi
17050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17051 conftest.$ac_objext conftest.beam conftest.$ac_ext
17052 fi
17053
17054 fi
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
17056 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
17057 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17058
17059 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
17060
17061 fi
17062 rm -f conftest.mmap conftest.txt
17063
17064
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17066 $as_echo_n "checking for library containing dlopen... " >&6; }
17067 if ${ac_cv_search_dlopen+:} false; then :
17068 $as_echo_n "(cached) " >&6
17069 else
17070 ac_func_search_save_LIBS=$LIBS
17071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17072 /* end confdefs.h. */
17073
17074 /* Override any GCC internal prototype to avoid an error.
17075 Use char because int might match the return type of a GCC
17076 builtin and then its argument prototype would still apply. */
17077 #ifdef __cplusplus
17078 extern "C"
17079 #endif
17080 char dlopen ();
17081 int
17082 main ()
17083 {
17084 return dlopen ();
17085 ;
17086 return 0;
17087 }
17088 _ACEOF
17089 for ac_lib in '' dl; do
17090 if test -z "$ac_lib"; then
17091 ac_res="none required"
17092 else
17093 ac_res=-l$ac_lib
17094 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17095 fi
17096 if ac_fn_c_try_link "$LINENO"; then :
17097 ac_cv_search_dlopen=$ac_res
17098 fi
17099 rm -f core conftest.err conftest.$ac_objext \
17100 conftest$ac_exeext
17101 if ${ac_cv_search_dlopen+:} false; then :
17102 break
17103 fi
17104 done
17105 if ${ac_cv_search_dlopen+:} false; then :
17106
17107 else
17108 ac_cv_search_dlopen=no
17109 fi
17110 rm conftest.$ac_ext
17111 LIBS=$ac_func_search_save_LIBS
17112 fi
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17114 $as_echo "$ac_cv_search_dlopen" >&6; }
17115 ac_res=$ac_cv_search_dlopen
17116 if test "$ac_res" != no; then :
17117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17118
17119 fi
17120
17121
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
17123 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
17124 if ${ld_cv_decl_getopt_unistd_h+:} false; then :
17125 $as_echo_n "(cached) " >&6
17126 else
17127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17128 /* end confdefs.h. */
17129 #include <unistd.h>
17130 int
17131 main ()
17132 {
17133 extern int getopt (int, char *const*, const char *);
17134 ;
17135 return 0;
17136 }
17137 _ACEOF
17138 if ac_fn_c_try_compile "$LINENO"; then :
17139 ld_cv_decl_getopt_unistd_h=yes
17140 else
17141 ld_cv_decl_getopt_unistd_h=no
17142 fi
17143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17144 fi
17145
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
17147 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
17148 if test $ld_cv_decl_getopt_unistd_h = yes; then
17149
17150 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
17151
17152 fi
17153
17154 # Link in zlib/zstd if we can. This allows us to read and write
17155 # compressed debug sections.
17156
17157 # Use the system's zlib library.
17158 zlibdir="-L\$(top_builddir)/../zlib"
17159 zlibinc="-I\$(top_srcdir)/../zlib"
17160
17161 # Check whether --with-system-zlib was given.
17162 if test "${with_system_zlib+set}" = set; then :
17163 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
17164 zlibdir=
17165 zlibinc=
17166 fi
17167
17168 fi
17169
17170
17171
17172
17173
17174
17175 # Check whether --with-zstd was given.
17176 if test "${with_zstd+set}" = set; then :
17177 withval=$with_zstd;
17178 else
17179 with_zstd=auto
17180 fi
17181
17182
17183 if test "$with_zstd" != no; then :
17184
17185 pkg_failed=no
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
17187 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
17188
17189 if test -n "$ZSTD_CFLAGS"; then
17190 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
17191 elif test -n "$PKG_CONFIG"; then
17192 if test -n "$PKG_CONFIG" && \
17193 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
17194 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
17195 ac_status=$?
17196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17197 test $ac_status = 0; }; then
17198 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
17199 test "x$?" != "x0" && pkg_failed=yes
17200 else
17201 pkg_failed=yes
17202 fi
17203 else
17204 pkg_failed=untried
17205 fi
17206 if test -n "$ZSTD_LIBS"; then
17207 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
17208 elif test -n "$PKG_CONFIG"; then
17209 if test -n "$PKG_CONFIG" && \
17210 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
17211 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
17212 ac_status=$?
17213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17214 test $ac_status = 0; }; then
17215 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
17216 test "x$?" != "x0" && pkg_failed=yes
17217 else
17218 pkg_failed=yes
17219 fi
17220 else
17221 pkg_failed=untried
17222 fi
17223
17224 if test $pkg_failed = no; then
17225 pkg_save_LDFLAGS="$LDFLAGS"
17226 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
17227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17228 /* end confdefs.h. */
17229
17230 int
17231 main ()
17232 {
17233
17234 ;
17235 return 0;
17236 }
17237 _ACEOF
17238 if ac_fn_c_try_link "$LINENO"; then :
17239
17240 else
17241 pkg_failed=yes
17242 fi
17243 rm -f core conftest.err conftest.$ac_objext \
17244 conftest$ac_exeext conftest.$ac_ext
17245 LDFLAGS=$pkg_save_LDFLAGS
17246 fi
17247
17248
17249
17250 if test $pkg_failed = yes; then
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17252 $as_echo "no" >&6; }
17253
17254 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17255 _pkg_short_errors_supported=yes
17256 else
17257 _pkg_short_errors_supported=no
17258 fi
17259 if test $_pkg_short_errors_supported = yes; then
17260 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
17261 else
17262 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
17263 fi
17264 # Put the nasty error message in config.log where it belongs
17265 echo "$ZSTD_PKG_ERRORS" >&5
17266
17267
17268 if test "$with_zstd" = yes; then
17269 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
17270 fi
17271
17272 elif test $pkg_failed = untried; then
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17274 $as_echo "no" >&6; }
17275
17276 if test "$with_zstd" = yes; then
17277 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
17278 fi
17279
17280 else
17281 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
17282 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17284 $as_echo "yes" >&6; }
17285
17286
17287 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
17288
17289
17290 fi
17291
17292 fi
17293
17294
17295 # target-specific stuff:
17296
17297 all_targets=
17298 EMUL=
17299 all_emuls=
17300 all_emul_extras=
17301 all_libpath=
17302 TDIRS=
17303
17304 elf_list_options=false
17305 elf_shlib_list_options=false
17306 elf_plt_unwind_list_options=false
17307 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
17308 do
17309 if test "$targ_alias" = "all"; then
17310 all_targets=true
17311 elf_list_options=true
17312 elf_shlib_list_options=true
17313 elf_plt_unwind_list_options=true
17314 else
17315 # Canonicalize the secondary target names.
17316 result=`$ac_config_sub $targ_alias 2>/dev/null`
17317 if test -n "$result"; then
17318 targ=$result
17319 else
17320 targ=$targ_alias
17321 fi
17322
17323 . ${srcdir}/configure.tgt
17324
17325 if test "$targ" = "$target"; then
17326 EMUL=$targ_emul
17327 fi
17328
17329 if test x${enable_64_bit_bfd} = xno; then
17330 . ${srcdir}/../bfd/config.bfd
17331 fi
17332
17333 if test x${enable_64_bit_bfd} = xyes; then
17334 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
17335 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
17336 fi
17337
17338 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
17339 case " $all_emuls " in
17340 *" e${i}.o "*) ;;
17341 *)
17342 all_emuls="$all_emuls e${i}.o"
17343 eval result=\$tdir_$i
17344 test -z "$result" && result=$targ_alias
17345 TDIRS="$TDIRS
17346 tdir_$i=$result"
17347 case "${i}" in
17348 *elf*)
17349 elf_list_options=true
17350 ;;
17351 *)
17352 if $GREP "TEMPLATE_NAME=elf" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
17353 elf_list_options=true
17354 fi
17355 ;;
17356 esac
17357 if test "$elf_list_options" = "true"; then
17358 source_sh()
17359 {
17360 . $1
17361 }
17362 source_sh ${srcdir}/emulparams/${i}.sh
17363 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
17364 elf_shlib_list_options=true
17365 fi
17366 if test x${PLT_UNWIND} = xyes; then
17367 elf_plt_unwind_list_options=true
17368 fi
17369 fi
17370 ;;
17371 esac
17372 done
17373
17374 for i in $targ_emul $targ_extra_libpath; do
17375 case " $all_libpath " in
17376 *" ${i} "*) ;;
17377 *)
17378 if test -z "$all_libpath"; then
17379 all_libpath=${i}
17380 else
17381 all_libpath="$all_libpath ${i}"
17382 fi
17383 ;;
17384 esac
17385 done
17386
17387 for i in $targ_extra_ofiles; do
17388 case " $all_emul_extras " in
17389 *" ${i} "*) ;;
17390 *)
17391 all_emul_extras="$all_emul_extras ${i}"
17392 ;;
17393 esac
17394 done
17395
17396 fi
17397 done
17398
17399 if test x$ac_default_compressed_debug_sections = xyes ; then
17400
17401 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
17402
17403 fi
17404
17405
17406 cat >>confdefs.h <<_ACEOF
17407 #define DEFAULT_COMPRESSED_DEBUG_ALGORITHM $ac_default_compressed_debug_sections_algorithm
17408 _ACEOF
17409
17410
17411 if test "${ac_default_new_dtags}" = unset; then
17412 ac_default_new_dtags=0
17413 fi
17414
17415 cat >>confdefs.h <<_ACEOF
17416 #define DEFAULT_NEW_DTAGS $ac_default_new_dtags
17417 _ACEOF
17418
17419
17420 if test "${ac_default_ld_z_relro}" = unset; then
17421 ac_default_ld_z_relro=0
17422 fi
17423
17424 cat >>confdefs.h <<_ACEOF
17425 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
17426 _ACEOF
17427
17428
17429 ac_default_ld_textrel_check_warning=0
17430 case "${ac_default_ld_textrel_check}" in
17431 unset|no)
17432 ac_default_ld_textrel_check=textrel_check_none
17433 ;;
17434 yes|warning)
17435 ac_default_ld_textrel_check=textrel_check_warning
17436 ac_default_ld_textrel_check_warning=1
17437 ;;
17438 error)
17439 ac_default_ld_textrel_check=textrel_check_error
17440 ;;
17441 esac
17442
17443 cat >>confdefs.h <<_ACEOF
17444 #define DEFAULT_LD_TEXTREL_CHECK $ac_default_ld_textrel_check
17445 _ACEOF
17446
17447
17448 cat >>confdefs.h <<_ACEOF
17449 #define DEFAULT_LD_TEXTREL_CHECK_WARNING $ac_default_ld_textrel_check_warning
17450 _ACEOF
17451
17452
17453 if test "${ac_default_ld_z_separate_code}" = unset; then
17454 ac_default_ld_z_separate_code=0
17455 fi
17456
17457 cat >>confdefs.h <<_ACEOF
17458 #define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
17459 _ACEOF
17460
17461
17462
17463
17464 cat >>confdefs.h <<_ACEOF
17465 #define DEFAULT_LD_WARN_EXECSTACK $ac_default_ld_warn_execstack
17466 _ACEOF
17467
17468
17469
17470 cat >>confdefs.h <<_ACEOF
17471 #define DEFAULT_LD_ERROR_EXECSTACK $ac_default_ld_error_execstack
17472 _ACEOF
17473
17474
17475 if test "${ac_default_ld_warn_rwx_segments}" = unset; then
17476 ac_default_ld_warn_rwx_segments=1
17477 fi
17478
17479 cat >>confdefs.h <<_ACEOF
17480 #define DEFAULT_LD_WARN_RWX_SEGMENTS $ac_default_ld_warn_rwx_segments
17481 _ACEOF
17482
17483
17484
17485 cat >>confdefs.h <<_ACEOF
17486 #define DEFAULT_LD_ERROR_RWX_SEGMENTS $ac_default_ld_error_rwx_segments
17487 _ACEOF
17488
17489
17490 if test "${ac_default_ld_default_execstack}" = unset; then
17491 ac_default_ld_default_execstack=1
17492 fi
17493
17494 cat >>confdefs.h <<_ACEOF
17495 #define DEFAULT_LD_EXECSTACK $ac_default_ld_default_execstack
17496 _ACEOF
17497
17498
17499
17500 if test "${ac_support_error_handling_script}" = unset; then
17501 ac_support_error_handling_script=1
17502 fi
17503
17504 cat >>confdefs.h <<_ACEOF
17505 #define SUPPORT_ERROR_HANDLING_SCRIPT $ac_support_error_handling_script
17506 _ACEOF
17507
17508
17509
17510 cat >>confdefs.h <<_ACEOF
17511 #define DEFAULT_EMIT_SYSV_HASH $ac_default_emit_sysv_hash
17512 _ACEOF
17513
17514
17515
17516 cat >>confdefs.h <<_ACEOF
17517 #define DEFAULT_EMIT_GNU_HASH $ac_default_emit_gnu_hash
17518 _ACEOF
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529 if test x${all_targets} = xtrue; then
17530 if test x${enable_64_bit_bfd} = xyes; then
17531 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
17532 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
17533 else
17534 EMULATION_OFILES='$(ALL_EMULATIONS)'
17535 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
17536 fi
17537 else
17538 EMULATION_OFILES=$all_emuls
17539 EMUL_EXTRA_OFILES=$all_emul_extras
17540 fi
17541
17542
17543
17544
17545 EMULATION_LIBPATH=$all_libpath
17546
17547
17548 if test x${enable_static} = xno; then
17549 TESTBFDLIB="-Wl,--rpath,../bfd/.libs ../bfd/.libs/libbfd.so"
17550 TESTCTFLIB="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
17551 TESTSFRAMELIB="-Wl,--rpath,../libsframe/.libs ../libsframe/.libs/libsframe.so"
17552 else
17553 TESTBFDLIB="../bfd/.libs/libbfd.a"
17554 TESTCTFLIB="../libctf/.libs/libctf.a"
17555 TESTSFRAMELIB="../libsframe/.libs/libsframe.a"
17556 fi
17557 if test "${enable_libctf}" = no; then
17558 TESTCTFLIB=
17559 fi
17560
17561
17562
17563
17564 target_vendor=${target_vendor=$host_vendor}
17565 case "$target_vendor" in
17566 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
17567 *) EXTRA_SHLIB_EXTENSION= ;;
17568 esac
17569
17570 case "$target_os" in
17571 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17572 esac
17573
17574 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17575
17576 cat >>confdefs.h <<_ACEOF
17577 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17578 _ACEOF
17579
17580 fi
17581
17582 ac_config_commands="$ac_config_commands default"
17583
17584
17585
17586
17587
17588
17589
17590 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
17591
17592 cat >confcache <<\_ACEOF
17593 # This file is a shell script that caches the results of configure
17594 # tests run on this system so they can be shared between configure
17595 # scripts and configure runs, see configure's option --config-cache.
17596 # It is not useful on other systems. If it contains results you don't
17597 # want to keep, you may remove or edit it.
17598 #
17599 # config.status only pays attention to the cache file if you give it
17600 # the --recheck option to rerun configure.
17601 #
17602 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17603 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17604 # following values.
17605
17606 _ACEOF
17607
17608 # The following way of writing the cache mishandles newlines in values,
17609 # but we know of no workaround that is simple, portable, and efficient.
17610 # So, we kill variables containing newlines.
17611 # Ultrix sh set writes to stderr and can't be redirected directly,
17612 # and sets the high bit in the cache file unless we assign to the vars.
17613 (
17614 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17615 eval ac_val=\$$ac_var
17616 case $ac_val in #(
17617 *${as_nl}*)
17618 case $ac_var in #(
17619 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17620 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17621 esac
17622 case $ac_var in #(
17623 _ | IFS | as_nl) ;; #(
17624 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17625 *) { eval $ac_var=; unset $ac_var;} ;;
17626 esac ;;
17627 esac
17628 done
17629
17630 (set) 2>&1 |
17631 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17632 *${as_nl}ac_space=\ *)
17633 # `set' does not quote correctly, so add quotes: double-quote
17634 # substitution turns \\\\ into \\, and sed turns \\ into \.
17635 sed -n \
17636 "s/'/'\\\\''/g;
17637 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17638 ;; #(
17639 *)
17640 # `set' quotes correctly as required by POSIX, so do not add quotes.
17641 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17642 ;;
17643 esac |
17644 sort
17645 ) |
17646 sed '
17647 /^ac_cv_env_/b end
17648 t clear
17649 :clear
17650 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17651 t end
17652 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17653 :end' >>confcache
17654 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17655 if test -w "$cache_file"; then
17656 if test "x$cache_file" != "x/dev/null"; then
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17658 $as_echo "$as_me: updating cache $cache_file" >&6;}
17659 if test ! -f "$cache_file" || test -h "$cache_file"; then
17660 cat confcache >"$cache_file"
17661 else
17662 case $cache_file in #(
17663 */* | ?:*)
17664 mv -f confcache "$cache_file"$$ &&
17665 mv -f "$cache_file"$$ "$cache_file" ;; #(
17666 *)
17667 mv -f confcache "$cache_file" ;;
17668 esac
17669 fi
17670 fi
17671 else
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17673 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17674 fi
17675 fi
17676 rm -f confcache
17677
17678 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17679 # Let make expand exec_prefix.
17680 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17681
17682 DEFS=-DHAVE_CONFIG_H
17683
17684 ac_libobjs=
17685 ac_ltlibobjs=
17686 U=
17687 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17688 # 1. Remove the extension, and $U if already installed.
17689 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17690 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17691 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17692 # will be set to the directory where LIBOBJS objects are built.
17693 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17694 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17695 done
17696 LIBOBJS=$ac_libobjs
17697
17698 LTLIBOBJS=$ac_ltlibobjs
17699
17700
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17702 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17703 if test -n "$am_sleep_pid"; then
17704 # Hide warnings about reused PIDs.
17705 wait $am_sleep_pid 2>/dev/null
17706 fi
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17708 $as_echo "done" >&6; }
17709 if test -n "$EXEEXT"; then
17710 am__EXEEXT_TRUE=
17711 am__EXEEXT_FALSE='#'
17712 else
17713 am__EXEEXT_TRUE='#'
17714 am__EXEEXT_FALSE=
17715 fi
17716
17717 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17718 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17720 fi
17721 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17722 as_fn_error $? "conditional \"AMDEP\" was never defined.
17723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17724 fi
17725 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17726 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17728 fi
17729 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17730 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17732 fi
17733 if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
17734 as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined.
17735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17736 fi
17737 if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
17738 as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined.
17739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17740 fi
17741 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17742 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17744 fi
17745 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
17746 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
17747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17748 fi
17749
17750 : "${CONFIG_STATUS=./config.status}"
17751 ac_write_fail=0
17752 ac_clean_files_save=$ac_clean_files
17753 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17755 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17756 as_write_fail=0
17757 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17758 #! $SHELL
17759 # Generated by $as_me.
17760 # Run this file to recreate the current configuration.
17761 # Compiler output produced by configure, useful for debugging
17762 # configure, is in config.log if it exists.
17763
17764 debug=false
17765 ac_cs_recheck=false
17766 ac_cs_silent=false
17767
17768 SHELL=\${CONFIG_SHELL-$SHELL}
17769 export SHELL
17770 _ASEOF
17771 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17772 ## -------------------- ##
17773 ## M4sh Initialization. ##
17774 ## -------------------- ##
17775
17776 # Be more Bourne compatible
17777 DUALCASE=1; export DUALCASE # for MKS sh
17778 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17779 emulate sh
17780 NULLCMD=:
17781 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17782 # is contrary to our usage. Disable this feature.
17783 alias -g '${1+"$@"}'='"$@"'
17784 setopt NO_GLOB_SUBST
17785 else
17786 case `(set -o) 2>/dev/null` in #(
17787 *posix*) :
17788 set -o posix ;; #(
17789 *) :
17790 ;;
17791 esac
17792 fi
17793
17794
17795 as_nl='
17796 '
17797 export as_nl
17798 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17799 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17800 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17801 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17802 # Prefer a ksh shell builtin over an external printf program on Solaris,
17803 # but without wasting forks for bash or zsh.
17804 if test -z "$BASH_VERSION$ZSH_VERSION" \
17805 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17806 as_echo='print -r --'
17807 as_echo_n='print -rn --'
17808 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17809 as_echo='printf %s\n'
17810 as_echo_n='printf %s'
17811 else
17812 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17813 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17814 as_echo_n='/usr/ucb/echo -n'
17815 else
17816 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17817 as_echo_n_body='eval
17818 arg=$1;
17819 case $arg in #(
17820 *"$as_nl"*)
17821 expr "X$arg" : "X\\(.*\\)$as_nl";
17822 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17823 esac;
17824 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17825 '
17826 export as_echo_n_body
17827 as_echo_n='sh -c $as_echo_n_body as_echo'
17828 fi
17829 export as_echo_body
17830 as_echo='sh -c $as_echo_body as_echo'
17831 fi
17832
17833 # The user is always right.
17834 if test "${PATH_SEPARATOR+set}" != set; then
17835 PATH_SEPARATOR=:
17836 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17837 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17838 PATH_SEPARATOR=';'
17839 }
17840 fi
17841
17842
17843 # IFS
17844 # We need space, tab and new line, in precisely that order. Quoting is
17845 # there to prevent editors from complaining about space-tab.
17846 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17847 # splitting by setting IFS to empty value.)
17848 IFS=" "" $as_nl"
17849
17850 # Find who we are. Look in the path if we contain no directory separator.
17851 as_myself=
17852 case $0 in #((
17853 *[\\/]* ) as_myself=$0 ;;
17854 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17855 for as_dir in $PATH
17856 do
17857 IFS=$as_save_IFS
17858 test -z "$as_dir" && as_dir=.
17859 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17860 done
17861 IFS=$as_save_IFS
17862
17863 ;;
17864 esac
17865 # We did not find ourselves, most probably we were run as `sh COMMAND'
17866 # in which case we are not to be found in the path.
17867 if test "x$as_myself" = x; then
17868 as_myself=$0
17869 fi
17870 if test ! -f "$as_myself"; then
17871 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17872 exit 1
17873 fi
17874
17875 # Unset variables that we do not need and which cause bugs (e.g. in
17876 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17877 # suppresses any "Segmentation fault" message there. '((' could
17878 # trigger a bug in pdksh 5.2.14.
17879 for as_var in BASH_ENV ENV MAIL MAILPATH
17880 do eval test x\${$as_var+set} = xset \
17881 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17882 done
17883 PS1='$ '
17884 PS2='> '
17885 PS4='+ '
17886
17887 # NLS nuisances.
17888 LC_ALL=C
17889 export LC_ALL
17890 LANGUAGE=C
17891 export LANGUAGE
17892
17893 # CDPATH.
17894 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17895
17896
17897 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17898 # ----------------------------------------
17899 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17900 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17901 # script with STATUS, using 1 if that was 0.
17902 as_fn_error ()
17903 {
17904 as_status=$1; test $as_status -eq 0 && as_status=1
17905 if test "$4"; then
17906 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17907 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17908 fi
17909 $as_echo "$as_me: error: $2" >&2
17910 as_fn_exit $as_status
17911 } # as_fn_error
17912
17913
17914 # as_fn_set_status STATUS
17915 # -----------------------
17916 # Set $? to STATUS, without forking.
17917 as_fn_set_status ()
17918 {
17919 return $1
17920 } # as_fn_set_status
17921
17922 # as_fn_exit STATUS
17923 # -----------------
17924 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17925 as_fn_exit ()
17926 {
17927 set +e
17928 as_fn_set_status $1
17929 exit $1
17930 } # as_fn_exit
17931
17932 # as_fn_unset VAR
17933 # ---------------
17934 # Portably unset VAR.
17935 as_fn_unset ()
17936 {
17937 { eval $1=; unset $1;}
17938 }
17939 as_unset=as_fn_unset
17940 # as_fn_append VAR VALUE
17941 # ----------------------
17942 # Append the text in VALUE to the end of the definition contained in VAR. Take
17943 # advantage of any shell optimizations that allow amortized linear growth over
17944 # repeated appends, instead of the typical quadratic growth present in naive
17945 # implementations.
17946 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17947 eval 'as_fn_append ()
17948 {
17949 eval $1+=\$2
17950 }'
17951 else
17952 as_fn_append ()
17953 {
17954 eval $1=\$$1\$2
17955 }
17956 fi # as_fn_append
17957
17958 # as_fn_arith ARG...
17959 # ------------------
17960 # Perform arithmetic evaluation on the ARGs, and store the result in the
17961 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17962 # must be portable across $(()) and expr.
17963 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17964 eval 'as_fn_arith ()
17965 {
17966 as_val=$(( $* ))
17967 }'
17968 else
17969 as_fn_arith ()
17970 {
17971 as_val=`expr "$@" || test $? -eq 1`
17972 }
17973 fi # as_fn_arith
17974
17975
17976 if expr a : '\(a\)' >/dev/null 2>&1 &&
17977 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17978 as_expr=expr
17979 else
17980 as_expr=false
17981 fi
17982
17983 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17984 as_basename=basename
17985 else
17986 as_basename=false
17987 fi
17988
17989 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17990 as_dirname=dirname
17991 else
17992 as_dirname=false
17993 fi
17994
17995 as_me=`$as_basename -- "$0" ||
17996 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17997 X"$0" : 'X\(//\)$' \| \
17998 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17999 $as_echo X/"$0" |
18000 sed '/^.*\/\([^/][^/]*\)\/*$/{
18001 s//\1/
18002 q
18003 }
18004 /^X\/\(\/\/\)$/{
18005 s//\1/
18006 q
18007 }
18008 /^X\/\(\/\).*/{
18009 s//\1/
18010 q
18011 }
18012 s/.*/./; q'`
18013
18014 # Avoid depending upon Character Ranges.
18015 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18016 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18017 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18018 as_cr_digits='0123456789'
18019 as_cr_alnum=$as_cr_Letters$as_cr_digits
18020
18021 ECHO_C= ECHO_N= ECHO_T=
18022 case `echo -n x` in #(((((
18023 -n*)
18024 case `echo 'xy\c'` in
18025 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18026 xy) ECHO_C='\c';;
18027 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18028 ECHO_T=' ';;
18029 esac;;
18030 *)
18031 ECHO_N='-n';;
18032 esac
18033
18034 rm -f conf$$ conf$$.exe conf$$.file
18035 if test -d conf$$.dir; then
18036 rm -f conf$$.dir/conf$$.file
18037 else
18038 rm -f conf$$.dir
18039 mkdir conf$$.dir 2>/dev/null
18040 fi
18041 if (echo >conf$$.file) 2>/dev/null; then
18042 if ln -s conf$$.file conf$$ 2>/dev/null; then
18043 as_ln_s='ln -s'
18044 # ... but there are two gotchas:
18045 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18046 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18047 # In both cases, we have to default to `cp -pR'.
18048 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18049 as_ln_s='cp -pR'
18050 elif ln conf$$.file conf$$ 2>/dev/null; then
18051 as_ln_s=ln
18052 else
18053 as_ln_s='cp -pR'
18054 fi
18055 else
18056 as_ln_s='cp -pR'
18057 fi
18058 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18059 rmdir conf$$.dir 2>/dev/null
18060
18061
18062 # as_fn_mkdir_p
18063 # -------------
18064 # Create "$as_dir" as a directory, including parents if necessary.
18065 as_fn_mkdir_p ()
18066 {
18067
18068 case $as_dir in #(
18069 -*) as_dir=./$as_dir;;
18070 esac
18071 test -d "$as_dir" || eval $as_mkdir_p || {
18072 as_dirs=
18073 while :; do
18074 case $as_dir in #(
18075 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18076 *) as_qdir=$as_dir;;
18077 esac
18078 as_dirs="'$as_qdir' $as_dirs"
18079 as_dir=`$as_dirname -- "$as_dir" ||
18080 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18081 X"$as_dir" : 'X\(//\)[^/]' \| \
18082 X"$as_dir" : 'X\(//\)$' \| \
18083 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18084 $as_echo X"$as_dir" |
18085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18086 s//\1/
18087 q
18088 }
18089 /^X\(\/\/\)[^/].*/{
18090 s//\1/
18091 q
18092 }
18093 /^X\(\/\/\)$/{
18094 s//\1/
18095 q
18096 }
18097 /^X\(\/\).*/{
18098 s//\1/
18099 q
18100 }
18101 s/.*/./; q'`
18102 test -d "$as_dir" && break
18103 done
18104 test -z "$as_dirs" || eval "mkdir $as_dirs"
18105 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18106
18107
18108 } # as_fn_mkdir_p
18109 if mkdir -p . 2>/dev/null; then
18110 as_mkdir_p='mkdir -p "$as_dir"'
18111 else
18112 test -d ./-p && rmdir ./-p
18113 as_mkdir_p=false
18114 fi
18115
18116
18117 # as_fn_executable_p FILE
18118 # -----------------------
18119 # Test if FILE is an executable regular file.
18120 as_fn_executable_p ()
18121 {
18122 test -f "$1" && test -x "$1"
18123 } # as_fn_executable_p
18124 as_test_x='test -x'
18125 as_executable_p=as_fn_executable_p
18126
18127 # Sed expression to map a string onto a valid CPP name.
18128 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18129
18130 # Sed expression to map a string onto a valid variable name.
18131 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18132
18133
18134 exec 6>&1
18135 ## ----------------------------------- ##
18136 ## Main body of $CONFIG_STATUS script. ##
18137 ## ----------------------------------- ##
18138 _ASEOF
18139 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18140
18141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18142 # Save the log message, to keep $0 and so on meaningful, and to
18143 # report actual input values of CONFIG_FILES etc. instead of their
18144 # values after options handling.
18145 ac_log="
18146 This file was extended by ld $as_me 2.41.50, which was
18147 generated by GNU Autoconf 2.69. Invocation command line was
18148
18149 CONFIG_FILES = $CONFIG_FILES
18150 CONFIG_HEADERS = $CONFIG_HEADERS
18151 CONFIG_LINKS = $CONFIG_LINKS
18152 CONFIG_COMMANDS = $CONFIG_COMMANDS
18153 $ $0 $@
18154
18155 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18156 "
18157
18158 _ACEOF
18159
18160 case $ac_config_files in *"
18161 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18162 esac
18163
18164 case $ac_config_headers in *"
18165 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18166 esac
18167
18168
18169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18170 # Files that config.status was made for.
18171 config_files="$ac_config_files"
18172 config_headers="$ac_config_headers"
18173 config_commands="$ac_config_commands"
18174
18175 _ACEOF
18176
18177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18178 ac_cs_usage="\
18179 \`$as_me' instantiates files and other configuration actions
18180 from templates according to the current configuration. Unless the files
18181 and actions are specified as TAGs, all are instantiated by default.
18182
18183 Usage: $0 [OPTION]... [TAG]...
18184
18185 -h, --help print this help, then exit
18186 -V, --version print version number and configuration settings, then exit
18187 --config print configuration, then exit
18188 -q, --quiet, --silent
18189 do not print progress messages
18190 -d, --debug don't remove temporary files
18191 --recheck update $as_me by reconfiguring in the same conditions
18192 --file=FILE[:TEMPLATE]
18193 instantiate the configuration file FILE
18194 --header=FILE[:TEMPLATE]
18195 instantiate the configuration header FILE
18196
18197 Configuration files:
18198 $config_files
18199
18200 Configuration headers:
18201 $config_headers
18202
18203 Configuration commands:
18204 $config_commands
18205
18206 Report bugs to the package provider."
18207
18208 _ACEOF
18209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18210 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18211 ac_cs_version="\\
18212 ld config.status 2.41.50
18213 configured by $0, generated by GNU Autoconf 2.69,
18214 with options \\"\$ac_cs_config\\"
18215
18216 Copyright (C) 2012 Free Software Foundation, Inc.
18217 This config.status script is free software; the Free Software Foundation
18218 gives unlimited permission to copy, distribute and modify it."
18219
18220 ac_pwd='$ac_pwd'
18221 srcdir='$srcdir'
18222 INSTALL='$INSTALL'
18223 MKDIR_P='$MKDIR_P'
18224 AWK='$AWK'
18225 test -n "\$AWK" || AWK=awk
18226 _ACEOF
18227
18228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18229 # The default lists apply if the user does not specify any file.
18230 ac_need_defaults=:
18231 while test $# != 0
18232 do
18233 case $1 in
18234 --*=?*)
18235 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18236 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18237 ac_shift=:
18238 ;;
18239 --*=)
18240 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18241 ac_optarg=
18242 ac_shift=:
18243 ;;
18244 *)
18245 ac_option=$1
18246 ac_optarg=$2
18247 ac_shift=shift
18248 ;;
18249 esac
18250
18251 case $ac_option in
18252 # Handling of the options.
18253 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18254 ac_cs_recheck=: ;;
18255 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18256 $as_echo "$ac_cs_version"; exit ;;
18257 --config | --confi | --conf | --con | --co | --c )
18258 $as_echo "$ac_cs_config"; exit ;;
18259 --debug | --debu | --deb | --de | --d | -d )
18260 debug=: ;;
18261 --file | --fil | --fi | --f )
18262 $ac_shift
18263 case $ac_optarg in
18264 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18265 '') as_fn_error $? "missing file argument" ;;
18266 esac
18267 as_fn_append CONFIG_FILES " '$ac_optarg'"
18268 ac_need_defaults=false;;
18269 --header | --heade | --head | --hea )
18270 $ac_shift
18271 case $ac_optarg in
18272 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18273 esac
18274 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18275 ac_need_defaults=false;;
18276 --he | --h)
18277 # Conflict between --help and --header
18278 as_fn_error $? "ambiguous option: \`$1'
18279 Try \`$0 --help' for more information.";;
18280 --help | --hel | -h )
18281 $as_echo "$ac_cs_usage"; exit ;;
18282 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18283 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18284 ac_cs_silent=: ;;
18285
18286 # This is an error.
18287 -*) as_fn_error $? "unrecognized option: \`$1'
18288 Try \`$0 --help' for more information." ;;
18289
18290 *) as_fn_append ac_config_targets " $1"
18291 ac_need_defaults=false ;;
18292
18293 esac
18294 shift
18295 done
18296
18297 ac_configure_extra_args=
18298
18299 if $ac_cs_silent; then
18300 exec 6>/dev/null
18301 ac_configure_extra_args="$ac_configure_extra_args --silent"
18302 fi
18303
18304 _ACEOF
18305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18306 if \$ac_cs_recheck; then
18307 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18308 shift
18309 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18310 CONFIG_SHELL='$SHELL'
18311 export CONFIG_SHELL
18312 exec "\$@"
18313 fi
18314
18315 _ACEOF
18316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18317 exec 5>>config.log
18318 {
18319 echo
18320 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18321 ## Running $as_me. ##
18322 _ASBOX
18323 $as_echo "$ac_log"
18324 } >&5
18325
18326 _ACEOF
18327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18328 #
18329 # INIT-COMMANDS
18330 #
18331 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18332
18333
18334 # The HP-UX ksh and POSIX shell print the target directory to stdout
18335 # if CDPATH is set.
18336 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18337
18338 sed_quote_subst='$sed_quote_subst'
18339 double_quote_subst='$double_quote_subst'
18340 delay_variable_subst='$delay_variable_subst'
18341 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18342 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18343 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18344 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18345 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18346 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18347 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18348 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18349 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18350 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18351 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18352 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18353 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18354 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18355 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18356 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18357 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18358 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18359 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18360 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18361 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18362 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18363 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18364 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18365 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18366 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18367 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18368 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18369 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18370 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18371 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18372 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18373 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18374 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18375 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18376 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18377 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18378 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18379 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18380 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18381 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18382 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18383 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18384 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18385 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18386 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18387 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18388 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18389 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"`'
18390 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18391 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18392 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18393 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18394 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18395 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18396 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18397 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18398 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18399 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18400 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18401 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18402 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18403 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18404 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18405 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18406 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18407 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18408 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18409 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18410 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18411 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18412 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18413 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18414 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18415 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18416 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18417 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18418 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18419 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18420 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18421 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18422 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18423 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18424 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18425 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18426 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18427 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18428 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18429 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18430 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18431 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18432 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18433 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18434 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18435 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18436 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18437 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18438 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18439 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18440 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18441 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18442 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18443 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18444 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18445 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18446 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18447 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18448 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18449 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18450 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18451 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18452 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18453 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18454 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18455 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18456 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18457 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18458 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18459 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18460 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18461 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18462 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18463 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18464 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18465 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18466 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18467 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18468 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18469 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18470 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18471 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18472 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18473 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18474 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18475 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18476 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18477 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18478 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18479 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18480 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18481 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18482 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18483 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18484 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18485 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18486 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18487 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18488 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18489 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18490 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18491 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18492 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18493 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18494 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18495 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18496 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18497 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18498 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18499 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18500 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18501 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18502 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18503 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18504 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18505 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18506 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18507 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18508 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18509 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18510 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18511 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18512 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18513 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18514 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18515 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18516
18517 LTCC='$LTCC'
18518 LTCFLAGS='$LTCFLAGS'
18519 compiler='$compiler_DEFAULT'
18520
18521 # A function that is used when there is no print builtin or printf.
18522 func_fallback_echo ()
18523 {
18524 eval 'cat <<_LTECHO_EOF
18525 \$1
18526 _LTECHO_EOF'
18527 }
18528
18529 # Quote evaled strings.
18530 for var in SHELL \
18531 ECHO \
18532 SED \
18533 GREP \
18534 EGREP \
18535 FGREP \
18536 LD \
18537 NM \
18538 LN_S \
18539 lt_SP2NL \
18540 lt_NL2SP \
18541 reload_flag \
18542 OBJDUMP \
18543 deplibs_check_method \
18544 file_magic_cmd \
18545 AR \
18546 AR_FLAGS \
18547 STRIP \
18548 RANLIB \
18549 CC \
18550 CFLAGS \
18551 compiler \
18552 lt_cv_sys_global_symbol_pipe \
18553 lt_cv_sys_global_symbol_to_cdecl \
18554 lt_cv_sys_global_symbol_to_c_name_address \
18555 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18556 lt_prog_compiler_no_builtin_flag \
18557 lt_prog_compiler_wl \
18558 lt_prog_compiler_pic \
18559 lt_prog_compiler_static \
18560 lt_cv_prog_compiler_c_o \
18561 need_locks \
18562 DSYMUTIL \
18563 NMEDIT \
18564 LIPO \
18565 OTOOL \
18566 OTOOL64 \
18567 shrext_cmds \
18568 export_dynamic_flag_spec \
18569 whole_archive_flag_spec \
18570 compiler_needs_object \
18571 with_gnu_ld \
18572 allow_undefined_flag \
18573 no_undefined_flag \
18574 hardcode_libdir_flag_spec \
18575 hardcode_libdir_flag_spec_ld \
18576 hardcode_libdir_separator \
18577 fix_srcfile_path \
18578 exclude_expsyms \
18579 include_expsyms \
18580 file_list_spec \
18581 variables_saved_for_relink \
18582 libname_spec \
18583 library_names_spec \
18584 soname_spec \
18585 install_override_mode \
18586 finish_eval \
18587 old_striplib \
18588 striplib \
18589 compiler_lib_search_dirs \
18590 predep_objects \
18591 postdep_objects \
18592 predeps \
18593 postdeps \
18594 compiler_lib_search_path \
18595 LD_CXX \
18596 reload_flag_CXX \
18597 compiler_CXX \
18598 lt_prog_compiler_no_builtin_flag_CXX \
18599 lt_prog_compiler_wl_CXX \
18600 lt_prog_compiler_pic_CXX \
18601 lt_prog_compiler_static_CXX \
18602 lt_cv_prog_compiler_c_o_CXX \
18603 export_dynamic_flag_spec_CXX \
18604 whole_archive_flag_spec_CXX \
18605 compiler_needs_object_CXX \
18606 with_gnu_ld_CXX \
18607 allow_undefined_flag_CXX \
18608 no_undefined_flag_CXX \
18609 hardcode_libdir_flag_spec_CXX \
18610 hardcode_libdir_flag_spec_ld_CXX \
18611 hardcode_libdir_separator_CXX \
18612 fix_srcfile_path_CXX \
18613 exclude_expsyms_CXX \
18614 include_expsyms_CXX \
18615 file_list_spec_CXX \
18616 compiler_lib_search_dirs_CXX \
18617 predep_objects_CXX \
18618 postdep_objects_CXX \
18619 predeps_CXX \
18620 postdeps_CXX \
18621 compiler_lib_search_path_CXX; do
18622 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18623 *[\\\\\\\`\\"\\\$]*)
18624 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18625 ;;
18626 *)
18627 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18628 ;;
18629 esac
18630 done
18631
18632 # Double-quote double-evaled strings.
18633 for var in reload_cmds \
18634 old_postinstall_cmds \
18635 old_postuninstall_cmds \
18636 old_archive_cmds \
18637 extract_expsyms_cmds \
18638 old_archive_from_new_cmds \
18639 old_archive_from_expsyms_cmds \
18640 archive_cmds \
18641 archive_expsym_cmds \
18642 module_cmds \
18643 module_expsym_cmds \
18644 export_symbols_cmds \
18645 prelink_cmds \
18646 postinstall_cmds \
18647 postuninstall_cmds \
18648 finish_cmds \
18649 sys_lib_search_path_spec \
18650 sys_lib_dlsearch_path_spec \
18651 reload_cmds_CXX \
18652 old_archive_cmds_CXX \
18653 old_archive_from_new_cmds_CXX \
18654 old_archive_from_expsyms_cmds_CXX \
18655 archive_cmds_CXX \
18656 archive_expsym_cmds_CXX \
18657 module_cmds_CXX \
18658 module_expsym_cmds_CXX \
18659 export_symbols_cmds_CXX \
18660 prelink_cmds_CXX; do
18661 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18662 *[\\\\\\\`\\"\\\$]*)
18663 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18664 ;;
18665 *)
18666 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18667 ;;
18668 esac
18669 done
18670
18671 ac_aux_dir='$ac_aux_dir'
18672 xsi_shell='$xsi_shell'
18673 lt_shell_append='$lt_shell_append'
18674
18675 # See if we are running on zsh, and set the options which allow our
18676 # commands through without removal of \ escapes INIT.
18677 if test -n "\${ZSH_VERSION+set}" ; then
18678 setopt NO_GLOB_SUBST
18679 fi
18680
18681
18682 PACKAGE='$PACKAGE'
18683 VERSION='$VERSION'
18684 TIMESTAMP='$TIMESTAMP'
18685 RM='$RM'
18686 ofile='$ofile'
18687
18688
18689
18690
18691
18692 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
18693 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18694 # from automake.
18695 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18696 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18697 LINGUAS="${LINGUAS-%UNSET%}"
18698
18699
18700
18701 _ACEOF
18702
18703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18704
18705 # Handling of arguments.
18706 for ac_config_target in $ac_config_targets
18707 do
18708 case $ac_config_target in
18709 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18710 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18711 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18712 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18713 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18714 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18715 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18716
18717 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18718 esac
18719 done
18720
18721
18722 # If the user did not use the arguments to specify the items to instantiate,
18723 # then the envvar interface is used. Set only those that are not.
18724 # We use the long form for the default assignment because of an extremely
18725 # bizarre bug on SunOS 4.1.3.
18726 if $ac_need_defaults; then
18727 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18728 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18729 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18730 fi
18731
18732 # Have a temporary directory for convenience. Make it in the build tree
18733 # simply because there is no reason against having it here, and in addition,
18734 # creating and moving files from /tmp can sometimes cause problems.
18735 # Hook for its removal unless debugging.
18736 # Note that there is a small window in which the directory will not be cleaned:
18737 # after its creation but before its name has been assigned to `$tmp'.
18738 $debug ||
18739 {
18740 tmp= ac_tmp=
18741 trap 'exit_status=$?
18742 : "${ac_tmp:=$tmp}"
18743 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18744 ' 0
18745 trap 'as_fn_exit 1' 1 2 13 15
18746 }
18747 # Create a (secure) tmp directory for tmp files.
18748
18749 {
18750 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18751 test -d "$tmp"
18752 } ||
18753 {
18754 tmp=./conf$$-$RANDOM
18755 (umask 077 && mkdir "$tmp")
18756 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18757 ac_tmp=$tmp
18758
18759 # Set up the scripts for CONFIG_FILES section.
18760 # No need to generate them if there are no CONFIG_FILES.
18761 # This happens for instance with `./config.status config.h'.
18762 if test -n "$CONFIG_FILES"; then
18763
18764
18765 ac_cr=`echo X | tr X '\015'`
18766 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18767 # But we know of no other shell where ac_cr would be empty at this
18768 # point, so we can use a bashism as a fallback.
18769 if test "x$ac_cr" = x; then
18770 eval ac_cr=\$\'\\r\'
18771 fi
18772 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18773 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18774 ac_cs_awk_cr='\\r'
18775 else
18776 ac_cs_awk_cr=$ac_cr
18777 fi
18778
18779 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18780 _ACEOF
18781
18782
18783 {
18784 echo "cat >conf$$subs.awk <<_ACEOF" &&
18785 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18786 echo "_ACEOF"
18787 } >conf$$subs.sh ||
18788 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18789 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18790 ac_delim='%!_!# '
18791 for ac_last_try in false false false false false :; do
18792 . ./conf$$subs.sh ||
18793 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18794
18795 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18796 if test $ac_delim_n = $ac_delim_num; then
18797 break
18798 elif $ac_last_try; then
18799 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18800 else
18801 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18802 fi
18803 done
18804 rm -f conf$$subs.sh
18805
18806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18807 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18808 _ACEOF
18809 sed -n '
18810 h
18811 s/^/S["/; s/!.*/"]=/
18812 p
18813 g
18814 s/^[^!]*!//
18815 :repl
18816 t repl
18817 s/'"$ac_delim"'$//
18818 t delim
18819 :nl
18820 h
18821 s/\(.\{148\}\)..*/\1/
18822 t more1
18823 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18824 p
18825 n
18826 b repl
18827 :more1
18828 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18829 p
18830 g
18831 s/.\{148\}//
18832 t nl
18833 :delim
18834 h
18835 s/\(.\{148\}\)..*/\1/
18836 t more2
18837 s/["\\]/\\&/g; s/^/"/; s/$/"/
18838 p
18839 b
18840 :more2
18841 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18842 p
18843 g
18844 s/.\{148\}//
18845 t delim
18846 ' <conf$$subs.awk | sed '
18847 /^[^""]/{
18848 N
18849 s/\n//
18850 }
18851 ' >>$CONFIG_STATUS || ac_write_fail=1
18852 rm -f conf$$subs.awk
18853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18854 _ACAWK
18855 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18856 for (key in S) S_is_set[key] = 1
18857 FS = "\a"
18858
18859 }
18860 {
18861 line = $ 0
18862 nfields = split(line, field, "@")
18863 substed = 0
18864 len = length(field[1])
18865 for (i = 2; i < nfields; i++) {
18866 key = field[i]
18867 keylen = length(key)
18868 if (S_is_set[key]) {
18869 value = S[key]
18870 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18871 len += length(value) + length(field[++i])
18872 substed = 1
18873 } else
18874 len += 1 + keylen
18875 }
18876
18877 print line
18878 }
18879
18880 _ACAWK
18881 _ACEOF
18882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18883 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18884 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18885 else
18886 cat
18887 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18888 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18889 _ACEOF
18890
18891 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18892 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18893 # trailing colons and then remove the whole line if VPATH becomes empty
18894 # (actually we leave an empty line to preserve line numbers).
18895 if test "x$srcdir" = x.; then
18896 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18897 h
18898 s///
18899 s/^/:/
18900 s/[ ]*$/:/
18901 s/:\$(srcdir):/:/g
18902 s/:\${srcdir}:/:/g
18903 s/:@srcdir@:/:/g
18904 s/^:*//
18905 s/:*$//
18906 x
18907 s/\(=[ ]*\).*/\1/
18908 G
18909 s/\n//
18910 s/^[^=]*=[ ]*$//
18911 }'
18912 fi
18913
18914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18915 fi # test -n "$CONFIG_FILES"
18916
18917 # Set up the scripts for CONFIG_HEADERS section.
18918 # No need to generate them if there are no CONFIG_HEADERS.
18919 # This happens for instance with `./config.status Makefile'.
18920 if test -n "$CONFIG_HEADERS"; then
18921 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18922 BEGIN {
18923 _ACEOF
18924
18925 # Transform confdefs.h into an awk script `defines.awk', embedded as
18926 # here-document in config.status, that substitutes the proper values into
18927 # config.h.in to produce config.h.
18928
18929 # Create a delimiter string that does not exist in confdefs.h, to ease
18930 # handling of long lines.
18931 ac_delim='%!_!# '
18932 for ac_last_try in false false :; do
18933 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18934 if test -z "$ac_tt"; then
18935 break
18936 elif $ac_last_try; then
18937 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18938 else
18939 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18940 fi
18941 done
18942
18943 # For the awk script, D is an array of macro values keyed by name,
18944 # likewise P contains macro parameters if any. Preserve backslash
18945 # newline sequences.
18946
18947 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18948 sed -n '
18949 s/.\{148\}/&'"$ac_delim"'/g
18950 t rset
18951 :rset
18952 s/^[ ]*#[ ]*define[ ][ ]*/ /
18953 t def
18954 d
18955 :def
18956 s/\\$//
18957 t bsnl
18958 s/["\\]/\\&/g
18959 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18960 D["\1"]=" \3"/p
18961 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18962 d
18963 :bsnl
18964 s/["\\]/\\&/g
18965 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18966 D["\1"]=" \3\\\\\\n"\\/p
18967 t cont
18968 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18969 t cont
18970 d
18971 :cont
18972 n
18973 s/.\{148\}/&'"$ac_delim"'/g
18974 t clear
18975 :clear
18976 s/\\$//
18977 t bsnlc
18978 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18979 d
18980 :bsnlc
18981 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18982 b cont
18983 ' <confdefs.h | sed '
18984 s/'"$ac_delim"'/"\\\
18985 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18986
18987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18988 for (key in D) D_is_set[key] = 1
18989 FS = "\a"
18990 }
18991 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18992 line = \$ 0
18993 split(line, arg, " ")
18994 if (arg[1] == "#") {
18995 defundef = arg[2]
18996 mac1 = arg[3]
18997 } else {
18998 defundef = substr(arg[1], 2)
18999 mac1 = arg[2]
19000 }
19001 split(mac1, mac2, "(") #)
19002 macro = mac2[1]
19003 prefix = substr(line, 1, index(line, defundef) - 1)
19004 if (D_is_set[macro]) {
19005 # Preserve the white space surrounding the "#".
19006 print prefix "define", macro P[macro] D[macro]
19007 next
19008 } else {
19009 # Replace #undef with comments. This is necessary, for example,
19010 # in the case of _POSIX_SOURCE, which is predefined and required
19011 # on some systems where configure will not decide to define it.
19012 if (defundef == "undef") {
19013 print "/*", prefix defundef, macro, "*/"
19014 next
19015 }
19016 }
19017 }
19018 { print }
19019 _ACAWK
19020 _ACEOF
19021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19022 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19023 fi # test -n "$CONFIG_HEADERS"
19024
19025
19026 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19027 shift
19028 for ac_tag
19029 do
19030 case $ac_tag in
19031 :[FHLC]) ac_mode=$ac_tag; continue;;
19032 esac
19033 case $ac_mode$ac_tag in
19034 :[FHL]*:*);;
19035 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19036 :[FH]-) ac_tag=-:-;;
19037 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19038 esac
19039 ac_save_IFS=$IFS
19040 IFS=:
19041 set x $ac_tag
19042 IFS=$ac_save_IFS
19043 shift
19044 ac_file=$1
19045 shift
19046
19047 case $ac_mode in
19048 :L) ac_source=$1;;
19049 :[FH])
19050 ac_file_inputs=
19051 for ac_f
19052 do
19053 case $ac_f in
19054 -) ac_f="$ac_tmp/stdin";;
19055 *) # Look for the file first in the build tree, then in the source tree
19056 # (if the path is not absolute). The absolute path cannot be DOS-style,
19057 # because $ac_f cannot contain `:'.
19058 test -f "$ac_f" ||
19059 case $ac_f in
19060 [\\/$]*) false;;
19061 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19062 esac ||
19063 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19064 esac
19065 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19066 as_fn_append ac_file_inputs " '$ac_f'"
19067 done
19068
19069 # Let's still pretend it is `configure' which instantiates (i.e., don't
19070 # use $as_me), people would be surprised to read:
19071 # /* config.h. Generated by config.status. */
19072 configure_input='Generated from '`
19073 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19074 `' by configure.'
19075 if test x"$ac_file" != x-; then
19076 configure_input="$ac_file. $configure_input"
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19078 $as_echo "$as_me: creating $ac_file" >&6;}
19079 fi
19080 # Neutralize special characters interpreted by sed in replacement strings.
19081 case $configure_input in #(
19082 *\&* | *\|* | *\\* )
19083 ac_sed_conf_input=`$as_echo "$configure_input" |
19084 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19085 *) ac_sed_conf_input=$configure_input;;
19086 esac
19087
19088 case $ac_tag in
19089 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19090 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19091 esac
19092 ;;
19093 esac
19094
19095 ac_dir=`$as_dirname -- "$ac_file" ||
19096 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19097 X"$ac_file" : 'X\(//\)[^/]' \| \
19098 X"$ac_file" : 'X\(//\)$' \| \
19099 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19100 $as_echo X"$ac_file" |
19101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19102 s//\1/
19103 q
19104 }
19105 /^X\(\/\/\)[^/].*/{
19106 s//\1/
19107 q
19108 }
19109 /^X\(\/\/\)$/{
19110 s//\1/
19111 q
19112 }
19113 /^X\(\/\).*/{
19114 s//\1/
19115 q
19116 }
19117 s/.*/./; q'`
19118 as_dir="$ac_dir"; as_fn_mkdir_p
19119 ac_builddir=.
19120
19121 case "$ac_dir" in
19122 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19123 *)
19124 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19125 # A ".." for each directory in $ac_dir_suffix.
19126 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19127 case $ac_top_builddir_sub in
19128 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19129 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19130 esac ;;
19131 esac
19132 ac_abs_top_builddir=$ac_pwd
19133 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19134 # for backward compatibility:
19135 ac_top_builddir=$ac_top_build_prefix
19136
19137 case $srcdir in
19138 .) # We are building in place.
19139 ac_srcdir=.
19140 ac_top_srcdir=$ac_top_builddir_sub
19141 ac_abs_top_srcdir=$ac_pwd ;;
19142 [\\/]* | ?:[\\/]* ) # Absolute name.
19143 ac_srcdir=$srcdir$ac_dir_suffix;
19144 ac_top_srcdir=$srcdir
19145 ac_abs_top_srcdir=$srcdir ;;
19146 *) # Relative name.
19147 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19148 ac_top_srcdir=$ac_top_build_prefix$srcdir
19149 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19150 esac
19151 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19152
19153
19154 case $ac_mode in
19155 :F)
19156 #
19157 # CONFIG_FILE
19158 #
19159
19160 case $INSTALL in
19161 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19162 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19163 esac
19164 ac_MKDIR_P=$MKDIR_P
19165 case $MKDIR_P in
19166 [\\/$]* | ?:[\\/]* ) ;;
19167 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19168 esac
19169 _ACEOF
19170
19171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19172 # If the template does not know about datarootdir, expand it.
19173 # FIXME: This hack should be removed a few years after 2.60.
19174 ac_datarootdir_hack=; ac_datarootdir_seen=
19175 ac_sed_dataroot='
19176 /datarootdir/ {
19177 p
19178 q
19179 }
19180 /@datadir@/p
19181 /@docdir@/p
19182 /@infodir@/p
19183 /@localedir@/p
19184 /@mandir@/p'
19185 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19186 *datarootdir*) ac_datarootdir_seen=yes;;
19187 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19189 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19190 _ACEOF
19191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19192 ac_datarootdir_hack='
19193 s&@datadir@&$datadir&g
19194 s&@docdir@&$docdir&g
19195 s&@infodir@&$infodir&g
19196 s&@localedir@&$localedir&g
19197 s&@mandir@&$mandir&g
19198 s&\\\${datarootdir}&$datarootdir&g' ;;
19199 esac
19200 _ACEOF
19201
19202 # Neutralize VPATH when `$srcdir' = `.'.
19203 # Shell code in configure.ac might set extrasub.
19204 # FIXME: do we really want to maintain this feature?
19205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19206 ac_sed_extra="$ac_vpsub
19207 $extrasub
19208 _ACEOF
19209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19210 :t
19211 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19212 s|@configure_input@|$ac_sed_conf_input|;t t
19213 s&@top_builddir@&$ac_top_builddir_sub&;t t
19214 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19215 s&@srcdir@&$ac_srcdir&;t t
19216 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19217 s&@top_srcdir@&$ac_top_srcdir&;t t
19218 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19219 s&@builddir@&$ac_builddir&;t t
19220 s&@abs_builddir@&$ac_abs_builddir&;t t
19221 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19222 s&@INSTALL@&$ac_INSTALL&;t t
19223 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19224 $ac_datarootdir_hack
19225 "
19226 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19227 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19228
19229 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19230 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19231 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19232 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19234 which seems to be undefined. Please make sure it is defined" >&5
19235 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19236 which seems to be undefined. Please make sure it is defined" >&2;}
19237
19238 rm -f "$ac_tmp/stdin"
19239 case $ac_file in
19240 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19241 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19242 esac \
19243 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19244 ;;
19245 :H)
19246 #
19247 # CONFIG_HEADER
19248 #
19249 if test x"$ac_file" != x-; then
19250 {
19251 $as_echo "/* $configure_input */" \
19252 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19253 } >"$ac_tmp/config.h" \
19254 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19255 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19257 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19258 else
19259 rm -f "$ac_file"
19260 mv "$ac_tmp/config.h" "$ac_file" \
19261 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19262 fi
19263 else
19264 $as_echo "/* $configure_input */" \
19265 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19266 || as_fn_error $? "could not create -" "$LINENO" 5
19267 fi
19268 # Compute "$ac_file"'s index in $config_headers.
19269 _am_arg="$ac_file"
19270 _am_stamp_count=1
19271 for _am_header in $config_headers :; do
19272 case $_am_header in
19273 $_am_arg | $_am_arg:* )
19274 break ;;
19275 * )
19276 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19277 esac
19278 done
19279 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19280 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19281 X"$_am_arg" : 'X\(//\)[^/]' \| \
19282 X"$_am_arg" : 'X\(//\)$' \| \
19283 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19284 $as_echo X"$_am_arg" |
19285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19286 s//\1/
19287 q
19288 }
19289 /^X\(\/\/\)[^/].*/{
19290 s//\1/
19291 q
19292 }
19293 /^X\(\/\/\)$/{
19294 s//\1/
19295 q
19296 }
19297 /^X\(\/\).*/{
19298 s//\1/
19299 q
19300 }
19301 s/.*/./; q'`/stamp-h$_am_stamp_count
19302 ;;
19303
19304 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19305 $as_echo "$as_me: executing $ac_file commands" >&6;}
19306 ;;
19307 esac
19308
19309
19310 case $ac_file$ac_mode in
19311 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19312 # Older Autoconf quotes --file arguments for eval, but not when files
19313 # are listed without --file. Let's play safe and only enable the eval
19314 # if we detect the quoting.
19315 case $CONFIG_FILES in
19316 *\'*) eval set x "$CONFIG_FILES" ;;
19317 *) set x $CONFIG_FILES ;;
19318 esac
19319 shift
19320 for mf
19321 do
19322 # Strip MF so we end up with the name of the file.
19323 mf=`echo "$mf" | sed -e 's/:.*$//'`
19324 # Check whether this is an Automake generated Makefile or not.
19325 # We used to match only the files named 'Makefile.in', but
19326 # some people rename them; so instead we look at the file content.
19327 # Grep'ing the first line is not enough: some people post-process
19328 # each Makefile.in and add a new line on top of each file to say so.
19329 # Grep'ing the whole file is not good either: AIX grep has a line
19330 # limit of 2048, but all sed's we know have understand at least 4000.
19331 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19332 dirpart=`$as_dirname -- "$mf" ||
19333 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19334 X"$mf" : 'X\(//\)[^/]' \| \
19335 X"$mf" : 'X\(//\)$' \| \
19336 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19337 $as_echo X"$mf" |
19338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19339 s//\1/
19340 q
19341 }
19342 /^X\(\/\/\)[^/].*/{
19343 s//\1/
19344 q
19345 }
19346 /^X\(\/\/\)$/{
19347 s//\1/
19348 q
19349 }
19350 /^X\(\/\).*/{
19351 s//\1/
19352 q
19353 }
19354 s/.*/./; q'`
19355 else
19356 continue
19357 fi
19358 # Extract the definition of DEPDIR, am__include, and am__quote
19359 # from the Makefile without running 'make'.
19360 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19361 test -z "$DEPDIR" && continue
19362 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19363 test -z "$am__include" && continue
19364 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19365 # Find all dependency output files, they are included files with
19366 # $(DEPDIR) in their names. We invoke sed twice because it is the
19367 # simplest approach to changing $(DEPDIR) to its actual value in the
19368 # expansion.
19369 for file in `sed -n "
19370 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19371 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19372 # Make sure the directory exists.
19373 test -f "$dirpart/$file" && continue
19374 fdir=`$as_dirname -- "$file" ||
19375 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19376 X"$file" : 'X\(//\)[^/]' \| \
19377 X"$file" : 'X\(//\)$' \| \
19378 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19379 $as_echo X"$file" |
19380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19381 s//\1/
19382 q
19383 }
19384 /^X\(\/\/\)[^/].*/{
19385 s//\1/
19386 q
19387 }
19388 /^X\(\/\/\)$/{
19389 s//\1/
19390 q
19391 }
19392 /^X\(\/\).*/{
19393 s//\1/
19394 q
19395 }
19396 s/.*/./; q'`
19397 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19398 # echo "creating $dirpart/$file"
19399 echo '# dummy' > "$dirpart/$file"
19400 done
19401 done
19402 }
19403 ;;
19404 "libtool":C)
19405
19406 # See if we are running on zsh, and set the options which allow our
19407 # commands through without removal of \ escapes.
19408 if test -n "${ZSH_VERSION+set}" ; then
19409 setopt NO_GLOB_SUBST
19410 fi
19411
19412 cfgfile="${ofile}T"
19413 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19414 $RM "$cfgfile"
19415
19416 cat <<_LT_EOF >> "$cfgfile"
19417 #! $SHELL
19418
19419 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19420 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19421 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19422 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19423 #
19424 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19425 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19426 # Written by Gordon Matzigkeit, 1996
19427 #
19428 # This file is part of GNU Libtool.
19429 #
19430 # GNU Libtool is free software; you can redistribute it and/or
19431 # modify it under the terms of the GNU General Public License as
19432 # published by the Free Software Foundation; either version 2 of
19433 # the License, or (at your option) any later version.
19434 #
19435 # As a special exception to the GNU General Public License,
19436 # if you distribute this file as part of a program or library that
19437 # is built using GNU Libtool, you may include this file under the
19438 # same distribution terms that you use for the rest of that program.
19439 #
19440 # GNU Libtool is distributed in the hope that it will be useful,
19441 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19442 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19443 # GNU General Public License for more details.
19444 #
19445 # You should have received a copy of the GNU General Public License
19446 # along with GNU Libtool; see the file COPYING. If not, a copy
19447 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19448 # obtained by writing to the Free Software Foundation, Inc.,
19449 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19450
19451
19452 # The names of the tagged configurations supported by this script.
19453 available_tags="CXX "
19454
19455 # ### BEGIN LIBTOOL CONFIG
19456
19457 # Which release of libtool.m4 was used?
19458 macro_version=$macro_version
19459 macro_revision=$macro_revision
19460
19461 # Whether or not to build shared libraries.
19462 build_libtool_libs=$enable_shared
19463
19464 # Whether or not to build static libraries.
19465 build_old_libs=$enable_static
19466
19467 # What type of objects to build.
19468 pic_mode=$pic_mode
19469
19470 # Whether or not to optimize for fast installation.
19471 fast_install=$enable_fast_install
19472
19473 # Shell to use when invoking shell scripts.
19474 SHELL=$lt_SHELL
19475
19476 # An echo program that protects backslashes.
19477 ECHO=$lt_ECHO
19478
19479 # The host system.
19480 host_alias=$host_alias
19481 host=$host
19482 host_os=$host_os
19483
19484 # The build system.
19485 build_alias=$build_alias
19486 build=$build
19487 build_os=$build_os
19488
19489 # A sed program that does not truncate output.
19490 SED=$lt_SED
19491
19492 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19493 Xsed="\$SED -e 1s/^X//"
19494
19495 # A grep program that handles long lines.
19496 GREP=$lt_GREP
19497
19498 # An ERE matcher.
19499 EGREP=$lt_EGREP
19500
19501 # A literal string matcher.
19502 FGREP=$lt_FGREP
19503
19504 # A BSD- or MS-compatible name lister.
19505 NM=$lt_NM
19506
19507 # Whether we need soft or hard links.
19508 LN_S=$lt_LN_S
19509
19510 # What is the maximum length of a command?
19511 max_cmd_len=$max_cmd_len
19512
19513 # Object file suffix (normally "o").
19514 objext=$ac_objext
19515
19516 # Executable file suffix (normally "").
19517 exeext=$exeext
19518
19519 # whether the shell understands "unset".
19520 lt_unset=$lt_unset
19521
19522 # turn spaces into newlines.
19523 SP2NL=$lt_lt_SP2NL
19524
19525 # turn newlines into spaces.
19526 NL2SP=$lt_lt_NL2SP
19527
19528 # An object symbol dumper.
19529 OBJDUMP=$lt_OBJDUMP
19530
19531 # Method to check whether dependent libraries are shared objects.
19532 deplibs_check_method=$lt_deplibs_check_method
19533
19534 # Command to use when deplibs_check_method == "file_magic".
19535 file_magic_cmd=$lt_file_magic_cmd
19536
19537 # The archiver.
19538 AR=$lt_AR
19539 AR_FLAGS=$lt_AR_FLAGS
19540
19541 # A symbol stripping program.
19542 STRIP=$lt_STRIP
19543
19544 # Commands used to install an old-style archive.
19545 RANLIB=$lt_RANLIB
19546 old_postinstall_cmds=$lt_old_postinstall_cmds
19547 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19548
19549 # Whether to use a lock for old archive extraction.
19550 lock_old_archive_extraction=$lock_old_archive_extraction
19551
19552 # A C compiler.
19553 LTCC=$lt_CC
19554
19555 # LTCC compiler flags.
19556 LTCFLAGS=$lt_CFLAGS
19557
19558 # Take the output of nm and produce a listing of raw symbols and C names.
19559 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19560
19561 # Transform the output of nm in a proper C declaration.
19562 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19563
19564 # Transform the output of nm in a C name address pair.
19565 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19566
19567 # Transform the output of nm in a C name address pair when lib prefix is needed.
19568 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19569
19570 # The name of the directory that contains temporary libtool files.
19571 objdir=$objdir
19572
19573 # Used to examine libraries when file_magic_cmd begins with "file".
19574 MAGIC_CMD=$MAGIC_CMD
19575
19576 # Must we lock files when doing compilation?
19577 need_locks=$lt_need_locks
19578
19579 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19580 DSYMUTIL=$lt_DSYMUTIL
19581
19582 # Tool to change global to local symbols on Mac OS X.
19583 NMEDIT=$lt_NMEDIT
19584
19585 # Tool to manipulate fat objects and archives on Mac OS X.
19586 LIPO=$lt_LIPO
19587
19588 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19589 OTOOL=$lt_OTOOL
19590
19591 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19592 OTOOL64=$lt_OTOOL64
19593
19594 # Old archive suffix (normally "a").
19595 libext=$libext
19596
19597 # Shared library suffix (normally ".so").
19598 shrext_cmds=$lt_shrext_cmds
19599
19600 # The commands to extract the exported symbol list from a shared archive.
19601 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19602
19603 # Variables whose values should be saved in libtool wrapper scripts and
19604 # restored at link time.
19605 variables_saved_for_relink=$lt_variables_saved_for_relink
19606
19607 # Do we need the "lib" prefix for modules?
19608 need_lib_prefix=$need_lib_prefix
19609
19610 # Do we need a version for libraries?
19611 need_version=$need_version
19612
19613 # Library versioning type.
19614 version_type=$version_type
19615
19616 # Shared library runtime path variable.
19617 runpath_var=$runpath_var
19618
19619 # Shared library path variable.
19620 shlibpath_var=$shlibpath_var
19621
19622 # Is shlibpath searched before the hard-coded library search path?
19623 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19624
19625 # Format of library name prefix.
19626 libname_spec=$lt_libname_spec
19627
19628 # List of archive names. First name is the real one, the rest are links.
19629 # The last name is the one that the linker finds with -lNAME
19630 library_names_spec=$lt_library_names_spec
19631
19632 # The coded name of the library, if different from the real name.
19633 soname_spec=$lt_soname_spec
19634
19635 # Permission mode override for installation of shared libraries.
19636 install_override_mode=$lt_install_override_mode
19637
19638 # Command to use after installation of a shared archive.
19639 postinstall_cmds=$lt_postinstall_cmds
19640
19641 # Command to use after uninstallation of a shared archive.
19642 postuninstall_cmds=$lt_postuninstall_cmds
19643
19644 # Commands used to finish a libtool library installation in a directory.
19645 finish_cmds=$lt_finish_cmds
19646
19647 # As "finish_cmds", except a single script fragment to be evaled but
19648 # not shown.
19649 finish_eval=$lt_finish_eval
19650
19651 # Whether we should hardcode library paths into libraries.
19652 hardcode_into_libs=$hardcode_into_libs
19653
19654 # Compile-time system search path for libraries.
19655 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19656
19657 # Run-time system search path for libraries.
19658 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19659
19660 # Whether dlopen is supported.
19661 dlopen_support=$enable_dlopen
19662
19663 # Whether dlopen of programs is supported.
19664 dlopen_self=$enable_dlopen_self
19665
19666 # Whether dlopen of statically linked programs is supported.
19667 dlopen_self_static=$enable_dlopen_self_static
19668
19669 # Commands to strip libraries.
19670 old_striplib=$lt_old_striplib
19671 striplib=$lt_striplib
19672
19673
19674 # The linker used to build libraries.
19675 LD=$lt_LD
19676
19677 # How to create reloadable object files.
19678 reload_flag=$lt_reload_flag
19679 reload_cmds=$lt_reload_cmds
19680
19681 # Commands used to build an old-style archive.
19682 old_archive_cmds=$lt_old_archive_cmds
19683
19684 # A language specific compiler.
19685 CC=$lt_compiler
19686
19687 # Is the compiler the GNU compiler?
19688 with_gcc=$GCC
19689
19690 # Compiler flag to turn off builtin functions.
19691 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19692
19693 # How to pass a linker flag through the compiler.
19694 wl=$lt_lt_prog_compiler_wl
19695
19696 # Additional compiler flags for building library objects.
19697 pic_flag=$lt_lt_prog_compiler_pic
19698
19699 # Compiler flag to prevent dynamic linking.
19700 link_static_flag=$lt_lt_prog_compiler_static
19701
19702 # Does compiler simultaneously support -c and -o options?
19703 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19704
19705 # Whether or not to add -lc for building shared libraries.
19706 build_libtool_need_lc=$archive_cmds_need_lc
19707
19708 # Whether or not to disallow shared libs when runtime libs are static.
19709 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19710
19711 # Compiler flag to allow reflexive dlopens.
19712 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19713
19714 # Compiler flag to generate shared objects directly from archives.
19715 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19716
19717 # Whether the compiler copes with passing no objects directly.
19718 compiler_needs_object=$lt_compiler_needs_object
19719
19720 # Create an old-style archive from a shared archive.
19721 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19722
19723 # Create a temporary old-style archive to link instead of a shared archive.
19724 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19725
19726 # Commands used to build a shared archive.
19727 archive_cmds=$lt_archive_cmds
19728 archive_expsym_cmds=$lt_archive_expsym_cmds
19729
19730 # Commands used to build a loadable module if different from building
19731 # a shared archive.
19732 module_cmds=$lt_module_cmds
19733 module_expsym_cmds=$lt_module_expsym_cmds
19734
19735 # Whether we are building with GNU ld or not.
19736 with_gnu_ld=$lt_with_gnu_ld
19737
19738 # Flag that allows shared libraries with undefined symbols to be built.
19739 allow_undefined_flag=$lt_allow_undefined_flag
19740
19741 # Flag that enforces no undefined symbols.
19742 no_undefined_flag=$lt_no_undefined_flag
19743
19744 # Flag to hardcode \$libdir into a binary during linking.
19745 # This must work even if \$libdir does not exist
19746 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19747
19748 # If ld is used when linking, flag to hardcode \$libdir into a binary
19749 # during linking. This must work even if \$libdir does not exist.
19750 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19751
19752 # Whether we need a single "-rpath" flag with a separated argument.
19753 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19754
19755 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19756 # DIR into the resulting binary.
19757 hardcode_direct=$hardcode_direct
19758
19759 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19760 # DIR into the resulting binary and the resulting library dependency is
19761 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19762 # library is relocated.
19763 hardcode_direct_absolute=$hardcode_direct_absolute
19764
19765 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19766 # into the resulting binary.
19767 hardcode_minus_L=$hardcode_minus_L
19768
19769 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19770 # into the resulting binary.
19771 hardcode_shlibpath_var=$hardcode_shlibpath_var
19772
19773 # Set to "yes" if building a shared library automatically hardcodes DIR
19774 # into the library and all subsequent libraries and executables linked
19775 # against it.
19776 hardcode_automatic=$hardcode_automatic
19777
19778 # Set to yes if linker adds runtime paths of dependent libraries
19779 # to runtime path list.
19780 inherit_rpath=$inherit_rpath
19781
19782 # Whether libtool must link a program against all its dependency libraries.
19783 link_all_deplibs=$link_all_deplibs
19784
19785 # Fix the shell variable \$srcfile for the compiler.
19786 fix_srcfile_path=$lt_fix_srcfile_path
19787
19788 # Set to "yes" if exported symbols are required.
19789 always_export_symbols=$always_export_symbols
19790
19791 # The commands to list exported symbols.
19792 export_symbols_cmds=$lt_export_symbols_cmds
19793
19794 # Symbols that should not be listed in the preloaded symbols.
19795 exclude_expsyms=$lt_exclude_expsyms
19796
19797 # Symbols that must always be exported.
19798 include_expsyms=$lt_include_expsyms
19799
19800 # Commands necessary for linking programs (against libraries) with templates.
19801 prelink_cmds=$lt_prelink_cmds
19802
19803 # Specify filename containing input files.
19804 file_list_spec=$lt_file_list_spec
19805
19806 # How to hardcode a shared library path into an executable.
19807 hardcode_action=$hardcode_action
19808
19809 # The directories searched by this compiler when creating a shared library.
19810 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19811
19812 # Dependencies to place before and after the objects being linked to
19813 # create a shared library.
19814 predep_objects=$lt_predep_objects
19815 postdep_objects=$lt_postdep_objects
19816 predeps=$lt_predeps
19817 postdeps=$lt_postdeps
19818
19819 # The library search path used internally by the compiler when linking
19820 # a shared library.
19821 compiler_lib_search_path=$lt_compiler_lib_search_path
19822
19823 # ### END LIBTOOL CONFIG
19824
19825 _LT_EOF
19826
19827 case $host_os in
19828 aix3*)
19829 cat <<\_LT_EOF >> "$cfgfile"
19830 # AIX sometimes has problems with the GCC collect2 program. For some
19831 # reason, if we set the COLLECT_NAMES environment variable, the problems
19832 # vanish in a puff of smoke.
19833 if test "X${COLLECT_NAMES+set}" != Xset; then
19834 COLLECT_NAMES=
19835 export COLLECT_NAMES
19836 fi
19837 _LT_EOF
19838 ;;
19839 esac
19840
19841
19842 ltmain="$ac_aux_dir/ltmain.sh"
19843
19844
19845 # We use sed instead of cat because bash on DJGPP gets confused if
19846 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19847 # text mode, it properly converts lines to CR/LF. This bash problem
19848 # is reportedly fixed, but why not run on old versions too?
19849 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19850 || (rm -f "$cfgfile"; exit 1)
19851
19852 case $xsi_shell in
19853 yes)
19854 cat << \_LT_EOF >> "$cfgfile"
19855
19856 # func_dirname file append nondir_replacement
19857 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19858 # otherwise set result to NONDIR_REPLACEMENT.
19859 func_dirname ()
19860 {
19861 case ${1} in
19862 */*) func_dirname_result="${1%/*}${2}" ;;
19863 * ) func_dirname_result="${3}" ;;
19864 esac
19865 }
19866
19867 # func_basename file
19868 func_basename ()
19869 {
19870 func_basename_result="${1##*/}"
19871 }
19872
19873 # func_dirname_and_basename file append nondir_replacement
19874 # perform func_basename and func_dirname in a single function
19875 # call:
19876 # dirname: Compute the dirname of FILE. If nonempty,
19877 # add APPEND to the result, otherwise set result
19878 # to NONDIR_REPLACEMENT.
19879 # value returned in "$func_dirname_result"
19880 # basename: Compute filename of FILE.
19881 # value retuned in "$func_basename_result"
19882 # Implementation must be kept synchronized with func_dirname
19883 # and func_basename. For efficiency, we do not delegate to
19884 # those functions but instead duplicate the functionality here.
19885 func_dirname_and_basename ()
19886 {
19887 case ${1} in
19888 */*) func_dirname_result="${1%/*}${2}" ;;
19889 * ) func_dirname_result="${3}" ;;
19890 esac
19891 func_basename_result="${1##*/}"
19892 }
19893
19894 # func_stripname prefix suffix name
19895 # strip PREFIX and SUFFIX off of NAME.
19896 # PREFIX and SUFFIX must not contain globbing or regex special
19897 # characters, hashes, percent signs, but SUFFIX may contain a leading
19898 # dot (in which case that matches only a dot).
19899 func_stripname ()
19900 {
19901 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19902 # positional parameters, so assign one to ordinary parameter first.
19903 func_stripname_result=${3}
19904 func_stripname_result=${func_stripname_result#"${1}"}
19905 func_stripname_result=${func_stripname_result%"${2}"}
19906 }
19907
19908 # func_opt_split
19909 func_opt_split ()
19910 {
19911 func_opt_split_opt=${1%%=*}
19912 func_opt_split_arg=${1#*=}
19913 }
19914
19915 # func_lo2o object
19916 func_lo2o ()
19917 {
19918 case ${1} in
19919 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19920 *) func_lo2o_result=${1} ;;
19921 esac
19922 }
19923
19924 # func_xform libobj-or-source
19925 func_xform ()
19926 {
19927 func_xform_result=${1%.*}.lo
19928 }
19929
19930 # func_arith arithmetic-term...
19931 func_arith ()
19932 {
19933 func_arith_result=$(( $* ))
19934 }
19935
19936 # func_len string
19937 # STRING may not start with a hyphen.
19938 func_len ()
19939 {
19940 func_len_result=${#1}
19941 }
19942
19943 _LT_EOF
19944 ;;
19945 *) # Bourne compatible functions.
19946 cat << \_LT_EOF >> "$cfgfile"
19947
19948 # func_dirname file append nondir_replacement
19949 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19950 # otherwise set result to NONDIR_REPLACEMENT.
19951 func_dirname ()
19952 {
19953 # Extract subdirectory from the argument.
19954 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19955 if test "X$func_dirname_result" = "X${1}"; then
19956 func_dirname_result="${3}"
19957 else
19958 func_dirname_result="$func_dirname_result${2}"
19959 fi
19960 }
19961
19962 # func_basename file
19963 func_basename ()
19964 {
19965 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19966 }
19967
19968
19969 # func_stripname prefix suffix name
19970 # strip PREFIX and SUFFIX off of NAME.
19971 # PREFIX and SUFFIX must not contain globbing or regex special
19972 # characters, hashes, percent signs, but SUFFIX may contain a leading
19973 # dot (in which case that matches only a dot).
19974 # func_strip_suffix prefix name
19975 func_stripname ()
19976 {
19977 case ${2} in
19978 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19979 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19980 esac
19981 }
19982
19983 # sed scripts:
19984 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19985 my_sed_long_arg='1s/^-[^=]*=//'
19986
19987 # func_opt_split
19988 func_opt_split ()
19989 {
19990 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19991 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19992 }
19993
19994 # func_lo2o object
19995 func_lo2o ()
19996 {
19997 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19998 }
19999
20000 # func_xform libobj-or-source
20001 func_xform ()
20002 {
20003 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
20004 }
20005
20006 # func_arith arithmetic-term...
20007 func_arith ()
20008 {
20009 func_arith_result=`expr "$@"`
20010 }
20011
20012 # func_len string
20013 # STRING may not start with a hyphen.
20014 func_len ()
20015 {
20016 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20017 }
20018
20019 _LT_EOF
20020 esac
20021
20022 case $lt_shell_append in
20023 yes)
20024 cat << \_LT_EOF >> "$cfgfile"
20025
20026 # func_append var value
20027 # Append VALUE to the end of shell variable VAR.
20028 func_append ()
20029 {
20030 eval "$1+=\$2"
20031 }
20032 _LT_EOF
20033 ;;
20034 *)
20035 cat << \_LT_EOF >> "$cfgfile"
20036
20037 # func_append var value
20038 # Append VALUE to the end of shell variable VAR.
20039 func_append ()
20040 {
20041 eval "$1=\$$1\$2"
20042 }
20043
20044 _LT_EOF
20045 ;;
20046 esac
20047
20048
20049 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20050 || (rm -f "$cfgfile"; exit 1)
20051
20052 mv -f "$cfgfile" "$ofile" ||
20053 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20054 chmod +x "$ofile"
20055
20056
20057 cat <<_LT_EOF >> "$ofile"
20058
20059 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20060
20061 # The linker used to build libraries.
20062 LD=$lt_LD_CXX
20063
20064 # How to create reloadable object files.
20065 reload_flag=$lt_reload_flag_CXX
20066 reload_cmds=$lt_reload_cmds_CXX
20067
20068 # Commands used to build an old-style archive.
20069 old_archive_cmds=$lt_old_archive_cmds_CXX
20070
20071 # A language specific compiler.
20072 CC=$lt_compiler_CXX
20073
20074 # Is the compiler the GNU compiler?
20075 with_gcc=$GCC_CXX
20076
20077 # Compiler flag to turn off builtin functions.
20078 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20079
20080 # How to pass a linker flag through the compiler.
20081 wl=$lt_lt_prog_compiler_wl_CXX
20082
20083 # Additional compiler flags for building library objects.
20084 pic_flag=$lt_lt_prog_compiler_pic_CXX
20085
20086 # Compiler flag to prevent dynamic linking.
20087 link_static_flag=$lt_lt_prog_compiler_static_CXX
20088
20089 # Does compiler simultaneously support -c and -o options?
20090 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20091
20092 # Whether or not to add -lc for building shared libraries.
20093 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20094
20095 # Whether or not to disallow shared libs when runtime libs are static.
20096 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20097
20098 # Compiler flag to allow reflexive dlopens.
20099 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20100
20101 # Compiler flag to generate shared objects directly from archives.
20102 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20103
20104 # Whether the compiler copes with passing no objects directly.
20105 compiler_needs_object=$lt_compiler_needs_object_CXX
20106
20107 # Create an old-style archive from a shared archive.
20108 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20109
20110 # Create a temporary old-style archive to link instead of a shared archive.
20111 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20112
20113 # Commands used to build a shared archive.
20114 archive_cmds=$lt_archive_cmds_CXX
20115 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20116
20117 # Commands used to build a loadable module if different from building
20118 # a shared archive.
20119 module_cmds=$lt_module_cmds_CXX
20120 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20121
20122 # Whether we are building with GNU ld or not.
20123 with_gnu_ld=$lt_with_gnu_ld_CXX
20124
20125 # Flag that allows shared libraries with undefined symbols to be built.
20126 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20127
20128 # Flag that enforces no undefined symbols.
20129 no_undefined_flag=$lt_no_undefined_flag_CXX
20130
20131 # Flag to hardcode \$libdir into a binary during linking.
20132 # This must work even if \$libdir does not exist
20133 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20134
20135 # If ld is used when linking, flag to hardcode \$libdir into a binary
20136 # during linking. This must work even if \$libdir does not exist.
20137 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20138
20139 # Whether we need a single "-rpath" flag with a separated argument.
20140 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20141
20142 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20143 # DIR into the resulting binary.
20144 hardcode_direct=$hardcode_direct_CXX
20145
20146 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20147 # DIR into the resulting binary and the resulting library dependency is
20148 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20149 # library is relocated.
20150 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20151
20152 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20153 # into the resulting binary.
20154 hardcode_minus_L=$hardcode_minus_L_CXX
20155
20156 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20157 # into the resulting binary.
20158 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20159
20160 # Set to "yes" if building a shared library automatically hardcodes DIR
20161 # into the library and all subsequent libraries and executables linked
20162 # against it.
20163 hardcode_automatic=$hardcode_automatic_CXX
20164
20165 # Set to yes if linker adds runtime paths of dependent libraries
20166 # to runtime path list.
20167 inherit_rpath=$inherit_rpath_CXX
20168
20169 # Whether libtool must link a program against all its dependency libraries.
20170 link_all_deplibs=$link_all_deplibs_CXX
20171
20172 # Fix the shell variable \$srcfile for the compiler.
20173 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20174
20175 # Set to "yes" if exported symbols are required.
20176 always_export_symbols=$always_export_symbols_CXX
20177
20178 # The commands to list exported symbols.
20179 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20180
20181 # Symbols that should not be listed in the preloaded symbols.
20182 exclude_expsyms=$lt_exclude_expsyms_CXX
20183
20184 # Symbols that must always be exported.
20185 include_expsyms=$lt_include_expsyms_CXX
20186
20187 # Commands necessary for linking programs (against libraries) with templates.
20188 prelink_cmds=$lt_prelink_cmds_CXX
20189
20190 # Specify filename containing input files.
20191 file_list_spec=$lt_file_list_spec_CXX
20192
20193 # How to hardcode a shared library path into an executable.
20194 hardcode_action=$hardcode_action_CXX
20195
20196 # The directories searched by this compiler when creating a shared library.
20197 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20198
20199 # Dependencies to place before and after the objects being linked to
20200 # create a shared library.
20201 predep_objects=$lt_predep_objects_CXX
20202 postdep_objects=$lt_postdep_objects_CXX
20203 predeps=$lt_predeps_CXX
20204 postdeps=$lt_postdeps_CXX
20205
20206 # The library search path used internally by the compiler when linking
20207 # a shared library.
20208 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20209
20210 # ### END LIBTOOL TAG CONFIG: CXX
20211 _LT_EOF
20212
20213 ;;
20214 "default-1":C)
20215 for ac_file in $CONFIG_FILES; do
20216 # Support "outfile[:infile[:infile...]]"
20217 case "$ac_file" in
20218 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20219 esac
20220 # PO directories have a Makefile.in generated from Makefile.in.in.
20221 case "$ac_file" in */Makefile.in)
20222 # Adjust a relative srcdir.
20223 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20224 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20225 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20226 # In autoconf-2.13 it is called $ac_given_srcdir.
20227 # In autoconf-2.50 it is called $srcdir.
20228 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20229 case "$ac_given_srcdir" in
20230 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20231 /*) top_srcdir="$ac_given_srcdir" ;;
20232 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
20233 esac
20234 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20235 rm -f "$ac_dir/POTFILES"
20236 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20237 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20238 POMAKEFILEDEPS="POTFILES.in"
20239 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
20240 # on $ac_dir but don't depend on user-specified configuration
20241 # parameters.
20242 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20243 # The LINGUAS file contains the set of available languages.
20244 if test -n "$OBSOLETE_ALL_LINGUAS"; then
20245 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
20246 fi
20247 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20248 # Hide the ALL_LINGUAS assigment from automake.
20249 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20250 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
20251 else
20252 # The set of available languages was given in configure.ac.
20253 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
20254 fi
20255 case "$ac_given_srcdir" in
20256 .) srcdirpre= ;;
20257 *) srcdirpre='$(srcdir)/' ;;
20258 esac
20259 POFILES=
20260 GMOFILES=
20261 UPDATEPOFILES=
20262 DUMMYPOFILES=
20263 for lang in $ALL_LINGUAS; do
20264 POFILES="$POFILES $srcdirpre$lang.po"
20265 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20266 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20267 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20268 done
20269 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20270 # environment variable.
20271 INST_LINGUAS=
20272 if test -n "$ALL_LINGUAS"; then
20273 for presentlang in $ALL_LINGUAS; do
20274 useit=no
20275 if test "%UNSET%" != "$LINGUAS"; then
20276 desiredlanguages="$LINGUAS"
20277 else
20278 desiredlanguages="$ALL_LINGUAS"
20279 fi
20280 for desiredlang in $desiredlanguages; do
20281 # Use the presentlang catalog if desiredlang is
20282 # a. equal to presentlang, or
20283 # b. a variant of presentlang (because in this case,
20284 # presentlang can be used as a fallback for messages
20285 # which are not translated in the desiredlang catalog).
20286 case "$desiredlang" in
20287 "$presentlang"*) useit=yes;;
20288 esac
20289 done
20290 if test $useit = yes; then
20291 INST_LINGUAS="$INST_LINGUAS $presentlang"
20292 fi
20293 done
20294 fi
20295 CATALOGS=
20296 if test -n "$INST_LINGUAS"; then
20297 for lang in $INST_LINGUAS; do
20298 CATALOGS="$CATALOGS $lang.gmo"
20299 done
20300 fi
20301 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20302 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"
20303 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20304 if test -f "$f"; then
20305 case "$f" in
20306 *.orig | *.bak | *~) ;;
20307 *) cat "$f" >> "$ac_dir/Makefile" ;;
20308 esac
20309 fi
20310 done
20311 fi
20312 ;;
20313 esac
20314 done ;;
20315 "default":C)
20316 case "$srcdir" in
20317 .) srcdirpre= ;;
20318 *) srcdirpre='$(srcdir)/' ;;
20319 esac
20320 POFILES=
20321 GMOFILES=
20322 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
20323 if test $lang != dummy; then
20324 POFILES="$POFILES $srcdirpre$lang.po"
20325 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20326 fi
20327 done
20328 sed -e '/^SRC-POTFILES =/r po/SRC-POTFILES' \
20329 -e '/^BLD-POTFILES =/r po/BLD-POTFILES' \
20330 -e "s,@POFILES@,$POFILES," \
20331 -e "s,@GMOFILES@,$GMOFILES," \
20332 po/Makefile.in > po/Makefile ;;
20333
20334 esac
20335 done # for ac_tag
20336
20337
20338 as_fn_exit 0
20339 _ACEOF
20340 ac_clean_files=$ac_clean_files_save
20341
20342 test $ac_write_fail = 0 ||
20343 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20344
20345
20346 # configure is writing to config.log, and then calls config.status.
20347 # config.status does its own redirection, appending to config.log.
20348 # Unfortunately, on DOS this fails, as config.log is still kept open
20349 # by configure, so config.status won't be able to write to it; its
20350 # output is simply discarded. So we exec the FD to /dev/null,
20351 # effectively closing config.log, so it can be properly (re)opened and
20352 # appended to by config.status. When coming back to configure, we
20353 # need to make the FD available again.
20354 if test "$no_create" != yes; then
20355 ac_cs_success=:
20356 ac_config_status_args=
20357 test "$silent" = yes &&
20358 ac_config_status_args="$ac_config_status_args --quiet"
20359 exec 5>/dev/null
20360 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20361 exec 5>>config.log
20362 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20363 # would make configure fail if this is the last instruction.
20364 $ac_cs_success || as_fn_exit 1
20365 fi
20366 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20368 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20369 fi
20370
20371
20372
20373 touch config.status.tmp
20374 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
20375 sed '/as_fn_exit 0/i \
20376 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
20377 touch --reference=Makefile Makefile.tmp \
20378 mv Makefile.tmp Makefile \
20379 ' config.status > config.status.tmp
20380 touch --reference=config.status config.status.tmp
20381 mv config.status.tmp config.status
20382 chmod +x config.status
20383 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
20384 touch --reference=Makefile Makefile.tmp
20385 mv Makefile.tmp Makefile
20386 else
20387 rm -f config.status.tmp
20388 fi