configure revision 1.14 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gas 2.45.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='gas'
589 PACKAGE_TARNAME='gas'
590 PACKAGE_VERSION='2.45'
591 PACKAGE_STRING='gas 2.45'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="as.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 gt_needs=
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 ZSTD_LIBS
638 ZSTD_CFLAGS
639 PKG_CONFIG_LIBDIR
640 PKG_CONFIG_PATH
641 PKG_CONFIG
642 zlibinc
643 zlibdir
644 LIBM
645 GENINSRC_NEVER_FALSE
646 GENINSRC_NEVER_TRUE
647 MAINT
648 MAINTAINER_MODE_FALSE
649 MAINTAINER_MODE_TRUE
650 CATOBJEXT
651 GENCAT
652 INSTOBJEXT
653 DATADIRNAME
654 CATALOGS
655 INCINTL
656 LIBINTL_DEP
657 POSUB
658 LTLIBINTL
659 LIBINTL
660 INTLLIBS
661 LTLIBICONV
662 LIBICONV
663 INTL_MACOSX_LIBS
664 MSGMERGE
665 XGETTEXT
666 GMSGFMT
667 MSGFMT
668 USE_NLS
669 MKINSTALLDIRS
670 LEXLIB
671 LEX_OUTPUT_ROOT
672 LEX
673 YFLAGS
674 YACC
675 OPCODES_LIB
676 atof
677 install_tooldir
678 te_file
679 obj_format
680 target_cpu_type
681 extra_objects
682 cgen_cpu_prefix
683 GDBINIT
684 WARN_WRITE_STRINGS
685 NO_WERROR
686 WARN_CFLAGS_FOR_BUILD
687 WARN_CFLAGS
688 do_compare
689 LARGEFILE_CPPFLAGS
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 RANLIB
696 AR
697 OBJDUMP
698 LN_S
699 NM
700 ac_ct_DUMPBIN
701 DUMPBIN
702 LD
703 FGREP
704 SED
705 LIBTOOL
706 EGREP
707 GREP
708 CPP
709 am__fastdepCC_FALSE
710 am__fastdepCC_TRUE
711 CCDEPMODE
712 am__nodep
713 AMDEPBACKSLASH
714 AMDEP_FALSE
715 AMDEP_TRUE
716 am__quote
717 am__include
718 DEPDIR
719 OBJEXT
720 EXEEXT
721 ac_ct_CC
722 CPPFLAGS
723 LDFLAGS
724 CFLAGS
725 CC
726 AM_BACKSLASH
727 AM_DEFAULT_VERBOSITY
728 AM_DEFAULT_V
729 AM_V
730 am__untar
731 am__tar
732 AMTAR
733 am__leading_dot
734 SET_MAKE
735 AWK
736 mkdir_p
737 MKDIR_P
738 INSTALL_STRIP_PROGRAM
739 STRIP
740 install_sh
741 MAKEINFO
742 AUTOHEADER
743 AUTOMAKE
744 AUTOCONF
745 ACLOCAL
746 VERSION
747 PACKAGE
748 CYGPATH_W
749 am__isrc
750 INSTALL_DATA
751 INSTALL_SCRIPT
752 INSTALL_PROGRAM
753 target_os
754 target_vendor
755 target_cpu
756 target
757 host_os
758 host_vendor
759 host_cpu
760 host
761 build_os
762 build_vendor
763 build_cpu
764 build
765 target_alias
766 host_alias
767 build_alias
768 LIBS
769 ECHO_T
770 ECHO_N
771 ECHO_C
772 DEFS
773 mandir
774 localedir
775 libdir
776 psdir
777 pdfdir
778 dvidir
779 htmldir
780 infodir
781 docdir
782 oldincludedir
783 includedir
784 localstatedir
785 sharedstatedir
786 sysconfdir
787 datadir
788 datarootdir
789 libexecdir
790 sbindir
791 bindir
792 program_transform_name
793 prefix
794 exec_prefix
795 PACKAGE_URL
796 PACKAGE_BUGREPORT
797 PACKAGE_STRING
798 PACKAGE_VERSION
799 PACKAGE_TARNAME
800 PACKAGE_NAME
801 PATH_SEPARATOR
802 SHELL'
803 ac_subst_files=''
804 ac_user_opts='
805 enable_option_checking
806 enable_silent_rules
807 enable_dependency_tracking
808 enable_shared
809 enable_static
810 with_pic
811 enable_fast_install
812 with_gnu_ld
813 enable_libtool_lock
814 enable_plugins
815 enable_largefile
816 enable_targets
817 enable_checking
818 enable_compressed_debug_sections
819 enable_default_compressed_debug_sections_algorithm
820 enable_x86_relax_relocations
821 enable_x86_tls_check
822 enable_elf_stt_common
823 enable_generate_build_notes
824 enable_mips_fix_loongson3_llsc
825 enable_x86_used_note
826 enable_default_riscv_attribute
827 enable_werror
828 enable_build_warnings
829 with_cpu
830 enable_nls
831 enable_rpath
832 with_libiconv_prefix
833 with_libiconv_type
834 with_libintl_prefix
835 with_libintl_type
836 enable_maintainer_mode
837 with_system_zlib
838 with_zstd
839 '
840 ac_precious_vars='build_alias
841 host_alias
842 target_alias
843 CC
844 CFLAGS
845 LDFLAGS
846 LIBS
847 CPPFLAGS
848 CPP
849 YACC
850 YFLAGS
851 PKG_CONFIG
852 PKG_CONFIG_PATH
853 PKG_CONFIG_LIBDIR
854 ZSTD_CFLAGS
855 ZSTD_LIBS'
856
857
858 # Initialize some variables set by options.
859 ac_init_help=
860 ac_init_version=false
861 ac_unrecognized_opts=
862 ac_unrecognized_sep=
863 # The variables have the same names as the options, with
864 # dashes changed to underlines.
865 cache_file=/dev/null
866 exec_prefix=NONE
867 no_create=
868 no_recursion=
869 prefix=NONE
870 program_prefix=NONE
871 program_suffix=NONE
872 program_transform_name=s,x,x,
873 silent=
874 site=
875 srcdir=
876 verbose=
877 x_includes=NONE
878 x_libraries=NONE
879
880 # Installation directory options.
881 # These are left unexpanded so users can "make install exec_prefix=/foo"
882 # and all the variables that are supposed to be based on exec_prefix
883 # by default will actually change.
884 # Use braces instead of parens because sh, perl, etc. also accept them.
885 # (The list follows the same order as the GNU Coding Standards.)
886 bindir='${exec_prefix}/bin'
887 sbindir='${exec_prefix}/sbin'
888 libexecdir='${exec_prefix}/libexec'
889 datarootdir='${prefix}/share'
890 datadir='${datarootdir}'
891 sysconfdir='${prefix}/etc'
892 sharedstatedir='${prefix}/com'
893 localstatedir='${prefix}/var'
894 includedir='${prefix}/include'
895 oldincludedir='/usr/include'
896 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
897 infodir='${datarootdir}/info'
898 htmldir='${docdir}'
899 dvidir='${docdir}'
900 pdfdir='${docdir}'
901 psdir='${docdir}'
902 libdir='${exec_prefix}/lib'
903 localedir='${datarootdir}/locale'
904 mandir='${datarootdir}/man'
905
906 ac_prev=
907 ac_dashdash=
908 for ac_option
909 do
910 # If the previous option needs an argument, assign it.
911 if test -n "$ac_prev"; then
912 eval $ac_prev=\$ac_option
913 ac_prev=
914 continue
915 fi
916
917 case $ac_option in
918 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
919 *=) ac_optarg= ;;
920 *) ac_optarg=yes ;;
921 esac
922
923 # Accept the important Cygnus configure options, so we can diagnose typos.
924
925 case $ac_dashdash$ac_option in
926 --)
927 ac_dashdash=yes ;;
928
929 -bindir | --bindir | --bindi | --bind | --bin | --bi)
930 ac_prev=bindir ;;
931 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
932 bindir=$ac_optarg ;;
933
934 -build | --build | --buil | --bui | --bu)
935 ac_prev=build_alias ;;
936 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
937 build_alias=$ac_optarg ;;
938
939 -cache-file | --cache-file | --cache-fil | --cache-fi \
940 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
941 ac_prev=cache_file ;;
942 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
943 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
944 cache_file=$ac_optarg ;;
945
946 --config-cache | -C)
947 cache_file=config.cache ;;
948
949 -datadir | --datadir | --datadi | --datad)
950 ac_prev=datadir ;;
951 -datadir=* | --datadir=* | --datadi=* | --datad=*)
952 datadir=$ac_optarg ;;
953
954 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
955 | --dataroo | --dataro | --datar)
956 ac_prev=datarootdir ;;
957 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
958 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
959 datarootdir=$ac_optarg ;;
960
961 -disable-* | --disable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 as_fn_error $? "invalid feature name: $ac_useropt"
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970 "enable_$ac_useropt"
971 "*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
974 esac
975 eval enable_$ac_useropt=no ;;
976
977 -docdir | --docdir | --docdi | --doc | --do)
978 ac_prev=docdir ;;
979 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
980 docdir=$ac_optarg ;;
981
982 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
983 ac_prev=dvidir ;;
984 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
985 dvidir=$ac_optarg ;;
986
987 -enable-* | --enable-*)
988 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991 as_fn_error $? "invalid feature name: $ac_useropt"
992 ac_useropt_orig=$ac_useropt
993 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
995 *"
996 "enable_$ac_useropt"
997 "*) ;;
998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
999 ac_unrecognized_sep=', ';;
1000 esac
1001 eval enable_$ac_useropt=\$ac_optarg ;;
1002
1003 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1004 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1005 | --exec | --exe | --ex)
1006 ac_prev=exec_prefix ;;
1007 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1008 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1009 | --exec=* | --exe=* | --ex=*)
1010 exec_prefix=$ac_optarg ;;
1011
1012 -gas | --gas | --ga | --g)
1013 # Obsolete; use --with-gas.
1014 with_gas=yes ;;
1015
1016 -help | --help | --hel | --he | -h)
1017 ac_init_help=long ;;
1018 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1019 ac_init_help=recursive ;;
1020 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1021 ac_init_help=short ;;
1022
1023 -host | --host | --hos | --ho)
1024 ac_prev=host_alias ;;
1025 -host=* | --host=* | --hos=* | --ho=*)
1026 host_alias=$ac_optarg ;;
1027
1028 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1029 ac_prev=htmldir ;;
1030 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1031 | --ht=*)
1032 htmldir=$ac_optarg ;;
1033
1034 -includedir | --includedir | --includedi | --included | --include \
1035 | --includ | --inclu | --incl | --inc)
1036 ac_prev=includedir ;;
1037 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1038 | --includ=* | --inclu=* | --incl=* | --inc=*)
1039 includedir=$ac_optarg ;;
1040
1041 -infodir | --infodir | --infodi | --infod | --info | --inf)
1042 ac_prev=infodir ;;
1043 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1044 infodir=$ac_optarg ;;
1045
1046 -libdir | --libdir | --libdi | --libd)
1047 ac_prev=libdir ;;
1048 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1049 libdir=$ac_optarg ;;
1050
1051 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1052 | --libexe | --libex | --libe)
1053 ac_prev=libexecdir ;;
1054 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1055 | --libexe=* | --libex=* | --libe=*)
1056 libexecdir=$ac_optarg ;;
1057
1058 -localedir | --localedir | --localedi | --localed | --locale)
1059 ac_prev=localedir ;;
1060 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1061 localedir=$ac_optarg ;;
1062
1063 -localstatedir | --localstatedir | --localstatedi | --localstated \
1064 | --localstate | --localstat | --localsta | --localst | --locals)
1065 ac_prev=localstatedir ;;
1066 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1067 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1068 localstatedir=$ac_optarg ;;
1069
1070 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1071 ac_prev=mandir ;;
1072 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1073 mandir=$ac_optarg ;;
1074
1075 -nfp | --nfp | --nf)
1076 # Obsolete; use --without-fp.
1077 with_fp=no ;;
1078
1079 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1080 | --no-cr | --no-c | -n)
1081 no_create=yes ;;
1082
1083 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1084 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1085 no_recursion=yes ;;
1086
1087 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1088 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1089 | --oldin | --oldi | --old | --ol | --o)
1090 ac_prev=oldincludedir ;;
1091 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1092 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1093 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1094 oldincludedir=$ac_optarg ;;
1095
1096 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1097 ac_prev=prefix ;;
1098 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1099 prefix=$ac_optarg ;;
1100
1101 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1102 | --program-pre | --program-pr | --program-p)
1103 ac_prev=program_prefix ;;
1104 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1105 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1106 program_prefix=$ac_optarg ;;
1107
1108 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1109 | --program-suf | --program-su | --program-s)
1110 ac_prev=program_suffix ;;
1111 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1112 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1113 program_suffix=$ac_optarg ;;
1114
1115 -program-transform-name | --program-transform-name \
1116 | --program-transform-nam | --program-transform-na \
1117 | --program-transform-n | --program-transform- \
1118 | --program-transform | --program-transfor \
1119 | --program-transfo | --program-transf \
1120 | --program-trans | --program-tran \
1121 | --progr-tra | --program-tr | --program-t)
1122 ac_prev=program_transform_name ;;
1123 -program-transform-name=* | --program-transform-name=* \
1124 | --program-transform-nam=* | --program-transform-na=* \
1125 | --program-transform-n=* | --program-transform-=* \
1126 | --program-transform=* | --program-transfor=* \
1127 | --program-transfo=* | --program-transf=* \
1128 | --program-trans=* | --program-tran=* \
1129 | --progr-tra=* | --program-tr=* | --program-t=*)
1130 program_transform_name=$ac_optarg ;;
1131
1132 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1133 ac_prev=pdfdir ;;
1134 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1135 pdfdir=$ac_optarg ;;
1136
1137 -psdir | --psdir | --psdi | --psd | --ps)
1138 ac_prev=psdir ;;
1139 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1140 psdir=$ac_optarg ;;
1141
1142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1143 | -silent | --silent | --silen | --sile | --sil)
1144 silent=yes ;;
1145
1146 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1147 ac_prev=sbindir ;;
1148 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1149 | --sbi=* | --sb=*)
1150 sbindir=$ac_optarg ;;
1151
1152 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1153 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1154 | --sharedst | --shareds | --shared | --share | --shar \
1155 | --sha | --sh)
1156 ac_prev=sharedstatedir ;;
1157 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1158 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1159 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1160 | --sha=* | --sh=*)
1161 sharedstatedir=$ac_optarg ;;
1162
1163 -site | --site | --sit)
1164 ac_prev=site ;;
1165 -site=* | --site=* | --sit=*)
1166 site=$ac_optarg ;;
1167
1168 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1169 ac_prev=srcdir ;;
1170 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1171 srcdir=$ac_optarg ;;
1172
1173 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1174 | --syscon | --sysco | --sysc | --sys | --sy)
1175 ac_prev=sysconfdir ;;
1176 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1177 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1178 sysconfdir=$ac_optarg ;;
1179
1180 -target | --target | --targe | --targ | --tar | --ta | --t)
1181 ac_prev=target_alias ;;
1182 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1183 target_alias=$ac_optarg ;;
1184
1185 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1186 verbose=yes ;;
1187
1188 -version | --version | --versio | --versi | --vers | -V)
1189 ac_init_version=: ;;
1190
1191 -with-* | --with-*)
1192 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 as_fn_error $? "invalid package name: $ac_useropt"
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1199 *"
1200 "with_$ac_useropt"
1201 "*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=\$ac_optarg ;;
1206
1207 -without-* | --without-*)
1208 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211 as_fn_error $? "invalid package name: $ac_useropt"
1212 ac_useropt_orig=$ac_useropt
1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1215 *"
1216 "with_$ac_useropt"
1217 "*) ;;
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1219 ac_unrecognized_sep=', ';;
1220 esac
1221 eval with_$ac_useropt=no ;;
1222
1223 --x)
1224 # Obsolete; use --with-x.
1225 with_x=yes ;;
1226
1227 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1228 | --x-incl | --x-inc | --x-in | --x-i)
1229 ac_prev=x_includes ;;
1230 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1231 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1232 x_includes=$ac_optarg ;;
1233
1234 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1235 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1236 ac_prev=x_libraries ;;
1237 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1238 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1239 x_libraries=$ac_optarg ;;
1240
1241 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1242 Try \`$0 --help' for more information"
1243 ;;
1244
1245 *=*)
1246 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1247 # Reject names that are not valid shell variable names.
1248 case $ac_envvar in #(
1249 '' | [0-9]* | *[!_$as_cr_alnum]* )
1250 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1251 esac
1252 eval $ac_envvar=\$ac_optarg
1253 export $ac_envvar ;;
1254
1255 *)
1256 # FIXME: should be removed in autoconf 3.0.
1257 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1258 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1260 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1261 ;;
1262
1263 esac
1264 done
1265
1266 if test -n "$ac_prev"; then
1267 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1268 as_fn_error $? "missing argument to $ac_option"
1269 fi
1270
1271 if test -n "$ac_unrecognized_opts"; then
1272 case $enable_option_checking in
1273 no) ;;
1274 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1275 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1276 esac
1277 fi
1278
1279 # Check all directory arguments for consistency.
1280 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283 libdir localedir mandir
1284 do
1285 eval ac_val=\$$ac_var
1286 # Remove trailing slashes.
1287 case $ac_val in
1288 */ )
1289 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1290 eval $ac_var=\$ac_val;;
1291 esac
1292 # Be sure to have absolute directory names.
1293 case $ac_val in
1294 [\\/$]* | ?:[\\/]* ) continue;;
1295 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296 esac
1297 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1298 done
1299
1300 # There might be people who depend on the old broken behavior: `$host'
1301 # used to hold the argument of --host etc.
1302 # FIXME: To remove some day.
1303 build=$build_alias
1304 host=$host_alias
1305 target=$target_alias
1306
1307 # FIXME: To remove some day.
1308 if test "x$host_alias" != x; then
1309 if test "x$build_alias" = x; then
1310 cross_compiling=maybe
1311 elif test "x$build_alias" != "x$host_alias"; then
1312 cross_compiling=yes
1313 fi
1314 fi
1315
1316 ac_tool_prefix=
1317 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318
1319 test "$silent" = yes && exec 6>/dev/null
1320
1321
1322 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323 ac_ls_di=`ls -di .` &&
1324 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1325 as_fn_error $? "working directory cannot be determined"
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 as_fn_error $? "pwd does not report name of working directory"
1328
1329
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir=`$as_dirname -- "$as_myself" ||
1335 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$as_myself" : 'X\(//\)[^/]' \| \
1337 X"$as_myself" : 'X\(//\)$' \| \
1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339 $as_echo X"$as_myself" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)[^/].*/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\).*/{
1353 s//\1/
1354 q
1355 }
1356 s/.*/./; q'`
1357 srcdir=$ac_confdir
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 srcdir=..
1360 fi
1361 else
1362 ac_srcdir_defaulted=no
1363 fi
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1367 fi
1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 ac_abs_confdir=`(
1370 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1371 pwd)`
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1375 fi
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1379 case $srcdir in
1380 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 esac
1382 for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 done
1388
1389 #
1390 # Report the --help message.
1391 #
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
1396 \`configure' configures gas 2.45 to adapt to many kinds of systems.
1397
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1402
1403 Defaults for the options are specified in brackets.
1404
1405 Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking ...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1421
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1426
1427 For better control, use the options below.
1428
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/gas]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1449 _ACEOF
1450
1451 cat <<\_ACEOF
1452
1453 Program names:
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457
1458 System types:
1459 --build=BUILD configure for building on BUILD [guessed]
1460 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461 --target=TARGET configure for building compilers for TARGET [HOST]
1462 _ACEOF
1463 fi
1464
1465 if test -n "$ac_init_help"; then
1466 case $ac_init_help in
1467 short | recursive ) echo "Configuration of gas 2.45:";;
1468 esac
1469 cat <<\_ACEOF
1470
1471 Optional Features:
1472 --disable-option-checking ignore unrecognized --enable/--with options
1473 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1474 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1475 --enable-silent-rules less verbose build output (undo: "make V=1")
1476 --disable-silent-rules verbose build output (undo: "make V=0")
1477 --enable-dependency-tracking
1478 do not reject slow dependency extractors
1479 --disable-dependency-tracking
1480 speeds up one-time build
1481 --enable-shared[=PKGS] build shared libraries [default=yes]
1482 --enable-static[=PKGS] build static libraries [default=yes]
1483 --enable-fast-install[=PKGS]
1484 optimize for fast installation [default=yes]
1485 --disable-libtool-lock avoid locking (might break parallel builds)
1486 --enable-plugins Enable support for plugins
1487 --disable-largefile omit support for large files
1488 --enable-targets alternative target configurations besides the primary
1489 --enable-checking enable run-time checks
1490 --enable-compressed-debug-sections={all,gas,none}
1491 compress debug sections by default
1492 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1493 Default compression algorithm for
1494 --enable-compressed-debug-sections.
1495 --enable-x86-relax-relocations
1496 generate x86 relax relocations by default
1497 --enable-x86-tls-check check x86 TLS relocation by default
1498 --enable-elf-stt-common generate ELF common symbols with STT_COMMON type by
1499 default
1500 --enable-generate-build-notes
1501 generate GNU Build notes if none are provided by the
1502 input
1503 --enable-mips-fix-loongson3-llsc
1504 enable MIPS fix Loongson3 LLSC errata
1505 --enable-x86-used-note generate GNU x86 used ISA and feature properties
1506 --enable-default-riscv-attribute
1507 generate RISC-V arch attribute by default
1508 --enable-werror treat compile warnings as errors
1509 --enable-build-warnings enable build-time compiler warnings
1510 --disable-nls do not use Native Language Support
1511 --disable-rpath do not hardcode runtime library paths
1512 --enable-maintainer-mode
1513 enable make rules and dependencies not useful (and
1514 sometimes confusing) to the casual installer
1515
1516 Optional Packages:
1517 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1518 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1519 --with-pic try to use only PIC/non-PIC objects [default=use
1520 both]
1521 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1522 --with-cpu=CPU default cpu variant is CPU (currently only supported
1523 on ARC)
1524 --with-gnu-ld assume the C compiler uses GNU ld default=no
1525 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1526 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1527 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1528 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1529 --without-libintl-prefix don't search for libintl in includedir and libdir
1530 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1531 --with-system-zlib use installed libz
1532 --with-zstd support zstd compressed debug sections
1533 (default=auto)
1534
1535 Some influential environment variables:
1536 CC C compiler command
1537 CFLAGS C compiler flags
1538 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1539 nonstandard directory <lib dir>
1540 LIBS libraries to pass to the linker, e.g. -l<library>
1541 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1542 you have headers in a nonstandard directory <include dir>
1543 CPP C preprocessor
1544 YACC The `Yet Another Compiler Compiler' implementation to use.
1545 Defaults to the first program found out of: `bison -y', `byacc',
1546 `yacc'.
1547 YFLAGS The list of arguments that will be passed by default to $YACC.
1548 This script will default YFLAGS to the empty string to avoid a
1549 default value of `-d' given by some make applications.
1550 PKG_CONFIG path to pkg-config utility
1551 PKG_CONFIG_PATH
1552 directories to add to pkg-config's search path
1553 PKG_CONFIG_LIBDIR
1554 path overriding pkg-config's built-in search path
1555 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1556 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1557
1558 Use these variables to override the choices made by `configure' or to help
1559 it to find libraries and programs with nonstandard names/locations.
1560
1561 Report bugs to the package provider.
1562 _ACEOF
1563 ac_status=$?
1564 fi
1565
1566 if test "$ac_init_help" = "recursive"; then
1567 # If there are subdirs, report their specific --help.
1568 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1569 test -d "$ac_dir" ||
1570 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1571 continue
1572 ac_builddir=.
1573
1574 case "$ac_dir" in
1575 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 *)
1577 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1578 # A ".." for each directory in $ac_dir_suffix.
1579 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1580 case $ac_top_builddir_sub in
1581 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583 esac ;;
1584 esac
1585 ac_abs_top_builddir=$ac_pwd
1586 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1587 # for backward compatibility:
1588 ac_top_builddir=$ac_top_build_prefix
1589
1590 case $srcdir in
1591 .) # We are building in place.
1592 ac_srcdir=.
1593 ac_top_srcdir=$ac_top_builddir_sub
1594 ac_abs_top_srcdir=$ac_pwd ;;
1595 [\\/]* | ?:[\\/]* ) # Absolute name.
1596 ac_srcdir=$srcdir$ac_dir_suffix;
1597 ac_top_srcdir=$srcdir
1598 ac_abs_top_srcdir=$srcdir ;;
1599 *) # Relative name.
1600 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1601 ac_top_srcdir=$ac_top_build_prefix$srcdir
1602 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1603 esac
1604 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605
1606 cd "$ac_dir" || { ac_status=$?; continue; }
1607 # Check for guested configure.
1608 if test -f "$ac_srcdir/configure.gnu"; then
1609 echo &&
1610 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1611 elif test -f "$ac_srcdir/configure"; then
1612 echo &&
1613 $SHELL "$ac_srcdir/configure" --help=recursive
1614 else
1615 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1616 fi || ac_status=$?
1617 cd "$ac_pwd" || { ac_status=$?; break; }
1618 done
1619 fi
1620
1621 test -n "$ac_init_help" && exit $ac_status
1622 if $ac_init_version; then
1623 cat <<\_ACEOF
1624 gas configure 2.45
1625 generated by GNU Autoconf 2.69
1626
1627 Copyright (C) 2012 Free Software Foundation, Inc.
1628 This configure script is free software; the Free Software Foundation
1629 gives unlimited permission to copy, distribute and modify it.
1630 _ACEOF
1631 exit
1632 fi
1633
1634 ## ------------------------ ##
1635 ## Autoconf initialization. ##
1636 ## ------------------------ ##
1637
1638 # ac_fn_c_try_compile LINENO
1639 # --------------------------
1640 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1641 ac_fn_c_try_compile ()
1642 {
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 rm -f conftest.$ac_objext
1645 if { { ac_try="$ac_compile"
1646 case "(($ac_try" in
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_compile") 2>conftest.err
1653 ac_status=$?
1654 if test -s conftest.err; then
1655 grep -v '^ *+' conftest.err >conftest.er1
1656 cat conftest.er1 >&5
1657 mv -f conftest.er1 conftest.err
1658 fi
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } && {
1661 test -z "$ac_c_werror_flag" ||
1662 test ! -s conftest.err
1663 } && test -s conftest.$ac_objext; then :
1664 ac_retval=0
1665 else
1666 $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1668
1669 ac_retval=1
1670 fi
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 as_fn_set_status $ac_retval
1673
1674 } # ac_fn_c_try_compile
1675
1676 # ac_fn_c_try_cpp LINENO
1677 # ----------------------
1678 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1679 ac_fn_c_try_cpp ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_cpp conftest.$ac_ext"
1683 case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1690 ac_status=$?
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1695 fi
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } > conftest.i && {
1698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 }; then :
1701 ac_retval=0
1702 else
1703 $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1705
1706 ac_retval=1
1707 fi
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1710
1711 } # ac_fn_c_try_cpp
1712
1713 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1714 # -------------------------------------------------------
1715 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1716 # the include files in INCLUDES and setting the cache variable VAR
1717 # accordingly.
1718 ac_fn_c_check_header_mongrel ()
1719 {
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if eval \${$3+:} false; then :
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723 $as_echo_n "checking for $2... " >&6; }
1724 if eval \${$3+:} false; then :
1725 $as_echo_n "(cached) " >&6
1726 fi
1727 eval ac_res=\$$3
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1730 else
1731 # Is the header compilable?
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1733 $as_echo_n "checking $2 usability... " >&6; }
1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735 /* end confdefs.h. */
1736 $4
1737 #include <$2>
1738 _ACEOF
1739 if ac_fn_c_try_compile "$LINENO"; then :
1740 ac_header_compiler=yes
1741 else
1742 ac_header_compiler=no
1743 fi
1744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1746 $as_echo "$ac_header_compiler" >&6; }
1747
1748 # Is the header present?
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1750 $as_echo_n "checking $2 presence... " >&6; }
1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752 /* end confdefs.h. */
1753 #include <$2>
1754 _ACEOF
1755 if ac_fn_c_try_cpp "$LINENO"; then :
1756 ac_header_preproc=yes
1757 else
1758 ac_header_preproc=no
1759 fi
1760 rm -f conftest.err conftest.i conftest.$ac_ext
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1762 $as_echo "$ac_header_preproc" >&6; }
1763
1764 # So? What about this header?
1765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1766 yes:no: )
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1768 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1770 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1771 ;;
1772 no:yes:* )
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1774 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1776 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1778 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1780 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1782 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1783 ;;
1784 esac
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786 $as_echo_n "checking for $2... " >&6; }
1787 if eval \${$3+:} false; then :
1788 $as_echo_n "(cached) " >&6
1789 else
1790 eval "$3=\$ac_header_compiler"
1791 fi
1792 eval ac_res=\$$3
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795 fi
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797
1798 } # ac_fn_c_check_header_mongrel
1799
1800 # ac_fn_c_try_run LINENO
1801 # ----------------------
1802 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1803 # that executables *can* be run.
1804 ac_fn_c_try_run ()
1805 {
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 if { { ac_try="$ac_link"
1808 case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1811 esac
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_link") 2>&5
1815 ac_status=$?
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1818 { { case "(($ac_try" in
1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820 *) ac_try_echo=$ac_try;;
1821 esac
1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823 $as_echo "$ac_try_echo"; } >&5
1824 (eval "$ac_try") 2>&5
1825 ac_status=$?
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; }; }; then :
1828 ac_retval=0
1829 else
1830 $as_echo "$as_me: program exited with status $ac_status" >&5
1831 $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1833
1834 ac_retval=$ac_status
1835 fi
1836 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 as_fn_set_status $ac_retval
1839
1840 } # ac_fn_c_try_run
1841
1842 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1843 # -------------------------------------------------------
1844 # Tests whether HEADER exists and can be compiled using the include files in
1845 # INCLUDES, setting the cache variable VAR accordingly.
1846 ac_fn_c_check_header_compile ()
1847 {
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852 $as_echo_n "(cached) " >&6
1853 else
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1856 $4
1857 #include <$2>
1858 _ACEOF
1859 if ac_fn_c_try_compile "$LINENO"; then :
1860 eval "$3=yes"
1861 else
1862 eval "$3=no"
1863 fi
1864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1865 fi
1866 eval ac_res=\$$3
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868 $as_echo "$ac_res" >&6; }
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870
1871 } # ac_fn_c_check_header_compile
1872
1873 # ac_fn_c_try_link LINENO
1874 # -----------------------
1875 # Try to link conftest.$ac_ext, and return whether this succeeded.
1876 ac_fn_c_try_link ()
1877 {
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 rm -f conftest.$ac_objext conftest$ac_exeext
1880 if { { ac_try="$ac_link"
1881 case "(($ac_try" in
1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1884 esac
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_link") 2>conftest.err
1888 ac_status=$?
1889 if test -s conftest.err; then
1890 grep -v '^ *+' conftest.err >conftest.er1
1891 cat conftest.er1 >&5
1892 mv -f conftest.er1 conftest.err
1893 fi
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } && {
1896 test -z "$ac_c_werror_flag" ||
1897 test ! -s conftest.err
1898 } && test -s conftest$ac_exeext && {
1899 test "$cross_compiling" = yes ||
1900 test -x conftest$ac_exeext
1901 }; then :
1902 ac_retval=0
1903 else
1904 $as_echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.$ac_ext >&5
1906
1907 ac_retval=1
1908 fi
1909 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1910 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1911 # interfere with the next link command; also delete a directory that is
1912 # left behind by Apple's compiler. We do this before executing the actions.
1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1916
1917 } # ac_fn_c_try_link
1918
1919 # ac_fn_c_check_func LINENO FUNC VAR
1920 # ----------------------------------
1921 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1922 ac_fn_c_check_func ()
1923 {
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if eval \${$3+:} false; then :
1928 $as_echo_n "(cached) " >&6
1929 else
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1932 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1934 #define $2 innocuous_$2
1935
1936 /* System header to define __stub macros and hopefully few prototypes,
1937 which can conflict with char $2 (); below.
1938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1939 <limits.h> exists even on freestanding compilers. */
1940
1941 #ifdef __STDC__
1942 # include <limits.h>
1943 #else
1944 # include <assert.h>
1945 #endif
1946
1947 #undef $2
1948
1949 /* Override any GCC internal prototype to avoid an error.
1950 Use char because int might match the return type of a GCC
1951 builtin and then its argument prototype would still apply. */
1952 #ifdef __cplusplus
1953 extern "C"
1954 #endif
1955 char $2 ();
1956 /* The GNU C library defines this for functions which it implements
1957 to always fail with ENOSYS. Some functions are actually named
1958 something starting with __ and the normal name is an alias. */
1959 #if defined __stub_$2 || defined __stub___$2
1960 choke me
1961 #endif
1962
1963 int
1964 main ()
1965 {
1966 return $2 ();
1967 ;
1968 return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_link "$LINENO"; then :
1972 eval "$3=yes"
1973 else
1974 eval "$3=no"
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext \
1977 conftest$ac_exeext conftest.$ac_ext
1978 fi
1979 eval ac_res=\$$3
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983
1984 } # ac_fn_c_check_func
1985
1986 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1987 # ---------------------------------------------
1988 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1989 # accordingly.
1990 ac_fn_c_check_decl ()
1991 {
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 as_decl_name=`echo $2|sed 's/ *(.*//'`
1994 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1996 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1997 if eval \${$3+:} false; then :
1998 $as_echo_n "(cached) " >&6
1999 else
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2002 $4
2003 int
2004 main ()
2005 {
2006 #ifndef $as_decl_name
2007 #ifdef __cplusplus
2008 (void) $as_decl_use;
2009 #else
2010 (void) $as_decl_name;
2011 #endif
2012 #endif
2013
2014 ;
2015 return 0;
2016 }
2017 _ACEOF
2018 if ac_fn_c_try_compile "$LINENO"; then :
2019 eval "$3=yes"
2020 else
2021 eval "$3=no"
2022 fi
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 fi
2025 eval ac_res=\$$3
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027 $as_echo "$ac_res" >&6; }
2028 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2029
2030 } # ac_fn_c_check_decl
2031 cat >config.log <<_ACEOF
2032 This file contains any messages produced by compilers while
2033 running configure, to aid debugging if configure makes a mistake.
2034
2035 It was created by gas $as_me 2.45, which was
2036 generated by GNU Autoconf 2.69. Invocation command line was
2037
2038 $ $0 $@
2039
2040 _ACEOF
2041 exec 5>>config.log
2042 {
2043 cat <<_ASUNAME
2044 ## --------- ##
2045 ## Platform. ##
2046 ## --------- ##
2047
2048 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2049 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2050 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2051 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2052 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2053
2054 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2055 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2056
2057 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2058 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2059 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2060 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2061 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2062 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2063 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2064
2065 _ASUNAME
2066
2067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 for as_dir in $PATH
2069 do
2070 IFS=$as_save_IFS
2071 test -z "$as_dir" && as_dir=.
2072 $as_echo "PATH: $as_dir"
2073 done
2074 IFS=$as_save_IFS
2075
2076 } >&5
2077
2078 cat >&5 <<_ACEOF
2079
2080
2081 ## ----------- ##
2082 ## Core tests. ##
2083 ## ----------- ##
2084
2085 _ACEOF
2086
2087
2088 # Keep a trace of the command line.
2089 # Strip out --no-create and --no-recursion so they do not pile up.
2090 # Strip out --silent because we don't want to record it for future runs.
2091 # Also quote any args containing shell meta-characters.
2092 # Make two passes to allow for proper duplicate-argument suppression.
2093 ac_configure_args=
2094 ac_configure_args0=
2095 ac_configure_args1=
2096 ac_must_keep_next=false
2097 for ac_pass in 1 2
2098 do
2099 for ac_arg
2100 do
2101 case $ac_arg in
2102 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2104 | -silent | --silent | --silen | --sile | --sil)
2105 continue ;;
2106 *\'*)
2107 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2108 esac
2109 case $ac_pass in
2110 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2111 2)
2112 as_fn_append ac_configure_args1 " '$ac_arg'"
2113 if test $ac_must_keep_next = true; then
2114 ac_must_keep_next=false # Got value, back to normal.
2115 else
2116 case $ac_arg in
2117 *=* | --config-cache | -C | -disable-* | --disable-* \
2118 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2119 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2120 | -with-* | --with-* | -without-* | --without-* | --x)
2121 case "$ac_configure_args0 " in
2122 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2123 esac
2124 ;;
2125 -* ) ac_must_keep_next=true ;;
2126 esac
2127 fi
2128 as_fn_append ac_configure_args " '$ac_arg'"
2129 ;;
2130 esac
2131 done
2132 done
2133 { ac_configure_args0=; unset ac_configure_args0;}
2134 { ac_configure_args1=; unset ac_configure_args1;}
2135
2136 # When interrupted or exit'd, cleanup temporary files, and complete
2137 # config.log. We remove comments because anyway the quotes in there
2138 # would cause problems or look ugly.
2139 # WARNING: Use '\'' to represent an apostrophe within the trap.
2140 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2141 trap 'exit_status=$?
2142 # Save into config.log some information that might help in debugging.
2143 {
2144 echo
2145
2146 $as_echo "## ---------------- ##
2147 ## Cache variables. ##
2148 ## ---------------- ##"
2149 echo
2150 # The following way of writing the cache mishandles newlines in values,
2151 (
2152 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2153 eval ac_val=\$$ac_var
2154 case $ac_val in #(
2155 *${as_nl}*)
2156 case $ac_var in #(
2157 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2158 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2159 esac
2160 case $ac_var in #(
2161 _ | IFS | as_nl) ;; #(
2162 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2163 *) { eval $ac_var=; unset $ac_var;} ;;
2164 esac ;;
2165 esac
2166 done
2167 (set) 2>&1 |
2168 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2169 *${as_nl}ac_space=\ *)
2170 sed -n \
2171 "s/'\''/'\''\\\\'\'''\''/g;
2172 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2173 ;; #(
2174 *)
2175 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2176 ;;
2177 esac |
2178 sort
2179 )
2180 echo
2181
2182 $as_echo "## ----------------- ##
2183 ## Output variables. ##
2184 ## ----------------- ##"
2185 echo
2186 for ac_var in $ac_subst_vars
2187 do
2188 eval ac_val=\$$ac_var
2189 case $ac_val in
2190 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2191 esac
2192 $as_echo "$ac_var='\''$ac_val'\''"
2193 done | sort
2194 echo
2195
2196 if test -n "$ac_subst_files"; then
2197 $as_echo "## ------------------- ##
2198 ## File substitutions. ##
2199 ## ------------------- ##"
2200 echo
2201 for ac_var in $ac_subst_files
2202 do
2203 eval ac_val=\$$ac_var
2204 case $ac_val in
2205 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2206 esac
2207 $as_echo "$ac_var='\''$ac_val'\''"
2208 done | sort
2209 echo
2210 fi
2211
2212 if test -s confdefs.h; then
2213 $as_echo "## ----------- ##
2214 ## confdefs.h. ##
2215 ## ----------- ##"
2216 echo
2217 cat confdefs.h
2218 echo
2219 fi
2220 test "$ac_signal" != 0 &&
2221 $as_echo "$as_me: caught signal $ac_signal"
2222 $as_echo "$as_me: exit $exit_status"
2223 } >&5
2224 rm -f core *.core core.conftest.* &&
2225 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2226 exit $exit_status
2227 ' 0
2228 for ac_signal in 1 2 13 15; do
2229 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2230 done
2231 ac_signal=0
2232
2233 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2234 rm -f -r conftest* confdefs.h
2235
2236 $as_echo "/* confdefs.h */" > confdefs.h
2237
2238 # Predefined preprocessor variables.
2239
2240 cat >>confdefs.h <<_ACEOF
2241 #define PACKAGE_NAME "$PACKAGE_NAME"
2242 _ACEOF
2243
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2246 _ACEOF
2247
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2250 _ACEOF
2251
2252 cat >>confdefs.h <<_ACEOF
2253 #define PACKAGE_STRING "$PACKAGE_STRING"
2254 _ACEOF
2255
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2258 _ACEOF
2259
2260 cat >>confdefs.h <<_ACEOF
2261 #define PACKAGE_URL "$PACKAGE_URL"
2262 _ACEOF
2263
2264
2265 # Let the site file select an alternate cache file if it wants to.
2266 # Prefer an explicitly selected file to automatically selected ones.
2267 ac_site_file1=NONE
2268 ac_site_file2=NONE
2269 if test -n "$CONFIG_SITE"; then
2270 # We do not want a PATH search for config.site.
2271 case $CONFIG_SITE in #((
2272 -*) ac_site_file1=./$CONFIG_SITE;;
2273 */*) ac_site_file1=$CONFIG_SITE;;
2274 *) ac_site_file1=./$CONFIG_SITE;;
2275 esac
2276 elif test "x$prefix" != xNONE; then
2277 ac_site_file1=$prefix/share/config.site
2278 ac_site_file2=$prefix/etc/config.site
2279 else
2280 ac_site_file1=$ac_default_prefix/share/config.site
2281 ac_site_file2=$ac_default_prefix/etc/config.site
2282 fi
2283 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2284 do
2285 test "x$ac_site_file" = xNONE && continue
2286 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2288 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2289 sed 's/^/| /' "$ac_site_file" >&5
2290 . "$ac_site_file" \
2291 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2293 as_fn_error $? "failed to load site script $ac_site_file
2294 See \`config.log' for more details" "$LINENO" 5; }
2295 fi
2296 done
2297
2298 if test -r "$cache_file"; then
2299 # Some versions of bash will fail to source /dev/null (special files
2300 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2301 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2303 $as_echo "$as_me: loading cache $cache_file" >&6;}
2304 case $cache_file in
2305 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2306 *) . "./$cache_file";;
2307 esac
2308 fi
2309 else
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2311 $as_echo "$as_me: creating cache $cache_file" >&6;}
2312 >$cache_file
2313 fi
2314
2315 gt_needs="$gt_needs "
2316 # Check that the precious variables saved in the cache have kept the same
2317 # value.
2318 ac_cache_corrupted=false
2319 for ac_var in $ac_precious_vars; do
2320 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2321 eval ac_new_set=\$ac_env_${ac_var}_set
2322 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2323 eval ac_new_val=\$ac_env_${ac_var}_value
2324 case $ac_old_set,$ac_new_set in
2325 set,)
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2327 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2328 ac_cache_corrupted=: ;;
2329 ,set)
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2331 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2332 ac_cache_corrupted=: ;;
2333 ,);;
2334 *)
2335 if test "x$ac_old_val" != "x$ac_new_val"; then
2336 # differences in whitespace do not lead to failure.
2337 ac_old_val_w=`echo x $ac_old_val`
2338 ac_new_val_w=`echo x $ac_new_val`
2339 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2341 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2342 ac_cache_corrupted=:
2343 else
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2345 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2346 eval $ac_var=\$ac_old_val
2347 fi
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2349 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2351 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2352 fi;;
2353 esac
2354 # Pass precious variables to config.status.
2355 if test "$ac_new_set" = set; then
2356 case $ac_new_val in
2357 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2358 *) ac_arg=$ac_var=$ac_new_val ;;
2359 esac
2360 case " $ac_configure_args " in
2361 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2362 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2363 esac
2364 fi
2365 done
2366 if $ac_cache_corrupted; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2370 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2371 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2372 fi
2373 ## -------------------- ##
2374 ## Main body of script. ##
2375 ## -------------------- ##
2376
2377 ac_ext=c
2378 ac_cpp='$CPP $CPPFLAGS'
2379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2382
2383
2384
2385
2386
2387
2388
2389 ac_aux_dir=
2390 for ac_dir in .. "$srcdir"/..; do
2391 if test -f "$ac_dir/install-sh"; then
2392 ac_aux_dir=$ac_dir
2393 ac_install_sh="$ac_aux_dir/install-sh -c"
2394 break
2395 elif test -f "$ac_dir/install.sh"; then
2396 ac_aux_dir=$ac_dir
2397 ac_install_sh="$ac_aux_dir/install.sh -c"
2398 break
2399 elif test -f "$ac_dir/shtool"; then
2400 ac_aux_dir=$ac_dir
2401 ac_install_sh="$ac_aux_dir/shtool install -c"
2402 break
2403 fi
2404 done
2405 if test -z "$ac_aux_dir"; then
2406 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2407 fi
2408
2409 # These three variables are undocumented and unsupported,
2410 # and are intended to be withdrawn in a future Autoconf release.
2411 # They can cause serious problems if a builder's source tree is in a directory
2412 # whose full name contains unusual characters.
2413 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2414 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2415 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2416
2417
2418 # Make sure we can run config.sub.
2419 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2420 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2421
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2423 $as_echo_n "checking build system type... " >&6; }
2424 if ${ac_cv_build+:} false; then :
2425 $as_echo_n "(cached) " >&6
2426 else
2427 ac_build_alias=$build_alias
2428 test "x$ac_build_alias" = x &&
2429 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2430 test "x$ac_build_alias" = x &&
2431 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2432 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2433 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2434
2435 fi
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2437 $as_echo "$ac_cv_build" >&6; }
2438 case $ac_cv_build in
2439 *-*-*) ;;
2440 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2441 esac
2442 build=$ac_cv_build
2443 ac_save_IFS=$IFS; IFS='-'
2444 set x $ac_cv_build
2445 shift
2446 build_cpu=$1
2447 build_vendor=$2
2448 shift; shift
2449 # Remember, the first character of IFS is used to create $*,
2450 # except with old shells:
2451 build_os=$*
2452 IFS=$ac_save_IFS
2453 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2454
2455
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2457 $as_echo_n "checking host system type... " >&6; }
2458 if ${ac_cv_host+:} false; then :
2459 $as_echo_n "(cached) " >&6
2460 else
2461 if test "x$host_alias" = x; then
2462 ac_cv_host=$ac_cv_build
2463 else
2464 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2465 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2466 fi
2467
2468 fi
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2470 $as_echo "$ac_cv_host" >&6; }
2471 case $ac_cv_host in
2472 *-*-*) ;;
2473 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2474 esac
2475 host=$ac_cv_host
2476 ac_save_IFS=$IFS; IFS='-'
2477 set x $ac_cv_host
2478 shift
2479 host_cpu=$1
2480 host_vendor=$2
2481 shift; shift
2482 # Remember, the first character of IFS is used to create $*,
2483 # except with old shells:
2484 host_os=$*
2485 IFS=$ac_save_IFS
2486 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2487
2488
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2490 $as_echo_n "checking target system type... " >&6; }
2491 if ${ac_cv_target+:} false; then :
2492 $as_echo_n "(cached) " >&6
2493 else
2494 if test "x$target_alias" = x; then
2495 ac_cv_target=$ac_cv_host
2496 else
2497 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2498 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2499 fi
2500
2501 fi
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2503 $as_echo "$ac_cv_target" >&6; }
2504 case $ac_cv_target in
2505 *-*-*) ;;
2506 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2507 esac
2508 target=$ac_cv_target
2509 ac_save_IFS=$IFS; IFS='-'
2510 set x $ac_cv_target
2511 shift
2512 target_cpu=$1
2513 target_vendor=$2
2514 shift; shift
2515 # Remember, the first character of IFS is used to create $*,
2516 # except with old shells:
2517 target_os=$*
2518 IFS=$ac_save_IFS
2519 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2520
2521
2522 # The aliases save the names the user supplied, while $host etc.
2523 # will get canonicalized.
2524 test -n "$target_alias" &&
2525 test "$program_prefix$program_suffix$program_transform_name" = \
2526 NONENONEs,x,x, &&
2527 program_prefix=${target_alias}-
2528
2529 am__api_version='1.15'
2530
2531 # Find a good install program. We prefer a C program (faster),
2532 # so one script is as good as another. But avoid the broken or
2533 # incompatible versions:
2534 # SysV /etc/install, /usr/sbin/install
2535 # SunOS /usr/etc/install
2536 # IRIX /sbin/install
2537 # AIX /bin/install
2538 # AmigaOS /C/install, which installs bootblocks on floppy discs
2539 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2540 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2541 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2542 # OS/2's system install, which has a completely different semantic
2543 # ./install, which can be erroneously created by make from ./install.sh.
2544 # Reject install programs that cannot install multiple files.
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2546 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2547 if test -z "$INSTALL"; then
2548 if ${ac_cv_path_install+:} false; then :
2549 $as_echo_n "(cached) " >&6
2550 else
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 for as_dir in $PATH
2553 do
2554 IFS=$as_save_IFS
2555 test -z "$as_dir" && as_dir=.
2556 # Account for people who put trailing slashes in PATH elements.
2557 case $as_dir/ in #((
2558 ./ | .// | /[cC]/* | \
2559 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2560 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2561 /usr/ucb/* ) ;;
2562 *)
2563 # OSF1 and SCO ODT 3.0 have their own names for install.
2564 # Don't use installbsd from OSF since it installs stuff as root
2565 # by default.
2566 for ac_prog in ginstall scoinst install; do
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2569 if test $ac_prog = install &&
2570 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2571 # AIX install. It has an incompatible calling convention.
2572 :
2573 elif test $ac_prog = install &&
2574 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2575 # program-specific install script used by HP pwplus--don't use.
2576 :
2577 else
2578 rm -rf conftest.one conftest.two conftest.dir
2579 echo one > conftest.one
2580 echo two > conftest.two
2581 mkdir conftest.dir
2582 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2583 test -s conftest.one && test -s conftest.two &&
2584 test -s conftest.dir/conftest.one &&
2585 test -s conftest.dir/conftest.two
2586 then
2587 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2588 break 3
2589 fi
2590 fi
2591 fi
2592 done
2593 done
2594 ;;
2595 esac
2596
2597 done
2598 IFS=$as_save_IFS
2599
2600 rm -rf conftest.one conftest.two conftest.dir
2601
2602 fi
2603 if test "${ac_cv_path_install+set}" = set; then
2604 INSTALL=$ac_cv_path_install
2605 else
2606 # As a last resort, use the slow shell script. Don't cache a
2607 # value for INSTALL within a source directory, because that will
2608 # break other packages using the cache if that directory is
2609 # removed, or if the value is a relative name.
2610 INSTALL=$ac_install_sh
2611 fi
2612 fi
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2614 $as_echo "$INSTALL" >&6; }
2615
2616 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2617 # It thinks the first close brace ends the variable substitution.
2618 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2619
2620 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2621
2622 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2623
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2625 $as_echo_n "checking whether build environment is sane... " >&6; }
2626 # Reject unsafe characters in $srcdir or the absolute working directory
2627 # name. Accept space and tab only in the latter.
2628 am_lf='
2629 '
2630 case `pwd` in
2631 *[\\\"\#\$\&\'\`$am_lf]*)
2632 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2633 esac
2634 case $srcdir in
2635 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2636 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2637 esac
2638
2639 # Do 'set' in a subshell so we don't clobber the current shell's
2640 # arguments. Must try -L first in case configure is actually a
2641 # symlink; some systems play weird games with the mod time of symlinks
2642 # (eg FreeBSD returns the mod time of the symlink's containing
2643 # directory).
2644 if (
2645 am_has_slept=no
2646 for am_try in 1 2; do
2647 echo "timestamp, slept: $am_has_slept" > conftest.file
2648 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2649 if test "$*" = "X"; then
2650 # -L didn't work.
2651 set X `ls -t "$srcdir/configure" conftest.file`
2652 fi
2653 if test "$*" != "X $srcdir/configure conftest.file" \
2654 && test "$*" != "X conftest.file $srcdir/configure"; then
2655
2656 # If neither matched, then we have a broken ls. This can happen
2657 # if, for instance, CONFIG_SHELL is bash and it inherits a
2658 # broken ls alias from the environment. This has actually
2659 # happened. Such a system could not be considered "sane".
2660 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2661 alias in your environment" "$LINENO" 5
2662 fi
2663 if test "$2" = conftest.file || test $am_try -eq 2; then
2664 break
2665 fi
2666 # Just in case.
2667 sleep 1
2668 am_has_slept=yes
2669 done
2670 test "$2" = conftest.file
2671 )
2672 then
2673 # Ok.
2674 :
2675 else
2676 as_fn_error $? "newly created file is older than distributed files!
2677 Check your system clock" "$LINENO" 5
2678 fi
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2680 $as_echo "yes" >&6; }
2681 # If we didn't sleep, we still need to ensure time stamps of config.status and
2682 # generated files are strictly newer.
2683 am_sleep_pid=
2684 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2685 ( sleep 1 ) &
2686 am_sleep_pid=$!
2687 fi
2688
2689 rm -f conftest.file
2690
2691 test "$program_prefix" != NONE &&
2692 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2693 # Use a double $ so make ignores it.
2694 test "$program_suffix" != NONE &&
2695 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2696 # Double any \ or $.
2697 # By default was `s,x,x', remove it if useless.
2698 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2699 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2700
2701 # Expand $ac_aux_dir to an absolute path.
2702 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2703
2704 if test x"${MISSING+set}" != xset; then
2705 case $am_aux_dir in
2706 *\ * | *\ *)
2707 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2708 *)
2709 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2710 esac
2711 fi
2712 # Use eval to expand $SHELL
2713 if eval "$MISSING --is-lightweight"; then
2714 am_missing_run="$MISSING "
2715 else
2716 am_missing_run=
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2718 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2719 fi
2720
2721 if test x"${install_sh+set}" != xset; then
2722 case $am_aux_dir in
2723 *\ * | *\ *)
2724 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2725 *)
2726 install_sh="\${SHELL} $am_aux_dir/install-sh"
2727 esac
2728 fi
2729
2730 # Installed binaries are usually stripped using 'strip' when the user
2731 # run "make install-strip". However 'strip' might not be the right
2732 # tool to use in cross-compilation environments, therefore Automake
2733 # will honor the 'STRIP' environment variable to overrule this program.
2734 if test "$cross_compiling" != no; then
2735 if test -n "$ac_tool_prefix"; then
2736 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2737 set dummy ${ac_tool_prefix}strip; ac_word=$2
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739 $as_echo_n "checking for $ac_word... " >&6; }
2740 if ${ac_cv_prog_STRIP+:} false; then :
2741 $as_echo_n "(cached) " >&6
2742 else
2743 if test -n "$STRIP"; then
2744 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2745 else
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH
2748 do
2749 IFS=$as_save_IFS
2750 test -z "$as_dir" && as_dir=.
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2753 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 break 2
2756 fi
2757 done
2758 done
2759 IFS=$as_save_IFS
2760
2761 fi
2762 fi
2763 STRIP=$ac_cv_prog_STRIP
2764 if test -n "$STRIP"; then
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2766 $as_echo "$STRIP" >&6; }
2767 else
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769 $as_echo "no" >&6; }
2770 fi
2771
2772
2773 fi
2774 if test -z "$ac_cv_prog_STRIP"; then
2775 ac_ct_STRIP=$STRIP
2776 # Extract the first word of "strip", so it can be a program name with args.
2777 set dummy strip; ac_word=$2
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779 $as_echo_n "checking for $ac_word... " >&6; }
2780 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2781 $as_echo_n "(cached) " >&6
2782 else
2783 if test -n "$ac_ct_STRIP"; then
2784 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2785 else
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2788 do
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2793 ac_cv_prog_ac_ct_STRIP="strip"
2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 break 2
2796 fi
2797 done
2798 done
2799 IFS=$as_save_IFS
2800
2801 fi
2802 fi
2803 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2804 if test -n "$ac_ct_STRIP"; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2806 $as_echo "$ac_ct_STRIP" >&6; }
2807 else
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 $as_echo "no" >&6; }
2810 fi
2811
2812 if test "x$ac_ct_STRIP" = x; then
2813 STRIP=":"
2814 else
2815 case $cross_compiling:$ac_tool_warned in
2816 yes:)
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2819 ac_tool_warned=yes ;;
2820 esac
2821 STRIP=$ac_ct_STRIP
2822 fi
2823 else
2824 STRIP="$ac_cv_prog_STRIP"
2825 fi
2826
2827 fi
2828 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2829
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2831 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2832 if test -z "$MKDIR_P"; then
2833 if ${ac_cv_path_mkdir+:} false; then :
2834 $as_echo_n "(cached) " >&6
2835 else
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2838 do
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_prog in mkdir gmkdir; do
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2844 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2845 'mkdir (GNU coreutils) '* | \
2846 'mkdir (coreutils) '* | \
2847 'mkdir (fileutils) '4.1*)
2848 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2849 break 3;;
2850 esac
2851 done
2852 done
2853 done
2854 IFS=$as_save_IFS
2855
2856 fi
2857
2858 test -d ./--version && rmdir ./--version
2859 if test "${ac_cv_path_mkdir+set}" = set; then
2860 MKDIR_P="$ac_cv_path_mkdir -p"
2861 else
2862 # As a last resort, use the slow shell script. Don't cache a
2863 # value for MKDIR_P within a source directory, because that will
2864 # break other packages using the cache if that directory is
2865 # removed, or if the value is a relative name.
2866 MKDIR_P="$ac_install_sh -d"
2867 fi
2868 fi
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2870 $as_echo "$MKDIR_P" >&6; }
2871
2872 for ac_prog in gawk mawk nawk awk
2873 do
2874 # Extract the first word of "$ac_prog", so it can be a program name with args.
2875 set dummy $ac_prog; ac_word=$2
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 $as_echo_n "checking for $ac_word... " >&6; }
2878 if ${ac_cv_prog_AWK+:} false; then :
2879 $as_echo_n "(cached) " >&6
2880 else
2881 if test -n "$AWK"; then
2882 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2886 do
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891 ac_cv_prog_AWK="$ac_prog"
2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2894 fi
2895 done
2896 done
2897 IFS=$as_save_IFS
2898
2899 fi
2900 fi
2901 AWK=$ac_cv_prog_AWK
2902 if test -n "$AWK"; then
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2904 $as_echo "$AWK" >&6; }
2905 else
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2908 fi
2909
2910
2911 test -n "$AWK" && break
2912 done
2913
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2915 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2916 set x ${MAKE-make}
2917 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2918 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2919 $as_echo_n "(cached) " >&6
2920 else
2921 cat >conftest.make <<\_ACEOF
2922 SHELL = /bin/sh
2923 all:
2924 @echo '@@@%%%=$(MAKE)=@@@%%%'
2925 _ACEOF
2926 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2927 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2928 *@@@%%%=?*=@@@%%%*)
2929 eval ac_cv_prog_make_${ac_make}_set=yes;;
2930 *)
2931 eval ac_cv_prog_make_${ac_make}_set=no;;
2932 esac
2933 rm -f conftest.make
2934 fi
2935 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2937 $as_echo "yes" >&6; }
2938 SET_MAKE=
2939 else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2942 SET_MAKE="MAKE=${MAKE-make}"
2943 fi
2944
2945 rm -rf .tst 2>/dev/null
2946 mkdir .tst 2>/dev/null
2947 if test -d .tst; then
2948 am__leading_dot=.
2949 else
2950 am__leading_dot=_
2951 fi
2952 rmdir .tst 2>/dev/null
2953
2954 # Check whether --enable-silent-rules was given.
2955 if test "${enable_silent_rules+set}" = set; then :
2956 enableval=$enable_silent_rules;
2957 fi
2958
2959 case $enable_silent_rules in # (((
2960 yes) AM_DEFAULT_VERBOSITY=0;;
2961 no) AM_DEFAULT_VERBOSITY=1;;
2962 *) AM_DEFAULT_VERBOSITY=1;;
2963 esac
2964 am_make=${MAKE-make}
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2966 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2967 if ${am_cv_make_support_nested_variables+:} false; then :
2968 $as_echo_n "(cached) " >&6
2969 else
2970 if $as_echo 'TRUE=$(BAR$(V))
2971 BAR0=false
2972 BAR1=true
2973 V=1
2974 am__doit:
2975 @$(TRUE)
2976 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2977 am_cv_make_support_nested_variables=yes
2978 else
2979 am_cv_make_support_nested_variables=no
2980 fi
2981 fi
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2983 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2984 if test $am_cv_make_support_nested_variables = yes; then
2985 AM_V='$(V)'
2986 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2987 else
2988 AM_V=$AM_DEFAULT_VERBOSITY
2989 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2990 fi
2991 AM_BACKSLASH='\'
2992
2993 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2994 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2995 # is not polluted with repeated "-I."
2996 am__isrc=' -I$(srcdir)'
2997 # test to see if srcdir already configured
2998 if test -f $srcdir/config.status; then
2999 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3000 fi
3001 fi
3002
3003 # test whether we have cygpath
3004 if test -z "$CYGPATH_W"; then
3005 if (cygpath --version) >/dev/null 2>/dev/null; then
3006 CYGPATH_W='cygpath -w'
3007 else
3008 CYGPATH_W=echo
3009 fi
3010 fi
3011
3012
3013 # Define the identity of the package.
3014 PACKAGE='gas'
3015 VERSION='2.45'
3016
3017
3018 cat >>confdefs.h <<_ACEOF
3019 #define PACKAGE "$PACKAGE"
3020 _ACEOF
3021
3022
3023 cat >>confdefs.h <<_ACEOF
3024 #define VERSION "$VERSION"
3025 _ACEOF
3026
3027 # Some tools Automake needs.
3028
3029 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3030
3031
3032 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3033
3034
3035 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3036
3037
3038 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3039
3040
3041 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3042
3043 # For better backward compatibility. To be removed once Automake 1.9.x
3044 # dies out for good. For more background, see:
3045 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3046 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3047 mkdir_p='$(MKDIR_P)'
3048
3049 # We need awk for the "check" target (and possibly the TAP driver). The
3050 # system "awk" is bad on some platforms.
3051 # Always define AMTAR for backward compatibility. Yes, it's still used
3052 # in the wild :-( We should find a proper way to deprecate it ...
3053 AMTAR='$${TAR-tar}'
3054
3055
3056 # We'll loop over all known methods to create a tar archive until one works.
3057 _am_tools='gnutar pax cpio none'
3058
3059 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3060
3061
3062
3063
3064
3065
3066 # POSIX will say in a future version that running "rm -f" with no argument
3067 # is OK; and we want to be able to make that assumption in our Makefile
3068 # recipes. So use an aggressive probe to check that the usage we want is
3069 # actually supported "in the wild" to an acceptable degree.
3070 # See automake bug#10828.
3071 # To make any issue more visible, cause the running configure to be aborted
3072 # by default if the 'rm' program in use doesn't match our expectations; the
3073 # user can still override this though.
3074 if rm -f && rm -fr && rm -rf; then : OK; else
3075 cat >&2 <<'END'
3076 Oops!
3077
3078 Your 'rm' program seems unable to run without file operands specified
3079 on the command line, even when the '-f' option is present. This is contrary
3080 to the behaviour of most rm programs out there, and not conforming with
3081 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3082
3083 Please tell bug-automake@gnu.org about your system, including the value
3084 of your $PATH and any error possibly output before this message. This
3085 can help us improve future automake versions.
3086
3087 END
3088 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3089 echo 'Configuration will proceed anyway, since you have set the' >&2
3090 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3091 echo >&2
3092 else
3093 cat >&2 <<'END'
3094 Aborting the configuration process, to ensure you take notice of the issue.
3095
3096 You can download and install GNU coreutils to get an 'rm' implementation
3097 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3098
3099 If you want to complete the configuration process using your problematic
3100 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3101 to "yes", and re-run configure.
3102
3103 END
3104 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3105 fi
3106 fi
3107
3108 # Check whether --enable-silent-rules was given.
3109 if test "${enable_silent_rules+set}" = set; then :
3110 enableval=$enable_silent_rules;
3111 fi
3112
3113 case $enable_silent_rules in # (((
3114 yes) AM_DEFAULT_VERBOSITY=0;;
3115 no) AM_DEFAULT_VERBOSITY=1;;
3116 *) AM_DEFAULT_VERBOSITY=0;;
3117 esac
3118 am_make=${MAKE-make}
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3120 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3121 if ${am_cv_make_support_nested_variables+:} false; then :
3122 $as_echo_n "(cached) " >&6
3123 else
3124 if $as_echo 'TRUE=$(BAR$(V))
3125 BAR0=false
3126 BAR1=true
3127 V=1
3128 am__doit:
3129 @$(TRUE)
3130 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3131 am_cv_make_support_nested_variables=yes
3132 else
3133 am_cv_make_support_nested_variables=no
3134 fi
3135 fi
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3137 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3138 if test $am_cv_make_support_nested_variables = yes; then
3139 AM_V='$(V)'
3140 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3141 else
3142 AM_V=$AM_DEFAULT_VERBOSITY
3143 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3144 fi
3145 AM_BACKSLASH='\'
3146
3147
3148 ac_ext=c
3149 ac_cpp='$CPP $CPPFLAGS'
3150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3153 if test -n "$ac_tool_prefix"; then
3154 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3155 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_CC+:} false; then :
3159 $as_echo_n "(cached) " >&6
3160 else
3161 if test -n "$CC"; then
3162 ac_cv_prog_CC="$CC" # Let the user override the test.
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3166 do
3167 IFS=$as_save_IFS
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 break 2
3174 fi
3175 done
3176 done
3177 IFS=$as_save_IFS
3178
3179 fi
3180 fi
3181 CC=$ac_cv_prog_CC
3182 if test -n "$CC"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184 $as_echo "$CC" >&6; }
3185 else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 fi
3189
3190
3191 fi
3192 if test -z "$ac_cv_prog_CC"; then
3193 ac_ct_CC=$CC
3194 # Extract the first word of "gcc", so it can be a program name with args.
3195 set dummy gcc; ac_word=$2
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3199 $as_echo_n "(cached) " >&6
3200 else
3201 if test -n "$ac_ct_CC"; then
3202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3203 else
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205 for as_dir in $PATH
3206 do
3207 IFS=$as_save_IFS
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3211 ac_cv_prog_ac_ct_CC="gcc"
3212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 break 2
3214 fi
3215 done
3216 done
3217 IFS=$as_save_IFS
3218
3219 fi
3220 fi
3221 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3222 if test -n "$ac_ct_CC"; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3224 $as_echo "$ac_ct_CC" >&6; }
3225 else
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3228 fi
3229
3230 if test "x$ac_ct_CC" = x; then
3231 CC=""
3232 else
3233 case $cross_compiling:$ac_tool_warned in
3234 yes:)
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3237 ac_tool_warned=yes ;;
3238 esac
3239 CC=$ac_ct_CC
3240 fi
3241 else
3242 CC="$ac_cv_prog_CC"
3243 fi
3244
3245 if test -z "$CC"; then
3246 if test -n "$ac_tool_prefix"; then
3247 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3248 set dummy ${ac_tool_prefix}cc; ac_word=$2
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250 $as_echo_n "checking for $ac_word... " >&6; }
3251 if ${ac_cv_prog_CC+:} false; then :
3252 $as_echo_n "(cached) " >&6
3253 else
3254 if test -n "$CC"; then
3255 ac_cv_prog_CC="$CC" # Let the user override the test.
3256 else
3257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258 for as_dir in $PATH
3259 do
3260 IFS=$as_save_IFS
3261 test -z "$as_dir" && as_dir=.
3262 for ac_exec_ext in '' $ac_executable_extensions; do
3263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3264 ac_cv_prog_CC="${ac_tool_prefix}cc"
3265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 break 2
3267 fi
3268 done
3269 done
3270 IFS=$as_save_IFS
3271
3272 fi
3273 fi
3274 CC=$ac_cv_prog_CC
3275 if test -n "$CC"; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3277 $as_echo "$CC" >&6; }
3278 else
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3281 fi
3282
3283
3284 fi
3285 fi
3286 if test -z "$CC"; then
3287 # Extract the first word of "cc", so it can be a program name with args.
3288 set dummy cc; ac_word=$2
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3290 $as_echo_n "checking for $ac_word... " >&6; }
3291 if ${ac_cv_prog_CC+:} false; then :
3292 $as_echo_n "(cached) " >&6
3293 else
3294 if test -n "$CC"; then
3295 ac_cv_prog_CC="$CC" # Let the user override the test.
3296 else
3297 ac_prog_rejected=no
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH
3300 do
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3306 ac_prog_rejected=yes
3307 continue
3308 fi
3309 ac_cv_prog_CC="cc"
3310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 break 2
3312 fi
3313 done
3314 done
3315 IFS=$as_save_IFS
3316
3317 if test $ac_prog_rejected = yes; then
3318 # We found a bogon in the path, so make sure we never use it.
3319 set dummy $ac_cv_prog_CC
3320 shift
3321 if test $# != 0; then
3322 # We chose a different compiler from the bogus one.
3323 # However, it has the same basename, so the bogon will be chosen
3324 # first if we set CC to just the basename; use the full file name.
3325 shift
3326 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3327 fi
3328 fi
3329 fi
3330 fi
3331 CC=$ac_cv_prog_CC
3332 if test -n "$CC"; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3334 $as_echo "$CC" >&6; }
3335 else
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 fi
3339
3340
3341 fi
3342 if test -z "$CC"; then
3343 if test -n "$ac_tool_prefix"; then
3344 for ac_prog in cl.exe
3345 do
3346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3347 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349 $as_echo_n "checking for $ac_word... " >&6; }
3350 if ${ac_cv_prog_CC+:} false; then :
3351 $as_echo_n "(cached) " >&6
3352 else
3353 if test -n "$CC"; then
3354 ac_cv_prog_CC="$CC" # Let the user override the test.
3355 else
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH
3358 do
3359 IFS=$as_save_IFS
3360 test -z "$as_dir" && as_dir=.
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3363 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 break 2
3366 fi
3367 done
3368 done
3369 IFS=$as_save_IFS
3370
3371 fi
3372 fi
3373 CC=$ac_cv_prog_CC
3374 if test -n "$CC"; then
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3376 $as_echo "$CC" >&6; }
3377 else
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379 $as_echo "no" >&6; }
3380 fi
3381
3382
3383 test -n "$CC" && break
3384 done
3385 fi
3386 if test -z "$CC"; then
3387 ac_ct_CC=$CC
3388 for ac_prog in cl.exe
3389 do
3390 # Extract the first word of "$ac_prog", so it can be a program name with args.
3391 set dummy $ac_prog; ac_word=$2
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393 $as_echo_n "checking for $ac_word... " >&6; }
3394 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3395 $as_echo_n "(cached) " >&6
3396 else
3397 if test -n "$ac_ct_CC"; then
3398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3399 else
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH
3402 do
3403 IFS=$as_save_IFS
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407 ac_cv_prog_ac_ct_CC="$ac_prog"
3408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3409 break 2
3410 fi
3411 done
3412 done
3413 IFS=$as_save_IFS
3414
3415 fi
3416 fi
3417 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3418 if test -n "$ac_ct_CC"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3420 $as_echo "$ac_ct_CC" >&6; }
3421 else
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423 $as_echo "no" >&6; }
3424 fi
3425
3426
3427 test -n "$ac_ct_CC" && break
3428 done
3429
3430 if test "x$ac_ct_CC" = x; then
3431 CC=""
3432 else
3433 case $cross_compiling:$ac_tool_warned in
3434 yes:)
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3437 ac_tool_warned=yes ;;
3438 esac
3439 CC=$ac_ct_CC
3440 fi
3441 fi
3442
3443 fi
3444
3445
3446 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3448 as_fn_error $? "no acceptable C compiler found in \$PATH
3449 See \`config.log' for more details" "$LINENO" 5; }
3450
3451 # Provide some information about the compiler.
3452 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3453 set X $ac_compile
3454 ac_compiler=$2
3455 for ac_option in --version -v -V -qversion; do
3456 { { ac_try="$ac_compiler $ac_option >&5"
3457 case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3460 esac
3461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462 $as_echo "$ac_try_echo"; } >&5
3463 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3464 ac_status=$?
3465 if test -s conftest.err; then
3466 sed '10a\
3467 ... rest of stderr output deleted ...
3468 10q' conftest.err >conftest.er1
3469 cat conftest.er1 >&5
3470 fi
3471 rm -f conftest.er1 conftest.err
3472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473 test $ac_status = 0; }
3474 done
3475
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h. */
3478
3479 int
3480 main ()
3481 {
3482
3483 ;
3484 return 0;
3485 }
3486 _ACEOF
3487 ac_clean_files_save=$ac_clean_files
3488 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3489 # Try to create an executable without -o first, disregard a.out.
3490 # It will help us diagnose broken compilers, and finding out an intuition
3491 # of exeext.
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3493 $as_echo_n "checking whether the C compiler works... " >&6; }
3494 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3495
3496 # The possible output files:
3497 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3498
3499 ac_rmfiles=
3500 for ac_file in $ac_files
3501 do
3502 case $ac_file in
3503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3504 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3505 esac
3506 done
3507 rm -f $ac_rmfiles
3508
3509 if { { ac_try="$ac_link_default"
3510 case "(($ac_try" in
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3513 esac
3514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515 $as_echo "$ac_try_echo"; } >&5
3516 (eval "$ac_link_default") 2>&5
3517 ac_status=$?
3518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519 test $ac_status = 0; }; then :
3520 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3521 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3522 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3523 # so that the user can short-circuit this test for compilers unknown to
3524 # Autoconf.
3525 for ac_file in $ac_files ''
3526 do
3527 test -f "$ac_file" || continue
3528 case $ac_file in
3529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3530 ;;
3531 [ab].out )
3532 # We found the default executable, but exeext='' is most
3533 # certainly right.
3534 break;;
3535 *.* )
3536 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3537 then :; else
3538 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3539 fi
3540 # We set ac_cv_exeext here because the later test for it is not
3541 # safe: cross compilers may not add the suffix if given an `-o'
3542 # argument, so we may need to know it at that point already.
3543 # Even if this section looks crufty: it has the advantage of
3544 # actually working.
3545 break;;
3546 * )
3547 break;;
3548 esac
3549 done
3550 test "$ac_cv_exeext" = no && ac_cv_exeext=
3551
3552 else
3553 ac_file=''
3554 fi
3555 if test -z "$ac_file"; then :
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557 $as_echo "no" >&6; }
3558 $as_echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3560
3561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563 as_fn_error 77 "C compiler cannot create executables
3564 See \`config.log' for more details" "$LINENO" 5; }
3565 else
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3567 $as_echo "yes" >&6; }
3568 fi
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3570 $as_echo_n "checking for C compiler default output file name... " >&6; }
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3572 $as_echo "$ac_file" >&6; }
3573 ac_exeext=$ac_cv_exeext
3574
3575 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3576 ac_clean_files=$ac_clean_files_save
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3578 $as_echo_n "checking for suffix of executables... " >&6; }
3579 if { { ac_try="$ac_link"
3580 case "(($ac_try" in
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3583 esac
3584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585 $as_echo "$ac_try_echo"; } >&5
3586 (eval "$ac_link") 2>&5
3587 ac_status=$?
3588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589 test $ac_status = 0; }; then :
3590 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3591 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3592 # work properly (i.e., refer to `conftest.exe'), while it won't with
3593 # `rm'.
3594 for ac_file in conftest.exe conftest conftest.*; do
3595 test -f "$ac_file" || continue
3596 case $ac_file in
3597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3598 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3599 break;;
3600 * ) break;;
3601 esac
3602 done
3603 else
3604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3606 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3607 See \`config.log' for more details" "$LINENO" 5; }
3608 fi
3609 rm -f conftest conftest$ac_cv_exeext
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3611 $as_echo "$ac_cv_exeext" >&6; }
3612
3613 rm -f conftest.$ac_ext
3614 EXEEXT=$ac_cv_exeext
3615 ac_exeext=$EXEEXT
3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617 /* end confdefs.h. */
3618 #include <stdio.h>
3619 int
3620 main ()
3621 {
3622 FILE *f = fopen ("conftest.out", "w");
3623 return ferror (f) || fclose (f) != 0;
3624
3625 ;
3626 return 0;
3627 }
3628 _ACEOF
3629 ac_clean_files="$ac_clean_files conftest.out"
3630 # Check that the compiler produces executables we can run. If not, either
3631 # the compiler is broken, or we cross compile.
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3633 $as_echo_n "checking whether we are cross compiling... " >&6; }
3634 if test "$cross_compiling" != yes; then
3635 { { ac_try="$ac_link"
3636 case "(($ac_try" in
3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3639 esac
3640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3641 $as_echo "$ac_try_echo"; } >&5
3642 (eval "$ac_link") 2>&5
3643 ac_status=$?
3644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3645 test $ac_status = 0; }
3646 if { ac_try='./conftest$ac_cv_exeext'
3647 { { case "(($ac_try" in
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3650 esac
3651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3652 $as_echo "$ac_try_echo"; } >&5
3653 (eval "$ac_try") 2>&5
3654 ac_status=$?
3655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3656 test $ac_status = 0; }; }; then
3657 cross_compiling=no
3658 else
3659 if test "$cross_compiling" = maybe; then
3660 cross_compiling=yes
3661 else
3662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3664 as_fn_error $? "cannot run C compiled programs.
3665 If you meant to cross compile, use \`--host'.
3666 See \`config.log' for more details" "$LINENO" 5; }
3667 fi
3668 fi
3669 fi
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3671 $as_echo "$cross_compiling" >&6; }
3672
3673 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3674 ac_clean_files=$ac_clean_files_save
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3676 $as_echo_n "checking for suffix of object files... " >&6; }
3677 if ${ac_cv_objext+:} false; then :
3678 $as_echo_n "(cached) " >&6
3679 else
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3682
3683 int
3684 main ()
3685 {
3686
3687 ;
3688 return 0;
3689 }
3690 _ACEOF
3691 rm -f conftest.o conftest.obj
3692 if { { ac_try="$ac_compile"
3693 case "(($ac_try" in
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3696 esac
3697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3698 $as_echo "$ac_try_echo"; } >&5
3699 (eval "$ac_compile") 2>&5
3700 ac_status=$?
3701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3702 test $ac_status = 0; }; then :
3703 for ac_file in conftest.o conftest.obj conftest.*; do
3704 test -f "$ac_file" || continue;
3705 case $ac_file in
3706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3707 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3708 break;;
3709 esac
3710 done
3711 else
3712 $as_echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3714
3715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3717 as_fn_error $? "cannot compute suffix of object files: cannot compile
3718 See \`config.log' for more details" "$LINENO" 5; }
3719 fi
3720 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3721 fi
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3723 $as_echo "$ac_cv_objext" >&6; }
3724 OBJEXT=$ac_cv_objext
3725 ac_objext=$OBJEXT
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3727 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3728 if ${ac_cv_c_compiler_gnu+:} false; then :
3729 $as_echo_n "(cached) " >&6
3730 else
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3733
3734 int
3735 main ()
3736 {
3737 #ifndef __GNUC__
3738 choke me
3739 #endif
3740
3741 ;
3742 return 0;
3743 }
3744 _ACEOF
3745 if ac_fn_c_try_compile "$LINENO"; then :
3746 ac_compiler_gnu=yes
3747 else
3748 ac_compiler_gnu=no
3749 fi
3750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3751 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3752
3753 fi
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3755 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3756 if test $ac_compiler_gnu = yes; then
3757 GCC=yes
3758 else
3759 GCC=
3760 fi
3761 ac_test_CFLAGS=${CFLAGS+set}
3762 ac_save_CFLAGS=$CFLAGS
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3764 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3765 if ${ac_cv_prog_cc_g+:} false; then :
3766 $as_echo_n "(cached) " >&6
3767 else
3768 ac_save_c_werror_flag=$ac_c_werror_flag
3769 ac_c_werror_flag=yes
3770 ac_cv_prog_cc_g=no
3771 CFLAGS="-g"
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3774
3775 int
3776 main ()
3777 {
3778
3779 ;
3780 return 0;
3781 }
3782 _ACEOF
3783 if ac_fn_c_try_compile "$LINENO"; then :
3784 ac_cv_prog_cc_g=yes
3785 else
3786 CFLAGS=""
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3789
3790 int
3791 main ()
3792 {
3793
3794 ;
3795 return 0;
3796 }
3797 _ACEOF
3798 if ac_fn_c_try_compile "$LINENO"; then :
3799
3800 else
3801 ac_c_werror_flag=$ac_save_c_werror_flag
3802 CFLAGS="-g"
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3805
3806 int
3807 main ()
3808 {
3809
3810 ;
3811 return 0;
3812 }
3813 _ACEOF
3814 if ac_fn_c_try_compile "$LINENO"; then :
3815 ac_cv_prog_cc_g=yes
3816 fi
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818 fi
3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 fi
3821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822 ac_c_werror_flag=$ac_save_c_werror_flag
3823 fi
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3825 $as_echo "$ac_cv_prog_cc_g" >&6; }
3826 if test "$ac_test_CFLAGS" = set; then
3827 CFLAGS=$ac_save_CFLAGS
3828 elif test $ac_cv_prog_cc_g = yes; then
3829 if test "$GCC" = yes; then
3830 CFLAGS="-g -O2"
3831 else
3832 CFLAGS="-g"
3833 fi
3834 else
3835 if test "$GCC" = yes; then
3836 CFLAGS="-O2"
3837 else
3838 CFLAGS=
3839 fi
3840 fi
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3842 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3843 if ${ac_cv_prog_cc_c89+:} false; then :
3844 $as_echo_n "(cached) " >&6
3845 else
3846 ac_cv_prog_cc_c89=no
3847 ac_save_CC=$CC
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3850 #include <stdarg.h>
3851 #include <stdio.h>
3852 struct stat;
3853 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3854 struct buf { int x; };
3855 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3856 static char *e (p, i)
3857 char **p;
3858 int i;
3859 {
3860 return p[i];
3861 }
3862 static char *f (char * (*g) (char **, int), char **p, ...)
3863 {
3864 char *s;
3865 va_list v;
3866 va_start (v,p);
3867 s = g (p, va_arg (v,int));
3868 va_end (v);
3869 return s;
3870 }
3871
3872 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3873 function prototypes and stuff, but not '\xHH' hex character constants.
3874 These don't provoke an error unfortunately, instead are silently treated
3875 as 'x'. The following induces an error, until -std is added to get
3876 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3877 array size at least. It's necessary to write '\x00'==0 to get something
3878 that's true only with -std. */
3879 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3880
3881 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3882 inside strings and character constants. */
3883 #define FOO(x) 'x'
3884 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3885
3886 int test (int i, double x);
3887 struct s1 {int (*f) (int a);};
3888 struct s2 {int (*f) (double a);};
3889 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3890 int argc;
3891 char **argv;
3892 int
3893 main ()
3894 {
3895 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3896 ;
3897 return 0;
3898 }
3899 _ACEOF
3900 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3901 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3902 do
3903 CC="$ac_save_CC $ac_arg"
3904 if ac_fn_c_try_compile "$LINENO"; then :
3905 ac_cv_prog_cc_c89=$ac_arg
3906 fi
3907 rm -f core conftest.err conftest.$ac_objext
3908 test "x$ac_cv_prog_cc_c89" != "xno" && break
3909 done
3910 rm -f conftest.$ac_ext
3911 CC=$ac_save_CC
3912
3913 fi
3914 # AC_CACHE_VAL
3915 case "x$ac_cv_prog_cc_c89" in
3916 x)
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3918 $as_echo "none needed" >&6; } ;;
3919 xno)
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3921 $as_echo "unsupported" >&6; } ;;
3922 *)
3923 CC="$CC $ac_cv_prog_cc_c89"
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3925 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3926 esac
3927 if test "x$ac_cv_prog_cc_c89" != xno; then :
3928
3929 fi
3930
3931 ac_ext=c
3932 ac_cpp='$CPP $CPPFLAGS'
3933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3936
3937 ac_ext=c
3938 ac_cpp='$CPP $CPPFLAGS'
3939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3943 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3944 if ${am_cv_prog_cc_c_o+:} false; then :
3945 $as_echo_n "(cached) " >&6
3946 else
3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h. */
3949
3950 int
3951 main ()
3952 {
3953
3954 ;
3955 return 0;
3956 }
3957 _ACEOF
3958 # Make sure it works both with $CC and with simple cc.
3959 # Following AC_PROG_CC_C_O, we do the test twice because some
3960 # compilers refuse to overwrite an existing .o file with -o,
3961 # though they will create one.
3962 am_cv_prog_cc_c_o=yes
3963 for am_i in 1 2; do
3964 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3965 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3966 ac_status=$?
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } \
3969 && test -f conftest2.$ac_objext; then
3970 : OK
3971 else
3972 am_cv_prog_cc_c_o=no
3973 break
3974 fi
3975 done
3976 rm -f core conftest*
3977 unset am_i
3978 fi
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3980 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3981 if test "$am_cv_prog_cc_c_o" != yes; then
3982 # Losing compiler, so override with the script.
3983 # FIXME: It is wrong to rewrite CC.
3984 # But if we don't then we get into trouble of one sort or another.
3985 # A longer-term fix would be to have automake use am__CC in this case,
3986 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3987 CC="$am_aux_dir/compile $CC"
3988 fi
3989 ac_ext=c
3990 ac_cpp='$CPP $CPPFLAGS'
3991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3994
3995 DEPDIR="${am__leading_dot}deps"
3996
3997 ac_config_commands="$ac_config_commands depfiles"
3998
3999
4000 am_make=${MAKE-make}
4001 cat > confinc << 'END'
4002 am__doit:
4003 @echo this is the am__doit target
4004 .PHONY: am__doit
4005 END
4006 # If we don't find an include directive, just comment out the code.
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4008 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4009 am__include="#"
4010 am__quote=
4011 _am_result=none
4012 # First try GNU make style include.
4013 echo "include confinc" > confmf
4014 # Ignore all kinds of additional output from 'make'.
4015 case `$am_make -s -f confmf 2> /dev/null` in #(
4016 *the\ am__doit\ target*)
4017 am__include=include
4018 am__quote=
4019 _am_result=GNU
4020 ;;
4021 esac
4022 # Now try BSD make style include.
4023 if test "$am__include" = "#"; then
4024 echo '.include "confinc"' > confmf
4025 case `$am_make -s -f confmf 2> /dev/null` in #(
4026 *the\ am__doit\ target*)
4027 am__include=.include
4028 am__quote="\""
4029 _am_result=BSD
4030 ;;
4031 esac
4032 fi
4033
4034
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4036 $as_echo "$_am_result" >&6; }
4037 rm -f confinc confmf
4038
4039 # Check whether --enable-dependency-tracking was given.
4040 if test "${enable_dependency_tracking+set}" = set; then :
4041 enableval=$enable_dependency_tracking;
4042 fi
4043
4044 if test "x$enable_dependency_tracking" != xno; then
4045 am_depcomp="$ac_aux_dir/depcomp"
4046 AMDEPBACKSLASH='\'
4047 am__nodep='_no'
4048 fi
4049 if test "x$enable_dependency_tracking" != xno; then
4050 AMDEP_TRUE=
4051 AMDEP_FALSE='#'
4052 else
4053 AMDEP_TRUE='#'
4054 AMDEP_FALSE=
4055 fi
4056
4057
4058
4059 depcc="$CC" am_compiler_list=
4060
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4062 $as_echo_n "checking dependency style of $depcc... " >&6; }
4063 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4064 $as_echo_n "(cached) " >&6
4065 else
4066 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4067 # We make a subdir and do the tests there. Otherwise we can end up
4068 # making bogus files that we don't know about and never remove. For
4069 # instance it was reported that on HP-UX the gcc test will end up
4070 # making a dummy file named 'D' -- because '-MD' means "put the output
4071 # in D".
4072 rm -rf conftest.dir
4073 mkdir conftest.dir
4074 # Copy depcomp to subdir because otherwise we won't find it if we're
4075 # using a relative directory.
4076 cp "$am_depcomp" conftest.dir
4077 cd conftest.dir
4078 # We will build objects and dependencies in a subdirectory because
4079 # it helps to detect inapplicable dependency modes. For instance
4080 # both Tru64's cc and ICC support -MD to output dependencies as a
4081 # side effect of compilation, but ICC will put the dependencies in
4082 # the current directory while Tru64 will put them in the object
4083 # directory.
4084 mkdir sub
4085
4086 am_cv_CC_dependencies_compiler_type=none
4087 if test "$am_compiler_list" = ""; then
4088 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4089 fi
4090 am__universal=false
4091 case " $depcc " in #(
4092 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4093 esac
4094
4095 for depmode in $am_compiler_list; do
4096 # Setup a source with many dependencies, because some compilers
4097 # like to wrap large dependency lists on column 80 (with \), and
4098 # we should not choose a depcomp mode which is confused by this.
4099 #
4100 # We need to recreate these files for each test, as the compiler may
4101 # overwrite some of them when testing with obscure command lines.
4102 # This happens at least with the AIX C compiler.
4103 : > sub/conftest.c
4104 for i in 1 2 3 4 5 6; do
4105 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4106 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4107 # Solaris 10 /bin/sh.
4108 echo '/* dummy */' > sub/conftst$i.h
4109 done
4110 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4111
4112 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4113 # mode. It turns out that the SunPro C++ compiler does not properly
4114 # handle '-M -o', and we need to detect this. Also, some Intel
4115 # versions had trouble with output in subdirs.
4116 am__obj=sub/conftest.${OBJEXT-o}
4117 am__minus_obj="-o $am__obj"
4118 case $depmode in
4119 gcc)
4120 # This depmode causes a compiler race in universal mode.
4121 test "$am__universal" = false || continue
4122 ;;
4123 nosideeffect)
4124 # After this tag, mechanisms are not by side-effect, so they'll
4125 # only be used when explicitly requested.
4126 if test "x$enable_dependency_tracking" = xyes; then
4127 continue
4128 else
4129 break
4130 fi
4131 ;;
4132 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4133 # This compiler won't grok '-c -o', but also, the minuso test has
4134 # not run yet. These depmodes are late enough in the game, and
4135 # so weak that their functioning should not be impacted.
4136 am__obj=conftest.${OBJEXT-o}
4137 am__minus_obj=
4138 ;;
4139 none) break ;;
4140 esac
4141 if depmode=$depmode \
4142 source=sub/conftest.c object=$am__obj \
4143 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4144 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4145 >/dev/null 2>conftest.err &&
4146 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4147 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4148 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4149 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4150 # icc doesn't choke on unknown options, it will just issue warnings
4151 # or remarks (even with -Werror). So we grep stderr for any message
4152 # that says an option was ignored or not supported.
4153 # When given -MP, icc 7.0 and 7.1 complain thusly:
4154 # icc: Command line warning: ignoring option '-M'; no argument required
4155 # The diagnosis changed in icc 8.0:
4156 # icc: Command line remark: option '-MP' not supported
4157 if (grep 'ignoring option' conftest.err ||
4158 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4159 am_cv_CC_dependencies_compiler_type=$depmode
4160 break
4161 fi
4162 fi
4163 done
4164
4165 cd ..
4166 rm -rf conftest.dir
4167 else
4168 am_cv_CC_dependencies_compiler_type=none
4169 fi
4170
4171 fi
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4173 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4174 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4175
4176 if
4177 test "x$enable_dependency_tracking" != xno \
4178 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4179 am__fastdepCC_TRUE=
4180 am__fastdepCC_FALSE='#'
4181 else
4182 am__fastdepCC_TRUE='#'
4183 am__fastdepCC_FALSE=
4184 fi
4185
4186
4187
4188 ac_ext=c
4189 ac_cpp='$CPP $CPPFLAGS'
4190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4194 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4195 # On Suns, sometimes $CPP names a directory.
4196 if test -n "$CPP" && test -d "$CPP"; then
4197 CPP=
4198 fi
4199 if test -z "$CPP"; then
4200 if ${ac_cv_prog_CPP+:} false; then :
4201 $as_echo_n "(cached) " >&6
4202 else
4203 # Double quotes because CPP needs to be expanded
4204 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4205 do
4206 ac_preproc_ok=false
4207 for ac_c_preproc_warn_flag in '' yes
4208 do
4209 # Use a header file that comes with gcc, so configuring glibc
4210 # with a fresh cross-compiler works.
4211 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4212 # <limits.h> exists even on freestanding compilers.
4213 # On the NeXT, cc -E runs the code through the compiler's parser,
4214 # not just through cpp. "Syntax error" is here to catch this case.
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4217 #ifdef __STDC__
4218 # include <limits.h>
4219 #else
4220 # include <assert.h>
4221 #endif
4222 Syntax error
4223 _ACEOF
4224 if ac_fn_c_try_cpp "$LINENO"; then :
4225
4226 else
4227 # Broken: fails on valid input.
4228 continue
4229 fi
4230 rm -f conftest.err conftest.i conftest.$ac_ext
4231
4232 # OK, works on sane cases. Now check whether nonexistent headers
4233 # can be detected and how.
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4236 #include <ac_nonexistent.h>
4237 _ACEOF
4238 if ac_fn_c_try_cpp "$LINENO"; then :
4239 # Broken: success on invalid input.
4240 continue
4241 else
4242 # Passes both tests.
4243 ac_preproc_ok=:
4244 break
4245 fi
4246 rm -f conftest.err conftest.i conftest.$ac_ext
4247
4248 done
4249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4250 rm -f conftest.i conftest.err conftest.$ac_ext
4251 if $ac_preproc_ok; then :
4252 break
4253 fi
4254
4255 done
4256 ac_cv_prog_CPP=$CPP
4257
4258 fi
4259 CPP=$ac_cv_prog_CPP
4260 else
4261 ac_cv_prog_CPP=$CPP
4262 fi
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4264 $as_echo "$CPP" >&6; }
4265 ac_preproc_ok=false
4266 for ac_c_preproc_warn_flag in '' yes
4267 do
4268 # Use a header file that comes with gcc, so configuring glibc
4269 # with a fresh cross-compiler works.
4270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4271 # <limits.h> exists even on freestanding compilers.
4272 # On the NeXT, cc -E runs the code through the compiler's parser,
4273 # not just through cpp. "Syntax error" is here to catch this case.
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4276 #ifdef __STDC__
4277 # include <limits.h>
4278 #else
4279 # include <assert.h>
4280 #endif
4281 Syntax error
4282 _ACEOF
4283 if ac_fn_c_try_cpp "$LINENO"; then :
4284
4285 else
4286 # Broken: fails on valid input.
4287 continue
4288 fi
4289 rm -f conftest.err conftest.i conftest.$ac_ext
4290
4291 # OK, works on sane cases. Now check whether nonexistent headers
4292 # can be detected and how.
4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h. */
4295 #include <ac_nonexistent.h>
4296 _ACEOF
4297 if ac_fn_c_try_cpp "$LINENO"; then :
4298 # Broken: success on invalid input.
4299 continue
4300 else
4301 # Passes both tests.
4302 ac_preproc_ok=:
4303 break
4304 fi
4305 rm -f conftest.err conftest.i conftest.$ac_ext
4306
4307 done
4308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4309 rm -f conftest.i conftest.err conftest.$ac_ext
4310 if $ac_preproc_ok; then :
4311
4312 else
4313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4315 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4316 See \`config.log' for more details" "$LINENO" 5; }
4317 fi
4318
4319 ac_ext=c
4320 ac_cpp='$CPP $CPPFLAGS'
4321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4324
4325
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4327 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4328 if ${ac_cv_path_GREP+:} false; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 if test -z "$GREP"; then
4332 ac_path_GREP_found=false
4333 # Loop through the user's path and test for each of PROGNAME-LIST
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4336 do
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_prog in grep ggrep; do
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4342 as_fn_executable_p "$ac_path_GREP" || continue
4343 # Check for GNU ac_path_GREP and select it if it is found.
4344 # Check for GNU $ac_path_GREP
4345 case `"$ac_path_GREP" --version 2>&1` in
4346 *GNU*)
4347 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4348 *)
4349 ac_count=0
4350 $as_echo_n 0123456789 >"conftest.in"
4351 while :
4352 do
4353 cat "conftest.in" "conftest.in" >"conftest.tmp"
4354 mv "conftest.tmp" "conftest.in"
4355 cp "conftest.in" "conftest.nl"
4356 $as_echo 'GREP' >> "conftest.nl"
4357 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4358 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4359 as_fn_arith $ac_count + 1 && ac_count=$as_val
4360 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4361 # Best one so far, save it but keep looking for a better one
4362 ac_cv_path_GREP="$ac_path_GREP"
4363 ac_path_GREP_max=$ac_count
4364 fi
4365 # 10*(2^10) chars as input seems more than enough
4366 test $ac_count -gt 10 && break
4367 done
4368 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4369 esac
4370
4371 $ac_path_GREP_found && break 3
4372 done
4373 done
4374 done
4375 IFS=$as_save_IFS
4376 if test -z "$ac_cv_path_GREP"; then
4377 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4378 fi
4379 else
4380 ac_cv_path_GREP=$GREP
4381 fi
4382
4383 fi
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4385 $as_echo "$ac_cv_path_GREP" >&6; }
4386 GREP="$ac_cv_path_GREP"
4387
4388
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4390 $as_echo_n "checking for egrep... " >&6; }
4391 if ${ac_cv_path_EGREP+:} false; then :
4392 $as_echo_n "(cached) " >&6
4393 else
4394 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4395 then ac_cv_path_EGREP="$GREP -E"
4396 else
4397 if test -z "$EGREP"; then
4398 ac_path_EGREP_found=false
4399 # Loop through the user's path and test for each of PROGNAME-LIST
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4402 do
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 for ac_prog in egrep; do
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4408 as_fn_executable_p "$ac_path_EGREP" || continue
4409 # Check for GNU ac_path_EGREP and select it if it is found.
4410 # Check for GNU $ac_path_EGREP
4411 case `"$ac_path_EGREP" --version 2>&1` in
4412 *GNU*)
4413 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4414 *)
4415 ac_count=0
4416 $as_echo_n 0123456789 >"conftest.in"
4417 while :
4418 do
4419 cat "conftest.in" "conftest.in" >"conftest.tmp"
4420 mv "conftest.tmp" "conftest.in"
4421 cp "conftest.in" "conftest.nl"
4422 $as_echo 'EGREP' >> "conftest.nl"
4423 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4424 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4425 as_fn_arith $ac_count + 1 && ac_count=$as_val
4426 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4427 # Best one so far, save it but keep looking for a better one
4428 ac_cv_path_EGREP="$ac_path_EGREP"
4429 ac_path_EGREP_max=$ac_count
4430 fi
4431 # 10*(2^10) chars as input seems more than enough
4432 test $ac_count -gt 10 && break
4433 done
4434 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4435 esac
4436
4437 $ac_path_EGREP_found && break 3
4438 done
4439 done
4440 done
4441 IFS=$as_save_IFS
4442 if test -z "$ac_cv_path_EGREP"; then
4443 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4444 fi
4445 else
4446 ac_cv_path_EGREP=$EGREP
4447 fi
4448
4449 fi
4450 fi
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4452 $as_echo "$ac_cv_path_EGREP" >&6; }
4453 EGREP="$ac_cv_path_EGREP"
4454
4455
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4457 $as_echo_n "checking for ANSI C header files... " >&6; }
4458 if ${ac_cv_header_stdc+:} false; then :
4459 $as_echo_n "(cached) " >&6
4460 else
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 /* end confdefs.h. */
4463 #include <stdlib.h>
4464 #include <stdarg.h>
4465 #include <string.h>
4466 #include <float.h>
4467
4468 int
4469 main ()
4470 {
4471
4472 ;
4473 return 0;
4474 }
4475 _ACEOF
4476 if ac_fn_c_try_compile "$LINENO"; then :
4477 ac_cv_header_stdc=yes
4478 else
4479 ac_cv_header_stdc=no
4480 fi
4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482
4483 if test $ac_cv_header_stdc = yes; then
4484 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4487 #include <string.h>
4488
4489 _ACEOF
4490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4491 $EGREP "memchr" >/dev/null 2>&1; then :
4492
4493 else
4494 ac_cv_header_stdc=no
4495 fi
4496 rm -f conftest*
4497
4498 fi
4499
4500 if test $ac_cv_header_stdc = yes; then
4501 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4504 #include <stdlib.h>
4505
4506 _ACEOF
4507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4508 $EGREP "free" >/dev/null 2>&1; then :
4509
4510 else
4511 ac_cv_header_stdc=no
4512 fi
4513 rm -f conftest*
4514
4515 fi
4516
4517 if test $ac_cv_header_stdc = yes; then
4518 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4519 if test "$cross_compiling" = yes; then :
4520 :
4521 else
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4524 #include <ctype.h>
4525 #include <stdlib.h>
4526 #if ((' ' & 0x0FF) == 0x020)
4527 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4528 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4529 #else
4530 # define ISLOWER(c) \
4531 (('a' <= (c) && (c) <= 'i') \
4532 || ('j' <= (c) && (c) <= 'r') \
4533 || ('s' <= (c) && (c) <= 'z'))
4534 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4535 #endif
4536
4537 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4538 int
4539 main ()
4540 {
4541 int i;
4542 for (i = 0; i < 256; i++)
4543 if (XOR (islower (i), ISLOWER (i))
4544 || toupper (i) != TOUPPER (i))
4545 return 2;
4546 return 0;
4547 }
4548 _ACEOF
4549 if ac_fn_c_try_run "$LINENO"; then :
4550
4551 else
4552 ac_cv_header_stdc=no
4553 fi
4554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4555 conftest.$ac_objext conftest.beam conftest.$ac_ext
4556 fi
4557
4558 fi
4559 fi
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4561 $as_echo "$ac_cv_header_stdc" >&6; }
4562 if test $ac_cv_header_stdc = yes; then
4563
4564 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4565
4566 fi
4567
4568 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4569 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4570 inttypes.h stdint.h unistd.h
4571 do :
4572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4573 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4574 "
4575 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4576 cat >>confdefs.h <<_ACEOF
4577 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4578 _ACEOF
4579
4580 fi
4581
4582 done
4583
4584
4585
4586 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4587 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4588 MINIX=yes
4589 else
4590 MINIX=
4591 fi
4592
4593
4594 if test "$MINIX" = yes; then
4595
4596 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4597
4598
4599 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4600
4601
4602 $as_echo "#define _MINIX 1" >>confdefs.h
4603
4604 fi
4605
4606
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4608 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4609 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4610 $as_echo_n "(cached) " >&6
4611 else
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4614
4615 # define __EXTENSIONS__ 1
4616 $ac_includes_default
4617 int
4618 main ()
4619 {
4620
4621 ;
4622 return 0;
4623 }
4624 _ACEOF
4625 if ac_fn_c_try_compile "$LINENO"; then :
4626 ac_cv_safe_to_define___extensions__=yes
4627 else
4628 ac_cv_safe_to_define___extensions__=no
4629 fi
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 fi
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4633 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4634 test $ac_cv_safe_to_define___extensions__ = yes &&
4635 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4636
4637 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4638
4639 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4640
4641 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4642
4643 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4644
4645
4646
4647 case `pwd` in
4648 *\ * | *\ *)
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4650 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4651 esac
4652
4653
4654
4655 macro_version='2.2.7a'
4656 macro_revision='1.3134'
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670 ltmain="$ac_aux_dir/ltmain.sh"
4671
4672 # Backslashify metacharacters that are still active within
4673 # double-quoted strings.
4674 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4675
4676 # Same as above, but do not quote variable references.
4677 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4678
4679 # Sed substitution to delay expansion of an escaped shell variable in a
4680 # double_quote_subst'ed string.
4681 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4682
4683 # Sed substitution to delay expansion of an escaped single quote.
4684 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4685
4686 # Sed substitution to avoid accidental globbing in evaled expressions
4687 no_glob_subst='s/\*/\\\*/g'
4688
4689 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4690 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4691 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4692
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4694 $as_echo_n "checking how to print strings... " >&6; }
4695 # Test print first, because it will be a builtin if present.
4696 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4697 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4698 ECHO='print -r --'
4699 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4700 ECHO='printf %s\n'
4701 else
4702 # Use this function as a fallback that always works.
4703 func_fallback_echo ()
4704 {
4705 eval 'cat <<_LTECHO_EOF
4706 $1
4707 _LTECHO_EOF'
4708 }
4709 ECHO='func_fallback_echo'
4710 fi
4711
4712 # func_echo_all arg...
4713 # Invoke $ECHO with all args, space-separated.
4714 func_echo_all ()
4715 {
4716 $ECHO ""
4717 }
4718
4719 case "$ECHO" in
4720 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4721 $as_echo "printf" >&6; } ;;
4722 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4723 $as_echo "print -r" >&6; } ;;
4724 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4725 $as_echo "cat" >&6; } ;;
4726 esac
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4742 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4743 if ${ac_cv_path_SED+:} false; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4747 for ac_i in 1 2 3 4 5 6 7; do
4748 ac_script="$ac_script$as_nl$ac_script"
4749 done
4750 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4751 { ac_script=; unset ac_script;}
4752 if test -z "$SED"; then
4753 ac_path_SED_found=false
4754 # Loop through the user's path and test for each of PROGNAME-LIST
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH
4757 do
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
4760 for ac_prog in sed gsed; do
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4763 as_fn_executable_p "$ac_path_SED" || continue
4764 # Check for GNU ac_path_SED and select it if it is found.
4765 # Check for GNU $ac_path_SED
4766 case `"$ac_path_SED" --version 2>&1` in
4767 *GNU*)
4768 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4769 *)
4770 ac_count=0
4771 $as_echo_n 0123456789 >"conftest.in"
4772 while :
4773 do
4774 cat "conftest.in" "conftest.in" >"conftest.tmp"
4775 mv "conftest.tmp" "conftest.in"
4776 cp "conftest.in" "conftest.nl"
4777 $as_echo '' >> "conftest.nl"
4778 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4779 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4780 as_fn_arith $ac_count + 1 && ac_count=$as_val
4781 if test $ac_count -gt ${ac_path_SED_max-0}; then
4782 # Best one so far, save it but keep looking for a better one
4783 ac_cv_path_SED="$ac_path_SED"
4784 ac_path_SED_max=$ac_count
4785 fi
4786 # 10*(2^10) chars as input seems more than enough
4787 test $ac_count -gt 10 && break
4788 done
4789 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4790 esac
4791
4792 $ac_path_SED_found && break 3
4793 done
4794 done
4795 done
4796 IFS=$as_save_IFS
4797 if test -z "$ac_cv_path_SED"; then
4798 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4799 fi
4800 else
4801 ac_cv_path_SED=$SED
4802 fi
4803
4804 fi
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4806 $as_echo "$ac_cv_path_SED" >&6; }
4807 SED="$ac_cv_path_SED"
4808 rm -f conftest.sed
4809
4810 test -z "$SED" && SED=sed
4811 Xsed="$SED -e 1s/^X//"
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4824 $as_echo_n "checking for fgrep... " >&6; }
4825 if ${ac_cv_path_FGREP+:} false; then :
4826 $as_echo_n "(cached) " >&6
4827 else
4828 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4829 then ac_cv_path_FGREP="$GREP -F"
4830 else
4831 if test -z "$FGREP"; then
4832 ac_path_FGREP_found=false
4833 # Loop through the user's path and test for each of PROGNAME-LIST
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4836 do
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
4839 for ac_prog in fgrep; do
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4842 as_fn_executable_p "$ac_path_FGREP" || continue
4843 # Check for GNU ac_path_FGREP and select it if it is found.
4844 # Check for GNU $ac_path_FGREP
4845 case `"$ac_path_FGREP" --version 2>&1` in
4846 *GNU*)
4847 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4848 *)
4849 ac_count=0
4850 $as_echo_n 0123456789 >"conftest.in"
4851 while :
4852 do
4853 cat "conftest.in" "conftest.in" >"conftest.tmp"
4854 mv "conftest.tmp" "conftest.in"
4855 cp "conftest.in" "conftest.nl"
4856 $as_echo 'FGREP' >> "conftest.nl"
4857 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4858 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4859 as_fn_arith $ac_count + 1 && ac_count=$as_val
4860 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4861 # Best one so far, save it but keep looking for a better one
4862 ac_cv_path_FGREP="$ac_path_FGREP"
4863 ac_path_FGREP_max=$ac_count
4864 fi
4865 # 10*(2^10) chars as input seems more than enough
4866 test $ac_count -gt 10 && break
4867 done
4868 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4869 esac
4870
4871 $ac_path_FGREP_found && break 3
4872 done
4873 done
4874 done
4875 IFS=$as_save_IFS
4876 if test -z "$ac_cv_path_FGREP"; then
4877 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4878 fi
4879 else
4880 ac_cv_path_FGREP=$FGREP
4881 fi
4882
4883 fi
4884 fi
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4886 $as_echo "$ac_cv_path_FGREP" >&6; }
4887 FGREP="$ac_cv_path_FGREP"
4888
4889
4890 test -z "$GREP" && GREP=grep
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910 # Check whether --with-gnu-ld was given.
4911 if test "${with_gnu_ld+set}" = set; then :
4912 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4913 else
4914 with_gnu_ld=no
4915 fi
4916
4917 ac_prog=ld
4918 if test "$GCC" = yes; then
4919 # Check if gcc -print-prog-name=ld gives a path.
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4921 $as_echo_n "checking for ld used by $CC... " >&6; }
4922 case $host in
4923 *-*-mingw*)
4924 # gcc leaves a trailing carriage return which upsets mingw
4925 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4926 *)
4927 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4928 esac
4929 case $ac_prog in
4930 # Accept absolute paths.
4931 [\\/]* | ?:[\\/]*)
4932 re_direlt='/[^/][^/]*/\.\./'
4933 # Canonicalize the pathname of ld
4934 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4935 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4936 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4937 done
4938 test -z "$LD" && LD="$ac_prog"
4939 ;;
4940 "")
4941 # If it fails, then pretend we aren't using GCC.
4942 ac_prog=ld
4943 ;;
4944 *)
4945 # If it is relative, then search for the first ld in PATH.
4946 with_gnu_ld=unknown
4947 ;;
4948 esac
4949 elif test "$with_gnu_ld" = yes; then
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4951 $as_echo_n "checking for GNU ld... " >&6; }
4952 else
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4954 $as_echo_n "checking for non-GNU ld... " >&6; }
4955 fi
4956 if ${lt_cv_path_LD+:} false; then :
4957 $as_echo_n "(cached) " >&6
4958 else
4959 if test -z "$LD"; then
4960 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4961 for ac_dir in $PATH; do
4962 IFS="$lt_save_ifs"
4963 test -z "$ac_dir" && ac_dir=.
4964 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4965 lt_cv_path_LD="$ac_dir/$ac_prog"
4966 # Check to see if the program is GNU ld. I'd rather use --version,
4967 # but apparently some variants of GNU ld only accept -v.
4968 # Break only if it was the GNU/non-GNU ld that we prefer.
4969 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4970 *GNU* | *'with BFD'*)
4971 test "$with_gnu_ld" != no && break
4972 ;;
4973 *)
4974 test "$with_gnu_ld" != yes && break
4975 ;;
4976 esac
4977 fi
4978 done
4979 IFS="$lt_save_ifs"
4980 else
4981 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4982 fi
4983 fi
4984
4985 LD="$lt_cv_path_LD"
4986 if test -n "$LD"; then
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4988 $as_echo "$LD" >&6; }
4989 else
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991 $as_echo "no" >&6; }
4992 fi
4993 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4995 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4996 if ${lt_cv_prog_gnu_ld+:} false; then :
4997 $as_echo_n "(cached) " >&6
4998 else
4999 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5000 case `$LD -v 2>&1 </dev/null` in
5001 *GNU* | *'with BFD'*)
5002 lt_cv_prog_gnu_ld=yes
5003 ;;
5004 *)
5005 lt_cv_prog_gnu_ld=no
5006 ;;
5007 esac
5008 fi
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5010 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5011 with_gnu_ld=$lt_cv_prog_gnu_ld
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5022 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5023 if ${lt_cv_path_NM+:} false; then :
5024 $as_echo_n "(cached) " >&6
5025 else
5026 if test -n "$NM"; then
5027 # Let the user override the nm to test.
5028 lt_nm_to_check="$NM"
5029 else
5030 lt_nm_to_check="${ac_tool_prefix}nm"
5031 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5032 lt_nm_to_check="$lt_nm_to_check nm"
5033 fi
5034 fi
5035 for lt_tmp_nm in "$lt_nm_to_check"; do
5036 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5037 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5038 IFS="$lt_save_ifs"
5039 test -z "$ac_dir" && ac_dir=.
5040 # Strip out any user-provided options from the nm to test twice,
5041 # the first time to test to see if nm (rather than its options) has
5042 # an explicit path, the second time to yield a file which can be
5043 # nm'ed itself.
5044 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5045 case "$tmp_nm_path" in
5046 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5047 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5048 esac
5049 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5050 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5051 # Check to see if the nm accepts a BSD-compat flag.
5052 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5053 # nm: unknown option "B" ignored
5054 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5055 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5056 break
5057 ;;
5058 *)
5059 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5060 *$tmp_nm*)
5061 lt_cv_path_NM="$tmp_nm -p"
5062 break
5063 ;;
5064 *)
5065 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5066 continue # so that we can try to find one that supports BSD flags
5067 ;;
5068 esac
5069 ;;
5070 esac
5071 fi
5072 done
5073 IFS="$lt_save_ifs"
5074 done
5075 : ${lt_cv_path_NM=no}
5076 fi
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5078 $as_echo "$lt_cv_path_NM" >&6; }
5079 if test "$lt_cv_path_NM" != "no"; then
5080 NM="$lt_cv_path_NM"
5081 else
5082 # Didn't find any BSD compatible name lister, look for dumpbin.
5083 if test -n "$DUMPBIN"; then :
5084 # Let the user override the test.
5085 else
5086 if test -n "$ac_tool_prefix"; then
5087 for ac_prog in dumpbin "link -dump"
5088 do
5089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if ${ac_cv_prog_DUMPBIN+:} false; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 if test -n "$DUMPBIN"; then
5097 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5098 else
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5101 do
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5106 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 break 2
5109 fi
5110 done
5111 done
5112 IFS=$as_save_IFS
5113
5114 fi
5115 fi
5116 DUMPBIN=$ac_cv_prog_DUMPBIN
5117 if test -n "$DUMPBIN"; then
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5119 $as_echo "$DUMPBIN" >&6; }
5120 else
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5123 fi
5124
5125
5126 test -n "$DUMPBIN" && break
5127 done
5128 fi
5129 if test -z "$DUMPBIN"; then
5130 ac_ct_DUMPBIN=$DUMPBIN
5131 for ac_prog in dumpbin "link -dump"
5132 do
5133 # Extract the first word of "$ac_prog", so it can be a program name with args.
5134 set dummy $ac_prog; ac_word=$2
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136 $as_echo_n "checking for $ac_word... " >&6; }
5137 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5138 $as_echo_n "(cached) " >&6
5139 else
5140 if test -n "$ac_ct_DUMPBIN"; then
5141 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5142 else
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH
5145 do
5146 IFS=$as_save_IFS
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5150 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 break 2
5153 fi
5154 done
5155 done
5156 IFS=$as_save_IFS
5157
5158 fi
5159 fi
5160 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5161 if test -n "$ac_ct_DUMPBIN"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5163 $as_echo "$ac_ct_DUMPBIN" >&6; }
5164 else
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166 $as_echo "no" >&6; }
5167 fi
5168
5169
5170 test -n "$ac_ct_DUMPBIN" && break
5171 done
5172
5173 if test "x$ac_ct_DUMPBIN" = x; then
5174 DUMPBIN=":"
5175 else
5176 case $cross_compiling:$ac_tool_warned in
5177 yes:)
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5180 ac_tool_warned=yes ;;
5181 esac
5182 DUMPBIN=$ac_ct_DUMPBIN
5183 fi
5184 fi
5185
5186 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5187 *COFF*)
5188 DUMPBIN="$DUMPBIN -symbols"
5189 ;;
5190 *)
5191 DUMPBIN=:
5192 ;;
5193 esac
5194 fi
5195
5196 if test "$DUMPBIN" != ":"; then
5197 NM="$DUMPBIN"
5198 fi
5199 fi
5200 test -z "$NM" && NM=nm
5201
5202
5203
5204
5205
5206
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5208 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5209 if ${lt_cv_nm_interface+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 lt_cv_nm_interface="BSD nm"
5213 echo "int some_variable = 0;" > conftest.$ac_ext
5214 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5215 (eval "$ac_compile" 2>conftest.err)
5216 cat conftest.err >&5
5217 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5218 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5219 cat conftest.err >&5
5220 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5221 cat conftest.out >&5
5222 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5223 lt_cv_nm_interface="MS dumpbin"
5224 fi
5225 rm -f conftest*
5226 fi
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5228 $as_echo "$lt_cv_nm_interface" >&6; }
5229
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5231 $as_echo_n "checking whether ln -s works... " >&6; }
5232 LN_S=$as_ln_s
5233 if test "$LN_S" = "ln -s"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5235 $as_echo "yes" >&6; }
5236 else
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5238 $as_echo "no, using $LN_S" >&6; }
5239 fi
5240
5241 # find the maximum length of command line arguments
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5243 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5244 if ${lt_cv_sys_max_cmd_len+:} false; then :
5245 $as_echo_n "(cached) " >&6
5246 else
5247 i=0
5248 teststring="ABCD"
5249
5250 case $build_os in
5251 msdosdjgpp*)
5252 # On DJGPP, this test can blow up pretty badly due to problems in libc
5253 # (any single argument exceeding 2000 bytes causes a buffer overrun
5254 # during glob expansion). Even if it were fixed, the result of this
5255 # check would be larger than it should be.
5256 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5257 ;;
5258
5259 gnu*)
5260 # Under GNU Hurd, this test is not required because there is
5261 # no limit to the length of command line arguments.
5262 # Libtool will interpret -1 as no limit whatsoever
5263 lt_cv_sys_max_cmd_len=-1;
5264 ;;
5265
5266 cygwin* | mingw* | cegcc*)
5267 # On Win9x/ME, this test blows up -- it succeeds, but takes
5268 # about 5 minutes as the teststring grows exponentially.
5269 # Worse, since 9x/ME are not pre-emptively multitasking,
5270 # you end up with a "frozen" computer, even though with patience
5271 # the test eventually succeeds (with a max line length of 256k).
5272 # Instead, let's just punt: use the minimum linelength reported by
5273 # all of the supported platforms: 8192 (on NT/2K/XP).
5274 lt_cv_sys_max_cmd_len=8192;
5275 ;;
5276
5277 mint*)
5278 # On MiNT this can take a long time and run out of memory.
5279 lt_cv_sys_max_cmd_len=8192;
5280 ;;
5281
5282 amigaos*)
5283 # On AmigaOS with pdksh, this test takes hours, literally.
5284 # So we just punt and use a minimum line length of 8192.
5285 lt_cv_sys_max_cmd_len=8192;
5286 ;;
5287
5288 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5289 # This has been around since 386BSD, at least. Likely further.
5290 if test -x /sbin/sysctl; then
5291 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5292 elif test -x /usr/sbin/sysctl; then
5293 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5294 else
5295 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5296 fi
5297 # And add a safety zone
5298 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5299 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5300 ;;
5301
5302 interix*)
5303 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5304 lt_cv_sys_max_cmd_len=196608
5305 ;;
5306
5307 osf*)
5308 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5309 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5310 # nice to cause kernel panics so lets avoid the loop below.
5311 # First set a reasonable default.
5312 lt_cv_sys_max_cmd_len=16384
5313 #
5314 if test -x /sbin/sysconfig; then
5315 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5316 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5317 esac
5318 fi
5319 ;;
5320 sco3.2v5*)
5321 lt_cv_sys_max_cmd_len=102400
5322 ;;
5323 sysv5* | sco5v6* | sysv4.2uw2*)
5324 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5325 if test -n "$kargmax"; then
5326 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5327 else
5328 lt_cv_sys_max_cmd_len=32768
5329 fi
5330 ;;
5331 *)
5332 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5333 if test -n "$lt_cv_sys_max_cmd_len"; then
5334 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5335 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5336 else
5337 # Make teststring a little bigger before we do anything with it.
5338 # a 1K string should be a reasonable start.
5339 for i in 1 2 3 4 5 6 7 8 ; do
5340 teststring=$teststring$teststring
5341 done
5342 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5343 # If test is not a shell built-in, we'll probably end up computing a
5344 # maximum length that is only half of the actual maximum length, but
5345 # we can't tell.
5346 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5347 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5348 test $i != 17 # 1/2 MB should be enough
5349 do
5350 i=`expr $i + 1`
5351 teststring=$teststring$teststring
5352 done
5353 # Only check the string length outside the loop.
5354 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5355 teststring=
5356 # Add a significant safety factor because C++ compilers can tack on
5357 # massive amounts of additional arguments before passing them to the
5358 # linker. It appears as though 1/2 is a usable value.
5359 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5360 fi
5361 ;;
5362 esac
5363
5364 fi
5365
5366 if test -n $lt_cv_sys_max_cmd_len ; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5368 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5369 else
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5371 $as_echo "none" >&6; }
5372 fi
5373 max_cmd_len=$lt_cv_sys_max_cmd_len
5374
5375
5376
5377
5378
5379
5380 : ${CP="cp -f"}
5381 : ${MV="mv -f"}
5382 : ${RM="rm -f"}
5383
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5385 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5386 # Try some XSI features
5387 xsi_shell=no
5388 ( _lt_dummy="a/b/c"
5389 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5390 = c,a/b,, \
5391 && eval 'test $(( 1 + 1 )) -eq 2 \
5392 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5393 && xsi_shell=yes
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5395 $as_echo "$xsi_shell" >&6; }
5396
5397
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5399 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5400 lt_shell_append=no
5401 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5402 >/dev/null 2>&1 \
5403 && lt_shell_append=yes
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5405 $as_echo "$lt_shell_append" >&6; }
5406
5407
5408 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5409 lt_unset=unset
5410 else
5411 lt_unset=false
5412 fi
5413
5414
5415
5416
5417
5418 # test EBCDIC or ASCII
5419 case `echo X|tr X '\101'` in
5420 A) # ASCII based system
5421 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5422 lt_SP2NL='tr \040 \012'
5423 lt_NL2SP='tr \015\012 \040\040'
5424 ;;
5425 *) # EBCDIC based system
5426 lt_SP2NL='tr \100 \n'
5427 lt_NL2SP='tr \r\n \100\100'
5428 ;;
5429 esac
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5440 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5441 if ${lt_cv_ld_reload_flag+:} false; then :
5442 $as_echo_n "(cached) " >&6
5443 else
5444 lt_cv_ld_reload_flag='-r'
5445 fi
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5447 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5448 reload_flag=$lt_cv_ld_reload_flag
5449 case $reload_flag in
5450 "" | " "*) ;;
5451 *) reload_flag=" $reload_flag" ;;
5452 esac
5453 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5454 case $host_os in
5455 darwin*)
5456 if test "$GCC" = yes; then
5457 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5458 else
5459 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5460 fi
5461 ;;
5462 esac
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472 if test -n "$ac_tool_prefix"; then
5473 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5474 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if ${ac_cv_prog_OBJDUMP+:} false; then :
5478 $as_echo_n "(cached) " >&6
5479 else
5480 if test -n "$OBJDUMP"; then
5481 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5482 else
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5485 do
5486 IFS=$as_save_IFS
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 break 2
5493 fi
5494 done
5495 done
5496 IFS=$as_save_IFS
5497
5498 fi
5499 fi
5500 OBJDUMP=$ac_cv_prog_OBJDUMP
5501 if test -n "$OBJDUMP"; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5503 $as_echo "$OBJDUMP" >&6; }
5504 else
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5507 fi
5508
5509
5510 fi
5511 if test -z "$ac_cv_prog_OBJDUMP"; then
5512 ac_ct_OBJDUMP=$OBJDUMP
5513 # Extract the first word of "objdump", so it can be a program name with args.
5514 set dummy objdump; ac_word=$2
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 if test -n "$ac_ct_OBJDUMP"; then
5521 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5522 else
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 for as_dir in $PATH
5525 do
5526 IFS=$as_save_IFS
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5530 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5532 break 2
5533 fi
5534 done
5535 done
5536 IFS=$as_save_IFS
5537
5538 fi
5539 fi
5540 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5541 if test -n "$ac_ct_OBJDUMP"; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5543 $as_echo "$ac_ct_OBJDUMP" >&6; }
5544 else
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5547 fi
5548
5549 if test "x$ac_ct_OBJDUMP" = x; then
5550 OBJDUMP="false"
5551 else
5552 case $cross_compiling:$ac_tool_warned in
5553 yes:)
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5556 ac_tool_warned=yes ;;
5557 esac
5558 OBJDUMP=$ac_ct_OBJDUMP
5559 fi
5560 else
5561 OBJDUMP="$ac_cv_prog_OBJDUMP"
5562 fi
5563
5564 test -z "$OBJDUMP" && OBJDUMP=objdump
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5575 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5576 if ${lt_cv_deplibs_check_method+:} false; then :
5577 $as_echo_n "(cached) " >&6
5578 else
5579 lt_cv_file_magic_cmd='$MAGIC_CMD'
5580 lt_cv_file_magic_test_file=
5581 lt_cv_deplibs_check_method='unknown'
5582 # Need to set the preceding variable on all platforms that support
5583 # interlibrary dependencies.
5584 # 'none' -- dependencies not supported.
5585 # `unknown' -- same as none, but documents that we really don't know.
5586 # 'pass_all' -- all dependencies passed with no checks.
5587 # 'test_compile' -- check by making test program.
5588 # 'file_magic [[regex]]' -- check by looking for files in library path
5589 # which responds to the $file_magic_cmd with a given extended regex.
5590 # If you have `file' or equivalent on your system and you're not sure
5591 # whether `pass_all' will *always* work, you probably want this one.
5592
5593 case $host_os in
5594 aix[4-9]*)
5595 lt_cv_deplibs_check_method=pass_all
5596 ;;
5597
5598 beos*)
5599 lt_cv_deplibs_check_method=pass_all
5600 ;;
5601
5602 bsdi[45]*)
5603 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5604 lt_cv_file_magic_cmd='/usr/bin/file -L'
5605 lt_cv_file_magic_test_file=/shlib/libc.so
5606 ;;
5607
5608 cygwin*)
5609 # func_win32_libid is a shell function defined in ltmain.sh
5610 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5611 lt_cv_file_magic_cmd='func_win32_libid'
5612 ;;
5613
5614 mingw* | pw32*)
5615 # Base MSYS/MinGW do not provide the 'file' command needed by
5616 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5617 # unless we find 'file', for example because we are cross-compiling.
5618 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5619 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5620 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5621 lt_cv_file_magic_cmd='func_win32_libid'
5622 else
5623 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5624 lt_cv_file_magic_cmd='$OBJDUMP -f'
5625 fi
5626 ;;
5627
5628 cegcc*)
5629 # use the weaker test based on 'objdump'. See mingw*.
5630 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5631 lt_cv_file_magic_cmd='$OBJDUMP -f'
5632 ;;
5633
5634 darwin* | rhapsody*)
5635 lt_cv_deplibs_check_method=pass_all
5636 ;;
5637
5638 freebsd* | dragonfly*)
5639 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5640 case $host_cpu in
5641 i*86 )
5642 # Not sure whether the presence of OpenBSD here was a mistake.
5643 # Let's accept both of them until this is cleared up.
5644 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5645 lt_cv_file_magic_cmd=/usr/bin/file
5646 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5647 ;;
5648 esac
5649 else
5650 lt_cv_deplibs_check_method=pass_all
5651 fi
5652 ;;
5653
5654 gnu*)
5655 lt_cv_deplibs_check_method=pass_all
5656 ;;
5657
5658 haiku*)
5659 lt_cv_deplibs_check_method=pass_all
5660 ;;
5661
5662 hpux10.20* | hpux11*)
5663 lt_cv_file_magic_cmd=/usr/bin/file
5664 case $host_cpu in
5665 ia64*)
5666 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5667 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5668 ;;
5669 hppa*64*)
5670 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]'
5671 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5672 ;;
5673 *)
5674 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5675 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5676 ;;
5677 esac
5678 ;;
5679
5680 interix[3-9]*)
5681 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5683 ;;
5684
5685 irix5* | irix6* | nonstopux*)
5686 case $LD in
5687 *-32|*"-32 ") libmagic=32-bit;;
5688 *-n32|*"-n32 ") libmagic=N32;;
5689 *-64|*"-64 ") libmagic=64-bit;;
5690 *) libmagic=never-match;;
5691 esac
5692 lt_cv_deplibs_check_method=pass_all
5693 ;;
5694
5695 # This must be Linux ELF.
5696 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
5697 lt_cv_deplibs_check_method=pass_all
5698 ;;
5699
5700 netbsd*)
5701 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5702 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5703 else
5704 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5705 fi
5706 ;;
5707
5708 newos6*)
5709 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5710 lt_cv_file_magic_cmd=/usr/bin/file
5711 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5712 ;;
5713
5714 *nto* | *qnx*)
5715 lt_cv_deplibs_check_method=pass_all
5716 ;;
5717
5718 openbsd*)
5719 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5720 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5721 else
5722 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5723 fi
5724 ;;
5725
5726 osf3* | osf4* | osf5*)
5727 lt_cv_deplibs_check_method=pass_all
5728 ;;
5729
5730 rdos*)
5731 lt_cv_deplibs_check_method=pass_all
5732 ;;
5733
5734 solaris*)
5735 lt_cv_deplibs_check_method=pass_all
5736 ;;
5737
5738 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5739 lt_cv_deplibs_check_method=pass_all
5740 ;;
5741
5742 sysv4 | sysv4.3*)
5743 case $host_vendor in
5744 motorola)
5745 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]'
5746 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5747 ;;
5748 ncr)
5749 lt_cv_deplibs_check_method=pass_all
5750 ;;
5751 sequent)
5752 lt_cv_file_magic_cmd='/bin/file'
5753 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5754 ;;
5755 sni)
5756 lt_cv_file_magic_cmd='/bin/file'
5757 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5758 lt_cv_file_magic_test_file=/lib/libc.so
5759 ;;
5760 siemens)
5761 lt_cv_deplibs_check_method=pass_all
5762 ;;
5763 pc)
5764 lt_cv_deplibs_check_method=pass_all
5765 ;;
5766 esac
5767 ;;
5768
5769 tpf*)
5770 lt_cv_deplibs_check_method=pass_all
5771 ;;
5772 vxworks*)
5773 # Assume VxWorks cross toolchains are built on Linux, possibly
5774 # as canadian for Windows hosts.
5775 lt_cv_deplibs_check_method=pass_all
5776 ;;
5777 esac
5778
5779 fi
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5781 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5782 file_magic_cmd=$lt_cv_file_magic_cmd
5783 deplibs_check_method=$lt_cv_deplibs_check_method
5784 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797 plugin_option=
5798 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5799 for plugin in $plugin_names; do
5800 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5801 if test x$plugin_so = x$plugin; then
5802 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5803 fi
5804 if test x$plugin_so != x$plugin; then
5805 plugin_option="--plugin $plugin_so"
5806 break
5807 fi
5808 done
5809
5810 if test -n "$ac_tool_prefix"; then
5811 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5812 set dummy ${ac_tool_prefix}ar; ac_word=$2
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814 $as_echo_n "checking for $ac_word... " >&6; }
5815 if ${ac_cv_prog_AR+:} false; then :
5816 $as_echo_n "(cached) " >&6
5817 else
5818 if test -n "$AR"; then
5819 ac_cv_prog_AR="$AR" # Let the user override the test.
5820 else
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH
5823 do
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5828 ac_cv_prog_AR="${ac_tool_prefix}ar"
5829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 break 2
5831 fi
5832 done
5833 done
5834 IFS=$as_save_IFS
5835
5836 fi
5837 fi
5838 AR=$ac_cv_prog_AR
5839 if test -n "$AR"; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5841 $as_echo "$AR" >&6; }
5842 else
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844 $as_echo "no" >&6; }
5845 fi
5846
5847
5848 fi
5849 if test -z "$ac_cv_prog_AR"; then
5850 ac_ct_AR=$AR
5851 # Extract the first word of "ar", so it can be a program name with args.
5852 set dummy ar; ac_word=$2
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854 $as_echo_n "checking for $ac_word... " >&6; }
5855 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5856 $as_echo_n "(cached) " >&6
5857 else
5858 if test -n "$ac_ct_AR"; then
5859 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5860 else
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH
5863 do
5864 IFS=$as_save_IFS
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5868 ac_cv_prog_ac_ct_AR="ar"
5869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 break 2
5871 fi
5872 done
5873 done
5874 IFS=$as_save_IFS
5875
5876 fi
5877 fi
5878 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5879 if test -n "$ac_ct_AR"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5881 $as_echo "$ac_ct_AR" >&6; }
5882 else
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5885 fi
5886
5887 if test "x$ac_ct_AR" = x; then
5888 AR="false"
5889 else
5890 case $cross_compiling:$ac_tool_warned in
5891 yes:)
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5894 ac_tool_warned=yes ;;
5895 esac
5896 AR=$ac_ct_AR
5897 fi
5898 else
5899 AR="$ac_cv_prog_AR"
5900 fi
5901
5902 test -z "$AR" && AR=ar
5903 if test -n "$plugin_option"; then
5904 if $AR --help 2>&1 | grep -q "\--plugin"; then
5905 touch conftest.c
5906 $AR $plugin_option rc conftest.a conftest.c
5907 if test "$?" != 0; then
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
5909 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
5910 else
5911 AR="$AR $plugin_option"
5912 fi
5913 rm -f conftest.*
5914 fi
5915 fi
5916 test -z "$AR_FLAGS" && AR_FLAGS=cru
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928 if test -n "$ac_tool_prefix"; then
5929 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5930 set dummy ${ac_tool_prefix}strip; ac_word=$2
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5932 $as_echo_n "checking for $ac_word... " >&6; }
5933 if ${ac_cv_prog_STRIP+:} false; then :
5934 $as_echo_n "(cached) " >&6
5935 else
5936 if test -n "$STRIP"; then
5937 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5938 else
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 for as_dir in $PATH
5941 do
5942 IFS=$as_save_IFS
5943 test -z "$as_dir" && as_dir=.
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5946 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 break 2
5949 fi
5950 done
5951 done
5952 IFS=$as_save_IFS
5953
5954 fi
5955 fi
5956 STRIP=$ac_cv_prog_STRIP
5957 if test -n "$STRIP"; then
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5959 $as_echo "$STRIP" >&6; }
5960 else
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5962 $as_echo "no" >&6; }
5963 fi
5964
5965
5966 fi
5967 if test -z "$ac_cv_prog_STRIP"; then
5968 ac_ct_STRIP=$STRIP
5969 # Extract the first word of "strip", so it can be a program name with args.
5970 set dummy strip; ac_word=$2
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972 $as_echo_n "checking for $ac_word... " >&6; }
5973 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5974 $as_echo_n "(cached) " >&6
5975 else
5976 if test -n "$ac_ct_STRIP"; then
5977 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5978 else
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 for as_dir in $PATH
5981 do
5982 IFS=$as_save_IFS
5983 test -z "$as_dir" && as_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5986 ac_cv_prog_ac_ct_STRIP="strip"
5987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5988 break 2
5989 fi
5990 done
5991 done
5992 IFS=$as_save_IFS
5993
5994 fi
5995 fi
5996 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5997 if test -n "$ac_ct_STRIP"; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5999 $as_echo "$ac_ct_STRIP" >&6; }
6000 else
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6002 $as_echo "no" >&6; }
6003 fi
6004
6005 if test "x$ac_ct_STRIP" = x; then
6006 STRIP=":"
6007 else
6008 case $cross_compiling:$ac_tool_warned in
6009 yes:)
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6012 ac_tool_warned=yes ;;
6013 esac
6014 STRIP=$ac_ct_STRIP
6015 fi
6016 else
6017 STRIP="$ac_cv_prog_STRIP"
6018 fi
6019
6020 test -z "$STRIP" && STRIP=:
6021
6022
6023
6024
6025
6026
6027 if test -n "$ac_tool_prefix"; then
6028 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6029 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6031 $as_echo_n "checking for $ac_word... " >&6; }
6032 if ${ac_cv_prog_RANLIB+:} false; then :
6033 $as_echo_n "(cached) " >&6
6034 else
6035 if test -n "$RANLIB"; then
6036 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6037 else
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 for as_dir in $PATH
6040 do
6041 IFS=$as_save_IFS
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6045 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 break 2
6048 fi
6049 done
6050 done
6051 IFS=$as_save_IFS
6052
6053 fi
6054 fi
6055 RANLIB=$ac_cv_prog_RANLIB
6056 if test -n "$RANLIB"; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6058 $as_echo "$RANLIB" >&6; }
6059 else
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061 $as_echo "no" >&6; }
6062 fi
6063
6064
6065 fi
6066 if test -z "$ac_cv_prog_RANLIB"; then
6067 ac_ct_RANLIB=$RANLIB
6068 # Extract the first word of "ranlib", so it can be a program name with args.
6069 set dummy ranlib; ac_word=$2
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071 $as_echo_n "checking for $ac_word... " >&6; }
6072 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075 if test -n "$ac_ct_RANLIB"; then
6076 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6077 else
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 for as_dir in $PATH
6080 do
6081 IFS=$as_save_IFS
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6085 ac_cv_prog_ac_ct_RANLIB="ranlib"
6086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 break 2
6088 fi
6089 done
6090 done
6091 IFS=$as_save_IFS
6092
6093 fi
6094 fi
6095 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6096 if test -n "$ac_ct_RANLIB"; then
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6098 $as_echo "$ac_ct_RANLIB" >&6; }
6099 else
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 $as_echo "no" >&6; }
6102 fi
6103
6104 if test "x$ac_ct_RANLIB" = x; then
6105 RANLIB=":"
6106 else
6107 case $cross_compiling:$ac_tool_warned in
6108 yes:)
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6111 ac_tool_warned=yes ;;
6112 esac
6113 RANLIB=$ac_ct_RANLIB
6114 fi
6115 else
6116 RANLIB="$ac_cv_prog_RANLIB"
6117 fi
6118
6119 test -z "$RANLIB" && RANLIB=:
6120 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6121 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6122 RANLIB="$RANLIB $plugin_option"
6123 fi
6124 fi
6125
6126
6127
6128
6129
6130
6131 # Determine commands to create old-style static archives.
6132 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6133 old_postinstall_cmds='chmod 644 $oldlib'
6134 old_postuninstall_cmds=
6135
6136 if test -n "$RANLIB"; then
6137 case $host_os in
6138 openbsd*)
6139 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6140 ;;
6141 *)
6142 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6143 ;;
6144 esac
6145 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6146 fi
6147
6148 case $host_os in
6149 darwin*)
6150 lock_old_archive_extraction=yes ;;
6151 *)
6152 lock_old_archive_extraction=no ;;
6153 esac
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193 # If no C compiler was specified, use CC.
6194 LTCC=${LTCC-"$CC"}
6195
6196 # If no C compiler flags were specified, use CFLAGS.
6197 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6198
6199 # Allow CC to be a program name with arguments.
6200 compiler=$CC
6201
6202
6203 # Check for command to grab the raw symbol name followed by C symbol from nm.
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6205 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6206 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6207 $as_echo_n "(cached) " >&6
6208 else
6209
6210 # These are sane defaults that work on at least a few old systems.
6211 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6212
6213 # Character class describing NM global symbol codes.
6214 symcode='[BCDEGRST]'
6215
6216 # Regexp to match symbols that can be accessed directly from C.
6217 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6218
6219 # Define system-specific variables.
6220 case $host_os in
6221 aix*)
6222 symcode='[BCDT]'
6223 ;;
6224 cygwin* | mingw* | pw32* | cegcc*)
6225 symcode='[ABCDGISTW]'
6226 ;;
6227 hpux*)
6228 if test "$host_cpu" = ia64; then
6229 symcode='[ABCDEGRST]'
6230 fi
6231 ;;
6232 irix* | nonstopux*)
6233 symcode='[BCDEGRST]'
6234 ;;
6235 osf*)
6236 symcode='[BCDEGQRST]'
6237 ;;
6238 solaris*)
6239 symcode='[BCDRT]'
6240 ;;
6241 sco3.2v5*)
6242 symcode='[DT]'
6243 ;;
6244 sysv4.2uw2*)
6245 symcode='[DT]'
6246 ;;
6247 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6248 symcode='[ABDT]'
6249 ;;
6250 sysv4)
6251 symcode='[DFNSTU]'
6252 ;;
6253 esac
6254
6255 # If we're using GNU nm, then use its standard symbol codes.
6256 case `$NM -V 2>&1` in
6257 *GNU* | *'with BFD'*)
6258 symcode='[ABCDGIRSTW]' ;;
6259 esac
6260
6261 # Transform an extracted symbol line into a proper C declaration.
6262 # Some systems (esp. on ia64) link data and code symbols differently,
6263 # so use this general approach.
6264 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6265
6266 # Transform an extracted symbol line into symbol name and symbol address
6267 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6268 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'"
6269
6270 # Handle CRLF in mingw tool chain
6271 opt_cr=
6272 case $build_os in
6273 mingw*)
6274 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6275 ;;
6276 esac
6277
6278 # Try without a prefix underscore, then with it.
6279 for ac_symprfx in "" "_"; do
6280
6281 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6282 symxfrm="\\1 $ac_symprfx\\2 \\2"
6283
6284 # Write the raw and C identifiers.
6285 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6286 # Fake it for dumpbin and say T for any non-static function
6287 # and D for any global variable.
6288 # Also find C++ and __fastcall symbols from MSVC++,
6289 # which start with @ or ?.
6290 lt_cv_sys_global_symbol_pipe="$AWK '"\
6291 " {last_section=section; section=\$ 3};"\
6292 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6293 " \$ 0!~/External *\|/{next};"\
6294 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6295 " {if(hide[section]) next};"\
6296 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6297 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6298 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6299 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6300 " ' prfx=^$ac_symprfx"
6301 else
6302 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6303 fi
6304
6305 # Check to see that the pipe works correctly.
6306 pipe_works=no
6307
6308 rm -f conftest*
6309 cat > conftest.$ac_ext <<_LT_EOF
6310 #ifdef __cplusplus
6311 extern "C" {
6312 #endif
6313 char nm_test_var;
6314 void nm_test_func(void);
6315 void nm_test_func(void){}
6316 #ifdef __cplusplus
6317 }
6318 #endif
6319 int main(){nm_test_var='a';nm_test_func();return(0);}
6320 _LT_EOF
6321
6322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6323 (eval $ac_compile) 2>&5
6324 ac_status=$?
6325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6326 test $ac_status = 0; }; then
6327 # Now try to grab the symbols.
6328 nlist=conftest.nm
6329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6330 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6331 ac_status=$?
6332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6333 test $ac_status = 0; } && test -s "$nlist"; then
6334 # Try sorting and uniquifying the output.
6335 if sort "$nlist" | uniq > "$nlist"T; then
6336 mv -f "$nlist"T "$nlist"
6337 else
6338 rm -f "$nlist"T
6339 fi
6340
6341 # Make sure that we snagged all the symbols we need.
6342 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6343 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6344 cat <<_LT_EOF > conftest.$ac_ext
6345 #ifdef __cplusplus
6346 extern "C" {
6347 #endif
6348
6349 _LT_EOF
6350 # Now generate the symbol file.
6351 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6352
6353 cat <<_LT_EOF >> conftest.$ac_ext
6354
6355 /* The mapping between symbol names and symbols. */
6356 const struct {
6357 const char *name;
6358 void *address;
6359 }
6360 lt__PROGRAM__LTX_preloaded_symbols[] =
6361 {
6362 { "@PROGRAM@", (void *) 0 },
6363 _LT_EOF
6364 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6365 cat <<\_LT_EOF >> conftest.$ac_ext
6366 {0, (void *) 0}
6367 };
6368
6369 /* This works around a problem in FreeBSD linker */
6370 #ifdef FREEBSD_WORKAROUND
6371 static const void *lt_preloaded_setup() {
6372 return lt__PROGRAM__LTX_preloaded_symbols;
6373 }
6374 #endif
6375
6376 #ifdef __cplusplus
6377 }
6378 #endif
6379 _LT_EOF
6380 # Now try linking the two files.
6381 mv conftest.$ac_objext conftstm.$ac_objext
6382 lt_save_LIBS="$LIBS"
6383 lt_save_CFLAGS="$CFLAGS"
6384 LIBS="conftstm.$ac_objext"
6385 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6387 (eval $ac_link) 2>&5
6388 ac_status=$?
6389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6390 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6391 pipe_works=yes
6392 fi
6393 LIBS="$lt_save_LIBS"
6394 CFLAGS="$lt_save_CFLAGS"
6395 else
6396 echo "cannot find nm_test_func in $nlist" >&5
6397 fi
6398 else
6399 echo "cannot find nm_test_var in $nlist" >&5
6400 fi
6401 else
6402 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6403 fi
6404 else
6405 echo "$progname: failed program was:" >&5
6406 cat conftest.$ac_ext >&5
6407 fi
6408 rm -rf conftest* conftst*
6409
6410 # Do not use the global_symbol_pipe unless it works.
6411 if test "$pipe_works" = yes; then
6412 break
6413 else
6414 lt_cv_sys_global_symbol_pipe=
6415 fi
6416 done
6417
6418 fi
6419
6420 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6421 lt_cv_sys_global_symbol_to_cdecl=
6422 fi
6423 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6425 $as_echo "failed" >&6; }
6426 else
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6428 $as_echo "ok" >&6; }
6429 fi
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452 # Check whether --enable-libtool-lock was given.
6453 if test "${enable_libtool_lock+set}" = set; then :
6454 enableval=$enable_libtool_lock;
6455 fi
6456
6457 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6458
6459 # Some flags need to be propagated to the compiler or linker for good
6460 # libtool support.
6461 case $host in
6462 ia64-*-hpux*)
6463 # Find out which ABI we are using.
6464 echo 'int i;' > conftest.$ac_ext
6465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6466 (eval $ac_compile) 2>&5
6467 ac_status=$?
6468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6469 test $ac_status = 0; }; then
6470 case `/usr/bin/file conftest.$ac_objext` in
6471 *ELF-32*)
6472 HPUX_IA64_MODE="32"
6473 ;;
6474 *ELF-64*)
6475 HPUX_IA64_MODE="64"
6476 ;;
6477 esac
6478 fi
6479 rm -rf conftest*
6480 ;;
6481 *-*-irix6*)
6482 # Find out which ABI we are using.
6483 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6485 (eval $ac_compile) 2>&5
6486 ac_status=$?
6487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6488 test $ac_status = 0; }; then
6489 if test "$lt_cv_prog_gnu_ld" = yes; then
6490 case `/usr/bin/file conftest.$ac_objext` in
6491 *32-bit*)
6492 LD="${LD-ld} -melf32bsmip"
6493 ;;
6494 *N32*)
6495 LD="${LD-ld} -melf32bmipn32"
6496 ;;
6497 *64-bit*)
6498 LD="${LD-ld} -melf64bmip"
6499 ;;
6500 esac
6501 else
6502 case `/usr/bin/file conftest.$ac_objext` in
6503 *32-bit*)
6504 LD="${LD-ld} -32"
6505 ;;
6506 *N32*)
6507 LD="${LD-ld} -n32"
6508 ;;
6509 *64-bit*)
6510 LD="${LD-ld} -64"
6511 ;;
6512 esac
6513 fi
6514 fi
6515 rm -rf conftest*
6516 ;;
6517
6518 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6519 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6520 # Find out which ABI we are using.
6521 echo 'int i;' > conftest.$ac_ext
6522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6523 (eval $ac_compile) 2>&5
6524 ac_status=$?
6525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6526 test $ac_status = 0; }; then
6527 case `/usr/bin/file conftest.o` in
6528 *32-bit*)
6529 case $host in
6530 x86_64-*kfreebsd*-gnu)
6531 LD="${LD-ld} -m elf_i386_fbsd"
6532 ;;
6533 x86_64-*linux*)
6534 case `/usr/bin/file conftest.o` in
6535 *x86-64*)
6536 LD="${LD-ld} -m elf32_x86_64"
6537 ;;
6538 *)
6539 LD="${LD-ld} -m elf_i386"
6540 ;;
6541 esac
6542 ;;
6543 powerpc64le-*linux*)
6544 LD="${LD-ld} -m elf32lppclinux"
6545 ;;
6546 powerpc64-*linux*)
6547 LD="${LD-ld} -m elf32ppclinux"
6548 ;;
6549 s390x-*linux*)
6550 LD="${LD-ld} -m elf_s390"
6551 ;;
6552 sparc64-*linux*)
6553 LD="${LD-ld} -m elf32_sparc"
6554 ;;
6555 esac
6556 ;;
6557 *64-bit*)
6558 case $host in
6559 x86_64-*kfreebsd*-gnu)
6560 LD="${LD-ld} -m elf_x86_64_fbsd"
6561 ;;
6562 x86_64-*linux*)
6563 LD="${LD-ld} -m elf_x86_64"
6564 ;;
6565 powerpcle-*linux*)
6566 LD="${LD-ld} -m elf64lppc"
6567 ;;
6568 powerpc-*linux*)
6569 LD="${LD-ld} -m elf64ppc"
6570 ;;
6571 s390*-*linux*|s390*-*tpf*)
6572 LD="${LD-ld} -m elf64_s390"
6573 ;;
6574 sparc*-*linux*)
6575 LD="${LD-ld} -m elf64_sparc"
6576 ;;
6577 esac
6578 ;;
6579 esac
6580 fi
6581 rm -rf conftest*
6582 ;;
6583
6584 *-*-sco3.2v5*)
6585 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6586 SAVE_CFLAGS="$CFLAGS"
6587 CFLAGS="$CFLAGS -belf"
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6589 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6590 if ${lt_cv_cc_needs_belf+:} false; then :
6591 $as_echo_n "(cached) " >&6
6592 else
6593 ac_ext=c
6594 ac_cpp='$CPP $CPPFLAGS'
6595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6598
6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6601
6602 int
6603 main ()
6604 {
6605
6606 ;
6607 return 0;
6608 }
6609 _ACEOF
6610 if ac_fn_c_try_link "$LINENO"; then :
6611 lt_cv_cc_needs_belf=yes
6612 else
6613 lt_cv_cc_needs_belf=no
6614 fi
6615 rm -f core conftest.err conftest.$ac_objext \
6616 conftest$ac_exeext conftest.$ac_ext
6617 ac_ext=c
6618 ac_cpp='$CPP $CPPFLAGS'
6619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6622
6623 fi
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6625 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6626 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6627 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6628 CFLAGS="$SAVE_CFLAGS"
6629 fi
6630 ;;
6631 sparc*-*solaris*)
6632 # Find out which ABI we are using.
6633 echo 'int i;' > conftest.$ac_ext
6634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6635 (eval $ac_compile) 2>&5
6636 ac_status=$?
6637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6638 test $ac_status = 0; }; then
6639 case `/usr/bin/file conftest.o` in
6640 *64-bit*)
6641 case $lt_cv_prog_gnu_ld in
6642 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6643 *)
6644 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6645 LD="${LD-ld} -64"
6646 fi
6647 ;;
6648 esac
6649 ;;
6650 esac
6651 fi
6652 rm -rf conftest*
6653 ;;
6654 esac
6655
6656 need_locks="$enable_libtool_lock"
6657
6658
6659 case $host_os in
6660 rhapsody* | darwin*)
6661 if test -n "$ac_tool_prefix"; then
6662 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6663 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 if test -n "$DSYMUTIL"; then
6670 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675 IFS=$as_save_IFS
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6679 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 break 2
6682 fi
6683 done
6684 done
6685 IFS=$as_save_IFS
6686
6687 fi
6688 fi
6689 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6690 if test -n "$DSYMUTIL"; then
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6692 $as_echo "$DSYMUTIL" >&6; }
6693 else
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695 $as_echo "no" >&6; }
6696 fi
6697
6698
6699 fi
6700 if test -z "$ac_cv_prog_DSYMUTIL"; then
6701 ac_ct_DSYMUTIL=$DSYMUTIL
6702 # Extract the first word of "dsymutil", so it can be a program name with args.
6703 set dummy dsymutil; ac_word=$2
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 $as_echo_n "checking for $ac_word... " >&6; }
6706 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6707 $as_echo_n "(cached) " >&6
6708 else
6709 if test -n "$ac_ct_DSYMUTIL"; then
6710 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6711 else
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 for as_dir in $PATH
6714 do
6715 IFS=$as_save_IFS
6716 test -z "$as_dir" && as_dir=.
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6719 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 break 2
6722 fi
6723 done
6724 done
6725 IFS=$as_save_IFS
6726
6727 fi
6728 fi
6729 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6730 if test -n "$ac_ct_DSYMUTIL"; then
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6732 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6733 else
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735 $as_echo "no" >&6; }
6736 fi
6737
6738 if test "x$ac_ct_DSYMUTIL" = x; then
6739 DSYMUTIL=":"
6740 else
6741 case $cross_compiling:$ac_tool_warned in
6742 yes:)
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6745 ac_tool_warned=yes ;;
6746 esac
6747 DSYMUTIL=$ac_ct_DSYMUTIL
6748 fi
6749 else
6750 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6751 fi
6752
6753 if test -n "$ac_tool_prefix"; then
6754 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6755 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 $as_echo_n "checking for $ac_word... " >&6; }
6758 if ${ac_cv_prog_NMEDIT+:} false; then :
6759 $as_echo_n "(cached) " >&6
6760 else
6761 if test -n "$NMEDIT"; then
6762 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6763 else
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6771 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 break 2
6774 fi
6775 done
6776 done
6777 IFS=$as_save_IFS
6778
6779 fi
6780 fi
6781 NMEDIT=$ac_cv_prog_NMEDIT
6782 if test -n "$NMEDIT"; then
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6784 $as_echo "$NMEDIT" >&6; }
6785 else
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 $as_echo "no" >&6; }
6788 fi
6789
6790
6791 fi
6792 if test -z "$ac_cv_prog_NMEDIT"; then
6793 ac_ct_NMEDIT=$NMEDIT
6794 # Extract the first word of "nmedit", so it can be a program name with args.
6795 set dummy nmedit; ac_word=$2
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797 $as_echo_n "checking for $ac_word... " >&6; }
6798 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6799 $as_echo_n "(cached) " >&6
6800 else
6801 if test -n "$ac_ct_NMEDIT"; then
6802 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6803 else
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6806 do
6807 IFS=$as_save_IFS
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6811 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 break 2
6814 fi
6815 done
6816 done
6817 IFS=$as_save_IFS
6818
6819 fi
6820 fi
6821 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6822 if test -n "$ac_ct_NMEDIT"; then
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6824 $as_echo "$ac_ct_NMEDIT" >&6; }
6825 else
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6827 $as_echo "no" >&6; }
6828 fi
6829
6830 if test "x$ac_ct_NMEDIT" = x; then
6831 NMEDIT=":"
6832 else
6833 case $cross_compiling:$ac_tool_warned in
6834 yes:)
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6837 ac_tool_warned=yes ;;
6838 esac
6839 NMEDIT=$ac_ct_NMEDIT
6840 fi
6841 else
6842 NMEDIT="$ac_cv_prog_NMEDIT"
6843 fi
6844
6845 if test -n "$ac_tool_prefix"; then
6846 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6847 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849 $as_echo_n "checking for $ac_word... " >&6; }
6850 if ${ac_cv_prog_LIPO+:} false; then :
6851 $as_echo_n "(cached) " >&6
6852 else
6853 if test -n "$LIPO"; then
6854 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6855 else
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6858 do
6859 IFS=$as_save_IFS
6860 test -z "$as_dir" && as_dir=.
6861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6863 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 break 2
6866 fi
6867 done
6868 done
6869 IFS=$as_save_IFS
6870
6871 fi
6872 fi
6873 LIPO=$ac_cv_prog_LIPO
6874 if test -n "$LIPO"; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6876 $as_echo "$LIPO" >&6; }
6877 else
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879 $as_echo "no" >&6; }
6880 fi
6881
6882
6883 fi
6884 if test -z "$ac_cv_prog_LIPO"; then
6885 ac_ct_LIPO=$LIPO
6886 # Extract the first word of "lipo", so it can be a program name with args.
6887 set dummy lipo; ac_word=$2
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6889 $as_echo_n "checking for $ac_word... " >&6; }
6890 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6891 $as_echo_n "(cached) " >&6
6892 else
6893 if test -n "$ac_ct_LIPO"; then
6894 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6895 else
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6898 do
6899 IFS=$as_save_IFS
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6903 ac_cv_prog_ac_ct_LIPO="lipo"
6904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 break 2
6906 fi
6907 done
6908 done
6909 IFS=$as_save_IFS
6910
6911 fi
6912 fi
6913 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6914 if test -n "$ac_ct_LIPO"; then
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6916 $as_echo "$ac_ct_LIPO" >&6; }
6917 else
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919 $as_echo "no" >&6; }
6920 fi
6921
6922 if test "x$ac_ct_LIPO" = x; then
6923 LIPO=":"
6924 else
6925 case $cross_compiling:$ac_tool_warned in
6926 yes:)
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6929 ac_tool_warned=yes ;;
6930 esac
6931 LIPO=$ac_ct_LIPO
6932 fi
6933 else
6934 LIPO="$ac_cv_prog_LIPO"
6935 fi
6936
6937 if test -n "$ac_tool_prefix"; then
6938 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6939 set dummy ${ac_tool_prefix}otool; ac_word=$2
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941 $as_echo_n "checking for $ac_word... " >&6; }
6942 if ${ac_cv_prog_OTOOL+:} false; then :
6943 $as_echo_n "(cached) " >&6
6944 else
6945 if test -n "$OTOOL"; then
6946 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6947 else
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6950 do
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6955 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 break 2
6958 fi
6959 done
6960 done
6961 IFS=$as_save_IFS
6962
6963 fi
6964 fi
6965 OTOOL=$ac_cv_prog_OTOOL
6966 if test -n "$OTOOL"; then
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6968 $as_echo "$OTOOL" >&6; }
6969 else
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 $as_echo "no" >&6; }
6972 fi
6973
6974
6975 fi
6976 if test -z "$ac_cv_prog_OTOOL"; then
6977 ac_ct_OTOOL=$OTOOL
6978 # Extract the first word of "otool", so it can be a program name with args.
6979 set dummy otool; ac_word=$2
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981 $as_echo_n "checking for $ac_word... " >&6; }
6982 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6983 $as_echo_n "(cached) " >&6
6984 else
6985 if test -n "$ac_ct_OTOOL"; then
6986 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6987 else
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in $PATH
6990 do
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6995 ac_cv_prog_ac_ct_OTOOL="otool"
6996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6998 fi
6999 done
7000 done
7001 IFS=$as_save_IFS
7002
7003 fi
7004 fi
7005 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7006 if test -n "$ac_ct_OTOOL"; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7008 $as_echo "$ac_ct_OTOOL" >&6; }
7009 else
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011 $as_echo "no" >&6; }
7012 fi
7013
7014 if test "x$ac_ct_OTOOL" = x; then
7015 OTOOL=":"
7016 else
7017 case $cross_compiling:$ac_tool_warned in
7018 yes:)
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7021 ac_tool_warned=yes ;;
7022 esac
7023 OTOOL=$ac_ct_OTOOL
7024 fi
7025 else
7026 OTOOL="$ac_cv_prog_OTOOL"
7027 fi
7028
7029 if test -n "$ac_tool_prefix"; then
7030 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7031 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033 $as_echo_n "checking for $ac_word... " >&6; }
7034 if ${ac_cv_prog_OTOOL64+:} false; then :
7035 $as_echo_n "(cached) " >&6
7036 else
7037 if test -n "$OTOOL64"; then
7038 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7039 else
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 for as_dir in $PATH
7042 do
7043 IFS=$as_save_IFS
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7047 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 break 2
7050 fi
7051 done
7052 done
7053 IFS=$as_save_IFS
7054
7055 fi
7056 fi
7057 OTOOL64=$ac_cv_prog_OTOOL64
7058 if test -n "$OTOOL64"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7060 $as_echo "$OTOOL64" >&6; }
7061 else
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063 $as_echo "no" >&6; }
7064 fi
7065
7066
7067 fi
7068 if test -z "$ac_cv_prog_OTOOL64"; then
7069 ac_ct_OTOOL64=$OTOOL64
7070 # Extract the first word of "otool64", so it can be a program name with args.
7071 set dummy otool64; ac_word=$2
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7073 $as_echo_n "checking for $ac_word... " >&6; }
7074 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7075 $as_echo_n "(cached) " >&6
7076 else
7077 if test -n "$ac_ct_OTOOL64"; then
7078 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7079 else
7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 for as_dir in $PATH
7082 do
7083 IFS=$as_save_IFS
7084 test -z "$as_dir" && as_dir=.
7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7087 ac_cv_prog_ac_ct_OTOOL64="otool64"
7088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7089 break 2
7090 fi
7091 done
7092 done
7093 IFS=$as_save_IFS
7094
7095 fi
7096 fi
7097 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7098 if test -n "$ac_ct_OTOOL64"; then
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7100 $as_echo "$ac_ct_OTOOL64" >&6; }
7101 else
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103 $as_echo "no" >&6; }
7104 fi
7105
7106 if test "x$ac_ct_OTOOL64" = x; then
7107 OTOOL64=":"
7108 else
7109 case $cross_compiling:$ac_tool_warned in
7110 yes:)
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7113 ac_tool_warned=yes ;;
7114 esac
7115 OTOOL64=$ac_ct_OTOOL64
7116 fi
7117 else
7118 OTOOL64="$ac_cv_prog_OTOOL64"
7119 fi
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7148 $as_echo_n "checking for -single_module linker flag... " >&6; }
7149 if ${lt_cv_apple_cc_single_mod+:} false; then :
7150 $as_echo_n "(cached) " >&6
7151 else
7152 lt_cv_apple_cc_single_mod=no
7153 if test -z "${LT_MULTI_MODULE}"; then
7154 # By default we will add the -single_module flag. You can override
7155 # by either setting the environment variable LT_MULTI_MODULE
7156 # non-empty at configure time, or by adding -multi_module to the
7157 # link flags.
7158 rm -rf libconftest.dylib*
7159 echo "int foo(void){return 1;}" > conftest.c
7160 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7161 -dynamiclib -Wl,-single_module conftest.c" >&5
7162 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7163 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7164 _lt_result=$?
7165 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7166 lt_cv_apple_cc_single_mod=yes
7167 else
7168 cat conftest.err >&5
7169 fi
7170 rm -rf libconftest.dylib*
7171 rm -f conftest.*
7172 fi
7173 fi
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7175 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7177 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7178 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7179 $as_echo_n "(cached) " >&6
7180 else
7181 lt_cv_ld_exported_symbols_list=no
7182 save_LDFLAGS=$LDFLAGS
7183 echo "_main" > conftest.sym
7184 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h. */
7187
7188 int
7189 main ()
7190 {
7191
7192 ;
7193 return 0;
7194 }
7195 _ACEOF
7196 if ac_fn_c_try_link "$LINENO"; then :
7197 lt_cv_ld_exported_symbols_list=yes
7198 else
7199 lt_cv_ld_exported_symbols_list=no
7200 fi
7201 rm -f core conftest.err conftest.$ac_objext \
7202 conftest$ac_exeext conftest.$ac_ext
7203 LDFLAGS="$save_LDFLAGS"
7204
7205 fi
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7207 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7209 $as_echo_n "checking for -force_load linker flag... " >&6; }
7210 if ${lt_cv_ld_force_load+:} false; then :
7211 $as_echo_n "(cached) " >&6
7212 else
7213 lt_cv_ld_force_load=no
7214 cat > conftest.c << _LT_EOF
7215 int forced_loaded() { return 2;}
7216 _LT_EOF
7217 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7218 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7219 echo "$AR cru libconftest.a conftest.o" >&5
7220 $AR cru libconftest.a conftest.o 2>&5
7221 cat > conftest.c << _LT_EOF
7222 int main() { return 0;}
7223 _LT_EOF
7224 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7225 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7226 _lt_result=$?
7227 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7228 lt_cv_ld_force_load=yes
7229 else
7230 cat conftest.err >&5
7231 fi
7232 rm -f conftest.err libconftest.a conftest conftest.c
7233 rm -rf conftest.dSYM
7234
7235 fi
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7237 $as_echo "$lt_cv_ld_force_load" >&6; }
7238 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7239 # build without first building modern cctools / linker.
7240 case $host_cpu-$host_os in
7241 *-rhapsody* | *-darwin1.[012])
7242 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7243 *-darwin1.*)
7244 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7245 *-darwin*)
7246 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7247 # deployment target is forced to an earlier version.
7248 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7249 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7250 ;;
7251 10.[012][,.]*)
7252 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7253 ;;
7254 *)
7255 ;;
7256 esac
7257 ;;
7258 esac
7259 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7260 _lt_dar_single_mod='$single_module'
7261 fi
7262 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7263 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7264 else
7265 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7266 fi
7267 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7268 _lt_dsymutil='~$DSYMUTIL $lib || :'
7269 else
7270 _lt_dsymutil=
7271 fi
7272 ;;
7273 esac
7274
7275 for ac_header in dlfcn.h
7276 do :
7277 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7278 "
7279 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7280 cat >>confdefs.h <<_ACEOF
7281 #define HAVE_DLFCN_H 1
7282 _ACEOF
7283
7284 fi
7285
7286 done
7287
7288
7289
7290
7291
7292 # Set options
7293
7294
7295
7296 enable_dlopen=no
7297
7298
7299 enable_win32_dll=no
7300
7301
7302 # Check whether --enable-shared was given.
7303 if test "${enable_shared+set}" = set; then :
7304 enableval=$enable_shared; p=${PACKAGE-default}
7305 case $enableval in
7306 yes) enable_shared=yes ;;
7307 no) enable_shared=no ;;
7308 *)
7309 enable_shared=no
7310 # Look at the argument we got. We use all the common list separators.
7311 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7312 for pkg in $enableval; do
7313 IFS="$lt_save_ifs"
7314 if test "X$pkg" = "X$p"; then
7315 enable_shared=yes
7316 fi
7317 done
7318 IFS="$lt_save_ifs"
7319 ;;
7320 esac
7321 else
7322 enable_shared=yes
7323 fi
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333 # Check whether --enable-static was given.
7334 if test "${enable_static+set}" = set; then :
7335 enableval=$enable_static; p=${PACKAGE-default}
7336 case $enableval in
7337 yes) enable_static=yes ;;
7338 no) enable_static=no ;;
7339 *)
7340 enable_static=no
7341 # Look at the argument we got. We use all the common list separators.
7342 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7343 for pkg in $enableval; do
7344 IFS="$lt_save_ifs"
7345 if test "X$pkg" = "X$p"; then
7346 enable_static=yes
7347 fi
7348 done
7349 IFS="$lt_save_ifs"
7350 ;;
7351 esac
7352 else
7353 enable_static=yes
7354 fi
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365 # Check whether --with-pic was given.
7366 if test "${with_pic+set}" = set; then :
7367 withval=$with_pic; pic_mode="$withval"
7368 else
7369 pic_mode=default
7370 fi
7371
7372
7373 test -z "$pic_mode" && pic_mode=default
7374
7375
7376
7377
7378
7379
7380
7381 # Check whether --enable-fast-install was given.
7382 if test "${enable_fast_install+set}" = set; then :
7383 enableval=$enable_fast_install; p=${PACKAGE-default}
7384 case $enableval in
7385 yes) enable_fast_install=yes ;;
7386 no) enable_fast_install=no ;;
7387 *)
7388 enable_fast_install=no
7389 # Look at the argument we got. We use all the common list separators.
7390 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7391 for pkg in $enableval; do
7392 IFS="$lt_save_ifs"
7393 if test "X$pkg" = "X$p"; then
7394 enable_fast_install=yes
7395 fi
7396 done
7397 IFS="$lt_save_ifs"
7398 ;;
7399 esac
7400 else
7401 enable_fast_install=yes
7402 fi
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414 # This can be used to rebuild libtool when needed
7415 LIBTOOL_DEPS="$ltmain"
7416
7417 # Always use our own libtool.
7418 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445 test -z "$LN_S" && LN_S="ln -s"
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460 if test -n "${ZSH_VERSION+set}" ; then
7461 setopt NO_GLOB_SUBST
7462 fi
7463
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7465 $as_echo_n "checking for objdir... " >&6; }
7466 if ${lt_cv_objdir+:} false; then :
7467 $as_echo_n "(cached) " >&6
7468 else
7469 rm -f .libs 2>/dev/null
7470 mkdir .libs 2>/dev/null
7471 if test -d .libs; then
7472 lt_cv_objdir=.libs
7473 else
7474 # MS-DOS does not allow filenames that begin with a dot.
7475 lt_cv_objdir=_libs
7476 fi
7477 rmdir .libs 2>/dev/null
7478 fi
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7480 $as_echo "$lt_cv_objdir" >&6; }
7481 objdir=$lt_cv_objdir
7482
7483
7484
7485
7486
7487 cat >>confdefs.h <<_ACEOF
7488 #define LT_OBJDIR "$lt_cv_objdir/"
7489 _ACEOF
7490
7491
7492
7493
7494 case $host_os in
7495 aix3*)
7496 # AIX sometimes has problems with the GCC collect2 program. For some
7497 # reason, if we set the COLLECT_NAMES environment variable, the problems
7498 # vanish in a puff of smoke.
7499 if test "X${COLLECT_NAMES+set}" != Xset; then
7500 COLLECT_NAMES=
7501 export COLLECT_NAMES
7502 fi
7503 ;;
7504 esac
7505
7506 # Global variables:
7507 ofile=libtool
7508 can_build_shared=yes
7509
7510 # All known linkers require a `.a' archive for static linking (except MSVC,
7511 # which needs '.lib').
7512 libext=a
7513
7514 with_gnu_ld="$lt_cv_prog_gnu_ld"
7515
7516 old_CC="$CC"
7517 old_CFLAGS="$CFLAGS"
7518
7519 # Set sane defaults for various variables
7520 test -z "$CC" && CC=cc
7521 test -z "$LTCC" && LTCC=$CC
7522 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7523 test -z "$LD" && LD=ld
7524 test -z "$ac_objext" && ac_objext=o
7525
7526 for cc_temp in $compiler""; do
7527 case $cc_temp in
7528 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7529 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7530 \-*) ;;
7531 *) break;;
7532 esac
7533 done
7534 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7535
7536
7537 # Only perform the check for file, if the check method requires it
7538 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7539 case $deplibs_check_method in
7540 file_magic*)
7541 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7543 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7544 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7545 $as_echo_n "(cached) " >&6
7546 else
7547 case $MAGIC_CMD in
7548 [\\/*] | ?:[\\/]*)
7549 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7550 ;;
7551 *)
7552 lt_save_MAGIC_CMD="$MAGIC_CMD"
7553 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7554 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7555 for ac_dir in $ac_dummy; do
7556 IFS="$lt_save_ifs"
7557 test -z "$ac_dir" && ac_dir=.
7558 if test -f $ac_dir/${ac_tool_prefix}file; then
7559 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7560 if test -n "$file_magic_test_file"; then
7561 case $deplibs_check_method in
7562 "file_magic "*)
7563 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7564 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7565 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7566 $EGREP "$file_magic_regex" > /dev/null; then
7567 :
7568 else
7569 cat <<_LT_EOF 1>&2
7570
7571 *** Warning: the command libtool uses to detect shared libraries,
7572 *** $file_magic_cmd, produces output that libtool cannot recognize.
7573 *** The result is that libtool may fail to recognize shared libraries
7574 *** as such. This will affect the creation of libtool libraries that
7575 *** depend on shared libraries, but programs linked with such libtool
7576 *** libraries will work regardless of this problem. Nevertheless, you
7577 *** may want to report the problem to your system manager and/or to
7578 *** bug-libtool@gnu.org
7579
7580 _LT_EOF
7581 fi ;;
7582 esac
7583 fi
7584 break
7585 fi
7586 done
7587 IFS="$lt_save_ifs"
7588 MAGIC_CMD="$lt_save_MAGIC_CMD"
7589 ;;
7590 esac
7591 fi
7592
7593 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7594 if test -n "$MAGIC_CMD"; then
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7596 $as_echo "$MAGIC_CMD" >&6; }
7597 else
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599 $as_echo "no" >&6; }
7600 fi
7601
7602
7603
7604
7605
7606 if test -z "$lt_cv_path_MAGIC_CMD"; then
7607 if test -n "$ac_tool_prefix"; then
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7609 $as_echo_n "checking for file... " >&6; }
7610 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7613 case $MAGIC_CMD in
7614 [\\/*] | ?:[\\/]*)
7615 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7616 ;;
7617 *)
7618 lt_save_MAGIC_CMD="$MAGIC_CMD"
7619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7620 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7621 for ac_dir in $ac_dummy; do
7622 IFS="$lt_save_ifs"
7623 test -z "$ac_dir" && ac_dir=.
7624 if test -f $ac_dir/file; then
7625 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7626 if test -n "$file_magic_test_file"; then
7627 case $deplibs_check_method in
7628 "file_magic "*)
7629 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7631 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7632 $EGREP "$file_magic_regex" > /dev/null; then
7633 :
7634 else
7635 cat <<_LT_EOF 1>&2
7636
7637 *** Warning: the command libtool uses to detect shared libraries,
7638 *** $file_magic_cmd, produces output that libtool cannot recognize.
7639 *** The result is that libtool may fail to recognize shared libraries
7640 *** as such. This will affect the creation of libtool libraries that
7641 *** depend on shared libraries, but programs linked with such libtool
7642 *** libraries will work regardless of this problem. Nevertheless, you
7643 *** may want to report the problem to your system manager and/or to
7644 *** bug-libtool@gnu.org
7645
7646 _LT_EOF
7647 fi ;;
7648 esac
7649 fi
7650 break
7651 fi
7652 done
7653 IFS="$lt_save_ifs"
7654 MAGIC_CMD="$lt_save_MAGIC_CMD"
7655 ;;
7656 esac
7657 fi
7658
7659 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7660 if test -n "$MAGIC_CMD"; then
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7662 $as_echo "$MAGIC_CMD" >&6; }
7663 else
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665 $as_echo "no" >&6; }
7666 fi
7667
7668
7669 else
7670 MAGIC_CMD=:
7671 fi
7672 fi
7673
7674 fi
7675 ;;
7676 esac
7677
7678 # Use C for the default configuration in the libtool script
7679
7680 lt_save_CC="$CC"
7681 ac_ext=c
7682 ac_cpp='$CPP $CPPFLAGS'
7683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7686
7687
7688 # Source file extension for C test sources.
7689 ac_ext=c
7690
7691 # Object file extension for compiled C test sources.
7692 objext=o
7693 objext=$objext
7694
7695 # Code to be used in simple compile tests
7696 lt_simple_compile_test_code="int some_variable = 0;"
7697
7698 # Code to be used in simple link tests
7699 lt_simple_link_test_code='int main(){return(0);}'
7700
7701
7702
7703
7704
7705
7706
7707 # If no C compiler was specified, use CC.
7708 LTCC=${LTCC-"$CC"}
7709
7710 # If no C compiler flags were specified, use CFLAGS.
7711 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7712
7713 # Allow CC to be a program name with arguments.
7714 compiler=$CC
7715
7716 # Save the default compiler, since it gets overwritten when the other
7717 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7718 compiler_DEFAULT=$CC
7719
7720 # save warnings/boilerplate of simple test code
7721 ac_outfile=conftest.$ac_objext
7722 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7723 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7724 _lt_compiler_boilerplate=`cat conftest.err`
7725 $RM conftest*
7726
7727 ac_outfile=conftest.$ac_objext
7728 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7729 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7730 _lt_linker_boilerplate=`cat conftest.err`
7731 $RM -r conftest*
7732
7733
7734 ## CAVEAT EMPTOR:
7735 ## There is no encapsulation within the following macros, do not change
7736 ## the running order or otherwise move them around unless you know exactly
7737 ## what you are doing...
7738 if test -n "$compiler"; then
7739
7740 lt_prog_compiler_no_builtin_flag=
7741
7742 if test "$GCC" = yes; then
7743 case $cc_basename in
7744 nvcc*)
7745 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7746 *)
7747 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7748 esac
7749
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7751 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7752 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7753 $as_echo_n "(cached) " >&6
7754 else
7755 lt_cv_prog_compiler_rtti_exceptions=no
7756 ac_outfile=conftest.$ac_objext
7757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7758 lt_compiler_flag="-fno-rtti -fno-exceptions"
7759 # Insert the option either (1) after the last *FLAGS variable, or
7760 # (2) before a word containing "conftest.", or (3) at the end.
7761 # Note that $ac_compile itself does not contain backslashes and begins
7762 # with a dollar sign (not a hyphen), so the echo should work correctly.
7763 # The option is referenced via a variable to avoid confusing sed.
7764 lt_compile=`echo "$ac_compile" | $SED \
7765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7767 -e 's:$: $lt_compiler_flag:'`
7768 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7769 (eval "$lt_compile" 2>conftest.err)
7770 ac_status=$?
7771 cat conftest.err >&5
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 if (exit $ac_status) && test -s "$ac_outfile"; then
7774 # The compiler can only warn and ignore the option if not recognized
7775 # So say no if there are warnings other than the usual output.
7776 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7777 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7778 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7779 lt_cv_prog_compiler_rtti_exceptions=yes
7780 fi
7781 fi
7782 $RM conftest*
7783
7784 fi
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7786 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7787
7788 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7789 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7790 else
7791 :
7792 fi
7793
7794 fi
7795
7796
7797
7798
7799
7800
7801 lt_prog_compiler_wl=
7802 lt_prog_compiler_pic=
7803 lt_prog_compiler_static=
7804
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7806 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7807
7808 if test "$GCC" = yes; then
7809 lt_prog_compiler_wl='-Wl,'
7810 lt_prog_compiler_static='-static'
7811
7812 case $host_os in
7813 aix*)
7814 # All AIX code is PIC.
7815 if test "$host_cpu" = ia64; then
7816 # AIX 5 now supports IA64 processor
7817 lt_prog_compiler_static='-Bstatic'
7818 fi
7819 lt_prog_compiler_pic='-fPIC'
7820 ;;
7821
7822 amigaos*)
7823 case $host_cpu in
7824 powerpc)
7825 # see comment about AmigaOS4 .so support
7826 lt_prog_compiler_pic='-fPIC'
7827 ;;
7828 m68k)
7829 # FIXME: we need at least 68020 code to build shared libraries, but
7830 # adding the `-m68020' flag to GCC prevents building anything better,
7831 # like `-m68040'.
7832 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7833 ;;
7834 esac
7835 ;;
7836
7837 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7838 # PIC is the default for these OSes.
7839 ;;
7840
7841 mingw* | cygwin* | pw32* | os2* | cegcc*)
7842 # This hack is so that the source file can tell whether it is being
7843 # built for inclusion in a dll (and should export symbols for example).
7844 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7845 # (--disable-auto-import) libraries
7846 lt_prog_compiler_pic='-DDLL_EXPORT'
7847 ;;
7848
7849 darwin* | rhapsody*)
7850 # PIC is the default on this platform
7851 # Common symbols not allowed in MH_DYLIB files
7852 lt_prog_compiler_pic='-fno-common'
7853 ;;
7854
7855 haiku*)
7856 # PIC is the default for Haiku.
7857 # The "-static" flag exists, but is broken.
7858 lt_prog_compiler_static=
7859 ;;
7860
7861 hpux*)
7862 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7863 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7864 # sets the default TLS model and affects inlining.
7865 case $host_cpu in
7866 hppa*64*)
7867 # +Z the default
7868 ;;
7869 *)
7870 lt_prog_compiler_pic='-fPIC'
7871 ;;
7872 esac
7873 ;;
7874
7875 interix[3-9]*)
7876 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7877 # Instead, we relocate shared libraries at runtime.
7878 ;;
7879
7880 msdosdjgpp*)
7881 # Just because we use GCC doesn't mean we suddenly get shared libraries
7882 # on systems that don't support them.
7883 lt_prog_compiler_can_build_shared=no
7884 enable_shared=no
7885 ;;
7886
7887 *nto* | *qnx*)
7888 # QNX uses GNU C++, but need to define -shared option too, otherwise
7889 # it will coredump.
7890 lt_prog_compiler_pic='-fPIC -shared'
7891 ;;
7892
7893 sysv4*MP*)
7894 if test -d /usr/nec; then
7895 lt_prog_compiler_pic=-Kconform_pic
7896 fi
7897 ;;
7898
7899 *)
7900 lt_prog_compiler_pic='-fPIC'
7901 ;;
7902 esac
7903
7904 case $cc_basename in
7905 nvcc*) # Cuda Compiler Driver 2.2
7906 lt_prog_compiler_wl='-Xlinker '
7907 lt_prog_compiler_pic='-Xcompiler -fPIC'
7908 ;;
7909 esac
7910 else
7911 # PORTME Check for flag to pass linker flags through the system compiler.
7912 case $host_os in
7913 aix*)
7914 lt_prog_compiler_wl='-Wl,'
7915 if test "$host_cpu" = ia64; then
7916 # AIX 5 now supports IA64 processor
7917 lt_prog_compiler_static='-Bstatic'
7918 else
7919 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7920 fi
7921 ;;
7922
7923 mingw* | cygwin* | pw32* | os2* | cegcc*)
7924 # This hack is so that the source file can tell whether it is being
7925 # built for inclusion in a dll (and should export symbols for example).
7926 lt_prog_compiler_pic='-DDLL_EXPORT'
7927 ;;
7928
7929 hpux9* | hpux10* | hpux11*)
7930 lt_prog_compiler_wl='-Wl,'
7931 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7932 # not for PA HP-UX.
7933 case $host_cpu in
7934 hppa*64*|ia64*)
7935 # +Z the default
7936 ;;
7937 *)
7938 lt_prog_compiler_pic='+Z'
7939 ;;
7940 esac
7941 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7942 lt_prog_compiler_static='${wl}-a ${wl}archive'
7943 ;;
7944
7945 irix5* | irix6* | nonstopux*)
7946 lt_prog_compiler_wl='-Wl,'
7947 # PIC (with -KPIC) is the default.
7948 lt_prog_compiler_static='-non_shared'
7949 ;;
7950
7951 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7952 case $cc_basename in
7953 # old Intel for x86_64 which still supported -KPIC.
7954 ecc*)
7955 lt_prog_compiler_wl='-Wl,'
7956 lt_prog_compiler_pic='-KPIC'
7957 lt_prog_compiler_static='-static'
7958 ;;
7959 # icc used to be incompatible with GCC.
7960 # ICC 10 doesn't accept -KPIC any more.
7961 icc* | ifort*)
7962 lt_prog_compiler_wl='-Wl,'
7963 lt_prog_compiler_pic='-fPIC'
7964 lt_prog_compiler_static='-static'
7965 ;;
7966 # Lahey Fortran 8.1.
7967 lf95*)
7968 lt_prog_compiler_wl='-Wl,'
7969 lt_prog_compiler_pic='--shared'
7970 lt_prog_compiler_static='--static'
7971 ;;
7972 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7973 # Portland Group compilers (*not* the Pentium gcc compiler,
7974 # which looks to be a dead project)
7975 lt_prog_compiler_wl='-Wl,'
7976 lt_prog_compiler_pic='-fpic'
7977 lt_prog_compiler_static='-Bstatic'
7978 ;;
7979 ccc*)
7980 lt_prog_compiler_wl='-Wl,'
7981 # All Alpha code is PIC.
7982 lt_prog_compiler_static='-non_shared'
7983 ;;
7984 xl* | bgxl* | bgf* | mpixl*)
7985 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7986 lt_prog_compiler_wl='-Wl,'
7987 lt_prog_compiler_pic='-qpic'
7988 lt_prog_compiler_static='-qstaticlink'
7989 ;;
7990 *)
7991 case `$CC -V 2>&1 | sed 5q` in
7992 *Sun\ F* | *Sun*Fortran*)
7993 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7994 lt_prog_compiler_pic='-KPIC'
7995 lt_prog_compiler_static='-Bstatic'
7996 lt_prog_compiler_wl=''
7997 ;;
7998 *Sun\ C*)
7999 # Sun C 5.9
8000 lt_prog_compiler_pic='-KPIC'
8001 lt_prog_compiler_static='-Bstatic'
8002 lt_prog_compiler_wl='-Wl,'
8003 ;;
8004 esac
8005 ;;
8006 esac
8007 ;;
8008
8009 newsos6)
8010 lt_prog_compiler_pic='-KPIC'
8011 lt_prog_compiler_static='-Bstatic'
8012 ;;
8013
8014 *nto* | *qnx*)
8015 # QNX uses GNU C++, but need to define -shared option too, otherwise
8016 # it will coredump.
8017 lt_prog_compiler_pic='-fPIC -shared'
8018 ;;
8019
8020 osf3* | osf4* | osf5*)
8021 lt_prog_compiler_wl='-Wl,'
8022 # All OSF/1 code is PIC.
8023 lt_prog_compiler_static='-non_shared'
8024 ;;
8025
8026 rdos*)
8027 lt_prog_compiler_static='-non_shared'
8028 ;;
8029
8030 solaris*)
8031 lt_prog_compiler_pic='-KPIC'
8032 lt_prog_compiler_static='-Bstatic'
8033 case $cc_basename in
8034 f77* | f90* | f95*)
8035 lt_prog_compiler_wl='-Qoption ld ';;
8036 *)
8037 lt_prog_compiler_wl='-Wl,';;
8038 esac
8039 ;;
8040
8041 sunos4*)
8042 lt_prog_compiler_wl='-Qoption ld '
8043 lt_prog_compiler_pic='-PIC'
8044 lt_prog_compiler_static='-Bstatic'
8045 ;;
8046
8047 sysv4 | sysv4.2uw2* | sysv4.3*)
8048 lt_prog_compiler_wl='-Wl,'
8049 lt_prog_compiler_pic='-KPIC'
8050 lt_prog_compiler_static='-Bstatic'
8051 ;;
8052
8053 sysv4*MP*)
8054 if test -d /usr/nec ;then
8055 lt_prog_compiler_pic='-Kconform_pic'
8056 lt_prog_compiler_static='-Bstatic'
8057 fi
8058 ;;
8059
8060 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8061 lt_prog_compiler_wl='-Wl,'
8062 lt_prog_compiler_pic='-KPIC'
8063 lt_prog_compiler_static='-Bstatic'
8064 ;;
8065
8066 unicos*)
8067 lt_prog_compiler_wl='-Wl,'
8068 lt_prog_compiler_can_build_shared=no
8069 ;;
8070
8071 uts4*)
8072 lt_prog_compiler_pic='-pic'
8073 lt_prog_compiler_static='-Bstatic'
8074 ;;
8075
8076 *)
8077 lt_prog_compiler_can_build_shared=no
8078 ;;
8079 esac
8080 fi
8081
8082 case $host_os in
8083 # For platforms which do not support PIC, -DPIC is meaningless:
8084 *djgpp*)
8085 lt_prog_compiler_pic=
8086 ;;
8087 *)
8088 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8089 ;;
8090 esac
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8092 $as_echo "$lt_prog_compiler_pic" >&6; }
8093
8094
8095
8096
8097
8098
8099 #
8100 # Check to make sure the PIC flag actually works.
8101 #
8102 if test -n "$lt_prog_compiler_pic"; then
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8104 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8105 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8106 $as_echo_n "(cached) " >&6
8107 else
8108 lt_cv_prog_compiler_pic_works=no
8109 ac_outfile=conftest.$ac_objext
8110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8111 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8112 # Insert the option either (1) after the last *FLAGS variable, or
8113 # (2) before a word containing "conftest.", or (3) at the end.
8114 # Note that $ac_compile itself does not contain backslashes and begins
8115 # with a dollar sign (not a hyphen), so the echo should work correctly.
8116 # The option is referenced via a variable to avoid confusing sed.
8117 lt_compile=`echo "$ac_compile" | $SED \
8118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8120 -e 's:$: $lt_compiler_flag:'`
8121 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8122 (eval "$lt_compile" 2>conftest.err)
8123 ac_status=$?
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 if (exit $ac_status) && test -s "$ac_outfile"; then
8127 # The compiler can only warn and ignore the option if not recognized
8128 # So say no if there are warnings other than the usual output.
8129 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8131 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8132 lt_cv_prog_compiler_pic_works=yes
8133 fi
8134 fi
8135 $RM conftest*
8136
8137 fi
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8139 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8140
8141 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8142 case $lt_prog_compiler_pic in
8143 "" | " "*) ;;
8144 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8145 esac
8146 else
8147 lt_prog_compiler_pic=
8148 lt_prog_compiler_can_build_shared=no
8149 fi
8150
8151 fi
8152
8153
8154
8155
8156
8157
8158 #
8159 # Check to make sure the static flag actually works.
8160 #
8161 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8163 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8164 if ${lt_cv_prog_compiler_static_works+:} false; then :
8165 $as_echo_n "(cached) " >&6
8166 else
8167 lt_cv_prog_compiler_static_works=no
8168 save_LDFLAGS="$LDFLAGS"
8169 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8170 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8171 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8172 # The linker can only warn and ignore the option if not recognized
8173 # So say no if there are warnings
8174 if test -s conftest.err; then
8175 # Append any errors to the config.log.
8176 cat conftest.err 1>&5
8177 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8178 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8179 if diff conftest.exp conftest.er2 >/dev/null; then
8180 lt_cv_prog_compiler_static_works=yes
8181 fi
8182 else
8183 lt_cv_prog_compiler_static_works=yes
8184 fi
8185 fi
8186 $RM -r conftest*
8187 LDFLAGS="$save_LDFLAGS"
8188
8189 fi
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8191 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8192
8193 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8194 :
8195 else
8196 lt_prog_compiler_static=
8197 fi
8198
8199
8200
8201
8202
8203
8204
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8206 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8207 if ${lt_cv_prog_compiler_c_o+:} false; then :
8208 $as_echo_n "(cached) " >&6
8209 else
8210 lt_cv_prog_compiler_c_o=no
8211 $RM -r conftest 2>/dev/null
8212 mkdir conftest
8213 cd conftest
8214 mkdir out
8215 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8216
8217 lt_compiler_flag="-o out/conftest2.$ac_objext"
8218 # Insert the option either (1) after the last *FLAGS variable, or
8219 # (2) before a word containing "conftest.", or (3) at the end.
8220 # Note that $ac_compile itself does not contain backslashes and begins
8221 # with a dollar sign (not a hyphen), so the echo should work correctly.
8222 lt_compile=`echo "$ac_compile" | $SED \
8223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8225 -e 's:$: $lt_compiler_flag:'`
8226 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8227 (eval "$lt_compile" 2>out/conftest.err)
8228 ac_status=$?
8229 cat out/conftest.err >&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8232 then
8233 # The compiler can only warn and ignore the option if not recognized
8234 # So say no if there are warnings
8235 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8236 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8237 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8238 lt_cv_prog_compiler_c_o=yes
8239 fi
8240 fi
8241 chmod u+w . 2>&5
8242 $RM conftest*
8243 # SGI C++ compiler will create directory out/ii_files/ for
8244 # template instantiation
8245 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8246 $RM out/* && rmdir out
8247 cd ..
8248 $RM -r conftest
8249 $RM conftest*
8250
8251 fi
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8253 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8254
8255
8256
8257
8258
8259
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8261 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8262 if ${lt_cv_prog_compiler_c_o+:} false; then :
8263 $as_echo_n "(cached) " >&6
8264 else
8265 lt_cv_prog_compiler_c_o=no
8266 $RM -r conftest 2>/dev/null
8267 mkdir conftest
8268 cd conftest
8269 mkdir out
8270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8271
8272 lt_compiler_flag="-o out/conftest2.$ac_objext"
8273 # Insert the option either (1) after the last *FLAGS variable, or
8274 # (2) before a word containing "conftest.", or (3) at the end.
8275 # Note that $ac_compile itself does not contain backslashes and begins
8276 # with a dollar sign (not a hyphen), so the echo should work correctly.
8277 lt_compile=`echo "$ac_compile" | $SED \
8278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8280 -e 's:$: $lt_compiler_flag:'`
8281 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8282 (eval "$lt_compile" 2>out/conftest.err)
8283 ac_status=$?
8284 cat out/conftest.err >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8287 then
8288 # The compiler can only warn and ignore the option if not recognized
8289 # So say no if there are warnings
8290 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8291 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8292 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8293 lt_cv_prog_compiler_c_o=yes
8294 fi
8295 fi
8296 chmod u+w . 2>&5
8297 $RM conftest*
8298 # SGI C++ compiler will create directory out/ii_files/ for
8299 # template instantiation
8300 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8301 $RM out/* && rmdir out
8302 cd ..
8303 $RM -r conftest
8304 $RM conftest*
8305
8306 fi
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8308 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8309
8310
8311
8312
8313 hard_links="nottested"
8314 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8315 # do not overwrite the value of need_locks provided by the user
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8317 $as_echo_n "checking if we can lock with hard links... " >&6; }
8318 hard_links=yes
8319 $RM conftest*
8320 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8321 touch conftest.a
8322 ln conftest.a conftest.b 2>&5 || hard_links=no
8323 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8325 $as_echo "$hard_links" >&6; }
8326 if test "$hard_links" = no; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8328 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8329 need_locks=warn
8330 fi
8331 else
8332 need_locks=no
8333 fi
8334
8335
8336
8337
8338
8339
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8341 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8342
8343 runpath_var=
8344 allow_undefined_flag=
8345 always_export_symbols=no
8346 archive_cmds=
8347 archive_expsym_cmds=
8348 compiler_needs_object=no
8349 enable_shared_with_static_runtimes=no
8350 export_dynamic_flag_spec=
8351 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8352 hardcode_automatic=no
8353 hardcode_direct=no
8354 hardcode_direct_absolute=no
8355 hardcode_libdir_flag_spec=
8356 hardcode_libdir_flag_spec_ld=
8357 hardcode_libdir_separator=
8358 hardcode_minus_L=no
8359 hardcode_shlibpath_var=unsupported
8360 inherit_rpath=no
8361 link_all_deplibs=unknown
8362 module_cmds=
8363 module_expsym_cmds=
8364 old_archive_from_new_cmds=
8365 old_archive_from_expsyms_cmds=
8366 thread_safe_flag_spec=
8367 whole_archive_flag_spec=
8368 # include_expsyms should be a list of space-separated symbols to be *always*
8369 # included in the symbol list
8370 include_expsyms=
8371 # exclude_expsyms can be an extended regexp of symbols to exclude
8372 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8373 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8374 # as well as any symbol that contains `d'.
8375 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8376 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8377 # platforms (ab)use it in PIC code, but their linkers get confused if
8378 # the symbol is explicitly referenced. Since portable code cannot
8379 # rely on this symbol name, it's probably fine to never include it in
8380 # preloaded symbol tables.
8381 # Exclude shared library initialization/finalization symbols.
8382 extract_expsyms_cmds=
8383
8384 case $host_os in
8385 cygwin* | mingw* | pw32* | cegcc*)
8386 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8387 # When not using gcc, we currently assume that we are using
8388 # Microsoft Visual C++.
8389 if test "$GCC" != yes; then
8390 with_gnu_ld=no
8391 fi
8392 ;;
8393 interix*)
8394 # we just hope/assume this is gcc and not c89 (= MSVC++)
8395 with_gnu_ld=yes
8396 ;;
8397 openbsd*)
8398 with_gnu_ld=no
8399 ;;
8400 esac
8401
8402 ld_shlibs=yes
8403
8404 # On some targets, GNU ld is compatible enough with the native linker
8405 # that we're better off using the native interface for both.
8406 lt_use_gnu_ld_interface=no
8407 if test "$with_gnu_ld" = yes; then
8408 case $host_os in
8409 aix*)
8410 # The AIX port of GNU ld has always aspired to compatibility
8411 # with the native linker. However, as the warning in the GNU ld
8412 # block says, versions before 2.19.5* couldn't really create working
8413 # shared libraries, regardless of the interface used.
8414 case `$LD -v 2>&1` in
8415 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8416 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8417 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8418 *)
8419 lt_use_gnu_ld_interface=yes
8420 ;;
8421 esac
8422 ;;
8423 *)
8424 lt_use_gnu_ld_interface=yes
8425 ;;
8426 esac
8427 fi
8428
8429 if test "$lt_use_gnu_ld_interface" = yes; then
8430 # If archive_cmds runs LD, not CC, wlarc should be empty
8431 wlarc='${wl}'
8432
8433 # Set some defaults for GNU ld with shared library support. These
8434 # are reset later if shared libraries are not supported. Putting them
8435 # here allows them to be overridden if necessary.
8436 runpath_var=LD_RUN_PATH
8437 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8438 export_dynamic_flag_spec='${wl}--export-dynamic'
8439 # ancient GNU ld didn't support --whole-archive et. al.
8440 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8441 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8442 else
8443 whole_archive_flag_spec=
8444 fi
8445 supports_anon_versioning=no
8446 case `$LD -v 2>&1` in
8447 *GNU\ gold*) supports_anon_versioning=yes ;;
8448 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8449 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8450 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8451 *\ 2.11.*) ;; # other 2.11 versions
8452 *) supports_anon_versioning=yes ;;
8453 esac
8454
8455 # See if GNU ld supports shared libraries.
8456 case $host_os in
8457 aix[3-9]*)
8458 # On AIX/PPC, the GNU linker is very broken
8459 if test "$host_cpu" != ia64; then
8460 ld_shlibs=no
8461 cat <<_LT_EOF 1>&2
8462
8463 *** Warning: the GNU linker, at least up to release 2.19, is reported
8464 *** to be unable to reliably create shared libraries on AIX.
8465 *** Therefore, libtool is disabling shared libraries support. If you
8466 *** really care for shared libraries, you may want to install binutils
8467 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8468 *** You will then need to restart the configuration process.
8469
8470 _LT_EOF
8471 fi
8472 ;;
8473
8474 amigaos*)
8475 case $host_cpu in
8476 powerpc)
8477 # see comment about AmigaOS4 .so support
8478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8479 archive_expsym_cmds=''
8480 ;;
8481 m68k)
8482 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)'
8483 hardcode_libdir_flag_spec='-L$libdir'
8484 hardcode_minus_L=yes
8485 ;;
8486 esac
8487 ;;
8488
8489 beos*)
8490 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8491 allow_undefined_flag=unsupported
8492 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8493 # support --undefined. This deserves some investigation. FIXME
8494 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8495 else
8496 ld_shlibs=no
8497 fi
8498 ;;
8499
8500 cygwin* | mingw* | pw32* | cegcc*)
8501 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8502 # as there is no search path for DLLs.
8503 hardcode_libdir_flag_spec='-L$libdir'
8504 export_dynamic_flag_spec='${wl}--export-all-symbols'
8505 allow_undefined_flag=unsupported
8506 always_export_symbols=no
8507 enable_shared_with_static_runtimes=yes
8508 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8509
8510 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8511 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8512 # If the export-symbols file already is a .def file (1st line
8513 # is EXPORTS), use it as is; otherwise, prepend...
8514 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8515 cp $export_symbols $output_objdir/$soname.def;
8516 else
8517 echo EXPORTS > $output_objdir/$soname.def;
8518 cat $export_symbols >> $output_objdir/$soname.def;
8519 fi~
8520 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8521 else
8522 ld_shlibs=no
8523 fi
8524 ;;
8525
8526 haiku*)
8527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8528 link_all_deplibs=yes
8529 ;;
8530
8531 interix[3-9]*)
8532 hardcode_direct=no
8533 hardcode_shlibpath_var=no
8534 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8535 export_dynamic_flag_spec='${wl}-E'
8536 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8537 # Instead, shared libraries are loaded at an image base (0x10000000 by
8538 # default) and relocated if they conflict, which is a slow very memory
8539 # consuming and fragmenting process. To avoid this, we pick a random,
8540 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8541 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8542 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8543 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'
8544 ;;
8545
8546 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8547 tmp_diet=no
8548 if test "$host_os" = linux-dietlibc; then
8549 case $cc_basename in
8550 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8551 esac
8552 fi
8553 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8554 && test "$tmp_diet" = no
8555 then
8556 tmp_addflag=' $pic_flag'
8557 tmp_sharedflag='-shared'
8558 case $cc_basename,$host_cpu in
8559 pgcc*) # Portland Group C compiler
8560 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'
8561 tmp_addflag=' $pic_flag'
8562 ;;
8563 pgf77* | pgf90* | pgf95* | pgfortran*)
8564 # Portland Group f77 and f90 compilers
8565 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'
8566 tmp_addflag=' $pic_flag -Mnomain' ;;
8567 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8568 tmp_addflag=' -i_dynamic' ;;
8569 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8570 tmp_addflag=' -i_dynamic -nofor_main' ;;
8571 ifc* | ifort*) # Intel Fortran compiler
8572 tmp_addflag=' -nofor_main' ;;
8573 lf95*) # Lahey Fortran 8.1
8574 whole_archive_flag_spec=
8575 tmp_sharedflag='--shared' ;;
8576 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8577 tmp_sharedflag='-qmkshrobj'
8578 tmp_addflag= ;;
8579 nvcc*) # Cuda Compiler Driver 2.2
8580 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'
8581 compiler_needs_object=yes
8582 ;;
8583 esac
8584 case `$CC -V 2>&1 | sed 5q` in
8585 *Sun\ C*) # Sun C 5.9
8586 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'
8587 compiler_needs_object=yes
8588 tmp_sharedflag='-G' ;;
8589 *Sun\ F*) # Sun Fortran 8.3
8590 tmp_sharedflag='-G' ;;
8591 esac
8592 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8593
8594 if test "x$supports_anon_versioning" = xyes; then
8595 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8596 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8597 echo "local: *; };" >> $output_objdir/$libname.ver~
8598 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8599 fi
8600
8601 case $cc_basename in
8602 xlf* | bgf* | bgxlf* | mpixlf*)
8603 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8604 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8605 hardcode_libdir_flag_spec=
8606 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8607 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8608 if test "x$supports_anon_versioning" = xyes; then
8609 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8610 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8611 echo "local: *; };" >> $output_objdir/$libname.ver~
8612 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8613 fi
8614 ;;
8615 esac
8616 else
8617 ld_shlibs=no
8618 fi
8619 ;;
8620
8621 netbsd*)
8622 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8623 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8624 wlarc=
8625 else
8626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8627 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8628 fi
8629 ;;
8630
8631 solaris*)
8632 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8633 ld_shlibs=no
8634 cat <<_LT_EOF 1>&2
8635
8636 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8637 *** create shared libraries on Solaris systems. Therefore, libtool
8638 *** is disabling shared libraries support. We urge you to upgrade GNU
8639 *** binutils to release 2.9.1 or newer. Another option is to modify
8640 *** your PATH or compiler configuration so that the native linker is
8641 *** used, and then restart.
8642
8643 _LT_EOF
8644 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8646 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8647 else
8648 ld_shlibs=no
8649 fi
8650 ;;
8651
8652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8653 case `$LD -v 2>&1` in
8654 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8655 ld_shlibs=no
8656 cat <<_LT_EOF 1>&2
8657
8658 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8659 *** reliably create shared libraries on SCO systems. Therefore, libtool
8660 *** is disabling shared libraries support. We urge you to upgrade GNU
8661 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8662 *** your PATH or compiler configuration so that the native linker is
8663 *** used, and then restart.
8664
8665 _LT_EOF
8666 ;;
8667 *)
8668 # For security reasons, it is highly recommended that you always
8669 # use absolute paths for naming shared libraries, and exclude the
8670 # DT_RUNPATH tag from executables and libraries. But doing so
8671 # requires that you compile everything twice, which is a pain.
8672 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8673 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8674 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8675 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8676 else
8677 ld_shlibs=no
8678 fi
8679 ;;
8680 esac
8681 ;;
8682
8683 sunos4*)
8684 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8685 wlarc=
8686 hardcode_direct=yes
8687 hardcode_shlibpath_var=no
8688 ;;
8689
8690 *)
8691 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8692 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8693 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8694 else
8695 ld_shlibs=no
8696 fi
8697 ;;
8698 esac
8699
8700 if test "$ld_shlibs" = no; then
8701 runpath_var=
8702 hardcode_libdir_flag_spec=
8703 export_dynamic_flag_spec=
8704 whole_archive_flag_spec=
8705 fi
8706 else
8707 # PORTME fill in a description of your system's linker (not GNU ld)
8708 case $host_os in
8709 aix3*)
8710 allow_undefined_flag=unsupported
8711 always_export_symbols=yes
8712 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'
8713 # Note: this linker hardcodes the directories in LIBPATH if there
8714 # are no directories specified by -L.
8715 hardcode_minus_L=yes
8716 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8717 # Neither direct hardcoding nor static linking is supported with a
8718 # broken collect2.
8719 hardcode_direct=unsupported
8720 fi
8721 ;;
8722
8723 aix[4-9]*)
8724 if test "$host_cpu" = ia64; then
8725 # On IA64, the linker does run time linking by default, so we don't
8726 # have to do anything special.
8727 aix_use_runtimelinking=no
8728 exp_sym_flag='-Bexport'
8729 no_entry_flag=""
8730 else
8731 # If we're using GNU nm, then we don't want the "-C" option.
8732 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8733 # Also, AIX nm treats weak defined symbols like other global
8734 # defined symbols, whereas GNU nm marks them as "W".
8735 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8736 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'
8737 else
8738 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'
8739 fi
8740 aix_use_runtimelinking=no
8741
8742 # Test if we are trying to use run time linking or normal
8743 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8744 # need to do runtime linking.
8745 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8746 for ld_flag in $LDFLAGS; do
8747 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8748 aix_use_runtimelinking=yes
8749 break
8750 fi
8751 done
8752 ;;
8753 esac
8754
8755 exp_sym_flag='-bexport'
8756 no_entry_flag='-bnoentry'
8757 fi
8758
8759 # When large executables or shared objects are built, AIX ld can
8760 # have problems creating the table of contents. If linking a library
8761 # or program results in "error TOC overflow" add -mminimal-toc to
8762 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8763 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8764
8765 archive_cmds=''
8766 hardcode_direct=yes
8767 hardcode_direct_absolute=yes
8768 hardcode_libdir_separator=':'
8769 link_all_deplibs=yes
8770 file_list_spec='${wl}-f,'
8771
8772 if test "$GCC" = yes; then
8773 case $host_os in aix4.[012]|aix4.[012].*)
8774 # We only want to do this on AIX 4.2 and lower, the check
8775 # below for broken collect2 doesn't work under 4.3+
8776 collect2name=`${CC} -print-prog-name=collect2`
8777 if test -f "$collect2name" &&
8778 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8779 then
8780 # We have reworked collect2
8781 :
8782 else
8783 # We have old collect2
8784 hardcode_direct=unsupported
8785 # It fails to find uninstalled libraries when the uninstalled
8786 # path is not listed in the libpath. Setting hardcode_minus_L
8787 # to unsupported forces relinking
8788 hardcode_minus_L=yes
8789 hardcode_libdir_flag_spec='-L$libdir'
8790 hardcode_libdir_separator=
8791 fi
8792 ;;
8793 esac
8794 shared_flag='-shared'
8795 if test "$aix_use_runtimelinking" = yes; then
8796 shared_flag="$shared_flag "'${wl}-G'
8797 fi
8798 else
8799 # not using gcc
8800 if test "$host_cpu" = ia64; then
8801 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8802 # chokes on -Wl,-G. The following line is correct:
8803 shared_flag='-G'
8804 else
8805 if test "$aix_use_runtimelinking" = yes; then
8806 shared_flag='${wl}-G'
8807 else
8808 shared_flag='${wl}-bM:SRE'
8809 fi
8810 fi
8811 fi
8812
8813 export_dynamic_flag_spec='${wl}-bexpall'
8814 # It seems that -bexpall does not export symbols beginning with
8815 # underscore (_), so it is better to generate a list of symbols to export.
8816 always_export_symbols=yes
8817 if test "$aix_use_runtimelinking" = yes; then
8818 # Warning - without using the other runtime loading flags (-brtl),
8819 # -berok will link without error, but may produce a broken library.
8820 allow_undefined_flag='-berok'
8821 # Determine the default libpath from the value encoded in an
8822 # empty executable.
8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8825
8826 int
8827 main ()
8828 {
8829
8830 ;
8831 return 0;
8832 }
8833 _ACEOF
8834 if ac_fn_c_try_link "$LINENO"; then :
8835
8836 lt_aix_libpath_sed='
8837 /Import File Strings/,/^$/ {
8838 /^0/ {
8839 s/^0 *\(.*\)$/\1/
8840 p
8841 }
8842 }'
8843 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8844 # Check for a 64-bit object if we didn't find anything.
8845 if test -z "$aix_libpath"; then
8846 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8847 fi
8848 fi
8849 rm -f core conftest.err conftest.$ac_objext \
8850 conftest$ac_exeext conftest.$ac_ext
8851 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8852
8853 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8854 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"
8855 else
8856 if test "$host_cpu" = ia64; then
8857 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8858 allow_undefined_flag="-z nodefs"
8859 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"
8860 else
8861 # Determine the default libpath from the value encoded in an
8862 # empty executable.
8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8865
8866 int
8867 main ()
8868 {
8869
8870 ;
8871 return 0;
8872 }
8873 _ACEOF
8874 if ac_fn_c_try_link "$LINENO"; then :
8875
8876 lt_aix_libpath_sed='
8877 /Import File Strings/,/^$/ {
8878 /^0/ {
8879 s/^0 *\(.*\)$/\1/
8880 p
8881 }
8882 }'
8883 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8884 # Check for a 64-bit object if we didn't find anything.
8885 if test -z "$aix_libpath"; then
8886 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8887 fi
8888 fi
8889 rm -f core conftest.err conftest.$ac_objext \
8890 conftest$ac_exeext conftest.$ac_ext
8891 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8892
8893 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8894 # Warning - without using the other run time loading flags,
8895 # -berok will link without error, but may produce a broken library.
8896 no_undefined_flag=' ${wl}-bernotok'
8897 allow_undefined_flag=' ${wl}-berok'
8898 if test "$with_gnu_ld" = yes; then
8899 # We only use this code for GNU lds that support --whole-archive.
8900 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8901 else
8902 # Exported symbols can be pulled into shared objects from archives
8903 whole_archive_flag_spec='$convenience'
8904 fi
8905 archive_cmds_need_lc=yes
8906 # This is similar to how AIX traditionally builds its shared libraries.
8907 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'
8908 fi
8909 fi
8910 ;;
8911
8912 amigaos*)
8913 case $host_cpu in
8914 powerpc)
8915 # see comment about AmigaOS4 .so support
8916 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8917 archive_expsym_cmds=''
8918 ;;
8919 m68k)
8920 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)'
8921 hardcode_libdir_flag_spec='-L$libdir'
8922 hardcode_minus_L=yes
8923 ;;
8924 esac
8925 ;;
8926
8927 bsdi[45]*)
8928 export_dynamic_flag_spec=-rdynamic
8929 ;;
8930
8931 cygwin* | mingw* | pw32* | cegcc*)
8932 # When not using gcc, we currently assume that we are using
8933 # Microsoft Visual C++.
8934 # hardcode_libdir_flag_spec is actually meaningless, as there is
8935 # no search path for DLLs.
8936 hardcode_libdir_flag_spec=' '
8937 allow_undefined_flag=unsupported
8938 # Tell ltmain to make .lib files, not .a files.
8939 libext=lib
8940 # Tell ltmain to make .dll files, not .so files.
8941 shrext_cmds=".dll"
8942 # FIXME: Setting linknames here is a bad hack.
8943 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8944 # The linker will automatically build a .lib file if we build a DLL.
8945 old_archive_from_new_cmds='true'
8946 # FIXME: Should let the user specify the lib program.
8947 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8948 fix_srcfile_path='`cygpath -w "$srcfile"`'
8949 enable_shared_with_static_runtimes=yes
8950 ;;
8951
8952 darwin* | rhapsody*)
8953
8954
8955 archive_cmds_need_lc=no
8956 hardcode_direct=no
8957 hardcode_automatic=yes
8958 hardcode_shlibpath_var=unsupported
8959 if test "$lt_cv_ld_force_load" = "yes"; then
8960 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\"`'
8961 else
8962 whole_archive_flag_spec=''
8963 fi
8964 link_all_deplibs=yes
8965 allow_undefined_flag="$_lt_dar_allow_undefined"
8966 case $cc_basename in
8967 ifort*) _lt_dar_can_shared=yes ;;
8968 *) _lt_dar_can_shared=$GCC ;;
8969 esac
8970 if test "$_lt_dar_can_shared" = "yes"; then
8971 output_verbose_link_cmd=func_echo_all
8972 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8973 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8974 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}"
8975 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}"
8976
8977 else
8978 ld_shlibs=no
8979 fi
8980
8981 ;;
8982
8983 dgux*)
8984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8985 hardcode_libdir_flag_spec='-L$libdir'
8986 hardcode_shlibpath_var=no
8987 ;;
8988
8989 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8990 # support. Future versions do this automatically, but an explicit c++rt0.o
8991 # does not break anything, and helps significantly (at the cost of a little
8992 # extra space).
8993 freebsd2.2*)
8994 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8995 hardcode_libdir_flag_spec='-R$libdir'
8996 hardcode_direct=yes
8997 hardcode_shlibpath_var=no
8998 ;;
8999
9000 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9001 freebsd2.*)
9002 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9003 hardcode_direct=yes
9004 hardcode_minus_L=yes
9005 hardcode_shlibpath_var=no
9006 ;;
9007
9008 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9009 freebsd* | dragonfly*)
9010 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9011 hardcode_libdir_flag_spec='-R$libdir'
9012 hardcode_direct=yes
9013 hardcode_shlibpath_var=no
9014 ;;
9015
9016 hpux9*)
9017 if test "$GCC" = yes; then
9018 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'
9019 else
9020 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'
9021 fi
9022 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9023 hardcode_libdir_separator=:
9024 hardcode_direct=yes
9025
9026 # hardcode_minus_L: Not really in the search PATH,
9027 # but as the default location of the library.
9028 hardcode_minus_L=yes
9029 export_dynamic_flag_spec='${wl}-E'
9030 ;;
9031
9032 hpux10*)
9033 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9034 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9035 else
9036 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9037 fi
9038 if test "$with_gnu_ld" = no; then
9039 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9040 hardcode_libdir_flag_spec_ld='+b $libdir'
9041 hardcode_libdir_separator=:
9042 hardcode_direct=yes
9043 hardcode_direct_absolute=yes
9044 export_dynamic_flag_spec='${wl}-E'
9045 # hardcode_minus_L: Not really in the search PATH,
9046 # but as the default location of the library.
9047 hardcode_minus_L=yes
9048 fi
9049 ;;
9050
9051 hpux11*)
9052 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9053 case $host_cpu in
9054 hppa*64*)
9055 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9056 ;;
9057 ia64*)
9058 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9059 ;;
9060 *)
9061 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9062 ;;
9063 esac
9064 else
9065 case $host_cpu in
9066 hppa*64*)
9067 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9068 ;;
9069 ia64*)
9070 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9071 ;;
9072 *)
9073
9074 # Older versions of the 11.00 compiler do not understand -b yet
9075 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9077 $as_echo_n "checking if $CC understands -b... " >&6; }
9078 if ${lt_cv_prog_compiler__b+:} false; then :
9079 $as_echo_n "(cached) " >&6
9080 else
9081 lt_cv_prog_compiler__b=no
9082 save_LDFLAGS="$LDFLAGS"
9083 LDFLAGS="$LDFLAGS -b"
9084 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9085 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9086 # The linker can only warn and ignore the option if not recognized
9087 # So say no if there are warnings
9088 if test -s conftest.err; then
9089 # Append any errors to the config.log.
9090 cat conftest.err 1>&5
9091 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9092 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9093 if diff conftest.exp conftest.er2 >/dev/null; then
9094 lt_cv_prog_compiler__b=yes
9095 fi
9096 else
9097 lt_cv_prog_compiler__b=yes
9098 fi
9099 fi
9100 $RM -r conftest*
9101 LDFLAGS="$save_LDFLAGS"
9102
9103 fi
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9105 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9106
9107 if test x"$lt_cv_prog_compiler__b" = xyes; then
9108 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9109 else
9110 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9111 fi
9112
9113 ;;
9114 esac
9115 fi
9116 if test "$with_gnu_ld" = no; then
9117 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9118 hardcode_libdir_separator=:
9119
9120 case $host_cpu in
9121 hppa*64*|ia64*)
9122 hardcode_direct=no
9123 hardcode_shlibpath_var=no
9124 ;;
9125 *)
9126 hardcode_direct=yes
9127 hardcode_direct_absolute=yes
9128 export_dynamic_flag_spec='${wl}-E'
9129
9130 # hardcode_minus_L: Not really in the search PATH,
9131 # but as the default location of the library.
9132 hardcode_minus_L=yes
9133 ;;
9134 esac
9135 fi
9136 ;;
9137
9138 irix5* | irix6* | nonstopux*)
9139 if test "$GCC" = yes; then
9140 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'
9141 # Try to use the -exported_symbol ld option, if it does not
9142 # work, assume that -exports_file does not work either and
9143 # implicitly export all symbols.
9144 save_LDFLAGS="$LDFLAGS"
9145 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9147 /* end confdefs.h. */
9148 int foo(void) {}
9149 _ACEOF
9150 if ac_fn_c_try_link "$LINENO"; then :
9151 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'
9152
9153 fi
9154 rm -f core conftest.err conftest.$ac_objext \
9155 conftest$ac_exeext conftest.$ac_ext
9156 LDFLAGS="$save_LDFLAGS"
9157 else
9158 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'
9159 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'
9160 fi
9161 archive_cmds_need_lc='no'
9162 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9163 hardcode_libdir_separator=:
9164 inherit_rpath=yes
9165 link_all_deplibs=yes
9166 ;;
9167
9168 netbsd*)
9169 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9170 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9171 else
9172 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9173 fi
9174 hardcode_libdir_flag_spec='-R$libdir'
9175 hardcode_direct=yes
9176 hardcode_shlibpath_var=no
9177 ;;
9178
9179 newsos6)
9180 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9181 hardcode_direct=yes
9182 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9183 hardcode_libdir_separator=:
9184 hardcode_shlibpath_var=no
9185 ;;
9186
9187 *nto* | *qnx*)
9188 ;;
9189
9190 openbsd*)
9191 if test -f /usr/libexec/ld.so; then
9192 hardcode_direct=yes
9193 hardcode_shlibpath_var=no
9194 hardcode_direct_absolute=yes
9195 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9196 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9197 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9198 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9199 export_dynamic_flag_spec='${wl}-E'
9200 else
9201 case $host_os in
9202 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9203 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9204 hardcode_libdir_flag_spec='-R$libdir'
9205 ;;
9206 *)
9207 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9208 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9209 ;;
9210 esac
9211 fi
9212 else
9213 ld_shlibs=no
9214 fi
9215 ;;
9216
9217 os2*)
9218 hardcode_libdir_flag_spec='-L$libdir'
9219 hardcode_minus_L=yes
9220 allow_undefined_flag=unsupported
9221 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'
9222 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9223 ;;
9224
9225 osf3*)
9226 if test "$GCC" = yes; then
9227 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9228 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'
9229 else
9230 allow_undefined_flag=' -expect_unresolved \*'
9231 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'
9232 fi
9233 archive_cmds_need_lc='no'
9234 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9235 hardcode_libdir_separator=:
9236 ;;
9237
9238 osf4* | osf5*) # as osf3* with the addition of -msym flag
9239 if test "$GCC" = yes; then
9240 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9241 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'
9242 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9243 else
9244 allow_undefined_flag=' -expect_unresolved \*'
9245 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'
9246 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~
9247 $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'
9248
9249 # Both c and cxx compiler support -rpath directly
9250 hardcode_libdir_flag_spec='-rpath $libdir'
9251 fi
9252 archive_cmds_need_lc='no'
9253 hardcode_libdir_separator=:
9254 ;;
9255
9256 solaris*)
9257 no_undefined_flag=' -z defs'
9258 if test "$GCC" = yes; then
9259 wlarc='${wl}'
9260 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9261 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9262 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9263 else
9264 case `$CC -V 2>&1` in
9265 *"Compilers 5.0"*)
9266 wlarc=''
9267 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9268 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9269 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9270 ;;
9271 *)
9272 wlarc='${wl}'
9273 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9274 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9275 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9276 ;;
9277 esac
9278 fi
9279 hardcode_libdir_flag_spec='-R$libdir'
9280 hardcode_shlibpath_var=no
9281 case $host_os in
9282 solaris2.[0-5] | solaris2.[0-5].*) ;;
9283 *)
9284 # The compiler driver will combine and reorder linker options,
9285 # but understands `-z linker_flag'. GCC discards it without `$wl',
9286 # but is careful enough not to reorder.
9287 # Supported since Solaris 2.6 (maybe 2.5.1?)
9288 if test "$GCC" = yes; then
9289 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9290 else
9291 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9292 fi
9293 ;;
9294 esac
9295 link_all_deplibs=yes
9296 ;;
9297
9298 sunos4*)
9299 if test "x$host_vendor" = xsequent; then
9300 # Use $CC to link under sequent, because it throws in some extra .o
9301 # files that make .init and .fini sections work.
9302 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9303 else
9304 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9305 fi
9306 hardcode_libdir_flag_spec='-L$libdir'
9307 hardcode_direct=yes
9308 hardcode_minus_L=yes
9309 hardcode_shlibpath_var=no
9310 ;;
9311
9312 sysv4)
9313 case $host_vendor in
9314 sni)
9315 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9316 hardcode_direct=yes # is this really true???
9317 ;;
9318 siemens)
9319 ## LD is ld it makes a PLAMLIB
9320 ## CC just makes a GrossModule.
9321 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9322 reload_cmds='$CC -r -o $output$reload_objs'
9323 hardcode_direct=no
9324 ;;
9325 motorola)
9326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9327 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9328 ;;
9329 esac
9330 runpath_var='LD_RUN_PATH'
9331 hardcode_shlibpath_var=no
9332 ;;
9333
9334 sysv4.3*)
9335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9336 hardcode_shlibpath_var=no
9337 export_dynamic_flag_spec='-Bexport'
9338 ;;
9339
9340 sysv4*MP*)
9341 if test -d /usr/nec; then
9342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9343 hardcode_shlibpath_var=no
9344 runpath_var=LD_RUN_PATH
9345 hardcode_runpath_var=yes
9346 ld_shlibs=yes
9347 fi
9348 ;;
9349
9350 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9351 no_undefined_flag='${wl}-z,text'
9352 archive_cmds_need_lc=no
9353 hardcode_shlibpath_var=no
9354 runpath_var='LD_RUN_PATH'
9355
9356 if test "$GCC" = yes; then
9357 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9358 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9359 else
9360 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9361 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9362 fi
9363 ;;
9364
9365 sysv5* | sco3.2v5* | sco5v6*)
9366 # Note: We can NOT use -z defs as we might desire, because we do not
9367 # link with -lc, and that would cause any symbols used from libc to
9368 # always be unresolved, which means just about no library would
9369 # ever link correctly. If we're not using GNU ld we use -z text
9370 # though, which does catch some bad symbols but isn't as heavy-handed
9371 # as -z defs.
9372 no_undefined_flag='${wl}-z,text'
9373 allow_undefined_flag='${wl}-z,nodefs'
9374 archive_cmds_need_lc=no
9375 hardcode_shlibpath_var=no
9376 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9377 hardcode_libdir_separator=':'
9378 link_all_deplibs=yes
9379 export_dynamic_flag_spec='${wl}-Bexport'
9380 runpath_var='LD_RUN_PATH'
9381
9382 if test "$GCC" = yes; then
9383 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9384 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9385 else
9386 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9387 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9388 fi
9389 ;;
9390
9391 uts4*)
9392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9393 hardcode_libdir_flag_spec='-L$libdir'
9394 hardcode_shlibpath_var=no
9395 ;;
9396
9397 *)
9398 ld_shlibs=no
9399 ;;
9400 esac
9401
9402 if test x$host_vendor = xsni; then
9403 case $host in
9404 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9405 export_dynamic_flag_spec='${wl}-Blargedynsym'
9406 ;;
9407 esac
9408 fi
9409 fi
9410
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9412 $as_echo "$ld_shlibs" >&6; }
9413 test "$ld_shlibs" = no && can_build_shared=no
9414
9415 with_gnu_ld=$with_gnu_ld
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431 #
9432 # Do we need to explicitly link libc?
9433 #
9434 case "x$archive_cmds_need_lc" in
9435 x|xyes)
9436 # Assume -lc should be added
9437 archive_cmds_need_lc=yes
9438
9439 if test "$enable_shared" = yes && test "$GCC" = yes; then
9440 case $archive_cmds in
9441 *'~'*)
9442 # FIXME: we may have to deal with multi-command sequences.
9443 ;;
9444 '$CC '*)
9445 # Test whether the compiler implicitly links with -lc since on some
9446 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9447 # to ld, don't add -lc before -lgcc.
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9449 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9450 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9451 $as_echo_n "(cached) " >&6
9452 else
9453 $RM conftest*
9454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9455
9456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9457 (eval $ac_compile) 2>&5
9458 ac_status=$?
9459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9460 test $ac_status = 0; } 2>conftest.err; then
9461 soname=conftest
9462 lib=conftest
9463 libobjs=conftest.$ac_objext
9464 deplibs=
9465 wl=$lt_prog_compiler_wl
9466 pic_flag=$lt_prog_compiler_pic
9467 compiler_flags=-v
9468 linker_flags=-v
9469 verstring=
9470 output_objdir=.
9471 libname=conftest
9472 lt_save_allow_undefined_flag=$allow_undefined_flag
9473 allow_undefined_flag=
9474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9475 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9476 ac_status=$?
9477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9478 test $ac_status = 0; }
9479 then
9480 lt_cv_archive_cmds_need_lc=no
9481 else
9482 lt_cv_archive_cmds_need_lc=yes
9483 fi
9484 allow_undefined_flag=$lt_save_allow_undefined_flag
9485 else
9486 cat conftest.err 1>&5
9487 fi
9488 $RM conftest*
9489
9490 fi
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9492 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9493 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9494 ;;
9495 esac
9496 fi
9497 ;;
9498 esac
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9657 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9658
9659 if test "$GCC" = yes; then
9660 case $host_os in
9661 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9662 *) lt_awk_arg="/^libraries:/" ;;
9663 esac
9664 case $host_os in
9665 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9666 *) lt_sed_strip_eq="s,=/,/,g" ;;
9667 esac
9668 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9669 case $lt_search_path_spec in
9670 *\;*)
9671 # if the path contains ";" then we assume it to be the separator
9672 # otherwise default to the standard path separator (i.e. ":") - it is
9673 # assumed that no part of a normal pathname contains ";" but that should
9674 # okay in the real world where ";" in dirpaths is itself problematic.
9675 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9676 ;;
9677 *)
9678 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9679 ;;
9680 esac
9681 # Ok, now we have the path, separated by spaces, we can step through it
9682 # and add multilib dir if necessary.
9683 lt_tmp_lt_search_path_spec=
9684 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9685 for lt_sys_path in $lt_search_path_spec; do
9686 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9687 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9688 else
9689 test -d "$lt_sys_path" && \
9690 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9691 fi
9692 done
9693 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9694 BEGIN {RS=" "; FS="/|\n";} {
9695 lt_foo="";
9696 lt_count=0;
9697 for (lt_i = NF; lt_i > 0; lt_i--) {
9698 if ($lt_i != "" && $lt_i != ".") {
9699 if ($lt_i == "..") {
9700 lt_count++;
9701 } else {
9702 if (lt_count == 0) {
9703 lt_foo="/" $lt_i lt_foo;
9704 } else {
9705 lt_count--;
9706 }
9707 }
9708 }
9709 }
9710 if (lt_foo != "") { lt_freq[lt_foo]++; }
9711 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9712 }'`
9713 # AWK program above erroneously prepends '/' to C:/dos/paths
9714 # for these hosts.
9715 case $host_os in
9716 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9717 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9718 esac
9719 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9720 else
9721 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9722 fi
9723 library_names_spec=
9724 libname_spec='lib$name'
9725 soname_spec=
9726 shrext_cmds=".so"
9727 postinstall_cmds=
9728 postuninstall_cmds=
9729 finish_cmds=
9730 finish_eval=
9731 shlibpath_var=
9732 shlibpath_overrides_runpath=unknown
9733 version_type=none
9734 dynamic_linker="$host_os ld.so"
9735 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9736 need_lib_prefix=unknown
9737 hardcode_into_libs=no
9738
9739 # when you set need_version to no, make sure it does not cause -set_version
9740 # flags to be left without arguments
9741 need_version=unknown
9742
9743 case $host_os in
9744 aix3*)
9745 version_type=linux
9746 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9747 shlibpath_var=LIBPATH
9748
9749 # AIX 3 has no versioning support, so we append a major version to the name.
9750 soname_spec='${libname}${release}${shared_ext}$major'
9751 ;;
9752
9753 aix[4-9]*)
9754 version_type=linux
9755 need_lib_prefix=no
9756 need_version=no
9757 hardcode_into_libs=yes
9758 if test "$host_cpu" = ia64; then
9759 # AIX 5 supports IA64
9760 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9761 shlibpath_var=LD_LIBRARY_PATH
9762 else
9763 # With GCC up to 2.95.x, collect2 would create an import file
9764 # for dependence libraries. The import file would start with
9765 # the line `#! .'. This would cause the generated library to
9766 # depend on `.', always an invalid library. This was fixed in
9767 # development snapshots of GCC prior to 3.0.
9768 case $host_os in
9769 aix4 | aix4.[01] | aix4.[01].*)
9770 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9771 echo ' yes '
9772 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9773 :
9774 else
9775 can_build_shared=no
9776 fi
9777 ;;
9778 esac
9779 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9780 # soname into executable. Probably we can add versioning support to
9781 # collect2, so additional links can be useful in future.
9782 if test "$aix_use_runtimelinking" = yes; then
9783 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9784 # instead of lib<name>.a to let people know that these are not
9785 # typical AIX shared libraries.
9786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9787 else
9788 # We preserve .a as extension for shared libraries through AIX4.2
9789 # and later when we are not doing run time linking.
9790 library_names_spec='${libname}${release}.a $libname.a'
9791 soname_spec='${libname}${release}${shared_ext}$major'
9792 fi
9793 shlibpath_var=LIBPATH
9794 fi
9795 ;;
9796
9797 amigaos*)
9798 case $host_cpu in
9799 powerpc)
9800 # Since July 2007 AmigaOS4 officially supports .so libraries.
9801 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9803 ;;
9804 m68k)
9805 library_names_spec='$libname.ixlibrary $libname.a'
9806 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9807 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'
9808 ;;
9809 esac
9810 ;;
9811
9812 beos*)
9813 library_names_spec='${libname}${shared_ext}'
9814 dynamic_linker="$host_os ld.so"
9815 shlibpath_var=LIBRARY_PATH
9816 ;;
9817
9818 bsdi[45]*)
9819 version_type=linux
9820 need_version=no
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9824 shlibpath_var=LD_LIBRARY_PATH
9825 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9826 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9827 # the default ld.so.conf also contains /usr/contrib/lib and
9828 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9829 # libtool to hard-code these into programs
9830 ;;
9831
9832 cygwin* | mingw* | pw32* | cegcc*)
9833 version_type=windows
9834 shrext_cmds=".dll"
9835 need_version=no
9836 need_lib_prefix=no
9837
9838 case $GCC,$host_os in
9839 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9840 library_names_spec='$libname.dll.a'
9841 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9842 postinstall_cmds='base_file=`basename \${file}`~
9843 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9844 dldir=$destdir/`dirname \$dlpath`~
9845 test -d \$dldir || mkdir -p \$dldir~
9846 $install_prog $dir/$dlname \$dldir/$dlname~
9847 chmod a+x \$dldir/$dlname~
9848 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9849 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9850 fi'
9851 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9852 dlpath=$dir/\$dldll~
9853 $RM \$dlpath'
9854 shlibpath_overrides_runpath=yes
9855
9856 case $host_os in
9857 cygwin*)
9858 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9859 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9860
9861 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9862 ;;
9863 mingw* | cegcc*)
9864 # MinGW DLLs use traditional 'lib' prefix
9865 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9866 ;;
9867 pw32*)
9868 # pw32 DLLs use 'pw' prefix rather than 'lib'
9869 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9870 ;;
9871 esac
9872 ;;
9873
9874 *)
9875 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9876 ;;
9877 esac
9878 dynamic_linker='Win32 ld.exe'
9879 # FIXME: first we should search . and the directory the executable is in
9880 shlibpath_var=PATH
9881 ;;
9882
9883 darwin* | rhapsody*)
9884 dynamic_linker="$host_os dyld"
9885 version_type=darwin
9886 need_lib_prefix=no
9887 need_version=no
9888 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9889 soname_spec='${libname}${release}${major}$shared_ext'
9890 shlibpath_overrides_runpath=yes
9891 shlibpath_var=DYLD_LIBRARY_PATH
9892 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9893
9894 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9895 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9896 ;;
9897
9898 dgux*)
9899 version_type=linux
9900 need_lib_prefix=no
9901 need_version=no
9902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9903 soname_spec='${libname}${release}${shared_ext}$major'
9904 shlibpath_var=LD_LIBRARY_PATH
9905 ;;
9906
9907 freebsd* | dragonfly*)
9908 # DragonFly does not have aout. When/if they implement a new
9909 # versioning mechanism, adjust this.
9910 if test -x /usr/bin/objformat; then
9911 objformat=`/usr/bin/objformat`
9912 else
9913 case $host_os in
9914 freebsd[23].*) objformat=aout ;;
9915 *) objformat=elf ;;
9916 esac
9917 fi
9918 version_type=freebsd-$objformat
9919 case $version_type in
9920 freebsd-elf*)
9921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9922 need_version=no
9923 need_lib_prefix=no
9924 ;;
9925 freebsd-*)
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9927 need_version=yes
9928 ;;
9929 esac
9930 shlibpath_var=LD_LIBRARY_PATH
9931 case $host_os in
9932 freebsd2.*)
9933 shlibpath_overrides_runpath=yes
9934 ;;
9935 freebsd3.[01]* | freebsdelf3.[01]*)
9936 shlibpath_overrides_runpath=yes
9937 hardcode_into_libs=yes
9938 ;;
9939 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9940 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9941 shlibpath_overrides_runpath=no
9942 hardcode_into_libs=yes
9943 ;;
9944 *) # from 4.6 on, and DragonFly
9945 shlibpath_overrides_runpath=yes
9946 hardcode_into_libs=yes
9947 ;;
9948 esac
9949 ;;
9950
9951 haiku*)
9952 version_type=linux
9953 need_lib_prefix=no
9954 need_version=no
9955 dynamic_linker="$host_os runtime_loader"
9956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9957 soname_spec='${libname}${release}${shared_ext}$major'
9958 shlibpath_var=LIBRARY_PATH
9959 shlibpath_overrides_runpath=yes
9960 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9961 hardcode_into_libs=yes
9962 ;;
9963
9964 hpux9* | hpux10* | hpux11*)
9965 # Give a soname corresponding to the major version so that dld.sl refuses to
9966 # link against other versions.
9967 version_type=sunos
9968 need_lib_prefix=no
9969 need_version=no
9970 case $host_cpu in
9971 ia64*)
9972 shrext_cmds='.so'
9973 hardcode_into_libs=yes
9974 dynamic_linker="$host_os dld.so"
9975 shlibpath_var=LD_LIBRARY_PATH
9976 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9978 soname_spec='${libname}${release}${shared_ext}$major'
9979 if test "X$HPUX_IA64_MODE" = X32; then
9980 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9981 else
9982 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9983 fi
9984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9985 ;;
9986 hppa*64*)
9987 shrext_cmds='.sl'
9988 hardcode_into_libs=yes
9989 dynamic_linker="$host_os dld.sl"
9990 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9991 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9993 soname_spec='${libname}${release}${shared_ext}$major'
9994 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9995 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9996 ;;
9997 *)
9998 shrext_cmds='.sl'
9999 dynamic_linker="$host_os dld.sl"
10000 shlibpath_var=SHLIB_PATH
10001 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10003 soname_spec='${libname}${release}${shared_ext}$major'
10004 ;;
10005 esac
10006 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10007 postinstall_cmds='chmod 555 $lib'
10008 # or fails outright, so override atomically:
10009 install_override_mode=555
10010 ;;
10011
10012 interix[3-9]*)
10013 version_type=linux
10014 need_lib_prefix=no
10015 need_version=no
10016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10017 soname_spec='${libname}${release}${shared_ext}$major'
10018 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10019 shlibpath_var=LD_LIBRARY_PATH
10020 shlibpath_overrides_runpath=no
10021 hardcode_into_libs=yes
10022 ;;
10023
10024 irix5* | irix6* | nonstopux*)
10025 case $host_os in
10026 nonstopux*) version_type=nonstopux ;;
10027 *)
10028 if test "$lt_cv_prog_gnu_ld" = yes; then
10029 version_type=linux
10030 else
10031 version_type=irix
10032 fi ;;
10033 esac
10034 need_lib_prefix=no
10035 need_version=no
10036 soname_spec='${libname}${release}${shared_ext}$major'
10037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10038 case $host_os in
10039 irix5* | nonstopux*)
10040 libsuff= shlibsuff=
10041 ;;
10042 *)
10043 case $LD in # libtool.m4 will add one of these switches to LD
10044 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10045 libsuff= shlibsuff= libmagic=32-bit;;
10046 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10047 libsuff=32 shlibsuff=N32 libmagic=N32;;
10048 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10049 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10050 *) libsuff= shlibsuff= libmagic=never-match;;
10051 esac
10052 ;;
10053 esac
10054 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10055 shlibpath_overrides_runpath=no
10056 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10057 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10058 hardcode_into_libs=yes
10059 ;;
10060
10061 # No shared lib support for Linux oldld, aout, or coff.
10062 linux*oldld* | linux*aout* | linux*coff*)
10063 dynamic_linker=no
10064 ;;
10065
10066 # This must be Linux ELF.
10067
10068 # uclinux* changes (here and below) have been submitted to the libtool
10069 # project, but have not yet been accepted: they are GCC-local changes
10070 # for the time being. (See
10071 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10072 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10073 version_type=linux
10074 need_lib_prefix=no
10075 need_version=no
10076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10077 soname_spec='${libname}${release}${shared_ext}$major'
10078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10079 shlibpath_var=LD_LIBRARY_PATH
10080 shlibpath_overrides_runpath=no
10081
10082 # Some binutils ld are patched to set DT_RUNPATH
10083 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10084 $as_echo_n "(cached) " >&6
10085 else
10086 lt_cv_shlibpath_overrides_runpath=no
10087 save_LDFLAGS=$LDFLAGS
10088 save_libdir=$libdir
10089 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10090 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10092 /* end confdefs.h. */
10093
10094 int
10095 main ()
10096 {
10097
10098 ;
10099 return 0;
10100 }
10101 _ACEOF
10102 if ac_fn_c_try_link "$LINENO"; then :
10103 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10104 lt_cv_shlibpath_overrides_runpath=yes
10105 fi
10106 fi
10107 rm -f core conftest.err conftest.$ac_objext \
10108 conftest$ac_exeext conftest.$ac_ext
10109 LDFLAGS=$save_LDFLAGS
10110 libdir=$save_libdir
10111
10112 fi
10113
10114 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10115
10116 # This implies no fast_install, which is unacceptable.
10117 # Some rework will be needed to allow for fast_install
10118 # before this can be enabled.
10119 hardcode_into_libs=yes
10120
10121 # Append ld.so.conf contents to the search path
10122 if test -f /etc/ld.so.conf; then
10123 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' ' '`
10124 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10125 fi
10126
10127 # We used to test for /lib/ld.so.1 and disable shared libraries on
10128 # powerpc, because MkLinux only supported shared libraries with the
10129 # GNU dynamic linker. Since this was broken with cross compilers,
10130 # most powerpc-linux boxes support dynamic linking these days and
10131 # people can always --disable-shared, the test was removed, and we
10132 # assume the GNU/Linux dynamic linker is in use.
10133 dynamic_linker='GNU/Linux ld.so'
10134 ;;
10135
10136 netbsd*)
10137 version_type=sunos
10138 need_lib_prefix=no
10139 need_version=no
10140 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10142 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10143 dynamic_linker='NetBSD (a.out) ld.so'
10144 else
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10147 dynamic_linker='NetBSD ld.elf_so'
10148 fi
10149 shlibpath_var=LD_LIBRARY_PATH
10150 shlibpath_overrides_runpath=yes
10151 hardcode_into_libs=yes
10152 ;;
10153
10154 newsos6)
10155 version_type=linux
10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10157 shlibpath_var=LD_LIBRARY_PATH
10158 shlibpath_overrides_runpath=yes
10159 ;;
10160
10161 *nto* | *qnx*)
10162 version_type=qnx
10163 need_lib_prefix=no
10164 need_version=no
10165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10166 soname_spec='${libname}${release}${shared_ext}$major'
10167 shlibpath_var=LD_LIBRARY_PATH
10168 shlibpath_overrides_runpath=no
10169 hardcode_into_libs=yes
10170 dynamic_linker='ldqnx.so'
10171 ;;
10172
10173 openbsd*)
10174 version_type=sunos
10175 sys_lib_dlsearch_path_spec="/usr/lib"
10176 need_lib_prefix=no
10177 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10178 case $host_os in
10179 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10180 *) need_version=no ;;
10181 esac
10182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10183 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10184 shlibpath_var=LD_LIBRARY_PATH
10185 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10186 case $host_os in
10187 openbsd2.[89] | openbsd2.[89].*)
10188 shlibpath_overrides_runpath=no
10189 ;;
10190 *)
10191 shlibpath_overrides_runpath=yes
10192 ;;
10193 esac
10194 else
10195 shlibpath_overrides_runpath=yes
10196 fi
10197 ;;
10198
10199 os2*)
10200 libname_spec='$name'
10201 shrext_cmds=".dll"
10202 need_lib_prefix=no
10203 library_names_spec='$libname${shared_ext} $libname.a'
10204 dynamic_linker='OS/2 ld.exe'
10205 shlibpath_var=LIBPATH
10206 ;;
10207
10208 osf3* | osf4* | osf5*)
10209 version_type=osf
10210 need_lib_prefix=no
10211 need_version=no
10212 soname_spec='${libname}${release}${shared_ext}$major'
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214 shlibpath_var=LD_LIBRARY_PATH
10215 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10216 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10217 ;;
10218
10219 rdos*)
10220 dynamic_linker=no
10221 ;;
10222
10223 solaris*)
10224 version_type=linux
10225 need_lib_prefix=no
10226 need_version=no
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228 soname_spec='${libname}${release}${shared_ext}$major'
10229 shlibpath_var=LD_LIBRARY_PATH
10230 shlibpath_overrides_runpath=yes
10231 hardcode_into_libs=yes
10232 # ldd complains unless libraries are executable
10233 postinstall_cmds='chmod +x $lib'
10234 ;;
10235
10236 sunos4*)
10237 version_type=sunos
10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10239 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10240 shlibpath_var=LD_LIBRARY_PATH
10241 shlibpath_overrides_runpath=yes
10242 if test "$with_gnu_ld" = yes; then
10243 need_lib_prefix=no
10244 fi
10245 need_version=yes
10246 ;;
10247
10248 sysv4 | sysv4.3*)
10249 version_type=linux
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10251 soname_spec='${libname}${release}${shared_ext}$major'
10252 shlibpath_var=LD_LIBRARY_PATH
10253 case $host_vendor in
10254 sni)
10255 shlibpath_overrides_runpath=no
10256 need_lib_prefix=no
10257 runpath_var=LD_RUN_PATH
10258 ;;
10259 siemens)
10260 need_lib_prefix=no
10261 ;;
10262 motorola)
10263 need_lib_prefix=no
10264 need_version=no
10265 shlibpath_overrides_runpath=no
10266 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10267 ;;
10268 esac
10269 ;;
10270
10271 sysv4*MP*)
10272 if test -d /usr/nec ;then
10273 version_type=linux
10274 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10275 soname_spec='$libname${shared_ext}.$major'
10276 shlibpath_var=LD_LIBRARY_PATH
10277 fi
10278 ;;
10279
10280 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10281 version_type=freebsd-elf
10282 need_lib_prefix=no
10283 need_version=no
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10285 soname_spec='${libname}${release}${shared_ext}$major'
10286 shlibpath_var=LD_LIBRARY_PATH
10287 shlibpath_overrides_runpath=yes
10288 hardcode_into_libs=yes
10289 if test "$with_gnu_ld" = yes; then
10290 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10291 else
10292 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10293 case $host_os in
10294 sco3.2v5*)
10295 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10296 ;;
10297 esac
10298 fi
10299 sys_lib_dlsearch_path_spec='/usr/lib'
10300 ;;
10301
10302 tpf*)
10303 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10304 version_type=linux
10305 need_lib_prefix=no
10306 need_version=no
10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308 shlibpath_var=LD_LIBRARY_PATH
10309 shlibpath_overrides_runpath=no
10310 hardcode_into_libs=yes
10311 ;;
10312
10313 uts4*)
10314 version_type=linux
10315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10316 soname_spec='${libname}${release}${shared_ext}$major'
10317 shlibpath_var=LD_LIBRARY_PATH
10318 ;;
10319
10320 # Shared libraries for VwWorks, >= 7 only at this stage
10321 # and (fpic) still incompatible with "large" code models
10322 # in a few configurations. Only for RTP mode in any case,
10323 # and upon explicit request at configure time.
10324 vxworks7*)
10325 dynamic_linker=no
10326 case ${with_multisubdir}-${enable_shared} in
10327 *large*)
10328 ;;
10329 *mrtp*-yes)
10330 version_type=linux
10331 need_lib_prefix=no
10332 need_version=no
10333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10334 soname_spec='${libname}${release}${shared_ext}$major'
10335 dynamic_linker="$host_os module_loader"
10336 ;;
10337 esac
10338 ;;
10339 *)
10340 dynamic_linker=no
10341 ;;
10342 esac
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10344 $as_echo "$dynamic_linker" >&6; }
10345 test "$dynamic_linker" = no && can_build_shared=no
10346
10347 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10348 if test "$GCC" = yes; then
10349 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10350 fi
10351
10352 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10353 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10354 fi
10355 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10356 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10357 fi
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10451 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10452 hardcode_action=
10453 if test -n "$hardcode_libdir_flag_spec" ||
10454 test -n "$runpath_var" ||
10455 test "X$hardcode_automatic" = "Xyes" ; then
10456
10457 # We can hardcode non-existent directories.
10458 if test "$hardcode_direct" != no &&
10459 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10460 # have to relink, otherwise we might link with an installed library
10461 # when we should be linking with a yet-to-be-installed one
10462 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10463 test "$hardcode_minus_L" != no; then
10464 # Linking always hardcodes the temporary library directory.
10465 hardcode_action=relink
10466 else
10467 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10468 hardcode_action=immediate
10469 fi
10470 else
10471 # We cannot hardcode anything, or else we can only hardcode existing
10472 # directories.
10473 hardcode_action=unsupported
10474 fi
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10476 $as_echo "$hardcode_action" >&6; }
10477
10478 if test "$hardcode_action" = relink ||
10479 test "$inherit_rpath" = yes; then
10480 # Fast installation is not supported
10481 enable_fast_install=no
10482 elif test "$shlibpath_overrides_runpath" = yes ||
10483 test "$enable_shared" = no; then
10484 # Fast installation is not necessary
10485 enable_fast_install=needless
10486 fi
10487
10488
10489
10490
10491
10492
10493 if test "x$enable_dlopen" != xyes; then
10494 enable_dlopen=unknown
10495 enable_dlopen_self=unknown
10496 enable_dlopen_self_static=unknown
10497 else
10498 lt_cv_dlopen=no
10499 lt_cv_dlopen_libs=
10500
10501 case $host_os in
10502 beos*)
10503 lt_cv_dlopen="load_add_on"
10504 lt_cv_dlopen_libs=
10505 lt_cv_dlopen_self=yes
10506 ;;
10507
10508 mingw* | pw32* | cegcc*)
10509 lt_cv_dlopen="LoadLibrary"
10510 lt_cv_dlopen_libs=
10511 ;;
10512
10513 cygwin*)
10514 lt_cv_dlopen="dlopen"
10515 lt_cv_dlopen_libs=
10516 ;;
10517
10518 darwin*)
10519 # if libdl is installed we need to link against it
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10521 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10522 if ${ac_cv_lib_dl_dlopen+:} false; then :
10523 $as_echo_n "(cached) " >&6
10524 else
10525 ac_check_lib_save_LIBS=$LIBS
10526 LIBS="-ldl $LIBS"
10527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10528 /* end confdefs.h. */
10529
10530 /* Override any GCC internal prototype to avoid an error.
10531 Use char because int might match the return type of a GCC
10532 builtin and then its argument prototype would still apply. */
10533 #ifdef __cplusplus
10534 extern "C"
10535 #endif
10536 char dlopen ();
10537 int
10538 main ()
10539 {
10540 return dlopen ();
10541 ;
10542 return 0;
10543 }
10544 _ACEOF
10545 if ac_fn_c_try_link "$LINENO"; then :
10546 ac_cv_lib_dl_dlopen=yes
10547 else
10548 ac_cv_lib_dl_dlopen=no
10549 fi
10550 rm -f core conftest.err conftest.$ac_objext \
10551 conftest$ac_exeext conftest.$ac_ext
10552 LIBS=$ac_check_lib_save_LIBS
10553 fi
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10555 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10556 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10557 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10558 else
10559
10560 lt_cv_dlopen="dyld"
10561 lt_cv_dlopen_libs=
10562 lt_cv_dlopen_self=yes
10563
10564 fi
10565
10566 ;;
10567
10568 *)
10569 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10570 if test "x$ac_cv_func_shl_load" = xyes; then :
10571 lt_cv_dlopen="shl_load"
10572 else
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10574 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10575 if ${ac_cv_lib_dld_shl_load+:} false; then :
10576 $as_echo_n "(cached) " >&6
10577 else
10578 ac_check_lib_save_LIBS=$LIBS
10579 LIBS="-ldld $LIBS"
10580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10581 /* end confdefs.h. */
10582
10583 /* Override any GCC internal prototype to avoid an error.
10584 Use char because int might match the return type of a GCC
10585 builtin and then its argument prototype would still apply. */
10586 #ifdef __cplusplus
10587 extern "C"
10588 #endif
10589 char shl_load ();
10590 int
10591 main ()
10592 {
10593 return shl_load ();
10594 ;
10595 return 0;
10596 }
10597 _ACEOF
10598 if ac_fn_c_try_link "$LINENO"; then :
10599 ac_cv_lib_dld_shl_load=yes
10600 else
10601 ac_cv_lib_dld_shl_load=no
10602 fi
10603 rm -f core conftest.err conftest.$ac_objext \
10604 conftest$ac_exeext conftest.$ac_ext
10605 LIBS=$ac_check_lib_save_LIBS
10606 fi
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10608 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10609 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10610 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10611 else
10612 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10613 if test "x$ac_cv_func_dlopen" = xyes; then :
10614 lt_cv_dlopen="dlopen"
10615 else
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10617 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10618 if ${ac_cv_lib_dl_dlopen+:} false; then :
10619 $as_echo_n "(cached) " >&6
10620 else
10621 ac_check_lib_save_LIBS=$LIBS
10622 LIBS="-ldl $LIBS"
10623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10624 /* end confdefs.h. */
10625
10626 /* Override any GCC internal prototype to avoid an error.
10627 Use char because int might match the return type of a GCC
10628 builtin and then its argument prototype would still apply. */
10629 #ifdef __cplusplus
10630 extern "C"
10631 #endif
10632 char dlopen ();
10633 int
10634 main ()
10635 {
10636 return dlopen ();
10637 ;
10638 return 0;
10639 }
10640 _ACEOF
10641 if ac_fn_c_try_link "$LINENO"; then :
10642 ac_cv_lib_dl_dlopen=yes
10643 else
10644 ac_cv_lib_dl_dlopen=no
10645 fi
10646 rm -f core conftest.err conftest.$ac_objext \
10647 conftest$ac_exeext conftest.$ac_ext
10648 LIBS=$ac_check_lib_save_LIBS
10649 fi
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10651 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10652 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10653 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10654 else
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10656 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10657 if ${ac_cv_lib_svld_dlopen+:} false; then :
10658 $as_echo_n "(cached) " >&6
10659 else
10660 ac_check_lib_save_LIBS=$LIBS
10661 LIBS="-lsvld $LIBS"
10662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h. */
10664
10665 /* Override any GCC internal prototype to avoid an error.
10666 Use char because int might match the return type of a GCC
10667 builtin and then its argument prototype would still apply. */
10668 #ifdef __cplusplus
10669 extern "C"
10670 #endif
10671 char dlopen ();
10672 int
10673 main ()
10674 {
10675 return dlopen ();
10676 ;
10677 return 0;
10678 }
10679 _ACEOF
10680 if ac_fn_c_try_link "$LINENO"; then :
10681 ac_cv_lib_svld_dlopen=yes
10682 else
10683 ac_cv_lib_svld_dlopen=no
10684 fi
10685 rm -f core conftest.err conftest.$ac_objext \
10686 conftest$ac_exeext conftest.$ac_ext
10687 LIBS=$ac_check_lib_save_LIBS
10688 fi
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10690 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10691 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10692 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10693 else
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10695 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10696 if ${ac_cv_lib_dld_dld_link+:} false; then :
10697 $as_echo_n "(cached) " >&6
10698 else
10699 ac_check_lib_save_LIBS=$LIBS
10700 LIBS="-ldld $LIBS"
10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702 /* end confdefs.h. */
10703
10704 /* Override any GCC internal prototype to avoid an error.
10705 Use char because int might match the return type of a GCC
10706 builtin and then its argument prototype would still apply. */
10707 #ifdef __cplusplus
10708 extern "C"
10709 #endif
10710 char dld_link ();
10711 int
10712 main ()
10713 {
10714 return dld_link ();
10715 ;
10716 return 0;
10717 }
10718 _ACEOF
10719 if ac_fn_c_try_link "$LINENO"; then :
10720 ac_cv_lib_dld_dld_link=yes
10721 else
10722 ac_cv_lib_dld_dld_link=no
10723 fi
10724 rm -f core conftest.err conftest.$ac_objext \
10725 conftest$ac_exeext conftest.$ac_ext
10726 LIBS=$ac_check_lib_save_LIBS
10727 fi
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10729 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10730 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10731 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10732 fi
10733
10734
10735 fi
10736
10737
10738 fi
10739
10740
10741 fi
10742
10743
10744 fi
10745
10746
10747 fi
10748
10749 ;;
10750 esac
10751
10752 if test "x$lt_cv_dlopen" != xno; then
10753 enable_dlopen=yes
10754 else
10755 enable_dlopen=no
10756 fi
10757
10758 case $lt_cv_dlopen in
10759 dlopen)
10760 save_CPPFLAGS="$CPPFLAGS"
10761 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10762
10763 save_LDFLAGS="$LDFLAGS"
10764 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10765
10766 save_LIBS="$LIBS"
10767 LIBS="$lt_cv_dlopen_libs $LIBS"
10768
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10770 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10771 if ${lt_cv_dlopen_self+:} false; then :
10772 $as_echo_n "(cached) " >&6
10773 else
10774 if test "$cross_compiling" = yes; then :
10775 lt_cv_dlopen_self=cross
10776 else
10777 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10778 lt_status=$lt_dlunknown
10779 cat > conftest.$ac_ext <<_LT_EOF
10780 #line 10780 "configure"
10781 #include "confdefs.h"
10782
10783 #if HAVE_DLFCN_H
10784 #include <dlfcn.h>
10785 #endif
10786
10787 #include <stdio.h>
10788
10789 #ifdef RTLD_GLOBAL
10790 # define LT_DLGLOBAL RTLD_GLOBAL
10791 #else
10792 # ifdef DL_GLOBAL
10793 # define LT_DLGLOBAL DL_GLOBAL
10794 # else
10795 # define LT_DLGLOBAL 0
10796 # endif
10797 #endif
10798
10799 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10800 find out it does not work in some platform. */
10801 #ifndef LT_DLLAZY_OR_NOW
10802 # ifdef RTLD_LAZY
10803 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10804 # else
10805 # ifdef DL_LAZY
10806 # define LT_DLLAZY_OR_NOW DL_LAZY
10807 # else
10808 # ifdef RTLD_NOW
10809 # define LT_DLLAZY_OR_NOW RTLD_NOW
10810 # else
10811 # ifdef DL_NOW
10812 # define LT_DLLAZY_OR_NOW DL_NOW
10813 # else
10814 # define LT_DLLAZY_OR_NOW 0
10815 # endif
10816 # endif
10817 # endif
10818 # endif
10819 #endif
10820
10821 /* When -fvisbility=hidden is used, assume the code has been annotated
10822 correspondingly for the symbols needed. */
10823 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10824 void fnord () __attribute__((visibility("default")));
10825 #endif
10826
10827 void fnord () { int i=42; }
10828 int main ()
10829 {
10830 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10831 int status = $lt_dlunknown;
10832
10833 if (self)
10834 {
10835 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10836 else
10837 {
10838 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10839 else puts (dlerror ());
10840 }
10841 /* dlclose (self); */
10842 }
10843 else
10844 puts (dlerror ());
10845
10846 return status;
10847 }
10848 _LT_EOF
10849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10850 (eval $ac_link) 2>&5
10851 ac_status=$?
10852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10853 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10854 (./conftest; exit; ) >&5 2>/dev/null
10855 lt_status=$?
10856 case x$lt_status in
10857 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10858 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10859 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10860 esac
10861 else :
10862 # compilation failed
10863 lt_cv_dlopen_self=no
10864 fi
10865 fi
10866 rm -fr conftest*
10867
10868
10869 fi
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10871 $as_echo "$lt_cv_dlopen_self" >&6; }
10872
10873 if test "x$lt_cv_dlopen_self" = xyes; then
10874 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10876 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10877 if ${lt_cv_dlopen_self_static+:} false; then :
10878 $as_echo_n "(cached) " >&6
10879 else
10880 if test "$cross_compiling" = yes; then :
10881 lt_cv_dlopen_self_static=cross
10882 else
10883 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10884 lt_status=$lt_dlunknown
10885 cat > conftest.$ac_ext <<_LT_EOF
10886 #line 10886 "configure"
10887 #include "confdefs.h"
10888
10889 #if HAVE_DLFCN_H
10890 #include <dlfcn.h>
10891 #endif
10892
10893 #include <stdio.h>
10894
10895 #ifdef RTLD_GLOBAL
10896 # define LT_DLGLOBAL RTLD_GLOBAL
10897 #else
10898 # ifdef DL_GLOBAL
10899 # define LT_DLGLOBAL DL_GLOBAL
10900 # else
10901 # define LT_DLGLOBAL 0
10902 # endif
10903 #endif
10904
10905 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10906 find out it does not work in some platform. */
10907 #ifndef LT_DLLAZY_OR_NOW
10908 # ifdef RTLD_LAZY
10909 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10910 # else
10911 # ifdef DL_LAZY
10912 # define LT_DLLAZY_OR_NOW DL_LAZY
10913 # else
10914 # ifdef RTLD_NOW
10915 # define LT_DLLAZY_OR_NOW RTLD_NOW
10916 # else
10917 # ifdef DL_NOW
10918 # define LT_DLLAZY_OR_NOW DL_NOW
10919 # else
10920 # define LT_DLLAZY_OR_NOW 0
10921 # endif
10922 # endif
10923 # endif
10924 # endif
10925 #endif
10926
10927 /* When -fvisbility=hidden is used, assume the code has been annotated
10928 correspondingly for the symbols needed. */
10929 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10930 void fnord () __attribute__((visibility("default")));
10931 #endif
10932
10933 void fnord () { int i=42; }
10934 int main ()
10935 {
10936 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10937 int status = $lt_dlunknown;
10938
10939 if (self)
10940 {
10941 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10942 else
10943 {
10944 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10945 else puts (dlerror ());
10946 }
10947 /* dlclose (self); */
10948 }
10949 else
10950 puts (dlerror ());
10951
10952 return status;
10953 }
10954 _LT_EOF
10955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10956 (eval $ac_link) 2>&5
10957 ac_status=$?
10958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10959 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10960 (./conftest; exit; ) >&5 2>/dev/null
10961 lt_status=$?
10962 case x$lt_status in
10963 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10964 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10965 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10966 esac
10967 else :
10968 # compilation failed
10969 lt_cv_dlopen_self_static=no
10970 fi
10971 fi
10972 rm -fr conftest*
10973
10974
10975 fi
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10977 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10978 fi
10979
10980 CPPFLAGS="$save_CPPFLAGS"
10981 LDFLAGS="$save_LDFLAGS"
10982 LIBS="$save_LIBS"
10983 ;;
10984 esac
10985
10986 case $lt_cv_dlopen_self in
10987 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10988 *) enable_dlopen_self=unknown ;;
10989 esac
10990
10991 case $lt_cv_dlopen_self_static in
10992 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10993 *) enable_dlopen_self_static=unknown ;;
10994 esac
10995 fi
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013 striplib=
11014 old_striplib=
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11016 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11017 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11018 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11019 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11021 $as_echo "yes" >&6; }
11022 else
11023 # FIXME - insert some real tests, host_os isn't really good enough
11024 case $host_os in
11025 darwin*)
11026 if test -n "$STRIP" ; then
11027 striplib="$STRIP -x"
11028 old_striplib="$STRIP -S"
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11030 $as_echo "yes" >&6; }
11031 else
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033 $as_echo "no" >&6; }
11034 fi
11035 ;;
11036 *)
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038 $as_echo "no" >&6; }
11039 ;;
11040 esac
11041 fi
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054 # Report which library types will actually be built
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11056 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11058 $as_echo "$can_build_shared" >&6; }
11059
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11061 $as_echo_n "checking whether to build shared libraries... " >&6; }
11062 test "$can_build_shared" = "no" && enable_shared=no
11063
11064 # On AIX, shared libraries and static libraries use the same namespace, and
11065 # are all built from PIC.
11066 case $host_os in
11067 aix3*)
11068 test "$enable_shared" = yes && enable_static=no
11069 if test -n "$RANLIB"; then
11070 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11071 postinstall_cmds='$RANLIB $lib'
11072 fi
11073 ;;
11074
11075 aix[4-9]*)
11076 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11077 test "$enable_shared" = yes && enable_static=no
11078 fi
11079 ;;
11080 esac
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11082 $as_echo "$enable_shared" >&6; }
11083
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11085 $as_echo_n "checking whether to build static libraries... " >&6; }
11086 # Make sure either enable_shared or enable_static is yes.
11087 test "$enable_shared" = yes || enable_static=yes
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11089 $as_echo "$enable_static" >&6; }
11090
11091
11092
11093
11094 fi
11095 ac_ext=c
11096 ac_cpp='$CPP $CPPFLAGS'
11097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11100
11101 CC="$lt_save_CC"
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115 ac_config_commands="$ac_config_commands libtool"
11116
11117
11118
11119
11120 # Only expand once:
11121
11122
11123
11124 # The tests for host and target for $enable_largefile require
11125 # canonical names.
11126
11127
11128
11129 # As the $enable_largefile decision depends on --enable-plugins we must set it
11130 # even in directories otherwise not depending on the $plugins option.
11131
11132
11133 maybe_plugins=no
11134 for ac_header in dlfcn.h
11135 do :
11136 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11137 "
11138 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11139 cat >>confdefs.h <<_ACEOF
11140 #define HAVE_DLFCN_H 1
11141 _ACEOF
11142 maybe_plugins=yes
11143 fi
11144
11145 done
11146
11147 for ac_header in windows.h
11148 do :
11149 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11150 "
11151 if test "x$ac_cv_header_windows_h" = xyes; then :
11152 cat >>confdefs.h <<_ACEOF
11153 #define HAVE_WINDOWS_H 1
11154 _ACEOF
11155 maybe_plugins=yes
11156 fi
11157
11158 done
11159
11160
11161 # Check whether --enable-plugins was given.
11162 if test "${enable_plugins+set}" = set; then :
11163 enableval=$enable_plugins; case "${enableval}" in
11164 no) plugins=no ;;
11165 *) plugins=yes
11166 if test "$maybe_plugins" != "yes" ; then
11167 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11168 fi ;;
11169 esac
11170 else
11171 plugins=$maybe_plugins
11172
11173 fi
11174
11175 if test "$plugins" = "yes"; then
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11177 $as_echo_n "checking for library containing dlsym... " >&6; }
11178 if ${ac_cv_search_dlsym+:} false; then :
11179 $as_echo_n "(cached) " >&6
11180 else
11181 ac_func_search_save_LIBS=$LIBS
11182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183 /* end confdefs.h. */
11184
11185 /* Override any GCC internal prototype to avoid an error.
11186 Use char because int might match the return type of a GCC
11187 builtin and then its argument prototype would still apply. */
11188 #ifdef __cplusplus
11189 extern "C"
11190 #endif
11191 char dlsym ();
11192 int
11193 main ()
11194 {
11195 return dlsym ();
11196 ;
11197 return 0;
11198 }
11199 _ACEOF
11200 for ac_lib in '' dl; do
11201 if test -z "$ac_lib"; then
11202 ac_res="none required"
11203 else
11204 ac_res=-l$ac_lib
11205 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11206 fi
11207 if ac_fn_c_try_link "$LINENO"; then :
11208 ac_cv_search_dlsym=$ac_res
11209 fi
11210 rm -f core conftest.err conftest.$ac_objext \
11211 conftest$ac_exeext
11212 if ${ac_cv_search_dlsym+:} false; then :
11213 break
11214 fi
11215 done
11216 if ${ac_cv_search_dlsym+:} false; then :
11217
11218 else
11219 ac_cv_search_dlsym=no
11220 fi
11221 rm conftest.$ac_ext
11222 LIBS=$ac_func_search_save_LIBS
11223 fi
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11225 $as_echo "$ac_cv_search_dlsym" >&6; }
11226 ac_res=$ac_cv_search_dlsym
11227 if test "$ac_res" != no; then :
11228 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11229
11230 fi
11231
11232 fi
11233
11234
11235 case "${host}" in
11236 sparc-*-solaris*|i?86-*-solaris*)
11237 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
11238 # were mutually exclusive until Solaris 11.3. Without procfs support,
11239 # the bfd/ elf module cannot provide certain routines such as
11240 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
11241 # explicitly requested large-file support through the
11242 # --enable-largefile switch, disable large-file support in favor of
11243 # procfs support.
11244 #
11245 # Check if <sys/procfs.h> is incompatible with large-file support.
11246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11247 /* end confdefs.h. */
11248 #define _FILE_OFFSET_BITS 64
11249 #define _STRUCTURED_PROC 1
11250 #include <sys/procfs.h>
11251 int
11252 main ()
11253 {
11254
11255 ;
11256 return 0;
11257 }
11258 _ACEOF
11259 if ac_fn_c_try_compile "$LINENO"; then :
11260 acx_cv_procfs_lfs=yes
11261 else
11262 acx_cv_procfs_lfs=no
11263 fi
11264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11265 #
11266 # Forcefully disable large-file support only if necessary, gdb is in
11267 # tree and enabled.
11268 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
11269 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
11270 : ${enable_largefile="no"}
11271 if test "$plugins" = yes; then
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11273 plugin support disabled; require large-file support which is incompatible with GDB." >&5
11274 $as_echo "$as_me: WARNING:
11275 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
11276 plugins=no
11277 fi
11278 fi
11279 #
11280 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
11281 # benefit of g++ 9+ which predefines it on Solaris.
11282 if test "$enable_largefile" = no; then
11283 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
11284
11285 fi
11286 ;;
11287 esac
11288
11289 # Check whether --enable-largefile was given.
11290 if test "${enable_largefile+set}" = set; then :
11291 enableval=$enable_largefile;
11292 fi
11293
11294 if test "$enable_largefile" != no; then
11295
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11297 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11298 if ${ac_cv_sys_largefile_CC+:} false; then :
11299 $as_echo_n "(cached) " >&6
11300 else
11301 ac_cv_sys_largefile_CC=no
11302 if test "$GCC" != yes; then
11303 ac_save_CC=$CC
11304 while :; do
11305 # IRIX 6.2 and later do not support large files by default,
11306 # so use the C compiler's -n32 option if that helps.
11307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11308 /* end confdefs.h. */
11309 #include <sys/types.h>
11310 /* Check that off_t can represent 2**63 - 1 correctly.
11311 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11312 since some C++ compilers masquerading as C compilers
11313 incorrectly reject 9223372036854775807. */
11314 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11315 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11316 && LARGE_OFF_T % 2147483647 == 1)
11317 ? 1 : -1];
11318 int
11319 main ()
11320 {
11321
11322 ;
11323 return 0;
11324 }
11325 _ACEOF
11326 if ac_fn_c_try_compile "$LINENO"; then :
11327 break
11328 fi
11329 rm -f core conftest.err conftest.$ac_objext
11330 CC="$CC -n32"
11331 if ac_fn_c_try_compile "$LINENO"; then :
11332 ac_cv_sys_largefile_CC=' -n32'; break
11333 fi
11334 rm -f core conftest.err conftest.$ac_objext
11335 break
11336 done
11337 CC=$ac_save_CC
11338 rm -f conftest.$ac_ext
11339 fi
11340 fi
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11342 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11343 if test "$ac_cv_sys_largefile_CC" != no; then
11344 CC=$CC$ac_cv_sys_largefile_CC
11345 fi
11346
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11348 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11349 if ${ac_cv_sys_file_offset_bits+:} false; then :
11350 $as_echo_n "(cached) " >&6
11351 else
11352 while :; do
11353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11354 /* end confdefs.h. */
11355 #include <sys/types.h>
11356 /* Check that off_t can represent 2**63 - 1 correctly.
11357 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11358 since some C++ compilers masquerading as C compilers
11359 incorrectly reject 9223372036854775807. */
11360 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11361 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11362 && LARGE_OFF_T % 2147483647 == 1)
11363 ? 1 : -1];
11364 int
11365 main ()
11366 {
11367
11368 ;
11369 return 0;
11370 }
11371 _ACEOF
11372 if ac_fn_c_try_compile "$LINENO"; then :
11373 ac_cv_sys_file_offset_bits=no; break
11374 fi
11375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11377 /* end confdefs.h. */
11378 #define _FILE_OFFSET_BITS 64
11379 #include <sys/types.h>
11380 /* Check that off_t can represent 2**63 - 1 correctly.
11381 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11382 since some C++ compilers masquerading as C compilers
11383 incorrectly reject 9223372036854775807. */
11384 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11385 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11386 && LARGE_OFF_T % 2147483647 == 1)
11387 ? 1 : -1];
11388 int
11389 main ()
11390 {
11391
11392 ;
11393 return 0;
11394 }
11395 _ACEOF
11396 if ac_fn_c_try_compile "$LINENO"; then :
11397 ac_cv_sys_file_offset_bits=64; break
11398 fi
11399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11400 ac_cv_sys_file_offset_bits=unknown
11401 break
11402 done
11403 fi
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11405 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11406 case $ac_cv_sys_file_offset_bits in #(
11407 no | unknown) ;;
11408 *)
11409 cat >>confdefs.h <<_ACEOF
11410 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11411 _ACEOF
11412 ;;
11413 esac
11414 rm -rf conftest*
11415 if test $ac_cv_sys_file_offset_bits = unknown; then
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11417 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11418 if ${ac_cv_sys_large_files+:} false; then :
11419 $as_echo_n "(cached) " >&6
11420 else
11421 while :; do
11422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11423 /* end confdefs.h. */
11424 #include <sys/types.h>
11425 /* Check that off_t can represent 2**63 - 1 correctly.
11426 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11427 since some C++ compilers masquerading as C compilers
11428 incorrectly reject 9223372036854775807. */
11429 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11430 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11431 && LARGE_OFF_T % 2147483647 == 1)
11432 ? 1 : -1];
11433 int
11434 main ()
11435 {
11436
11437 ;
11438 return 0;
11439 }
11440 _ACEOF
11441 if ac_fn_c_try_compile "$LINENO"; then :
11442 ac_cv_sys_large_files=no; break
11443 fi
11444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11446 /* end confdefs.h. */
11447 #define _LARGE_FILES 1
11448 #include <sys/types.h>
11449 /* Check that off_t can represent 2**63 - 1 correctly.
11450 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11451 since some C++ compilers masquerading as C compilers
11452 incorrectly reject 9223372036854775807. */
11453 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11454 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11455 && LARGE_OFF_T % 2147483647 == 1)
11456 ? 1 : -1];
11457 int
11458 main ()
11459 {
11460
11461 ;
11462 return 0;
11463 }
11464 _ACEOF
11465 if ac_fn_c_try_compile "$LINENO"; then :
11466 ac_cv_sys_large_files=1; break
11467 fi
11468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11469 ac_cv_sys_large_files=unknown
11470 break
11471 done
11472 fi
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11474 $as_echo "$ac_cv_sys_large_files" >&6; }
11475 case $ac_cv_sys_large_files in #(
11476 no | unknown) ;;
11477 *)
11478 cat >>confdefs.h <<_ACEOF
11479 #define _LARGE_FILES $ac_cv_sys_large_files
11480 _ACEOF
11481 ;;
11482 esac
11483 rm -rf conftest*
11484 fi
11485
11486
11487 fi
11488
11489
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
11491 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
11492 if ${gcc_cv_prog_cmp_skip+:} false; then :
11493 $as_echo_n "(cached) " >&6
11494 else
11495 echo abfoo >t1
11496 echo cdfoo >t2
11497 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
11498 if cmp t1 t2 2 2 > /dev/null 2>&1; then
11499 if cmp t1 t2 1 1 > /dev/null 2>&1; then
11500 :
11501 else
11502 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
11503 fi
11504 fi
11505 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
11506 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
11507 :
11508 else
11509 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
11510 fi
11511 fi
11512 rm t1 t2
11513
11514 fi
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
11516 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
11517 do_compare="$gcc_cv_prog_cmp_skip"
11518
11519
11520
11521 # Check whether --enable-targets was given.
11522 if test "${enable_targets+set}" = set; then :
11523 enableval=$enable_targets; case "${enableval}" in
11524 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
11525 ;;
11526 no) enable_targets= ;;
11527 *) enable_targets=$enableval ;;
11528 esac
11529 fi
11530
11531 ac_checking=
11532 . ${srcdir}/../bfd/development.sh
11533 test "$development" = true && ac_checking=yes
11534 # Check whether --enable-checking was given.
11535 if test "${enable_checking+set}" = set; then :
11536 enableval=$enable_checking; case "${enableval}" in
11537 no|none) ac_checking= ;;
11538 *) ac_checking=yes ;;
11539 esac
11540 fi
11541 if test x$ac_checking != x ; then
11542
11543 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11544
11545 fi
11546
11547 # PR gas/19109
11548 # Decide the default method for compressing debug sections.
11549 ac_default_compressed_debug_sections=unset
11550 # Provide a configure time option to override our default.
11551 # Check whether --enable-compressed_debug_sections was given.
11552 if test "${enable_compressed_debug_sections+set}" = set; then :
11553 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
11554 ,yes, | ,all, | *,gas,*) ac_default_compressed_debug_sections=yes ;;
11555 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
11556 *) ac_default_compressed_debug_sections=unset ;;
11557 esac
11558 fi
11559
11560 # Select default compression algorithm.
11561 ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_GABI_ZLIB
11562 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
11563 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
11564 enableval=$enable_default_compressed_debug_sections_algorithm; case "${enableval}" in
11565 zstd) ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_ZSTD ;;
11566 esac
11567 fi
11568
11569 # PR gas/19520
11570 # Decide if x86 assembler should generate relax relocations.
11571 ac_default_x86_relax_relocations=unset
11572 # Provide a configure time option to override our default.
11573 # Check whether --enable-x86_relax_relocations was given.
11574 if test "${enable_x86_relax_relocations+set}" = set; then :
11575 enableval=$enable_x86_relax_relocations; case "${enableval}" in
11576 no) ac_default_x86_relax_relocations=0 ;;
11577 esac
11578 fi
11579
11580 # PR gas/32022
11581 # Decide if x86 assembler should check TLS relocation.
11582 ac_default_x86_tls_check=unset
11583 # Provide a configure time option to override our default.
11584 # Check whether --enable-x86_tls_check was given.
11585 if test "${enable_x86_tls_check+set}" = set; then :
11586 enableval=$enable_x86_tls_check; case "${enableval}" in
11587 no) ac_default_x86_tls_check=0 ;;
11588 esac
11589 fi
11590
11591 # Decide if ELF assembler should generate common symbols with the
11592 # STT_COMMON type.
11593 ac_default_elf_stt_common=unset
11594 # Provide a configure time option to override our default.
11595 # Check whether --enable-elf_stt_common was given.
11596 if test "${enable_elf_stt_common+set}" = set; then :
11597 enableval=$enable_elf_stt_common; case "${enableval}" in
11598 yes) ac_default_elf_stt_common=1 ;;
11599 esac
11600 fi
11601
11602
11603 # Decide if the ELF assembler should default to generating
11604 # GNU Build notes if none are provided by the input.
11605 ac_default_generate_build_notes=0
11606 # Provide a configuration option to override the default.
11607 # Check whether --enable-generate_build_notes was given.
11608 if test "${enable_generate_build_notes+set}" = set; then :
11609 enableval=$enable_generate_build_notes; case "${enableval}" in
11610 yes) ac_default_generate_build_notes=1 ;;
11611 no) ac_default_generate_build_notes=0 ;;
11612 esac
11613 fi
11614
11615 # Decide if the MIPS assembler should default to enable MIPS fix Loongson3
11616 # LLSC errata.
11617 ac_default_mips_fix_loongson3_llsc=unset
11618 # Provide a configuration option to override the default.
11619 # Check whether --enable-mips-fix-loongson3-llsc was given.
11620 if test "${enable_mips_fix_loongson3_llsc+set}" = set; then :
11621 enableval=$enable_mips_fix_loongson3_llsc; case "${enableval}" in
11622 yes) ac_default_mips_fix_loongson3_llsc=1 ;;
11623 no) ac_default_mips_fix_loongson3_llsc=0 ;;
11624 esac
11625 fi
11626
11627 # Decide if the x86 ELF assembler should default to generating GNU x86
11628 # used ISA and feature properties.
11629 ac_default_generate_x86_used_note=unset
11630 # Provide a configuration option to override the default.
11631 # Check whether --enable-x86-used-note was given.
11632 if test "${enable_x86_used_note+set}" = set; then :
11633 enableval=$enable_x86_used_note; case "${enableval}" in
11634 yes) ac_default_generate_x86_used_note=1 ;;
11635 no) ac_default_generate_x86_used_note=0 ;;
11636 esac
11637 fi
11638
11639 # Decide if the RISC-V ELF assembler should default to generating attribute.
11640 ac_default_generate_riscv_attr=unset
11641 # Provide a configuration option to override the default.
11642 # Check whether --enable-default-riscv-attribute was given.
11643 if test "${enable_default_riscv_attribute+set}" = set; then :
11644 enableval=$enable_default_riscv_attribute; case "${enableval}" in
11645 yes) ac_default_generate_riscv_attr=1 ;;
11646 no) ac_default_generate_riscv_attr=0 ;;
11647 esac
11648 fi
11649
11650 using_cgen=no
11651
11652
11653 # Set the 'development' global.
11654 . $srcdir/../bfd/development.sh
11655
11656 # Set acp_cpp_for_build variable
11657 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
11658
11659 # Default set of GCC warnings to enable.
11660 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11661 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11662
11663 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11665 /* end confdefs.h. */
11666 __GNUC__
11667 _ACEOF
11668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11669 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11670
11671 else
11672 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11673 fi
11674 rm -f conftest*
11675
11676
11677 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11678 #cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11679 #/* end confdefs.h. */
11680 #__GNUC__
11681 #_ACEOF
11682 #if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11683 # $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
11684 #
11685 #else
11686 # cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11687 #/* end confdefs.h. */
11688 #__clang__
11689 #_ACEOF
11690 #if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11691 # $EGREP "^__clang__$" >/dev/null 2>&1; then :
11692 # GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
11693 #fi
11694 #rm -f conftest*
11695
11696
11697 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
11698 WARN_WRITE_STRINGS=""
11699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11700 /* end confdefs.h. */
11701 __GNUC__
11702 _ACEOF
11703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11704 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11705
11706 else
11707 WARN_WRITE_STRINGS="-Wwrite-strings"
11708 fi
11709 rm -f conftest*
11710
11711
11712 # Verify CC_FOR_BUILD to be compatible with warning flags
11713
11714 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11716 /* end confdefs.h. */
11717 __GNUC__
11718 _ACEOF
11719 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
11720 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11721
11722 else
11723 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
11724 fi
11725 rm -f conftest*
11726
11727
11728 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11729 #cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11730 #/* end confdefs.h. */
11731 #__GNUC__
11732 #_ACEOF
11733 #if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
11734 # $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
11735 #
11736 #else
11737 # cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11738 #/* end confdefs.h. */
11739 #__clang__
11740 #_ACEOF
11741 #if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
11742 # $EGREP "^__clang__$" >/dev/null 2>&1; then :
11743 # GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
11744 #fi
11745 #rm -f conftest*
11746
11747
11748 # Check whether --enable-werror was given.
11749 if test "${enable_werror+set}" = set; then :
11750 enableval=$enable_werror; case "${enableval}" in
11751 yes | y) ERROR_ON_WARNING="yes" ;;
11752 no | n) ERROR_ON_WARNING="no" ;;
11753 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11754 esac
11755 fi
11756
11757
11758 # Disable -Wformat by default when using gcc on mingw
11759 case "${host}" in
11760 *-*-mingw32*)
11761 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11762 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11763 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
11764 fi
11765 ;;
11766 *) ;;
11767 esac
11768
11769 # Enable -Werror by default when using gcc. Turn it off for releases.
11770 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
11771 ERROR_ON_WARNING=yes
11772 fi
11773
11774 NO_WERROR=
11775 if test "${ERROR_ON_WARNING}" = yes ; then
11776 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11777 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
11778 NO_WERROR="-Wno-error"
11779 fi
11780
11781 if test "${GCC}" = yes ; then
11782 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11783 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
11784 fi
11785
11786 # Check whether --enable-build-warnings was given.
11787 if test "${enable_build_warnings+set}" = set; then :
11788 enableval=$enable_build_warnings; case "${enableval}" in
11789 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11790 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
11791 no) if test "${GCC}" = yes ; then
11792 WARN_CFLAGS="-w"
11793 WARN_CFLAGS_FOR_BUILD="-w"
11794 fi;;
11795 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11796 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
11797 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
11798 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11799 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
11800 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
11801 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
11802 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11803 esac
11804 fi
11805
11806
11807 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11808 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11809 fi
11810
11811
11812
11813
11814
11815
11816
11817 # Generate a header file
11818 ac_config_headers="$ac_config_headers config.h:config.in"
11819
11820
11821
11822 # Check whether --with-cpu was given.
11823 if test "${with_cpu+set}" = set; then :
11824 withval=$with_cpu;
11825 cat >>confdefs.h <<_ACEOF
11826 #define TARGET_WITH_CPU "${with_cpu}"
11827 _ACEOF
11828
11829 fi
11830
11831
11832 # PR 14072
11833
11834
11835 # If we are on a DOS filesystem, we must use gdb.ini rather than
11836 # .gdbinit.
11837 case "${host}" in
11838 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11839 GDBINIT="gdb.ini"
11840 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
11841
11842 ;;
11843 *)
11844 GDBINIT=".gdbinit"
11845 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
11846
11847 ;;
11848 esac
11849
11850
11851 #We need this for the host.
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11853 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11854 if ${ac_cv_c_bigendian+:} false; then :
11855 $as_echo_n "(cached) " >&6
11856 else
11857 ac_cv_c_bigendian=unknown
11858 # See if we're dealing with a universal compiler.
11859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11860 /* end confdefs.h. */
11861 #ifndef __APPLE_CC__
11862 not a universal capable compiler
11863 #endif
11864 typedef int dummy;
11865
11866 _ACEOF
11867 if ac_fn_c_try_compile "$LINENO"; then :
11868
11869 # Check for potential -arch flags. It is not universal unless
11870 # there are at least two -arch flags with different values.
11871 ac_arch=
11872 ac_prev=
11873 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11874 if test -n "$ac_prev"; then
11875 case $ac_word in
11876 i?86 | x86_64 | ppc | ppc64)
11877 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11878 ac_arch=$ac_word
11879 else
11880 ac_cv_c_bigendian=universal
11881 break
11882 fi
11883 ;;
11884 esac
11885 ac_prev=
11886 elif test "x$ac_word" = "x-arch"; then
11887 ac_prev=arch
11888 fi
11889 done
11890 fi
11891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11892 if test $ac_cv_c_bigendian = unknown; then
11893 # See if sys/param.h defines the BYTE_ORDER macro.
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11896 #include <sys/types.h>
11897 #include <sys/param.h>
11898
11899 int
11900 main ()
11901 {
11902 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11903 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11904 && LITTLE_ENDIAN)
11905 bogus endian macros
11906 #endif
11907
11908 ;
11909 return 0;
11910 }
11911 _ACEOF
11912 if ac_fn_c_try_compile "$LINENO"; then :
11913 # It does; now see whether it defined to BIG_ENDIAN or not.
11914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11915 /* end confdefs.h. */
11916 #include <sys/types.h>
11917 #include <sys/param.h>
11918
11919 int
11920 main ()
11921 {
11922 #if BYTE_ORDER != BIG_ENDIAN
11923 not big endian
11924 #endif
11925
11926 ;
11927 return 0;
11928 }
11929 _ACEOF
11930 if ac_fn_c_try_compile "$LINENO"; then :
11931 ac_cv_c_bigendian=yes
11932 else
11933 ac_cv_c_bigendian=no
11934 fi
11935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11936 fi
11937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11938 fi
11939 if test $ac_cv_c_bigendian = unknown; then
11940 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11942 /* end confdefs.h. */
11943 #include <limits.h>
11944
11945 int
11946 main ()
11947 {
11948 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11949 bogus endian macros
11950 #endif
11951
11952 ;
11953 return 0;
11954 }
11955 _ACEOF
11956 if ac_fn_c_try_compile "$LINENO"; then :
11957 # It does; now see whether it defined to _BIG_ENDIAN or not.
11958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959 /* end confdefs.h. */
11960 #include <limits.h>
11961
11962 int
11963 main ()
11964 {
11965 #ifndef _BIG_ENDIAN
11966 not big endian
11967 #endif
11968
11969 ;
11970 return 0;
11971 }
11972 _ACEOF
11973 if ac_fn_c_try_compile "$LINENO"; then :
11974 ac_cv_c_bigendian=yes
11975 else
11976 ac_cv_c_bigendian=no
11977 fi
11978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11979 fi
11980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11981 fi
11982 if test $ac_cv_c_bigendian = unknown; then
11983 # Compile a test program.
11984 if test "$cross_compiling" = yes; then :
11985 # Try to guess by grepping values from an object file.
11986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11987 /* end confdefs.h. */
11988 short int ascii_mm[] =
11989 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11990 short int ascii_ii[] =
11991 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11992 int use_ascii (int i) {
11993 return ascii_mm[i] + ascii_ii[i];
11994 }
11995 short int ebcdic_ii[] =
11996 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11997 short int ebcdic_mm[] =
11998 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11999 int use_ebcdic (int i) {
12000 return ebcdic_mm[i] + ebcdic_ii[i];
12001 }
12002 extern int foo;
12003
12004 int
12005 main ()
12006 {
12007 return use_ascii (foo) == use_ebcdic (foo);
12008 ;
12009 return 0;
12010 }
12011 _ACEOF
12012 if ac_fn_c_try_compile "$LINENO"; then :
12013 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12014 ac_cv_c_bigendian=yes
12015 fi
12016 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12017 if test "$ac_cv_c_bigendian" = unknown; then
12018 ac_cv_c_bigendian=no
12019 else
12020 # finding both strings is unlikely to happen, but who knows?
12021 ac_cv_c_bigendian=unknown
12022 fi
12023 fi
12024 fi
12025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12026 else
12027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12028 /* end confdefs.h. */
12029 $ac_includes_default
12030 int
12031 main ()
12032 {
12033
12034 /* Are we little or big endian? From Harbison&Steele. */
12035 union
12036 {
12037 long int l;
12038 char c[sizeof (long int)];
12039 } u;
12040 u.l = 1;
12041 return u.c[sizeof (long int) - 1] == 1;
12042
12043 ;
12044 return 0;
12045 }
12046 _ACEOF
12047 if ac_fn_c_try_run "$LINENO"; then :
12048 ac_cv_c_bigendian=no
12049 else
12050 ac_cv_c_bigendian=yes
12051 fi
12052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12053 conftest.$ac_objext conftest.beam conftest.$ac_ext
12054 fi
12055
12056 fi
12057 fi
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12059 $as_echo "$ac_cv_c_bigendian" >&6; }
12060 case $ac_cv_c_bigendian in #(
12061 yes)
12062 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12063 ;; #(
12064 no)
12065 ;; #(
12066 universal)
12067
12068 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12069
12070 ;; #(
12071 *)
12072 as_fn_error $? "unknown endianness
12073 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12074 esac
12075
12076
12077 te_file=generic
12078
12079 # Makefile target for installing gas in $(tooldir)/bin.
12080 install_tooldir=install-exec-tooldir
12081
12082 canon_targets=""
12083 all_targets=no
12084 if test -n "$enable_targets" ; then
12085 for t in `echo $enable_targets | sed 's/,/ /g'`; do
12086 if test $t = "all"; then
12087 all_targets=yes
12088 continue
12089 fi
12090 result=`$ac_config_sub $t 2>/dev/null`
12091 if test -n "$result" ; then
12092 canon_targets="$canon_targets $result"
12093 # else
12094 # # Permit "all", etc. We don't support it yet though.
12095 # canon_targets="$canon_targets $t"
12096 fi
12097 done
12098 _gas_uniq_list="$canon_targets"
12099 _gas_uniq_newlist=""
12100 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12101 case $_gas_uniq_i in
12102 _gas_uniq_dummy) ;;
12103 *) case " $_gas_uniq_newlist " in
12104 *" $_gas_uniq_i "*) ;;
12105 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12106 esac ;;
12107 esac
12108 done
12109 canon_targets=$_gas_uniq_newlist
12110
12111 fi
12112
12113 emulations=""
12114
12115 for this_target in $target $canon_targets ; do
12116
12117 targ=${this_target}
12118 . ${srcdir}/configure.tgt
12119
12120 case ${target_cpu} in
12121 crisv32)
12122
12123 cat >>confdefs.h <<_ACEOF
12124 #define DEFAULT_CRIS_ARCH $arch
12125 _ACEOF
12126
12127 ;;
12128 esac
12129
12130 if test ${this_target} = $target ; then
12131 target_cpu_type=${cpu_type}
12132 elif test ${target_cpu_type} != ${cpu_type} ; then
12133 continue
12134 fi
12135
12136 generic_target=${cpu_type}-${target_vendor}-${target_os}
12137 case ${generic_target} in
12138 i386-*-msdosdjgpp* \
12139 | i386-*-go32*)
12140
12141 $as_echo "#define STRICTCOFF 1" >>confdefs.h
12142
12143 ;;
12144
12145 i386-*-linux-* | x86_64-*-linux-*)
12146 if test ${this_target} = $target \
12147 && test ${ac_default_generate_x86_used_note} = unset; then
12148 ac_default_generate_x86_used_note=1
12149 fi
12150 ;;
12151
12152 i386-*-solaris2 \
12153 | x86_64-*-solaris2 \
12154 | i386-*-solaris2.[0-9] \
12155 | i386-*-solaris2.1[01] \
12156 | x86_64-*-solaris2.1[01])
12157 if test ${this_target} = $target \
12158 && test ${ac_default_x86_relax_relocations} = unset; then
12159 ac_default_x86_relax_relocations=0
12160 fi
12161 ;;
12162
12163 microblaze*)
12164 ;;
12165
12166 ppc-*-aix5.[01]*)
12167 ;;
12168 ppc-*-aix[5-9].*)
12169
12170 $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
12171
12172 ;;
12173 ppc-*-solaris*)
12174 if test ${this_target} = $target; then
12175
12176 $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
12177
12178 fi
12179 if test x${endian} = xbig; then
12180 as_fn_error $? "Solaris must be configured little endian" "$LINENO" 5
12181 fi
12182 ;;
12183 esac
12184
12185 if test ${this_target} = $target ; then
12186 endian_def=
12187 if test x${endian} = xbig; then
12188 endian_def=1
12189 elif test x${endian} = xlittle; then
12190 endian_def=0
12191 fi
12192 if test x${endian_def} != x; then
12193
12194 cat >>confdefs.h <<_ACEOF
12195 #define TARGET_BYTES_BIG_ENDIAN $endian_def
12196 _ACEOF
12197
12198 fi
12199 fi
12200
12201 # Other random stuff.
12202
12203 case ${cpu_type} in
12204 mips)
12205 # Set mips_cpu to the name of the default CPU.
12206 case ${target_cpu} in
12207 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el | mips64eb | mipsn64el | mipsn64eb)
12208 mips_cpu=from-abi
12209 ;;
12210 mipsisa32 | mipsisa32el)
12211 mips_cpu=mips32
12212 ;;
12213 mipsisa32r2 | mipsisa32r2el)
12214 mips_cpu=mips32r2
12215 ;;
12216 mipsisa32r3 | mipsisa32r3el)
12217 mips_cpu=mips32r3
12218 ;;
12219 mipsisa32r5 | mipsisa32r5el)
12220 mips_cpu=mips32r5
12221 ;;
12222 mipsisa32r6 | mipsisa32r6el)
12223 mips_cpu=mips32r6
12224 ;;
12225 mipsisa64 | mipsisa64el)
12226 mips_cpu=mips64
12227 ;;
12228 mipsisa64r2 | mipsisa64r2el)
12229 mips_cpu=mips64r2
12230 ;;
12231 mipsisa64r3 | mipsisa64r3el)
12232 mips_cpu=mips64r3
12233 ;;
12234 mipsisa64r5 | mipsisa64r5el)
12235 mips_cpu=mips64r5
12236 ;;
12237 mipsisa64r6 | mipsisa64r6el)
12238 mips_cpu=mips64r6
12239 ;;
12240 mipstx39 | mipstx39el)
12241 mips_cpu=r3900
12242 ;;
12243 mips64vr | mips64vrel)
12244 mips_cpu=vr4100
12245 ;;
12246 mipsisa32r2* | mipsisa64r2*)
12247 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12248 ;;
12249 mipsisa32r6* | mipsisa64r6*)
12250 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'`
12251 ;;
12252 mips64* | mipsisa64* | mipsisa32*)
12253 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12254 ;;
12255 mips*)
12256 mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'`
12257 ;;
12258 *)
12259 as_fn_error $? "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
12260 ;;
12261 esac
12262 # See whether it's appropriate to set EF_MIPS_ABI_O32 for o32
12263 # binaries. It's a GNU extension that some OSes don't understand.
12264 case ${target} in
12265 *-*-irix*)
12266 use_ef_mips_abi_o32=0
12267 ;;
12268 *)
12269 use_ef_mips_abi_o32=1
12270 ;;
12271 esac
12272 # If target vendor is IMG, then MIPSr6 is used.
12273 case ${target} in
12274 mips64*-img-*)
12275 mips_cpu=mips64r6
12276 ;;
12277 mips*-img-*)
12278 mips_cpu=mips32r6
12279 ;;
12280 esac
12281 # Decide whether to generate 32-bit or 64-bit code by default.
12282 # Used to resolve -march=from-abi when an embedded ABI is selected.
12283 case ${target} in
12284 mips64*-*-* | mipsisa64*-*-*)
12285 mips_default_64bit=1
12286 ;;
12287 *)
12288 mips_default_64bit=0
12289 ;;
12290 esac
12291 # Decide which ABI to target by default.
12292 case ${target} in
12293 mips64*-openbsd* | mips64*-linux-gnuabi64)
12294 mips_default_abi=N64_ABI
12295 ;;
12296 mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* \
12297 | mips64*-kfreebsd*-gnu | mips64*-ps2-elf*)
12298 mips_default_abi=N32_ABI
12299 ;;
12300 mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
12301 mips_default_abi=O32_ABI
12302 ;;
12303 *)
12304 mips_default_abi=NO_ABI
12305 ;;
12306 esac
12307
12308 cat >>confdefs.h <<_ACEOF
12309 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
12310 _ACEOF
12311
12312
12313 cat >>confdefs.h <<_ACEOF
12314 #define USE_EF_MIPS_ABI_O32 $use_ef_mips_abi_o32
12315 _ACEOF
12316
12317
12318 cat >>confdefs.h <<_ACEOF
12319 #define MIPS_DEFAULT_64BIT $mips_default_64bit
12320 _ACEOF
12321
12322
12323 cat >>confdefs.h <<_ACEOF
12324 #define MIPS_DEFAULT_ABI $mips_default_abi
12325 _ACEOF
12326
12327 ;;
12328 esac
12329
12330 # Do we need the opcodes library?
12331 case ${cpu_type} in
12332 vax | tic30 | i386 | arm)
12333 ;;
12334
12335 *)
12336 need_opcodes=yes
12337
12338 case "${enable_shared}" in
12339 yes) shared_opcodes=true ;;
12340 *opcodes*) shared_opcodes=true ;;
12341 *) shared_opcodes=false ;;
12342 esac
12343 ;;
12344 esac
12345
12346 # Any other special object files needed ?
12347 case ${cpu_type} in
12348
12349 bfin)
12350 for f in config/bfin-parse.o config/bfin-lex-wrapper.o; do
12351 case " $extra_objects " in
12352 *" $f "*) ;;
12353 *) extra_objects="$extra_objects $f" ;;
12354 esac
12355 done
12356 ;;
12357
12358 bpf)
12359 if test $this_target = $target ; then
12360
12361 cat >>confdefs.h <<_ACEOF
12362 #define DEFAULT_ARCH "${arch}"
12363 _ACEOF
12364
12365 fi
12366 ;;
12367 epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k)
12368 using_cgen=yes
12369 ;;
12370
12371 loongarch)
12372 for f in config/loongarch-parse.o config/loongarch-lex-wrapper.o; do
12373 case " $extra_objects " in
12374 *" $f "*) ;;
12375 *) extra_objects="$extra_objects $f" ;;
12376 esac
12377 done
12378 # --target=loongarch[32|64]-*-*. */
12379 if test $this_target = $target ; then
12380
12381 cat >>confdefs.h <<_ACEOF
12382 #define DEFAULT_ARCH "${arch}"
12383 _ACEOF
12384
12385 fi
12386 ;;
12387
12388 m32c)
12389 using_cgen=yes
12390 ;;
12391 frv)
12392 using_cgen=yes
12393 ;;
12394 kvx)
12395 for f in config/kvx-parse.o; do
12396 case " $extra_objects " in
12397 *" $f "*) ;;
12398 *) extra_objects="$extra_objects $f" ;;
12399 esac
12400 done
12401 ;;
12402 m68k)
12403 f=config/m68k-parse.o
12404 case " $extra_objects " in
12405 *" $f "*) ;;
12406 *) extra_objects="$extra_objects $f" ;;
12407 esac
12408 ;;
12409
12410 mep)
12411 using_cgen=yes
12412 ;;
12413
12414 mips)
12415 for f in itbl-parse.o itbl-lex-wrapper.o itbl-ops.o; do
12416 case " $extra_objects " in
12417 *" $f "*) ;;
12418 *) extra_objects="$extra_objects $f" ;;
12419 esac
12420 done
12421 ;;
12422
12423 mt)
12424 using_cgen=yes
12425 ;;
12426
12427 nds32)
12428 # setup NDS32_LINUX_TOOLCHAIN definition
12429 if test "linux" = $em; then
12430
12431 $as_echo "#define NDS32_LINUX_TOOLCHAIN 1" >>confdefs.h
12432
12433 else
12434
12435 $as_echo "#define NDS32_LINUX_TOOLCHAIN 0" >>confdefs.h
12436
12437 fi
12438
12439 # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features
12440 # based on arch_name.
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12442 $as_echo_n "checking for default configuration of --with-arch... " >&6; }
12443 if test "x${with_arch}" != x; then
12444 case ${with_arch} in
12445 v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 )
12446
12447 cat >>confdefs.h <<_ACEOF
12448 #define NDS32_DEFAULT_ARCH_NAME "$with_arch"
12449 _ACEOF
12450
12451 ;;
12452 *)
12453 as_fn_error $? "This kind of arch name does *NOT* exist!" "$LINENO" 5
12454 ;;
12455 esac
12456 fi
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12458 $as_echo "$with_arch" >&6; }
12459
12460 # Decide features one by one.
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5
12462 $as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; }
12463 if test "x${enable_dx_regs}" = xyes; then
12464
12465 $as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h
12466
12467 else
12468
12469 $as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h
12470
12471 fi
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5
12473 $as_echo "$enable_dx_regs" >&6; }
12474
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5
12476 $as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; }
12477 if test "x${enable_perf_ext}" = xno; then
12478
12479 $as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h
12480
12481 else
12482
12483 $as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h
12484
12485 fi
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5
12487 $as_echo "$enable_perf_ext" >&6; }
12488
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5
12490 $as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; }
12491 if test "x${enable_perf_ext2}" = xno; then
12492
12493 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h
12494
12495 else
12496
12497 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h
12498
12499 fi
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5
12501 $as_echo "$enable_perf_ext2" >&6; }
12502
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5
12504 $as_echo_n "checking for default configuration of --enable-string-ext... " >&6; }
12505 if test "x${enable_string_ext}" = xno; then
12506
12507 $as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h
12508
12509 else
12510
12511 $as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h
12512
12513 fi
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5
12515 $as_echo "$enable_string_ext" >&6; }
12516
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5
12518 $as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; }
12519 if test "x${enable_audio_ext}" = xno; then
12520
12521 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h
12522
12523 else
12524
12525 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h
12526
12527 fi
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5
12529 $as_echo "$enable_audio_ext" >&6; }
12530
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dsp-ext" >&5
12532 $as_echo_n "checking for default configuration of --enable-dsp-ext... " >&6; }
12533 if test "x${enable_dsp_ext}" = xno; then
12534
12535 $as_echo "#define NDS32_DEFAULT_DSP_EXT 0" >>confdefs.h
12536
12537 else
12538
12539 $as_echo "#define NDS32_DEFAULT_DSP_EXT 1" >>confdefs.h
12540
12541 fi
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dsp_ext" >&5
12543 $as_echo "$enable_dsp_ext" >&6; }
12544
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-zol-ext" >&5
12546 $as_echo_n "checking for default configuration of --enable-zol-ext... " >&6; }
12547 if test "x${enable_zol_ext}" = xno; then
12548
12549 $as_echo "#define NDS32_DEFAULT_ZOL_EXT 0" >>confdefs.h
12550
12551 else
12552
12553 $as_echo "#define NDS32_DEFAULT_ZOL_EXT 1" >>confdefs.h
12554
12555 fi
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zol_ext" >&5
12557 $as_echo "$enable_zol_ext" >&6; }
12558 ;;
12559
12560 aarch64 | i386 | s390 | sparc)
12561 if test $this_target = $target ; then
12562
12563 cat >>confdefs.h <<_ACEOF
12564 #define DEFAULT_ARCH "${arch}"
12565 _ACEOF
12566
12567 fi
12568 ;;
12569
12570 riscv)
12571 # --target=riscv[32|64]-*-*. */
12572 if test $this_target = $target ; then
12573
12574 cat >>confdefs.h <<_ACEOF
12575 #define DEFAULT_ARCH "${arch}"
12576 _ACEOF
12577
12578 fi
12579
12580 # --with-arch=<value>. The syntax of <value> is same as Gas option -march.
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12582 $as_echo_n "checking for default configuration of --with-arch... " >&6; }
12583 if test "x${with_arch}" != x; then
12584
12585 cat >>confdefs.h <<_ACEOF
12586 #define DEFAULT_RISCV_ARCH_WITH_EXT "$with_arch"
12587 _ACEOF
12588
12589 fi
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12591 $as_echo "$with_arch" >&6; }
12592
12593 # --with-isa-spec=[2.2|20190608|20191213].
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-isa-spec" >&5
12595 $as_echo_n "checking for default configuration of --with-isa-spec... " >&6; }
12596 if test "x${with_isa_spec}" != x; then
12597
12598 cat >>confdefs.h <<_ACEOF
12599 #define DEFAULT_RISCV_ISA_SPEC "$with_isa_spec"
12600 _ACEOF
12601
12602 fi
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_isa_spec" >&5
12604 $as_echo "$with_isa_spec" >&6; }
12605
12606 # --with-priv-spec=[1.9.1|1.10|1.11|1.12|1.13].
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-priv-spec" >&5
12608 $as_echo_n "checking for default configuration of --with-priv-spec... " >&6; }
12609 if test "x${with_priv_spec}" != x; then
12610
12611 cat >>confdefs.h <<_ACEOF
12612 #define DEFAULT_RISCV_PRIV_SPEC "$with_priv_spec"
12613 _ACEOF
12614
12615 fi
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_priv_spec" >&5
12617 $as_echo "$with_priv_spec" >&6; }
12618 ;;
12619
12620 rl78)
12621 f=config/rl78-parse.o
12622 case " $extra_objects " in
12623 *" $f "*) ;;
12624 *) extra_objects="$extra_objects $f" ;;
12625 esac
12626 ;;
12627
12628 rx)
12629 f=config/rx-parse.o
12630 case " $extra_objects " in
12631 *" $f "*) ;;
12632 *) extra_objects="$extra_objects $f" ;;
12633 esac
12634 ;;
12635
12636 xstormy16)
12637 using_cgen=yes
12638 ;;
12639
12640 xtensa)
12641 f=config/xtensa-relax.o
12642 case " $extra_objects " in
12643 *" $f "*) ;;
12644 *) extra_objects="$extra_objects $f" ;;
12645 esac
12646 ;;
12647
12648 *)
12649 ;;
12650 esac
12651
12652 if test $using_cgen = yes ; then
12653 f=cgen.o
12654 case " $extra_objects " in
12655 *" $f "*) ;;
12656 *) extra_objects="$extra_objects $f" ;;
12657 esac
12658 fi
12659
12660 # See if we really can support this configuration with the emulation code.
12661
12662 if test $this_target = $target ; then
12663 obj_format=$fmt
12664 te_file=$em
12665 fi
12666
12667 case ${te_file} in
12668 vms)
12669 f=config/te-vms.o
12670 case " $extra_objects " in
12671 *" $f "*) ;;
12672 *) extra_objects="$extra_objects $f" ;;
12673 esac ;;
12674 esac
12675
12676 # From target name and format, produce a list of supported emulations.
12677
12678 case ${generic_target}-${fmt} in
12679 mips-*-*-*) case "$endian" in
12680 big) emulation="mipsbelf mipslelf mipself" ;;
12681 *) emulation="mipslelf mipsbelf mipself" ;;
12682 esac ;;
12683
12684 # Always all formats. The first stated emulation becomes the default.
12685 cris-*-*aout*) emulation="crisaout criself" ;;
12686 cris-*-*) emulation="criself crisaout" ;;
12687 esac
12688
12689 emulations="$emulations $emulation"
12690
12691 done
12692
12693 if test ${ac_default_x86_relax_relocations} = unset; then
12694 ac_default_x86_relax_relocations=1
12695 fi
12696
12697 cat >>confdefs.h <<_ACEOF
12698 #define DEFAULT_GENERATE_X86_RELAX_RELOCATIONS $ac_default_x86_relax_relocations
12699 _ACEOF
12700
12701
12702 if test ${ac_default_x86_tls_check} = unset; then
12703 ac_default_x86_tls_check=1
12704 fi
12705
12706 cat >>confdefs.h <<_ACEOF
12707 #define DEFAULT_X86_TLS_CHECK $ac_default_x86_tls_check
12708 _ACEOF
12709
12710
12711 if test ${ac_default_elf_stt_common} = unset; then
12712 ac_default_elf_stt_common=0
12713 fi
12714
12715 cat >>confdefs.h <<_ACEOF
12716 #define DEFAULT_GENERATE_ELF_STT_COMMON $ac_default_elf_stt_common
12717 _ACEOF
12718
12719
12720
12721 cat >>confdefs.h <<_ACEOF
12722 #define DEFAULT_GENERATE_BUILD_NOTES $ac_default_generate_build_notes
12723 _ACEOF
12724
12725
12726 if test ${ac_default_generate_x86_used_note} = unset; then
12727 ac_default_generate_x86_used_note=0
12728 fi
12729
12730 cat >>confdefs.h <<_ACEOF
12731 #define DEFAULT_X86_USED_NOTE $ac_default_generate_x86_used_note
12732 _ACEOF
12733
12734
12735 if test ${ac_default_generate_riscv_attr} = unset; then
12736 ac_default_generate_riscv_attr=1
12737 fi
12738
12739
12740 cat >>confdefs.h <<_ACEOF
12741 #define DEFAULT_RISCV_ATTR $ac_default_generate_riscv_attr
12742 _ACEOF
12743
12744
12745 if test ${ac_default_mips_fix_loongson3_llsc} = unset; then
12746 ac_default_mips_fix_loongson3_llsc=0
12747 fi
12748
12749 cat >>confdefs.h <<_ACEOF
12750 #define DEFAULT_MIPS_FIX_LOONGSON3_LLSC $ac_default_mips_fix_loongson3_llsc
12751 _ACEOF
12752
12753
12754 if test x$ac_default_compressed_debug_sections = xyes ; then
12755
12756 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
12757
12758 fi
12759
12760
12761 cat >>confdefs.h <<_ACEOF
12762 #define DEFAULT_COMPRESSED_DEBUG_ALGORITHM $ac_default_compressed_debug_sections_algorithm
12763 _ACEOF
12764
12765
12766 # PE code has way too many macros tweaking behaviour
12767 case ${te_file} in
12768 pe*) emulations="" ;;
12769 esac
12770
12771 # Assign floating point type. Most processors with FP support
12772 # IEEE FP. On those that don't support FP at all, usually IEEE
12773 # is emulated.
12774 case ${target_cpu} in
12775 vax | pdp11 ) atof=vax ;;
12776 *) atof=ieee ;;
12777 esac
12778
12779 case "${obj_format}" in
12780 "") as_fn_error $? "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
12781 esac
12782
12783 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12784 cgen_cpu_prefix=""
12785 if test $using_cgen = yes ; then
12786 case ${target_cpu} in
12787 or1knd)
12788 cgen_cpu_prefix=or1k ;;
12789 *) cgen_cpu_prefix=${target_cpu} ;;
12790 esac
12791
12792
12793 $as_echo "#define USING_CGEN 1" >>confdefs.h
12794
12795 fi
12796
12797
12798 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
12799 as_fn_error $? "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
12800 fi
12801
12802 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
12803 as_fn_error $? "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
12804 fi
12805
12806 # Some COFF configurations want these random other flags set.
12807 case ${obj_format} in
12808 coff)
12809 case ${target_cpu_type} in
12810 i386)
12811 $as_echo "#define I386COFF 1" >>confdefs.h
12812 ;;
12813 x86_64)
12814 $as_echo "#define I386COFF 1" >>confdefs.h
12815 ;;
12816 esac
12817 ;;
12818 esac
12819
12820 # Getting this done right is going to be a bitch. Each configuration specified
12821 # with --enable-targets=... should be checked for environment, format, cpu
12822 # setting.
12823 #
12824 # For each configuration, the necessary object file support code must be linked
12825 # in. This might be only one, it might be up to four. The necessary emulation
12826 # code needs to be provided, too.
12827 #
12828 # And then there's "--enable-targets=all"....
12829 #
12830 # For now, just always do it for MIPS ELF configurations. Sigh.
12831
12832 formats="${obj_format}"
12833 emfiles=""
12834 EMULATIONS=""
12835 _gas_uniq_list="$emulations"
12836 _gas_uniq_newlist=""
12837 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12838 case $_gas_uniq_i in
12839 _gas_uniq_dummy) ;;
12840 *) case " $_gas_uniq_newlist " in
12841 *" $_gas_uniq_i "*) ;;
12842 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12843 esac ;;
12844 esac
12845 done
12846 emulations=$_gas_uniq_newlist
12847
12848 for em in . $emulations ; do
12849 case $em in
12850 .) continue ;;
12851 mipsbelf | mipslelf | mipself)
12852 fmt=elf file=mipself ;;
12853 *coff)
12854 fmt=coff file=$em ;;
12855 *aout)
12856 fmt=aout file=$em ;;
12857 *elf)
12858 fmt=elf file=$em ;;
12859 esac
12860 formats="$formats $fmt"
12861 emfiles="$emfiles config/e-$file.o"
12862 EMULATIONS="$EMULATIONS &$em,"
12863 done
12864 _gas_uniq_list="$formats"
12865 _gas_uniq_newlist=""
12866 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12867 case $_gas_uniq_i in
12868 _gas_uniq_dummy) ;;
12869 *) case " $_gas_uniq_newlist " in
12870 *" $_gas_uniq_i "*) ;;
12871 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12872 esac ;;
12873 esac
12874 done
12875 formats=$_gas_uniq_newlist
12876
12877 _gas_uniq_list="$emfiles"
12878 _gas_uniq_newlist=""
12879 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12880 case $_gas_uniq_i in
12881 _gas_uniq_dummy) ;;
12882 *) case " $_gas_uniq_newlist " in
12883 *" $_gas_uniq_i "*) ;;
12884 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12885 esac ;;
12886 esac
12887 done
12888 emfiles=$_gas_uniq_newlist
12889
12890 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12891 for fmt in $formats ; do
12892 case $fmt in
12893 aout)
12894 $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
12895 ;;
12896 coff)
12897 $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
12898 ;;
12899 ecoff)
12900 $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
12901 ;;
12902 elf)
12903 $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
12904 ;;
12905 generic)
12906 $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
12907 ;;
12908 som)
12909 $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
12910 ;;
12911 esac
12912 extra_objects="$extra_objects config/obj-$fmt.o"
12913 done
12914 obj_format=multi
12915 fi
12916 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12917 DEFAULT_EMULATION=`set . $emulations ; echo $2`
12918 # e-mipself has more than one emulation per file, e-i386* has just one at the
12919 # moment. If only one emulation is specified, then don't define
12920 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12921 case "${obj_format}${emfiles}" in
12922 multi* | *mipself*)
12923 extra_objects="$extra_objects $emfiles"
12924
12925 $as_echo "#define USE_EMULATIONS 1" >>confdefs.h
12926 ;;
12927 esac
12928 fi
12929
12930
12931 cat >>confdefs.h <<_ACEOF
12932 #define EMULATIONS $EMULATIONS
12933 _ACEOF
12934
12935
12936 cat >>confdefs.h <<_ACEOF
12937 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
12938 _ACEOF
12939
12940
12941 reject_dev_configs=yes
12942
12943 case ${reject_dev_configs}-${dev} in
12944 yes-yes) # Oops.
12945 as_fn_error $? "GAS does not support the ${generic_target} configuration." "$LINENO" 5
12946 ;;
12947 esac
12948
12949
12950
12951
12952
12953
12954
12955 # do we need the opcodes library?
12956 case "${need_opcodes}" in
12957 yes)
12958 OPCODES_LIB=../opcodes/libopcodes.la
12959 ;;
12960 esac
12961
12962
12963
12964
12965 cat >>confdefs.h <<_ACEOF
12966 #define TARGET_ALIAS "${target_alias}"
12967 _ACEOF
12968
12969
12970 cat >>confdefs.h <<_ACEOF
12971 #define TARGET_CANONICAL "${target}"
12972 _ACEOF
12973
12974
12975 cat >>confdefs.h <<_ACEOF
12976 #define TARGET_CPU "${target_cpu}"
12977 _ACEOF
12978
12979
12980 cat >>confdefs.h <<_ACEOF
12981 #define TARGET_VENDOR "${target_vendor}"
12982 _ACEOF
12983
12984
12985 cat >>confdefs.h <<_ACEOF
12986 #define TARGET_OS "${target_os}"
12987 _ACEOF
12988
12989
12990 for ac_prog in 'bison -y' byacc
12991 do
12992 # Extract the first word of "$ac_prog", so it can be a program name with args.
12993 set dummy $ac_prog; ac_word=$2
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12995 $as_echo_n "checking for $ac_word... " >&6; }
12996 if ${ac_cv_prog_YACC+:} false; then :
12997 $as_echo_n "(cached) " >&6
12998 else
12999 if test -n "$YACC"; then
13000 ac_cv_prog_YACC="$YACC" # Let the user override the test.
13001 else
13002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13003 for as_dir in $PATH
13004 do
13005 IFS=$as_save_IFS
13006 test -z "$as_dir" && as_dir=.
13007 for ac_exec_ext in '' $ac_executable_extensions; do
13008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13009 ac_cv_prog_YACC="$ac_prog"
13010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13011 break 2
13012 fi
13013 done
13014 done
13015 IFS=$as_save_IFS
13016
13017 fi
13018 fi
13019 YACC=$ac_cv_prog_YACC
13020 if test -n "$YACC"; then
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13022 $as_echo "$YACC" >&6; }
13023 else
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13025 $as_echo "no" >&6; }
13026 fi
13027
13028
13029 test -n "$YACC" && break
13030 done
13031 test -n "$YACC" || YACC="yacc"
13032
13033 for ac_prog in flex lex
13034 do
13035 # Extract the first word of "$ac_prog", so it can be a program name with args.
13036 set dummy $ac_prog; ac_word=$2
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13038 $as_echo_n "checking for $ac_word... " >&6; }
13039 if ${ac_cv_prog_LEX+:} false; then :
13040 $as_echo_n "(cached) " >&6
13041 else
13042 if test -n "$LEX"; then
13043 ac_cv_prog_LEX="$LEX" # Let the user override the test.
13044 else
13045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13046 for as_dir in $PATH
13047 do
13048 IFS=$as_save_IFS
13049 test -z "$as_dir" && as_dir=.
13050 for ac_exec_ext in '' $ac_executable_extensions; do
13051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13052 ac_cv_prog_LEX="$ac_prog"
13053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13054 break 2
13055 fi
13056 done
13057 done
13058 IFS=$as_save_IFS
13059
13060 fi
13061 fi
13062 LEX=$ac_cv_prog_LEX
13063 if test -n "$LEX"; then
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
13065 $as_echo "$LEX" >&6; }
13066 else
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13068 $as_echo "no" >&6; }
13069 fi
13070
13071
13072 test -n "$LEX" && break
13073 done
13074 test -n "$LEX" || LEX=":"
13075
13076 case "$LEX" in
13077 :|*"missing "*) ;;
13078 *) cat >conftest.l <<_ACEOF
13079 %%
13080 a { ECHO; }
13081 b { REJECT; }
13082 c { yymore (); }
13083 d { yyless (1); }
13084 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
13085 yyless ((input () != 0)); }
13086 f { unput (yytext[0]); }
13087 . { BEGIN INITIAL; }
13088 %%
13089 #ifdef YYTEXT_POINTER
13090 extern char *yytext;
13091 #endif
13092 int
13093 main (void)
13094 {
13095 return ! yylex () + ! yywrap ();
13096 }
13097 _ACEOF
13098 { { ac_try="$LEX conftest.l"
13099 case "(($ac_try" in
13100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13101 *) ac_try_echo=$ac_try;;
13102 esac
13103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13104 $as_echo "$ac_try_echo"; } >&5
13105 (eval "$LEX conftest.l") 2>&5
13106 ac_status=$?
13107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13108 test $ac_status = 0; }
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
13110 $as_echo_n "checking lex output file root... " >&6; }
13111 if ${ac_cv_prog_lex_root+:} false; then :
13112 $as_echo_n "(cached) " >&6
13113 else
13114
13115 if test -f lex.yy.c; then
13116 ac_cv_prog_lex_root=lex.yy
13117 elif test -f lexyy.c; then
13118 ac_cv_prog_lex_root=lexyy
13119 else
13120 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
13121 fi
13122 fi
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
13124 $as_echo "$ac_cv_prog_lex_root" >&6; }
13125 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13126
13127 if test -z "${LEXLIB+set}"; then
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
13129 $as_echo_n "checking lex library... " >&6; }
13130 if ${ac_cv_lib_lex+:} false; then :
13131 $as_echo_n "(cached) " >&6
13132 else
13133
13134 ac_save_LIBS=$LIBS
13135 ac_cv_lib_lex='none needed'
13136 for ac_lib in '' -lfl -ll; do
13137 LIBS="$ac_lib $ac_save_LIBS"
13138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13139 /* end confdefs.h. */
13140 `cat $LEX_OUTPUT_ROOT.c`
13141 _ACEOF
13142 if ac_fn_c_try_link "$LINENO"; then :
13143 ac_cv_lib_lex=$ac_lib
13144 fi
13145 rm -f core conftest.err conftest.$ac_objext \
13146 conftest$ac_exeext conftest.$ac_ext
13147 test "$ac_cv_lib_lex" != 'none needed' && break
13148 done
13149 LIBS=$ac_save_LIBS
13150
13151 fi
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13153 $as_echo "$ac_cv_lib_lex" >&6; }
13154 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
13155 fi
13156
13157
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13159 $as_echo_n "checking whether yytext is a pointer... " >&6; }
13160 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
13161 $as_echo_n "(cached) " >&6
13162 else
13163 # POSIX says lex can declare yytext either as a pointer or an array; the
13164 # default is implementation-dependent. Figure out which it is, since
13165 # not all implementations provide the %pointer and %array declarations.
13166 ac_cv_prog_lex_yytext_pointer=no
13167 ac_save_LIBS=$LIBS
13168 LIBS="$LEXLIB $ac_save_LIBS"
13169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13170 /* end confdefs.h. */
13171
13172 #define YYTEXT_POINTER 1
13173 `cat $LEX_OUTPUT_ROOT.c`
13174 _ACEOF
13175 if ac_fn_c_try_link "$LINENO"; then :
13176 ac_cv_prog_lex_yytext_pointer=yes
13177 fi
13178 rm -f core conftest.err conftest.$ac_objext \
13179 conftest$ac_exeext conftest.$ac_ext
13180 LIBS=$ac_save_LIBS
13181
13182 fi
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13184 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
13185 if test $ac_cv_prog_lex_yytext_pointer = yes; then
13186
13187 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
13188
13189 fi
13190 rm -f conftest.l $LEX_OUTPUT_ROOT.c
13191 ;;
13192 esac
13193 if test "$LEX" = :; then
13194 LEX=${am_missing_run}flex
13195 fi
13196
13197 ALL_LINGUAS="es fi fr id ja ru rw sv tr uk zh_CN"
13198
13199 MKINSTALLDIRS=
13200 if test -n "$ac_aux_dir"; then
13201 case "$ac_aux_dir" in
13202 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13203 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13204 esac
13205 fi
13206 if test -z "$MKINSTALLDIRS"; then
13207 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13208 fi
13209
13210
13211
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13213 $as_echo_n "checking whether NLS is requested... " >&6; }
13214 # Check whether --enable-nls was given.
13215 if test "${enable_nls+set}" = set; then :
13216 enableval=$enable_nls; USE_NLS=$enableval
13217 else
13218 USE_NLS=yes
13219 fi
13220
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13222 $as_echo "$USE_NLS" >&6; }
13223
13224
13225
13226
13227
13228
13229 # Prepare PATH_SEPARATOR.
13230 # The user is always right.
13231 if test "${PATH_SEPARATOR+set}" != set; then
13232 echo "#! /bin/sh" >conf$$.sh
13233 echo "exit 0" >>conf$$.sh
13234 chmod +x conf$$.sh
13235 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13236 PATH_SEPARATOR=';'
13237 else
13238 PATH_SEPARATOR=:
13239 fi
13240 rm -f conf$$.sh
13241 fi
13242
13243 # Find out how to test for executable files. Don't use a zero-byte file,
13244 # as systems may use methods other than mode bits to determine executability.
13245 cat >conf$$.file <<_ASEOF
13246 #! /bin/sh
13247 exit 0
13248 _ASEOF
13249 chmod +x conf$$.file
13250 if test -x conf$$.file >/dev/null 2>&1; then
13251 ac_executable_p="test -x"
13252 else
13253 ac_executable_p="test -f"
13254 fi
13255 rm -f conf$$.file
13256
13257 # Extract the first word of "msgfmt", so it can be a program name with args.
13258 set dummy msgfmt; ac_word=$2
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13260 $as_echo_n "checking for $ac_word... " >&6; }
13261 if ${ac_cv_path_MSGFMT+:} false; then :
13262 $as_echo_n "(cached) " >&6
13263 else
13264 case "$MSGFMT" in
13265 [\\/]* | ?:[\\/]*)
13266 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13267 ;;
13268 *)
13269 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13270 for ac_dir in $PATH; do
13271 IFS="$ac_save_IFS"
13272 test -z "$ac_dir" && ac_dir=.
13273 for ac_exec_ext in '' $ac_executable_extensions; do
13274 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13275 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13276 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13277 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13278 break 2
13279 fi
13280 fi
13281 done
13282 done
13283 IFS="$ac_save_IFS"
13284 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13285 ;;
13286 esac
13287 fi
13288 MSGFMT="$ac_cv_path_MSGFMT"
13289 if test "$MSGFMT" != ":"; then
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13291 $as_echo "$MSGFMT" >&6; }
13292 else
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13294 $as_echo "no" >&6; }
13295 fi
13296
13297 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13298 set dummy gmsgfmt; ac_word=$2
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13300 $as_echo_n "checking for $ac_word... " >&6; }
13301 if ${ac_cv_path_GMSGFMT+:} false; then :
13302 $as_echo_n "(cached) " >&6
13303 else
13304 case $GMSGFMT in
13305 [\\/]* | ?:[\\/]*)
13306 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13307 ;;
13308 *)
13309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13310 for as_dir in $PATH
13311 do
13312 IFS=$as_save_IFS
13313 test -z "$as_dir" && as_dir=.
13314 for ac_exec_ext in '' $ac_executable_extensions; do
13315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13316 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13318 break 2
13319 fi
13320 done
13321 done
13322 IFS=$as_save_IFS
13323
13324 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13325 ;;
13326 esac
13327 fi
13328 GMSGFMT=$ac_cv_path_GMSGFMT
13329 if test -n "$GMSGFMT"; then
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13331 $as_echo "$GMSGFMT" >&6; }
13332 else
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334 $as_echo "no" >&6; }
13335 fi
13336
13337
13338
13339
13340 # Prepare PATH_SEPARATOR.
13341 # The user is always right.
13342 if test "${PATH_SEPARATOR+set}" != set; then
13343 echo "#! /bin/sh" >conf$$.sh
13344 echo "exit 0" >>conf$$.sh
13345 chmod +x conf$$.sh
13346 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13347 PATH_SEPARATOR=';'
13348 else
13349 PATH_SEPARATOR=:
13350 fi
13351 rm -f conf$$.sh
13352 fi
13353
13354 # Find out how to test for executable files. Don't use a zero-byte file,
13355 # as systems may use methods other than mode bits to determine executability.
13356 cat >conf$$.file <<_ASEOF
13357 #! /bin/sh
13358 exit 0
13359 _ASEOF
13360 chmod +x conf$$.file
13361 if test -x conf$$.file >/dev/null 2>&1; then
13362 ac_executable_p="test -x"
13363 else
13364 ac_executable_p="test -f"
13365 fi
13366 rm -f conf$$.file
13367
13368 # Extract the first word of "xgettext", so it can be a program name with args.
13369 set dummy xgettext; ac_word=$2
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13371 $as_echo_n "checking for $ac_word... " >&6; }
13372 if ${ac_cv_path_XGETTEXT+:} false; then :
13373 $as_echo_n "(cached) " >&6
13374 else
13375 case "$XGETTEXT" in
13376 [\\/]* | ?:[\\/]*)
13377 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13378 ;;
13379 *)
13380 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13381 for ac_dir in $PATH; do
13382 IFS="$ac_save_IFS"
13383 test -z "$ac_dir" && ac_dir=.
13384 for ac_exec_ext in '' $ac_executable_extensions; do
13385 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13386 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13387 (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
13388 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13389 break 2
13390 fi
13391 fi
13392 done
13393 done
13394 IFS="$ac_save_IFS"
13395 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13396 ;;
13397 esac
13398 fi
13399 XGETTEXT="$ac_cv_path_XGETTEXT"
13400 if test "$XGETTEXT" != ":"; then
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13402 $as_echo "$XGETTEXT" >&6; }
13403 else
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13405 $as_echo "no" >&6; }
13406 fi
13407
13408 rm -f messages.po
13409
13410
13411 # Prepare PATH_SEPARATOR.
13412 # The user is always right.
13413 if test "${PATH_SEPARATOR+set}" != set; then
13414 echo "#! /bin/sh" >conf$$.sh
13415 echo "exit 0" >>conf$$.sh
13416 chmod +x conf$$.sh
13417 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13418 PATH_SEPARATOR=';'
13419 else
13420 PATH_SEPARATOR=:
13421 fi
13422 rm -f conf$$.sh
13423 fi
13424
13425 # Find out how to test for executable files. Don't use a zero-byte file,
13426 # as systems may use methods other than mode bits to determine executability.
13427 cat >conf$$.file <<_ASEOF
13428 #! /bin/sh
13429 exit 0
13430 _ASEOF
13431 chmod +x conf$$.file
13432 if test -x conf$$.file >/dev/null 2>&1; then
13433 ac_executable_p="test -x"
13434 else
13435 ac_executable_p="test -f"
13436 fi
13437 rm -f conf$$.file
13438
13439 # Extract the first word of "msgmerge", so it can be a program name with args.
13440 set dummy msgmerge; ac_word=$2
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13442 $as_echo_n "checking for $ac_word... " >&6; }
13443 if ${ac_cv_path_MSGMERGE+:} false; then :
13444 $as_echo_n "(cached) " >&6
13445 else
13446 case "$MSGMERGE" in
13447 [\\/]* | ?:[\\/]*)
13448 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13449 ;;
13450 *)
13451 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13452 for ac_dir in $PATH; do
13453 IFS="$ac_save_IFS"
13454 test -z "$ac_dir" && ac_dir=.
13455 for ac_exec_ext in '' $ac_executable_extensions; do
13456 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13457 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13458 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13459 break 2
13460 fi
13461 fi
13462 done
13463 done
13464 IFS="$ac_save_IFS"
13465 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13466 ;;
13467 esac
13468 fi
13469 MSGMERGE="$ac_cv_path_MSGMERGE"
13470 if test "$MSGMERGE" != ":"; then
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13472 $as_echo "$MSGMERGE" >&6; }
13473 else
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13475 $as_echo "no" >&6; }
13476 fi
13477
13478
13479 if test "$GMSGFMT" != ":"; then
13480 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13481 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13482 : ;
13483 else
13484 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13486 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13487 GMSGFMT=":"
13488 fi
13489 fi
13490
13491 if test "$XGETTEXT" != ":"; then
13492 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13493 (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
13494 : ;
13495 else
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13497 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13498 XGETTEXT=":"
13499 fi
13500 rm -f messages.po
13501 fi
13502
13503 ac_config_commands="$ac_config_commands default-1"
13504
13505
13506
13507 if test "X$prefix" = "XNONE"; then
13508 acl_final_prefix="$ac_default_prefix"
13509 else
13510 acl_final_prefix="$prefix"
13511 fi
13512 if test "X$exec_prefix" = "XNONE"; then
13513 acl_final_exec_prefix='${prefix}'
13514 else
13515 acl_final_exec_prefix="$exec_prefix"
13516 fi
13517 acl_save_prefix="$prefix"
13518 prefix="$acl_final_prefix"
13519 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13520 prefix="$acl_save_prefix"
13521
13522
13523 # Check whether --with-gnu-ld was given.
13524 if test "${with_gnu_ld+set}" = set; then :
13525 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13526 else
13527 with_gnu_ld=no
13528 fi
13529
13530 # Prepare PATH_SEPARATOR.
13531 # The user is always right.
13532 if test "${PATH_SEPARATOR+set}" != set; then
13533 echo "#! /bin/sh" >conf$$.sh
13534 echo "exit 0" >>conf$$.sh
13535 chmod +x conf$$.sh
13536 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13537 PATH_SEPARATOR=';'
13538 else
13539 PATH_SEPARATOR=:
13540 fi
13541 rm -f conf$$.sh
13542 fi
13543 ac_prog=ld
13544 if test "$GCC" = yes; then
13545 # Check if gcc -print-prog-name=ld gives a path.
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13547 $as_echo_n "checking for ld used by GCC... " >&6; }
13548 case $host in
13549 *-*-mingw*)
13550 # gcc leaves a trailing carriage return which upsets mingw
13551 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13552 *)
13553 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13554 esac
13555 case $ac_prog in
13556 # Accept absolute paths.
13557 [\\/]* | [A-Za-z]:[\\/]*)
13558 re_direlt='/[^/][^/]*/\.\./'
13559 # Canonicalize the path of ld
13560 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13561 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13562 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13563 done
13564 test -z "$LD" && LD="$ac_prog"
13565 ;;
13566 "")
13567 # If it fails, then pretend we aren't using GCC.
13568 ac_prog=ld
13569 ;;
13570 *)
13571 # If it is relative, then search for the first ld in PATH.
13572 with_gnu_ld=unknown
13573 ;;
13574 esac
13575 elif test "$with_gnu_ld" = yes; then
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13577 $as_echo_n "checking for GNU ld... " >&6; }
13578 else
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13580 $as_echo_n "checking for non-GNU ld... " >&6; }
13581 fi
13582 if ${acl_cv_path_LD+:} false; then :
13583 $as_echo_n "(cached) " >&6
13584 else
13585 if test -z "$LD"; then
13586 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13587 for ac_dir in $PATH; do
13588 test -z "$ac_dir" && ac_dir=.
13589 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13590 acl_cv_path_LD="$ac_dir/$ac_prog"
13591 # Check to see if the program is GNU ld. I'd rather use --version,
13592 # but apparently some GNU ld's only accept -v.
13593 # Break only if it was the GNU/non-GNU ld that we prefer.
13594 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
13595 test "$with_gnu_ld" != no && break
13596 else
13597 test "$with_gnu_ld" != yes && break
13598 fi
13599 fi
13600 done
13601 IFS="$ac_save_ifs"
13602 else
13603 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13604 fi
13605 fi
13606
13607 LD="$acl_cv_path_LD"
13608 if test -n "$LD"; then
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13610 $as_echo "$LD" >&6; }
13611 else
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13613 $as_echo "no" >&6; }
13614 fi
13615 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13617 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13618 if ${acl_cv_prog_gnu_ld+:} false; then :
13619 $as_echo_n "(cached) " >&6
13620 else
13621 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13622 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
13623 acl_cv_prog_gnu_ld=yes
13624 else
13625 acl_cv_prog_gnu_ld=no
13626 fi
13627 fi
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13629 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13630 with_gnu_ld=$acl_cv_prog_gnu_ld
13631
13632
13633
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13635 $as_echo_n "checking for shared library run path origin... " >&6; }
13636 if ${acl_cv_rpath+:} false; then :
13637 $as_echo_n "(cached) " >&6
13638 else
13639
13640 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13641 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13642 . ./conftest.sh
13643 rm -f ./conftest.sh
13644 acl_cv_rpath=done
13645
13646 fi
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13648 $as_echo "$acl_cv_rpath" >&6; }
13649 wl="$acl_cv_wl"
13650 libext="$acl_cv_libext"
13651 shlibext="$acl_cv_shlibext"
13652 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13653 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13654 hardcode_direct="$acl_cv_hardcode_direct"
13655 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13656 # Check whether --enable-rpath was given.
13657 if test "${enable_rpath+set}" = set; then :
13658 enableval=$enable_rpath; :
13659 else
13660 enable_rpath=yes
13661 fi
13662
13663
13664
13665
13666
13667
13668
13669
13670 use_additional=yes
13671
13672 acl_save_prefix="$prefix"
13673 prefix="$acl_final_prefix"
13674 acl_save_exec_prefix="$exec_prefix"
13675 exec_prefix="$acl_final_exec_prefix"
13676
13677 eval additional_includedir=\"$includedir\"
13678 eval additional_libdir=\"$libdir\"
13679
13680 exec_prefix="$acl_save_exec_prefix"
13681 prefix="$acl_save_prefix"
13682
13683
13684 # Check whether --with-libiconv-prefix was given.
13685 if test "${with_libiconv_prefix+set}" = set; then :
13686 withval=$with_libiconv_prefix;
13687 if test "X$withval" = "Xno"; then
13688 use_additional=no
13689 else
13690 if test "X$withval" = "X"; then
13691
13692 acl_save_prefix="$prefix"
13693 prefix="$acl_final_prefix"
13694 acl_save_exec_prefix="$exec_prefix"
13695 exec_prefix="$acl_final_exec_prefix"
13696
13697 eval additional_includedir=\"$includedir\"
13698 eval additional_libdir=\"$libdir\"
13699
13700 exec_prefix="$acl_save_exec_prefix"
13701 prefix="$acl_save_prefix"
13702
13703 else
13704 additional_includedir="$withval/include"
13705 additional_libdir="$withval/lib"
13706 fi
13707 fi
13708
13709 fi
13710
13711
13712 # Check whether --with-libiconv-type was given.
13713 if test "${with_libiconv_type+set}" = set; then :
13714 withval=$with_libiconv_type; with_libiconv_type=$withval
13715 else
13716 with_libiconv_type=auto
13717 fi
13718
13719 lib_type=`eval echo \$with_libiconv_type`
13720
13721 LIBICONV=
13722 LTLIBICONV=
13723 INCICONV=
13724 rpathdirs=
13725 ltrpathdirs=
13726 names_already_handled=
13727 names_next_round='iconv '
13728 while test -n "$names_next_round"; do
13729 names_this_round="$names_next_round"
13730 names_next_round=
13731 for name in $names_this_round; do
13732 already_handled=
13733 for n in $names_already_handled; do
13734 if test "$n" = "$name"; then
13735 already_handled=yes
13736 break
13737 fi
13738 done
13739 if test -z "$already_handled"; then
13740 names_already_handled="$names_already_handled $name"
13741 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13742 eval value=\"\$HAVE_LIB$uppername\"
13743 if test -n "$value"; then
13744 if test "$value" = yes; then
13745 eval value=\"\$LIB$uppername\"
13746 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13747 eval value=\"\$LTLIB$uppername\"
13748 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13749 else
13750 :
13751 fi
13752 else
13753 found_dir=
13754 found_la=
13755 found_so=
13756 found_a=
13757 if test $use_additional = yes; then
13758 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
13759 found_dir="$additional_libdir"
13760 found_so="$additional_libdir/lib$name.$shlibext"
13761 if test -f "$additional_libdir/lib$name.la"; then
13762 found_la="$additional_libdir/lib$name.la"
13763 fi
13764 elif test x$lib_type != xshared; then
13765 if test -f "$additional_libdir/lib$name.$libext"; then
13766 found_dir="$additional_libdir"
13767 found_a="$additional_libdir/lib$name.$libext"
13768 if test -f "$additional_libdir/lib$name.la"; then
13769 found_la="$additional_libdir/lib$name.la"
13770 fi
13771 fi
13772 fi
13773 fi
13774 if test "X$found_dir" = "X"; then
13775 for x in $LDFLAGS $LTLIBICONV; do
13776
13777 acl_save_prefix="$prefix"
13778 prefix="$acl_final_prefix"
13779 acl_save_exec_prefix="$exec_prefix"
13780 exec_prefix="$acl_final_exec_prefix"
13781 eval x=\"$x\"
13782 exec_prefix="$acl_save_exec_prefix"
13783 prefix="$acl_save_prefix"
13784
13785 case "$x" in
13786 -L*)
13787 dir=`echo "X$x" | sed -e 's/^X-L//'`
13788 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
13789 found_dir="$dir"
13790 found_so="$dir/lib$name.$shlibext"
13791 if test -f "$dir/lib$name.la"; then
13792 found_la="$dir/lib$name.la"
13793 fi
13794 elif test x$lib_type != xshared; then
13795 if test -f "$dir/lib$name.$libext"; then
13796 found_dir="$dir"
13797 found_a="$dir/lib$name.$libext"
13798 if test -f "$dir/lib$name.la"; then
13799 found_la="$dir/lib$name.la"
13800 fi
13801 fi
13802 fi
13803 ;;
13804 esac
13805 if test "X$found_dir" != "X"; then
13806 break
13807 fi
13808 done
13809 fi
13810 if test "X$found_dir" != "X"; then
13811 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13812 if test "X$found_so" != "X"; then
13813 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13814 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13815 else
13816 haveit=
13817 for x in $ltrpathdirs; do
13818 if test "X$x" = "X$found_dir"; then
13819 haveit=yes
13820 break
13821 fi
13822 done
13823 if test -z "$haveit"; then
13824 ltrpathdirs="$ltrpathdirs $found_dir"
13825 fi
13826 if test "$hardcode_direct" = yes; then
13827 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13828 else
13829 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13830 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13831 haveit=
13832 for x in $rpathdirs; do
13833 if test "X$x" = "X$found_dir"; then
13834 haveit=yes
13835 break
13836 fi
13837 done
13838 if test -z "$haveit"; then
13839 rpathdirs="$rpathdirs $found_dir"
13840 fi
13841 else
13842 haveit=
13843 for x in $LDFLAGS $LIBICONV; do
13844
13845 acl_save_prefix="$prefix"
13846 prefix="$acl_final_prefix"
13847 acl_save_exec_prefix="$exec_prefix"
13848 exec_prefix="$acl_final_exec_prefix"
13849 eval x=\"$x\"
13850 exec_prefix="$acl_save_exec_prefix"
13851 prefix="$acl_save_prefix"
13852
13853 if test "X$x" = "X-L$found_dir"; then
13854 haveit=yes
13855 break
13856 fi
13857 done
13858 if test -z "$haveit"; then
13859 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13860 fi
13861 if test "$hardcode_minus_L" != no; then
13862 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13863 else
13864 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13865 fi
13866 fi
13867 fi
13868 fi
13869 else
13870 if test "X$found_a" != "X"; then
13871 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13872 else
13873 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13874 fi
13875 fi
13876 additional_includedir=
13877 case "$found_dir" in
13878 */lib | */lib/)
13879 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13880 additional_includedir="$basedir/include"
13881 ;;
13882 esac
13883 if test "X$additional_includedir" != "X"; then
13884 if test "X$additional_includedir" != "X/usr/include"; then
13885 haveit=
13886 if test "X$additional_includedir" = "X/usr/local/include"; then
13887 if test -n "$GCC"; then
13888 case $host_os in
13889 linux*) haveit=yes;;
13890 esac
13891 fi
13892 fi
13893 if test -z "$haveit"; then
13894 for x in $CPPFLAGS $INCICONV; do
13895
13896 acl_save_prefix="$prefix"
13897 prefix="$acl_final_prefix"
13898 acl_save_exec_prefix="$exec_prefix"
13899 exec_prefix="$acl_final_exec_prefix"
13900 eval x=\"$x\"
13901 exec_prefix="$acl_save_exec_prefix"
13902 prefix="$acl_save_prefix"
13903
13904 if test "X$x" = "X-I$additional_includedir"; then
13905 haveit=yes
13906 break
13907 fi
13908 done
13909 if test -z "$haveit"; then
13910 if test -d "$additional_includedir"; then
13911 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13912 fi
13913 fi
13914 fi
13915 fi
13916 fi
13917 if test -n "$found_la"; then
13918 save_libdir="$libdir"
13919 case "$found_la" in
13920 */* | *\\*) . "$found_la" ;;
13921 *) . "./$found_la" ;;
13922 esac
13923 libdir="$save_libdir"
13924 for dep in $dependency_libs; do
13925 case "$dep" in
13926 -L*)
13927 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13928 if test "X$additional_libdir" != "X/usr/lib"; then
13929 haveit=
13930 if test "X$additional_libdir" = "X/usr/local/lib"; then
13931 if test -n "$GCC"; then
13932 case $host_os in
13933 linux*) haveit=yes;;
13934 esac
13935 fi
13936 fi
13937 if test -z "$haveit"; then
13938 haveit=
13939 for x in $LDFLAGS $LIBICONV; do
13940
13941 acl_save_prefix="$prefix"
13942 prefix="$acl_final_prefix"
13943 acl_save_exec_prefix="$exec_prefix"
13944 exec_prefix="$acl_final_exec_prefix"
13945 eval x=\"$x\"
13946 exec_prefix="$acl_save_exec_prefix"
13947 prefix="$acl_save_prefix"
13948
13949 if test "X$x" = "X-L$additional_libdir"; then
13950 haveit=yes
13951 break
13952 fi
13953 done
13954 if test -z "$haveit"; then
13955 if test -d "$additional_libdir"; then
13956 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13957 fi
13958 fi
13959 haveit=
13960 for x in $LDFLAGS $LTLIBICONV; do
13961
13962 acl_save_prefix="$prefix"
13963 prefix="$acl_final_prefix"
13964 acl_save_exec_prefix="$exec_prefix"
13965 exec_prefix="$acl_final_exec_prefix"
13966 eval x=\"$x\"
13967 exec_prefix="$acl_save_exec_prefix"
13968 prefix="$acl_save_prefix"
13969
13970 if test "X$x" = "X-L$additional_libdir"; then
13971 haveit=yes
13972 break
13973 fi
13974 done
13975 if test -z "$haveit"; then
13976 if test -d "$additional_libdir"; then
13977 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13978 fi
13979 fi
13980 fi
13981 fi
13982 ;;
13983 -R*)
13984 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13985 if test "$enable_rpath" != no; then
13986 haveit=
13987 for x in $rpathdirs; do
13988 if test "X$x" = "X$dir"; then
13989 haveit=yes
13990 break
13991 fi
13992 done
13993 if test -z "$haveit"; then
13994 rpathdirs="$rpathdirs $dir"
13995 fi
13996 haveit=
13997 for x in $ltrpathdirs; do
13998 if test "X$x" = "X$dir"; then
13999 haveit=yes
14000 break
14001 fi
14002 done
14003 if test -z "$haveit"; then
14004 ltrpathdirs="$ltrpathdirs $dir"
14005 fi
14006 fi
14007 ;;
14008 -l*)
14009 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14010 ;;
14011 *.la)
14012 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14013 ;;
14014 *)
14015 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14016 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14017 ;;
14018 esac
14019 done
14020 fi
14021 else
14022 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14023 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14024 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14025 else
14026 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
14027 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
14028 fi
14029 fi
14030 fi
14031 fi
14032 done
14033 done
14034 if test "X$rpathdirs" != "X"; then
14035 if test -n "$hardcode_libdir_separator"; then
14036 alldirs=
14037 for found_dir in $rpathdirs; do
14038 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14039 done
14040 acl_save_libdir="$libdir"
14041 libdir="$alldirs"
14042 eval flag=\"$hardcode_libdir_flag_spec\"
14043 libdir="$acl_save_libdir"
14044 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14045 else
14046 for found_dir in $rpathdirs; do
14047 acl_save_libdir="$libdir"
14048 libdir="$found_dir"
14049 eval flag=\"$hardcode_libdir_flag_spec\"
14050 libdir="$acl_save_libdir"
14051 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14052 done
14053 fi
14054 fi
14055 if test "X$ltrpathdirs" != "X"; then
14056 for found_dir in $ltrpathdirs; do
14057 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14058 done
14059 fi
14060
14061
14062
14063
14064
14065 if test -f ../gettext/uninstalled-config.sh; then
14066 relative_builddir='$(top_builddir)/../gettext'
14067 . ../gettext/uninstalled-config.sh
14068 else
14069 # The sister gettext directory doesn't exist and won't collect information on
14070 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14095 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14096 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14097 $as_echo_n "(cached) " >&6
14098 else
14099 gt_save_LIBS="$LIBS"
14100 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102 /* end confdefs.h. */
14103 #include <CoreFoundation/CFPreferences.h>
14104 int
14105 main ()
14106 {
14107 CFPreferencesCopyAppValue(NULL, NULL)
14108 ;
14109 return 0;
14110 }
14111 _ACEOF
14112 if ac_fn_c_try_link "$LINENO"; then :
14113 gt_cv_func_CFPreferencesCopyAppValue=yes
14114 else
14115 gt_cv_func_CFPreferencesCopyAppValue=no
14116 fi
14117 rm -f core conftest.err conftest.$ac_objext \
14118 conftest$ac_exeext conftest.$ac_ext
14119 LIBS="$gt_save_LIBS"
14120 fi
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14122 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14123 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14124
14125 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14126
14127 fi
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
14129 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
14130 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
14131 $as_echo_n "(cached) " >&6
14132 else
14133 gt_save_LIBS="$LIBS"
14134 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14136 /* end confdefs.h. */
14137 #include <CoreFoundation/CFLocale.h>
14138 int
14139 main ()
14140 {
14141 CFLocaleCopyPreferredLanguages();
14142 ;
14143 return 0;
14144 }
14145 _ACEOF
14146 if ac_fn_c_try_link "$LINENO"; then :
14147 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
14148 else
14149 gt_cv_func_CFLocaleCopyPreferredLanguages=no
14150 fi
14151 rm -f core conftest.err conftest.$ac_objext \
14152 conftest$ac_exeext conftest.$ac_ext
14153 LIBS="$gt_save_LIBS"
14154 fi
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
14156 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
14157 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
14158
14159 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
14160
14161 fi
14162 INTL_MACOSX_LIBS=
14163 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
14164 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
14165 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
14166 fi
14167
14168
14169
14170
14171
14172
14173 LIBINTL=
14174 LTLIBINTL=
14175 POSUB=
14176
14177 case " $gt_needs " in
14178 *" need-formatstring-macros "*) gt_api_version=3 ;;
14179 *" need-ngettext "*) gt_api_version=2 ;;
14180 *) gt_api_version=1 ;;
14181 esac
14182 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14183 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14184
14185 if test "$USE_NLS" = "yes"; then
14186 gt_use_preinstalled_gnugettext=no
14187
14188
14189 if test $gt_api_version -ge 3; then
14190 gt_revision_test_code='
14191 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14192 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14193 #endif
14194 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14195 '
14196 else
14197 gt_revision_test_code=
14198 fi
14199 if test $gt_api_version -ge 2; then
14200 gt_expression_test_code=' + * ngettext ("", "", 0)'
14201 else
14202 gt_expression_test_code=
14203 fi
14204
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14206 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14207 if eval \${$gt_func_gnugettext_libc+:} false; then :
14208 $as_echo_n "(cached) " >&6
14209 else
14210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14211 /* end confdefs.h. */
14212
14213 #include <libintl.h>
14214 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14215 extern int _nl_msg_cat_cntr;
14216 extern int *_nl_domain_bindings;
14217 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
14218 #else
14219 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14220 #endif
14221 $gt_revision_test_code
14222
14223 int
14224 main ()
14225 {
14226
14227 bindtextdomain ("", "");
14228 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14229
14230 ;
14231 return 0;
14232 }
14233 _ACEOF
14234 if ac_fn_c_try_link "$LINENO"; then :
14235 eval "$gt_func_gnugettext_libc=yes"
14236 else
14237 eval "$gt_func_gnugettext_libc=no"
14238 fi
14239 rm -f core conftest.err conftest.$ac_objext \
14240 conftest$ac_exeext conftest.$ac_ext
14241 fi
14242 eval ac_res=\$$gt_func_gnugettext_libc
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14244 $as_echo "$ac_res" >&6; }
14245
14246 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14247
14248
14249
14250
14251
14252 am_save_CPPFLAGS="$CPPFLAGS"
14253
14254 for element in $INCICONV; do
14255 haveit=
14256 for x in $CPPFLAGS; do
14257
14258 acl_save_prefix="$prefix"
14259 prefix="$acl_final_prefix"
14260 acl_save_exec_prefix="$exec_prefix"
14261 exec_prefix="$acl_final_exec_prefix"
14262 eval x=\"$x\"
14263 exec_prefix="$acl_save_exec_prefix"
14264 prefix="$acl_save_prefix"
14265
14266 if test "X$x" = "X$element"; then
14267 haveit=yes
14268 break
14269 fi
14270 done
14271 if test -z "$haveit"; then
14272 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14273 fi
14274 done
14275
14276
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14278 $as_echo_n "checking for iconv... " >&6; }
14279 if ${am_cv_func_iconv+:} false; then :
14280 $as_echo_n "(cached) " >&6
14281 else
14282
14283 am_cv_func_iconv="no, consider installing GNU libiconv"
14284 am_cv_lib_iconv=no
14285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14286 /* end confdefs.h. */
14287
14288 #include <stdlib.h>
14289 #include <iconv.h>
14290
14291 int
14292 main ()
14293 {
14294 iconv_t cd = iconv_open("","");
14295 iconv(cd,NULL,NULL,NULL,NULL);
14296 iconv_close(cd);
14297 ;
14298 return 0;
14299 }
14300 _ACEOF
14301 if ac_fn_c_try_link "$LINENO"; then :
14302 am_cv_func_iconv=yes
14303 fi
14304 rm -f core conftest.err conftest.$ac_objext \
14305 conftest$ac_exeext conftest.$ac_ext
14306 if test "$am_cv_func_iconv" != yes; then
14307 am_save_LIBS="$LIBS"
14308 LIBS="$LIBS $LIBICONV"
14309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310 /* end confdefs.h. */
14311
14312 #include <stdlib.h>
14313 #include <iconv.h>
14314
14315 int
14316 main ()
14317 {
14318 iconv_t cd = iconv_open("","");
14319 iconv(cd,NULL,NULL,NULL,NULL);
14320 iconv_close(cd);
14321 ;
14322 return 0;
14323 }
14324 _ACEOF
14325 if ac_fn_c_try_link "$LINENO"; then :
14326 am_cv_lib_iconv=yes
14327 am_cv_func_iconv=yes
14328 fi
14329 rm -f core conftest.err conftest.$ac_objext \
14330 conftest$ac_exeext conftest.$ac_ext
14331 LIBS="$am_save_LIBS"
14332 fi
14333
14334 fi
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14336 $as_echo "$am_cv_func_iconv" >&6; }
14337 if test "$am_cv_func_iconv" = yes; then
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14339 $as_echo_n "checking for working iconv... " >&6; }
14340 if ${am_cv_func_iconv_works+:} false; then :
14341 $as_echo_n "(cached) " >&6
14342 else
14343
14344 am_save_LIBS="$LIBS"
14345 if test $am_cv_lib_iconv = yes; then
14346 LIBS="$LIBS $LIBICONV"
14347 fi
14348 am_cv_func_iconv_works=no
14349 for ac_iconv_const in '' 'const'; do
14350 if test "$cross_compiling" = yes; then :
14351 case "$host_os" in
14352 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14353 *) am_cv_func_iconv_works="guessing yes" ;;
14354 esac
14355 else
14356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14357 /* end confdefs.h. */
14358
14359 #include <iconv.h>
14360 #include <string.h>
14361
14362 #ifndef ICONV_CONST
14363 # define ICONV_CONST $ac_iconv_const
14364 #endif
14365
14366 int
14367 main ()
14368 {
14369 int result = 0;
14370 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
14371 successful returns. This is even documented in
14372 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
14373 {
14374 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14375 if (cd_utf8_to_88591 != (iconv_t)(-1))
14376 {
14377 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
14378 char buf[10];
14379 ICONV_CONST char *inptr = input;
14380 size_t inbytesleft = strlen (input);
14381 char *outptr = buf;
14382 size_t outbytesleft = sizeof (buf);
14383 size_t res = iconv (cd_utf8_to_88591,
14384 &inptr, &inbytesleft,
14385 &outptr, &outbytesleft);
14386 if (res == 0)
14387 result |= 1;
14388 iconv_close (cd_utf8_to_88591);
14389 }
14390 }
14391 /* Test against Solaris 10 bug: Failures are not distinguishable from
14392 successful returns. */
14393 {
14394 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14395 if (cd_ascii_to_88591 != (iconv_t)(-1))
14396 {
14397 static ICONV_CONST char input[] = "\263";
14398 char buf[10];
14399 ICONV_CONST char *inptr = input;
14400 size_t inbytesleft = strlen (input);
14401 char *outptr = buf;
14402 size_t outbytesleft = sizeof (buf);
14403 size_t res = iconv (cd_ascii_to_88591,
14404 &inptr, &inbytesleft,
14405 &outptr, &outbytesleft);
14406 if (res == 0)
14407 result |= 2;
14408 iconv_close (cd_ascii_to_88591);
14409 }
14410 }
14411 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
14412 {
14413 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14414 if (cd_88591_to_utf8 != (iconv_t)(-1))
14415 {
14416 static ICONV_CONST char input[] = "\304";
14417 static char buf[2] = { (char)0xDE, (char)0xAD };
14418 ICONV_CONST char *inptr = input;
14419 size_t inbytesleft = 1;
14420 char *outptr = buf;
14421 size_t outbytesleft = 1;
14422 size_t res = iconv (cd_88591_to_utf8,
14423 &inptr, &inbytesleft,
14424 &outptr, &outbytesleft);
14425 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14426 result |= 4;
14427 iconv_close (cd_88591_to_utf8);
14428 }
14429 }
14430 #if 0 /* This bug could be worked around by the caller. */
14431 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14432 {
14433 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14434 if (cd_88591_to_utf8 != (iconv_t)(-1))
14435 {
14436 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14437 char buf[50];
14438 ICONV_CONST char *inptr = input;
14439 size_t inbytesleft = strlen (input);
14440 char *outptr = buf;
14441 size_t outbytesleft = sizeof (buf);
14442 size_t res = iconv (cd_88591_to_utf8,
14443 &inptr, &inbytesleft,
14444 &outptr, &outbytesleft);
14445 if ((int)res > 0)
14446 result |= 8;
14447 iconv_close (cd_88591_to_utf8);
14448 }
14449 }
14450 #endif
14451 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14452 provided. */
14453 {
14454 /* Try standardized names. */
14455 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
14456 /* Try IRIX, OSF/1 names. */
14457 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
14458 /* Try AIX names. */
14459 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
14460 /* Try HP-UX names. */
14461 iconv_t cd4 = iconv_open ("utf8", "eucJP");
14462 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
14463 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
14464 result |= 16;
14465 if (cd1 != (iconv_t)(-1))
14466 iconv_close (cd1);
14467 if (cd2 != (iconv_t)(-1))
14468 iconv_close (cd2);
14469 if (cd3 != (iconv_t)(-1))
14470 iconv_close (cd3);
14471 if (cd4 != (iconv_t)(-1))
14472 iconv_close (cd4);
14473 }
14474 return result;
14475
14476 ;
14477 return 0;
14478 }
14479 _ACEOF
14480 if ac_fn_c_try_run "$LINENO"; then :
14481 am_cv_func_iconv_works=yes
14482 fi
14483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14484 conftest.$ac_objext conftest.beam conftest.$ac_ext
14485 fi
14486
14487 test "$am_cv_func_iconv_works" = no || break
14488 done
14489 LIBS="$am_save_LIBS"
14490
14491 fi
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14493 $as_echo "$am_cv_func_iconv_works" >&6; }
14494 case "$am_cv_func_iconv_works" in
14495 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14496 *) am_func_iconv=yes ;;
14497 esac
14498 else
14499 am_func_iconv=no am_cv_lib_iconv=no
14500 fi
14501 if test "$am_func_iconv" = yes; then
14502
14503 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14504
14505 fi
14506 if test "$am_cv_lib_iconv" = yes; then
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14508 $as_echo_n "checking how to link with libiconv... " >&6; }
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14510 $as_echo "$LIBICONV" >&6; }
14511 else
14512 CPPFLAGS="$am_save_CPPFLAGS"
14513 LIBICONV=
14514 LTLIBICONV=
14515 fi
14516
14517
14518
14519
14520
14521
14522 use_additional=yes
14523
14524 acl_save_prefix="$prefix"
14525 prefix="$acl_final_prefix"
14526 acl_save_exec_prefix="$exec_prefix"
14527 exec_prefix="$acl_final_exec_prefix"
14528
14529 eval additional_includedir=\"$includedir\"
14530 eval additional_libdir=\"$libdir\"
14531
14532 exec_prefix="$acl_save_exec_prefix"
14533 prefix="$acl_save_prefix"
14534
14535
14536 # Check whether --with-libintl-prefix was given.
14537 if test "${with_libintl_prefix+set}" = set; then :
14538 withval=$with_libintl_prefix;
14539 if test "X$withval" = "Xno"; then
14540 use_additional=no
14541 else
14542 if test "X$withval" = "X"; then
14543
14544 acl_save_prefix="$prefix"
14545 prefix="$acl_final_prefix"
14546 acl_save_exec_prefix="$exec_prefix"
14547 exec_prefix="$acl_final_exec_prefix"
14548
14549 eval additional_includedir=\"$includedir\"
14550 eval additional_libdir=\"$libdir\"
14551
14552 exec_prefix="$acl_save_exec_prefix"
14553 prefix="$acl_save_prefix"
14554
14555 else
14556 additional_includedir="$withval/include"
14557 additional_libdir="$withval/lib"
14558 fi
14559 fi
14560
14561 fi
14562
14563
14564 # Check whether --with-libintl-type was given.
14565 if test "${with_libintl_type+set}" = set; then :
14566 withval=$with_libintl_type; with_libintl_type=$withval
14567 else
14568 with_libintl_type=auto
14569 fi
14570
14571 lib_type=`eval echo \$with_libintl_type`
14572
14573 LIBINTL=
14574 LTLIBINTL=
14575 INCINTL=
14576 rpathdirs=
14577 ltrpathdirs=
14578 names_already_handled=
14579 names_next_round='intl '
14580 while test -n "$names_next_round"; do
14581 names_this_round="$names_next_round"
14582 names_next_round=
14583 for name in $names_this_round; do
14584 already_handled=
14585 for n in $names_already_handled; do
14586 if test "$n" = "$name"; then
14587 already_handled=yes
14588 break
14589 fi
14590 done
14591 if test -z "$already_handled"; then
14592 names_already_handled="$names_already_handled $name"
14593 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14594 eval value=\"\$HAVE_LIB$uppername\"
14595 if test -n "$value"; then
14596 if test "$value" = yes; then
14597 eval value=\"\$LIB$uppername\"
14598 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14599 eval value=\"\$LTLIB$uppername\"
14600 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14601 else
14602 :
14603 fi
14604 else
14605 found_dir=
14606 found_la=
14607 found_so=
14608 found_a=
14609 if test $use_additional = yes; then
14610 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14611 found_dir="$additional_libdir"
14612 found_so="$additional_libdir/lib$name.$shlibext"
14613 if test -f "$additional_libdir/lib$name.la"; then
14614 found_la="$additional_libdir/lib$name.la"
14615 fi
14616 elif test x$lib_type != xshared; then
14617 if test -f "$additional_libdir/lib$name.$libext"; then
14618 found_dir="$additional_libdir"
14619 found_a="$additional_libdir/lib$name.$libext"
14620 if test -f "$additional_libdir/lib$name.la"; then
14621 found_la="$additional_libdir/lib$name.la"
14622 fi
14623 fi
14624 fi
14625 fi
14626 if test "X$found_dir" = "X"; then
14627 for x in $LDFLAGS $LTLIBINTL; do
14628
14629 acl_save_prefix="$prefix"
14630 prefix="$acl_final_prefix"
14631 acl_save_exec_prefix="$exec_prefix"
14632 exec_prefix="$acl_final_exec_prefix"
14633 eval x=\"$x\"
14634 exec_prefix="$acl_save_exec_prefix"
14635 prefix="$acl_save_prefix"
14636
14637 case "$x" in
14638 -L*)
14639 dir=`echo "X$x" | sed -e 's/^X-L//'`
14640 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14641 found_dir="$dir"
14642 found_so="$dir/lib$name.$shlibext"
14643 if test -f "$dir/lib$name.la"; then
14644 found_la="$dir/lib$name.la"
14645 fi
14646 elif test x$lib_type != xshared; then
14647 if test -f "$dir/lib$name.$libext"; then
14648 found_dir="$dir"
14649 found_a="$dir/lib$name.$libext"
14650 if test -f "$dir/lib$name.la"; then
14651 found_la="$dir/lib$name.la"
14652 fi
14653 fi
14654 fi
14655 ;;
14656 esac
14657 if test "X$found_dir" != "X"; then
14658 break
14659 fi
14660 done
14661 fi
14662 if test "X$found_dir" != "X"; then
14663 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14664 if test "X$found_so" != "X"; then
14665 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14666 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14667 else
14668 haveit=
14669 for x in $ltrpathdirs; do
14670 if test "X$x" = "X$found_dir"; then
14671 haveit=yes
14672 break
14673 fi
14674 done
14675 if test -z "$haveit"; then
14676 ltrpathdirs="$ltrpathdirs $found_dir"
14677 fi
14678 if test "$hardcode_direct" = yes; then
14679 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14680 else
14681 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14682 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14683 haveit=
14684 for x in $rpathdirs; do
14685 if test "X$x" = "X$found_dir"; then
14686 haveit=yes
14687 break
14688 fi
14689 done
14690 if test -z "$haveit"; then
14691 rpathdirs="$rpathdirs $found_dir"
14692 fi
14693 else
14694 haveit=
14695 for x in $LDFLAGS $LIBINTL; do
14696
14697 acl_save_prefix="$prefix"
14698 prefix="$acl_final_prefix"
14699 acl_save_exec_prefix="$exec_prefix"
14700 exec_prefix="$acl_final_exec_prefix"
14701 eval x=\"$x\"
14702 exec_prefix="$acl_save_exec_prefix"
14703 prefix="$acl_save_prefix"
14704
14705 if test "X$x" = "X-L$found_dir"; then
14706 haveit=yes
14707 break
14708 fi
14709 done
14710 if test -z "$haveit"; then
14711 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14712 fi
14713 if test "$hardcode_minus_L" != no; then
14714 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14715 else
14716 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14717 fi
14718 fi
14719 fi
14720 fi
14721 else
14722 if test "X$found_a" != "X"; then
14723 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14724 else
14725 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14726 fi
14727 fi
14728 additional_includedir=
14729 case "$found_dir" in
14730 */lib | */lib/)
14731 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14732 additional_includedir="$basedir/include"
14733 ;;
14734 esac
14735 if test "X$additional_includedir" != "X"; then
14736 if test "X$additional_includedir" != "X/usr/include"; then
14737 haveit=
14738 if test "X$additional_includedir" = "X/usr/local/include"; then
14739 if test -n "$GCC"; then
14740 case $host_os in
14741 linux*) haveit=yes;;
14742 esac
14743 fi
14744 fi
14745 if test -z "$haveit"; then
14746 for x in $CPPFLAGS $INCINTL; do
14747
14748 acl_save_prefix="$prefix"
14749 prefix="$acl_final_prefix"
14750 acl_save_exec_prefix="$exec_prefix"
14751 exec_prefix="$acl_final_exec_prefix"
14752 eval x=\"$x\"
14753 exec_prefix="$acl_save_exec_prefix"
14754 prefix="$acl_save_prefix"
14755
14756 if test "X$x" = "X-I$additional_includedir"; then
14757 haveit=yes
14758 break
14759 fi
14760 done
14761 if test -z "$haveit"; then
14762 if test -d "$additional_includedir"; then
14763 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14764 fi
14765 fi
14766 fi
14767 fi
14768 fi
14769 if test -n "$found_la"; then
14770 save_libdir="$libdir"
14771 case "$found_la" in
14772 */* | *\\*) . "$found_la" ;;
14773 *) . "./$found_la" ;;
14774 esac
14775 libdir="$save_libdir"
14776 for dep in $dependency_libs; do
14777 case "$dep" in
14778 -L*)
14779 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14780 if test "X$additional_libdir" != "X/usr/lib"; then
14781 haveit=
14782 if test "X$additional_libdir" = "X/usr/local/lib"; then
14783 if test -n "$GCC"; then
14784 case $host_os in
14785 linux*) haveit=yes;;
14786 esac
14787 fi
14788 fi
14789 if test -z "$haveit"; then
14790 haveit=
14791 for x in $LDFLAGS $LIBINTL; do
14792
14793 acl_save_prefix="$prefix"
14794 prefix="$acl_final_prefix"
14795 acl_save_exec_prefix="$exec_prefix"
14796 exec_prefix="$acl_final_exec_prefix"
14797 eval x=\"$x\"
14798 exec_prefix="$acl_save_exec_prefix"
14799 prefix="$acl_save_prefix"
14800
14801 if test "X$x" = "X-L$additional_libdir"; then
14802 haveit=yes
14803 break
14804 fi
14805 done
14806 if test -z "$haveit"; then
14807 if test -d "$additional_libdir"; then
14808 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14809 fi
14810 fi
14811 haveit=
14812 for x in $LDFLAGS $LTLIBINTL; do
14813
14814 acl_save_prefix="$prefix"
14815 prefix="$acl_final_prefix"
14816 acl_save_exec_prefix="$exec_prefix"
14817 exec_prefix="$acl_final_exec_prefix"
14818 eval x=\"$x\"
14819 exec_prefix="$acl_save_exec_prefix"
14820 prefix="$acl_save_prefix"
14821
14822 if test "X$x" = "X-L$additional_libdir"; then
14823 haveit=yes
14824 break
14825 fi
14826 done
14827 if test -z "$haveit"; then
14828 if test -d "$additional_libdir"; then
14829 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14830 fi
14831 fi
14832 fi
14833 fi
14834 ;;
14835 -R*)
14836 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14837 if test "$enable_rpath" != no; then
14838 haveit=
14839 for x in $rpathdirs; do
14840 if test "X$x" = "X$dir"; then
14841 haveit=yes
14842 break
14843 fi
14844 done
14845 if test -z "$haveit"; then
14846 rpathdirs="$rpathdirs $dir"
14847 fi
14848 haveit=
14849 for x in $ltrpathdirs; do
14850 if test "X$x" = "X$dir"; then
14851 haveit=yes
14852 break
14853 fi
14854 done
14855 if test -z "$haveit"; then
14856 ltrpathdirs="$ltrpathdirs $dir"
14857 fi
14858 fi
14859 ;;
14860 -l*)
14861 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14862 ;;
14863 *.la)
14864 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14865 ;;
14866 *)
14867 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14868 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14869 ;;
14870 esac
14871 done
14872 fi
14873 else
14874 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14875 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14876 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14877 else
14878 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
14879 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
14880 fi
14881 fi
14882 fi
14883 fi
14884 done
14885 done
14886 if test "X$rpathdirs" != "X"; then
14887 if test -n "$hardcode_libdir_separator"; then
14888 alldirs=
14889 for found_dir in $rpathdirs; do
14890 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14891 done
14892 acl_save_libdir="$libdir"
14893 libdir="$alldirs"
14894 eval flag=\"$hardcode_libdir_flag_spec\"
14895 libdir="$acl_save_libdir"
14896 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14897 else
14898 for found_dir in $rpathdirs; do
14899 acl_save_libdir="$libdir"
14900 libdir="$found_dir"
14901 eval flag=\"$hardcode_libdir_flag_spec\"
14902 libdir="$acl_save_libdir"
14903 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14904 done
14905 fi
14906 fi
14907 if test "X$ltrpathdirs" != "X"; then
14908 for found_dir in $ltrpathdirs; do
14909 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14910 done
14911 fi
14912
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14914 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14915 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14916 $as_echo_n "(cached) " >&6
14917 else
14918 gt_save_CPPFLAGS="$CPPFLAGS"
14919 CPPFLAGS="$CPPFLAGS $INCINTL"
14920 gt_save_LIBS="$LIBS"
14921 LIBS="$LIBS $LIBINTL"
14922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14923 /* end confdefs.h. */
14924
14925 #include <libintl.h>
14926 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14927 extern int _nl_msg_cat_cntr;
14928 extern
14929 #ifdef __cplusplus
14930 "C"
14931 #endif
14932 const char *_nl_expand_alias (const char *);
14933 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14934 #else
14935 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14936 #endif
14937 $gt_revision_test_code
14938
14939 int
14940 main ()
14941 {
14942
14943 bindtextdomain ("", "");
14944 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14945
14946 ;
14947 return 0;
14948 }
14949 _ACEOF
14950 if ac_fn_c_try_link "$LINENO"; then :
14951 eval "$gt_func_gnugettext_libintl=yes"
14952 else
14953 eval "$gt_func_gnugettext_libintl=no"
14954 fi
14955 rm -f core conftest.err conftest.$ac_objext \
14956 conftest$ac_exeext conftest.$ac_ext
14957 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14958 LIBS="$LIBS $LIBICONV"
14959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960 /* end confdefs.h. */
14961
14962 #include <libintl.h>
14963 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14964 extern int _nl_msg_cat_cntr;
14965 extern
14966 #ifdef __cplusplus
14967 "C"
14968 #endif
14969 const char *_nl_expand_alias (const char *);
14970 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14971 #else
14972 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14973 #endif
14974 $gt_revision_test_code
14975
14976 int
14977 main ()
14978 {
14979
14980 bindtextdomain ("", "");
14981 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14982
14983 ;
14984 return 0;
14985 }
14986 _ACEOF
14987 if ac_fn_c_try_link "$LINENO"; then :
14988 LIBINTL="$LIBINTL $LIBICONV"
14989 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14990 eval "$gt_func_gnugettext_libintl=yes"
14991
14992 fi
14993 rm -f core conftest.err conftest.$ac_objext \
14994 conftest$ac_exeext conftest.$ac_ext
14995 fi
14996 CPPFLAGS="$gt_save_CPPFLAGS"
14997 LIBS="$gt_save_LIBS"
14998 fi
14999 eval ac_res=\$$gt_func_gnugettext_libintl
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15001 $as_echo "$ac_res" >&6; }
15002 fi
15003
15004 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15005 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15006 && test "$PACKAGE" != gettext-runtime \
15007 && test "$PACKAGE" != gettext-tools; }; then
15008 gt_use_preinstalled_gnugettext=yes
15009 else
15010 LIBINTL=
15011 LTLIBINTL=
15012 INCINTL=
15013 fi
15014
15015
15016
15017 if test -n "$INTL_MACOSX_LIBS"; then
15018 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15019 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15020 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15021 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15022 fi
15023 fi
15024
15025 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15026 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15027
15028 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15029
15030 else
15031 USE_NLS=no
15032 fi
15033 fi
15034
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15036 $as_echo_n "checking whether to use NLS... " >&6; }
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15038 $as_echo "$USE_NLS" >&6; }
15039 if test "$USE_NLS" = "yes"; then
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15041 $as_echo_n "checking where the gettext function comes from... " >&6; }
15042 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15043 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15044 gt_source="external libintl"
15045 else
15046 gt_source="libc"
15047 fi
15048 else
15049 gt_source="included intl directory"
15050 fi
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15052 $as_echo "$gt_source" >&6; }
15053 fi
15054
15055 if test "$USE_NLS" = "yes"; then
15056
15057 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15058 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15060 $as_echo_n "checking how to link with libintl... " >&6; }
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15062 $as_echo "$LIBINTL" >&6; }
15063
15064 for element in $INCINTL; do
15065 haveit=
15066 for x in $CPPFLAGS; do
15067
15068 acl_save_prefix="$prefix"
15069 prefix="$acl_final_prefix"
15070 acl_save_exec_prefix="$exec_prefix"
15071 exec_prefix="$acl_final_exec_prefix"
15072 eval x=\"$x\"
15073 exec_prefix="$acl_save_exec_prefix"
15074 prefix="$acl_save_prefix"
15075
15076 if test "X$x" = "X$element"; then
15077 haveit=yes
15078 break
15079 fi
15080 done
15081 if test -z "$haveit"; then
15082 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15083 fi
15084 done
15085
15086 fi
15087
15088
15089 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15090
15091
15092 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15093
15094 fi
15095
15096 POSUB=po
15097 fi
15098
15099
15100
15101 INTLLIBS="$LIBINTL"
15102
15103
15104
15105
15106
15107
15108 fi
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15121 $as_echo_n "checking whether NLS is requested... " >&6; }
15122 if test x"$USE_NLS" != xyes; then
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15124 $as_echo "no" >&6; }
15125 else
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15127 $as_echo "yes" >&6; }
15128
15129 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15130
15131
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15133 $as_echo_n "checking for catalogs to be installed... " >&6; }
15134 # Look for .po and .gmo files in the source directory.
15135 CATALOGS=
15136 XLINGUAS=
15137 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15138 # If there aren't any .gmo files the shell will give us the
15139 # literal string "../path/to/srcdir/po/*.gmo" which has to be
15140 # weeded out.
15141 case "$cat" in *\**)
15142 continue;;
15143 esac
15144 # The quadruple backslash is collapsed to a double backslash
15145 # by the backticks, then collapsed again by the double quotes,
15146 # leaving us with one backslash in the sed expression (right
15147 # before the dot that mustn't act as a wildcard).
15148 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15149 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
15150 # The user is allowed to set LINGUAS to a list of languages to
15151 # install catalogs for. If it's empty that means "all of them."
15152 if test "x$LINGUAS" = x; then
15153 CATALOGS="$CATALOGS $cat"
15154 XLINGUAS="$XLINGUAS $lang"
15155 else
15156 case "$LINGUAS" in *$lang*)
15157 CATALOGS="$CATALOGS $cat"
15158 XLINGUAS="$XLINGUAS $lang"
15159 ;;
15160 esac
15161 fi
15162 done
15163 LINGUAS="$XLINGUAS"
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15165 $as_echo "$LINGUAS" >&6; }
15166
15167
15168 DATADIRNAME=share
15169
15170 INSTOBJEXT=.mo
15171
15172 GENCAT=gencat
15173
15174 CATOBJEXT=.gmo
15175
15176 fi
15177
15178
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15180 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15181 # Check whether --enable-maintainer-mode was given.
15182 if test "${enable_maintainer_mode+set}" = set; then :
15183 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15184 else
15185 USE_MAINTAINER_MODE=no
15186 fi
15187
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15189 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15190 if test $USE_MAINTAINER_MODE = yes; then
15191 MAINTAINER_MODE_TRUE=
15192 MAINTAINER_MODE_FALSE='#'
15193 else
15194 MAINTAINER_MODE_TRUE='#'
15195 MAINTAINER_MODE_FALSE=
15196 fi
15197
15198 MAINT=$MAINTAINER_MODE_TRUE
15199
15200
15201 if false; then
15202 GENINSRC_NEVER_TRUE=
15203 GENINSRC_NEVER_FALSE='#'
15204 else
15205 GENINSRC_NEVER_TRUE='#'
15206 GENINSRC_NEVER_FALSE=
15207 fi
15208
15209
15210
15211 for ac_header in memory.h sys/stat.h sys/types.h unistd.h
15212 do :
15213 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15214 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15215 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15216 cat >>confdefs.h <<_ACEOF
15217 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15218 _ACEOF
15219
15220 fi
15221
15222 done
15223
15224
15225 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
15226 # people who are not cross-compiling but are compiling cross-assemblers.
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
15228 $as_echo_n "checking whether compiling a cross-assembler... " >&6; }
15229 if test "${host}" = "${target}"; then
15230 cross_gas=no
15231 else
15232 cross_gas=yes
15233
15234 $as_echo "#define CROSS_COMPILE 1" >>confdefs.h
15235
15236 fi
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
15238 $as_echo "$cross_gas" >&6; }
15239
15240 for ac_func in strsignal
15241 do :
15242 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
15243 if test "x$ac_cv_func_strsignal" = xyes; then :
15244 cat >>confdefs.h <<_ACEOF
15245 #define HAVE_STRSIGNAL 1
15246 _ACEOF
15247
15248 fi
15249 done
15250
15251
15252
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15254 $as_echo_n "checking for LC_MESSAGES... " >&6; }
15255 if ${am_cv_val_LC_MESSAGES+:} false; then :
15256 $as_echo_n "(cached) " >&6
15257 else
15258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15259 /* end confdefs.h. */
15260 #include <locale.h>
15261 int
15262 main ()
15263 {
15264 return LC_MESSAGES
15265 ;
15266 return 0;
15267 }
15268 _ACEOF
15269 if ac_fn_c_try_link "$LINENO"; then :
15270 am_cv_val_LC_MESSAGES=yes
15271 else
15272 am_cv_val_LC_MESSAGES=no
15273 fi
15274 rm -f core conftest.err conftest.$ac_objext \
15275 conftest$ac_exeext conftest.$ac_ext
15276 fi
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15278 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15279 if test $am_cv_val_LC_MESSAGES = yes; then
15280
15281 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
15282
15283 fi
15284
15285
15286 # do we need the math library?
15287 case "${need_libm}" in
15288 yes)
15289 LIBM=
15290 case $host in
15291 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
15292 # These system don't have libm, or don't need it
15293 ;;
15294 *-ncr-sysv4.3*)
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
15296 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
15297 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
15298 $as_echo_n "(cached) " >&6
15299 else
15300 ac_check_lib_save_LIBS=$LIBS
15301 LIBS="-lmw $LIBS"
15302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15303 /* end confdefs.h. */
15304
15305 /* Override any GCC internal prototype to avoid an error.
15306 Use char because int might match the return type of a GCC
15307 builtin and then its argument prototype would still apply. */
15308 #ifdef __cplusplus
15309 extern "C"
15310 #endif
15311 char _mwvalidcheckl ();
15312 int
15313 main ()
15314 {
15315 return _mwvalidcheckl ();
15316 ;
15317 return 0;
15318 }
15319 _ACEOF
15320 if ac_fn_c_try_link "$LINENO"; then :
15321 ac_cv_lib_mw__mwvalidcheckl=yes
15322 else
15323 ac_cv_lib_mw__mwvalidcheckl=no
15324 fi
15325 rm -f core conftest.err conftest.$ac_objext \
15326 conftest$ac_exeext conftest.$ac_ext
15327 LIBS=$ac_check_lib_save_LIBS
15328 fi
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
15330 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
15331 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
15332 LIBM="-lmw"
15333 fi
15334
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
15336 $as_echo_n "checking for cos in -lm... " >&6; }
15337 if ${ac_cv_lib_m_cos+:} false; then :
15338 $as_echo_n "(cached) " >&6
15339 else
15340 ac_check_lib_save_LIBS=$LIBS
15341 LIBS="-lm $LIBS"
15342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15343 /* end confdefs.h. */
15344
15345 /* Override any GCC internal prototype to avoid an error.
15346 Use char because int might match the return type of a GCC
15347 builtin and then its argument prototype would still apply. */
15348 #ifdef __cplusplus
15349 extern "C"
15350 #endif
15351 char cos ();
15352 int
15353 main ()
15354 {
15355 return cos ();
15356 ;
15357 return 0;
15358 }
15359 _ACEOF
15360 if ac_fn_c_try_link "$LINENO"; then :
15361 ac_cv_lib_m_cos=yes
15362 else
15363 ac_cv_lib_m_cos=no
15364 fi
15365 rm -f core conftest.err conftest.$ac_objext \
15366 conftest$ac_exeext conftest.$ac_ext
15367 LIBS=$ac_check_lib_save_LIBS
15368 fi
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
15370 $as_echo "$ac_cv_lib_m_cos" >&6; }
15371 if test "x$ac_cv_lib_m_cos" = xyes; then :
15372 LIBM="$LIBM -lm"
15373 fi
15374
15375 ;;
15376 *)
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
15378 $as_echo_n "checking for cos in -lm... " >&6; }
15379 if ${ac_cv_lib_m_cos+:} false; then :
15380 $as_echo_n "(cached) " >&6
15381 else
15382 ac_check_lib_save_LIBS=$LIBS
15383 LIBS="-lm $LIBS"
15384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15385 /* end confdefs.h. */
15386
15387 /* Override any GCC internal prototype to avoid an error.
15388 Use char because int might match the return type of a GCC
15389 builtin and then its argument prototype would still apply. */
15390 #ifdef __cplusplus
15391 extern "C"
15392 #endif
15393 char cos ();
15394 int
15395 main ()
15396 {
15397 return cos ();
15398 ;
15399 return 0;
15400 }
15401 _ACEOF
15402 if ac_fn_c_try_link "$LINENO"; then :
15403 ac_cv_lib_m_cos=yes
15404 else
15405 ac_cv_lib_m_cos=no
15406 fi
15407 rm -f core conftest.err conftest.$ac_objext \
15408 conftest$ac_exeext conftest.$ac_ext
15409 LIBS=$ac_check_lib_save_LIBS
15410 fi
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
15412 $as_echo "$ac_cv_lib_m_cos" >&6; }
15413 if test "x$ac_cv_lib_m_cos" = xyes; then :
15414 LIBM="-lm"
15415 fi
15416
15417 ;;
15418 esac
15419
15420
15421
15422 ;;
15423 esac
15424
15425 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
15426 # enough, but on some of those systems, the assert macro relies on requoting
15427 # working properly!
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
15429 $as_echo_n "checking for working assert macro... " >&6; }
15430 if ${gas_cv_assert_ok+:} false; then :
15431 $as_echo_n "(cached) " >&6
15432 else
15433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15434 /* end confdefs.h. */
15435 #include <assert.h>
15436 #include <string.h>
15437 #include <stdio.h>
15438 int
15439 main ()
15440 {
15441
15442 /* check for requoting problems */
15443 static int a, b, c, d;
15444 static char *s;
15445 assert (!strcmp(s, "foo bar baz quux"));
15446 /* check for newline handling */
15447 assert (a == b
15448 || c == d);
15449
15450 ;
15451 return 0;
15452 }
15453 _ACEOF
15454 if ac_fn_c_try_link "$LINENO"; then :
15455 gas_cv_assert_ok=yes
15456 else
15457 gas_cv_assert_ok=no
15458 fi
15459 rm -f core conftest.err conftest.$ac_objext \
15460 conftest$ac_exeext conftest.$ac_ext
15461 fi
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
15463 $as_echo "$gas_cv_assert_ok" >&6; }
15464 test $gas_cv_assert_ok = yes ||
15465 $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
15466
15467
15468
15469 # On some systems, the system header files may not declare malloc, realloc,
15470 # and free. There are places where gas needs these functions to have been
15471 # declared -- such as when taking their addresses.
15472 gas_test_headers="
15473 #ifdef HAVE_MEMORY_H
15474 #include <memory.h>
15475 #endif
15476 #include <string.h>
15477 #include <stdlib.h>
15478 #ifdef HAVE_UNISTD_H
15479 #include <unistd.h>
15480 #endif
15481 "
15482
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
15484 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
15485 if ${gas_cv_decl_getopt_unistd_h+:} false; then :
15486 $as_echo_n "(cached) " >&6
15487 else
15488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489 /* end confdefs.h. */
15490 #include <unistd.h>
15491 int
15492 main ()
15493 {
15494 extern int getopt (int, char *const*, const char *);
15495 ;
15496 return 0;
15497 }
15498 _ACEOF
15499 if ac_fn_c_try_compile "$LINENO"; then :
15500 gas_cv_decl_getopt_unistd_h=yes
15501 else
15502 gas_cv_decl_getopt_unistd_h=no
15503 fi
15504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15505 fi
15506
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
15508 $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
15509 if test $gas_cv_decl_getopt_unistd_h = yes; then
15510
15511 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
15512
15513 fi
15514
15515
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
15517 $as_echo_n "checking whether declaration is required for environ... " >&6; }
15518 if ${gas_cv_decl_needed_environ+:} false; then :
15519 $as_echo_n "(cached) " >&6
15520 else
15521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15522 /* end confdefs.h. */
15523 $gas_test_headers
15524 int
15525 main ()
15526 {
15527
15528 typedef char **f;
15529 f x;
15530 x = (f) environ;
15531
15532 ;
15533 return 0;
15534 }
15535 _ACEOF
15536 if ac_fn_c_try_link "$LINENO"; then :
15537 gas_cv_decl_needed_environ=no
15538 else
15539 gas_cv_decl_needed_environ=yes
15540 fi
15541 rm -f core conftest.err conftest.$ac_objext \
15542 conftest$ac_exeext conftest.$ac_ext
15543 fi
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
15545 $as_echo "$gas_cv_decl_needed_environ" >&6; }
15546 if test $gas_cv_decl_needed_environ = yes; then
15547
15548 $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
15549
15550 fi
15551
15552
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
15554 $as_echo_n "checking whether declaration is required for ffs... " >&6; }
15555 if ${gas_cv_decl_needed_ffs+:} false; then :
15556 $as_echo_n "(cached) " >&6
15557 else
15558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15559 /* end confdefs.h. */
15560 $gas_test_headers
15561 int
15562 main ()
15563 {
15564
15565 typedef int (*f)(int);
15566 f x;
15567 x = (f) ffs;
15568
15569 ;
15570 return 0;
15571 }
15572 _ACEOF
15573 if ac_fn_c_try_link "$LINENO"; then :
15574 gas_cv_decl_needed_ffs=no
15575 else
15576 gas_cv_decl_needed_ffs=yes
15577 fi
15578 rm -f core conftest.err conftest.$ac_objext \
15579 conftest$ac_exeext conftest.$ac_ext
15580 fi
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
15582 $as_echo "$gas_cv_decl_needed_ffs" >&6; }
15583 if test $gas_cv_decl_needed_ffs = yes; then
15584
15585 $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
15586
15587 fi
15588
15589
15590 ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
15591 if test "x$ac_cv_have_decl_mempcpy" = xyes; then :
15592 ac_have_decl=1
15593 else
15594 ac_have_decl=0
15595 fi
15596
15597 cat >>confdefs.h <<_ACEOF
15598 #define HAVE_DECL_MEMPCPY $ac_have_decl
15599 _ACEOF
15600 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
15601 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
15602 ac_have_decl=1
15603 else
15604 ac_have_decl=0
15605 fi
15606
15607 cat >>confdefs.h <<_ACEOF
15608 #define HAVE_DECL_STPCPY $ac_have_decl
15609 _ACEOF
15610
15611
15612
15613 case "${host}" in
15614 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
15615
15616 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
15617 ;;
15618 esac
15619
15620 # Link in zlib/zstd if we can. This allows us to write compressed debug sections.
15621
15622 # Use the system's zlib library.
15623 zlibdir="-L\$(top_builddir)/../zlib"
15624 zlibinc="-I\$(top_srcdir)/../zlib"
15625
15626 # Check whether --with-system-zlib was given.
15627 if test "${with_system_zlib+set}" = set; then :
15628 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
15629 zlibdir=
15630 zlibinc=
15631 fi
15632
15633 fi
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15646 if test -n "$ac_tool_prefix"; then
15647 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15648 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15650 $as_echo_n "checking for $ac_word... " >&6; }
15651 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15652 $as_echo_n "(cached) " >&6
15653 else
15654 case $PKG_CONFIG in
15655 [\\/]* | ?:[\\/]*)
15656 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15657 ;;
15658 *)
15659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15660 for as_dir in $PATH
15661 do
15662 IFS=$as_save_IFS
15663 test -z "$as_dir" && as_dir=.
15664 for ac_exec_ext in '' $ac_executable_extensions; do
15665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15666 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15668 break 2
15669 fi
15670 done
15671 done
15672 IFS=$as_save_IFS
15673
15674 ;;
15675 esac
15676 fi
15677 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15678 if test -n "$PKG_CONFIG"; then
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15680 $as_echo "$PKG_CONFIG" >&6; }
15681 else
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15683 $as_echo "no" >&6; }
15684 fi
15685
15686
15687 fi
15688 if test -z "$ac_cv_path_PKG_CONFIG"; then
15689 ac_pt_PKG_CONFIG=$PKG_CONFIG
15690 # Extract the first word of "pkg-config", so it can be a program name with args.
15691 set dummy pkg-config; ac_word=$2
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15693 $as_echo_n "checking for $ac_word... " >&6; }
15694 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15695 $as_echo_n "(cached) " >&6
15696 else
15697 case $ac_pt_PKG_CONFIG in
15698 [\\/]* | ?:[\\/]*)
15699 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15700 ;;
15701 *)
15702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15703 for as_dir in $PATH
15704 do
15705 IFS=$as_save_IFS
15706 test -z "$as_dir" && as_dir=.
15707 for ac_exec_ext in '' $ac_executable_extensions; do
15708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15709 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15711 break 2
15712 fi
15713 done
15714 done
15715 IFS=$as_save_IFS
15716
15717 ;;
15718 esac
15719 fi
15720 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15721 if test -n "$ac_pt_PKG_CONFIG"; then
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15723 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15724 else
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15726 $as_echo "no" >&6; }
15727 fi
15728
15729 if test "x$ac_pt_PKG_CONFIG" = x; then
15730 PKG_CONFIG=""
15731 else
15732 case $cross_compiling:$ac_tool_warned in
15733 yes:)
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15736 ac_tool_warned=yes ;;
15737 esac
15738 PKG_CONFIG=$ac_pt_PKG_CONFIG
15739 fi
15740 else
15741 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15742 fi
15743
15744 fi
15745 if test -n "$PKG_CONFIG"; then
15746 _pkg_min_version=0.9.0
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15748 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15749 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15751 $as_echo "yes" >&6; }
15752 else
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15754 $as_echo "no" >&6; }
15755 PKG_CONFIG=""
15756 fi
15757 fi
15758
15759
15760 # Check whether --with-zstd was given.
15761 if test "${with_zstd+set}" = set; then :
15762 withval=$with_zstd;
15763 else
15764 with_zstd=auto
15765 fi
15766
15767
15768 if test "$with_zstd" != no; then :
15769
15770 pkg_failed=no
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
15772 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
15773
15774 if test -n "$ZSTD_CFLAGS"; then
15775 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
15776 elif test -n "$PKG_CONFIG"; then
15777 if test -n "$PKG_CONFIG" && \
15778 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
15779 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
15780 ac_status=$?
15781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15782 test $ac_status = 0; }; then
15783 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
15784 test "x$?" != "x0" && pkg_failed=yes
15785 else
15786 pkg_failed=yes
15787 fi
15788 else
15789 pkg_failed=untried
15790 fi
15791 if test -n "$ZSTD_LIBS"; then
15792 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
15793 elif test -n "$PKG_CONFIG"; then
15794 if test -n "$PKG_CONFIG" && \
15795 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
15796 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
15797 ac_status=$?
15798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15799 test $ac_status = 0; }; then
15800 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
15801 test "x$?" != "x0" && pkg_failed=yes
15802 else
15803 pkg_failed=yes
15804 fi
15805 else
15806 pkg_failed=untried
15807 fi
15808
15809 if test $pkg_failed = no; then
15810 pkg_save_LDFLAGS="$LDFLAGS"
15811 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
15812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15813 /* end confdefs.h. */
15814
15815 int
15816 main ()
15817 {
15818
15819 ;
15820 return 0;
15821 }
15822 _ACEOF
15823 if ac_fn_c_try_link "$LINENO"; then :
15824
15825 else
15826 pkg_failed=yes
15827 fi
15828 rm -f core conftest.err conftest.$ac_objext \
15829 conftest$ac_exeext conftest.$ac_ext
15830 LDFLAGS=$pkg_save_LDFLAGS
15831 fi
15832
15833
15834
15835 if test $pkg_failed = yes; then
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15837 $as_echo "no" >&6; }
15838
15839 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15840 _pkg_short_errors_supported=yes
15841 else
15842 _pkg_short_errors_supported=no
15843 fi
15844 if test $_pkg_short_errors_supported = yes; then
15845 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
15846 else
15847 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
15848 fi
15849 # Put the nasty error message in config.log where it belongs
15850 echo "$ZSTD_PKG_ERRORS" >&5
15851
15852
15853 if test "$with_zstd" = yes; then
15854 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
15855 fi
15856
15857 elif test $pkg_failed = untried; then
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15859 $as_echo "no" >&6; }
15860
15861 if test "$with_zstd" = yes; then
15862 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
15863 fi
15864
15865 else
15866 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
15867 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15869 $as_echo "yes" >&6; }
15870
15871
15872 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
15873
15874
15875 fi
15876
15877 fi
15878
15879
15880 # Support for VMS timestamps via cross compile
15881
15882 if test "$ac_cv_header_time_h" = yes; then
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
15884 $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
15885 if ${gas_cv_have_time_type_member_tm_gmtoff+:} false; then :
15886 $as_echo_n "(cached) " >&6
15887 else
15888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15889 /* end confdefs.h. */
15890
15891 #define _BSD_SOURCE 1
15892 #include <time.h>
15893 int
15894 main ()
15895 {
15896 struct tm avar; void* aref = (void*) &avar.tm_gmtoff
15897 ;
15898 return 0;
15899 }
15900 _ACEOF
15901 if ac_fn_c_try_compile "$LINENO"; then :
15902 gas_cv_have_time_type_member_tm_gmtoff=yes
15903 else
15904 gas_cv_have_time_type_member_tm_gmtoff=no
15905
15906 fi
15907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15908 fi
15909
15910 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
15911
15912 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
15913
15914 fi
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
15916 $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
15917
15918 fi
15919
15920 if test "$ac_cv_header_sys_stat_h" = yes; then
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
15922 $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
15923 if ${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+:} false; then :
15924 $as_echo_n "(cached) " >&6
15925 else
15926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15927 /* end confdefs.h. */
15928
15929 #define _BSD_SOURCE 1
15930 #include <sys/stat.h>
15931 int
15932 main ()
15933 {
15934 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
15935 ;
15936 return 0;
15937 }
15938 _ACEOF
15939 if ac_fn_c_try_compile "$LINENO"; then :
15940 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
15941 else
15942 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
15943
15944 fi
15945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15946 fi
15947
15948 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
15949
15950 $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
15951
15952 fi
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
15954 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
15955
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
15957 $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
15958 if ${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+:} false; then :
15959 $as_echo_n "(cached) " >&6
15960 else
15961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15962 /* end confdefs.h. */
15963
15964 #define _BSD_SOURCE 1
15965 #include <sys/stat.h>
15966 int
15967 main ()
15968 {
15969 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
15970 ;
15971 return 0;
15972 }
15973 _ACEOF
15974 if ac_fn_c_try_compile "$LINENO"; then :
15975 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
15976 else
15977 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
15978
15979 fi
15980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15981 fi
15982
15983 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
15984
15985 $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
15986
15987 fi
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
15989 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
15990
15991 fi
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
16002
16003 ac_config_commands="$ac_config_commands default"
16004
16005
16006 cat >confcache <<\_ACEOF
16007 # This file is a shell script that caches the results of configure
16008 # tests run on this system so they can be shared between configure
16009 # scripts and configure runs, see configure's option --config-cache.
16010 # It is not useful on other systems. If it contains results you don't
16011 # want to keep, you may remove or edit it.
16012 #
16013 # config.status only pays attention to the cache file if you give it
16014 # the --recheck option to rerun configure.
16015 #
16016 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16017 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16018 # following values.
16019
16020 _ACEOF
16021
16022 # The following way of writing the cache mishandles newlines in values,
16023 # but we know of no workaround that is simple, portable, and efficient.
16024 # So, we kill variables containing newlines.
16025 # Ultrix sh set writes to stderr and can't be redirected directly,
16026 # and sets the high bit in the cache file unless we assign to the vars.
16027 (
16028 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16029 eval ac_val=\$$ac_var
16030 case $ac_val in #(
16031 *${as_nl}*)
16032 case $ac_var in #(
16033 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16034 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16035 esac
16036 case $ac_var in #(
16037 _ | IFS | as_nl) ;; #(
16038 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16039 *) { eval $ac_var=; unset $ac_var;} ;;
16040 esac ;;
16041 esac
16042 done
16043
16044 (set) 2>&1 |
16045 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16046 *${as_nl}ac_space=\ *)
16047 # `set' does not quote correctly, so add quotes: double-quote
16048 # substitution turns \\\\ into \\, and sed turns \\ into \.
16049 sed -n \
16050 "s/'/'\\\\''/g;
16051 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16052 ;; #(
16053 *)
16054 # `set' quotes correctly as required by POSIX, so do not add quotes.
16055 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16056 ;;
16057 esac |
16058 sort
16059 ) |
16060 sed '
16061 /^ac_cv_env_/b end
16062 t clear
16063 :clear
16064 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16065 t end
16066 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16067 :end' >>confcache
16068 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16069 if test -w "$cache_file"; then
16070 if test "x$cache_file" != "x/dev/null"; then
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16072 $as_echo "$as_me: updating cache $cache_file" >&6;}
16073 if test ! -f "$cache_file" || test -h "$cache_file"; then
16074 cat confcache >"$cache_file"
16075 else
16076 case $cache_file in #(
16077 */* | ?:*)
16078 mv -f confcache "$cache_file"$$ &&
16079 mv -f "$cache_file"$$ "$cache_file" ;; #(
16080 *)
16081 mv -f confcache "$cache_file" ;;
16082 esac
16083 fi
16084 fi
16085 else
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16087 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16088 fi
16089 fi
16090 rm -f confcache
16091
16092 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16093 # Let make expand exec_prefix.
16094 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16095
16096 DEFS=-DHAVE_CONFIG_H
16097
16098 ac_libobjs=
16099 ac_ltlibobjs=
16100 U=
16101 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16102 # 1. Remove the extension, and $U if already installed.
16103 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16104 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16105 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16106 # will be set to the directory where LIBOBJS objects are built.
16107 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16108 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16109 done
16110 LIBOBJS=$ac_libobjs
16111
16112 LTLIBOBJS=$ac_ltlibobjs
16113
16114
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16116 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16117 if test -n "$am_sleep_pid"; then
16118 # Hide warnings about reused PIDs.
16119 wait $am_sleep_pid 2>/dev/null
16120 fi
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16122 $as_echo "done" >&6; }
16123 if test -n "$EXEEXT"; then
16124 am__EXEEXT_TRUE=
16125 am__EXEEXT_FALSE='#'
16126 else
16127 am__EXEEXT_TRUE='#'
16128 am__EXEEXT_FALSE=
16129 fi
16130
16131 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16132 as_fn_error $? "conditional \"AMDEP\" was never defined.
16133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16134 fi
16135 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16136 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16138 fi
16139
16140 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16141 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16143 fi
16144 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
16145 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
16146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16147 fi
16148
16149 : "${CONFIG_STATUS=./config.status}"
16150 ac_write_fail=0
16151 ac_clean_files_save=$ac_clean_files
16152 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16154 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16155 as_write_fail=0
16156 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16157 #! $SHELL
16158 # Generated by $as_me.
16159 # Run this file to recreate the current configuration.
16160 # Compiler output produced by configure, useful for debugging
16161 # configure, is in config.log if it exists.
16162
16163 debug=false
16164 ac_cs_recheck=false
16165 ac_cs_silent=false
16166
16167 SHELL=\${CONFIG_SHELL-$SHELL}
16168 export SHELL
16169 _ASEOF
16170 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16171 ## -------------------- ##
16172 ## M4sh Initialization. ##
16173 ## -------------------- ##
16174
16175 # Be more Bourne compatible
16176 DUALCASE=1; export DUALCASE # for MKS sh
16177 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16178 emulate sh
16179 NULLCMD=:
16180 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16181 # is contrary to our usage. Disable this feature.
16182 alias -g '${1+"$@"}'='"$@"'
16183 setopt NO_GLOB_SUBST
16184 else
16185 case `(set -o) 2>/dev/null` in #(
16186 *posix*) :
16187 set -o posix ;; #(
16188 *) :
16189 ;;
16190 esac
16191 fi
16192
16193
16194 as_nl='
16195 '
16196 export as_nl
16197 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16198 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16199 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16200 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16201 # Prefer a ksh shell builtin over an external printf program on Solaris,
16202 # but without wasting forks for bash or zsh.
16203 if test -z "$BASH_VERSION$ZSH_VERSION" \
16204 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16205 as_echo='print -r --'
16206 as_echo_n='print -rn --'
16207 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16208 as_echo='printf %s\n'
16209 as_echo_n='printf %s'
16210 else
16211 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16212 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16213 as_echo_n='/usr/ucb/echo -n'
16214 else
16215 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16216 as_echo_n_body='eval
16217 arg=$1;
16218 case $arg in #(
16219 *"$as_nl"*)
16220 expr "X$arg" : "X\\(.*\\)$as_nl";
16221 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16222 esac;
16223 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16224 '
16225 export as_echo_n_body
16226 as_echo_n='sh -c $as_echo_n_body as_echo'
16227 fi
16228 export as_echo_body
16229 as_echo='sh -c $as_echo_body as_echo'
16230 fi
16231
16232 # The user is always right.
16233 if test "${PATH_SEPARATOR+set}" != set; then
16234 PATH_SEPARATOR=:
16235 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16236 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16237 PATH_SEPARATOR=';'
16238 }
16239 fi
16240
16241
16242 # IFS
16243 # We need space, tab and new line, in precisely that order. Quoting is
16244 # there to prevent editors from complaining about space-tab.
16245 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16246 # splitting by setting IFS to empty value.)
16247 IFS=" "" $as_nl"
16248
16249 # Find who we are. Look in the path if we contain no directory separator.
16250 as_myself=
16251 case $0 in #((
16252 *[\\/]* ) as_myself=$0 ;;
16253 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16254 for as_dir in $PATH
16255 do
16256 IFS=$as_save_IFS
16257 test -z "$as_dir" && as_dir=.
16258 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16259 done
16260 IFS=$as_save_IFS
16261
16262 ;;
16263 esac
16264 # We did not find ourselves, most probably we were run as `sh COMMAND'
16265 # in which case we are not to be found in the path.
16266 if test "x$as_myself" = x; then
16267 as_myself=$0
16268 fi
16269 if test ! -f "$as_myself"; then
16270 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16271 exit 1
16272 fi
16273
16274 # Unset variables that we do not need and which cause bugs (e.g. in
16275 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16276 # suppresses any "Segmentation fault" message there. '((' could
16277 # trigger a bug in pdksh 5.2.14.
16278 for as_var in BASH_ENV ENV MAIL MAILPATH
16279 do eval test x\${$as_var+set} = xset \
16280 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16281 done
16282 PS1='$ '
16283 PS2='> '
16284 PS4='+ '
16285
16286 # NLS nuisances.
16287 LC_ALL=C
16288 export LC_ALL
16289 LANGUAGE=C
16290 export LANGUAGE
16291
16292 # CDPATH.
16293 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16294
16295
16296 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16297 # ----------------------------------------
16298 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16299 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16300 # script with STATUS, using 1 if that was 0.
16301 as_fn_error ()
16302 {
16303 as_status=$1; test $as_status -eq 0 && as_status=1
16304 if test "$4"; then
16305 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16306 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16307 fi
16308 $as_echo "$as_me: error: $2" >&2
16309 as_fn_exit $as_status
16310 } # as_fn_error
16311
16312
16313 # as_fn_set_status STATUS
16314 # -----------------------
16315 # Set $? to STATUS, without forking.
16316 as_fn_set_status ()
16317 {
16318 return $1
16319 } # as_fn_set_status
16320
16321 # as_fn_exit STATUS
16322 # -----------------
16323 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16324 as_fn_exit ()
16325 {
16326 set +e
16327 as_fn_set_status $1
16328 exit $1
16329 } # as_fn_exit
16330
16331 # as_fn_unset VAR
16332 # ---------------
16333 # Portably unset VAR.
16334 as_fn_unset ()
16335 {
16336 { eval $1=; unset $1;}
16337 }
16338 as_unset=as_fn_unset
16339 # as_fn_append VAR VALUE
16340 # ----------------------
16341 # Append the text in VALUE to the end of the definition contained in VAR. Take
16342 # advantage of any shell optimizations that allow amortized linear growth over
16343 # repeated appends, instead of the typical quadratic growth present in naive
16344 # implementations.
16345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16346 eval 'as_fn_append ()
16347 {
16348 eval $1+=\$2
16349 }'
16350 else
16351 as_fn_append ()
16352 {
16353 eval $1=\$$1\$2
16354 }
16355 fi # as_fn_append
16356
16357 # as_fn_arith ARG...
16358 # ------------------
16359 # Perform arithmetic evaluation on the ARGs, and store the result in the
16360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16361 # must be portable across $(()) and expr.
16362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16363 eval 'as_fn_arith ()
16364 {
16365 as_val=$(( $* ))
16366 }'
16367 else
16368 as_fn_arith ()
16369 {
16370 as_val=`expr "$@" || test $? -eq 1`
16371 }
16372 fi # as_fn_arith
16373
16374
16375 if expr a : '\(a\)' >/dev/null 2>&1 &&
16376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16377 as_expr=expr
16378 else
16379 as_expr=false
16380 fi
16381
16382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16383 as_basename=basename
16384 else
16385 as_basename=false
16386 fi
16387
16388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16389 as_dirname=dirname
16390 else
16391 as_dirname=false
16392 fi
16393
16394 as_me=`$as_basename -- "$0" ||
16395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16396 X"$0" : 'X\(//\)$' \| \
16397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16398 $as_echo X/"$0" |
16399 sed '/^.*\/\([^/][^/]*\)\/*$/{
16400 s//\1/
16401 q
16402 }
16403 /^X\/\(\/\/\)$/{
16404 s//\1/
16405 q
16406 }
16407 /^X\/\(\/\).*/{
16408 s//\1/
16409 q
16410 }
16411 s/.*/./; q'`
16412
16413 # Avoid depending upon Character Ranges.
16414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16417 as_cr_digits='0123456789'
16418 as_cr_alnum=$as_cr_Letters$as_cr_digits
16419
16420 ECHO_C= ECHO_N= ECHO_T=
16421 case `echo -n x` in #(((((
16422 -n*)
16423 case `echo 'xy\c'` in
16424 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16425 xy) ECHO_C='\c';;
16426 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16427 ECHO_T=' ';;
16428 esac;;
16429 *)
16430 ECHO_N='-n';;
16431 esac
16432
16433 rm -f conf$$ conf$$.exe conf$$.file
16434 if test -d conf$$.dir; then
16435 rm -f conf$$.dir/conf$$.file
16436 else
16437 rm -f conf$$.dir
16438 mkdir conf$$.dir 2>/dev/null
16439 fi
16440 if (echo >conf$$.file) 2>/dev/null; then
16441 if ln -s conf$$.file conf$$ 2>/dev/null; then
16442 as_ln_s='ln -s'
16443 # ... but there are two gotchas:
16444 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16445 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16446 # In both cases, we have to default to `cp -pR'.
16447 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16448 as_ln_s='cp -pR'
16449 elif ln conf$$.file conf$$ 2>/dev/null; then
16450 as_ln_s=ln
16451 else
16452 as_ln_s='cp -pR'
16453 fi
16454 else
16455 as_ln_s='cp -pR'
16456 fi
16457 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16458 rmdir conf$$.dir 2>/dev/null
16459
16460
16461 # as_fn_mkdir_p
16462 # -------------
16463 # Create "$as_dir" as a directory, including parents if necessary.
16464 as_fn_mkdir_p ()
16465 {
16466
16467 case $as_dir in #(
16468 -*) as_dir=./$as_dir;;
16469 esac
16470 test -d "$as_dir" || eval $as_mkdir_p || {
16471 as_dirs=
16472 while :; do
16473 case $as_dir in #(
16474 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16475 *) as_qdir=$as_dir;;
16476 esac
16477 as_dirs="'$as_qdir' $as_dirs"
16478 as_dir=`$as_dirname -- "$as_dir" ||
16479 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16480 X"$as_dir" : 'X\(//\)[^/]' \| \
16481 X"$as_dir" : 'X\(//\)$' \| \
16482 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16483 $as_echo X"$as_dir" |
16484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16485 s//\1/
16486 q
16487 }
16488 /^X\(\/\/\)[^/].*/{
16489 s//\1/
16490 q
16491 }
16492 /^X\(\/\/\)$/{
16493 s//\1/
16494 q
16495 }
16496 /^X\(\/\).*/{
16497 s//\1/
16498 q
16499 }
16500 s/.*/./; q'`
16501 test -d "$as_dir" && break
16502 done
16503 test -z "$as_dirs" || eval "mkdir $as_dirs"
16504 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16505
16506
16507 } # as_fn_mkdir_p
16508 if mkdir -p . 2>/dev/null; then
16509 as_mkdir_p='mkdir -p "$as_dir"'
16510 else
16511 test -d ./-p && rmdir ./-p
16512 as_mkdir_p=false
16513 fi
16514
16515
16516 # as_fn_executable_p FILE
16517 # -----------------------
16518 # Test if FILE is an executable regular file.
16519 as_fn_executable_p ()
16520 {
16521 test -f "$1" && test -x "$1"
16522 } # as_fn_executable_p
16523 as_test_x='test -x'
16524 as_executable_p=as_fn_executable_p
16525
16526 # Sed expression to map a string onto a valid CPP name.
16527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16528
16529 # Sed expression to map a string onto a valid variable name.
16530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16531
16532
16533 exec 6>&1
16534 ## ----------------------------------- ##
16535 ## Main body of $CONFIG_STATUS script. ##
16536 ## ----------------------------------- ##
16537 _ASEOF
16538 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16539
16540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16541 # Save the log message, to keep $0 and so on meaningful, and to
16542 # report actual input values of CONFIG_FILES etc. instead of their
16543 # values after options handling.
16544 ac_log="
16545 This file was extended by gas $as_me 2.45, which was
16546 generated by GNU Autoconf 2.69. Invocation command line was
16547
16548 CONFIG_FILES = $CONFIG_FILES
16549 CONFIG_HEADERS = $CONFIG_HEADERS
16550 CONFIG_LINKS = $CONFIG_LINKS
16551 CONFIG_COMMANDS = $CONFIG_COMMANDS
16552 $ $0 $@
16553
16554 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16555 "
16556
16557 _ACEOF
16558
16559 case $ac_config_files in *"
16560 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16561 esac
16562
16563 case $ac_config_headers in *"
16564 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16565 esac
16566
16567
16568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16569 # Files that config.status was made for.
16570 config_files="$ac_config_files"
16571 config_headers="$ac_config_headers"
16572 config_commands="$ac_config_commands"
16573
16574 _ACEOF
16575
16576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16577 ac_cs_usage="\
16578 \`$as_me' instantiates files and other configuration actions
16579 from templates according to the current configuration. Unless the files
16580 and actions are specified as TAGs, all are instantiated by default.
16581
16582 Usage: $0 [OPTION]... [TAG]...
16583
16584 -h, --help print this help, then exit
16585 -V, --version print version number and configuration settings, then exit
16586 --config print configuration, then exit
16587 -q, --quiet, --silent
16588 do not print progress messages
16589 -d, --debug don't remove temporary files
16590 --recheck update $as_me by reconfiguring in the same conditions
16591 --file=FILE[:TEMPLATE]
16592 instantiate the configuration file FILE
16593 --header=FILE[:TEMPLATE]
16594 instantiate the configuration header FILE
16595
16596 Configuration files:
16597 $config_files
16598
16599 Configuration headers:
16600 $config_headers
16601
16602 Configuration commands:
16603 $config_commands
16604
16605 Report bugs to the package provider."
16606
16607 _ACEOF
16608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16609 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16610 ac_cs_version="\\
16611 gas config.status 2.45
16612 configured by $0, generated by GNU Autoconf 2.69,
16613 with options \\"\$ac_cs_config\\"
16614
16615 Copyright (C) 2012 Free Software Foundation, Inc.
16616 This config.status script is free software; the Free Software Foundation
16617 gives unlimited permission to copy, distribute and modify it."
16618
16619 ac_pwd='$ac_pwd'
16620 srcdir='$srcdir'
16621 INSTALL='$INSTALL'
16622 MKDIR_P='$MKDIR_P'
16623 AWK='$AWK'
16624 test -n "\$AWK" || AWK=awk
16625 _ACEOF
16626
16627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16628 # The default lists apply if the user does not specify any file.
16629 ac_need_defaults=:
16630 while test $# != 0
16631 do
16632 case $1 in
16633 --*=?*)
16634 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16635 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16636 ac_shift=:
16637 ;;
16638 --*=)
16639 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16640 ac_optarg=
16641 ac_shift=:
16642 ;;
16643 *)
16644 ac_option=$1
16645 ac_optarg=$2
16646 ac_shift=shift
16647 ;;
16648 esac
16649
16650 case $ac_option in
16651 # Handling of the options.
16652 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16653 ac_cs_recheck=: ;;
16654 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16655 $as_echo "$ac_cs_version"; exit ;;
16656 --config | --confi | --conf | --con | --co | --c )
16657 $as_echo "$ac_cs_config"; exit ;;
16658 --debug | --debu | --deb | --de | --d | -d )
16659 debug=: ;;
16660 --file | --fil | --fi | --f )
16661 $ac_shift
16662 case $ac_optarg in
16663 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16664 '') as_fn_error $? "missing file argument" ;;
16665 esac
16666 as_fn_append CONFIG_FILES " '$ac_optarg'"
16667 ac_need_defaults=false;;
16668 --header | --heade | --head | --hea )
16669 $ac_shift
16670 case $ac_optarg in
16671 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16672 esac
16673 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16674 ac_need_defaults=false;;
16675 --he | --h)
16676 # Conflict between --help and --header
16677 as_fn_error $? "ambiguous option: \`$1'
16678 Try \`$0 --help' for more information.";;
16679 --help | --hel | -h )
16680 $as_echo "$ac_cs_usage"; exit ;;
16681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16682 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16683 ac_cs_silent=: ;;
16684
16685 # This is an error.
16686 -*) as_fn_error $? "unrecognized option: \`$1'
16687 Try \`$0 --help' for more information." ;;
16688
16689 *) as_fn_append ac_config_targets " $1"
16690 ac_need_defaults=false ;;
16691
16692 esac
16693 shift
16694 done
16695
16696 ac_configure_extra_args=
16697
16698 if $ac_cs_silent; then
16699 exec 6>/dev/null
16700 ac_configure_extra_args="$ac_configure_extra_args --silent"
16701 fi
16702
16703 _ACEOF
16704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16705 if \$ac_cs_recheck; then
16706 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16707 shift
16708 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16709 CONFIG_SHELL='$SHELL'
16710 export CONFIG_SHELL
16711 exec "\$@"
16712 fi
16713
16714 _ACEOF
16715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16716 exec 5>>config.log
16717 {
16718 echo
16719 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16720 ## Running $as_me. ##
16721 _ASBOX
16722 $as_echo "$ac_log"
16723 } >&5
16724
16725 _ACEOF
16726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16727 #
16728 # INIT-COMMANDS
16729 #
16730 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16731
16732
16733 # The HP-UX ksh and POSIX shell print the target directory to stdout
16734 # if CDPATH is set.
16735 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16736
16737 sed_quote_subst='$sed_quote_subst'
16738 double_quote_subst='$double_quote_subst'
16739 delay_variable_subst='$delay_variable_subst'
16740 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16741 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16742 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16743 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16744 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16745 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16746 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16747 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16748 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16749 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16750 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16751 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16752 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16753 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16754 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16755 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16756 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16757 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16758 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16759 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16760 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16761 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16762 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16763 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16764 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16765 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16766 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16767 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16768 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16769 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16770 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16771 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16772 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16773 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16774 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16775 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16776 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16777 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16778 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16779 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16780 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16781 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16782 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16783 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16784 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16785 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16786 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16787 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16788 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"`'
16789 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16790 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16791 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16792 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16793 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16794 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16795 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16796 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16797 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16798 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16799 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16800 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16801 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16802 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16803 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16804 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16805 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16806 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16807 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16808 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16809 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16810 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16811 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16812 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16813 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16814 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16815 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16816 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16817 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16818 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16819 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16820 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16821 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16822 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16823 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16824 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16825 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16826 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16827 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16828 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16829 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16830 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16831 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16832 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16833 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16834 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16835 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16836 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16837 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16838 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16839 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16840 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16841 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16842 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16843 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16844 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16845 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16846 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16847 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16848 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16849 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16850 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16851 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16852 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16853 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16854 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16855 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16856 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16857 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16858 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16859 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16860
16861 LTCC='$LTCC'
16862 LTCFLAGS='$LTCFLAGS'
16863 compiler='$compiler_DEFAULT'
16864
16865 # A function that is used when there is no print builtin or printf.
16866 func_fallback_echo ()
16867 {
16868 eval 'cat <<_LTECHO_EOF
16869 \$1
16870 _LTECHO_EOF'
16871 }
16872
16873 # Quote evaled strings.
16874 for var in SHELL \
16875 ECHO \
16876 SED \
16877 GREP \
16878 EGREP \
16879 FGREP \
16880 LD \
16881 NM \
16882 LN_S \
16883 lt_SP2NL \
16884 lt_NL2SP \
16885 reload_flag \
16886 OBJDUMP \
16887 deplibs_check_method \
16888 file_magic_cmd \
16889 AR \
16890 AR_FLAGS \
16891 STRIP \
16892 RANLIB \
16893 CC \
16894 CFLAGS \
16895 compiler \
16896 lt_cv_sys_global_symbol_pipe \
16897 lt_cv_sys_global_symbol_to_cdecl \
16898 lt_cv_sys_global_symbol_to_c_name_address \
16899 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16900 lt_prog_compiler_no_builtin_flag \
16901 lt_prog_compiler_wl \
16902 lt_prog_compiler_pic \
16903 lt_prog_compiler_static \
16904 lt_cv_prog_compiler_c_o \
16905 need_locks \
16906 DSYMUTIL \
16907 NMEDIT \
16908 LIPO \
16909 OTOOL \
16910 OTOOL64 \
16911 shrext_cmds \
16912 export_dynamic_flag_spec \
16913 whole_archive_flag_spec \
16914 compiler_needs_object \
16915 with_gnu_ld \
16916 allow_undefined_flag \
16917 no_undefined_flag \
16918 hardcode_libdir_flag_spec \
16919 hardcode_libdir_flag_spec_ld \
16920 hardcode_libdir_separator \
16921 fix_srcfile_path \
16922 exclude_expsyms \
16923 include_expsyms \
16924 file_list_spec \
16925 variables_saved_for_relink \
16926 libname_spec \
16927 library_names_spec \
16928 soname_spec \
16929 install_override_mode \
16930 finish_eval \
16931 old_striplib \
16932 striplib; do
16933 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16934 *[\\\\\\\`\\"\\\$]*)
16935 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16936 ;;
16937 *)
16938 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16939 ;;
16940 esac
16941 done
16942
16943 # Double-quote double-evaled strings.
16944 for var in reload_cmds \
16945 old_postinstall_cmds \
16946 old_postuninstall_cmds \
16947 old_archive_cmds \
16948 extract_expsyms_cmds \
16949 old_archive_from_new_cmds \
16950 old_archive_from_expsyms_cmds \
16951 archive_cmds \
16952 archive_expsym_cmds \
16953 module_cmds \
16954 module_expsym_cmds \
16955 export_symbols_cmds \
16956 prelink_cmds \
16957 postinstall_cmds \
16958 postuninstall_cmds \
16959 finish_cmds \
16960 sys_lib_search_path_spec \
16961 sys_lib_dlsearch_path_spec; do
16962 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16963 *[\\\\\\\`\\"\\\$]*)
16964 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16965 ;;
16966 *)
16967 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16968 ;;
16969 esac
16970 done
16971
16972 ac_aux_dir='$ac_aux_dir'
16973 xsi_shell='$xsi_shell'
16974 lt_shell_append='$lt_shell_append'
16975
16976 # See if we are running on zsh, and set the options which allow our
16977 # commands through without removal of \ escapes INIT.
16978 if test -n "\${ZSH_VERSION+set}" ; then
16979 setopt NO_GLOB_SUBST
16980 fi
16981
16982
16983 PACKAGE='$PACKAGE'
16984 VERSION='$VERSION'
16985 TIMESTAMP='$TIMESTAMP'
16986 RM='$RM'
16987 ofile='$ofile'
16988
16989
16990
16991 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16992 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16993 # from automake.
16994 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16995 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16996 LINGUAS="${LINGUAS-%UNSET%}"
16997
16998 target_cpu_type=${target_cpu_type}
16999 cgen_cpu_prefix=${cgen_cpu_prefix}
17000 obj_format=${obj_format}
17001 te_file=${te_file}
17002
17003 _ACEOF
17004
17005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17006
17007 # Handling of arguments.
17008 for ac_config_target in $ac_config_targets
17009 do
17010 case $ac_config_target in
17011 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17012 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17013 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17014 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
17015 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
17016 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17017 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17018 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
17019 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17020
17021 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17022 esac
17023 done
17024
17025
17026 # If the user did not use the arguments to specify the items to instantiate,
17027 # then the envvar interface is used. Set only those that are not.
17028 # We use the long form for the default assignment because of an extremely
17029 # bizarre bug on SunOS 4.1.3.
17030 if $ac_need_defaults; then
17031 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17032 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17033 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17034 fi
17035
17036 # Have a temporary directory for convenience. Make it in the build tree
17037 # simply because there is no reason against having it here, and in addition,
17038 # creating and moving files from /tmp can sometimes cause problems.
17039 # Hook for its removal unless debugging.
17040 # Note that there is a small window in which the directory will not be cleaned:
17041 # after its creation but before its name has been assigned to `$tmp'.
17042 $debug ||
17043 {
17044 tmp= ac_tmp=
17045 trap 'exit_status=$?
17046 : "${ac_tmp:=$tmp}"
17047 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17048 ' 0
17049 trap 'as_fn_exit 1' 1 2 13 15
17050 }
17051 # Create a (secure) tmp directory for tmp files.
17052
17053 {
17054 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17055 test -d "$tmp"
17056 } ||
17057 {
17058 tmp=./conf$$-$RANDOM
17059 (umask 077 && mkdir "$tmp")
17060 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17061 ac_tmp=$tmp
17062
17063 # Set up the scripts for CONFIG_FILES section.
17064 # No need to generate them if there are no CONFIG_FILES.
17065 # This happens for instance with `./config.status config.h'.
17066 if test -n "$CONFIG_FILES"; then
17067
17068
17069 ac_cr=`echo X | tr X '\015'`
17070 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17071 # But we know of no other shell where ac_cr would be empty at this
17072 # point, so we can use a bashism as a fallback.
17073 if test "x$ac_cr" = x; then
17074 eval ac_cr=\$\'\\r\'
17075 fi
17076 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17077 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17078 ac_cs_awk_cr='\\r'
17079 else
17080 ac_cs_awk_cr=$ac_cr
17081 fi
17082
17083 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17084 _ACEOF
17085
17086
17087 {
17088 echo "cat >conf$$subs.awk <<_ACEOF" &&
17089 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17090 echo "_ACEOF"
17091 } >conf$$subs.sh ||
17092 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17093 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17094 ac_delim='%!_!# '
17095 for ac_last_try in false false false false false :; do
17096 . ./conf$$subs.sh ||
17097 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17098
17099 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17100 if test $ac_delim_n = $ac_delim_num; then
17101 break
17102 elif $ac_last_try; then
17103 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17104 else
17105 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17106 fi
17107 done
17108 rm -f conf$$subs.sh
17109
17110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17111 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17112 _ACEOF
17113 sed -n '
17114 h
17115 s/^/S["/; s/!.*/"]=/
17116 p
17117 g
17118 s/^[^!]*!//
17119 :repl
17120 t repl
17121 s/'"$ac_delim"'$//
17122 t delim
17123 :nl
17124 h
17125 s/\(.\{148\}\)..*/\1/
17126 t more1
17127 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17128 p
17129 n
17130 b repl
17131 :more1
17132 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17133 p
17134 g
17135 s/.\{148\}//
17136 t nl
17137 :delim
17138 h
17139 s/\(.\{148\}\)..*/\1/
17140 t more2
17141 s/["\\]/\\&/g; s/^/"/; s/$/"/
17142 p
17143 b
17144 :more2
17145 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17146 p
17147 g
17148 s/.\{148\}//
17149 t delim
17150 ' <conf$$subs.awk | sed '
17151 /^[^""]/{
17152 N
17153 s/\n//
17154 }
17155 ' >>$CONFIG_STATUS || ac_write_fail=1
17156 rm -f conf$$subs.awk
17157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17158 _ACAWK
17159 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17160 for (key in S) S_is_set[key] = 1
17161 FS = ""
17162
17163 }
17164 {
17165 line = $ 0
17166 nfields = split(line, field, "@")
17167 substed = 0
17168 len = length(field[1])
17169 for (i = 2; i < nfields; i++) {
17170 key = field[i]
17171 keylen = length(key)
17172 if (S_is_set[key]) {
17173 value = S[key]
17174 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17175 len += length(value) + length(field[++i])
17176 substed = 1
17177 } else
17178 len += 1 + keylen
17179 }
17180
17181 print line
17182 }
17183
17184 _ACAWK
17185 _ACEOF
17186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17187 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17188 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17189 else
17190 cat
17191 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17192 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17193 _ACEOF
17194
17195 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17196 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17197 # trailing colons and then remove the whole line if VPATH becomes empty
17198 # (actually we leave an empty line to preserve line numbers).
17199 if test "x$srcdir" = x.; then
17200 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17201 h
17202 s///
17203 s/^/:/
17204 s/[ ]*$/:/
17205 s/:\$(srcdir):/:/g
17206 s/:\${srcdir}:/:/g
17207 s/:@srcdir@:/:/g
17208 s/^:*//
17209 s/:*$//
17210 x
17211 s/\(=[ ]*\).*/\1/
17212 G
17213 s/\n//
17214 s/^[^=]*=[ ]*$//
17215 }'
17216 fi
17217
17218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17219 fi # test -n "$CONFIG_FILES"
17220
17221 # Set up the scripts for CONFIG_HEADERS section.
17222 # No need to generate them if there are no CONFIG_HEADERS.
17223 # This happens for instance with `./config.status Makefile'.
17224 if test -n "$CONFIG_HEADERS"; then
17225 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17226 BEGIN {
17227 _ACEOF
17228
17229 # Transform confdefs.h into an awk script `defines.awk', embedded as
17230 # here-document in config.status, that substitutes the proper values into
17231 # config.h.in to produce config.h.
17232
17233 # Create a delimiter string that does not exist in confdefs.h, to ease
17234 # handling of long lines.
17235 ac_delim='%!_!# '
17236 for ac_last_try in false false :; do
17237 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17238 if test -z "$ac_tt"; then
17239 break
17240 elif $ac_last_try; then
17241 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17242 else
17243 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17244 fi
17245 done
17246
17247 # For the awk script, D is an array of macro values keyed by name,
17248 # likewise P contains macro parameters if any. Preserve backslash
17249 # newline sequences.
17250
17251 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17252 sed -n '
17253 s/.\{148\}/&'"$ac_delim"'/g
17254 t rset
17255 :rset
17256 s/^[ ]*#[ ]*define[ ][ ]*/ /
17257 t def
17258 d
17259 :def
17260 s/\\$//
17261 t bsnl
17262 s/["\\]/\\&/g
17263 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17264 D["\1"]=" \3"/p
17265 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17266 d
17267 :bsnl
17268 s/["\\]/\\&/g
17269 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17270 D["\1"]=" \3\\\\\\n"\\/p
17271 t cont
17272 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17273 t cont
17274 d
17275 :cont
17276 n
17277 s/.\{148\}/&'"$ac_delim"'/g
17278 t clear
17279 :clear
17280 s/\\$//
17281 t bsnlc
17282 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17283 d
17284 :bsnlc
17285 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17286 b cont
17287 ' <confdefs.h | sed '
17288 s/'"$ac_delim"'/"\\\
17289 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17290
17291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17292 for (key in D) D_is_set[key] = 1
17293 FS = ""
17294 }
17295 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17296 line = \$ 0
17297 split(line, arg, " ")
17298 if (arg[1] == "#") {
17299 defundef = arg[2]
17300 mac1 = arg[3]
17301 } else {
17302 defundef = substr(arg[1], 2)
17303 mac1 = arg[2]
17304 }
17305 split(mac1, mac2, "(") #)
17306 macro = mac2[1]
17307 prefix = substr(line, 1, index(line, defundef) - 1)
17308 if (D_is_set[macro]) {
17309 # Preserve the white space surrounding the "#".
17310 print prefix "define", macro P[macro] D[macro]
17311 next
17312 } else {
17313 # Replace #undef with comments. This is necessary, for example,
17314 # in the case of _POSIX_SOURCE, which is predefined and required
17315 # on some systems where configure will not decide to define it.
17316 if (defundef == "undef") {
17317 print "/*", prefix defundef, macro, "*/"
17318 next
17319 }
17320 }
17321 }
17322 { print }
17323 _ACAWK
17324 _ACEOF
17325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17326 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17327 fi # test -n "$CONFIG_HEADERS"
17328
17329
17330 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17331 shift
17332 for ac_tag
17333 do
17334 case $ac_tag in
17335 :[FHLC]) ac_mode=$ac_tag; continue;;
17336 esac
17337 case $ac_mode$ac_tag in
17338 :[FHL]*:*);;
17339 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17340 :[FH]-) ac_tag=-:-;;
17341 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17342 esac
17343 ac_save_IFS=$IFS
17344 IFS=:
17345 set x $ac_tag
17346 IFS=$ac_save_IFS
17347 shift
17348 ac_file=$1
17349 shift
17350
17351 case $ac_mode in
17352 :L) ac_source=$1;;
17353 :[FH])
17354 ac_file_inputs=
17355 for ac_f
17356 do
17357 case $ac_f in
17358 -) ac_f="$ac_tmp/stdin";;
17359 *) # Look for the file first in the build tree, then in the source tree
17360 # (if the path is not absolute). The absolute path cannot be DOS-style,
17361 # because $ac_f cannot contain `:'.
17362 test -f "$ac_f" ||
17363 case $ac_f in
17364 [\\/$]*) false;;
17365 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17366 esac ||
17367 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17368 esac
17369 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17370 as_fn_append ac_file_inputs " '$ac_f'"
17371 done
17372
17373 # Let's still pretend it is `configure' which instantiates (i.e., don't
17374 # use $as_me), people would be surprised to read:
17375 # /* config.h. Generated by config.status. */
17376 configure_input='Generated from '`
17377 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17378 `' by configure.'
17379 if test x"$ac_file" != x-; then
17380 configure_input="$ac_file. $configure_input"
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17382 $as_echo "$as_me: creating $ac_file" >&6;}
17383 fi
17384 # Neutralize special characters interpreted by sed in replacement strings.
17385 case $configure_input in #(
17386 *\&* | *\|* | *\\* )
17387 ac_sed_conf_input=`$as_echo "$configure_input" |
17388 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17389 *) ac_sed_conf_input=$configure_input;;
17390 esac
17391
17392 case $ac_tag in
17393 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17394 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17395 esac
17396 ;;
17397 esac
17398
17399 ac_dir=`$as_dirname -- "$ac_file" ||
17400 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17401 X"$ac_file" : 'X\(//\)[^/]' \| \
17402 X"$ac_file" : 'X\(//\)$' \| \
17403 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17404 $as_echo X"$ac_file" |
17405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17406 s//\1/
17407 q
17408 }
17409 /^X\(\/\/\)[^/].*/{
17410 s//\1/
17411 q
17412 }
17413 /^X\(\/\/\)$/{
17414 s//\1/
17415 q
17416 }
17417 /^X\(\/\).*/{
17418 s//\1/
17419 q
17420 }
17421 s/.*/./; q'`
17422 as_dir="$ac_dir"; as_fn_mkdir_p
17423 ac_builddir=.
17424
17425 case "$ac_dir" in
17426 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17427 *)
17428 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17429 # A ".." for each directory in $ac_dir_suffix.
17430 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17431 case $ac_top_builddir_sub in
17432 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17433 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17434 esac ;;
17435 esac
17436 ac_abs_top_builddir=$ac_pwd
17437 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17438 # for backward compatibility:
17439 ac_top_builddir=$ac_top_build_prefix
17440
17441 case $srcdir in
17442 .) # We are building in place.
17443 ac_srcdir=.
17444 ac_top_srcdir=$ac_top_builddir_sub
17445 ac_abs_top_srcdir=$ac_pwd ;;
17446 [\\/]* | ?:[\\/]* ) # Absolute name.
17447 ac_srcdir=$srcdir$ac_dir_suffix;
17448 ac_top_srcdir=$srcdir
17449 ac_abs_top_srcdir=$srcdir ;;
17450 *) # Relative name.
17451 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17452 ac_top_srcdir=$ac_top_build_prefix$srcdir
17453 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17454 esac
17455 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17456
17457
17458 case $ac_mode in
17459 :F)
17460 #
17461 # CONFIG_FILE
17462 #
17463
17464 case $INSTALL in
17465 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17466 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17467 esac
17468 ac_MKDIR_P=$MKDIR_P
17469 case $MKDIR_P in
17470 [\\/$]* | ?:[\\/]* ) ;;
17471 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17472 esac
17473 _ACEOF
17474
17475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17476 # If the template does not know about datarootdir, expand it.
17477 # FIXME: This hack should be removed a few years after 2.60.
17478 ac_datarootdir_hack=; ac_datarootdir_seen=
17479 ac_sed_dataroot='
17480 /datarootdir/ {
17481 p
17482 q
17483 }
17484 /@datadir@/p
17485 /@docdir@/p
17486 /@infodir@/p
17487 /@localedir@/p
17488 /@mandir@/p'
17489 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17490 *datarootdir*) ac_datarootdir_seen=yes;;
17491 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17493 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17494 _ACEOF
17495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17496 ac_datarootdir_hack='
17497 s&@datadir@&$datadir&g
17498 s&@docdir@&$docdir&g
17499 s&@infodir@&$infodir&g
17500 s&@localedir@&$localedir&g
17501 s&@mandir@&$mandir&g
17502 s&\\\${datarootdir}&$datarootdir&g' ;;
17503 esac
17504 _ACEOF
17505
17506 # Neutralize VPATH when `$srcdir' = `.'.
17507 # Shell code in configure.ac might set extrasub.
17508 # FIXME: do we really want to maintain this feature?
17509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17510 ac_sed_extra="$ac_vpsub
17511 $extrasub
17512 _ACEOF
17513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17514 :t
17515 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17516 s|@configure_input@|$ac_sed_conf_input|;t t
17517 s&@top_builddir@&$ac_top_builddir_sub&;t t
17518 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17519 s&@srcdir@&$ac_srcdir&;t t
17520 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17521 s&@top_srcdir@&$ac_top_srcdir&;t t
17522 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17523 s&@builddir@&$ac_builddir&;t t
17524 s&@abs_builddir@&$ac_abs_builddir&;t t
17525 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17526 s&@INSTALL@&$ac_INSTALL&;t t
17527 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17528 $ac_datarootdir_hack
17529 "
17530 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17531 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17532
17533 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17534 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17535 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17536 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17538 which seems to be undefined. Please make sure it is defined" >&5
17539 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17540 which seems to be undefined. Please make sure it is defined" >&2;}
17541
17542 rm -f "$ac_tmp/stdin"
17543 case $ac_file in
17544 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17545 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17546 esac \
17547 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17548 ;;
17549 :H)
17550 #
17551 # CONFIG_HEADER
17552 #
17553 if test x"$ac_file" != x-; then
17554 {
17555 $as_echo "/* $configure_input */" \
17556 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17557 } >"$ac_tmp/config.h" \
17558 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17559 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17561 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17562 else
17563 rm -f "$ac_file"
17564 mv "$ac_tmp/config.h" "$ac_file" \
17565 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17566 fi
17567 else
17568 $as_echo "/* $configure_input */" \
17569 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17570 || as_fn_error $? "could not create -" "$LINENO" 5
17571 fi
17572 # Compute "$ac_file"'s index in $config_headers.
17573 _am_arg="$ac_file"
17574 _am_stamp_count=1
17575 for _am_header in $config_headers :; do
17576 case $_am_header in
17577 $_am_arg | $_am_arg:* )
17578 break ;;
17579 * )
17580 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17581 esac
17582 done
17583 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17584 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17585 X"$_am_arg" : 'X\(//\)[^/]' \| \
17586 X"$_am_arg" : 'X\(//\)$' \| \
17587 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17588 $as_echo X"$_am_arg" |
17589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17590 s//\1/
17591 q
17592 }
17593 /^X\(\/\/\)[^/].*/{
17594 s//\1/
17595 q
17596 }
17597 /^X\(\/\/\)$/{
17598 s//\1/
17599 q
17600 }
17601 /^X\(\/\).*/{
17602 s//\1/
17603 q
17604 }
17605 s/.*/./; q'`/stamp-h$_am_stamp_count
17606 ;;
17607
17608 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17609 $as_echo "$as_me: executing $ac_file commands" >&6;}
17610 ;;
17611 esac
17612
17613
17614 case $ac_file$ac_mode in
17615 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17616 # Older Autoconf quotes --file arguments for eval, but not when files
17617 # are listed without --file. Let's play safe and only enable the eval
17618 # if we detect the quoting.
17619 case $CONFIG_FILES in
17620 *\'*) eval set x "$CONFIG_FILES" ;;
17621 *) set x $CONFIG_FILES ;;
17622 esac
17623 shift
17624 for mf
17625 do
17626 # Strip MF so we end up with the name of the file.
17627 mf=`echo "$mf" | sed -e 's/:.*$//'`
17628 # Check whether this is an Automake generated Makefile or not.
17629 # We used to match only the files named 'Makefile.in', but
17630 # some people rename them; so instead we look at the file content.
17631 # Grep'ing the first line is not enough: some people post-process
17632 # each Makefile.in and add a new line on top of each file to say so.
17633 # Grep'ing the whole file is not good either: AIX grep has a line
17634 # limit of 2048, but all sed's we know have understand at least 4000.
17635 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17636 dirpart=`$as_dirname -- "$mf" ||
17637 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17638 X"$mf" : 'X\(//\)[^/]' \| \
17639 X"$mf" : 'X\(//\)$' \| \
17640 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17641 $as_echo X"$mf" |
17642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17643 s//\1/
17644 q
17645 }
17646 /^X\(\/\/\)[^/].*/{
17647 s//\1/
17648 q
17649 }
17650 /^X\(\/\/\)$/{
17651 s//\1/
17652 q
17653 }
17654 /^X\(\/\).*/{
17655 s//\1/
17656 q
17657 }
17658 s/.*/./; q'`
17659 else
17660 continue
17661 fi
17662 # Extract the definition of DEPDIR, am__include, and am__quote
17663 # from the Makefile without running 'make'.
17664 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17665 test -z "$DEPDIR" && continue
17666 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17667 test -z "$am__include" && continue
17668 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17669 # Find all dependency output files, they are included files with
17670 # $(DEPDIR) in their names. We invoke sed twice because it is the
17671 # simplest approach to changing $(DEPDIR) to its actual value in the
17672 # expansion.
17673 for file in `sed -n "
17674 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17675 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17676 # Make sure the directory exists.
17677 test -f "$dirpart/$file" && continue
17678 fdir=`$as_dirname -- "$file" ||
17679 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17680 X"$file" : 'X\(//\)[^/]' \| \
17681 X"$file" : 'X\(//\)$' \| \
17682 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17683 $as_echo X"$file" |
17684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17685 s//\1/
17686 q
17687 }
17688 /^X\(\/\/\)[^/].*/{
17689 s//\1/
17690 q
17691 }
17692 /^X\(\/\/\)$/{
17693 s//\1/
17694 q
17695 }
17696 /^X\(\/\).*/{
17697 s//\1/
17698 q
17699 }
17700 s/.*/./; q'`
17701 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17702 # echo "creating $dirpart/$file"
17703 echo '# dummy' > "$dirpart/$file"
17704 done
17705 done
17706 }
17707 ;;
17708 "libtool":C)
17709
17710 # See if we are running on zsh, and set the options which allow our
17711 # commands through without removal of \ escapes.
17712 if test -n "${ZSH_VERSION+set}" ; then
17713 setopt NO_GLOB_SUBST
17714 fi
17715
17716 cfgfile="${ofile}T"
17717 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17718 $RM "$cfgfile"
17719
17720 cat <<_LT_EOF >> "$cfgfile"
17721 #! $SHELL
17722
17723 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17724 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17725 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17726 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17727 #
17728 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17729 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17730 # Written by Gordon Matzigkeit, 1996
17731 #
17732 # This file is part of GNU Libtool.
17733 #
17734 # GNU Libtool is free software; you can redistribute it and/or
17735 # modify it under the terms of the GNU General Public License as
17736 # published by the Free Software Foundation; either version 2 of
17737 # the License, or (at your option) any later version.
17738 #
17739 # As a special exception to the GNU General Public License,
17740 # if you distribute this file as part of a program or library that
17741 # is built using GNU Libtool, you may include this file under the
17742 # same distribution terms that you use for the rest of that program.
17743 #
17744 # GNU Libtool is distributed in the hope that it will be useful,
17745 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17746 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17747 # GNU General Public License for more details.
17748 #
17749 # You should have received a copy of the GNU General Public License
17750 # along with GNU Libtool; see the file COPYING. If not, a copy
17751 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17752 # obtained by writing to the Free Software Foundation, Inc.,
17753 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17754
17755
17756 # The names of the tagged configurations supported by this script.
17757 available_tags=""
17758
17759 # ### BEGIN LIBTOOL CONFIG
17760
17761 # Which release of libtool.m4 was used?
17762 macro_version=$macro_version
17763 macro_revision=$macro_revision
17764
17765 # Whether or not to build shared libraries.
17766 build_libtool_libs=$enable_shared
17767
17768 # Whether or not to build static libraries.
17769 build_old_libs=$enable_static
17770
17771 # What type of objects to build.
17772 pic_mode=$pic_mode
17773
17774 # Whether or not to optimize for fast installation.
17775 fast_install=$enable_fast_install
17776
17777 # Shell to use when invoking shell scripts.
17778 SHELL=$lt_SHELL
17779
17780 # An echo program that protects backslashes.
17781 ECHO=$lt_ECHO
17782
17783 # The host system.
17784 host_alias=$host_alias
17785 host=$host
17786 host_os=$host_os
17787
17788 # The build system.
17789 build_alias=$build_alias
17790 build=$build
17791 build_os=$build_os
17792
17793 # A sed program that does not truncate output.
17794 SED=$lt_SED
17795
17796 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17797 Xsed="\$SED -e 1s/^X//"
17798
17799 # A grep program that handles long lines.
17800 GREP=$lt_GREP
17801
17802 # An ERE matcher.
17803 EGREP=$lt_EGREP
17804
17805 # A literal string matcher.
17806 FGREP=$lt_FGREP
17807
17808 # A BSD- or MS-compatible name lister.
17809 NM=$lt_NM
17810
17811 # Whether we need soft or hard links.
17812 LN_S=$lt_LN_S
17813
17814 # What is the maximum length of a command?
17815 max_cmd_len=$max_cmd_len
17816
17817 # Object file suffix (normally "o").
17818 objext=$ac_objext
17819
17820 # Executable file suffix (normally "").
17821 exeext=$exeext
17822
17823 # whether the shell understands "unset".
17824 lt_unset=$lt_unset
17825
17826 # turn spaces into newlines.
17827 SP2NL=$lt_lt_SP2NL
17828
17829 # turn newlines into spaces.
17830 NL2SP=$lt_lt_NL2SP
17831
17832 # An object symbol dumper.
17833 OBJDUMP=$lt_OBJDUMP
17834
17835 # Method to check whether dependent libraries are shared objects.
17836 deplibs_check_method=$lt_deplibs_check_method
17837
17838 # Command to use when deplibs_check_method == "file_magic".
17839 file_magic_cmd=$lt_file_magic_cmd
17840
17841 # The archiver.
17842 AR=$lt_AR
17843 AR_FLAGS=$lt_AR_FLAGS
17844
17845 # A symbol stripping program.
17846 STRIP=$lt_STRIP
17847
17848 # Commands used to install an old-style archive.
17849 RANLIB=$lt_RANLIB
17850 old_postinstall_cmds=$lt_old_postinstall_cmds
17851 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17852
17853 # Whether to use a lock for old archive extraction.
17854 lock_old_archive_extraction=$lock_old_archive_extraction
17855
17856 # A C compiler.
17857 LTCC=$lt_CC
17858
17859 # LTCC compiler flags.
17860 LTCFLAGS=$lt_CFLAGS
17861
17862 # Take the output of nm and produce a listing of raw symbols and C names.
17863 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17864
17865 # Transform the output of nm in a proper C declaration.
17866 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17867
17868 # Transform the output of nm in a C name address pair.
17869 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17870
17871 # Transform the output of nm in a C name address pair when lib prefix is needed.
17872 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17873
17874 # The name of the directory that contains temporary libtool files.
17875 objdir=$objdir
17876
17877 # Used to examine libraries when file_magic_cmd begins with "file".
17878 MAGIC_CMD=$MAGIC_CMD
17879
17880 # Must we lock files when doing compilation?
17881 need_locks=$lt_need_locks
17882
17883 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17884 DSYMUTIL=$lt_DSYMUTIL
17885
17886 # Tool to change global to local symbols on Mac OS X.
17887 NMEDIT=$lt_NMEDIT
17888
17889 # Tool to manipulate fat objects and archives on Mac OS X.
17890 LIPO=$lt_LIPO
17891
17892 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17893 OTOOL=$lt_OTOOL
17894
17895 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17896 OTOOL64=$lt_OTOOL64
17897
17898 # Old archive suffix (normally "a").
17899 libext=$libext
17900
17901 # Shared library suffix (normally ".so").
17902 shrext_cmds=$lt_shrext_cmds
17903
17904 # The commands to extract the exported symbol list from a shared archive.
17905 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17906
17907 # Variables whose values should be saved in libtool wrapper scripts and
17908 # restored at link time.
17909 variables_saved_for_relink=$lt_variables_saved_for_relink
17910
17911 # Do we need the "lib" prefix for modules?
17912 need_lib_prefix=$need_lib_prefix
17913
17914 # Do we need a version for libraries?
17915 need_version=$need_version
17916
17917 # Library versioning type.
17918 version_type=$version_type
17919
17920 # Shared library runtime path variable.
17921 runpath_var=$runpath_var
17922
17923 # Shared library path variable.
17924 shlibpath_var=$shlibpath_var
17925
17926 # Is shlibpath searched before the hard-coded library search path?
17927 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17928
17929 # Format of library name prefix.
17930 libname_spec=$lt_libname_spec
17931
17932 # List of archive names. First name is the real one, the rest are links.
17933 # The last name is the one that the linker finds with -lNAME
17934 library_names_spec=$lt_library_names_spec
17935
17936 # The coded name of the library, if different from the real name.
17937 soname_spec=$lt_soname_spec
17938
17939 # Permission mode override for installation of shared libraries.
17940 install_override_mode=$lt_install_override_mode
17941
17942 # Command to use after installation of a shared archive.
17943 postinstall_cmds=$lt_postinstall_cmds
17944
17945 # Command to use after uninstallation of a shared archive.
17946 postuninstall_cmds=$lt_postuninstall_cmds
17947
17948 # Commands used to finish a libtool library installation in a directory.
17949 finish_cmds=$lt_finish_cmds
17950
17951 # As "finish_cmds", except a single script fragment to be evaled but
17952 # not shown.
17953 finish_eval=$lt_finish_eval
17954
17955 # Whether we should hardcode library paths into libraries.
17956 hardcode_into_libs=$hardcode_into_libs
17957
17958 # Compile-time system search path for libraries.
17959 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17960
17961 # Run-time system search path for libraries.
17962 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17963
17964 # Whether dlopen is supported.
17965 dlopen_support=$enable_dlopen
17966
17967 # Whether dlopen of programs is supported.
17968 dlopen_self=$enable_dlopen_self
17969
17970 # Whether dlopen of statically linked programs is supported.
17971 dlopen_self_static=$enable_dlopen_self_static
17972
17973 # Commands to strip libraries.
17974 old_striplib=$lt_old_striplib
17975 striplib=$lt_striplib
17976
17977
17978 # The linker used to build libraries.
17979 LD=$lt_LD
17980
17981 # How to create reloadable object files.
17982 reload_flag=$lt_reload_flag
17983 reload_cmds=$lt_reload_cmds
17984
17985 # Commands used to build an old-style archive.
17986 old_archive_cmds=$lt_old_archive_cmds
17987
17988 # A language specific compiler.
17989 CC=$lt_compiler
17990
17991 # Is the compiler the GNU compiler?
17992 with_gcc=$GCC
17993
17994 # Compiler flag to turn off builtin functions.
17995 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17996
17997 # How to pass a linker flag through the compiler.
17998 wl=$lt_lt_prog_compiler_wl
17999
18000 # Additional compiler flags for building library objects.
18001 pic_flag=$lt_lt_prog_compiler_pic
18002
18003 # Compiler flag to prevent dynamic linking.
18004 link_static_flag=$lt_lt_prog_compiler_static
18005
18006 # Does compiler simultaneously support -c and -o options?
18007 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18008
18009 # Whether or not to add -lc for building shared libraries.
18010 build_libtool_need_lc=$archive_cmds_need_lc
18011
18012 # Whether or not to disallow shared libs when runtime libs are static.
18013 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18014
18015 # Compiler flag to allow reflexive dlopens.
18016 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18017
18018 # Compiler flag to generate shared objects directly from archives.
18019 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18020
18021 # Whether the compiler copes with passing no objects directly.
18022 compiler_needs_object=$lt_compiler_needs_object
18023
18024 # Create an old-style archive from a shared archive.
18025 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18026
18027 # Create a temporary old-style archive to link instead of a shared archive.
18028 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18029
18030 # Commands used to build a shared archive.
18031 archive_cmds=$lt_archive_cmds
18032 archive_expsym_cmds=$lt_archive_expsym_cmds
18033
18034 # Commands used to build a loadable module if different from building
18035 # a shared archive.
18036 module_cmds=$lt_module_cmds
18037 module_expsym_cmds=$lt_module_expsym_cmds
18038
18039 # Whether we are building with GNU ld or not.
18040 with_gnu_ld=$lt_with_gnu_ld
18041
18042 # Flag that allows shared libraries with undefined symbols to be built.
18043 allow_undefined_flag=$lt_allow_undefined_flag
18044
18045 # Flag that enforces no undefined symbols.
18046 no_undefined_flag=$lt_no_undefined_flag
18047
18048 # Flag to hardcode \$libdir into a binary during linking.
18049 # This must work even if \$libdir does not exist
18050 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18051
18052 # If ld is used when linking, flag to hardcode \$libdir into a binary
18053 # during linking. This must work even if \$libdir does not exist.
18054 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18055
18056 # Whether we need a single "-rpath" flag with a separated argument.
18057 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18058
18059 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18060 # DIR into the resulting binary.
18061 hardcode_direct=$hardcode_direct
18062
18063 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18064 # DIR into the resulting binary and the resulting library dependency is
18065 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18066 # library is relocated.
18067 hardcode_direct_absolute=$hardcode_direct_absolute
18068
18069 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18070 # into the resulting binary.
18071 hardcode_minus_L=$hardcode_minus_L
18072
18073 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18074 # into the resulting binary.
18075 hardcode_shlibpath_var=$hardcode_shlibpath_var
18076
18077 # Set to "yes" if building a shared library automatically hardcodes DIR
18078 # into the library and all subsequent libraries and executables linked
18079 # against it.
18080 hardcode_automatic=$hardcode_automatic
18081
18082 # Set to yes if linker adds runtime paths of dependent libraries
18083 # to runtime path list.
18084 inherit_rpath=$inherit_rpath
18085
18086 # Whether libtool must link a program against all its dependency libraries.
18087 link_all_deplibs=$link_all_deplibs
18088
18089 # Fix the shell variable \$srcfile for the compiler.
18090 fix_srcfile_path=$lt_fix_srcfile_path
18091
18092 # Set to "yes" if exported symbols are required.
18093 always_export_symbols=$always_export_symbols
18094
18095 # The commands to list exported symbols.
18096 export_symbols_cmds=$lt_export_symbols_cmds
18097
18098 # Symbols that should not be listed in the preloaded symbols.
18099 exclude_expsyms=$lt_exclude_expsyms
18100
18101 # Symbols that must always be exported.
18102 include_expsyms=$lt_include_expsyms
18103
18104 # Commands necessary for linking programs (against libraries) with templates.
18105 prelink_cmds=$lt_prelink_cmds
18106
18107 # Specify filename containing input files.
18108 file_list_spec=$lt_file_list_spec
18109
18110 # How to hardcode a shared library path into an executable.
18111 hardcode_action=$hardcode_action
18112
18113 # ### END LIBTOOL CONFIG
18114
18115 _LT_EOF
18116
18117 case $host_os in
18118 aix3*)
18119 cat <<\_LT_EOF >> "$cfgfile"
18120 # AIX sometimes has problems with the GCC collect2 program. For some
18121 # reason, if we set the COLLECT_NAMES environment variable, the problems
18122 # vanish in a puff of smoke.
18123 if test "X${COLLECT_NAMES+set}" != Xset; then
18124 COLLECT_NAMES=
18125 export COLLECT_NAMES
18126 fi
18127 _LT_EOF
18128 ;;
18129 esac
18130
18131
18132 ltmain="$ac_aux_dir/ltmain.sh"
18133
18134
18135 # We use sed instead of cat because bash on DJGPP gets confused if
18136 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18137 # text mode, it properly converts lines to CR/LF. This bash problem
18138 # is reportedly fixed, but why not run on old versions too?
18139 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18140 || (rm -f "$cfgfile"; exit 1)
18141
18142 case $xsi_shell in
18143 yes)
18144 cat << \_LT_EOF >> "$cfgfile"
18145
18146 # func_dirname file append nondir_replacement
18147 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18148 # otherwise set result to NONDIR_REPLACEMENT.
18149 func_dirname ()
18150 {
18151 case ${1} in
18152 */*) func_dirname_result="${1%/*}${2}" ;;
18153 * ) func_dirname_result="${3}" ;;
18154 esac
18155 }
18156
18157 # func_basename file
18158 func_basename ()
18159 {
18160 func_basename_result="${1##*/}"
18161 }
18162
18163 # func_dirname_and_basename file append nondir_replacement
18164 # perform func_basename and func_dirname in a single function
18165 # call:
18166 # dirname: Compute the dirname of FILE. If nonempty,
18167 # add APPEND to the result, otherwise set result
18168 # to NONDIR_REPLACEMENT.
18169 # value returned in "$func_dirname_result"
18170 # basename: Compute filename of FILE.
18171 # value retuned in "$func_basename_result"
18172 # Implementation must be kept synchronized with func_dirname
18173 # and func_basename. For efficiency, we do not delegate to
18174 # those functions but instead duplicate the functionality here.
18175 func_dirname_and_basename ()
18176 {
18177 case ${1} in
18178 */*) func_dirname_result="${1%/*}${2}" ;;
18179 * ) func_dirname_result="${3}" ;;
18180 esac
18181 func_basename_result="${1##*/}"
18182 }
18183
18184 # func_stripname prefix suffix name
18185 # strip PREFIX and SUFFIX off of NAME.
18186 # PREFIX and SUFFIX must not contain globbing or regex special
18187 # characters, hashes, percent signs, but SUFFIX may contain a leading
18188 # dot (in which case that matches only a dot).
18189 func_stripname ()
18190 {
18191 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18192 # positional parameters, so assign one to ordinary parameter first.
18193 func_stripname_result=${3}
18194 func_stripname_result=${func_stripname_result#"${1}"}
18195 func_stripname_result=${func_stripname_result%"${2}"}
18196 }
18197
18198 # func_opt_split
18199 func_opt_split ()
18200 {
18201 func_opt_split_opt=${1%%=*}
18202 func_opt_split_arg=${1#*=}
18203 }
18204
18205 # func_lo2o object
18206 func_lo2o ()
18207 {
18208 case ${1} in
18209 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18210 *) func_lo2o_result=${1} ;;
18211 esac
18212 }
18213
18214 # func_xform libobj-or-source
18215 func_xform ()
18216 {
18217 func_xform_result=${1%.*}.lo
18218 }
18219
18220 # func_arith arithmetic-term...
18221 func_arith ()
18222 {
18223 func_arith_result=$(( $* ))
18224 }
18225
18226 # func_len string
18227 # STRING may not start with a hyphen.
18228 func_len ()
18229 {
18230 func_len_result=${#1}
18231 }
18232
18233 _LT_EOF
18234 ;;
18235 *) # Bourne compatible functions.
18236 cat << \_LT_EOF >> "$cfgfile"
18237
18238 # func_dirname file append nondir_replacement
18239 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18240 # otherwise set result to NONDIR_REPLACEMENT.
18241 func_dirname ()
18242 {
18243 # Extract subdirectory from the argument.
18244 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18245 if test "X$func_dirname_result" = "X${1}"; then
18246 func_dirname_result="${3}"
18247 else
18248 func_dirname_result="$func_dirname_result${2}"
18249 fi
18250 }
18251
18252 # func_basename file
18253 func_basename ()
18254 {
18255 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18256 }
18257
18258
18259 # func_stripname prefix suffix name
18260 # strip PREFIX and SUFFIX off of NAME.
18261 # PREFIX and SUFFIX must not contain globbing or regex special
18262 # characters, hashes, percent signs, but SUFFIX may contain a leading
18263 # dot (in which case that matches only a dot).
18264 # func_strip_suffix prefix name
18265 func_stripname ()
18266 {
18267 case ${2} in
18268 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18269 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18270 esac
18271 }
18272
18273 # sed scripts:
18274 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18275 my_sed_long_arg='1s/^-[^=]*=//'
18276
18277 # func_opt_split
18278 func_opt_split ()
18279 {
18280 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18281 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18282 }
18283
18284 # func_lo2o object
18285 func_lo2o ()
18286 {
18287 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18288 }
18289
18290 # func_xform libobj-or-source
18291 func_xform ()
18292 {
18293 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18294 }
18295
18296 # func_arith arithmetic-term...
18297 func_arith ()
18298 {
18299 func_arith_result=`expr "$@"`
18300 }
18301
18302 # func_len string
18303 # STRING may not start with a hyphen.
18304 func_len ()
18305 {
18306 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18307 }
18308
18309 _LT_EOF
18310 esac
18311
18312 case $lt_shell_append in
18313 yes)
18314 cat << \_LT_EOF >> "$cfgfile"
18315
18316 # func_append var value
18317 # Append VALUE to the end of shell variable VAR.
18318 func_append ()
18319 {
18320 eval "$1+=\$2"
18321 }
18322 _LT_EOF
18323 ;;
18324 *)
18325 cat << \_LT_EOF >> "$cfgfile"
18326
18327 # func_append var value
18328 # Append VALUE to the end of shell variable VAR.
18329 func_append ()
18330 {
18331 eval "$1=\$$1\$2"
18332 }
18333
18334 _LT_EOF
18335 ;;
18336 esac
18337
18338
18339 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18340 || (rm -f "$cfgfile"; exit 1)
18341
18342 mv -f "$cfgfile" "$ofile" ||
18343 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18344 chmod +x "$ofile"
18345
18346 ;;
18347 "default-1":C)
18348 for ac_file in $CONFIG_FILES; do
18349 # Support "outfile[:infile[:infile...]]"
18350 case "$ac_file" in
18351 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18352 esac
18353 # PO directories have a Makefile.in generated from Makefile.in.in.
18354 case "$ac_file" in */Makefile.in)
18355 # Adjust a relative srcdir.
18356 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18357 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
18358 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18359 # In autoconf-2.13 it is called $ac_given_srcdir.
18360 # In autoconf-2.50 it is called $srcdir.
18361 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18362 case "$ac_given_srcdir" in
18363 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18364 /*) top_srcdir="$ac_given_srcdir" ;;
18365 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18366 esac
18367 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18368 rm -f "$ac_dir/POTFILES"
18369 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18370 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18371 POMAKEFILEDEPS="POTFILES.in"
18372 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18373 # on $ac_dir but don't depend on user-specified configuration
18374 # parameters.
18375 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18376 # The LINGUAS file contains the set of available languages.
18377 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18378 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
18379 fi
18380 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18381 # Hide the ALL_LINGUAS assigment from automake.
18382 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18383 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18384 else
18385 # The set of available languages was given in configure.ac.
18386 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18387 fi
18388 case "$ac_given_srcdir" in
18389 .) srcdirpre= ;;
18390 *) srcdirpre='$(srcdir)/' ;;
18391 esac
18392 POFILES=
18393 GMOFILES=
18394 UPDATEPOFILES=
18395 DUMMYPOFILES=
18396 for lang in $ALL_LINGUAS; do
18397 POFILES="$POFILES $srcdirpre$lang.po"
18398 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18399 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18400 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18401 done
18402 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18403 # environment variable.
18404 INST_LINGUAS=
18405 if test -n "$ALL_LINGUAS"; then
18406 for presentlang in $ALL_LINGUAS; do
18407 useit=no
18408 if test "%UNSET%" != "$LINGUAS"; then
18409 desiredlanguages="$LINGUAS"
18410 else
18411 desiredlanguages="$ALL_LINGUAS"
18412 fi
18413 for desiredlang in $desiredlanguages; do
18414 # Use the presentlang catalog if desiredlang is
18415 # a. equal to presentlang, or
18416 # b. a variant of presentlang (because in this case,
18417 # presentlang can be used as a fallback for messages
18418 # which are not translated in the desiredlang catalog).
18419 case "$desiredlang" in
18420 "$presentlang"*) useit=yes;;
18421 esac
18422 done
18423 if test $useit = yes; then
18424 INST_LINGUAS="$INST_LINGUAS $presentlang"
18425 fi
18426 done
18427 fi
18428 CATALOGS=
18429 if test -n "$INST_LINGUAS"; then
18430 for lang in $INST_LINGUAS; do
18431 CATALOGS="$CATALOGS $lang.gmo"
18432 done
18433 fi
18434 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18435 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"
18436 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18437 if test -f "$f"; then
18438 case "$f" in
18439 *.orig | *.bak | *~) ;;
18440 *) cat "$f" >> "$ac_dir/Makefile" ;;
18441 esac
18442 fi
18443 done
18444 fi
18445 ;;
18446 esac
18447 done ;;
18448 "default":C) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
18449 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
18450 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
18451 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
18452 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
18453 if test "x$cgen_cpu_prefix" != x ; then
18454 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
18455 fi ;;
18456
18457 esac
18458 done # for ac_tag
18459
18460
18461 as_fn_exit 0
18462 _ACEOF
18463 ac_clean_files=$ac_clean_files_save
18464
18465 test $ac_write_fail = 0 ||
18466 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18467
18468
18469 # configure is writing to config.log, and then calls config.status.
18470 # config.status does its own redirection, appending to config.log.
18471 # Unfortunately, on DOS this fails, as config.log is still kept open
18472 # by configure, so config.status won't be able to write to it; its
18473 # output is simply discarded. So we exec the FD to /dev/null,
18474 # effectively closing config.log, so it can be properly (re)opened and
18475 # appended to by config.status. When coming back to configure, we
18476 # need to make the FD available again.
18477 if test "$no_create" != yes; then
18478 ac_cs_success=:
18479 ac_config_status_args=
18480 test "$silent" = yes &&
18481 ac_config_status_args="$ac_config_status_args --quiet"
18482 exec 5>/dev/null
18483 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18484 exec 5>>config.log
18485 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18486 # would make configure fail if this is the last instruction.
18487 $ac_cs_success || as_fn_exit 1
18488 fi
18489 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18491 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18492 fi
18493
18494
18495
18496 touch config.status.tmp
18497 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
18498 sed '/as_fn_exit 0/i \
18499 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
18500 touch --reference=Makefile Makefile.tmp \
18501 mv Makefile.tmp Makefile \
18502 ' config.status > config.status.tmp
18503 touch --reference=config.status config.status.tmp
18504 mv config.status.tmp config.status
18505 chmod +x config.status
18506 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
18507 touch --reference=Makefile Makefile.tmp
18508 mv Makefile.tmp Makefile
18509 else
18510 rm -f config.status.tmp
18511 fi
18512