Debian Codegraph @

libctf/configure

raw ◀ ▶
1 Debian patch touch this file
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libctf 1.2.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='libctf'
589 PACKAGE_TARNAME='libctf'
590 PACKAGE_VERSION='1.2.0'
591 PACKAGE_STRING='libctf 1.2.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="ctf-impl.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_header_list=
634 ac_func_list=
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
•639 CTF_SOVER_EXT
640 VERSION_FLAGS_NOBFD
641 VERSION_FLAGS
642 HAVE_TCL_TRY
643 EXPECT
644 CTF_LIBADD
645 SHARED_LDFLAGS
646 BUILD_INFO_FALSE
647 BUILD_INFO_TRUE
648 NEED_CTF_QSORT_R_FALSE
649 NEED_CTF_QSORT_R_TRUE
650 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE
651 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE
652 zlibinc
653 zlibdir
654 ac_libctf_warn_cflags
655 bfdincludedir
656 bfdlibdir
657 target_noncanonical
658 host_noncanonical
659 INSTALL_LIBBFD_FALSE
660 INSTALL_LIBBFD_TRUE
661 MAINT
662 MAINTAINER_MODE_FALSE
663 MAINTAINER_MODE_TRUE
664 WERROR
665 WARN_PEDANTIC
666 c_warn
667 warn
668 OTOOL64
669 OTOOL
670 LIPO
671 NMEDIT
672 DSYMUTIL
673 OBJDUMP
674 LN_S
675 NM
676 ac_ct_DUMPBIN
677 DUMPBIN
678 LD
679 FGREP
680 SED
681 LIBTOOL
682 CATOBJEXT
683 GENCAT
684 INSTOBJEXT
685 DATADIRNAME
686 CATALOGS
687 INCINTL
688 LIBINTL_DEP
689 POSUB
690 LTLIBINTL
691 LIBINTL
692 INTLLIBS
693 LTLIBICONV
694 LIBICONV
695 INTL_MACOSX_LIBS
696 MSGMERGE
697 XGETTEXT
698 GMSGFMT
699 MSGFMT
700 USE_NLS
701 MKINSTALLDIRS
702 ac_ct_AR
703 AR
704 RANLIB
705 AM_BACKSLASH
706 AM_DEFAULT_VERBOSITY
707 AM_DEFAULT_V
708 AM_V
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 am__untar
720 am__tar
721 AMTAR
722 am__leading_dot
723 SET_MAKE
724 AWK
725 mkdir_p
726 MKDIR_P
727 INSTALL_STRIP_PROGRAM
728 STRIP
729 install_sh
730 MAKEINFO
731 AUTOHEADER
732 AUTOMAKE
733 AUTOCONF
734 ACLOCAL
735 VERSION
736 PACKAGE
737 CYGPATH_W
738 am__isrc
739 INSTALL_DATA
740 INSTALL_SCRIPT
741 INSTALL_PROGRAM
742 EGREP
743 GREP
744 CPP
745 OBJEXT
746 EXEEXT
747 ac_ct_CC
748 CPPFLAGS
749 LDFLAGS
750 CFLAGS
751 CC
752 target_os
753 target_vendor
754 target_cpu
755 target
756 host_os
757 host_vendor
758 host_cpu
759 host
760 build_os
761 build_vendor
762 build_cpu
763 build
764 target_alias
765 host_alias
766 build_alias
767 LIBS
768 ECHO_T
769 ECHO_N
770 ECHO_C
771 DEFS
772 mandir
773 localedir
774 libdir
775 psdir
776 pdfdir
777 dvidir
778 htmldir
779 infodir
780 docdir
781 oldincludedir
782 includedir
783 localstatedir
784 sharedstatedir
785 sysconfdir
786 datadir
787 datarootdir
788 libexecdir
789 sbindir
790 bindir
791 program_transform_name
792 prefix
793 exec_prefix
794 PACKAGE_URL
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL'
802 ac_subst_files=''
803 ac_user_opts='
804 enable_option_checking
805 enable_dependency_tracking
806 enable_silent_rules
807 enable_nls
808 with_gnu_ld
809 enable_rpath
810 with_libiconv_prefix
811 with_libiconv_type
812 with_libintl_prefix
813 with_libintl_type
814 enable_shared
815 enable_static
816 with_pic
817 enable_fast_install
818 enable_libtool_lock
819 enable_largefile
820 enable_werror_always
821 enable_maintainer_mode
822 enable_install_libbfd
823 with_system_zlib
824 enable_libctf_hash_debugging
825 '
826 ac_precious_vars='build_alias
827 host_alias
828 target_alias
829 CC
830 CFLAGS
831 LDFLAGS
832 LIBS
833 CPPFLAGS
834 CPP'
835
836
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
858
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
884
885 ac_prev=
886 ac_dashdash=
887 for ac_option
888 do
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\$ac_option
892 ac_prev=
893 continue
894 fi
895
896 case $ac_option in
897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *=) ac_optarg= ;;
899 *) ac_optarg=yes ;;
900 esac
901
902 # Accept the important Cygnus configure options, so we can diagnose typos.
903
904 case $ac_dashdash$ac_option in
905 --)
906 ac_dashdash=yes ;;
907
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 bindir=$ac_optarg ;;
912
913 -build | --build | --buil | --bui | --bu)
914 ac_prev=build_alias ;;
915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916 build_alias=$ac_optarg ;;
917
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923 cache_file=$ac_optarg ;;
924
925 --config-cache | -C)
926 cache_file=config.cache ;;
927
928 -datadir | --datadir | --datadi | --datad)
929 ac_prev=datadir ;;
930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
931 datadir=$ac_optarg ;;
932
933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
939
940 -disable-* | --disable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error $? "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949 "enable_$ac_useropt"
950 "*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=no ;;
955
956 -docdir | --docdir | --docdi | --doc | --do)
957 ac_prev=docdir ;;
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 docdir=$ac_optarg ;;
960
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 ac_prev=dvidir ;;
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 dvidir=$ac_optarg ;;
965
966 -enable-* | --enable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error $? "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975 "enable_$ac_useropt"
976 "*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=\$ac_optarg ;;
981
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
990
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
994
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1001
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1006
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1012
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1019
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1024
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1029
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1036
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1041
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1048
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1053
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1057
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1060 no_create=yes ;;
1061
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1065
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1074
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1079
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1086
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1093
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1110
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1115
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1120
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1124
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
1129 sbindir=$ac_optarg ;;
1130
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
1140 sharedstatedir=$ac_optarg ;;
1141
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
1145 site=$ac_optarg ;;
1146
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1151
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1158
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1163
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1166
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1169
1170 -with-* | --with-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=\$ac_optarg ;;
1185
1186 -without-* | --without-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1194 *"
1195 "with_$ac_useropt"
1196 "*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=no ;;
1201
1202 --x)
1203 # Obsolete; use --with-x.
1204 with_x=yes ;;
1205
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev=x_includes ;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211 x_includes=$ac_optarg ;;
1212
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev=x_libraries ;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218 x_libraries=$ac_optarg ;;
1219
1220 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221 Try \`$0 --help' for more information"
1222 ;;
1223
1224 *=*)
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
1227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
1229 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230 esac
1231 eval $ac_envvar=\$ac_optarg
1232 export $ac_envvar ;;
1233
1234 *)
1235 # FIXME: should be removed in autoconf 3.0.
1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1240 ;;
1241
1242 esac
1243 done
1244
1245 if test -n "$ac_prev"; then
1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247 as_fn_error $? "missing argument to $ac_option"
1248 fi
1249
1250 if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1252 no) ;;
1253 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255 esac
1256 fi
1257
1258 # Check all directory arguments for consistency.
1259 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir
1263 do
1264 eval ac_val=\$$ac_var
1265 # Remove trailing slashes.
1266 case $ac_val in
1267 */ )
1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\$ac_val;;
1270 esac
1271 # Be sure to have absolute directory names.
1272 case $ac_val in
1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 esac
1276 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277 done
1278
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1285
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 elif test "x$build_alias" != "x$host_alias"; then
1291 cross_compiling=yes
1292 fi
1293 fi
1294
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298 test "$silent" = yes && exec 6>/dev/null
1299
1300
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304 as_fn_error $? "working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 as_fn_error $? "pwd does not report name of working directory"
1307
1308
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311 ac_srcdir_defaulted=yes
1312 # Try the directory containing this script, then the parent directory.
1313 ac_confdir=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$as_myself" : 'X\(//\)[^/]' \| \
1316 X"$as_myself" : 'X\(//\)$' \| \
1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)[^/].*/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\).*/{
1332 s//\1/
1333 q
1334 }
1335 s/.*/./; q'`
1336 srcdir=$ac_confdir
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 srcdir=..
1339 fi
1340 else
1341 ac_srcdir_defaulted=no
1342 fi
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346 fi
1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 ac_abs_confdir=`(
1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350 pwd)`
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353 srcdir=.
1354 fi
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1358 case $srcdir in
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 esac
1361 for ac_var in $ac_precious_vars; do
1362 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_env_${ac_var}_value=\$${ac_var}
1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 done
1367
1368 #
1369 # Report the --help message.
1370 #
1371 if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1374 cat <<_ACEOF
1375 \`configure' configures libctf 1.2.0 to adapt to many kinds of systems.
1376
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1378
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE. See below for descriptions of some of the useful variables.
1381
1382 Defaults for the options are specified in brackets.
1383
1384 Configuration:
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
1389 -q, --quiet, --silent do not print \`checking ...' messages
1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394
1395 Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
1397 [$ac_default_prefix]
1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1399 [PREFIX]
1400
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1405
1406 For better control, use the options below.
1407
1408 Fine tuning of the installation directories:
1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/libctf]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1428 _ACEOF
1429
1430 cat <<\_ACEOF
1431
1432 Program names:
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1436
1437 System types:
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 --target=TARGET configure for building compilers for TARGET [HOST]
1441 _ACEOF
1442 fi
1443
1444 if test -n "$ac_init_help"; then
1445 case $ac_init_help in
1446 short | recursive ) echo "Configuration of libctf 1.2.0:";;
1447 esac
1448 cat <<\_ACEOF
1449
1450 Optional Features:
1451 --disable-option-checking ignore unrecognized --enable/--with options
1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1454 --enable-dependency-tracking
1455 do not reject slow dependency extractors
1456 --disable-dependency-tracking
1457 speeds up one-time build
1458 --enable-silent-rules less verbose build output (undo: "make V=1")
1459 --disable-silent-rules verbose build output (undo: "make V=0")
1460 --disable-nls do not use Native Language Support
1461 --disable-rpath do not hardcode runtime library paths
1462 --enable-shared[=PKGS] build shared libraries [default=no]
1463 --enable-static[=PKGS] build static libraries [default=yes]
1464 --enable-fast-install[=PKGS]
1465 optimize for fast installation [default=yes]
1466 --disable-libtool-lock avoid locking (might break parallel builds)
1467 --disable-largefile omit support for large files
1468 --enable-werror-always enable -Werror despite compiler version
1469 --enable-maintainer-mode
1470 enable make rules and dependencies not useful (and
1471 sometimes confusing) to the casual installer
1472 --enable-install-libbfd controls installation of libbfd and related headers
1473 --enable-libctf-hash-debugging
1474 Enable expensive debugging of CTF deduplication type
1475 hashing [default=no]
1476
1477 Optional Packages:
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-gnu-ld assume the C compiler uses GNU ld default=no
1481 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1482 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1483 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1484 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1485 --without-libintl-prefix don't search for libintl in includedir and libdir
1486 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1487 --with-pic try to use only PIC/non-PIC objects [default=use
1488 both]
1489 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1490 --with-system-zlib use installed libz
1491
1492 Some influential environment variables:
1493 CC C compiler command
1494 CFLAGS C compiler flags
1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1496 nonstandard directory <lib dir>
1497 LIBS libraries to pass to the linker, e.g. -l<library>
1498 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1499 you have headers in a nonstandard directory <include dir>
1500 CPP C preprocessor
1501
1502 Use these variables to override the choices made by `configure' or to help
1503 it to find libraries and programs with nonstandard names/locations.
1504
1505 Report bugs to the package provider.
1506 _ACEOF
1507 ac_status=$?
1508 fi
1509
1510 if test "$ac_init_help" = "recursive"; then
1511 # If there are subdirs, report their specific --help.
1512 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513 test -d "$ac_dir" ||
1514 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1515 continue
1516 ac_builddir=.
1517
1518 case "$ac_dir" in
1519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *)
1521 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1522 # A ".." for each directory in $ac_dir_suffix.
1523 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1524 case $ac_top_builddir_sub in
1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527 esac ;;
1528 esac
1529 ac_abs_top_builddir=$ac_pwd
1530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531 # for backward compatibility:
1532 ac_top_builddir=$ac_top_build_prefix
1533
1534 case $srcdir in
1535 .) # We are building in place.
1536 ac_srcdir=.
1537 ac_top_srcdir=$ac_top_builddir_sub
1538 ac_abs_top_srcdir=$ac_pwd ;;
1539 [\\/]* | ?:[\\/]* ) # Absolute name.
1540 ac_srcdir=$srcdir$ac_dir_suffix;
1541 ac_top_srcdir=$srcdir
1542 ac_abs_top_srcdir=$srcdir ;;
1543 *) # Relative name.
1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545 ac_top_srcdir=$ac_top_build_prefix$srcdir
1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1547 esac
1548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549
1550 cd "$ac_dir" || { ac_status=$?; continue; }
1551 # Check for guested configure.
1552 if test -f "$ac_srcdir/configure.gnu"; then
1553 echo &&
1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555 elif test -f "$ac_srcdir/configure"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure" --help=recursive
1558 else
1559 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560 fi || ac_status=$?
1561 cd "$ac_pwd" || { ac_status=$?; break; }
1562 done
1563 fi
1564
1565 test -n "$ac_init_help" && exit $ac_status
1566 if $ac_init_version; then
1567 cat <<\_ACEOF
1568 libctf configure 1.2.0
1569 generated by GNU Autoconf 2.69
1570
1571 Copyright (C) 2012 Free Software Foundation, Inc.
1572 This configure script is free software; the Free Software Foundation
1573 gives unlimited permission to copy, distribute and modify it.
1574 _ACEOF
1575 exit
1576 fi
1577
1578 ## ------------------------ ##
1579 ## Autoconf initialization. ##
1580 ## ------------------------ ##
1581
1582 # ac_fn_c_try_compile LINENO
1583 # --------------------------
1584 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1585 ac_fn_c_try_compile ()
1586 {
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 rm -f conftest.$ac_objext
1589 if { { ac_try="$ac_compile"
1590 case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_compile") 2>conftest.err
1597 ac_status=$?
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1602 fi
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } && {
1605 test -z "$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 } && test -s conftest.$ac_objext; then :
1608 ac_retval=0
1609 else
1610 $as_echo "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1612
1613 ac_retval=1
1614 fi
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616 as_fn_set_status $ac_retval
1617
1618 } # ac_fn_c_try_compile
1619
1620 # ac_fn_c_try_cpp LINENO
1621 # ----------------------
1622 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1623 ac_fn_c_try_cpp ()
1624 {
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 if { { ac_try="$ac_cpp conftest.$ac_ext"
1627 case "(($ac_try" in
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1634 ac_status=$?
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1639 fi
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } > conftest.i && {
1642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1643 test ! -s conftest.err
1644 }; then :
1645 ac_retval=0
1646 else
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1649
1650 ac_retval=1
1651 fi
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1654
1655 } # ac_fn_c_try_cpp
1656
1657 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1658 # -------------------------------------------------------
1659 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1660 # the include files in INCLUDES and setting the cache variable VAR
1661 # accordingly.
1662 ac_fn_c_check_header_mongrel ()
1663 {
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 if eval \${$3+:} false; then :
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1667 $as_echo_n "checking for $2... " >&6; }
1668 if eval \${$3+:} false; then :
1669 $as_echo_n "(cached) " >&6
1670 fi
1671 eval ac_res=\$$3
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673 $as_echo "$ac_res" >&6; }
1674 else
1675 # Is the header compilable?
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1677 $as_echo_n "checking $2 usability... " >&6; }
1678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1679 /* end confdefs.h. */
1680 $4
1681 #include <$2>
1682 _ACEOF
1683 if ac_fn_c_try_compile "$LINENO"; then :
1684 ac_header_compiler=yes
1685 else
1686 ac_header_compiler=no
1687 fi
1688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1690 $as_echo "$ac_header_compiler" >&6; }
1691
1692 # Is the header present?
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1694 $as_echo_n "checking $2 presence... " >&6; }
1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1696 /* end confdefs.h. */
1697 #include <$2>
1698 _ACEOF
1699 if ac_fn_c_try_cpp "$LINENO"; then :
1700 ac_header_preproc=yes
1701 else
1702 ac_header_preproc=no
1703 fi
1704 rm -f conftest.err conftest.i conftest.$ac_ext
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1706 $as_echo "$ac_header_preproc" >&6; }
1707
1708 # So? What about this header?
1709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1710 yes:no: )
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1712 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1714 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1715 ;;
1716 no:yes:* )
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1718 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1720 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1722 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1724 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1726 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1727 ;;
1728 esac
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730 $as_echo_n "checking for $2... " >&6; }
1731 if eval \${$3+:} false; then :
1732 $as_echo_n "(cached) " >&6
1733 else
1734 eval "$3=\$ac_header_compiler"
1735 fi
1736 eval ac_res=\$$3
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 $as_echo "$ac_res" >&6; }
1739 fi
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741
1742 } # ac_fn_c_check_header_mongrel
1743
1744 # ac_fn_c_try_run LINENO
1745 # ----------------------
1746 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1747 # that executables *can* be run.
1748 ac_fn_c_try_run ()
1749 {
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 if { { ac_try="$ac_link"
1752 case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755 esac
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_link") 2>&5
1759 ac_status=$?
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1762 { { case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_try") 2>&5
1769 ac_status=$?
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; }; }; then :
1772 ac_retval=0
1773 else
1774 $as_echo "$as_me: program exited with status $ac_status" >&5
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1777
1778 ac_retval=$ac_status
1779 fi
1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 as_fn_set_status $ac_retval
1783
1784 } # ac_fn_c_try_run
1785
1786 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1787 # -------------------------------------------------------
1788 # Tests whether HEADER exists and can be compiled using the include files in
1789 # INCLUDES, setting the cache variable VAR accordingly.
1790 ac_fn_c_check_header_compile ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if eval \${$3+:} false; then :
1796 $as_echo_n "(cached) " >&6
1797 else
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1800 $4
1801 #include <$2>
1802 _ACEOF
1803 if ac_fn_c_try_compile "$LINENO"; then :
1804 eval "$3=yes"
1805 else
1806 eval "$3=no"
1807 fi
1808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809 fi
1810 eval ac_res=\$$3
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812 $as_echo "$ac_res" >&6; }
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814
1815 } # ac_fn_c_check_header_compile
1816
1817 # ac_fn_c_try_link LINENO
1818 # -----------------------
1819 # Try to link conftest.$ac_ext, and return whether this succeeded.
1820 ac_fn_c_try_link ()
1821 {
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 rm -f conftest.$ac_objext conftest$ac_exeext
1824 if { { ac_try="$ac_link"
1825 case "(($ac_try" in
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1828 esac
1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_link") 2>conftest.err
1832 ac_status=$?
1833 if test -s conftest.err; then
1834 grep -v '^ *+' conftest.err >conftest.er1
1835 cat conftest.er1 >&5
1836 mv -f conftest.er1 conftest.err
1837 fi
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } && {
1840 test -z "$ac_c_werror_flag" ||
1841 test ! -s conftest.err
1842 } && test -s conftest$ac_exeext && {
1843 test "$cross_compiling" = yes ||
1844 test -x conftest$ac_exeext
1845 }; then :
1846 ac_retval=0
1847 else
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1850
1851 ac_retval=1
1852 fi
1853 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1854 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1855 # interfere with the next link command; also delete a directory that is
1856 # left behind by Apple's compiler. We do this before executing the actions.
1857 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 as_fn_set_status $ac_retval
1860
1861 } # ac_fn_c_try_link
1862
1863 # ac_fn_c_check_func LINENO FUNC VAR
1864 # ----------------------------------
1865 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1866 ac_fn_c_check_func ()
1867 {
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if eval \${$3+:} false; then :
1872 $as_echo_n "(cached) " >&6
1873 else
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1876 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1878 #define $2 innocuous_$2
1879
1880 /* System header to define __stub macros and hopefully few prototypes,
1881 which can conflict with char $2 (); below.
1882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1883 <limits.h> exists even on freestanding compilers. */
1884
1885 #ifdef __STDC__
1886 # include <limits.h>
1887 #else
1888 # include <assert.h>
1889 #endif
1890
1891 #undef $2
1892
1893 /* Override any GCC internal prototype to avoid an error.
1894 Use char because int might match the return type of a GCC
1895 builtin and then its argument prototype would still apply. */
1896 #ifdef __cplusplus
1897 extern "C"
1898 #endif
1899 char $2 ();
1900 /* The GNU C library defines this for functions which it implements
1901 to always fail with ENOSYS. Some functions are actually named
1902 something starting with __ and the normal name is an alias. */
1903 #if defined __stub_$2 || defined __stub___$2
1904 choke me
1905 #endif
1906
1907 int
1908 main ()
1909 {
1910 return $2 ();
1911 ;
1912 return 0;
1913 }
1914 _ACEOF
1915 if ac_fn_c_try_link "$LINENO"; then :
1916 eval "$3=yes"
1917 else
1918 eval "$3=no"
1919 fi
1920 rm -f core conftest.err conftest.$ac_objext \
1921 conftest$ac_exeext conftest.$ac_ext
1922 fi
1923 eval ac_res=\$$3
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927
1928 } # ac_fn_c_check_func
1929
1930 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1931 # ---------------------------------------------
1932 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1933 # accordingly.
1934 ac_fn_c_check_decl ()
1935 {
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 as_decl_name=`echo $2|sed 's/ *(.*//'`
1938 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1940 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1941 if eval \${$3+:} false; then :
1942 $as_echo_n "(cached) " >&6
1943 else
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 $4
1947 int
1948 main ()
1949 {
1950 #ifndef $as_decl_name
1951 #ifdef __cplusplus
1952 (void) $as_decl_use;
1953 #else
1954 (void) $as_decl_name;
1955 #endif
1956 #endif
1957
1958 ;
1959 return 0;
1960 }
1961 _ACEOF
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963 eval "$3=yes"
1964 else
1965 eval "$3=no"
1966 fi
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 fi
1969 eval ac_res=\$$3
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973
1974 } # ac_fn_c_check_decl
1975 cat >config.log <<_ACEOF
1976 This file contains any messages produced by compilers while
1977 running configure, to aid debugging if configure makes a mistake.
1978
1979 It was created by libctf $as_me 1.2.0, which was
1980 generated by GNU Autoconf 2.69. Invocation command line was
1981
1982 $ $0 $@
1983
1984 _ACEOF
1985 exec 5>>config.log
1986 {
1987 cat <<_ASUNAME
1988 ## --------- ##
1989 ## Platform. ##
1990 ## --------- ##
1991
1992 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1993 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1994 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1995 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1996 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1997
1998 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1999 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2000
2001 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2002 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2003 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2004 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2005 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2006 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2007 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2008
2009 _ASUNAME
2010
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014 IFS=$as_save_IFS
2015 test -z "$as_dir" && as_dir=.
2016 $as_echo "PATH: $as_dir"
2017 done
2018 IFS=$as_save_IFS
2019
2020 } >&5
2021
2022 cat >&5 <<_ACEOF
2023
2024
2025 ## ----------- ##
2026 ## Core tests. ##
2027 ## ----------- ##
2028
2029 _ACEOF
2030
2031
2032 # Keep a trace of the command line.
2033 # Strip out --no-create and --no-recursion so they do not pile up.
2034 # Strip out --silent because we don't want to record it for future runs.
2035 # Also quote any args containing shell meta-characters.
2036 # Make two passes to allow for proper duplicate-argument suppression.
2037 ac_configure_args=
2038 ac_configure_args0=
2039 ac_configure_args1=
2040 ac_must_keep_next=false
2041 for ac_pass in 1 2
2042 do
2043 for ac_arg
2044 do
2045 case $ac_arg in
2046 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2048 | -silent | --silent | --silen | --sile | --sil)
2049 continue ;;
2050 *\'*)
2051 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2052 esac
2053 case $ac_pass in
2054 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2055 2)
2056 as_fn_append ac_configure_args1 " '$ac_arg'"
2057 if test $ac_must_keep_next = true; then
2058 ac_must_keep_next=false # Got value, back to normal.
2059 else
2060 case $ac_arg in
2061 *=* | --config-cache | -C | -disable-* | --disable-* \
2062 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2063 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2064 | -with-* | --with-* | -without-* | --without-* | --x)
2065 case "$ac_configure_args0 " in
2066 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2067 esac
2068 ;;
2069 -* ) ac_must_keep_next=true ;;
2070 esac
2071 fi
2072 as_fn_append ac_configure_args " '$ac_arg'"
2073 ;;
2074 esac
2075 done
2076 done
2077 { ac_configure_args0=; unset ac_configure_args0;}
2078 { ac_configure_args1=; unset ac_configure_args1;}
2079
2080 # When interrupted or exit'd, cleanup temporary files, and complete
2081 # config.log. We remove comments because anyway the quotes in there
2082 # would cause problems or look ugly.
2083 # WARNING: Use '\'' to represent an apostrophe within the trap.
2084 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2085 trap 'exit_status=$?
2086 # Save into config.log some information that might help in debugging.
2087 {
2088 echo
2089
2090 $as_echo "## ---------------- ##
2091 ## Cache variables. ##
2092 ## ---------------- ##"
2093 echo
2094 # The following way of writing the cache mishandles newlines in values,
2095 (
2096 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2097 eval ac_val=\$$ac_var
2098 case $ac_val in #(
2099 *${as_nl}*)
2100 case $ac_var in #(
2101 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2102 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2103 esac
2104 case $ac_var in #(
2105 _ | IFS | as_nl) ;; #(
2106 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2107 *) { eval $ac_var=; unset $ac_var;} ;;
2108 esac ;;
2109 esac
2110 done
2111 (set) 2>&1 |
2112 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2113 *${as_nl}ac_space=\ *)
2114 sed -n \
2115 "s/'\''/'\''\\\\'\'''\''/g;
2116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2117 ;; #(
2118 *)
2119 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2120 ;;
2121 esac |
2122 sort
2123 )
2124 echo
2125
2126 $as_echo "## ----------------- ##
2127 ## Output variables. ##
2128 ## ----------------- ##"
2129 echo
2130 for ac_var in $ac_subst_vars
2131 do
2132 eval ac_val=\$$ac_var
2133 case $ac_val in
2134 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2135 esac
2136 $as_echo "$ac_var='\''$ac_val'\''"
2137 done | sort
2138 echo
2139
2140 if test -n "$ac_subst_files"; then
2141 $as_echo "## ------------------- ##
2142 ## File substitutions. ##
2143 ## ------------------- ##"
2144 echo
2145 for ac_var in $ac_subst_files
2146 do
2147 eval ac_val=\$$ac_var
2148 case $ac_val in
2149 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2150 esac
2151 $as_echo "$ac_var='\''$ac_val'\''"
2152 done | sort
2153 echo
2154 fi
2155
2156 if test -s confdefs.h; then
2157 $as_echo "## ----------- ##
2158 ## confdefs.h. ##
2159 ## ----------- ##"
2160 echo
2161 cat confdefs.h
2162 echo
2163 fi
2164 test "$ac_signal" != 0 &&
2165 $as_echo "$as_me: caught signal $ac_signal"
2166 $as_echo "$as_me: exit $exit_status"
2167 } >&5
2168 rm -f core *.core core.conftest.* &&
2169 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2170 exit $exit_status
2171 ' 0
2172 for ac_signal in 1 2 13 15; do
2173 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2174 done
2175 ac_signal=0
2176
2177 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2178 rm -f -r conftest* confdefs.h
2179
2180 $as_echo "/* confdefs.h */" > confdefs.h
2181
2182 # Predefined preprocessor variables.
2183
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_NAME "$PACKAGE_NAME"
2186 _ACEOF
2187
2188 cat >>confdefs.h <<_ACEOF
2189 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2190 _ACEOF
2191
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2194 _ACEOF
2195
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_STRING "$PACKAGE_STRING"
2198 _ACEOF
2199
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2202 _ACEOF
2203
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_URL "$PACKAGE_URL"
2206 _ACEOF
2207
2208
2209 # Let the site file select an alternate cache file if it wants to.
2210 # Prefer an explicitly selected file to automatically selected ones.
2211 ac_site_file1=NONE
2212 ac_site_file2=NONE
2213 if test -n "$CONFIG_SITE"; then
2214 # We do not want a PATH search for config.site.
2215 case $CONFIG_SITE in #((
2216 -*) ac_site_file1=./$CONFIG_SITE;;
2217 */*) ac_site_file1=$CONFIG_SITE;;
2218 *) ac_site_file1=./$CONFIG_SITE;;
2219 esac
2220 elif test "x$prefix" != xNONE; then
2221 ac_site_file1=$prefix/share/config.site
2222 ac_site_file2=$prefix/etc/config.site
2223 else
2224 ac_site_file1=$ac_default_prefix/share/config.site
2225 ac_site_file2=$ac_default_prefix/etc/config.site
2226 fi
2227 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2228 do
2229 test "x$ac_site_file" = xNONE && continue
2230 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2232 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2233 sed 's/^/| /' "$ac_site_file" >&5
2234 . "$ac_site_file" \
2235 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2237 as_fn_error $? "failed to load site script $ac_site_file
2238 See \`config.log' for more details" "$LINENO" 5; }
2239 fi
2240 done
2241
2242 if test -r "$cache_file"; then
2243 # Some versions of bash will fail to source /dev/null (special files
2244 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2245 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2247 $as_echo "$as_me: loading cache $cache_file" >&6;}
2248 case $cache_file in
2249 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2250 *) . "./$cache_file";;
2251 esac
2252 fi
2253 else
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2255 $as_echo "$as_me: creating cache $cache_file" >&6;}
2256 >$cache_file
2257 fi
2258
2259 gt_needs="$gt_needs "
2260 as_fn_append ac_header_list " stdlib.h"
2261 as_fn_append ac_header_list " unistd.h"
2262 as_fn_append ac_header_list " sys/param.h"
2263 as_fn_append ac_func_list " qsort_r"
2264 # Check that the precious variables saved in the cache have kept the same
2265 # value.
2266 ac_cache_corrupted=false
2267 for ac_var in $ac_precious_vars; do
2268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2269 eval ac_new_set=\$ac_env_${ac_var}_set
2270 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2271 eval ac_new_val=\$ac_env_${ac_var}_value
2272 case $ac_old_set,$ac_new_set in
2273 set,)
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2275 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2276 ac_cache_corrupted=: ;;
2277 ,set)
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2279 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2280 ac_cache_corrupted=: ;;
2281 ,);;
2282 *)
2283 if test "x$ac_old_val" != "x$ac_new_val"; then
2284 # differences in whitespace do not lead to failure.
2285 ac_old_val_w=`echo x $ac_old_val`
2286 ac_new_val_w=`echo x $ac_new_val`
2287 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2289 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2290 ac_cache_corrupted=:
2291 else
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2293 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2294 eval $ac_var=\$ac_old_val
2295 fi
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2297 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2299 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2300 fi;;
2301 esac
2302 # Pass precious variables to config.status.
2303 if test "$ac_new_set" = set; then
2304 case $ac_new_val in
2305 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2306 *) ac_arg=$ac_var=$ac_new_val ;;
2307 esac
2308 case " $ac_configure_args " in
2309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2310 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2311 esac
2312 fi
2313 done
2314 if $ac_cache_corrupted; then
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2318 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2319 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2320 fi
2321 ## -------------------- ##
2322 ## Main body of script. ##
2323 ## -------------------- ##
2324
2325 ac_ext=c
2326 ac_cpp='$CPP $CPPFLAGS'
2327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2330
2331
2332
2333
2334
2335
2336 ac_aux_dir=
2337 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2338 if test -f "$ac_dir/install-sh"; then
2339 ac_aux_dir=$ac_dir
2340 ac_install_sh="$ac_aux_dir/install-sh -c"
2341 break
2342 elif test -f "$ac_dir/install.sh"; then
2343 ac_aux_dir=$ac_dir
2344 ac_install_sh="$ac_aux_dir/install.sh -c"
2345 break
2346 elif test -f "$ac_dir/shtool"; then
2347 ac_aux_dir=$ac_dir
2348 ac_install_sh="$ac_aux_dir/shtool install -c"
2349 break
2350 fi
2351 done
2352 if test -z "$ac_aux_dir"; then
2353 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2354 fi
2355
2356 # These three variables are undocumented and unsupported,
2357 # and are intended to be withdrawn in a future Autoconf release.
2358 # They can cause serious problems if a builder's source tree is in a directory
2359 # whose full name contains unusual characters.
2360 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2361 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2362 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2363
2364
2365 # Make sure we can run config.sub.
2366 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2367 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2368
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2370 $as_echo_n "checking build system type... " >&6; }
2371 if ${ac_cv_build+:} false; then :
2372 $as_echo_n "(cached) " >&6
2373 else
2374 ac_build_alias=$build_alias
2375 test "x$ac_build_alias" = x &&
2376 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2377 test "x$ac_build_alias" = x &&
2378 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2379 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2380 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2381
2382 fi
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2384 $as_echo "$ac_cv_build" >&6; }
2385 case $ac_cv_build in
2386 *-*-*) ;;
2387 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2388 esac
2389 build=$ac_cv_build
2390 ac_save_IFS=$IFS; IFS='-'
2391 set x $ac_cv_build
2392 shift
2393 build_cpu=$1
2394 build_vendor=$2
2395 shift; shift
2396 # Remember, the first character of IFS is used to create $*,
2397 # except with old shells:
2398 build_os=$*
2399 IFS=$ac_save_IFS
2400 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2401
2402
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2404 $as_echo_n "checking host system type... " >&6; }
2405 if ${ac_cv_host+:} false; then :
2406 $as_echo_n "(cached) " >&6
2407 else
2408 if test "x$host_alias" = x; then
2409 ac_cv_host=$ac_cv_build
2410 else
2411 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2412 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2413 fi
2414
2415 fi
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2417 $as_echo "$ac_cv_host" >&6; }
2418 case $ac_cv_host in
2419 *-*-*) ;;
2420 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2421 esac
2422 host=$ac_cv_host
2423 ac_save_IFS=$IFS; IFS='-'
2424 set x $ac_cv_host
2425 shift
2426 host_cpu=$1
2427 host_vendor=$2
2428 shift; shift
2429 # Remember, the first character of IFS is used to create $*,
2430 # except with old shells:
2431 host_os=$*
2432 IFS=$ac_save_IFS
2433 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2434
2435
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2437 $as_echo_n "checking target system type... " >&6; }
2438 if ${ac_cv_target+:} false; then :
2439 $as_echo_n "(cached) " >&6
2440 else
2441 if test "x$target_alias" = x; then
2442 ac_cv_target=$ac_cv_host
2443 else
2444 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2445 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2446 fi
2447
2448 fi
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2450 $as_echo "$ac_cv_target" >&6; }
2451 case $ac_cv_target in
2452 *-*-*) ;;
2453 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2454 esac
2455 target=$ac_cv_target
2456 ac_save_IFS=$IFS; IFS='-'
2457 set x $ac_cv_target
2458 shift
2459 target_cpu=$1
2460 target_vendor=$2
2461 shift; shift
2462 # Remember, the first character of IFS is used to create $*,
2463 # except with old shells:
2464 target_os=$*
2465 IFS=$ac_save_IFS
2466 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2467
2468
2469 # The aliases save the names the user supplied, while $host etc.
2470 # will get canonicalized.
2471 test -n "$target_alias" &&
2472 test "$program_prefix$program_suffix$program_transform_name" = \
2473 NONENONEs,x,x, &&
2474 program_prefix=${target_alias}-
2475 # Expand $ac_aux_dir to an absolute path.
2476 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2477
2478 ac_ext=c
2479 ac_cpp='$CPP $CPPFLAGS'
2480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2483 if test -n "$ac_tool_prefix"; then
2484 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2485 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2487 $as_echo_n "checking for $ac_word... " >&6; }
2488 if ${ac_cv_prog_CC+:} false; then :
2489 $as_echo_n "(cached) " >&6
2490 else
2491 if test -n "$CC"; then
2492 ac_cv_prog_CC="$CC" # Let the user override the test.
2493 else
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH
2496 do
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 break 2
2504 fi
2505 done
2506 done
2507 IFS=$as_save_IFS
2508
2509 fi
2510 fi
2511 CC=$ac_cv_prog_CC
2512 if test -n "$CC"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2514 $as_echo "$CC" >&6; }
2515 else
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2517 $as_echo "no" >&6; }
2518 fi
2519
2520
2521 fi
2522 if test -z "$ac_cv_prog_CC"; then
2523 ac_ct_CC=$CC
2524 # Extract the first word of "gcc", so it can be a program name with args.
2525 set dummy gcc; ac_word=$2
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2527 $as_echo_n "checking for $ac_word... " >&6; }
2528 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2529 $as_echo_n "(cached) " >&6
2530 else
2531 if test -n "$ac_ct_CC"; then
2532 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2533 else
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 for as_dir in $PATH
2536 do
2537 IFS=$as_save_IFS
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2541 ac_cv_prog_ac_ct_CC="gcc"
2542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 break 2
2544 fi
2545 done
2546 done
2547 IFS=$as_save_IFS
2548
2549 fi
2550 fi
2551 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2552 if test -n "$ac_ct_CC"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2554 $as_echo "$ac_ct_CC" >&6; }
2555 else
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2557 $as_echo "no" >&6; }
2558 fi
2559
2560 if test "x$ac_ct_CC" = x; then
2561 CC=""
2562 else
2563 case $cross_compiling:$ac_tool_warned in
2564 yes:)
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2567 ac_tool_warned=yes ;;
2568 esac
2569 CC=$ac_ct_CC
2570 fi
2571 else
2572 CC="$ac_cv_prog_CC"
2573 fi
2574
2575 if test -z "$CC"; then
2576 if test -n "$ac_tool_prefix"; then
2577 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2578 set dummy ${ac_tool_prefix}cc; ac_word=$2
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2580 $as_echo_n "checking for $ac_word... " >&6; }
2581 if ${ac_cv_prog_CC+:} false; then :
2582 $as_echo_n "(cached) " >&6
2583 else
2584 if test -n "$CC"; then
2585 ac_cv_prog_CC="$CC" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2589 do
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2594 ac_cv_prog_CC="${ac_tool_prefix}cc"
2595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 break 2
2597 fi
2598 done
2599 done
2600 IFS=$as_save_IFS
2601
2602 fi
2603 fi
2604 CC=$ac_cv_prog_CC
2605 if test -n "$CC"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2607 $as_echo "$CC" >&6; }
2608 else
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610 $as_echo "no" >&6; }
2611 fi
2612
2613
2614 fi
2615 fi
2616 if test -z "$CC"; then
2617 # Extract the first word of "cc", so it can be a program name with args.
2618 set dummy cc; ac_word=$2
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620 $as_echo_n "checking for $ac_word... " >&6; }
2621 if ${ac_cv_prog_CC+:} false; then :
2622 $as_echo_n "(cached) " >&6
2623 else
2624 if test -n "$CC"; then
2625 ac_cv_prog_CC="$CC" # Let the user override the test.
2626 else
2627 ac_prog_rejected=no
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2630 do
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2635 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2636 ac_prog_rejected=yes
2637 continue
2638 fi
2639 ac_cv_prog_CC="cc"
2640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2641 break 2
2642 fi
2643 done
2644 done
2645 IFS=$as_save_IFS
2646
2647 if test $ac_prog_rejected = yes; then
2648 # We found a bogon in the path, so make sure we never use it.
2649 set dummy $ac_cv_prog_CC
2650 shift
2651 if test $# != 0; then
2652 # We chose a different compiler from the bogus one.
2653 # However, it has the same basename, so the bogon will be chosen
2654 # first if we set CC to just the basename; use the full file name.
2655 shift
2656 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2657 fi
2658 fi
2659 fi
2660 fi
2661 CC=$ac_cv_prog_CC
2662 if test -n "$CC"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2664 $as_echo "$CC" >&6; }
2665 else
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2668 fi
2669
2670
2671 fi
2672 if test -z "$CC"; then
2673 if test -n "$ac_tool_prefix"; then
2674 for ac_prog in cl.exe
2675 do
2676 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2677 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679 $as_echo_n "checking for $ac_word... " >&6; }
2680 if ${ac_cv_prog_CC+:} false; then :
2681 $as_echo_n "(cached) " >&6
2682 else
2683 if test -n "$CC"; then
2684 ac_cv_prog_CC="$CC" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2696 fi
2697 done
2698 done
2699 IFS=$as_save_IFS
2700
2701 fi
2702 fi
2703 CC=$ac_cv_prog_CC
2704 if test -n "$CC"; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2706 $as_echo "$CC" >&6; }
2707 else
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709 $as_echo "no" >&6; }
2710 fi
2711
2712
2713 test -n "$CC" && break
2714 done
2715 fi
2716 if test -z "$CC"; then
2717 ac_ct_CC=$CC
2718 for ac_prog in cl.exe
2719 do
2720 # Extract the first word of "$ac_prog", so it can be a program name with args.
2721 set dummy $ac_prog; ac_word=$2
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2725 $as_echo_n "(cached) " >&6
2726 else
2727 if test -n "$ac_ct_CC"; then
2728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2732 do
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737 ac_cv_prog_ac_ct_CC="$ac_prog"
2738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2740 fi
2741 done
2742 done
2743 IFS=$as_save_IFS
2744
2745 fi
2746 fi
2747 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2748 if test -n "$ac_ct_CC"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2750 $as_echo "$ac_ct_CC" >&6; }
2751 else
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753 $as_echo "no" >&6; }
2754 fi
2755
2756
2757 test -n "$ac_ct_CC" && break
2758 done
2759
2760 if test "x$ac_ct_CC" = x; then
2761 CC=""
2762 else
2763 case $cross_compiling:$ac_tool_warned in
2764 yes:)
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2767 ac_tool_warned=yes ;;
2768 esac
2769 CC=$ac_ct_CC
2770 fi
2771 fi
2772
2773 fi
2774
2775
2776 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2778 as_fn_error $? "no acceptable C compiler found in \$PATH
2779 See \`config.log' for more details" "$LINENO" 5; }
2780
2781 # Provide some information about the compiler.
2782 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2783 set X $ac_compile
2784 ac_compiler=$2
2785 for ac_option in --version -v -V -qversion; do
2786 { { ac_try="$ac_compiler $ac_option >&5"
2787 case "(($ac_try" in
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2790 esac
2791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2792 $as_echo "$ac_try_echo"; } >&5
2793 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2794 ac_status=$?
2795 if test -s conftest.err; then
2796 sed '10a\
2797 ... rest of stderr output deleted ...
2798 10q' conftest.err >conftest.er1
2799 cat conftest.er1 >&5
2800 fi
2801 rm -f conftest.er1 conftest.err
2802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2803 test $ac_status = 0; }
2804 done
2805
2806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807 /* end confdefs.h. */
2808
2809 int
2810 main ()
2811 {
2812
2813 ;
2814 return 0;
2815 }
2816 _ACEOF
2817 ac_clean_files_save=$ac_clean_files
2818 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2819 # Try to create an executable without -o first, disregard a.out.
2820 # It will help us diagnose broken compilers, and finding out an intuition
2821 # of exeext.
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2823 $as_echo_n "checking whether the C compiler works... " >&6; }
2824 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2825
2826 # The possible output files:
2827 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2828
2829 ac_rmfiles=
2830 for ac_file in $ac_files
2831 do
2832 case $ac_file in
2833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2834 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2835 esac
2836 done
2837 rm -f $ac_rmfiles
2838
2839 if { { ac_try="$ac_link_default"
2840 case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2843 esac
2844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2845 $as_echo "$ac_try_echo"; } >&5
2846 (eval "$ac_link_default") 2>&5
2847 ac_status=$?
2848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2849 test $ac_status = 0; }; then :
2850 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2851 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2852 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2853 # so that the user can short-circuit this test for compilers unknown to
2854 # Autoconf.
2855 for ac_file in $ac_files ''
2856 do
2857 test -f "$ac_file" || continue
2858 case $ac_file in
2859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2860 ;;
2861 [ab].out )
2862 # We found the default executable, but exeext='' is most
2863 # certainly right.
2864 break;;
2865 *.* )
2866 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2867 then :; else
2868 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2869 fi
2870 # We set ac_cv_exeext here because the later test for it is not
2871 # safe: cross compilers may not add the suffix if given an `-o'
2872 # argument, so we may need to know it at that point already.
2873 # Even if this section looks crufty: it has the advantage of
2874 # actually working.
2875 break;;
2876 * )
2877 break;;
2878 esac
2879 done
2880 test "$ac_cv_exeext" = no && ac_cv_exeext=
2881
2882 else
2883 ac_file=''
2884 fi
2885 if test -z "$ac_file"; then :
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887 $as_echo "no" >&6; }
2888 $as_echo "$as_me: failed program was:" >&5
2889 sed 's/^/| /' conftest.$ac_ext >&5
2890
2891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2893 as_fn_error 77 "C compiler cannot create executables
2894 See \`config.log' for more details" "$LINENO" 5; }
2895 else
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2897 $as_echo "yes" >&6; }
2898 fi
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2900 $as_echo_n "checking for C compiler default output file name... " >&6; }
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2902 $as_echo "$ac_file" >&6; }
2903 ac_exeext=$ac_cv_exeext
2904
2905 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2906 ac_clean_files=$ac_clean_files_save
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2908 $as_echo_n "checking for suffix of executables... " >&6; }
2909 if { { ac_try="$ac_link"
2910 case "(($ac_try" in
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2913 esac
2914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2915 $as_echo "$ac_try_echo"; } >&5
2916 (eval "$ac_link") 2>&5
2917 ac_status=$?
2918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2919 test $ac_status = 0; }; then :
2920 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2921 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2922 # work properly (i.e., refer to `conftest.exe'), while it won't with
2923 # `rm'.
2924 for ac_file in conftest.exe conftest conftest.*; do
2925 test -f "$ac_file" || continue
2926 case $ac_file in
2927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2928 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2929 break;;
2930 * ) break;;
2931 esac
2932 done
2933 else
2934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2936 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2937 See \`config.log' for more details" "$LINENO" 5; }
2938 fi
2939 rm -f conftest conftest$ac_cv_exeext
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2941 $as_echo "$ac_cv_exeext" >&6; }
2942
2943 rm -f conftest.$ac_ext
2944 EXEEXT=$ac_cv_exeext
2945 ac_exeext=$EXEEXT
2946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2947 /* end confdefs.h. */
2948 #include <stdio.h>
2949 int
2950 main ()
2951 {
2952 FILE *f = fopen ("conftest.out", "w");
2953 return ferror (f) || fclose (f) != 0;
2954
2955 ;
2956 return 0;
2957 }
2958 _ACEOF
2959 ac_clean_files="$ac_clean_files conftest.out"
2960 # Check that the compiler produces executables we can run. If not, either
2961 # the compiler is broken, or we cross compile.
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2963 $as_echo_n "checking whether we are cross compiling... " >&6; }
2964 if test "$cross_compiling" != yes; then
2965 { { ac_try="$ac_link"
2966 case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2969 esac
2970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2971 $as_echo "$ac_try_echo"; } >&5
2972 (eval "$ac_link") 2>&5
2973 ac_status=$?
2974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2975 test $ac_status = 0; }
2976 if { ac_try='./conftest$ac_cv_exeext'
2977 { { case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980 esac
2981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2982 $as_echo "$ac_try_echo"; } >&5
2983 (eval "$ac_try") 2>&5
2984 ac_status=$?
2985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2986 test $ac_status = 0; }; }; then
2987 cross_compiling=no
2988 else
2989 if test "$cross_compiling" = maybe; then
2990 cross_compiling=yes
2991 else
2992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2994 as_fn_error $? "cannot run C compiled programs.
2995 If you meant to cross compile, use \`--host'.
2996 See \`config.log' for more details" "$LINENO" 5; }
2997 fi
2998 fi
2999 fi
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3001 $as_echo "$cross_compiling" >&6; }
3002
3003 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3004 ac_clean_files=$ac_clean_files_save
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3006 $as_echo_n "checking for suffix of object files... " >&6; }
3007 if ${ac_cv_objext+:} false; then :
3008 $as_echo_n "(cached) " >&6
3009 else
3010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3011 /* end confdefs.h. */
3012
3013 int
3014 main ()
3015 {
3016
3017 ;
3018 return 0;
3019 }
3020 _ACEOF
3021 rm -f conftest.o conftest.obj
3022 if { { ac_try="$ac_compile"
3023 case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3026 esac
3027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3028 $as_echo "$ac_try_echo"; } >&5
3029 (eval "$ac_compile") 2>&5
3030 ac_status=$?
3031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3032 test $ac_status = 0; }; then :
3033 for ac_file in conftest.o conftest.obj conftest.*; do
3034 test -f "$ac_file" || continue;
3035 case $ac_file in
3036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3037 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3038 break;;
3039 esac
3040 done
3041 else
3042 $as_echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3044
3045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3047 as_fn_error $? "cannot compute suffix of object files: cannot compile
3048 See \`config.log' for more details" "$LINENO" 5; }
3049 fi
3050 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3051 fi
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3053 $as_echo "$ac_cv_objext" >&6; }
3054 OBJEXT=$ac_cv_objext
3055 ac_objext=$OBJEXT
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3057 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3058 if ${ac_cv_c_compiler_gnu+:} false; then :
3059 $as_echo_n "(cached) " >&6
3060 else
3061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3062 /* end confdefs.h. */
3063
3064 int
3065 main ()
3066 {
3067 #ifndef __GNUC__
3068 choke me
3069 #endif
3070
3071 ;
3072 return 0;
3073 }
3074 _ACEOF
3075 if ac_fn_c_try_compile "$LINENO"; then :
3076 ac_compiler_gnu=yes
3077 else
3078 ac_compiler_gnu=no
3079 fi
3080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3082
3083 fi
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3085 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3086 if test $ac_compiler_gnu = yes; then
3087 GCC=yes
3088 else
3089 GCC=
3090 fi
3091 ac_test_CFLAGS=${CFLAGS+set}
3092 ac_save_CFLAGS=$CFLAGS
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3094 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3095 if ${ac_cv_prog_cc_g+:} false; then :
3096 $as_echo_n "(cached) " >&6
3097 else
3098 ac_save_c_werror_flag=$ac_c_werror_flag
3099 ac_c_werror_flag=yes
3100 ac_cv_prog_cc_g=no
3101 CFLAGS="-g"
3102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3103 /* end confdefs.h. */
3104
3105 int
3106 main ()
3107 {
3108
3109 ;
3110 return 0;
3111 }
3112 _ACEOF
3113 if ac_fn_c_try_compile "$LINENO"; then :
3114 ac_cv_prog_cc_g=yes
3115 else
3116 CFLAGS=""
3117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3118 /* end confdefs.h. */
3119
3120 int
3121 main ()
3122 {
3123
3124 ;
3125 return 0;
3126 }
3127 _ACEOF
3128 if ac_fn_c_try_compile "$LINENO"; then :
3129
3130 else
3131 ac_c_werror_flag=$ac_save_c_werror_flag
3132 CFLAGS="-g"
3133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3134 /* end confdefs.h. */
3135
3136 int
3137 main ()
3138 {
3139
3140 ;
3141 return 0;
3142 }
3143 _ACEOF
3144 if ac_fn_c_try_compile "$LINENO"; then :
3145 ac_cv_prog_cc_g=yes
3146 fi
3147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3148 fi
3149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3150 fi
3151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3152 ac_c_werror_flag=$ac_save_c_werror_flag
3153 fi
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3155 $as_echo "$ac_cv_prog_cc_g" >&6; }
3156 if test "$ac_test_CFLAGS" = set; then
3157 CFLAGS=$ac_save_CFLAGS
3158 elif test $ac_cv_prog_cc_g = yes; then
3159 if test "$GCC" = yes; then
3160 CFLAGS="-g -O2"
3161 else
3162 CFLAGS="-g"
3163 fi
3164 else
3165 if test "$GCC" = yes; then
3166 CFLAGS="-O2"
3167 else
3168 CFLAGS=
3169 fi
3170 fi
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3172 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3173 if ${ac_cv_prog_cc_c89+:} false; then :
3174 $as_echo_n "(cached) " >&6
3175 else
3176 ac_cv_prog_cc_c89=no
3177 ac_save_CC=$CC
3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3179 /* end confdefs.h. */
3180 #include <stdarg.h>
3181 #include <stdio.h>
3182 struct stat;
3183 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3184 struct buf { int x; };
3185 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3186 static char *e (p, i)
3187 char **p;
3188 int i;
3189 {
3190 return p[i];
3191 }
3192 static char *f (char * (*g) (char **, int), char **p, ...)
3193 {
3194 char *s;
3195 va_list v;
3196 va_start (v,p);
3197 s = g (p, va_arg (v,int));
3198 va_end (v);
3199 return s;
3200 }
3201
3202 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3203 function prototypes and stuff, but not '\xHH' hex character constants.
3204 These don't provoke an error unfortunately, instead are silently treated
3205 as 'x'. The following induces an error, until -std is added to get
3206 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3207 array size at least. It's necessary to write '\x00'==0 to get something
3208 that's true only with -std. */
3209 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3210
3211 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3212 inside strings and character constants. */
3213 #define FOO(x) 'x'
3214 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3215
3216 int test (int i, double x);
3217 struct s1 {int (*f) (int a);};
3218 struct s2 {int (*f) (double a);};
3219 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3220 int argc;
3221 char **argv;
3222 int
3223 main ()
3224 {
3225 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3226 ;
3227 return 0;
3228 }
3229 _ACEOF
3230 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3231 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3232 do
3233 CC="$ac_save_CC $ac_arg"
3234 if ac_fn_c_try_compile "$LINENO"; then :
3235 ac_cv_prog_cc_c89=$ac_arg
3236 fi
3237 rm -f core conftest.err conftest.$ac_objext
3238 test "x$ac_cv_prog_cc_c89" != "xno" && break
3239 done
3240 rm -f conftest.$ac_ext
3241 CC=$ac_save_CC
3242
3243 fi
3244 # AC_CACHE_VAL
3245 case "x$ac_cv_prog_cc_c89" in
3246 x)
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3248 $as_echo "none needed" >&6; } ;;
3249 xno)
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3251 $as_echo "unsupported" >&6; } ;;
3252 *)
3253 CC="$CC $ac_cv_prog_cc_c89"
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3255 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3256 esac
3257 if test "x$ac_cv_prog_cc_c89" != xno; then :
3258
3259 fi
3260
3261 ac_ext=c
3262 ac_cpp='$CPP $CPPFLAGS'
3263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3266
3267 ac_ext=c
3268 ac_cpp='$CPP $CPPFLAGS'
3269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3273 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3274 if ${am_cv_prog_cc_c_o+:} false; then :
3275 $as_echo_n "(cached) " >&6
3276 else
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3279
3280 int
3281 main ()
3282 {
3283
3284 ;
3285 return 0;
3286 }
3287 _ACEOF
3288 # Make sure it works both with $CC and with simple cc.
3289 # Following AC_PROG_CC_C_O, we do the test twice because some
3290 # compilers refuse to overwrite an existing .o file with -o,
3291 # though they will create one.
3292 am_cv_prog_cc_c_o=yes
3293 for am_i in 1 2; do
3294 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3295 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } \
3299 && test -f conftest2.$ac_objext; then
3300 : OK
3301 else
3302 am_cv_prog_cc_c_o=no
3303 break
3304 fi
3305 done
3306 rm -f core conftest*
3307 unset am_i
3308 fi
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3310 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3311 if test "$am_cv_prog_cc_c_o" != yes; then
3312 # Losing compiler, so override with the script.
3313 # FIXME: It is wrong to rewrite CC.
3314 # But if we don't then we get into trouble of one sort or another.
3315 # A longer-term fix would be to have automake use am__CC in this case,
3316 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3317 CC="$am_aux_dir/compile $CC"
3318 fi
3319 ac_ext=c
3320 ac_cpp='$CPP $CPPFLAGS'
3321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324
3325
3326
3327 ac_ext=c
3328 ac_cpp='$CPP $CPPFLAGS'
3329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3333 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3334 # On Suns, sometimes $CPP names a directory.
3335 if test -n "$CPP" && test -d "$CPP"; then
3336 CPP=
3337 fi
3338 if test -z "$CPP"; then
3339 if ${ac_cv_prog_CPP+:} false; then :
3340 $as_echo_n "(cached) " >&6
3341 else
3342 # Double quotes because CPP needs to be expanded
3343 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3344 do
3345 ac_preproc_ok=false
3346 for ac_c_preproc_warn_flag in '' yes
3347 do
3348 # Use a header file that comes with gcc, so configuring glibc
3349 # with a fresh cross-compiler works.
3350 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3351 # <limits.h> exists even on freestanding compilers.
3352 # On the NeXT, cc -E runs the code through the compiler's parser,
3353 # not just through cpp. "Syntax error" is here to catch this case.
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3356 #ifdef __STDC__
3357 # include <limits.h>
3358 #else
3359 # include <assert.h>
3360 #endif
3361 Syntax error
3362 _ACEOF
3363 if ac_fn_c_try_cpp "$LINENO"; then :
3364
3365 else
3366 # Broken: fails on valid input.
3367 continue
3368 fi
3369 rm -f conftest.err conftest.i conftest.$ac_ext
3370
3371 # OK, works on sane cases. Now check whether nonexistent headers
3372 # can be detected and how.
3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h. */
3375 #include <ac_nonexistent.h>
3376 _ACEOF
3377 if ac_fn_c_try_cpp "$LINENO"; then :
3378 # Broken: success on invalid input.
3379 continue
3380 else
3381 # Passes both tests.
3382 ac_preproc_ok=:
3383 break
3384 fi
3385 rm -f conftest.err conftest.i conftest.$ac_ext
3386
3387 done
3388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3389 rm -f conftest.i conftest.err conftest.$ac_ext
3390 if $ac_preproc_ok; then :
3391 break
3392 fi
3393
3394 done
3395 ac_cv_prog_CPP=$CPP
3396
3397 fi
3398 CPP=$ac_cv_prog_CPP
3399 else
3400 ac_cv_prog_CPP=$CPP
3401 fi
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3403 $as_echo "$CPP" >&6; }
3404 ac_preproc_ok=false
3405 for ac_c_preproc_warn_flag in '' yes
3406 do
3407 # Use a header file that comes with gcc, so configuring glibc
3408 # with a fresh cross-compiler works.
3409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3410 # <limits.h> exists even on freestanding compilers.
3411 # On the NeXT, cc -E runs the code through the compiler's parser,
3412 # not just through cpp. "Syntax error" is here to catch this case.
3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414 /* end confdefs.h. */
3415 #ifdef __STDC__
3416 # include <limits.h>
3417 #else
3418 # include <assert.h>
3419 #endif
3420 Syntax error
3421 _ACEOF
3422 if ac_fn_c_try_cpp "$LINENO"; then :
3423
3424 else
3425 # Broken: fails on valid input.
3426 continue
3427 fi
3428 rm -f conftest.err conftest.i conftest.$ac_ext
3429
3430 # OK, works on sane cases. Now check whether nonexistent headers
3431 # can be detected and how.
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3434 #include <ac_nonexistent.h>
3435 _ACEOF
3436 if ac_fn_c_try_cpp "$LINENO"; then :
3437 # Broken: success on invalid input.
3438 continue
3439 else
3440 # Passes both tests.
3441 ac_preproc_ok=:
3442 break
3443 fi
3444 rm -f conftest.err conftest.i conftest.$ac_ext
3445
3446 done
3447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3448 rm -f conftest.i conftest.err conftest.$ac_ext
3449 if $ac_preproc_ok; then :
3450
3451 else
3452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3455 See \`config.log' for more details" "$LINENO" 5; }
3456 fi
3457
3458 ac_ext=c
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
3464
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3466 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3467 if ${ac_cv_path_GREP+:} false; then :
3468 $as_echo_n "(cached) " >&6
3469 else
3470 if test -z "$GREP"; then
3471 ac_path_GREP_found=false
3472 # Loop through the user's path and test for each of PROGNAME-LIST
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3475 do
3476 IFS=$as_save_IFS
3477 test -z "$as_dir" && as_dir=.
3478 for ac_prog in grep ggrep; do
3479 for ac_exec_ext in '' $ac_executable_extensions; do
3480 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3481 as_fn_executable_p "$ac_path_GREP" || continue
3482 # Check for GNU ac_path_GREP and select it if it is found.
3483 # Check for GNU $ac_path_GREP
3484 case `"$ac_path_GREP" --version 2>&1` in
3485 *GNU*)
3486 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3487 *)
3488 ac_count=0
3489 $as_echo_n 0123456789 >"conftest.in"
3490 while :
3491 do
3492 cat "conftest.in" "conftest.in" >"conftest.tmp"
3493 mv "conftest.tmp" "conftest.in"
3494 cp "conftest.in" "conftest.nl"
3495 $as_echo 'GREP' >> "conftest.nl"
3496 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3498 as_fn_arith $ac_count + 1 && ac_count=$as_val
3499 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3500 # Best one so far, save it but keep looking for a better one
3501 ac_cv_path_GREP="$ac_path_GREP"
3502 ac_path_GREP_max=$ac_count
3503 fi
3504 # 10*(2^10) chars as input seems more than enough
3505 test $ac_count -gt 10 && break
3506 done
3507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3508 esac
3509
3510 $ac_path_GREP_found && break 3
3511 done
3512 done
3513 done
3514 IFS=$as_save_IFS
3515 if test -z "$ac_cv_path_GREP"; then
3516 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3517 fi
3518 else
3519 ac_cv_path_GREP=$GREP
3520 fi
3521
3522 fi
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3524 $as_echo "$ac_cv_path_GREP" >&6; }
3525 GREP="$ac_cv_path_GREP"
3526
3527
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3529 $as_echo_n "checking for egrep... " >&6; }
3530 if ${ac_cv_path_EGREP+:} false; then :
3531 $as_echo_n "(cached) " >&6
3532 else
3533 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3534 then ac_cv_path_EGREP="$GREP -E"
3535 else
3536 if test -z "$EGREP"; then
3537 ac_path_EGREP_found=false
3538 # Loop through the user's path and test for each of PROGNAME-LIST
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3541 do
3542 IFS=$as_save_IFS
3543 test -z "$as_dir" && as_dir=.
3544 for ac_prog in egrep; do
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3547 as_fn_executable_p "$ac_path_EGREP" || continue
3548 # Check for GNU ac_path_EGREP and select it if it is found.
3549 # Check for GNU $ac_path_EGREP
3550 case `"$ac_path_EGREP" --version 2>&1` in
3551 *GNU*)
3552 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3553 *)
3554 ac_count=0
3555 $as_echo_n 0123456789 >"conftest.in"
3556 while :
3557 do
3558 cat "conftest.in" "conftest.in" >"conftest.tmp"
3559 mv "conftest.tmp" "conftest.in"
3560 cp "conftest.in" "conftest.nl"
3561 $as_echo 'EGREP' >> "conftest.nl"
3562 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3563 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3564 as_fn_arith $ac_count + 1 && ac_count=$as_val
3565 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3566 # Best one so far, save it but keep looking for a better one
3567 ac_cv_path_EGREP="$ac_path_EGREP"
3568 ac_path_EGREP_max=$ac_count
3569 fi
3570 # 10*(2^10) chars as input seems more than enough
3571 test $ac_count -gt 10 && break
3572 done
3573 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3574 esac
3575
3576 $ac_path_EGREP_found && break 3
3577 done
3578 done
3579 done
3580 IFS=$as_save_IFS
3581 if test -z "$ac_cv_path_EGREP"; then
3582 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3583 fi
3584 else
3585 ac_cv_path_EGREP=$EGREP
3586 fi
3587
3588 fi
3589 fi
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3591 $as_echo "$ac_cv_path_EGREP" >&6; }
3592 EGREP="$ac_cv_path_EGREP"
3593
3594
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3596 $as_echo_n "checking for ANSI C header files... " >&6; }
3597 if ${ac_cv_header_stdc+:} false; then :
3598 $as_echo_n "(cached) " >&6
3599 else
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3602 #include <stdlib.h>
3603 #include <stdarg.h>
3604 #include <string.h>
3605 #include <float.h>
3606
3607 int
3608 main ()
3609 {
3610
3611 ;
3612 return 0;
3613 }
3614 _ACEOF
3615 if ac_fn_c_try_compile "$LINENO"; then :
3616 ac_cv_header_stdc=yes
3617 else
3618 ac_cv_header_stdc=no
3619 fi
3620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621
3622 if test $ac_cv_header_stdc = yes; then
3623 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625 /* end confdefs.h. */
3626 #include <string.h>
3627
3628 _ACEOF
3629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3630 $EGREP "memchr" >/dev/null 2>&1; then :
3631
3632 else
3633 ac_cv_header_stdc=no
3634 fi
3635 rm -f conftest*
3636
3637 fi
3638
3639 if test $ac_cv_header_stdc = yes; then
3640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3643 #include <stdlib.h>
3644
3645 _ACEOF
3646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3647 $EGREP "free" >/dev/null 2>&1; then :
3648
3649 else
3650 ac_cv_header_stdc=no
3651 fi
3652 rm -f conftest*
3653
3654 fi
3655
3656 if test $ac_cv_header_stdc = yes; then
3657 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3658 if test "$cross_compiling" = yes; then :
3659 :
3660 else
3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662 /* end confdefs.h. */
3663 #include <ctype.h>
3664 #include <stdlib.h>
3665 #if ((' ' & 0x0FF) == 0x020)
3666 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3667 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3668 #else
3669 # define ISLOWER(c) \
3670 (('a' <= (c) && (c) <= 'i') \
3671 || ('j' <= (c) && (c) <= 'r') \
3672 || ('s' <= (c) && (c) <= 'z'))
3673 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3674 #endif
3675
3676 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3677 int
3678 main ()
3679 {
3680 int i;
3681 for (i = 0; i < 256; i++)
3682 if (XOR (islower (i), ISLOWER (i))
3683 || toupper (i) != TOUPPER (i))
3684 return 2;
3685 return 0;
3686 }
3687 _ACEOF
3688 if ac_fn_c_try_run "$LINENO"; then :
3689
3690 else
3691 ac_cv_header_stdc=no
3692 fi
3693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3694 conftest.$ac_objext conftest.beam conftest.$ac_ext
3695 fi
3696
3697 fi
3698 fi
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3700 $as_echo "$ac_cv_header_stdc" >&6; }
3701 if test $ac_cv_header_stdc = yes; then
3702
3703 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3704
3705 fi
3706
3707 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3708 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3709 inttypes.h stdint.h unistd.h
3710 do :
3711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3712 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3713 "
3714 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3715 cat >>confdefs.h <<_ACEOF
3716 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3717 _ACEOF
3718
3719 fi
3720
3721 done
3722
3723
3724
3725 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3726 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3727 MINIX=yes
3728 else
3729 MINIX=
3730 fi
3731
3732
3733 if test "$MINIX" = yes; then
3734
3735 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3736
3737
3738 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3739
3740
3741 $as_echo "#define _MINIX 1" >>confdefs.h
3742
3743 fi
3744
3745
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3747 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3748 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3749 $as_echo_n "(cached) " >&6
3750 else
3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h. */
3753
3754 # define __EXTENSIONS__ 1
3755 $ac_includes_default
3756 int
3757 main ()
3758 {
3759
3760 ;
3761 return 0;
3762 }
3763 _ACEOF
3764 if ac_fn_c_try_compile "$LINENO"; then :
3765 ac_cv_safe_to_define___extensions__=yes
3766 else
3767 ac_cv_safe_to_define___extensions__=no
3768 fi
3769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3770 fi
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3772 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3773 test $ac_cv_safe_to_define___extensions__ = yes &&
3774 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3775
3776 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3777
3778 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3779
3780 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3781
3782 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3783
3784
3785 am__api_version='1.15'
3786
3787 # Find a good install program. We prefer a C program (faster),
3788 # so one script is as good as another. But avoid the broken or
3789 # incompatible versions:
3790 # SysV /etc/install, /usr/sbin/install
3791 # SunOS /usr/etc/install
3792 # IRIX /sbin/install
3793 # AIX /bin/install
3794 # AmigaOS /C/install, which installs bootblocks on floppy discs
3795 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3796 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3797 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3798 # OS/2's system install, which has a completely different semantic
3799 # ./install, which can be erroneously created by make from ./install.sh.
3800 # Reject install programs that cannot install multiple files.
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3802 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3803 if test -z "$INSTALL"; then
3804 if ${ac_cv_path_install+:} false; then :
3805 $as_echo_n "(cached) " >&6
3806 else
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3809 do
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 # Account for people who put trailing slashes in PATH elements.
3813 case $as_dir/ in #((
3814 ./ | .// | /[cC]/* | \
3815 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3816 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3817 /usr/ucb/* ) ;;
3818 *)
3819 # OSF1 and SCO ODT 3.0 have their own names for install.
3820 # Don't use installbsd from OSF since it installs stuff as root
3821 # by default.
3822 for ac_prog in ginstall scoinst install; do
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3825 if test $ac_prog = install &&
3826 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3827 # AIX install. It has an incompatible calling convention.
3828 :
3829 elif test $ac_prog = install &&
3830 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3831 # program-specific install script used by HP pwplus--don't use.
3832 :
3833 else
3834 rm -rf conftest.one conftest.two conftest.dir
3835 echo one > conftest.one
3836 echo two > conftest.two
3837 mkdir conftest.dir
3838 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3839 test -s conftest.one && test -s conftest.two &&
3840 test -s conftest.dir/conftest.one &&
3841 test -s conftest.dir/conftest.two
3842 then
3843 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3844 break 3
3845 fi
3846 fi
3847 fi
3848 done
3849 done
3850 ;;
3851 esac
3852
3853 done
3854 IFS=$as_save_IFS
3855
3856 rm -rf conftest.one conftest.two conftest.dir
3857
3858 fi
3859 if test "${ac_cv_path_install+set}" = set; then
3860 INSTALL=$ac_cv_path_install
3861 else
3862 # As a last resort, use the slow shell script. Don't cache a
3863 # value for INSTALL within a source directory, because that will
3864 # break other packages using the cache if that directory is
3865 # removed, or if the value is a relative name.
3866 INSTALL=$ac_install_sh
3867 fi
3868 fi
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3870 $as_echo "$INSTALL" >&6; }
3871
3872 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3873 # It thinks the first close brace ends the variable substitution.
3874 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3875
3876 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3877
3878 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3879
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3881 $as_echo_n "checking whether build environment is sane... " >&6; }
3882 # Reject unsafe characters in $srcdir or the absolute working directory
3883 # name. Accept space and tab only in the latter.
3884 am_lf='
3885 '
3886 case `pwd` in
3887 *[\\\"\#\$\&\'\`$am_lf]*)
3888 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3889 esac
3890 case $srcdir in
3891 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3892 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3893 esac
3894
3895 # Do 'set' in a subshell so we don't clobber the current shell's
3896 # arguments. Must try -L first in case configure is actually a
3897 # symlink; some systems play weird games with the mod time of symlinks
3898 # (eg FreeBSD returns the mod time of the symlink's containing
3899 # directory).
3900 if (
3901 am_has_slept=no
3902 for am_try in 1 2; do
3903 echo "timestamp, slept: $am_has_slept" > conftest.file
3904 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3905 if test "$*" = "X"; then
3906 # -L didn't work.
3907 set X `ls -t "$srcdir/configure" conftest.file`
3908 fi
3909 if test "$*" != "X $srcdir/configure conftest.file" \
3910 && test "$*" != "X conftest.file $srcdir/configure"; then
3911
3912 # If neither matched, then we have a broken ls. This can happen
3913 # if, for instance, CONFIG_SHELL is bash and it inherits a
3914 # broken ls alias from the environment. This has actually
3915 # happened. Such a system could not be considered "sane".
3916 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3917 alias in your environment" "$LINENO" 5
3918 fi
3919 if test "$2" = conftest.file || test $am_try -eq 2; then
3920 break
3921 fi
3922 # Just in case.
3923 sleep 1
3924 am_has_slept=yes
3925 done
3926 test "$2" = conftest.file
3927 )
3928 then
3929 # Ok.
3930 :
3931 else
3932 as_fn_error $? "newly created file is older than distributed files!
3933 Check your system clock" "$LINENO" 5
3934 fi
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3936 $as_echo "yes" >&6; }
3937 # If we didn't sleep, we still need to ensure time stamps of config.status and
3938 # generated files are strictly newer.
3939 am_sleep_pid=
3940 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3941 ( sleep 1 ) &
3942 am_sleep_pid=$!
3943 fi
3944
3945 rm -f conftest.file
3946
3947 test "$program_prefix" != NONE &&
3948 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3949 # Use a double $ so make ignores it.
3950 test "$program_suffix" != NONE &&
3951 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3952 # Double any \ or $.
3953 # By default was `s,x,x', remove it if useless.
3954 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3955 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3956
3957 if test x"${MISSING+set}" != xset; then
3958 case $am_aux_dir in
3959 *\ * | *\ *)
3960 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3961 *)
3962 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3963 esac
3964 fi
3965 # Use eval to expand $SHELL
3966 if eval "$MISSING --is-lightweight"; then
3967 am_missing_run="$MISSING "
3968 else
3969 am_missing_run=
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3971 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3972 fi
3973
3974 if test x"${install_sh+set}" != xset; then
3975 case $am_aux_dir in
3976 *\ * | *\ *)
3977 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3978 *)
3979 install_sh="\${SHELL} $am_aux_dir/install-sh"
3980 esac
3981 fi
3982
3983 # Installed binaries are usually stripped using 'strip' when the user
3984 # run "make install-strip". However 'strip' might not be the right
3985 # tool to use in cross-compilation environments, therefore Automake
3986 # will honor the 'STRIP' environment variable to overrule this program.
3987 if test "$cross_compiling" != no; then
3988 if test -n "$ac_tool_prefix"; then
3989 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3990 set dummy ${ac_tool_prefix}strip; ac_word=$2
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3992 $as_echo_n "checking for $ac_word... " >&6; }
3993 if ${ac_cv_prog_STRIP+:} false; then :
3994 $as_echo_n "(cached) " >&6
3995 else
3996 if test -n "$STRIP"; then
3997 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3998 else
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in $PATH
4001 do
4002 IFS=$as_save_IFS
4003 test -z "$as_dir" && as_dir=.
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4006 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 break 2
4009 fi
4010 done
4011 done
4012 IFS=$as_save_IFS
4013
4014 fi
4015 fi
4016 STRIP=$ac_cv_prog_STRIP
4017 if test -n "$STRIP"; then
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4019 $as_echo "$STRIP" >&6; }
4020 else
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 $as_echo "no" >&6; }
4023 fi
4024
4025
4026 fi
4027 if test -z "$ac_cv_prog_STRIP"; then
4028 ac_ct_STRIP=$STRIP
4029 # Extract the first word of "strip", so it can be a program name with args.
4030 set dummy strip; ac_word=$2
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4032 $as_echo_n "checking for $ac_word... " >&6; }
4033 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 if test -n "$ac_ct_STRIP"; then
4037 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4038 else
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH
4041 do
4042 IFS=$as_save_IFS
4043 test -z "$as_dir" && as_dir=.
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4046 ac_cv_prog_ac_ct_STRIP="strip"
4047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 break 2
4049 fi
4050 done
4051 done
4052 IFS=$as_save_IFS
4053
4054 fi
4055 fi
4056 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4057 if test -n "$ac_ct_STRIP"; then
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4059 $as_echo "$ac_ct_STRIP" >&6; }
4060 else
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062 $as_echo "no" >&6; }
4063 fi
4064
4065 if test "x$ac_ct_STRIP" = x; then
4066 STRIP=":"
4067 else
4068 case $cross_compiling:$ac_tool_warned in
4069 yes:)
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4072 ac_tool_warned=yes ;;
4073 esac
4074 STRIP=$ac_ct_STRIP
4075 fi
4076 else
4077 STRIP="$ac_cv_prog_STRIP"
4078 fi
4079
4080 fi
4081 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4082
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4084 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4085 if test -z "$MKDIR_P"; then
4086 if ${ac_cv_path_mkdir+:} false; then :
4087 $as_echo_n "(cached) " >&6
4088 else
4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4091 do
4092 IFS=$as_save_IFS
4093 test -z "$as_dir" && as_dir=.
4094 for ac_prog in mkdir gmkdir; do
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4097 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4098 'mkdir (GNU coreutils) '* | \
4099 'mkdir (coreutils) '* | \
4100 'mkdir (fileutils) '4.1*)
4101 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4102 break 3;;
4103 esac
4104 done
4105 done
4106 done
4107 IFS=$as_save_IFS
4108
4109 fi
4110
4111 test -d ./--version && rmdir ./--version
4112 if test "${ac_cv_path_mkdir+set}" = set; then
4113 MKDIR_P="$ac_cv_path_mkdir -p"
4114 else
4115 # As a last resort, use the slow shell script. Don't cache a
4116 # value for MKDIR_P within a source directory, because that will
4117 # break other packages using the cache if that directory is
4118 # removed, or if the value is a relative name.
4119 MKDIR_P="$ac_install_sh -d"
4120 fi
4121 fi
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4123 $as_echo "$MKDIR_P" >&6; }
4124
4125 for ac_prog in gawk mawk nawk awk
4126 do
4127 # Extract the first word of "$ac_prog", so it can be a program name with args.
4128 set dummy $ac_prog; ac_word=$2
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 $as_echo_n "checking for $ac_word... " >&6; }
4131 if ${ac_cv_prog_AWK+:} false; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 if test -n "$AWK"; then
4135 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4136 else
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4139 do
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4144 ac_cv_prog_AWK="$ac_prog"
4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 break 2
4147 fi
4148 done
4149 done
4150 IFS=$as_save_IFS
4151
4152 fi
4153 fi
4154 AWK=$ac_cv_prog_AWK
4155 if test -n "$AWK"; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4157 $as_echo "$AWK" >&6; }
4158 else
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4161 fi
4162
4163
4164 test -n "$AWK" && break
4165 done
4166
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4168 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4169 set x ${MAKE-make}
4170 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4171 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4172 $as_echo_n "(cached) " >&6
4173 else
4174 cat >conftest.make <<\_ACEOF
4175 SHELL = /bin/sh
4176 all:
4177 @echo '@@@%%%=$(MAKE)=@@@%%%'
4178 _ACEOF
4179 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4180 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4181 *@@@%%%=?*=@@@%%%*)
4182 eval ac_cv_prog_make_${ac_make}_set=yes;;
4183 *)
4184 eval ac_cv_prog_make_${ac_make}_set=no;;
4185 esac
4186 rm -f conftest.make
4187 fi
4188 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4190 $as_echo "yes" >&6; }
4191 SET_MAKE=
4192 else
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 $as_echo "no" >&6; }
4195 SET_MAKE="MAKE=${MAKE-make}"
4196 fi
4197
4198 rm -rf .tst 2>/dev/null
4199 mkdir .tst 2>/dev/null
4200 if test -d .tst; then
4201 am__leading_dot=.
4202 else
4203 am__leading_dot=_
4204 fi
4205 rmdir .tst 2>/dev/null
4206
4207 DEPDIR="${am__leading_dot}deps"
4208
4209 ac_config_commands="$ac_config_commands depfiles"
4210
4211
4212 am_make=${MAKE-make}
4213 cat > confinc << 'END'
4214 am__doit:
4215 @echo this is the am__doit target
4216 .PHONY: am__doit
4217 END
4218 # If we don't find an include directive, just comment out the code.
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4220 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4221 am__include="#"
4222 am__quote=
4223 _am_result=none
4224 # First try GNU make style include.
4225 echo "include confinc" > confmf
4226 # Ignore all kinds of additional output from 'make'.
4227 case `$am_make -s -f confmf 2> /dev/null` in #(
4228 *the\ am__doit\ target*)
4229 am__include=include
4230 am__quote=
4231 _am_result=GNU
4232 ;;
4233 esac
4234 # Now try BSD make style include.
4235 if test "$am__include" = "#"; then
4236 echo '.include "confinc"' > confmf
4237 case `$am_make -s -f confmf 2> /dev/null` in #(
4238 *the\ am__doit\ target*)
4239 am__include=.include
4240 am__quote="\""
4241 _am_result=BSD
4242 ;;
4243 esac
4244 fi
4245
4246
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4248 $as_echo "$_am_result" >&6; }
4249 rm -f confinc confmf
4250
4251 # Check whether --enable-dependency-tracking was given.
4252 if test "${enable_dependency_tracking+set}" = set; then :
4253 enableval=$enable_dependency_tracking;
4254 fi
4255
4256 if test "x$enable_dependency_tracking" != xno; then
4257 am_depcomp="$ac_aux_dir/depcomp"
4258 AMDEPBACKSLASH='\'
4259 am__nodep='_no'
4260 fi
4261 if test "x$enable_dependency_tracking" != xno; then
4262 AMDEP_TRUE=
4263 AMDEP_FALSE='#'
4264 else
4265 AMDEP_TRUE='#'
4266 AMDEP_FALSE=
4267 fi
4268
4269
4270 # Check whether --enable-silent-rules was given.
4271 if test "${enable_silent_rules+set}" = set; then :
4272 enableval=$enable_silent_rules;
4273 fi
4274
4275 case $enable_silent_rules in # (((
4276 yes) AM_DEFAULT_VERBOSITY=0;;
4277 no) AM_DEFAULT_VERBOSITY=1;;
4278 *) AM_DEFAULT_VERBOSITY=1;;
4279 esac
4280 am_make=${MAKE-make}
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4282 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4283 if ${am_cv_make_support_nested_variables+:} false; then :
4284 $as_echo_n "(cached) " >&6
4285 else
4286 if $as_echo 'TRUE=$(BAR$(V))
4287 BAR0=false
4288 BAR1=true
4289 V=1
4290 am__doit:
4291 @$(TRUE)
4292 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4293 am_cv_make_support_nested_variables=yes
4294 else
4295 am_cv_make_support_nested_variables=no
4296 fi
4297 fi
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4299 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4300 if test $am_cv_make_support_nested_variables = yes; then
4301 AM_V='$(V)'
4302 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4303 else
4304 AM_V=$AM_DEFAULT_VERBOSITY
4305 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4306 fi
4307 AM_BACKSLASH='\'
4308
4309 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4310 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4311 # is not polluted with repeated "-I."
4312 am__isrc=' -I$(srcdir)'
4313 # test to see if srcdir already configured
4314 if test -f $srcdir/config.status; then
4315 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4316 fi
4317 fi
4318
4319 # test whether we have cygpath
4320 if test -z "$CYGPATH_W"; then
4321 if (cygpath --version) >/dev/null 2>/dev/null; then
4322 CYGPATH_W='cygpath -w'
4323 else
4324 CYGPATH_W=echo
4325 fi
4326 fi
4327
4328
4329 # Define the identity of the package.
4330 PACKAGE='libctf'
4331 VERSION='1.2.0'
4332
4333
4334 cat >>confdefs.h <<_ACEOF
4335 #define PACKAGE "$PACKAGE"
4336 _ACEOF
4337
4338
4339 cat >>confdefs.h <<_ACEOF
4340 #define VERSION "$VERSION"
4341 _ACEOF
4342
4343 # Some tools Automake needs.
4344
4345 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4346
4347
4348 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4349
4350
4351 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4352
4353
4354 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4355
4356
4357 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4358
4359 # For better backward compatibility. To be removed once Automake 1.9.x
4360 # dies out for good. For more background, see:
4361 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4362 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4363 mkdir_p='$(MKDIR_P)'
4364
4365 # We need awk for the "check" target (and possibly the TAP driver). The
4366 # system "awk" is bad on some platforms.
4367 # Always define AMTAR for backward compatibility. Yes, it's still used
4368 # in the wild :-( We should find a proper way to deprecate it ...
4369 AMTAR='$${TAR-tar}'
4370
4371
4372 # We'll loop over all known methods to create a tar archive until one works.
4373 _am_tools='gnutar pax cpio none'
4374
4375 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4376
4377
4378
4379
4380
4381 depcc="$CC" am_compiler_list=
4382
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4384 $as_echo_n "checking dependency style of $depcc... " >&6; }
4385 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4386 $as_echo_n "(cached) " >&6
4387 else
4388 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4389 # We make a subdir and do the tests there. Otherwise we can end up
4390 # making bogus files that we don't know about and never remove. For
4391 # instance it was reported that on HP-UX the gcc test will end up
4392 # making a dummy file named 'D' -- because '-MD' means "put the output
4393 # in D".
4394 rm -rf conftest.dir
4395 mkdir conftest.dir
4396 # Copy depcomp to subdir because otherwise we won't find it if we're
4397 # using a relative directory.
4398 cp "$am_depcomp" conftest.dir
4399 cd conftest.dir
4400 # We will build objects and dependencies in a subdirectory because
4401 # it helps to detect inapplicable dependency modes. For instance
4402 # both Tru64's cc and ICC support -MD to output dependencies as a
4403 # side effect of compilation, but ICC will put the dependencies in
4404 # the current directory while Tru64 will put them in the object
4405 # directory.
4406 mkdir sub
4407
4408 am_cv_CC_dependencies_compiler_type=none
4409 if test "$am_compiler_list" = ""; then
4410 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4411 fi
4412 am__universal=false
4413 case " $depcc " in #(
4414 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4415 esac
4416
4417 for depmode in $am_compiler_list; do
4418 # Setup a source with many dependencies, because some compilers
4419 # like to wrap large dependency lists on column 80 (with \), and
4420 # we should not choose a depcomp mode which is confused by this.
4421 #
4422 # We need to recreate these files for each test, as the compiler may
4423 # overwrite some of them when testing with obscure command lines.
4424 # This happens at least with the AIX C compiler.
4425 : > sub/conftest.c
4426 for i in 1 2 3 4 5 6; do
4427 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4428 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4429 # Solaris 10 /bin/sh.
4430 echo '/* dummy */' > sub/conftst$i.h
4431 done
4432 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4433
4434 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4435 # mode. It turns out that the SunPro C++ compiler does not properly
4436 # handle '-M -o', and we need to detect this. Also, some Intel
4437 # versions had trouble with output in subdirs.
4438 am__obj=sub/conftest.${OBJEXT-o}
4439 am__minus_obj="-o $am__obj"
4440 case $depmode in
4441 gcc)
4442 # This depmode causes a compiler race in universal mode.
4443 test "$am__universal" = false || continue
4444 ;;
4445 nosideeffect)
4446 # After this tag, mechanisms are not by side-effect, so they'll
4447 # only be used when explicitly requested.
4448 if test "x$enable_dependency_tracking" = xyes; then
4449 continue
4450 else
4451 break
4452 fi
4453 ;;
4454 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4455 # This compiler won't grok '-c -o', but also, the minuso test has
4456 # not run yet. These depmodes are late enough in the game, and
4457 # so weak that their functioning should not be impacted.
4458 am__obj=conftest.${OBJEXT-o}
4459 am__minus_obj=
4460 ;;
4461 none) break ;;
4462 esac
4463 if depmode=$depmode \
4464 source=sub/conftest.c object=$am__obj \
4465 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4466 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4467 >/dev/null 2>conftest.err &&
4468 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4469 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4470 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4471 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4472 # icc doesn't choke on unknown options, it will just issue warnings
4473 # or remarks (even with -Werror). So we grep stderr for any message
4474 # that says an option was ignored or not supported.
4475 # When given -MP, icc 7.0 and 7.1 complain thusly:
4476 # icc: Command line warning: ignoring option '-M'; no argument required
4477 # The diagnosis changed in icc 8.0:
4478 # icc: Command line remark: option '-MP' not supported
4479 if (grep 'ignoring option' conftest.err ||
4480 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4481 am_cv_CC_dependencies_compiler_type=$depmode
4482 break
4483 fi
4484 fi
4485 done
4486
4487 cd ..
4488 rm -rf conftest.dir
4489 else
4490 am_cv_CC_dependencies_compiler_type=none
4491 fi
4492
4493 fi
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4495 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4496 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4497
4498 if
4499 test "x$enable_dependency_tracking" != xno \
4500 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4501 am__fastdepCC_TRUE=
4502 am__fastdepCC_FALSE='#'
4503 else
4504 am__fastdepCC_TRUE='#'
4505 am__fastdepCC_FALSE=
4506 fi
4507
4508
4509
4510 # POSIX will say in a future version that running "rm -f" with no argument
4511 # is OK; and we want to be able to make that assumption in our Makefile
4512 # recipes. So use an aggressive probe to check that the usage we want is
4513 # actually supported "in the wild" to an acceptable degree.
4514 # See automake bug#10828.
4515 # To make any issue more visible, cause the running configure to be aborted
4516 # by default if the 'rm' program in use doesn't match our expectations; the
4517 # user can still override this though.
4518 if rm -f && rm -fr && rm -rf; then : OK; else
4519 cat >&2 <<'END'
4520 Oops!
4521
4522 Your 'rm' program seems unable to run without file operands specified
4523 on the command line, even when the '-f' option is present. This is contrary
4524 to the behaviour of most rm programs out there, and not conforming with
4525 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4526
4527 Please tell [email protected] about your system, including the value
4528 of your $PATH and any error possibly output before this message. This
4529 can help us improve future automake versions.
4530
4531 END
4532 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4533 echo 'Configuration will proceed anyway, since you have set the' >&2
4534 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4535 echo >&2
4536 else
4537 cat >&2 <<'END'
4538 Aborting the configuration process, to ensure you take notice of the issue.
4539
4540 You can download and install GNU coreutils to get an 'rm' implementation
4541 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4542
4543 If you want to complete the configuration process using your problematic
4544 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4545 to "yes", and re-run configure.
4546
4547 END
4548 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4549 fi
4550 fi
4551
4552 # Check whether --enable-silent-rules was given.
4553 if test "${enable_silent_rules+set}" = set; then :
4554 enableval=$enable_silent_rules;
4555 fi
4556
4557 case $enable_silent_rules in # (((
4558 yes) AM_DEFAULT_VERBOSITY=0;;
4559 no) AM_DEFAULT_VERBOSITY=1;;
4560 *) AM_DEFAULT_VERBOSITY=0;;
4561 esac
4562 am_make=${MAKE-make}
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4564 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4565 if ${am_cv_make_support_nested_variables+:} false; then :
4566 $as_echo_n "(cached) " >&6
4567 else
4568 if $as_echo 'TRUE=$(BAR$(V))
4569 BAR0=false
4570 BAR1=true
4571 V=1
4572 am__doit:
4573 @$(TRUE)
4574 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4575 am_cv_make_support_nested_variables=yes
4576 else
4577 am_cv_make_support_nested_variables=no
4578 fi
4579 fi
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4581 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4582 if test $am_cv_make_support_nested_variables = yes; then
4583 AM_V='$(V)'
4584 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4585 else
4586 AM_V=$AM_DEFAULT_VERBOSITY
4587 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4588 fi
4589 AM_BACKSLASH='\'
4590
4591
4592 # Checks for programs.
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4594 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4595 set x ${MAKE-make}
4596 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4597 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 cat >conftest.make <<\_ACEOF
4601 SHELL = /bin/sh
4602 all:
4603 @echo '@@@%%%=$(MAKE)=@@@%%%'
4604 _ACEOF
4605 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4606 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4607 *@@@%%%=?*=@@@%%%*)
4608 eval ac_cv_prog_make_${ac_make}_set=yes;;
4609 *)
4610 eval ac_cv_prog_make_${ac_make}_set=no;;
4611 esac
4612 rm -f conftest.make
4613 fi
4614 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4616 $as_echo "yes" >&6; }
4617 SET_MAKE=
4618 else
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4620 $as_echo "no" >&6; }
4621 SET_MAKE="MAKE=${MAKE-make}"
4622 fi
4623
4624 ac_ext=c
4625 ac_cpp='$CPP $CPPFLAGS'
4626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4629 if test -n "$ac_tool_prefix"; then
4630 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4631 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if ${ac_cv_prog_CC+:} false; then :
4635 $as_echo_n "(cached) " >&6
4636 else
4637 if test -n "$CC"; then
4638 ac_cv_prog_CC="$CC" # Let the user override the test.
4639 else
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH
4642 do
4643 IFS=$as_save_IFS
4644 test -z "$as_dir" && as_dir=.
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4647 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 break 2
4650 fi
4651 done
4652 done
4653 IFS=$as_save_IFS
4654
4655 fi
4656 fi
4657 CC=$ac_cv_prog_CC
4658 if test -n "$CC"; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4660 $as_echo "$CC" >&6; }
4661 else
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4664 fi
4665
4666
4667 fi
4668 if test -z "$ac_cv_prog_CC"; then
4669 ac_ct_CC=$CC
4670 # Extract the first word of "gcc", so it can be a program name with args.
4671 set dummy gcc; ac_word=$2
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4673 $as_echo_n "checking for $ac_word... " >&6; }
4674 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 if test -n "$ac_ct_CC"; then
4678 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4679 else
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH
4682 do
4683 IFS=$as_save_IFS
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4687 ac_cv_prog_ac_ct_CC="gcc"
4688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 break 2
4690 fi
4691 done
4692 done
4693 IFS=$as_save_IFS
4694
4695 fi
4696 fi
4697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4698 if test -n "$ac_ct_CC"; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4700 $as_echo "$ac_ct_CC" >&6; }
4701 else
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703 $as_echo "no" >&6; }
4704 fi
4705
4706 if test "x$ac_ct_CC" = x; then
4707 CC=""
4708 else
4709 case $cross_compiling:$ac_tool_warned in
4710 yes:)
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4713 ac_tool_warned=yes ;;
4714 esac
4715 CC=$ac_ct_CC
4716 fi
4717 else
4718 CC="$ac_cv_prog_CC"
4719 fi
4720
4721 if test -z "$CC"; then
4722 if test -n "$ac_tool_prefix"; then
4723 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4724 set dummy ${ac_tool_prefix}cc; ac_word=$2
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4726 $as_echo_n "checking for $ac_word... " >&6; }
4727 if ${ac_cv_prog_CC+:} false; then :
4728 $as_echo_n "(cached) " >&6
4729 else
4730 if test -n "$CC"; then
4731 ac_cv_prog_CC="$CC" # Let the user override the test.
4732 else
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH
4735 do
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4740 ac_cv_prog_CC="${ac_tool_prefix}cc"
4741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4742 break 2
4743 fi
4744 done
4745 done
4746 IFS=$as_save_IFS
4747
4748 fi
4749 fi
4750 CC=$ac_cv_prog_CC
4751 if test -n "$CC"; then
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4753 $as_echo "$CC" >&6; }
4754 else
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756 $as_echo "no" >&6; }
4757 fi
4758
4759
4760 fi
4761 fi
4762 if test -z "$CC"; then
4763 # Extract the first word of "cc", so it can be a program name with args.
4764 set dummy cc; ac_word=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if ${ac_cv_prog_CC+:} false; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 if test -n "$CC"; then
4771 ac_cv_prog_CC="$CC" # Let the user override the test.
4772 else
4773 ac_prog_rejected=no
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 for as_dir in $PATH
4776 do
4777 IFS=$as_save_IFS
4778 test -z "$as_dir" && as_dir=.
4779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4781 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4782 ac_prog_rejected=yes
4783 continue
4784 fi
4785 ac_cv_prog_CC="cc"
4786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4787 break 2
4788 fi
4789 done
4790 done
4791 IFS=$as_save_IFS
4792
4793 if test $ac_prog_rejected = yes; then
4794 # We found a bogon in the path, so make sure we never use it.
4795 set dummy $ac_cv_prog_CC
4796 shift
4797 if test $# != 0; then
4798 # We chose a different compiler from the bogus one.
4799 # However, it has the same basename, so the bogon will be chosen
4800 # first if we set CC to just the basename; use the full file name.
4801 shift
4802 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4803 fi
4804 fi
4805 fi
4806 fi
4807 CC=$ac_cv_prog_CC
4808 if test -n "$CC"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4810 $as_echo "$CC" >&6; }
4811 else
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4814 fi
4815
4816
4817 fi
4818 if test -z "$CC"; then
4819 if test -n "$ac_tool_prefix"; then
4820 for ac_prog in cl.exe
4821 do
4822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825 $as_echo_n "checking for $ac_word... " >&6; }
4826 if ${ac_cv_prog_CC+:} false; then :
4827 $as_echo_n "(cached) " >&6
4828 else
4829 if test -n "$CC"; then
4830 ac_cv_prog_CC="$CC" # Let the user override the test.
4831 else
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4834 do
4835 IFS=$as_save_IFS
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4839 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 break 2
4842 fi
4843 done
4844 done
4845 IFS=$as_save_IFS
4846
4847 fi
4848 fi
4849 CC=$ac_cv_prog_CC
4850 if test -n "$CC"; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4852 $as_echo "$CC" >&6; }
4853 else
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855 $as_echo "no" >&6; }
4856 fi
4857
4858
4859 test -n "$CC" && break
4860 done
4861 fi
4862 if test -z "$CC"; then
4863 ac_ct_CC=$CC
4864 for ac_prog in cl.exe
4865 do
4866 # Extract the first word of "$ac_prog", so it can be a program name with args.
4867 set dummy $ac_prog; ac_word=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 if test -n "$ac_ct_CC"; then
4874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4875 else
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4878 do
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4883 ac_cv_prog_ac_ct_CC="$ac_prog"
4884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 break 2
4886 fi
4887 done
4888 done
4889 IFS=$as_save_IFS
4890
4891 fi
4892 fi
4893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4894 if test -n "$ac_ct_CC"; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4896 $as_echo "$ac_ct_CC" >&6; }
4897 else
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4900 fi
4901
4902
4903 test -n "$ac_ct_CC" && break
4904 done
4905
4906 if test "x$ac_ct_CC" = x; then
4907 CC=""
4908 else
4909 case $cross_compiling:$ac_tool_warned in
4910 yes:)
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4913 ac_tool_warned=yes ;;
4914 esac
4915 CC=$ac_ct_CC
4916 fi
4917 fi
4918
4919 fi
4920
4921
4922 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4924 as_fn_error $? "no acceptable C compiler found in \$PATH
4925 See \`config.log' for more details" "$LINENO" 5; }
4926
4927 # Provide some information about the compiler.
4928 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4929 set X $ac_compile
4930 ac_compiler=$2
4931 for ac_option in --version -v -V -qversion; do
4932 { { ac_try="$ac_compiler $ac_option >&5"
4933 case "(($ac_try" in
4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4936 esac
4937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4938 $as_echo "$ac_try_echo"; } >&5
4939 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4940 ac_status=$?
4941 if test -s conftest.err; then
4942 sed '10a\
4943 ... rest of stderr output deleted ...
4944 10q' conftest.err >conftest.er1
4945 cat conftest.er1 >&5
4946 fi
4947 rm -f conftest.er1 conftest.err
4948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4949 test $ac_status = 0; }
4950 done
4951
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4953 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4954 if ${ac_cv_c_compiler_gnu+:} false; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
4959
4960 int
4961 main ()
4962 {
4963 #ifndef __GNUC__
4964 choke me
4965 #endif
4966
4967 ;
4968 return 0;
4969 }
4970 _ACEOF
4971 if ac_fn_c_try_compile "$LINENO"; then :
4972 ac_compiler_gnu=yes
4973 else
4974 ac_compiler_gnu=no
4975 fi
4976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4977 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4978
4979 fi
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4981 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4982 if test $ac_compiler_gnu = yes; then
4983 GCC=yes
4984 else
4985 GCC=
4986 fi
4987 ac_test_CFLAGS=${CFLAGS+set}
4988 ac_save_CFLAGS=$CFLAGS
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4990 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4991 if ${ac_cv_prog_cc_g+:} false; then :
4992 $as_echo_n "(cached) " >&6
4993 else
4994 ac_save_c_werror_flag=$ac_c_werror_flag
4995 ac_c_werror_flag=yes
4996 ac_cv_prog_cc_g=no
4997 CFLAGS="-g"
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5000
5001 int
5002 main ()
5003 {
5004
5005 ;
5006 return 0;
5007 }
5008 _ACEOF
5009 if ac_fn_c_try_compile "$LINENO"; then :
5010 ac_cv_prog_cc_g=yes
5011 else
5012 CFLAGS=""
5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h. */
5015
5016 int
5017 main ()
5018 {
5019
5020 ;
5021 return 0;
5022 }
5023 _ACEOF
5024 if ac_fn_c_try_compile "$LINENO"; then :
5025
5026 else
5027 ac_c_werror_flag=$ac_save_c_werror_flag
5028 CFLAGS="-g"
5029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030 /* end confdefs.h. */
5031
5032 int
5033 main ()
5034 {
5035
5036 ;
5037 return 0;
5038 }
5039 _ACEOF
5040 if ac_fn_c_try_compile "$LINENO"; then :
5041 ac_cv_prog_cc_g=yes
5042 fi
5043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5044 fi
5045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5046 fi
5047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048 ac_c_werror_flag=$ac_save_c_werror_flag
5049 fi
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5051 $as_echo "$ac_cv_prog_cc_g" >&6; }
5052 if test "$ac_test_CFLAGS" = set; then
5053 CFLAGS=$ac_save_CFLAGS
5054 elif test $ac_cv_prog_cc_g = yes; then
5055 if test "$GCC" = yes; then
5056 CFLAGS="-g -O2"
5057 else
5058 CFLAGS="-g"
5059 fi
5060 else
5061 if test "$GCC" = yes; then
5062 CFLAGS="-O2"
5063 else
5064 CFLAGS=
5065 fi
5066 fi
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5068 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5069 if ${ac_cv_prog_cc_c89+:} false; then :
5070 $as_echo_n "(cached) " >&6
5071 else
5072 ac_cv_prog_cc_c89=no
5073 ac_save_CC=$CC
5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h. */
5076 #include <stdarg.h>
5077 #include <stdio.h>
5078 struct stat;
5079 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5080 struct buf { int x; };
5081 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5082 static char *e (p, i)
5083 char **p;
5084 int i;
5085 {
5086 return p[i];
5087 }
5088 static char *f (char * (*g) (char **, int), char **p, ...)
5089 {
5090 char *s;
5091 va_list v;
5092 va_start (v,p);
5093 s = g (p, va_arg (v,int));
5094 va_end (v);
5095 return s;
5096 }
5097
5098 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5099 function prototypes and stuff, but not '\xHH' hex character constants.
5100 These don't provoke an error unfortunately, instead are silently treated
5101 as 'x'. The following induces an error, until -std is added to get
5102 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5103 array size at least. It's necessary to write '\x00'==0 to get something
5104 that's true only with -std. */
5105 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5106
5107 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5108 inside strings and character constants. */
5109 #define FOO(x) 'x'
5110 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5111
5112 int test (int i, double x);
5113 struct s1 {int (*f) (int a);};
5114 struct s2 {int (*f) (double a);};
5115 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5116 int argc;
5117 char **argv;
5118 int
5119 main ()
5120 {
5121 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5122 ;
5123 return 0;
5124 }
5125 _ACEOF
5126 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5127 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5128 do
5129 CC="$ac_save_CC $ac_arg"
5130 if ac_fn_c_try_compile "$LINENO"; then :
5131 ac_cv_prog_cc_c89=$ac_arg
5132 fi
5133 rm -f core conftest.err conftest.$ac_objext
5134 test "x$ac_cv_prog_cc_c89" != "xno" && break
5135 done
5136 rm -f conftest.$ac_ext
5137 CC=$ac_save_CC
5138
5139 fi
5140 # AC_CACHE_VAL
5141 case "x$ac_cv_prog_cc_c89" in
5142 x)
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5144 $as_echo "none needed" >&6; } ;;
5145 xno)
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5147 $as_echo "unsupported" >&6; } ;;
5148 *)
5149 CC="$CC $ac_cv_prog_cc_c89"
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5151 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5152 esac
5153 if test "x$ac_cv_prog_cc_c89" != xno; then :
5154
5155 fi
5156
5157 ac_ext=c
5158 ac_cpp='$CPP $CPPFLAGS'
5159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5162
5163 ac_ext=c
5164 ac_cpp='$CPP $CPPFLAGS'
5165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5169 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5170 if ${am_cv_prog_cc_c_o+:} false; then :
5171 $as_echo_n "(cached) " >&6
5172 else
5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h. */
5175
5176 int
5177 main ()
5178 {
5179
5180 ;
5181 return 0;
5182 }
5183 _ACEOF
5184 # Make sure it works both with $CC and with simple cc.
5185 # Following AC_PROG_CC_C_O, we do the test twice because some
5186 # compilers refuse to overwrite an existing .o file with -o,
5187 # though they will create one.
5188 am_cv_prog_cc_c_o=yes
5189 for am_i in 1 2; do
5190 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5191 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5192 ac_status=$?
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } \
5195 && test -f conftest2.$ac_objext; then
5196 : OK
5197 else
5198 am_cv_prog_cc_c_o=no
5199 break
5200 fi
5201 done
5202 rm -f core conftest*
5203 unset am_i
5204 fi
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5206 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5207 if test "$am_cv_prog_cc_c_o" != yes; then
5208 # Losing compiler, so override with the script.
5209 # FIXME: It is wrong to rewrite CC.
5210 # But if we don't then we get into trouble of one sort or another.
5211 # A longer-term fix would be to have automake use am__CC in this case,
5212 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5213 CC="$am_aux_dir/compile $CC"
5214 fi
5215 ac_ext=c
5216 ac_cpp='$CPP $CPPFLAGS'
5217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5220
5221
5222 if test -n "$ac_tool_prefix"; then
5223 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5224 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5226 $as_echo_n "checking for $ac_word... " >&6; }
5227 if ${ac_cv_prog_RANLIB+:} false; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 if test -n "$RANLIB"; then
5231 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5232 else
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5235 do
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5240 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 break 2
5243 fi
5244 done
5245 done
5246 IFS=$as_save_IFS
5247
5248 fi
5249 fi
5250 RANLIB=$ac_cv_prog_RANLIB
5251 if test -n "$RANLIB"; then
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5253 $as_echo "$RANLIB" >&6; }
5254 else
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5257 fi
5258
5259
5260 fi
5261 if test -z "$ac_cv_prog_RANLIB"; then
5262 ac_ct_RANLIB=$RANLIB
5263 # Extract the first word of "ranlib", so it can be a program name with args.
5264 set dummy ranlib; ac_word=$2
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266 $as_echo_n "checking for $ac_word... " >&6; }
5267 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 if test -n "$ac_ct_RANLIB"; then
5271 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5272 else
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH
5275 do
5276 IFS=$as_save_IFS
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5280 ac_cv_prog_ac_ct_RANLIB="ranlib"
5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 break 2
5283 fi
5284 done
5285 done
5286 IFS=$as_save_IFS
5287
5288 fi
5289 fi
5290 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5291 if test -n "$ac_ct_RANLIB"; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5293 $as_echo "$ac_ct_RANLIB" >&6; }
5294 else
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5297 fi
5298
5299 if test "x$ac_ct_RANLIB" = x; then
5300 RANLIB=":"
5301 else
5302 case $cross_compiling:$ac_tool_warned in
5303 yes:)
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5306 ac_tool_warned=yes ;;
5307 esac
5308 RANLIB=$ac_ct_RANLIB
5309 fi
5310 else
5311 RANLIB="$ac_cv_prog_RANLIB"
5312 fi
5313
5314 if test -n "$ac_tool_prefix"; then
5315 for ac_prog in ar lib "link -lib"
5316 do
5317 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5318 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5320 $as_echo_n "checking for $ac_word... " >&6; }
5321 if ${ac_cv_prog_AR+:} false; then :
5322 $as_echo_n "(cached) " >&6
5323 else
5324 if test -n "$AR"; then
5325 ac_cv_prog_AR="$AR" # Let the user override the test.
5326 else
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH
5329 do
5330 IFS=$as_save_IFS
5331 test -z "$as_dir" && as_dir=.
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5334 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 break 2
5337 fi
5338 done
5339 done
5340 IFS=$as_save_IFS
5341
5342 fi
5343 fi
5344 AR=$ac_cv_prog_AR
5345 if test -n "$AR"; then
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5347 $as_echo "$AR" >&6; }
5348 else
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350 $as_echo "no" >&6; }
5351 fi
5352
5353
5354 test -n "$AR" && break
5355 done
5356 fi
5357 if test -z "$AR"; then
5358 ac_ct_AR=$AR
5359 for ac_prog in ar lib "link -lib"
5360 do
5361 # Extract the first word of "$ac_prog", so it can be a program name with args.
5362 set dummy $ac_prog; ac_word=$2
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364 $as_echo_n "checking for $ac_word... " >&6; }
5365 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5366 $as_echo_n "(cached) " >&6
5367 else
5368 if test -n "$ac_ct_AR"; then
5369 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5370 else
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 for as_dir in $PATH
5373 do
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5378 ac_cv_prog_ac_ct_AR="$ac_prog"
5379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 break 2
5381 fi
5382 done
5383 done
5384 IFS=$as_save_IFS
5385
5386 fi
5387 fi
5388 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5389 if test -n "$ac_ct_AR"; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5391 $as_echo "$ac_ct_AR" >&6; }
5392 else
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5395 fi
5396
5397
5398 test -n "$ac_ct_AR" && break
5399 done
5400
5401 if test "x$ac_ct_AR" = x; then
5402 AR="false"
5403 else
5404 case $cross_compiling:$ac_tool_warned in
5405 yes:)
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5408 ac_tool_warned=yes ;;
5409 esac
5410 AR=$ac_ct_AR
5411 fi
5412 fi
5413
5414 : ${AR=ar}
5415
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5417 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5418 if ${am_cv_ar_interface+:} false; then :
5419 $as_echo_n "(cached) " >&6
5420 else
5421 ac_ext=c
5422 ac_cpp='$CPP $CPPFLAGS'
5423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5426
5427 am_cv_ar_interface=ar
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5430 int some_variable = 0;
5431 _ACEOF
5432 if ac_fn_c_try_compile "$LINENO"; then :
5433 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5435 (eval $am_ar_try) 2>&5
5436 ac_status=$?
5437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5438 test $ac_status = 0; }
5439 if test "$ac_status" -eq 0; then
5440 am_cv_ar_interface=ar
5441 else
5442 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5444 (eval $am_ar_try) 2>&5
5445 ac_status=$?
5446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5447 test $ac_status = 0; }
5448 if test "$ac_status" -eq 0; then
5449 am_cv_ar_interface=lib
5450 else
5451 am_cv_ar_interface=unknown
5452 fi
5453 fi
5454 rm -f conftest.lib libconftest.a
5455
5456 fi
5457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5458 ac_ext=c
5459 ac_cpp='$CPP $CPPFLAGS'
5460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5463
5464 fi
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5466 $as_echo "$am_cv_ar_interface" >&6; }
5467
5468 case $am_cv_ar_interface in
5469 ar)
5470 ;;
5471 lib)
5472 # Microsoft lib, so override with the ar-lib wrapper script.
5473 # FIXME: It is wrong to rewrite AR.
5474 # But if we don't then we get into trouble of one sort or another.
5475 # A longer-term fix would be to have automake use am__AR in this case,
5476 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5477 # similar.
5478 AR="$am_aux_dir/ar-lib $AR"
5479 ;;
5480 unknown)
5481 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5482 ;;
5483 esac
5484
5485
5486 MKINSTALLDIRS=
5487 if test -n "$ac_aux_dir"; then
5488 case "$ac_aux_dir" in
5489 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5490 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5491 esac
5492 fi
5493 if test -z "$MKINSTALLDIRS"; then
5494 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5495 fi
5496
5497
5498
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5500 $as_echo_n "checking whether NLS is requested... " >&6; }
5501 # Check whether --enable-nls was given.
5502 if test "${enable_nls+set}" = set; then :
5503 enableval=$enable_nls; USE_NLS=$enableval
5504 else
5505 USE_NLS=yes
5506 fi
5507
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5509 $as_echo "$USE_NLS" >&6; }
5510
5511
5512
5513
5514
5515
5516 # Prepare PATH_SEPARATOR.
5517 # The user is always right.
5518 if test "${PATH_SEPARATOR+set}" != set; then
5519 echo "#! /bin/sh" >conf$$.sh
5520 echo "exit 0" >>conf$$.sh
5521 chmod +x conf$$.sh
5522 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5523 PATH_SEPARATOR=';'
5524 else
5525 PATH_SEPARATOR=:
5526 fi
5527 rm -f conf$$.sh
5528 fi
5529
5530 # Find out how to test for executable files. Don't use a zero-byte file,
5531 # as systems may use methods other than mode bits to determine executability.
5532 cat >conf$$.file <<_ASEOF
5533 #! /bin/sh
5534 exit 0
5535 _ASEOF
5536 chmod +x conf$$.file
5537 if test -x conf$$.file >/dev/null 2>&1; then
5538 ac_executable_p="test -x"
5539 else
5540 ac_executable_p="test -f"
5541 fi
5542 rm -f conf$$.file
5543
5544 # Extract the first word of "msgfmt", so it can be a program name with args.
5545 set dummy msgfmt; ac_word=$2
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 $as_echo_n "checking for $ac_word... " >&6; }
5548 if ${ac_cv_path_MSGFMT+:} false; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5551 case "$MSGFMT" in
5552 [\\/]* | ?:[\\/]*)
5553 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5554 ;;
5555 *)
5556 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5557 for ac_dir in $PATH; do
5558 IFS="$ac_save_IFS"
5559 test -z "$ac_dir" && ac_dir=.
5560 for ac_exec_ext in '' $ac_executable_extensions; do
5561 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5562 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5563 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5564 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5565 break 2
5566 fi
5567 fi
5568 done
5569 done
5570 IFS="$ac_save_IFS"
5571 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5572 ;;
5573 esac
5574 fi
5575 MSGFMT="$ac_cv_path_MSGFMT"
5576 if test "$MSGFMT" != ":"; then
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5578 $as_echo "$MSGFMT" >&6; }
5579 else
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5581 $as_echo "no" >&6; }
5582 fi
5583
5584 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5585 set dummy gmsgfmt; ac_word=$2
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587 $as_echo_n "checking for $ac_word... " >&6; }
5588 if ${ac_cv_path_GMSGFMT+:} false; then :
5589 $as_echo_n "(cached) " >&6
5590 else
5591 case $GMSGFMT in
5592 [\\/]* | ?:[\\/]*)
5593 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5594 ;;
5595 *)
5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 for as_dir in $PATH
5598 do
5599 IFS=$as_save_IFS
5600 test -z "$as_dir" && as_dir=.
5601 for ac_exec_ext in '' $ac_executable_extensions; do
5602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5603 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5605 break 2
5606 fi
5607 done
5608 done
5609 IFS=$as_save_IFS
5610
5611 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5612 ;;
5613 esac
5614 fi
5615 GMSGFMT=$ac_cv_path_GMSGFMT
5616 if test -n "$GMSGFMT"; then
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5618 $as_echo "$GMSGFMT" >&6; }
5619 else
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 $as_echo "no" >&6; }
5622 fi
5623
5624
5625
5626
5627 # Prepare PATH_SEPARATOR.
5628 # The user is always right.
5629 if test "${PATH_SEPARATOR+set}" != set; then
5630 echo "#! /bin/sh" >conf$$.sh
5631 echo "exit 0" >>conf$$.sh
5632 chmod +x conf$$.sh
5633 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5634 PATH_SEPARATOR=';'
5635 else
5636 PATH_SEPARATOR=:
5637 fi
5638 rm -f conf$$.sh
5639 fi
5640
5641 # Find out how to test for executable files. Don't use a zero-byte file,
5642 # as systems may use methods other than mode bits to determine executability.
5643 cat >conf$$.file <<_ASEOF
5644 #! /bin/sh
5645 exit 0
5646 _ASEOF
5647 chmod +x conf$$.file
5648 if test -x conf$$.file >/dev/null 2>&1; then
5649 ac_executable_p="test -x"
5650 else
5651 ac_executable_p="test -f"
5652 fi
5653 rm -f conf$$.file
5654
5655 # Extract the first word of "xgettext", so it can be a program name with args.
5656 set dummy xgettext; ac_word=$2
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5658 $as_echo_n "checking for $ac_word... " >&6; }
5659 if ${ac_cv_path_XGETTEXT+:} false; then :
5660 $as_echo_n "(cached) " >&6
5661 else
5662 case "$XGETTEXT" in
5663 [\\/]* | ?:[\\/]*)
5664 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5665 ;;
5666 *)
5667 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5668 for ac_dir in $PATH; do
5669 IFS="$ac_save_IFS"
5670 test -z "$ac_dir" && ac_dir=.
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5673 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5674 (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
5675 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5676 break 2
5677 fi
5678 fi
5679 done
5680 done
5681 IFS="$ac_save_IFS"
5682 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5683 ;;
5684 esac
5685 fi
5686 XGETTEXT="$ac_cv_path_XGETTEXT"
5687 if test "$XGETTEXT" != ":"; then
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5689 $as_echo "$XGETTEXT" >&6; }
5690 else
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 $as_echo "no" >&6; }
5693 fi
5694
5695 rm -f messages.po
5696
5697
5698 # Prepare PATH_SEPARATOR.
5699 # The user is always right.
5700 if test "${PATH_SEPARATOR+set}" != set; then
5701 echo "#! /bin/sh" >conf$$.sh
5702 echo "exit 0" >>conf$$.sh
5703 chmod +x conf$$.sh
5704 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5705 PATH_SEPARATOR=';'
5706 else
5707 PATH_SEPARATOR=:
5708 fi
5709 rm -f conf$$.sh
5710 fi
5711
5712 # Find out how to test for executable files. Don't use a zero-byte file,
5713 # as systems may use methods other than mode bits to determine executability.
5714 cat >conf$$.file <<_ASEOF
5715 #! /bin/sh
5716 exit 0
5717 _ASEOF
5718 chmod +x conf$$.file
5719 if test -x conf$$.file >/dev/null 2>&1; then
5720 ac_executable_p="test -x"
5721 else
5722 ac_executable_p="test -f"
5723 fi
5724 rm -f conf$$.file
5725
5726 # Extract the first word of "msgmerge", so it can be a program name with args.
5727 set dummy msgmerge; ac_word=$2
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5729 $as_echo_n "checking for $ac_word... " >&6; }
5730 if ${ac_cv_path_MSGMERGE+:} false; then :
5731 $as_echo_n "(cached) " >&6
5732 else
5733 case "$MSGMERGE" in
5734 [\\/]* | ?:[\\/]*)
5735 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5736 ;;
5737 *)
5738 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5739 for ac_dir in $PATH; do
5740 IFS="$ac_save_IFS"
5741 test -z "$ac_dir" && ac_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5744 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5745 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5746 break 2
5747 fi
5748 fi
5749 done
5750 done
5751 IFS="$ac_save_IFS"
5752 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5753 ;;
5754 esac
5755 fi
5756 MSGMERGE="$ac_cv_path_MSGMERGE"
5757 if test "$MSGMERGE" != ":"; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5759 $as_echo "$MSGMERGE" >&6; }
5760 else
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762 $as_echo "no" >&6; }
5763 fi
5764
5765
5766 if test "$GMSGFMT" != ":"; then
5767 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5768 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5769 : ;
5770 else
5771 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5773 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
5774 GMSGFMT=":"
5775 fi
5776 fi
5777
5778 if test "$XGETTEXT" != ":"; then
5779 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5780 (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
5781 : ;
5782 else
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
5784 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
5785 XGETTEXT=":"
5786 fi
5787 rm -f messages.po
5788 fi
5789
5790 ac_config_commands="$ac_config_commands default-1"
5791
5792
5793
5794 if test "X$prefix" = "XNONE"; then
5795 acl_final_prefix="$ac_default_prefix"
5796 else
5797 acl_final_prefix="$prefix"
5798 fi
5799 if test "X$exec_prefix" = "XNONE"; then
5800 acl_final_exec_prefix='${prefix}'
5801 else
5802 acl_final_exec_prefix="$exec_prefix"
5803 fi
5804 acl_save_prefix="$prefix"
5805 prefix="$acl_final_prefix"
5806 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5807 prefix="$acl_save_prefix"
5808
5809
5810 # Check whether --with-gnu-ld was given.
5811 if test "${with_gnu_ld+set}" = set; then :
5812 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5813 else
5814 with_gnu_ld=no
5815 fi
5816
5817 # Prepare PATH_SEPARATOR.
5818 # The user is always right.
5819 if test "${PATH_SEPARATOR+set}" != set; then
5820 echo "#! /bin/sh" >conf$$.sh
5821 echo "exit 0" >>conf$$.sh
5822 chmod +x conf$$.sh
5823 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5824 PATH_SEPARATOR=';'
5825 else
5826 PATH_SEPARATOR=:
5827 fi
5828 rm -f conf$$.sh
5829 fi
5830 ac_prog=ld
5831 if test "$GCC" = yes; then
5832 # Check if gcc -print-prog-name=ld gives a path.
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5834 $as_echo_n "checking for ld used by GCC... " >&6; }
5835 case $host in
5836 *-*-mingw*)
5837 # gcc leaves a trailing carriage return which upsets mingw
5838 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5839 *)
5840 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5841 esac
5842 case $ac_prog in
5843 # Accept absolute paths.
5844 [\\/]* | [A-Za-z]:[\\/]*)
5845 re_direlt='/[^/][^/]*/\.\./'
5846 # Canonicalize the path of ld
5847 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5848 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5849 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5850 done
5851 test -z "$LD" && LD="$ac_prog"
5852 ;;
5853 "")
5854 # If it fails, then pretend we aren't using GCC.
5855 ac_prog=ld
5856 ;;
5857 *)
5858 # If it is relative, then search for the first ld in PATH.
5859 with_gnu_ld=unknown
5860 ;;
5861 esac
5862 elif test "$with_gnu_ld" = yes; then
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5864 $as_echo_n "checking for GNU ld... " >&6; }
5865 else
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5867 $as_echo_n "checking for non-GNU ld... " >&6; }
5868 fi
5869 if ${acl_cv_path_LD+:} false; then :
5870 $as_echo_n "(cached) " >&6
5871 else
5872 if test -z "$LD"; then
5873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5874 for ac_dir in $PATH; do
5875 test -z "$ac_dir" && ac_dir=.
5876 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5877 acl_cv_path_LD="$ac_dir/$ac_prog"
5878 # Check to see if the program is GNU ld. I'd rather use --version,
5879 # but apparently some GNU ld's only accept -v.
5880 # Break only if it was the GNU/non-GNU ld that we prefer.
5881 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
5882 test "$with_gnu_ld" != no && break
5883 else
5884 test "$with_gnu_ld" != yes && break
5885 fi
5886 fi
5887 done
5888 IFS="$ac_save_ifs"
5889 else
5890 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5891 fi
5892 fi
5893
5894 LD="$acl_cv_path_LD"
5895 if test -n "$LD"; then
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5897 $as_echo "$LD" >&6; }
5898 else
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5900 $as_echo "no" >&6; }
5901 fi
5902 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5904 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5905 if ${acl_cv_prog_gnu_ld+:} false; then :
5906 $as_echo_n "(cached) " >&6
5907 else
5908 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5909 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
5910 acl_cv_prog_gnu_ld=yes
5911 else
5912 acl_cv_prog_gnu_ld=no
5913 fi
5914 fi
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5916 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5917 with_gnu_ld=$acl_cv_prog_gnu_ld
5918
5919
5920
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5922 $as_echo_n "checking for shared library run path origin... " >&6; }
5923 if ${acl_cv_rpath+:} false; then :
5924 $as_echo_n "(cached) " >&6
5925 else
5926
5927 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5928 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5929 . ./conftest.sh
5930 rm -f ./conftest.sh
5931 acl_cv_rpath=done
5932
5933 fi
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5935 $as_echo "$acl_cv_rpath" >&6; }
5936 wl="$acl_cv_wl"
5937 libext="$acl_cv_libext"
5938 shlibext="$acl_cv_shlibext"
5939 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5940 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5941 hardcode_direct="$acl_cv_hardcode_direct"
5942 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5943 # Check whether --enable-rpath was given.
5944 if test "${enable_rpath+set}" = set; then :
5945 enableval=$enable_rpath; :
5946 else
5947 enable_rpath=yes
5948 fi
5949
5950
5951
5952
5953
5954
5955
5956
5957 use_additional=yes
5958
5959 acl_save_prefix="$prefix"
5960 prefix="$acl_final_prefix"
5961 acl_save_exec_prefix="$exec_prefix"
5962 exec_prefix="$acl_final_exec_prefix"
5963
5964 eval additional_includedir=\"$includedir\"
5965 eval additional_libdir=\"$libdir\"
5966
5967 exec_prefix="$acl_save_exec_prefix"
5968 prefix="$acl_save_prefix"
5969
5970
5971 # Check whether --with-libiconv-prefix was given.
5972 if test "${with_libiconv_prefix+set}" = set; then :
5973 withval=$with_libiconv_prefix;
5974 if test "X$withval" = "Xno"; then
5975 use_additional=no
5976 else
5977 if test "X$withval" = "X"; then
5978
5979 acl_save_prefix="$prefix"
5980 prefix="$acl_final_prefix"
5981 acl_save_exec_prefix="$exec_prefix"
5982 exec_prefix="$acl_final_exec_prefix"
5983
5984 eval additional_includedir=\"$includedir\"
5985 eval additional_libdir=\"$libdir\"
5986
5987 exec_prefix="$acl_save_exec_prefix"
5988 prefix="$acl_save_prefix"
5989
5990 else
5991 additional_includedir="$withval/include"
5992 additional_libdir="$withval/lib"
5993 fi
5994 fi
5995
5996 fi
5997
5998
5999 # Check whether --with-libiconv-type was given.
6000 if test "${with_libiconv_type+set}" = set; then :
6001 withval=$with_libiconv_type; with_libiconv_type=$withval
6002 else
6003 with_libiconv_type=auto
6004 fi
6005
6006 lib_type=`eval echo \$with_libiconv_type`
6007
6008 LIBICONV=
6009 LTLIBICONV=
6010 INCICONV=
6011 rpathdirs=
6012 ltrpathdirs=
6013 names_already_handled=
6014 names_next_round='iconv '
6015 while test -n "$names_next_round"; do
6016 names_this_round="$names_next_round"
6017 names_next_round=
6018 for name in $names_this_round; do
6019 already_handled=
6020 for n in $names_already_handled; do
6021 if test "$n" = "$name"; then
6022 already_handled=yes
6023 break
6024 fi
6025 done
6026 if test -z "$already_handled"; then
6027 names_already_handled="$names_already_handled $name"
6028 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6029 eval value=\"\$HAVE_LIB$uppername\"
6030 if test -n "$value"; then
6031 if test "$value" = yes; then
6032 eval value=\"\$LIB$uppername\"
6033 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6034 eval value=\"\$LTLIB$uppername\"
6035 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6036 else
6037 :
6038 fi
6039 else
6040 found_dir=
6041 found_la=
6042 found_so=
6043 found_a=
6044 if test $use_additional = yes; then
6045 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
6046 found_dir="$additional_libdir"
6047 found_so="$additional_libdir/lib$name.$shlibext"
6048 if test -f "$additional_libdir/lib$name.la"; then
6049 found_la="$additional_libdir/lib$name.la"
6050 fi
6051 elif test x$lib_type != xshared; then
6052 if test -f "$additional_libdir/lib$name.$libext"; then
6053 found_dir="$additional_libdir"
6054 found_a="$additional_libdir/lib$name.$libext"
6055 if test -f "$additional_libdir/lib$name.la"; then
6056 found_la="$additional_libdir/lib$name.la"
6057 fi
6058 fi
6059 fi
6060 fi
6061 if test "X$found_dir" = "X"; then
6062 for x in $LDFLAGS $LTLIBICONV; do
6063
6064 acl_save_prefix="$prefix"
6065 prefix="$acl_final_prefix"
6066 acl_save_exec_prefix="$exec_prefix"
6067 exec_prefix="$acl_final_exec_prefix"
6068 eval x=\"$x\"
6069 exec_prefix="$acl_save_exec_prefix"
6070 prefix="$acl_save_prefix"
6071
6072 case "$x" in
6073 -L*)
6074 dir=`echo "X$x" | sed -e 's/^X-L//'`
6075 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
6076 found_dir="$dir"
6077 found_so="$dir/lib$name.$shlibext"
6078 if test -f "$dir/lib$name.la"; then
6079 found_la="$dir/lib$name.la"
6080 fi
6081 elif test x$lib_type != xshared; then
6082 if test -f "$dir/lib$name.$libext"; then
6083 found_dir="$dir"
6084 found_a="$dir/lib$name.$libext"
6085 if test -f "$dir/lib$name.la"; then
6086 found_la="$dir/lib$name.la"
6087 fi
6088 fi
6089 fi
6090 ;;
6091 esac
6092 if test "X$found_dir" != "X"; then
6093 break
6094 fi
6095 done
6096 fi
6097 if test "X$found_dir" != "X"; then
6098 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6099 if test "X$found_so" != "X"; then
6100 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6101 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6102 else
6103 haveit=
6104 for x in $ltrpathdirs; do
6105 if test "X$x" = "X$found_dir"; then
6106 haveit=yes
6107 break
6108 fi
6109 done
6110 if test -z "$haveit"; then
6111 ltrpathdirs="$ltrpathdirs $found_dir"
6112 fi
6113 if test "$hardcode_direct" = yes; then
6114 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6115 else
6116 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6117 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6118 haveit=
6119 for x in $rpathdirs; do
6120 if test "X$x" = "X$found_dir"; then
6121 haveit=yes
6122 break
6123 fi
6124 done
6125 if test -z "$haveit"; then
6126 rpathdirs="$rpathdirs $found_dir"
6127 fi
6128 else
6129 haveit=
6130 for x in $LDFLAGS $LIBICONV; do
6131
6132 acl_save_prefix="$prefix"
6133 prefix="$acl_final_prefix"
6134 acl_save_exec_prefix="$exec_prefix"
6135 exec_prefix="$acl_final_exec_prefix"
6136 eval x=\"$x\"
6137 exec_prefix="$acl_save_exec_prefix"
6138 prefix="$acl_save_prefix"
6139
6140 if test "X$x" = "X-L$found_dir"; then
6141 haveit=yes
6142 break
6143 fi
6144 done
6145 if test -z "$haveit"; then
6146 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6147 fi
6148 if test "$hardcode_minus_L" != no; then
6149 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6150 else
6151 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6152 fi
6153 fi
6154 fi
6155 fi
6156 else
6157 if test "X$found_a" != "X"; then
6158 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6159 else
6160 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6161 fi
6162 fi
6163 additional_includedir=
6164 case "$found_dir" in
6165 */lib | */lib/)
6166 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6167 additional_includedir="$basedir/include"
6168 ;;
6169 esac
6170 if test "X$additional_includedir" != "X"; then
6171 if test "X$additional_includedir" != "X/usr/include"; then
6172 haveit=
6173 if test "X$additional_includedir" = "X/usr/local/include"; then
6174 if test -n "$GCC"; then
6175 case $host_os in
6176 linux*) haveit=yes;;
6177 esac
6178 fi
6179 fi
6180 if test -z "$haveit"; then
6181 for x in $CPPFLAGS $INCICONV; do
6182
6183 acl_save_prefix="$prefix"
6184 prefix="$acl_final_prefix"
6185 acl_save_exec_prefix="$exec_prefix"
6186 exec_prefix="$acl_final_exec_prefix"
6187 eval x=\"$x\"
6188 exec_prefix="$acl_save_exec_prefix"
6189 prefix="$acl_save_prefix"
6190
6191 if test "X$x" = "X-I$additional_includedir"; then
6192 haveit=yes
6193 break
6194 fi
6195 done
6196 if test -z "$haveit"; then
6197 if test -d "$additional_includedir"; then
6198 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6199 fi
6200 fi
6201 fi
6202 fi
6203 fi
6204 if test -n "$found_la"; then
6205 save_libdir="$libdir"
6206 case "$found_la" in
6207 */* | *\\*) . "$found_la" ;;
6208 *) . "./$found_la" ;;
6209 esac
6210 libdir="$save_libdir"
6211 for dep in $dependency_libs; do
6212 case "$dep" in
6213 -L*)
6214 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6215 if test "X$additional_libdir" != "X/usr/lib"; then
6216 haveit=
6217 if test "X$additional_libdir" = "X/usr/local/lib"; then
6218 if test -n "$GCC"; then
6219 case $host_os in
6220 linux*) haveit=yes;;
6221 esac
6222 fi
6223 fi
6224 if test -z "$haveit"; then
6225 haveit=
6226 for x in $LDFLAGS $LIBICONV; do
6227
6228 acl_save_prefix="$prefix"
6229 prefix="$acl_final_prefix"
6230 acl_save_exec_prefix="$exec_prefix"
6231 exec_prefix="$acl_final_exec_prefix"
6232 eval x=\"$x\"
6233 exec_prefix="$acl_save_exec_prefix"
6234 prefix="$acl_save_prefix"
6235
6236 if test "X$x" = "X-L$additional_libdir"; then
6237 haveit=yes
6238 break
6239 fi
6240 done
6241 if test -z "$haveit"; then
6242 if test -d "$additional_libdir"; then
6243 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6244 fi
6245 fi
6246 haveit=
6247 for x in $LDFLAGS $LTLIBICONV; do
6248
6249 acl_save_prefix="$prefix"
6250 prefix="$acl_final_prefix"
6251 acl_save_exec_prefix="$exec_prefix"
6252 exec_prefix="$acl_final_exec_prefix"
6253 eval x=\"$x\"
6254 exec_prefix="$acl_save_exec_prefix"
6255 prefix="$acl_save_prefix"
6256
6257 if test "X$x" = "X-L$additional_libdir"; then
6258 haveit=yes
6259 break
6260 fi
6261 done
6262 if test -z "$haveit"; then
6263 if test -d "$additional_libdir"; then
6264 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6265 fi
6266 fi
6267 fi
6268 fi
6269 ;;
6270 -R*)
6271 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6272 if test "$enable_rpath" != no; then
6273 haveit=
6274 for x in $rpathdirs; do
6275 if test "X$x" = "X$dir"; then
6276 haveit=yes
6277 break
6278 fi
6279 done
6280 if test -z "$haveit"; then
6281 rpathdirs="$rpathdirs $dir"
6282 fi
6283 haveit=
6284 for x in $ltrpathdirs; do
6285 if test "X$x" = "X$dir"; then
6286 haveit=yes
6287 break
6288 fi
6289 done
6290 if test -z "$haveit"; then
6291 ltrpathdirs="$ltrpathdirs $dir"
6292 fi
6293 fi
6294 ;;
6295 -l*)
6296 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6297 ;;
6298 *.la)
6299 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6300 ;;
6301 *)
6302 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6303 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6304 ;;
6305 esac
6306 done
6307 fi
6308 else
6309 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
6310 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6311 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6312 else
6313 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
6314 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
6315 fi
6316 fi
6317 fi
6318 fi
6319 done
6320 done
6321 if test "X$rpathdirs" != "X"; then
6322 if test -n "$hardcode_libdir_separator"; then
6323 alldirs=
6324 for found_dir in $rpathdirs; do
6325 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6326 done
6327 acl_save_libdir="$libdir"
6328 libdir="$alldirs"
6329 eval flag=\"$hardcode_libdir_flag_spec\"
6330 libdir="$acl_save_libdir"
6331 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6332 else
6333 for found_dir in $rpathdirs; do
6334 acl_save_libdir="$libdir"
6335 libdir="$found_dir"
6336 eval flag=\"$hardcode_libdir_flag_spec\"
6337 libdir="$acl_save_libdir"
6338 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6339 done
6340 fi
6341 fi
6342 if test "X$ltrpathdirs" != "X"; then
6343 for found_dir in $ltrpathdirs; do
6344 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6345 done
6346 fi
6347
6348
6349
6350
6351
6352 if test -f ../gettext/uninstalled-config.sh; then
6353 relative_builddir='$(top_builddir)/../gettext'
6354 . ../gettext/uninstalled-config.sh
6355 else
6356 # The sister gettext directory doesn't exist and won't collect information on
6357 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6382 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6383 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6384 $as_echo_n "(cached) " >&6
6385 else
6386 gt_save_LIBS="$LIBS"
6387 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389 /* end confdefs.h. */
6390 #include <CoreFoundation/CFPreferences.h>
6391 int
6392 main ()
6393 {
6394 CFPreferencesCopyAppValue(NULL, NULL)
6395 ;
6396 return 0;
6397 }
6398 _ACEOF
6399 if ac_fn_c_try_link "$LINENO"; then :
6400 gt_cv_func_CFPreferencesCopyAppValue=yes
6401 else
6402 gt_cv_func_CFPreferencesCopyAppValue=no
6403 fi
6404 rm -f core conftest.err conftest.$ac_objext \
6405 conftest$ac_exeext conftest.$ac_ext
6406 LIBS="$gt_save_LIBS"
6407 fi
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6409 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6410 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6411
6412 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6413
6414 fi
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
6416 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
6417 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
6418 $as_echo_n "(cached) " >&6
6419 else
6420 gt_save_LIBS="$LIBS"
6421 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h. */
6424 #include <CoreFoundation/CFLocale.h>
6425 int
6426 main ()
6427 {
6428 CFLocaleCopyPreferredLanguages();
6429 ;
6430 return 0;
6431 }
6432 _ACEOF
6433 if ac_fn_c_try_link "$LINENO"; then :
6434 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
6435 else
6436 gt_cv_func_CFLocaleCopyPreferredLanguages=no
6437 fi
6438 rm -f core conftest.err conftest.$ac_objext \
6439 conftest$ac_exeext conftest.$ac_ext
6440 LIBS="$gt_save_LIBS"
6441 fi
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
6443 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
6444 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
6445
6446 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
6447
6448 fi
6449 INTL_MACOSX_LIBS=
6450 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
6451 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
6452 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
6453 fi
6454
6455
6456
6457
6458
6459
6460 LIBINTL=
6461 LTLIBINTL=
6462 POSUB=
6463
6464 case " $gt_needs " in
6465 *" need-formatstring-macros "*) gt_api_version=3 ;;
6466 *" need-ngettext "*) gt_api_version=2 ;;
6467 *) gt_api_version=1 ;;
6468 esac
6469 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6470 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6471
6472 if test "$USE_NLS" = "yes"; then
6473 gt_use_preinstalled_gnugettext=no
6474
6475
6476 if test $gt_api_version -ge 3; then
6477 gt_revision_test_code='
6478 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6479 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6480 #endif
6481 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6482 '
6483 else
6484 gt_revision_test_code=
6485 fi
6486 if test $gt_api_version -ge 2; then
6487 gt_expression_test_code=' + * ngettext ("", "", 0)'
6488 else
6489 gt_expression_test_code=
6490 fi
6491
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6493 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6494 if eval \${$gt_func_gnugettext_libc+:} false; then :
6495 $as_echo_n "(cached) " >&6
6496 else
6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h. */
6499
6500 #include <libintl.h>
6501 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6502 extern int _nl_msg_cat_cntr;
6503 extern int *_nl_domain_bindings;
6504 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
6505 #else
6506 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
6507 #endif
6508 $gt_revision_test_code
6509
6510 int
6511 main ()
6512 {
6513
6514 bindtextdomain ("", "");
6515 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
6516
6517 ;
6518 return 0;
6519 }
6520 _ACEOF
6521 if ac_fn_c_try_link "$LINENO"; then :
6522 eval "$gt_func_gnugettext_libc=yes"
6523 else
6524 eval "$gt_func_gnugettext_libc=no"
6525 fi
6526 rm -f core conftest.err conftest.$ac_objext \
6527 conftest$ac_exeext conftest.$ac_ext
6528 fi
6529 eval ac_res=\$$gt_func_gnugettext_libc
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6531 $as_echo "$ac_res" >&6; }
6532
6533 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6534
6535
6536
6537
6538
6539 am_save_CPPFLAGS="$CPPFLAGS"
6540
6541 for element in $INCICONV; do
6542 haveit=
6543 for x in $CPPFLAGS; do
6544
6545 acl_save_prefix="$prefix"
6546 prefix="$acl_final_prefix"
6547 acl_save_exec_prefix="$exec_prefix"
6548 exec_prefix="$acl_final_exec_prefix"
6549 eval x=\"$x\"
6550 exec_prefix="$acl_save_exec_prefix"
6551 prefix="$acl_save_prefix"
6552
6553 if test "X$x" = "X$element"; then
6554 haveit=yes
6555 break
6556 fi
6557 done
6558 if test -z "$haveit"; then
6559 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6560 fi
6561 done
6562
6563
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6565 $as_echo_n "checking for iconv... " >&6; }
6566 if ${am_cv_func_iconv+:} false; then :
6567 $as_echo_n "(cached) " >&6
6568 else
6569
6570 am_cv_func_iconv="no, consider installing GNU libiconv"
6571 am_cv_lib_iconv=no
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6574
6575 #include <stdlib.h>
6576 #include <iconv.h>
6577
6578 int
6579 main ()
6580 {
6581 iconv_t cd = iconv_open("","");
6582 iconv(cd,NULL,NULL,NULL,NULL);
6583 iconv_close(cd);
6584 ;
6585 return 0;
6586 }
6587 _ACEOF
6588 if ac_fn_c_try_link "$LINENO"; then :
6589 am_cv_func_iconv=yes
6590 fi
6591 rm -f core conftest.err conftest.$ac_objext \
6592 conftest$ac_exeext conftest.$ac_ext
6593 if test "$am_cv_func_iconv" != yes; then
6594 am_save_LIBS="$LIBS"
6595 LIBS="$LIBS $LIBICONV"
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6598
6599 #include <stdlib.h>
6600 #include <iconv.h>
6601
6602 int
6603 main ()
6604 {
6605 iconv_t cd = iconv_open("","");
6606 iconv(cd,NULL,NULL,NULL,NULL);
6607 iconv_close(cd);
6608 ;
6609 return 0;
6610 }
6611 _ACEOF
6612 if ac_fn_c_try_link "$LINENO"; then :
6613 am_cv_lib_iconv=yes
6614 am_cv_func_iconv=yes
6615 fi
6616 rm -f core conftest.err conftest.$ac_objext \
6617 conftest$ac_exeext conftest.$ac_ext
6618 LIBS="$am_save_LIBS"
6619 fi
6620
6621 fi
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6623 $as_echo "$am_cv_func_iconv" >&6; }
6624 if test "$am_cv_func_iconv" = yes; then
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6626 $as_echo_n "checking for working iconv... " >&6; }
6627 if ${am_cv_func_iconv_works+:} false; then :
6628 $as_echo_n "(cached) " >&6
6629 else
6630
6631 am_save_LIBS="$LIBS"
6632 if test $am_cv_lib_iconv = yes; then
6633 LIBS="$LIBS $LIBICONV"
6634 fi
6635 am_cv_func_iconv_works=no
6636 for ac_iconv_const in '' 'const'; do
6637 if test "$cross_compiling" = yes; then :
6638 case "$host_os" in
6639 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6640 *) am_cv_func_iconv_works="guessing yes" ;;
6641 esac
6642 else
6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6645
6646 #include <iconv.h>
6647 #include <string.h>
6648
6649 #ifndef ICONV_CONST
6650 # define ICONV_CONST $ac_iconv_const
6651 #endif
6652
6653 int
6654 main ()
6655 {
6656 int result = 0;
6657 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
6658 successful returns. This is even documented in
6659 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
6660 {
6661 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6662 if (cd_utf8_to_88591 != (iconv_t)(-1))
6663 {
6664 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
6665 char buf[10];
6666 ICONV_CONST char *inptr = input;
6667 size_t inbytesleft = strlen (input);
6668 char *outptr = buf;
6669 size_t outbytesleft = sizeof (buf);
6670 size_t res = iconv (cd_utf8_to_88591,
6671 &inptr, &inbytesleft,
6672 &outptr, &outbytesleft);
6673 if (res == 0)
6674 result |= 1;
6675 iconv_close (cd_utf8_to_88591);
6676 }
6677 }
6678 /* Test against Solaris 10 bug: Failures are not distinguishable from
6679 successful returns. */
6680 {
6681 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6682 if (cd_ascii_to_88591 != (iconv_t)(-1))
6683 {
6684 static ICONV_CONST char input[] = "\263";
6685 char buf[10];
6686 ICONV_CONST char *inptr = input;
6687 size_t inbytesleft = strlen (input);
6688 char *outptr = buf;
6689 size_t outbytesleft = sizeof (buf);
6690 size_t res = iconv (cd_ascii_to_88591,
6691 &inptr, &inbytesleft,
6692 &outptr, &outbytesleft);
6693 if (res == 0)
6694 result |= 2;
6695 iconv_close (cd_ascii_to_88591);
6696 }
6697 }
6698 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
6699 {
6700 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
6701 if (cd_88591_to_utf8 != (iconv_t)(-1))
6702 {
6703 static ICONV_CONST char input[] = "\304";
6704 static char buf[2] = { (char)0xDE, (char)0xAD };
6705 ICONV_CONST char *inptr = input;
6706 size_t inbytesleft = 1;
6707 char *outptr = buf;
6708 size_t outbytesleft = 1;
6709 size_t res = iconv (cd_88591_to_utf8,
6710 &inptr, &inbytesleft,
6711 &outptr, &outbytesleft);
6712 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
6713 result |= 4;
6714 iconv_close (cd_88591_to_utf8);
6715 }
6716 }
6717 #if 0 /* This bug could be worked around by the caller. */
6718 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6719 {
6720 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6721 if (cd_88591_to_utf8 != (iconv_t)(-1))
6722 {
6723 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6724 char buf[50];
6725 ICONV_CONST char *inptr = input;
6726 size_t inbytesleft = strlen (input);
6727 char *outptr = buf;
6728 size_t outbytesleft = sizeof (buf);
6729 size_t res = iconv (cd_88591_to_utf8,
6730 &inptr, &inbytesleft,
6731 &outptr, &outbytesleft);
6732 if ((int)res > 0)
6733 result |= 8;
6734 iconv_close (cd_88591_to_utf8);
6735 }
6736 }
6737 #endif
6738 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6739 provided. */
6740 {
6741 /* Try standardized names. */
6742 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
6743 /* Try IRIX, OSF/1 names. */
6744 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
6745 /* Try AIX names. */
6746 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
6747 /* Try HP-UX names. */
6748 iconv_t cd4 = iconv_open ("utf8", "eucJP");
6749 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
6750 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
6751 result |= 16;
6752 if (cd1 != (iconv_t)(-1))
6753 iconv_close (cd1);
6754 if (cd2 != (iconv_t)(-1))
6755 iconv_close (cd2);
6756 if (cd3 != (iconv_t)(-1))
6757 iconv_close (cd3);
6758 if (cd4 != (iconv_t)(-1))
6759 iconv_close (cd4);
6760 }
6761 return result;
6762
6763 ;
6764 return 0;
6765 }
6766 _ACEOF
6767 if ac_fn_c_try_run "$LINENO"; then :
6768 am_cv_func_iconv_works=yes
6769 fi
6770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6771 conftest.$ac_objext conftest.beam conftest.$ac_ext
6772 fi
6773
6774 test "$am_cv_func_iconv_works" = no || break
6775 done
6776 LIBS="$am_save_LIBS"
6777
6778 fi
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6780 $as_echo "$am_cv_func_iconv_works" >&6; }
6781 case "$am_cv_func_iconv_works" in
6782 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6783 *) am_func_iconv=yes ;;
6784 esac
6785 else
6786 am_func_iconv=no am_cv_lib_iconv=no
6787 fi
6788 if test "$am_func_iconv" = yes; then
6789
6790 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6791
6792 fi
6793 if test "$am_cv_lib_iconv" = yes; then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6795 $as_echo_n "checking how to link with libiconv... " >&6; }
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6797 $as_echo "$LIBICONV" >&6; }
6798 else
6799 CPPFLAGS="$am_save_CPPFLAGS"
6800 LIBICONV=
6801 LTLIBICONV=
6802 fi
6803
6804
6805
6806
6807
6808
6809 use_additional=yes
6810
6811 acl_save_prefix="$prefix"
6812 prefix="$acl_final_prefix"
6813 acl_save_exec_prefix="$exec_prefix"
6814 exec_prefix="$acl_final_exec_prefix"
6815
6816 eval additional_includedir=\"$includedir\"
6817 eval additional_libdir=\"$libdir\"
6818
6819 exec_prefix="$acl_save_exec_prefix"
6820 prefix="$acl_save_prefix"
6821
6822
6823 # Check whether --with-libintl-prefix was given.
6824 if test "${with_libintl_prefix+set}" = set; then :
6825 withval=$with_libintl_prefix;
6826 if test "X$withval" = "Xno"; then
6827 use_additional=no
6828 else
6829 if test "X$withval" = "X"; then
6830
6831 acl_save_prefix="$prefix"
6832 prefix="$acl_final_prefix"
6833 acl_save_exec_prefix="$exec_prefix"
6834 exec_prefix="$acl_final_exec_prefix"
6835
6836 eval additional_includedir=\"$includedir\"
6837 eval additional_libdir=\"$libdir\"
6838
6839 exec_prefix="$acl_save_exec_prefix"
6840 prefix="$acl_save_prefix"
6841
6842 else
6843 additional_includedir="$withval/include"
6844 additional_libdir="$withval/lib"
6845 fi
6846 fi
6847
6848 fi
6849
6850
6851 # Check whether --with-libintl-type was given.
6852 if test "${with_libintl_type+set}" = set; then :
6853 withval=$with_libintl_type; with_libintl_type=$withval
6854 else
6855 with_libintl_type=auto
6856 fi
6857
6858 lib_type=`eval echo \$with_libintl_type`
6859
6860 LIBINTL=
6861 LTLIBINTL=
6862 INCINTL=
6863 rpathdirs=
6864 ltrpathdirs=
6865 names_already_handled=
6866 names_next_round='intl '
6867 while test -n "$names_next_round"; do
6868 names_this_round="$names_next_round"
6869 names_next_round=
6870 for name in $names_this_round; do
6871 already_handled=
6872 for n in $names_already_handled; do
6873 if test "$n" = "$name"; then
6874 already_handled=yes
6875 break
6876 fi
6877 done
6878 if test -z "$already_handled"; then
6879 names_already_handled="$names_already_handled $name"
6880 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6881 eval value=\"\$HAVE_LIB$uppername\"
6882 if test -n "$value"; then
6883 if test "$value" = yes; then
6884 eval value=\"\$LIB$uppername\"
6885 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6886 eval value=\"\$LTLIB$uppername\"
6887 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6888 else
6889 :
6890 fi
6891 else
6892 found_dir=
6893 found_la=
6894 found_so=
6895 found_a=
6896 if test $use_additional = yes; then
6897 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
6898 found_dir="$additional_libdir"
6899 found_so="$additional_libdir/lib$name.$shlibext"
6900 if test -f "$additional_libdir/lib$name.la"; then
6901 found_la="$additional_libdir/lib$name.la"
6902 fi
6903 elif test x$lib_type != xshared; then
6904 if test -f "$additional_libdir/lib$name.$libext"; then
6905 found_dir="$additional_libdir"
6906 found_a="$additional_libdir/lib$name.$libext"
6907 if test -f "$additional_libdir/lib$name.la"; then
6908 found_la="$additional_libdir/lib$name.la"
6909 fi
6910 fi
6911 fi
6912 fi
6913 if test "X$found_dir" = "X"; then
6914 for x in $LDFLAGS $LTLIBINTL; do
6915
6916 acl_save_prefix="$prefix"
6917 prefix="$acl_final_prefix"
6918 acl_save_exec_prefix="$exec_prefix"
6919 exec_prefix="$acl_final_exec_prefix"
6920 eval x=\"$x\"
6921 exec_prefix="$acl_save_exec_prefix"
6922 prefix="$acl_save_prefix"
6923
6924 case "$x" in
6925 -L*)
6926 dir=`echo "X$x" | sed -e 's/^X-L//'`
6927 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
6928 found_dir="$dir"
6929 found_so="$dir/lib$name.$shlibext"
6930 if test -f "$dir/lib$name.la"; then
6931 found_la="$dir/lib$name.la"
6932 fi
6933 elif test x$lib_type != xshared; then
6934 if test -f "$dir/lib$name.$libext"; then
6935 found_dir="$dir"
6936 found_a="$dir/lib$name.$libext"
6937 if test -f "$dir/lib$name.la"; then
6938 found_la="$dir/lib$name.la"
6939 fi
6940 fi
6941 fi
6942 ;;
6943 esac
6944 if test "X$found_dir" != "X"; then
6945 break
6946 fi
6947 done
6948 fi
6949 if test "X$found_dir" != "X"; then
6950 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6951 if test "X$found_so" != "X"; then
6952 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6953 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6954 else
6955 haveit=
6956 for x in $ltrpathdirs; do
6957 if test "X$x" = "X$found_dir"; then
6958 haveit=yes
6959 break
6960 fi
6961 done
6962 if test -z "$haveit"; then
6963 ltrpathdirs="$ltrpathdirs $found_dir"
6964 fi
6965 if test "$hardcode_direct" = yes; then
6966 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6967 else
6968 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6969 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6970 haveit=
6971 for x in $rpathdirs; do
6972 if test "X$x" = "X$found_dir"; then
6973 haveit=yes
6974 break
6975 fi
6976 done
6977 if test -z "$haveit"; then
6978 rpathdirs="$rpathdirs $found_dir"
6979 fi
6980 else
6981 haveit=
6982 for x in $LDFLAGS $LIBINTL; do
6983
6984 acl_save_prefix="$prefix"
6985 prefix="$acl_final_prefix"
6986 acl_save_exec_prefix="$exec_prefix"
6987 exec_prefix="$acl_final_exec_prefix"
6988 eval x=\"$x\"
6989 exec_prefix="$acl_save_exec_prefix"
6990 prefix="$acl_save_prefix"
6991
6992 if test "X$x" = "X-L$found_dir"; then
6993 haveit=yes
6994 break
6995 fi
6996 done
6997 if test -z "$haveit"; then
6998 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6999 fi
7000 if test "$hardcode_minus_L" != no; then
7001 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7002 else
7003 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7004 fi
7005 fi
7006 fi
7007 fi
7008 else
7009 if test "X$found_a" != "X"; then
7010 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7011 else
7012 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7013 fi
7014 fi
7015 additional_includedir=
7016 case "$found_dir" in
7017 */lib | */lib/)
7018 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7019 additional_includedir="$basedir/include"
7020 ;;
7021 esac
7022 if test "X$additional_includedir" != "X"; then
7023 if test "X$additional_includedir" != "X/usr/include"; then
7024 haveit=
7025 if test "X$additional_includedir" = "X/usr/local/include"; then
7026 if test -n "$GCC"; then
7027 case $host_os in
7028 linux*) haveit=yes;;
7029 esac
7030 fi
7031 fi
7032 if test -z "$haveit"; then
7033 for x in $CPPFLAGS $INCINTL; do
7034
7035 acl_save_prefix="$prefix"
7036 prefix="$acl_final_prefix"
7037 acl_save_exec_prefix="$exec_prefix"
7038 exec_prefix="$acl_final_exec_prefix"
7039 eval x=\"$x\"
7040 exec_prefix="$acl_save_exec_prefix"
7041 prefix="$acl_save_prefix"
7042
7043 if test "X$x" = "X-I$additional_includedir"; then
7044 haveit=yes
7045 break
7046 fi
7047 done
7048 if test -z "$haveit"; then
7049 if test -d "$additional_includedir"; then
7050 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7051 fi
7052 fi
7053 fi
7054 fi
7055 fi
7056 if test -n "$found_la"; then
7057 save_libdir="$libdir"
7058 case "$found_la" in
7059 */* | *\\*) . "$found_la" ;;
7060 *) . "./$found_la" ;;
7061 esac
7062 libdir="$save_libdir"
7063 for dep in $dependency_libs; do
7064 case "$dep" in
7065 -L*)
7066 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7067 if test "X$additional_libdir" != "X/usr/lib"; then
7068 haveit=
7069 if test "X$additional_libdir" = "X/usr/local/lib"; then
7070 if test -n "$GCC"; then
7071 case $host_os in
7072 linux*) haveit=yes;;
7073 esac
7074 fi
7075 fi
7076 if test -z "$haveit"; then
7077 haveit=
7078 for x in $LDFLAGS $LIBINTL; do
7079
7080 acl_save_prefix="$prefix"
7081 prefix="$acl_final_prefix"
7082 acl_save_exec_prefix="$exec_prefix"
7083 exec_prefix="$acl_final_exec_prefix"
7084 eval x=\"$x\"
7085 exec_prefix="$acl_save_exec_prefix"
7086 prefix="$acl_save_prefix"
7087
7088 if test "X$x" = "X-L$additional_libdir"; then
7089 haveit=yes
7090 break
7091 fi
7092 done
7093 if test -z "$haveit"; then
7094 if test -d "$additional_libdir"; then
7095 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7096 fi
7097 fi
7098 haveit=
7099 for x in $LDFLAGS $LTLIBINTL; do
7100
7101 acl_save_prefix="$prefix"
7102 prefix="$acl_final_prefix"
7103 acl_save_exec_prefix="$exec_prefix"
7104 exec_prefix="$acl_final_exec_prefix"
7105 eval x=\"$x\"
7106 exec_prefix="$acl_save_exec_prefix"
7107 prefix="$acl_save_prefix"
7108
7109 if test "X$x" = "X-L$additional_libdir"; then
7110 haveit=yes
7111 break
7112 fi
7113 done
7114 if test -z "$haveit"; then
7115 if test -d "$additional_libdir"; then
7116 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7117 fi
7118 fi
7119 fi
7120 fi
7121 ;;
7122 -R*)
7123 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7124 if test "$enable_rpath" != no; then
7125 haveit=
7126 for x in $rpathdirs; do
7127 if test "X$x" = "X$dir"; then
7128 haveit=yes
7129 break
7130 fi
7131 done
7132 if test -z "$haveit"; then
7133 rpathdirs="$rpathdirs $dir"
7134 fi
7135 haveit=
7136 for x in $ltrpathdirs; do
7137 if test "X$x" = "X$dir"; then
7138 haveit=yes
7139 break
7140 fi
7141 done
7142 if test -z "$haveit"; then
7143 ltrpathdirs="$ltrpathdirs $dir"
7144 fi
7145 fi
7146 ;;
7147 -l*)
7148 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7149 ;;
7150 *.la)
7151 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7152 ;;
7153 *)
7154 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7155 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7156 ;;
7157 esac
7158 done
7159 fi
7160 else
7161 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
7162 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7163 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7164 else
7165 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
7166 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
7167 fi
7168 fi
7169 fi
7170 fi
7171 done
7172 done
7173 if test "X$rpathdirs" != "X"; then
7174 if test -n "$hardcode_libdir_separator"; then
7175 alldirs=
7176 for found_dir in $rpathdirs; do
7177 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7178 done
7179 acl_save_libdir="$libdir"
7180 libdir="$alldirs"
7181 eval flag=\"$hardcode_libdir_flag_spec\"
7182 libdir="$acl_save_libdir"
7183 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7184 else
7185 for found_dir in $rpathdirs; do
7186 acl_save_libdir="$libdir"
7187 libdir="$found_dir"
7188 eval flag=\"$hardcode_libdir_flag_spec\"
7189 libdir="$acl_save_libdir"
7190 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7191 done
7192 fi
7193 fi
7194 if test "X$ltrpathdirs" != "X"; then
7195 for found_dir in $ltrpathdirs; do
7196 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7197 done
7198 fi
7199
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7201 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7202 if eval \${$gt_func_gnugettext_libintl+:} false; then :
7203 $as_echo_n "(cached) " >&6
7204 else
7205 gt_save_CPPFLAGS="$CPPFLAGS"
7206 CPPFLAGS="$CPPFLAGS $INCINTL"
7207 gt_save_LIBS="$LIBS"
7208 LIBS="$LIBS $LIBINTL"
7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210 /* end confdefs.h. */
7211
7212 #include <libintl.h>
7213 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7214 extern int _nl_msg_cat_cntr;
7215 extern
7216 #ifdef __cplusplus
7217 "C"
7218 #endif
7219 const char *_nl_expand_alias (const char *);
7220 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
7221 #else
7222 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7223 #endif
7224 $gt_revision_test_code
7225
7226 int
7227 main ()
7228 {
7229
7230 bindtextdomain ("", "");
7231 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7232
7233 ;
7234 return 0;
7235 }
7236 _ACEOF
7237 if ac_fn_c_try_link "$LINENO"; then :
7238 eval "$gt_func_gnugettext_libintl=yes"
7239 else
7240 eval "$gt_func_gnugettext_libintl=no"
7241 fi
7242 rm -f core conftest.err conftest.$ac_objext \
7243 conftest$ac_exeext conftest.$ac_ext
7244 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7245 LIBS="$LIBS $LIBICONV"
7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7248
7249 #include <libintl.h>
7250 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7251 extern int _nl_msg_cat_cntr;
7252 extern
7253 #ifdef __cplusplus
7254 "C"
7255 #endif
7256 const char *_nl_expand_alias (const char *);
7257 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
7258 #else
7259 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7260 #endif
7261 $gt_revision_test_code
7262
7263 int
7264 main ()
7265 {
7266
7267 bindtextdomain ("", "");
7268 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7269
7270 ;
7271 return 0;
7272 }
7273 _ACEOF
7274 if ac_fn_c_try_link "$LINENO"; then :
7275 LIBINTL="$LIBINTL $LIBICONV"
7276 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7277 eval "$gt_func_gnugettext_libintl=yes"
7278
7279 fi
7280 rm -f core conftest.err conftest.$ac_objext \
7281 conftest$ac_exeext conftest.$ac_ext
7282 fi
7283 CPPFLAGS="$gt_save_CPPFLAGS"
7284 LIBS="$gt_save_LIBS"
7285 fi
7286 eval ac_res=\$$gt_func_gnugettext_libintl
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7288 $as_echo "$ac_res" >&6; }
7289 fi
7290
7291 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7292 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7293 && test "$PACKAGE" != gettext-runtime \
7294 && test "$PACKAGE" != gettext-tools; }; then
7295 gt_use_preinstalled_gnugettext=yes
7296 else
7297 LIBINTL=
7298 LTLIBINTL=
7299 INCINTL=
7300 fi
7301
7302
7303
7304 if test -n "$INTL_MACOSX_LIBS"; then
7305 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7306 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7307 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7308 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7309 fi
7310 fi
7311
7312 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7313 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7314
7315 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7316
7317 else
7318 USE_NLS=no
7319 fi
7320 fi
7321
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7323 $as_echo_n "checking whether to use NLS... " >&6; }
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7325 $as_echo "$USE_NLS" >&6; }
7326 if test "$USE_NLS" = "yes"; then
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7328 $as_echo_n "checking where the gettext function comes from... " >&6; }
7329 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7330 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7331 gt_source="external libintl"
7332 else
7333 gt_source="libc"
7334 fi
7335 else
7336 gt_source="included intl directory"
7337 fi
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7339 $as_echo "$gt_source" >&6; }
7340 fi
7341
7342 if test "$USE_NLS" = "yes"; then
7343
7344 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7345 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7347 $as_echo_n "checking how to link with libintl... " >&6; }
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7349 $as_echo "$LIBINTL" >&6; }
7350
7351 for element in $INCINTL; do
7352 haveit=
7353 for x in $CPPFLAGS; do
7354
7355 acl_save_prefix="$prefix"
7356 prefix="$acl_final_prefix"
7357 acl_save_exec_prefix="$exec_prefix"
7358 exec_prefix="$acl_final_exec_prefix"
7359 eval x=\"$x\"
7360 exec_prefix="$acl_save_exec_prefix"
7361 prefix="$acl_save_prefix"
7362
7363 if test "X$x" = "X$element"; then
7364 haveit=yes
7365 break
7366 fi
7367 done
7368 if test -z "$haveit"; then
7369 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7370 fi
7371 done
7372
7373 fi
7374
7375
7376 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7377
7378
7379 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7380
7381 fi
7382
7383 POSUB=po
7384 fi
7385
7386
7387
7388 INTLLIBS="$LIBINTL"
7389
7390
7391
7392
7393
7394
7395 fi
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7408 $as_echo_n "checking whether NLS is requested... " >&6; }
7409 if test x"$USE_NLS" != xyes; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411 $as_echo "no" >&6; }
7412 else
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7414 $as_echo "yes" >&6; }
7415
7416 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7417
7418
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7420 $as_echo_n "checking for catalogs to be installed... " >&6; }
7421 # Look for .po and .gmo files in the source directory.
7422 CATALOGS=
7423 XLINGUAS=
7424 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7425 # If there aren't any .gmo files the shell will give us the
7426 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7427 # weeded out.
7428 case "$cat" in *\**)
7429 continue;;
7430 esac
7431 # The quadruple backslash is collapsed to a double backslash
7432 # by the backticks, then collapsed again by the double quotes,
7433 # leaving us with one backslash in the sed expression (right
7434 # before the dot that mustn't act as a wildcard).
7435 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7436 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
7437 # The user is allowed to set LINGUAS to a list of languages to
7438 # install catalogs for. If it's empty that means "all of them."
7439 if test "x$LINGUAS" = x; then
7440 CATALOGS="$CATALOGS $cat"
7441 XLINGUAS="$XLINGUAS $lang"
7442 else
7443 case "$LINGUAS" in *$lang*)
7444 CATALOGS="$CATALOGS $cat"
7445 XLINGUAS="$XLINGUAS $lang"
7446 ;;
7447 esac
7448 fi
7449 done
7450 LINGUAS="$XLINGUAS"
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7452 $as_echo "$LINGUAS" >&6; }
7453
7454
7455 DATADIRNAME=share
7456
7457 INSTOBJEXT=.mo
7458
7459 GENCAT=gencat
7460
7461 CATOBJEXT=.gmo
7462
7463 fi
7464
7465 # Check whether --enable-shared was given.
7466 if test "${enable_shared+set}" = set; then :
7467 enableval=$enable_shared; p=${PACKAGE-default}
7468 case $enableval in
7469 yes) enable_shared=yes ;;
7470 no) enable_shared=no ;;
7471 *)
7472 enable_shared=no
7473 # Look at the argument we got. We use all the common list separators.
7474 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7475 for pkg in $enableval; do
7476 IFS="$lt_save_ifs"
7477 if test "X$pkg" = "X$p"; then
7478 enable_shared=yes
7479 fi
7480 done
7481 IFS="$lt_save_ifs"
7482 ;;
7483 esac
7484 else
7485 enable_shared=no
7486 fi
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497 case `pwd` in
7498 *\ * | *\ *)
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7500 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7501 esac
7502
7503
7504
7505 macro_version='2.2.7a'
7506 macro_revision='1.3134'
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520 ltmain="$ac_aux_dir/ltmain.sh"
7521
7522 # Backslashify metacharacters that are still active within
7523 # double-quoted strings.
7524 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7525
7526 # Same as above, but do not quote variable references.
7527 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7528
7529 # Sed substitution to delay expansion of an escaped shell variable in a
7530 # double_quote_subst'ed string.
7531 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7532
7533 # Sed substitution to delay expansion of an escaped single quote.
7534 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7535
7536 # Sed substitution to avoid accidental globbing in evaled expressions
7537 no_glob_subst='s/\*/\\\*/g'
7538
7539 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7540 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7541 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7542
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7544 $as_echo_n "checking how to print strings... " >&6; }
7545 # Test print first, because it will be a builtin if present.
7546 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
7547 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7548 ECHO='print -r --'
7549 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7550 ECHO='printf %s\n'
7551 else
7552 # Use this function as a fallback that always works.
7553 func_fallback_echo ()
7554 {
7555 eval 'cat <<_LTECHO_EOF
7556 $1
7557 _LTECHO_EOF'
7558 }
7559 ECHO='func_fallback_echo'
7560 fi
7561
7562 # func_echo_all arg...
7563 # Invoke $ECHO with all args, space-separated.
7564 func_echo_all ()
7565 {
7566 $ECHO ""
7567 }
7568
7569 case "$ECHO" in
7570 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7571 $as_echo "printf" >&6; } ;;
7572 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7573 $as_echo "print -r" >&6; } ;;
7574 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7575 $as_echo "cat" >&6; } ;;
7576 esac
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7592 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7593 if ${ac_cv_path_SED+:} false; then :
7594 $as_echo_n "(cached) " >&6
7595 else
7596 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7597 for ac_i in 1 2 3 4 5 6 7; do
7598 ac_script="$ac_script$as_nl$ac_script"
7599 done
7600 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7601 { ac_script=; unset ac_script;}
7602 if test -z "$SED"; then
7603 ac_path_SED_found=false
7604 # Loop through the user's path and test for each of PROGNAME-LIST
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 for as_dir in $PATH
7607 do
7608 IFS=$as_save_IFS
7609 test -z "$as_dir" && as_dir=.
7610 for ac_prog in sed gsed; do
7611 for ac_exec_ext in '' $ac_executable_extensions; do
7612 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7613 as_fn_executable_p "$ac_path_SED" || continue
7614 # Check for GNU ac_path_SED and select it if it is found.
7615 # Check for GNU $ac_path_SED
7616 case `"$ac_path_SED" --version 2>&1` in
7617 *GNU*)
7618 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7619 *)
7620 ac_count=0
7621 $as_echo_n 0123456789 >"conftest.in"
7622 while :
7623 do
7624 cat "conftest.in" "conftest.in" >"conftest.tmp"
7625 mv "conftest.tmp" "conftest.in"
7626 cp "conftest.in" "conftest.nl"
7627 $as_echo '' >> "conftest.nl"
7628 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7629 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7630 as_fn_arith $ac_count + 1 && ac_count=$as_val
7631 if test $ac_count -gt ${ac_path_SED_max-0}; then
7632 # Best one so far, save it but keep looking for a better one
7633 ac_cv_path_SED="$ac_path_SED"
7634 ac_path_SED_max=$ac_count
7635 fi
7636 # 10*(2^10) chars as input seems more than enough
7637 test $ac_count -gt 10 && break
7638 done
7639 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7640 esac
7641
7642 $ac_path_SED_found && break 3
7643 done
7644 done
7645 done
7646 IFS=$as_save_IFS
7647 if test -z "$ac_cv_path_SED"; then
7648 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7649 fi
7650 else
7651 ac_cv_path_SED=$SED
7652 fi
7653
7654 fi
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7656 $as_echo "$ac_cv_path_SED" >&6; }
7657 SED="$ac_cv_path_SED"
7658 rm -f conftest.sed
7659
7660 test -z "$SED" && SED=sed
7661 Xsed="$SED -e 1s/^X//"
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7674 $as_echo_n "checking for fgrep... " >&6; }
7675 if ${ac_cv_path_FGREP+:} false; then :
7676 $as_echo_n "(cached) " >&6
7677 else
7678 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7679 then ac_cv_path_FGREP="$GREP -F"
7680 else
7681 if test -z "$FGREP"; then
7682 ac_path_FGREP_found=false
7683 # Loop through the user's path and test for each of PROGNAME-LIST
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7686 do
7687 IFS=$as_save_IFS
7688 test -z "$as_dir" && as_dir=.
7689 for ac_prog in fgrep; do
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7692 as_fn_executable_p "$ac_path_FGREP" || continue
7693 # Check for GNU ac_path_FGREP and select it if it is found.
7694 # Check for GNU $ac_path_FGREP
7695 case `"$ac_path_FGREP" --version 2>&1` in
7696 *GNU*)
7697 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7698 *)
7699 ac_count=0
7700 $as_echo_n 0123456789 >"conftest.in"
7701 while :
7702 do
7703 cat "conftest.in" "conftest.in" >"conftest.tmp"
7704 mv "conftest.tmp" "conftest.in"
7705 cp "conftest.in" "conftest.nl"
7706 $as_echo 'FGREP' >> "conftest.nl"
7707 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7708 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7709 as_fn_arith $ac_count + 1 && ac_count=$as_val
7710 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7711 # Best one so far, save it but keep looking for a better one
7712 ac_cv_path_FGREP="$ac_path_FGREP"
7713 ac_path_FGREP_max=$ac_count
7714 fi
7715 # 10*(2^10) chars as input seems more than enough
7716 test $ac_count -gt 10 && break
7717 done
7718 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7719 esac
7720
7721 $ac_path_FGREP_found && break 3
7722 done
7723 done
7724 done
7725 IFS=$as_save_IFS
7726 if test -z "$ac_cv_path_FGREP"; then
7727 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7728 fi
7729 else
7730 ac_cv_path_FGREP=$FGREP
7731 fi
7732
7733 fi
7734 fi
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7736 $as_echo "$ac_cv_path_FGREP" >&6; }
7737 FGREP="$ac_cv_path_FGREP"
7738
7739
7740 test -z "$GREP" && GREP=grep
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760 # Check whether --with-gnu-ld was given.
7761 if test "${with_gnu_ld+set}" = set; then :
7762 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7763 else
7764 with_gnu_ld=no
7765 fi
7766
7767 ac_prog=ld
7768 if test "$GCC" = yes; then
7769 # Check if gcc -print-prog-name=ld gives a path.
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7771 $as_echo_n "checking for ld used by $CC... " >&6; }
7772 case $host in
7773 *-*-mingw*)
7774 # gcc leaves a trailing carriage return which upsets mingw
7775 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7776 *)
7777 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7778 esac
7779 case $ac_prog in
7780 # Accept absolute paths.
7781 [\\/]* | ?:[\\/]*)
7782 re_direlt='/[^/][^/]*/\.\./'
7783 # Canonicalize the pathname of ld
7784 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7785 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7786 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7787 done
7788 test -z "$LD" && LD="$ac_prog"
7789 ;;
7790 "")
7791 # If it fails, then pretend we aren't using GCC.
7792 ac_prog=ld
7793 ;;
7794 *)
7795 # If it is relative, then search for the first ld in PATH.
7796 with_gnu_ld=unknown
7797 ;;
7798 esac
7799 elif test "$with_gnu_ld" = yes; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7801 $as_echo_n "checking for GNU ld... " >&6; }
7802 else
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7804 $as_echo_n "checking for non-GNU ld... " >&6; }
7805 fi
7806 if ${lt_cv_path_LD+:} false; then :
7807 $as_echo_n "(cached) " >&6
7808 else
7809 if test -z "$LD"; then
7810 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7811 for ac_dir in $PATH; do
7812 IFS="$lt_save_ifs"
7813 test -z "$ac_dir" && ac_dir=.
7814 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7815 lt_cv_path_LD="$ac_dir/$ac_prog"
7816 # Check to see if the program is GNU ld. I'd rather use --version,
7817 # but apparently some variants of GNU ld only accept -v.
7818 # Break only if it was the GNU/non-GNU ld that we prefer.
7819 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7820 *GNU* | *'with BFD'*)
7821 test "$with_gnu_ld" != no && break
7822 ;;
7823 *)
7824 test "$with_gnu_ld" != yes && break
7825 ;;
7826 esac
7827 fi
7828 done
7829 IFS="$lt_save_ifs"
7830 else
7831 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7832 fi
7833 fi
7834
7835 LD="$lt_cv_path_LD"
7836 if test -n "$LD"; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7838 $as_echo "$LD" >&6; }
7839 else
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841 $as_echo "no" >&6; }
7842 fi
7843 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7845 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7846 if ${lt_cv_prog_gnu_ld+:} false; then :
7847 $as_echo_n "(cached) " >&6
7848 else
7849 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7850 case `$LD -v 2>&1 </dev/null` in
7851 *GNU* | *'with BFD'*)
7852 lt_cv_prog_gnu_ld=yes
7853 ;;
7854 *)
7855 lt_cv_prog_gnu_ld=no
7856 ;;
7857 esac
7858 fi
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7860 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7861 with_gnu_ld=$lt_cv_prog_gnu_ld
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7872 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7873 if ${lt_cv_path_NM+:} false; then :
7874 $as_echo_n "(cached) " >&6
7875 else
7876 if test -n "$NM"; then
7877 # Let the user override the nm to test.
7878 lt_nm_to_check="$NM"
7879 else
7880 lt_nm_to_check="${ac_tool_prefix}nm"
7881 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7882 lt_nm_to_check="$lt_nm_to_check nm"
7883 fi
7884 fi
7885 for lt_tmp_nm in "$lt_nm_to_check"; do
7886 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7887 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7888 IFS="$lt_save_ifs"
7889 test -z "$ac_dir" && ac_dir=.
7890 # Strip out any user-provided options from the nm to test twice,
7891 # the first time to test to see if nm (rather than its options) has
7892 # an explicit path, the second time to yield a file which can be
7893 # nm'ed itself.
7894 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
7895 case "$tmp_nm_path" in
7896 */*|*\\*) tmp_nm="$lt_tmp_nm";;
7897 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
7898 esac
7899 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
7900 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
7901 # Check to see if the nm accepts a BSD-compat flag.
7902 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7903 # nm: unknown option "B" ignored
7904 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
7905 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
7906 break
7907 ;;
7908 *)
7909 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
7910 *$tmp_nm*)
7911 lt_cv_path_NM="$tmp_nm -p"
7912 break
7913 ;;
7914 *)
7915 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7916 continue # so that we can try to find one that supports BSD flags
7917 ;;
7918 esac
7919 ;;
7920 esac
7921 fi
7922 done
7923 IFS="$lt_save_ifs"
7924 done
7925 : ${lt_cv_path_NM=no}
7926 fi
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7928 $as_echo "$lt_cv_path_NM" >&6; }
7929 if test "$lt_cv_path_NM" != "no"; then
7930 NM="$lt_cv_path_NM"
7931 else
7932 # Didn't find any BSD compatible name lister, look for dumpbin.
7933 if test -n "$DUMPBIN"; then :
7934 # Let the user override the test.
7935 else
7936 if test -n "$ac_tool_prefix"; then
7937 for ac_prog in dumpbin "link -dump"
7938 do
7939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942 $as_echo_n "checking for $ac_word... " >&6; }
7943 if ${ac_cv_prog_DUMPBIN+:} false; then :
7944 $as_echo_n "(cached) " >&6
7945 else
7946 if test -n "$DUMPBIN"; then
7947 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7948 else
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950 for as_dir in $PATH
7951 do
7952 IFS=$as_save_IFS
7953 test -z "$as_dir" && as_dir=.
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7956 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 break 2
7959 fi
7960 done
7961 done
7962 IFS=$as_save_IFS
7963
7964 fi
7965 fi
7966 DUMPBIN=$ac_cv_prog_DUMPBIN
7967 if test -n "$DUMPBIN"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7969 $as_echo "$DUMPBIN" >&6; }
7970 else
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972 $as_echo "no" >&6; }
7973 fi
7974
7975
7976 test -n "$DUMPBIN" && break
7977 done
7978 fi
7979 if test -z "$DUMPBIN"; then
7980 ac_ct_DUMPBIN=$DUMPBIN
7981 for ac_prog in dumpbin "link -dump"
7982 do
7983 # Extract the first word of "$ac_prog", so it can be a program name with args.
7984 set dummy $ac_prog; ac_word=$2
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7986 $as_echo_n "checking for $ac_word... " >&6; }
7987 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7988 $as_echo_n "(cached) " >&6
7989 else
7990 if test -n "$ac_ct_DUMPBIN"; then
7991 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7992 else
7993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994 for as_dir in $PATH
7995 do
7996 IFS=$as_save_IFS
7997 test -z "$as_dir" && as_dir=.
7998 for ac_exec_ext in '' $ac_executable_extensions; do
7999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8000 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8002 break 2
8003 fi
8004 done
8005 done
8006 IFS=$as_save_IFS
8007
8008 fi
8009 fi
8010 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8011 if test -n "$ac_ct_DUMPBIN"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8013 $as_echo "$ac_ct_DUMPBIN" >&6; }
8014 else
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8017 fi
8018
8019
8020 test -n "$ac_ct_DUMPBIN" && break
8021 done
8022
8023 if test "x$ac_ct_DUMPBIN" = x; then
8024 DUMPBIN=":"
8025 else
8026 case $cross_compiling:$ac_tool_warned in
8027 yes:)
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8030 ac_tool_warned=yes ;;
8031 esac
8032 DUMPBIN=$ac_ct_DUMPBIN
8033 fi
8034 fi
8035
8036 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8037 *COFF*)
8038 DUMPBIN="$DUMPBIN -symbols"
8039 ;;
8040 *)
8041 DUMPBIN=:
8042 ;;
8043 esac
8044 fi
8045
8046 if test "$DUMPBIN" != ":"; then
8047 NM="$DUMPBIN"
8048 fi
8049 fi
8050 test -z "$NM" && NM=nm
8051
8052
8053
8054
8055
8056
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8058 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8059 if ${lt_cv_nm_interface+:} false; then :
8060 $as_echo_n "(cached) " >&6
8061 else
8062 lt_cv_nm_interface="BSD nm"
8063 echo "int some_variable = 0;" > conftest.$ac_ext
8064 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8065 (eval "$ac_compile" 2>conftest.err)
8066 cat conftest.err >&5
8067 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8068 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8069 cat conftest.err >&5
8070 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8071 cat conftest.out >&5
8072 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8073 lt_cv_nm_interface="MS dumpbin"
8074 fi
8075 rm -f conftest*
8076 fi
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8078 $as_echo "$lt_cv_nm_interface" >&6; }
8079
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8081 $as_echo_n "checking whether ln -s works... " >&6; }
8082 LN_S=$as_ln_s
8083 if test "$LN_S" = "ln -s"; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8085 $as_echo "yes" >&6; }
8086 else
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8088 $as_echo "no, using $LN_S" >&6; }
8089 fi
8090
8091 # find the maximum length of command line arguments
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8093 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8094 if ${lt_cv_sys_max_cmd_len+:} false; then :
8095 $as_echo_n "(cached) " >&6
8096 else
8097 i=0
8098 teststring="ABCD"
8099
8100 case $build_os in
8101 msdosdjgpp*)
8102 # On DJGPP, this test can blow up pretty badly due to problems in libc
8103 # (any single argument exceeding 2000 bytes causes a buffer overrun
8104 # during glob expansion). Even if it were fixed, the result of this
8105 # check would be larger than it should be.
8106 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8107 ;;
8108
8109 gnu*)
8110 # Under GNU Hurd, this test is not required because there is
8111 # no limit to the length of command line arguments.
8112 # Libtool will interpret -1 as no limit whatsoever
8113 lt_cv_sys_max_cmd_len=-1;
8114 ;;
8115
8116 cygwin* | mingw* | cegcc*)
8117 # On Win9x/ME, this test blows up -- it succeeds, but takes
8118 # about 5 minutes as the teststring grows exponentially.
8119 # Worse, since 9x/ME are not pre-emptively multitasking,
8120 # you end up with a "frozen" computer, even though with patience
8121 # the test eventually succeeds (with a max line length of 256k).
8122 # Instead, let's just punt: use the minimum linelength reported by
8123 # all of the supported platforms: 8192 (on NT/2K/XP).
8124 lt_cv_sys_max_cmd_len=8192;
8125 ;;
8126
8127 mint*)
8128 # On MiNT this can take a long time and run out of memory.
8129 lt_cv_sys_max_cmd_len=8192;
8130 ;;
8131
8132 amigaos*)
8133 # On AmigaOS with pdksh, this test takes hours, literally.
8134 # So we just punt and use a minimum line length of 8192.
8135 lt_cv_sys_max_cmd_len=8192;
8136 ;;
8137
8138 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8139 # This has been around since 386BSD, at least. Likely further.
8140 if test -x /sbin/sysctl; then
8141 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8142 elif test -x /usr/sbin/sysctl; then
8143 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8144 else
8145 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8146 fi
8147 # And add a safety zone
8148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8149 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8150 ;;
8151
8152 interix*)
8153 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8154 lt_cv_sys_max_cmd_len=196608
8155 ;;
8156
8157 osf*)
8158 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8159 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8160 # nice to cause kernel panics so lets avoid the loop below.
8161 # First set a reasonable default.
8162 lt_cv_sys_max_cmd_len=16384
8163 #
8164 if test -x /sbin/sysconfig; then
8165 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8166 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8167 esac
8168 fi
8169 ;;
8170 sco3.2v5*)
8171 lt_cv_sys_max_cmd_len=102400
8172 ;;
8173 sysv5* | sco5v6* | sysv4.2uw2*)
8174 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8175 if test -n "$kargmax"; then
8176 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8177 else
8178 lt_cv_sys_max_cmd_len=32768
8179 fi
8180 ;;
8181 *)
8182 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8183 if test -n "$lt_cv_sys_max_cmd_len"; then
8184 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8185 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8186 else
8187 # Make teststring a little bigger before we do anything with it.
8188 # a 1K string should be a reasonable start.
8189 for i in 1 2 3 4 5 6 7 8 ; do
8190 teststring=$teststring$teststring
8191 done
8192 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8193 # If test is not a shell built-in, we'll probably end up computing a
8194 # maximum length that is only half of the actual maximum length, but
8195 # we can't tell.
8196 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
8197 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8198 test $i != 17 # 1/2 MB should be enough
8199 do
8200 i=`expr $i + 1`
8201 teststring=$teststring$teststring
8202 done
8203 # Only check the string length outside the loop.
8204 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8205 teststring=
8206 # Add a significant safety factor because C++ compilers can tack on
8207 # massive amounts of additional arguments before passing them to the
8208 # linker. It appears as though 1/2 is a usable value.
8209 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8210 fi
8211 ;;
8212 esac
8213
8214 fi
8215
8216 if test -n $lt_cv_sys_max_cmd_len ; then
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8218 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8219 else
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8221 $as_echo "none" >&6; }
8222 fi
8223 max_cmd_len=$lt_cv_sys_max_cmd_len
8224
8225
8226
8227
8228
8229
8230 : ${CP="cp -f"}
8231 : ${MV="mv -f"}
8232 : ${RM="rm -f"}
8233
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8235 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8236 # Try some XSI features
8237 xsi_shell=no
8238 ( _lt_dummy="a/b/c"
8239 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8240 = c,a/b,, \
8241 && eval 'test $(( 1 + 1 )) -eq 2 \
8242 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8243 && xsi_shell=yes
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8245 $as_echo "$xsi_shell" >&6; }
8246
8247
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8249 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8250 lt_shell_append=no
8251 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8252 >/dev/null 2>&1 \
8253 && lt_shell_append=yes
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8255 $as_echo "$lt_shell_append" >&6; }
8256
8257
8258 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8259 lt_unset=unset
8260 else
8261 lt_unset=false
8262 fi
8263
8264
8265
8266
8267
8268 # test EBCDIC or ASCII
8269 case `echo X|tr X '\101'` in
8270 A) # ASCII based system
8271 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8272 lt_SP2NL='tr \040 \012'
8273 lt_NL2SP='tr \015\012 \040\040'
8274 ;;
8275 *) # EBCDIC based system
8276 lt_SP2NL='tr \100 \n'
8277 lt_NL2SP='tr \r\n \100\100'
8278 ;;
8279 esac
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8290 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8291 if ${lt_cv_ld_reload_flag+:} false; then :
8292 $as_echo_n "(cached) " >&6
8293 else
8294 lt_cv_ld_reload_flag='-r'
8295 fi
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8297 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8298 reload_flag=$lt_cv_ld_reload_flag
8299 case $reload_flag in
8300 "" | " "*) ;;
8301 *) reload_flag=" $reload_flag" ;;
8302 esac
8303 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8304 case $host_os in
8305 darwin*)
8306 if test "$GCC" = yes; then
8307 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8308 else
8309 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8310 fi
8311 ;;
8312 esac
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322 if test -n "$ac_tool_prefix"; then
8323 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8324 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8326 $as_echo_n "checking for $ac_word... " >&6; }
8327 if ${ac_cv_prog_OBJDUMP+:} false; then :
8328 $as_echo_n "(cached) " >&6
8329 else
8330 if test -n "$OBJDUMP"; then
8331 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8332 else
8333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8334 for as_dir in $PATH
8335 do
8336 IFS=$as_save_IFS
8337 test -z "$as_dir" && as_dir=.
8338 for ac_exec_ext in '' $ac_executable_extensions; do
8339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8340 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8342 break 2
8343 fi
8344 done
8345 done
8346 IFS=$as_save_IFS
8347
8348 fi
8349 fi
8350 OBJDUMP=$ac_cv_prog_OBJDUMP
8351 if test -n "$OBJDUMP"; then
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8353 $as_echo "$OBJDUMP" >&6; }
8354 else
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8356 $as_echo "no" >&6; }
8357 fi
8358
8359
8360 fi
8361 if test -z "$ac_cv_prog_OBJDUMP"; then
8362 ac_ct_OBJDUMP=$OBJDUMP
8363 # Extract the first word of "objdump", so it can be a program name with args.
8364 set dummy objdump; ac_word=$2
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366 $as_echo_n "checking for $ac_word... " >&6; }
8367 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8368 $as_echo_n "(cached) " >&6
8369 else
8370 if test -n "$ac_ct_OBJDUMP"; then
8371 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8372 else
8373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374 for as_dir in $PATH
8375 do
8376 IFS=$as_save_IFS
8377 test -z "$as_dir" && as_dir=.
8378 for ac_exec_ext in '' $ac_executable_extensions; do
8379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8380 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 break 2
8383 fi
8384 done
8385 done
8386 IFS=$as_save_IFS
8387
8388 fi
8389 fi
8390 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8391 if test -n "$ac_ct_OBJDUMP"; then
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8393 $as_echo "$ac_ct_OBJDUMP" >&6; }
8394 else
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396 $as_echo "no" >&6; }
8397 fi
8398
8399 if test "x$ac_ct_OBJDUMP" = x; then
8400 OBJDUMP="false"
8401 else
8402 case $cross_compiling:$ac_tool_warned in
8403 yes:)
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8406 ac_tool_warned=yes ;;
8407 esac
8408 OBJDUMP=$ac_ct_OBJDUMP
8409 fi
8410 else
8411 OBJDUMP="$ac_cv_prog_OBJDUMP"
8412 fi
8413
8414 test -z "$OBJDUMP" && OBJDUMP=objdump
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8425 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8426 if ${lt_cv_deplibs_check_method+:} false; then :
8427 $as_echo_n "(cached) " >&6
8428 else
8429 lt_cv_file_magic_cmd='$MAGIC_CMD'
8430 lt_cv_file_magic_test_file=
8431 lt_cv_deplibs_check_method='unknown'
8432 # Need to set the preceding variable on all platforms that support
8433 # interlibrary dependencies.
8434 # 'none' -- dependencies not supported.
8435 # `unknown' -- same as none, but documents that we really don't know.
8436 # 'pass_all' -- all dependencies passed with no checks.
8437 # 'test_compile' -- check by making test program.
8438 # 'file_magic [[regex]]' -- check by looking for files in library path
8439 # which responds to the $file_magic_cmd with a given extended regex.
8440 # If you have `file' or equivalent on your system and you're not sure
8441 # whether `pass_all' will *always* work, you probably want this one.
8442
8443 case $host_os in
8444 aix[4-9]*)
8445 lt_cv_deplibs_check_method=pass_all
8446 ;;
8447
8448 beos*)
8449 lt_cv_deplibs_check_method=pass_all
8450 ;;
8451
8452 bsdi[45]*)
8453 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8454 lt_cv_file_magic_cmd='/usr/bin/file -L'
8455 lt_cv_file_magic_test_file=/shlib/libc.so
8456 ;;
8457
8458 cygwin*)
8459 # func_win32_libid is a shell function defined in ltmain.sh
8460 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8461 lt_cv_file_magic_cmd='func_win32_libid'
8462 ;;
8463
8464 mingw* | pw32*)
8465 # Base MSYS/MinGW do not provide the 'file' command needed by
8466 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8467 # unless we find 'file', for example because we are cross-compiling.
8468 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8469 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8470 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8471 lt_cv_file_magic_cmd='func_win32_libid'
8472 else
8473 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8474 lt_cv_file_magic_cmd='$OBJDUMP -f'
8475 fi
8476 ;;
8477
8478 cegcc*)
8479 # use the weaker test based on 'objdump'. See mingw*.
8480 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8481 lt_cv_file_magic_cmd='$OBJDUMP -f'
8482 ;;
8483
8484 darwin* | rhapsody*)
8485 lt_cv_deplibs_check_method=pass_all
8486 ;;
8487
8488 freebsd* | dragonfly*)
8489 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8490 case $host_cpu in
8491 i*86 )
8492 # Not sure whether the presence of OpenBSD here was a mistake.
8493 # Let's accept both of them until this is cleared up.
8494 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8495 lt_cv_file_magic_cmd=/usr/bin/file
8496 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8497 ;;
8498 esac
8499 else
8500 lt_cv_deplibs_check_method=pass_all
8501 fi
8502 ;;
8503
8504 gnu*)
8505 lt_cv_deplibs_check_method=pass_all
8506 ;;
8507
8508 haiku*)
8509 lt_cv_deplibs_check_method=pass_all
8510 ;;
8511
8512 hpux10.20* | hpux11*)
8513 lt_cv_file_magic_cmd=/usr/bin/file
8514 case $host_cpu in
8515 ia64*)
8516 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8517 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8518 ;;
8519 hppa*64*)
8520 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]'
8521 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8522 ;;
8523 *)
8524 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8525 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8526 ;;
8527 esac
8528 ;;
8529
8530 interix[3-9]*)
8531 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8532 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8533 ;;
8534
8535 irix5* | irix6* | nonstopux*)
8536 case $LD in
8537 *-32|*"-32 ") libmagic=32-bit;;
8538 *-n32|*"-n32 ") libmagic=N32;;
8539 *-64|*"-64 ") libmagic=64-bit;;
8540 *) libmagic=never-match;;
8541 esac
8542 lt_cv_deplibs_check_method=pass_all
8543 ;;
8544
8545 # This must be Linux ELF.
8546 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8547 lt_cv_deplibs_check_method=pass_all
8548 ;;
8549
8550 netbsd*)
8551 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8553 else
8554 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8555 fi
8556 ;;
8557
8558 newos6*)
8559 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8560 lt_cv_file_magic_cmd=/usr/bin/file
8561 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8562 ;;
8563
8564 *nto* | *qnx*)
8565 lt_cv_deplibs_check_method=pass_all
8566 ;;
8567
8568 openbsd*)
8569 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8571 else
8572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8573 fi
8574 ;;
8575
8576 osf3* | osf4* | osf5*)
8577 lt_cv_deplibs_check_method=pass_all
8578 ;;
8579
8580 rdos*)
8581 lt_cv_deplibs_check_method=pass_all
8582 ;;
8583
8584 solaris*)
8585 lt_cv_deplibs_check_method=pass_all
8586 ;;
8587
8588 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8589 lt_cv_deplibs_check_method=pass_all
8590 ;;
8591
8592 sysv4 | sysv4.3*)
8593 case $host_vendor in
8594 motorola)
8595 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]'
8596 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8597 ;;
8598 ncr)
8599 lt_cv_deplibs_check_method=pass_all
8600 ;;
8601 sequent)
8602 lt_cv_file_magic_cmd='/bin/file'
8603 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8604 ;;
8605 sni)
8606 lt_cv_file_magic_cmd='/bin/file'
8607 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8608 lt_cv_file_magic_test_file=/lib/libc.so
8609 ;;
8610 siemens)
8611 lt_cv_deplibs_check_method=pass_all
8612 ;;
8613 pc)
8614 lt_cv_deplibs_check_method=pass_all
8615 ;;
8616 esac
8617 ;;
8618
8619 tpf*)
8620 lt_cv_deplibs_check_method=pass_all
8621 ;;
8622 vxworks*)
8623 # Assume VxWorks cross toolchains are built on Linux, possibly
8624 # as canadian for Windows hosts.
8625 lt_cv_deplibs_check_method=pass_all
8626 ;;
8627 esac
8628
8629 fi
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8631 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8632 file_magic_cmd=$lt_cv_file_magic_cmd
8633 deplibs_check_method=$lt_cv_deplibs_check_method
8634 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647 plugin_option=
8648 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
8649 for plugin in $plugin_names; do
8650 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
8651 if test x$plugin_so = x$plugin; then
8652 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
8653 fi
8654 if test x$plugin_so != x$plugin; then
8655 plugin_option="--plugin $plugin_so"
8656 break
8657 fi
8658 done
8659
8660 if test -n "$ac_tool_prefix"; then
8661 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8662 set dummy ${ac_tool_prefix}ar; ac_word=$2
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8664 $as_echo_n "checking for $ac_word... " >&6; }
8665 if ${ac_cv_prog_AR+:} false; then :
8666 $as_echo_n "(cached) " >&6
8667 else
8668 if test -n "$AR"; then
8669 ac_cv_prog_AR="$AR" # Let the user override the test.
8670 else
8671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8672 for as_dir in $PATH
8673 do
8674 IFS=$as_save_IFS
8675 test -z "$as_dir" && as_dir=.
8676 for ac_exec_ext in '' $ac_executable_extensions; do
8677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8678 ac_cv_prog_AR="${ac_tool_prefix}ar"
8679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8680 break 2
8681 fi
8682 done
8683 done
8684 IFS=$as_save_IFS
8685
8686 fi
8687 fi
8688 AR=$ac_cv_prog_AR
8689 if test -n "$AR"; then
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8691 $as_echo "$AR" >&6; }
8692 else
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8694 $as_echo "no" >&6; }
8695 fi
8696
8697
8698 fi
8699 if test -z "$ac_cv_prog_AR"; then
8700 ac_ct_AR=$AR
8701 # Extract the first word of "ar", so it can be a program name with args.
8702 set dummy ar; ac_word=$2
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8704 $as_echo_n "checking for $ac_word... " >&6; }
8705 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8706 $as_echo_n "(cached) " >&6
8707 else
8708 if test -n "$ac_ct_AR"; then
8709 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8710 else
8711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8712 for as_dir in $PATH
8713 do
8714 IFS=$as_save_IFS
8715 test -z "$as_dir" && as_dir=.
8716 for ac_exec_ext in '' $ac_executable_extensions; do
8717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8718 ac_cv_prog_ac_ct_AR="ar"
8719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8720 break 2
8721 fi
8722 done
8723 done
8724 IFS=$as_save_IFS
8725
8726 fi
8727 fi
8728 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8729 if test -n "$ac_ct_AR"; then
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8731 $as_echo "$ac_ct_AR" >&6; }
8732 else
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 $as_echo "no" >&6; }
8735 fi
8736
8737 if test "x$ac_ct_AR" = x; then
8738 AR="false"
8739 else
8740 case $cross_compiling:$ac_tool_warned in
8741 yes:)
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8744 ac_tool_warned=yes ;;
8745 esac
8746 AR=$ac_ct_AR
8747 fi
8748 else
8749 AR="$ac_cv_prog_AR"
8750 fi
8751
8752 test -z "$AR" && AR=ar
8753 if test -n "$plugin_option"; then
8754 if $AR --help 2>&1 | grep -q "\--plugin"; then
8755 touch conftest.c
8756 $AR $plugin_option rc conftest.a conftest.c
8757 if test "$?" != 0; then
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
8759 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
8760 else
8761 AR="$AR $plugin_option"
8762 fi
8763 rm -f conftest.*
8764 fi
8765 fi
8766 test -z "$AR_FLAGS" && AR_FLAGS=cru
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778 if test -n "$ac_tool_prefix"; then
8779 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8780 set dummy ${ac_tool_prefix}strip; ac_word=$2
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782 $as_echo_n "checking for $ac_word... " >&6; }
8783 if ${ac_cv_prog_STRIP+:} false; then :
8784 $as_echo_n "(cached) " >&6
8785 else
8786 if test -n "$STRIP"; then
8787 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8788 else
8789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790 for as_dir in $PATH
8791 do
8792 IFS=$as_save_IFS
8793 test -z "$as_dir" && as_dir=.
8794 for ac_exec_ext in '' $ac_executable_extensions; do
8795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8796 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8798 break 2
8799 fi
8800 done
8801 done
8802 IFS=$as_save_IFS
8803
8804 fi
8805 fi
8806 STRIP=$ac_cv_prog_STRIP
8807 if test -n "$STRIP"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8809 $as_echo "$STRIP" >&6; }
8810 else
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812 $as_echo "no" >&6; }
8813 fi
8814
8815
8816 fi
8817 if test -z "$ac_cv_prog_STRIP"; then
8818 ac_ct_STRIP=$STRIP
8819 # Extract the first word of "strip", so it can be a program name with args.
8820 set dummy strip; ac_word=$2
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822 $as_echo_n "checking for $ac_word... " >&6; }
8823 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8824 $as_echo_n "(cached) " >&6
8825 else
8826 if test -n "$ac_ct_STRIP"; then
8827 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8828 else
8829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8830 for as_dir in $PATH
8831 do
8832 IFS=$as_save_IFS
8833 test -z "$as_dir" && as_dir=.
8834 for ac_exec_ext in '' $ac_executable_extensions; do
8835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8836 ac_cv_prog_ac_ct_STRIP="strip"
8837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8838 break 2
8839 fi
8840 done
8841 done
8842 IFS=$as_save_IFS
8843
8844 fi
8845 fi
8846 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8847 if test -n "$ac_ct_STRIP"; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8849 $as_echo "$ac_ct_STRIP" >&6; }
8850 else
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852 $as_echo "no" >&6; }
8853 fi
8854
8855 if test "x$ac_ct_STRIP" = x; then
8856 STRIP=":"
8857 else
8858 case $cross_compiling:$ac_tool_warned in
8859 yes:)
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8862 ac_tool_warned=yes ;;
8863 esac
8864 STRIP=$ac_ct_STRIP
8865 fi
8866 else
8867 STRIP="$ac_cv_prog_STRIP"
8868 fi
8869
8870 test -z "$STRIP" && STRIP=:
8871
8872
8873
8874
8875
8876
8877 if test -n "$ac_tool_prefix"; then
8878 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8879 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8881 $as_echo_n "checking for $ac_word... " >&6; }
8882 if ${ac_cv_prog_RANLIB+:} false; then :
8883 $as_echo_n "(cached) " >&6
8884 else
8885 if test -n "$RANLIB"; then
8886 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8887 else
8888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8889 for as_dir in $PATH
8890 do
8891 IFS=$as_save_IFS
8892 test -z "$as_dir" && as_dir=.
8893 for ac_exec_ext in '' $ac_executable_extensions; do
8894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8895 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8897 break 2
8898 fi
8899 done
8900 done
8901 IFS=$as_save_IFS
8902
8903 fi
8904 fi
8905 RANLIB=$ac_cv_prog_RANLIB
8906 if test -n "$RANLIB"; then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8908 $as_echo "$RANLIB" >&6; }
8909 else
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911 $as_echo "no" >&6; }
8912 fi
8913
8914
8915 fi
8916 if test -z "$ac_cv_prog_RANLIB"; then
8917 ac_ct_RANLIB=$RANLIB
8918 # Extract the first word of "ranlib", so it can be a program name with args.
8919 set dummy ranlib; ac_word=$2
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8921 $as_echo_n "checking for $ac_word... " >&6; }
8922 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8923 $as_echo_n "(cached) " >&6
8924 else
8925 if test -n "$ac_ct_RANLIB"; then
8926 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8927 else
8928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8929 for as_dir in $PATH
8930 do
8931 IFS=$as_save_IFS
8932 test -z "$as_dir" && as_dir=.
8933 for ac_exec_ext in '' $ac_executable_extensions; do
8934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8935 ac_cv_prog_ac_ct_RANLIB="ranlib"
8936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8937 break 2
8938 fi
8939 done
8940 done
8941 IFS=$as_save_IFS
8942
8943 fi
8944 fi
8945 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8946 if test -n "$ac_ct_RANLIB"; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8948 $as_echo "$ac_ct_RANLIB" >&6; }
8949 else
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951 $as_echo "no" >&6; }
8952 fi
8953
8954 if test "x$ac_ct_RANLIB" = x; then
8955 RANLIB=":"
8956 else
8957 case $cross_compiling:$ac_tool_warned in
8958 yes:)
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8961 ac_tool_warned=yes ;;
8962 esac
8963 RANLIB=$ac_ct_RANLIB
8964 fi
8965 else
8966 RANLIB="$ac_cv_prog_RANLIB"
8967 fi
8968
8969 test -z "$RANLIB" && RANLIB=:
8970 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
8971 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
8972 RANLIB="$RANLIB $plugin_option"
8973 fi
8974 fi
8975
8976
8977
8978
8979
8980
8981 # Determine commands to create old-style static archives.
8982 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8983 old_postinstall_cmds='chmod 644 $oldlib'
8984 old_postuninstall_cmds=
8985
8986 if test -n "$RANLIB"; then
8987 case $host_os in
8988 openbsd*)
8989 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8990 ;;
8991 *)
8992 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8993 ;;
8994 esac
8995 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8996 fi
8997
8998 case $host_os in
8999 darwin*)
9000 lock_old_archive_extraction=yes ;;
9001 *)
9002 lock_old_archive_extraction=no ;;
9003 esac
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043 # If no C compiler was specified, use CC.
9044 LTCC=${LTCC-"$CC"}
9045
9046 # If no C compiler flags were specified, use CFLAGS.
9047 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9048
9049 # Allow CC to be a program name with arguments.
9050 compiler=$CC
9051
9052
9053 # Check for command to grab the raw symbol name followed by C symbol from nm.
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9055 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9056 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9057 $as_echo_n "(cached) " >&6
9058 else
9059
9060 # These are sane defaults that work on at least a few old systems.
9061 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9062
9063 # Character class describing NM global symbol codes.
9064 symcode='[BCDEGRST]'
9065
9066 # Regexp to match symbols that can be accessed directly from C.
9067 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9068
9069 # Define system-specific variables.
9070 case $host_os in
9071 aix*)
9072 symcode='[BCDT]'
9073 ;;
9074 cygwin* | mingw* | pw32* | cegcc*)
9075 symcode='[ABCDGISTW]'
9076 ;;
9077 hpux*)
9078 if test "$host_cpu" = ia64; then
9079 symcode='[ABCDEGRST]'
9080 fi
9081 ;;
9082 irix* | nonstopux*)
9083 symcode='[BCDEGRST]'
9084 ;;
9085 osf*)
9086 symcode='[BCDEGQRST]'
9087 ;;
9088 solaris*)
9089 symcode='[BCDRT]'
9090 ;;
9091 sco3.2v5*)
9092 symcode='[DT]'
9093 ;;
9094 sysv4.2uw2*)
9095 symcode='[DT]'
9096 ;;
9097 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9098 symcode='[ABDT]'
9099 ;;
9100 sysv4)
9101 symcode='[DFNSTU]'
9102 ;;
9103 esac
9104
9105 # If we're using GNU nm, then use its standard symbol codes.
9106 case `$NM -V 2>&1` in
9107 *GNU* | *'with BFD'*)
9108 symcode='[ABCDGIRSTW]' ;;
9109 esac
9110
9111 # Transform an extracted symbol line into a proper C declaration.
9112 # Some systems (esp. on ia64) link data and code symbols differently,
9113 # so use this general approach.
9114 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9115
9116 # Transform an extracted symbol line into symbol name and symbol address
9117 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9118 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'"
9119
9120 # Handle CRLF in mingw tool chain
9121 opt_cr=
9122 case $build_os in
9123 mingw*)
9124 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9125 ;;
9126 esac
9127
9128 # Try without a prefix underscore, then with it.
9129 for ac_symprfx in "" "_"; do
9130
9131 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9132 symxfrm="\\1 $ac_symprfx\\2 \\2"
9133
9134 # Write the raw and C identifiers.
9135 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9136 # Fake it for dumpbin and say T for any non-static function
9137 # and D for any global variable.
9138 # Also find C++ and __fastcall symbols from MSVC++,
9139 # which start with @ or ?.
9140 lt_cv_sys_global_symbol_pipe="$AWK '"\
9141 " {last_section=section; section=\$ 3};"\
9142 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9143 " \$ 0!~/External *\|/{next};"\
9144 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9145 " {if(hide[section]) next};"\
9146 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9147 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9148 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
9149 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9150 " ' prfx=^$ac_symprfx"
9151 else
9152 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9153 fi
9154
9155 # Check to see that the pipe works correctly.
9156 pipe_works=no
9157
9158 rm -f conftest*
9159 cat > conftest.$ac_ext <<_LT_EOF
9160 #ifdef __cplusplus
9161 extern "C" {
9162 #endif
9163 char nm_test_var;
9164 void nm_test_func(void);
9165 void nm_test_func(void){}
9166 #ifdef __cplusplus
9167 }
9168 #endif
9169 int main(){nm_test_var='a';nm_test_func();return(0);}
9170 _LT_EOF
9171
9172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9173 (eval $ac_compile) 2>&5
9174 ac_status=$?
9175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9176 test $ac_status = 0; }; then
9177 # Now try to grab the symbols.
9178 nlist=conftest.nm
9179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9180 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9181 ac_status=$?
9182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9183 test $ac_status = 0; } && test -s "$nlist"; then
9184 # Try sorting and uniquifying the output.
9185 if sort "$nlist" | uniq > "$nlist"T; then
9186 mv -f "$nlist"T "$nlist"
9187 else
9188 rm -f "$nlist"T
9189 fi
9190
9191 # Make sure that we snagged all the symbols we need.
9192 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9193 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9194 cat <<_LT_EOF > conftest.$ac_ext
9195 #ifdef __cplusplus
9196 extern "C" {
9197 #endif
9198
9199 _LT_EOF
9200 # Now generate the symbol file.
9201 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9202
9203 cat <<_LT_EOF >> conftest.$ac_ext
9204
9205 /* The mapping between symbol names and symbols. */
9206 const struct {
9207 const char *name;
9208 void *address;
9209 }
9210 lt__PROGRAM__LTX_preloaded_symbols[] =
9211 {
9212 { "@PROGRAM@", (void *) 0 },
9213 _LT_EOF
9214 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9215 cat <<\_LT_EOF >> conftest.$ac_ext
9216 {0, (void *) 0}
9217 };
9218
9219 /* This works around a problem in FreeBSD linker */
9220 #ifdef FREEBSD_WORKAROUND
9221 static const void *lt_preloaded_setup() {
9222 return lt__PROGRAM__LTX_preloaded_symbols;
9223 }
9224 #endif
9225
9226 #ifdef __cplusplus
9227 }
9228 #endif
9229 _LT_EOF
9230 # Now try linking the two files.
9231 mv conftest.$ac_objext conftstm.$ac_objext
9232 lt_save_LIBS="$LIBS"
9233 lt_save_CFLAGS="$CFLAGS"
9234 LIBS="conftstm.$ac_objext"
9235 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9237 (eval $ac_link) 2>&5
9238 ac_status=$?
9239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9240 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9241 pipe_works=yes
9242 fi
9243 LIBS="$lt_save_LIBS"
9244 CFLAGS="$lt_save_CFLAGS"
9245 else
9246 echo "cannot find nm_test_func in $nlist" >&5
9247 fi
9248 else
9249 echo "cannot find nm_test_var in $nlist" >&5
9250 fi
9251 else
9252 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9253 fi
9254 else
9255 echo "$progname: failed program was:" >&5
9256 cat conftest.$ac_ext >&5
9257 fi
9258 rm -rf conftest* conftst*
9259
9260 # Do not use the global_symbol_pipe unless it works.
9261 if test "$pipe_works" = yes; then
9262 break
9263 else
9264 lt_cv_sys_global_symbol_pipe=
9265 fi
9266 done
9267
9268 fi
9269
9270 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9271 lt_cv_sys_global_symbol_to_cdecl=
9272 fi
9273 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9275 $as_echo "failed" >&6; }
9276 else
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9278 $as_echo "ok" >&6; }
9279 fi
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302 # Check whether --enable-libtool-lock was given.
9303 if test "${enable_libtool_lock+set}" = set; then :
9304 enableval=$enable_libtool_lock;
9305 fi
9306
9307 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9308
9309 # Some flags need to be propagated to the compiler or linker for good
9310 # libtool support.
9311 case $host in
9312 ia64-*-hpux*)
9313 # Find out which ABI we are using.
9314 echo 'int i;' > conftest.$ac_ext
9315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9316 (eval $ac_compile) 2>&5
9317 ac_status=$?
9318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9319 test $ac_status = 0; }; then
9320 case `/usr/bin/file conftest.$ac_objext` in
9321 *ELF-32*)
9322 HPUX_IA64_MODE="32"
9323 ;;
9324 *ELF-64*)
9325 HPUX_IA64_MODE="64"
9326 ;;
9327 esac
9328 fi
9329 rm -rf conftest*
9330 ;;
9331 *-*-irix6*)
9332 # Find out which ABI we are using.
9333 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9335 (eval $ac_compile) 2>&5
9336 ac_status=$?
9337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9338 test $ac_status = 0; }; then
9339 if test "$lt_cv_prog_gnu_ld" = yes; then
9340 case `/usr/bin/file conftest.$ac_objext` in
9341 *32-bit*)
9342 LD="${LD-ld} -melf32bsmip"
9343 ;;
9344 *N32*)
9345 LD="${LD-ld} -melf32bmipn32"
9346 ;;
9347 *64-bit*)
9348 LD="${LD-ld} -melf64bmip"
9349 ;;
9350 esac
9351 else
9352 case `/usr/bin/file conftest.$ac_objext` in
9353 *32-bit*)
9354 LD="${LD-ld} -32"
9355 ;;
9356 *N32*)
9357 LD="${LD-ld} -n32"
9358 ;;
9359 *64-bit*)
9360 LD="${LD-ld} -64"
9361 ;;
9362 esac
9363 fi
9364 fi
9365 rm -rf conftest*
9366 ;;
9367
9368 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9369 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9370 # Find out which ABI we are using.
9371 echo 'int i;' > conftest.$ac_ext
9372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9373 (eval $ac_compile) 2>&5
9374 ac_status=$?
9375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9376 test $ac_status = 0; }; then
9377 case `/usr/bin/file conftest.o` in
9378 *32-bit*)
9379 case $host in
9380 x86_64-*kfreebsd*-gnu)
9381 LD="${LD-ld} -m elf_i386_fbsd"
9382 ;;
9383 x86_64-*linux*)
9384 case `/usr/bin/file conftest.o` in
9385 *x86-64*)
9386 LD="${LD-ld} -m elf32_x86_64"
9387 ;;
9388 *)
9389 LD="${LD-ld} -m elf_i386"
9390 ;;
9391 esac
9392 ;;
9393 powerpc64le-*linux*)
9394 LD="${LD-ld} -m elf32lppclinux"
9395 ;;
9396 powerpc64-*linux*)
9397 LD="${LD-ld} -m elf32ppclinux"
9398 ;;
9399 s390x-*linux*)
9400 LD="${LD-ld} -m elf_s390"
9401 ;;
9402 sparc64-*linux*)
9403 LD="${LD-ld} -m elf32_sparc"
9404 ;;
9405 esac
9406 ;;
9407 *64-bit*)
9408 case $host in
9409 x86_64-*kfreebsd*-gnu)
9410 LD="${LD-ld} -m elf_x86_64_fbsd"
9411 ;;
9412 x86_64-*linux*)
9413 LD="${LD-ld} -m elf_x86_64"
9414 ;;
9415 powerpcle-*linux*)
9416 LD="${LD-ld} -m elf64lppc"
9417 ;;
9418 powerpc-*linux*)
9419 LD="${LD-ld} -m elf64ppc"
9420 ;;
9421 s390*-*linux*|s390*-*tpf*)
9422 LD="${LD-ld} -m elf64_s390"
9423 ;;
9424 sparc*-*linux*)
9425 LD="${LD-ld} -m elf64_sparc"
9426 ;;
9427 esac
9428 ;;
9429 esac
9430 fi
9431 rm -rf conftest*
9432 ;;
9433
9434 *-*-sco3.2v5*)
9435 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9436 SAVE_CFLAGS="$CFLAGS"
9437 CFLAGS="$CFLAGS -belf"
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9439 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9440 if ${lt_cv_cc_needs_belf+:} false; then :
9441 $as_echo_n "(cached) " >&6
9442 else
9443 ac_ext=c
9444 ac_cpp='$CPP $CPPFLAGS'
9445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9448
9449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9450 /* end confdefs.h. */
9451
9452 int
9453 main ()
9454 {
9455
9456 ;
9457 return 0;
9458 }
9459 _ACEOF
9460 if ac_fn_c_try_link "$LINENO"; then :
9461 lt_cv_cc_needs_belf=yes
9462 else
9463 lt_cv_cc_needs_belf=no
9464 fi
9465 rm -f core conftest.err conftest.$ac_objext \
9466 conftest$ac_exeext conftest.$ac_ext
9467 ac_ext=c
9468 ac_cpp='$CPP $CPPFLAGS'
9469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9472
9473 fi
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9475 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9476 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9477 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9478 CFLAGS="$SAVE_CFLAGS"
9479 fi
9480 ;;
9481 sparc*-*solaris*)
9482 # Find out which ABI we are using.
9483 echo 'int i;' > conftest.$ac_ext
9484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9485 (eval $ac_compile) 2>&5
9486 ac_status=$?
9487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9488 test $ac_status = 0; }; then
9489 case `/usr/bin/file conftest.o` in
9490 *64-bit*)
9491 case $lt_cv_prog_gnu_ld in
9492 yes*) LD="${LD-ld} -m elf64_sparc" ;;
9493 *)
9494 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9495 LD="${LD-ld} -64"
9496 fi
9497 ;;
9498 esac
9499 ;;
9500 esac
9501 fi
9502 rm -rf conftest*
9503 ;;
9504 esac
9505
9506 need_locks="$enable_libtool_lock"
9507
9508
9509 case $host_os in
9510 rhapsody* | darwin*)
9511 if test -n "$ac_tool_prefix"; then
9512 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9513 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9515 $as_echo_n "checking for $ac_word... " >&6; }
9516 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9517 $as_echo_n "(cached) " >&6
9518 else
9519 if test -n "$DSYMUTIL"; then
9520 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9521 else
9522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9523 for as_dir in $PATH
9524 do
9525 IFS=$as_save_IFS
9526 test -z "$as_dir" && as_dir=.
9527 for ac_exec_ext in '' $ac_executable_extensions; do
9528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9529 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9531 break 2
9532 fi
9533 done
9534 done
9535 IFS=$as_save_IFS
9536
9537 fi
9538 fi
9539 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9540 if test -n "$DSYMUTIL"; then
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9542 $as_echo "$DSYMUTIL" >&6; }
9543 else
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9545 $as_echo "no" >&6; }
9546 fi
9547
9548
9549 fi
9550 if test -z "$ac_cv_prog_DSYMUTIL"; then
9551 ac_ct_DSYMUTIL=$DSYMUTIL
9552 # Extract the first word of "dsymutil", so it can be a program name with args.
9553 set dummy dsymutil; ac_word=$2
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9555 $as_echo_n "checking for $ac_word... " >&6; }
9556 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 if test -n "$ac_ct_DSYMUTIL"; then
9560 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9561 else
9562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9563 for as_dir in $PATH
9564 do
9565 IFS=$as_save_IFS
9566 test -z "$as_dir" && as_dir=.
9567 for ac_exec_ext in '' $ac_executable_extensions; do
9568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9569 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9571 break 2
9572 fi
9573 done
9574 done
9575 IFS=$as_save_IFS
9576
9577 fi
9578 fi
9579 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9580 if test -n "$ac_ct_DSYMUTIL"; then
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9582 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9583 else
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9585 $as_echo "no" >&6; }
9586 fi
9587
9588 if test "x$ac_ct_DSYMUTIL" = x; then
9589 DSYMUTIL=":"
9590 else
9591 case $cross_compiling:$ac_tool_warned in
9592 yes:)
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9595 ac_tool_warned=yes ;;
9596 esac
9597 DSYMUTIL=$ac_ct_DSYMUTIL
9598 fi
9599 else
9600 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9601 fi
9602
9603 if test -n "$ac_tool_prefix"; then
9604 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9605 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9607 $as_echo_n "checking for $ac_word... " >&6; }
9608 if ${ac_cv_prog_NMEDIT+:} false; then :
9609 $as_echo_n "(cached) " >&6
9610 else
9611 if test -n "$NMEDIT"; then
9612 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9613 else
9614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9615 for as_dir in $PATH
9616 do
9617 IFS=$as_save_IFS
9618 test -z "$as_dir" && as_dir=.
9619 for ac_exec_ext in '' $ac_executable_extensions; do
9620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9621 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9623 break 2
9624 fi
9625 done
9626 done
9627 IFS=$as_save_IFS
9628
9629 fi
9630 fi
9631 NMEDIT=$ac_cv_prog_NMEDIT
9632 if test -n "$NMEDIT"; then
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9634 $as_echo "$NMEDIT" >&6; }
9635 else
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9637 $as_echo "no" >&6; }
9638 fi
9639
9640
9641 fi
9642 if test -z "$ac_cv_prog_NMEDIT"; then
9643 ac_ct_NMEDIT=$NMEDIT
9644 # Extract the first word of "nmedit", so it can be a program name with args.
9645 set dummy nmedit; ac_word=$2
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9647 $as_echo_n "checking for $ac_word... " >&6; }
9648 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9649 $as_echo_n "(cached) " >&6
9650 else
9651 if test -n "$ac_ct_NMEDIT"; then
9652 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9653 else
9654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9655 for as_dir in $PATH
9656 do
9657 IFS=$as_save_IFS
9658 test -z "$as_dir" && as_dir=.
9659 for ac_exec_ext in '' $ac_executable_extensions; do
9660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9661 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9663 break 2
9664 fi
9665 done
9666 done
9667 IFS=$as_save_IFS
9668
9669 fi
9670 fi
9671 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9672 if test -n "$ac_ct_NMEDIT"; then
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9674 $as_echo "$ac_ct_NMEDIT" >&6; }
9675 else
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9677 $as_echo "no" >&6; }
9678 fi
9679
9680 if test "x$ac_ct_NMEDIT" = x; then
9681 NMEDIT=":"
9682 else
9683 case $cross_compiling:$ac_tool_warned in
9684 yes:)
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9687 ac_tool_warned=yes ;;
9688 esac
9689 NMEDIT=$ac_ct_NMEDIT
9690 fi
9691 else
9692 NMEDIT="$ac_cv_prog_NMEDIT"
9693 fi
9694
9695 if test -n "$ac_tool_prefix"; then
9696 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9697 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9699 $as_echo_n "checking for $ac_word... " >&6; }
9700 if ${ac_cv_prog_LIPO+:} false; then :
9701 $as_echo_n "(cached) " >&6
9702 else
9703 if test -n "$LIPO"; then
9704 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9705 else
9706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9707 for as_dir in $PATH
9708 do
9709 IFS=$as_save_IFS
9710 test -z "$as_dir" && as_dir=.
9711 for ac_exec_ext in '' $ac_executable_extensions; do
9712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9713 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9715 break 2
9716 fi
9717 done
9718 done
9719 IFS=$as_save_IFS
9720
9721 fi
9722 fi
9723 LIPO=$ac_cv_prog_LIPO
9724 if test -n "$LIPO"; then
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9726 $as_echo "$LIPO" >&6; }
9727 else
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9729 $as_echo "no" >&6; }
9730 fi
9731
9732
9733 fi
9734 if test -z "$ac_cv_prog_LIPO"; then
9735 ac_ct_LIPO=$LIPO
9736 # Extract the first word of "lipo", so it can be a program name with args.
9737 set dummy lipo; ac_word=$2
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9739 $as_echo_n "checking for $ac_word... " >&6; }
9740 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9741 $as_echo_n "(cached) " >&6
9742 else
9743 if test -n "$ac_ct_LIPO"; then
9744 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9745 else
9746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9747 for as_dir in $PATH
9748 do
9749 IFS=$as_save_IFS
9750 test -z "$as_dir" && as_dir=.
9751 for ac_exec_ext in '' $ac_executable_extensions; do
9752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9753 ac_cv_prog_ac_ct_LIPO="lipo"
9754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9755 break 2
9756 fi
9757 done
9758 done
9759 IFS=$as_save_IFS
9760
9761 fi
9762 fi
9763 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9764 if test -n "$ac_ct_LIPO"; then
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9766 $as_echo "$ac_ct_LIPO" >&6; }
9767 else
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9769 $as_echo "no" >&6; }
9770 fi
9771
9772 if test "x$ac_ct_LIPO" = x; then
9773 LIPO=":"
9774 else
9775 case $cross_compiling:$ac_tool_warned in
9776 yes:)
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9779 ac_tool_warned=yes ;;
9780 esac
9781 LIPO=$ac_ct_LIPO
9782 fi
9783 else
9784 LIPO="$ac_cv_prog_LIPO"
9785 fi
9786
9787 if test -n "$ac_tool_prefix"; then
9788 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9789 set dummy ${ac_tool_prefix}otool; ac_word=$2
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9791 $as_echo_n "checking for $ac_word... " >&6; }
9792 if ${ac_cv_prog_OTOOL+:} false; then :
9793 $as_echo_n "(cached) " >&6
9794 else
9795 if test -n "$OTOOL"; then
9796 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9797 else
9798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9799 for as_dir in $PATH
9800 do
9801 IFS=$as_save_IFS
9802 test -z "$as_dir" && as_dir=.
9803 for ac_exec_ext in '' $ac_executable_extensions; do
9804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9805 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9807 break 2
9808 fi
9809 done
9810 done
9811 IFS=$as_save_IFS
9812
9813 fi
9814 fi
9815 OTOOL=$ac_cv_prog_OTOOL
9816 if test -n "$OTOOL"; then
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9818 $as_echo "$OTOOL" >&6; }
9819 else
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9821 $as_echo "no" >&6; }
9822 fi
9823
9824
9825 fi
9826 if test -z "$ac_cv_prog_OTOOL"; then
9827 ac_ct_OTOOL=$OTOOL
9828 # Extract the first word of "otool", so it can be a program name with args.
9829 set dummy otool; ac_word=$2
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9831 $as_echo_n "checking for $ac_word... " >&6; }
9832 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9833 $as_echo_n "(cached) " >&6
9834 else
9835 if test -n "$ac_ct_OTOOL"; then
9836 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9837 else
9838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9839 for as_dir in $PATH
9840 do
9841 IFS=$as_save_IFS
9842 test -z "$as_dir" && as_dir=.
9843 for ac_exec_ext in '' $ac_executable_extensions; do
9844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9845 ac_cv_prog_ac_ct_OTOOL="otool"
9846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9847 break 2
9848 fi
9849 done
9850 done
9851 IFS=$as_save_IFS
9852
9853 fi
9854 fi
9855 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9856 if test -n "$ac_ct_OTOOL"; then
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9858 $as_echo "$ac_ct_OTOOL" >&6; }
9859 else
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9861 $as_echo "no" >&6; }
9862 fi
9863
9864 if test "x$ac_ct_OTOOL" = x; then
9865 OTOOL=":"
9866 else
9867 case $cross_compiling:$ac_tool_warned in
9868 yes:)
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9871 ac_tool_warned=yes ;;
9872 esac
9873 OTOOL=$ac_ct_OTOOL
9874 fi
9875 else
9876 OTOOL="$ac_cv_prog_OTOOL"
9877 fi
9878
9879 if test -n "$ac_tool_prefix"; then
9880 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9881 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9883 $as_echo_n "checking for $ac_word... " >&6; }
9884 if ${ac_cv_prog_OTOOL64+:} false; then :
9885 $as_echo_n "(cached) " >&6
9886 else
9887 if test -n "$OTOOL64"; then
9888 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9889 else
9890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9891 for as_dir in $PATH
9892 do
9893 IFS=$as_save_IFS
9894 test -z "$as_dir" && as_dir=.
9895 for ac_exec_ext in '' $ac_executable_extensions; do
9896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9897 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9899 break 2
9900 fi
9901 done
9902 done
9903 IFS=$as_save_IFS
9904
9905 fi
9906 fi
9907 OTOOL64=$ac_cv_prog_OTOOL64
9908 if test -n "$OTOOL64"; then
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9910 $as_echo "$OTOOL64" >&6; }
9911 else
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9913 $as_echo "no" >&6; }
9914 fi
9915
9916
9917 fi
9918 if test -z "$ac_cv_prog_OTOOL64"; then
9919 ac_ct_OTOOL64=$OTOOL64
9920 # Extract the first word of "otool64", so it can be a program name with args.
9921 set dummy otool64; ac_word=$2
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9923 $as_echo_n "checking for $ac_word... " >&6; }
9924 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9925 $as_echo_n "(cached) " >&6
9926 else
9927 if test -n "$ac_ct_OTOOL64"; then
9928 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9929 else
9930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9931 for as_dir in $PATH
9932 do
9933 IFS=$as_save_IFS
9934 test -z "$as_dir" && as_dir=.
9935 for ac_exec_ext in '' $ac_executable_extensions; do
9936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9937 ac_cv_prog_ac_ct_OTOOL64="otool64"
9938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9939 break 2
9940 fi
9941 done
9942 done
9943 IFS=$as_save_IFS
9944
9945 fi
9946 fi
9947 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9948 if test -n "$ac_ct_OTOOL64"; then
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9950 $as_echo "$ac_ct_OTOOL64" >&6; }
9951 else
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9953 $as_echo "no" >&6; }
9954 fi
9955
9956 if test "x$ac_ct_OTOOL64" = x; then
9957 OTOOL64=":"
9958 else
9959 case $cross_compiling:$ac_tool_warned in
9960 yes:)
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9963 ac_tool_warned=yes ;;
9964 esac
9965 OTOOL64=$ac_ct_OTOOL64
9966 fi
9967 else
9968 OTOOL64="$ac_cv_prog_OTOOL64"
9969 fi
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9998 $as_echo_n "checking for -single_module linker flag... " >&6; }
9999 if ${lt_cv_apple_cc_single_mod+:} false; then :
10000 $as_echo_n "(cached) " >&6
10001 else
10002 lt_cv_apple_cc_single_mod=no
10003 if test -z "${LT_MULTI_MODULE}"; then
10004 # By default we will add the -single_module flag. You can override
10005 # by either setting the environment variable LT_MULTI_MODULE
10006 # non-empty at configure time, or by adding -multi_module to the
10007 # link flags.
10008 rm -rf libconftest.dylib*
10009 echo "int foo(void){return 1;}" > conftest.c
10010 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10011 -dynamiclib -Wl,-single_module conftest.c" >&5
10012 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10013 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10014 _lt_result=$?
10015 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10016 lt_cv_apple_cc_single_mod=yes
10017 else
10018 cat conftest.err >&5
10019 fi
10020 rm -rf libconftest.dylib*
10021 rm -f conftest.*
10022 fi
10023 fi
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10025 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10027 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10028 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10029 $as_echo_n "(cached) " >&6
10030 else
10031 lt_cv_ld_exported_symbols_list=no
10032 save_LDFLAGS=$LDFLAGS
10033 echo "_main" > conftest.sym
10034 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10036 /* end confdefs.h. */
10037
10038 int
10039 main ()
10040 {
10041
10042 ;
10043 return 0;
10044 }
10045 _ACEOF
10046 if ac_fn_c_try_link "$LINENO"; then :
10047 lt_cv_ld_exported_symbols_list=yes
10048 else
10049 lt_cv_ld_exported_symbols_list=no
10050 fi
10051 rm -f core conftest.err conftest.$ac_objext \
10052 conftest$ac_exeext conftest.$ac_ext
10053 LDFLAGS="$save_LDFLAGS"
10054
10055 fi
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10057 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10059 $as_echo_n "checking for -force_load linker flag... " >&6; }
10060 if ${lt_cv_ld_force_load+:} false; then :
10061 $as_echo_n "(cached) " >&6
10062 else
10063 lt_cv_ld_force_load=no
10064 cat > conftest.c << _LT_EOF
10065 int forced_loaded() { return 2;}
10066 _LT_EOF
10067 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10068 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10069 echo "$AR cru libconftest.a conftest.o" >&5
10070 $AR cru libconftest.a conftest.o 2>&5
10071 cat > conftest.c << _LT_EOF
10072 int main() { return 0;}
10073 _LT_EOF
10074 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10075 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10076 _lt_result=$?
10077 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
10078 lt_cv_ld_force_load=yes
10079 else
10080 cat conftest.err >&5
10081 fi
10082 rm -f conftest.err libconftest.a conftest conftest.c
10083 rm -rf conftest.dSYM
10084
10085 fi
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10087 $as_echo "$lt_cv_ld_force_load" >&6; }
10088 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
10089 # build without first building modern cctools / linker.
10090 case $host_cpu-$host_os in
10091 *-rhapsody* | *-darwin1.[012])
10092 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10093 *-darwin1.*)
10094 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10095 *-darwin*)
10096 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
10097 # deployment target is forced to an earlier version.
10098 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
10099 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
10100 ;;
10101 10.[012][,.]*)
10102 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10103 ;;
10104 *)
10105 ;;
10106 esac
10107 ;;
10108 esac
10109 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10110 _lt_dar_single_mod='$single_module'
10111 fi
10112 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10113 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10114 else
10115 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10116 fi
10117 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10118 _lt_dsymutil='~$DSYMUTIL $lib || :'
10119 else
10120 _lt_dsymutil=
10121 fi
10122 ;;
10123 esac
10124
10125 for ac_header in dlfcn.h
10126 do :
10127 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10128 "
10129 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10130 cat >>confdefs.h <<_ACEOF
10131 #define HAVE_DLFCN_H 1
10132 _ACEOF
10133
10134 fi
10135
10136 done
10137
10138
10139
10140
10141
10142 # Set options
10143
10144
10145
10146 enable_dlopen=no
10147
10148
10149 enable_win32_dll=no
10150
10151
10152
10153 # Check whether --enable-static was given.
10154 if test "${enable_static+set}" = set; then :
10155 enableval=$enable_static; p=${PACKAGE-default}
10156 case $enableval in
10157 yes) enable_static=yes ;;
10158 no) enable_static=no ;;
10159 *)
10160 enable_static=no
10161 # Look at the argument we got. We use all the common list separators.
10162 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10163 for pkg in $enableval; do
10164 IFS="$lt_save_ifs"
10165 if test "X$pkg" = "X$p"; then
10166 enable_static=yes
10167 fi
10168 done
10169 IFS="$lt_save_ifs"
10170 ;;
10171 esac
10172 else
10173 enable_static=yes
10174 fi
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185 # Check whether --with-pic was given.
10186 if test "${with_pic+set}" = set; then :
10187 withval=$with_pic; pic_mode="$withval"
10188 else
10189 pic_mode=default
10190 fi
10191
10192
10193 test -z "$pic_mode" && pic_mode=default
10194
10195
10196
10197
10198
10199
10200
10201 # Check whether --enable-fast-install was given.
10202 if test "${enable_fast_install+set}" = set; then :
10203 enableval=$enable_fast_install; p=${PACKAGE-default}
10204 case $enableval in
10205 yes) enable_fast_install=yes ;;
10206 no) enable_fast_install=no ;;
10207 *)
10208 enable_fast_install=no
10209 # Look at the argument we got. We use all the common list separators.
10210 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10211 for pkg in $enableval; do
10212 IFS="$lt_save_ifs"
10213 if test "X$pkg" = "X$p"; then
10214 enable_fast_install=yes
10215 fi
10216 done
10217 IFS="$lt_save_ifs"
10218 ;;
10219 esac
10220 else
10221 enable_fast_install=yes
10222 fi
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234 # This can be used to rebuild libtool when needed
10235 LIBTOOL_DEPS="$ltmain"
10236
10237 # Always use our own libtool.
10238 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265 test -z "$LN_S" && LN_S="ln -s"
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280 if test -n "${ZSH_VERSION+set}" ; then
10281 setopt NO_GLOB_SUBST
10282 fi
10283
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10285 $as_echo_n "checking for objdir... " >&6; }
10286 if ${lt_cv_objdir+:} false; then :
10287 $as_echo_n "(cached) " >&6
10288 else
10289 rm -f .libs 2>/dev/null
10290 mkdir .libs 2>/dev/null
10291 if test -d .libs; then
10292 lt_cv_objdir=.libs
10293 else
10294 # MS-DOS does not allow filenames that begin with a dot.
10295 lt_cv_objdir=_libs
10296 fi
10297 rmdir .libs 2>/dev/null
10298 fi
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10300 $as_echo "$lt_cv_objdir" >&6; }
10301 objdir=$lt_cv_objdir
10302
10303
10304
10305
10306
10307 cat >>confdefs.h <<_ACEOF
10308 #define LT_OBJDIR "$lt_cv_objdir/"
10309 _ACEOF
10310
10311
10312
10313
10314 case $host_os in
10315 aix3*)
10316 # AIX sometimes has problems with the GCC collect2 program. For some
10317 # reason, if we set the COLLECT_NAMES environment variable, the problems
10318 # vanish in a puff of smoke.
10319 if test "X${COLLECT_NAMES+set}" != Xset; then
10320 COLLECT_NAMES=
10321 export COLLECT_NAMES
10322 fi
10323 ;;
10324 esac
10325
10326 # Global variables:
10327 ofile=libtool
10328 can_build_shared=yes
10329
10330 # All known linkers require a `.a' archive for static linking (except MSVC,
10331 # which needs '.lib').
10332 libext=a
10333
10334 with_gnu_ld="$lt_cv_prog_gnu_ld"
10335
10336 old_CC="$CC"
10337 old_CFLAGS="$CFLAGS"
10338
10339 # Set sane defaults for various variables
10340 test -z "$CC" && CC=cc
10341 test -z "$LTCC" && LTCC=$CC
10342 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10343 test -z "$LD" && LD=ld
10344 test -z "$ac_objext" && ac_objext=o
10345
10346 for cc_temp in $compiler""; do
10347 case $cc_temp in
10348 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10349 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10350 \-*) ;;
10351 *) break;;
10352 esac
10353 done
10354 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10355
10356
10357 # Only perform the check for file, if the check method requires it
10358 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10359 case $deplibs_check_method in
10360 file_magic*)
10361 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10363 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10364 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10365 $as_echo_n "(cached) " >&6
10366 else
10367 case $MAGIC_CMD in
10368 [\\/*] | ?:[\\/]*)
10369 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10370 ;;
10371 *)
10372 lt_save_MAGIC_CMD="$MAGIC_CMD"
10373 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10374 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10375 for ac_dir in $ac_dummy; do
10376 IFS="$lt_save_ifs"
10377 test -z "$ac_dir" && ac_dir=.
10378 if test -f $ac_dir/${ac_tool_prefix}file; then
10379 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10380 if test -n "$file_magic_test_file"; then
10381 case $deplibs_check_method in
10382 "file_magic "*)
10383 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10384 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10385 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10386 $EGREP "$file_magic_regex" > /dev/null; then
10387 :
10388 else
10389 cat <<_LT_EOF 1>&2
10390
10391 *** Warning: the command libtool uses to detect shared libraries,
10392 *** $file_magic_cmd, produces output that libtool cannot recognize.
10393 *** The result is that libtool may fail to recognize shared libraries
10394 *** as such. This will affect the creation of libtool libraries that
10395 *** depend on shared libraries, but programs linked with such libtool
10396 *** libraries will work regardless of this problem. Nevertheless, you
10397 *** may want to report the problem to your system manager and/or to
10398 *** [email protected]
10399
10400 _LT_EOF
10401 fi ;;
10402 esac
10403 fi
10404 break
10405 fi
10406 done
10407 IFS="$lt_save_ifs"
10408 MAGIC_CMD="$lt_save_MAGIC_CMD"
10409 ;;
10410 esac
10411 fi
10412
10413 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10414 if test -n "$MAGIC_CMD"; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10416 $as_echo "$MAGIC_CMD" >&6; }
10417 else
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419 $as_echo "no" >&6; }
10420 fi
10421
10422
10423
10424
10425
10426 if test -z "$lt_cv_path_MAGIC_CMD"; then
10427 if test -n "$ac_tool_prefix"; then
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10429 $as_echo_n "checking for file... " >&6; }
10430 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10431 $as_echo_n "(cached) " >&6
10432 else
10433 case $MAGIC_CMD in
10434 [\\/*] | ?:[\\/]*)
10435 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10436 ;;
10437 *)
10438 lt_save_MAGIC_CMD="$MAGIC_CMD"
10439 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10440 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10441 for ac_dir in $ac_dummy; do
10442 IFS="$lt_save_ifs"
10443 test -z "$ac_dir" && ac_dir=.
10444 if test -f $ac_dir/file; then
10445 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10446 if test -n "$file_magic_test_file"; then
10447 case $deplibs_check_method in
10448 "file_magic "*)
10449 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10450 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10451 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10452 $EGREP "$file_magic_regex" > /dev/null; then
10453 :
10454 else
10455 cat <<_LT_EOF 1>&2
10456
10457 *** Warning: the command libtool uses to detect shared libraries,
10458 *** $file_magic_cmd, produces output that libtool cannot recognize.
10459 *** The result is that libtool may fail to recognize shared libraries
10460 *** as such. This will affect the creation of libtool libraries that
10461 *** depend on shared libraries, but programs linked with such libtool
10462 *** libraries will work regardless of this problem. Nevertheless, you
10463 *** may want to report the problem to your system manager and/or to
10464 *** [email protected]
10465
10466 _LT_EOF
10467 fi ;;
10468 esac
10469 fi
10470 break
10471 fi
10472 done
10473 IFS="$lt_save_ifs"
10474 MAGIC_CMD="$lt_save_MAGIC_CMD"
10475 ;;
10476 esac
10477 fi
10478
10479 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10480 if test -n "$MAGIC_CMD"; then
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10482 $as_echo "$MAGIC_CMD" >&6; }
10483 else
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10485 $as_echo "no" >&6; }
10486 fi
10487
10488
10489 else
10490 MAGIC_CMD=:
10491 fi
10492 fi
10493
10494 fi
10495 ;;
10496 esac
10497
10498 # Use C for the default configuration in the libtool script
10499
10500 lt_save_CC="$CC"
10501 ac_ext=c
10502 ac_cpp='$CPP $CPPFLAGS'
10503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10506
10507
10508 # Source file extension for C test sources.
10509 ac_ext=c
10510
10511 # Object file extension for compiled C test sources.
10512 objext=o
10513 objext=$objext
10514
10515 # Code to be used in simple compile tests
10516 lt_simple_compile_test_code="int some_variable = 0;"
10517
10518 # Code to be used in simple link tests
10519 lt_simple_link_test_code='int main(){return(0);}'
10520
10521
10522
10523
10524
10525
10526
10527 # If no C compiler was specified, use CC.
10528 LTCC=${LTCC-"$CC"}
10529
10530 # If no C compiler flags were specified, use CFLAGS.
10531 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10532
10533 # Allow CC to be a program name with arguments.
10534 compiler=$CC
10535
10536 # Save the default compiler, since it gets overwritten when the other
10537 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10538 compiler_DEFAULT=$CC
10539
10540 # save warnings/boilerplate of simple test code
10541 ac_outfile=conftest.$ac_objext
10542 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10543 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10544 _lt_compiler_boilerplate=`cat conftest.err`
10545 $RM conftest*
10546
10547 ac_outfile=conftest.$ac_objext
10548 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10549 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10550 _lt_linker_boilerplate=`cat conftest.err`
10551 $RM -r conftest*
10552
10553
10554 ## CAVEAT EMPTOR:
10555 ## There is no encapsulation within the following macros, do not change
10556 ## the running order or otherwise move them around unless you know exactly
10557 ## what you are doing...
10558 if test -n "$compiler"; then
10559
10560 lt_prog_compiler_no_builtin_flag=
10561
10562 if test "$GCC" = yes; then
10563 case $cc_basename in
10564 nvcc*)
10565 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10566 *)
10567 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10568 esac
10569
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10571 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10572 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10573 $as_echo_n "(cached) " >&6
10574 else
10575 lt_cv_prog_compiler_rtti_exceptions=no
10576 ac_outfile=conftest.$ac_objext
10577 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10578 lt_compiler_flag="-fno-rtti -fno-exceptions"
10579 # Insert the option either (1) after the last *FLAGS variable, or
10580 # (2) before a word containing "conftest.", or (3) at the end.
10581 # Note that $ac_compile itself does not contain backslashes and begins
10582 # with a dollar sign (not a hyphen), so the echo should work correctly.
10583 # The option is referenced via a variable to avoid confusing sed.
10584 lt_compile=`echo "$ac_compile" | $SED \
10585 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10586 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10587 -e 's:$: $lt_compiler_flag:'`
10588 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10589 (eval "$lt_compile" 2>conftest.err)
10590 ac_status=$?
10591 cat conftest.err >&5
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 if (exit $ac_status) && test -s "$ac_outfile"; then
10594 # The compiler can only warn and ignore the option if not recognized
10595 # So say no if there are warnings other than the usual output.
10596 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10597 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10598 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10599 lt_cv_prog_compiler_rtti_exceptions=yes
10600 fi
10601 fi
10602 $RM conftest*
10603
10604 fi
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10606 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10607
10608 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10609 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10610 else
10611 :
10612 fi
10613
10614 fi
10615
10616
10617
10618
10619
10620
10621 lt_prog_compiler_wl=
10622 lt_prog_compiler_pic=
10623 lt_prog_compiler_static=
10624
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10626 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10627
10628 if test "$GCC" = yes; then
10629 lt_prog_compiler_wl='-Wl,'
10630 lt_prog_compiler_static='-static'
10631
10632 case $host_os in
10633 aix*)
10634 # All AIX code is PIC.
10635 if test "$host_cpu" = ia64; then
10636 # AIX 5 now supports IA64 processor
10637 lt_prog_compiler_static='-Bstatic'
10638 fi
10639 lt_prog_compiler_pic='-fPIC'
10640 ;;
10641
10642 amigaos*)
10643 case $host_cpu in
10644 powerpc)
10645 # see comment about AmigaOS4 .so support
10646 lt_prog_compiler_pic='-fPIC'
10647 ;;
10648 m68k)
10649 # FIXME: we need at least 68020 code to build shared libraries, but
10650 # adding the `-m68020' flag to GCC prevents building anything better,
10651 # like `-m68040'.
10652 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10653 ;;
10654 esac
10655 ;;
10656
10657 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10658 # PIC is the default for these OSes.
10659 ;;
10660
10661 mingw* | cygwin* | pw32* | os2* | cegcc*)
10662 # This hack is so that the source file can tell whether it is being
10663 # built for inclusion in a dll (and should export symbols for example).
10664 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10665 # (--disable-auto-import) libraries
10666 lt_prog_compiler_pic='-DDLL_EXPORT'
10667 ;;
10668
10669 darwin* | rhapsody*)
10670 # PIC is the default on this platform
10671 # Common symbols not allowed in MH_DYLIB files
10672 lt_prog_compiler_pic='-fno-common'
10673 ;;
10674
10675 haiku*)
10676 # PIC is the default for Haiku.
10677 # The "-static" flag exists, but is broken.
10678 lt_prog_compiler_static=
10679 ;;
10680
10681 hpux*)
10682 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10683 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10684 # sets the default TLS model and affects inlining.
10685 case $host_cpu in
10686 hppa*64*)
10687 # +Z the default
10688 ;;
10689 *)
10690 lt_prog_compiler_pic='-fPIC'
10691 ;;
10692 esac
10693 ;;
10694
10695 interix[3-9]*)
10696 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10697 # Instead, we relocate shared libraries at runtime.
10698 ;;
10699
10700 msdosdjgpp*)
10701 # Just because we use GCC doesn't mean we suddenly get shared libraries
10702 # on systems that don't support them.
10703 lt_prog_compiler_can_build_shared=no
10704 enable_shared=no
10705 ;;
10706
10707 *nto* | *qnx*)
10708 # QNX uses GNU C++, but need to define -shared option too, otherwise
10709 # it will coredump.
10710 lt_prog_compiler_pic='-fPIC -shared'
10711 ;;
10712
10713 sysv4*MP*)
10714 if test -d /usr/nec; then
10715 lt_prog_compiler_pic=-Kconform_pic
10716 fi
10717 ;;
10718
10719 *)
10720 lt_prog_compiler_pic='-fPIC'
10721 ;;
10722 esac
10723
10724 case $cc_basename in
10725 nvcc*) # Cuda Compiler Driver 2.2
10726 lt_prog_compiler_wl='-Xlinker '
10727 lt_prog_compiler_pic='-Xcompiler -fPIC'
10728 ;;
10729 esac
10730 else
10731 # PORTME Check for flag to pass linker flags through the system compiler.
10732 case $host_os in
10733 aix*)
10734 lt_prog_compiler_wl='-Wl,'
10735 if test "$host_cpu" = ia64; then
10736 # AIX 5 now supports IA64 processor
10737 lt_prog_compiler_static='-Bstatic'
10738 else
10739 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10740 fi
10741 ;;
10742
10743 mingw* | cygwin* | pw32* | os2* | cegcc*)
10744 # This hack is so that the source file can tell whether it is being
10745 # built for inclusion in a dll (and should export symbols for example).
10746 lt_prog_compiler_pic='-DDLL_EXPORT'
10747 ;;
10748
10749 hpux9* | hpux10* | hpux11*)
10750 lt_prog_compiler_wl='-Wl,'
10751 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10752 # not for PA HP-UX.
10753 case $host_cpu in
10754 hppa*64*|ia64*)
10755 # +Z the default
10756 ;;
10757 *)
10758 lt_prog_compiler_pic='+Z'
10759 ;;
10760 esac
10761 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10762 lt_prog_compiler_static='${wl}-a ${wl}archive'
10763 ;;
10764
10765 irix5* | irix6* | nonstopux*)
10766 lt_prog_compiler_wl='-Wl,'
10767 # PIC (with -KPIC) is the default.
10768 lt_prog_compiler_static='-non_shared'
10769 ;;
10770
10771 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10772 case $cc_basename in
10773 # old Intel for x86_64 which still supported -KPIC.
10774 ecc*)
10775 lt_prog_compiler_wl='-Wl,'
10776 lt_prog_compiler_pic='-KPIC'
10777 lt_prog_compiler_static='-static'
10778 ;;
10779 # icc used to be incompatible with GCC.
10780 # ICC 10 doesn't accept -KPIC any more.
10781 icc* | ifort*)
10782 lt_prog_compiler_wl='-Wl,'
10783 lt_prog_compiler_pic='-fPIC'
10784 lt_prog_compiler_static='-static'
10785 ;;
10786 # Lahey Fortran 8.1.
10787 lf95*)
10788 lt_prog_compiler_wl='-Wl,'
10789 lt_prog_compiler_pic='--shared'
10790 lt_prog_compiler_static='--static'
10791 ;;
10792 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10793 # Portland Group compilers (*not* the Pentium gcc compiler,
10794 # which looks to be a dead project)
10795 lt_prog_compiler_wl='-Wl,'
10796 lt_prog_compiler_pic='-fpic'
10797 lt_prog_compiler_static='-Bstatic'
10798 ;;
10799 ccc*)
10800 lt_prog_compiler_wl='-Wl,'
10801 # All Alpha code is PIC.
10802 lt_prog_compiler_static='-non_shared'
10803 ;;
10804 xl* | bgxl* | bgf* | mpixl*)
10805 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10806 lt_prog_compiler_wl='-Wl,'
10807 lt_prog_compiler_pic='-qpic'
10808 lt_prog_compiler_static='-qstaticlink'
10809 ;;
10810 *)
10811 case `$CC -V 2>&1 | sed 5q` in
10812 *Sun\ F* | *Sun*Fortran*)
10813 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10814 lt_prog_compiler_pic='-KPIC'
10815 lt_prog_compiler_static='-Bstatic'
10816 lt_prog_compiler_wl=''
10817 ;;
10818 *Sun\ C*)
10819 # Sun C 5.9
10820 lt_prog_compiler_pic='-KPIC'
10821 lt_prog_compiler_static='-Bstatic'
10822 lt_prog_compiler_wl='-Wl,'
10823 ;;
10824 esac
10825 ;;
10826 esac
10827 ;;
10828
10829 newsos6)
10830 lt_prog_compiler_pic='-KPIC'
10831 lt_prog_compiler_static='-Bstatic'
10832 ;;
10833
10834 *nto* | *qnx*)
10835 # QNX uses GNU C++, but need to define -shared option too, otherwise
10836 # it will coredump.
10837 lt_prog_compiler_pic='-fPIC -shared'
10838 ;;
10839
10840 osf3* | osf4* | osf5*)
10841 lt_prog_compiler_wl='-Wl,'
10842 # All OSF/1 code is PIC.
10843 lt_prog_compiler_static='-non_shared'
10844 ;;
10845
10846 rdos*)
10847 lt_prog_compiler_static='-non_shared'
10848 ;;
10849
10850 solaris*)
10851 lt_prog_compiler_pic='-KPIC'
10852 lt_prog_compiler_static='-Bstatic'
10853 case $cc_basename in
10854 f77* | f90* | f95*)
10855 lt_prog_compiler_wl='-Qoption ld ';;
10856 *)
10857 lt_prog_compiler_wl='-Wl,';;
10858 esac
10859 ;;
10860
10861 sunos4*)
10862 lt_prog_compiler_wl='-Qoption ld '
10863 lt_prog_compiler_pic='-PIC'
10864 lt_prog_compiler_static='-Bstatic'
10865 ;;
10866
10867 sysv4 | sysv4.2uw2* | sysv4.3*)
10868 lt_prog_compiler_wl='-Wl,'
10869 lt_prog_compiler_pic='-KPIC'
10870 lt_prog_compiler_static='-Bstatic'
10871 ;;
10872
10873 sysv4*MP*)
10874 if test -d /usr/nec ;then
10875 lt_prog_compiler_pic='-Kconform_pic'
10876 lt_prog_compiler_static='-Bstatic'
10877 fi
10878 ;;
10879
10880 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10881 lt_prog_compiler_wl='-Wl,'
10882 lt_prog_compiler_pic='-KPIC'
10883 lt_prog_compiler_static='-Bstatic'
10884 ;;
10885
10886 unicos*)
10887 lt_prog_compiler_wl='-Wl,'
10888 lt_prog_compiler_can_build_shared=no
10889 ;;
10890
10891 uts4*)
10892 lt_prog_compiler_pic='-pic'
10893 lt_prog_compiler_static='-Bstatic'
10894 ;;
10895
10896 *)
10897 lt_prog_compiler_can_build_shared=no
10898 ;;
10899 esac
10900 fi
10901
10902 case $host_os in
10903 # For platforms which do not support PIC, -DPIC is meaningless:
10904 *djgpp*)
10905 lt_prog_compiler_pic=
10906 ;;
10907 *)
10908 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10909 ;;
10910 esac
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10912 $as_echo "$lt_prog_compiler_pic" >&6; }
10913
10914
10915
10916
10917
10918
10919 #
10920 # Check to make sure the PIC flag actually works.
10921 #
10922 if test -n "$lt_prog_compiler_pic"; then
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10924 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10925 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10926 $as_echo_n "(cached) " >&6
10927 else
10928 lt_cv_prog_compiler_pic_works=no
10929 ac_outfile=conftest.$ac_objext
10930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10931 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10932 # Insert the option either (1) after the last *FLAGS variable, or
10933 # (2) before a word containing "conftest.", or (3) at the end.
10934 # Note that $ac_compile itself does not contain backslashes and begins
10935 # with a dollar sign (not a hyphen), so the echo should work correctly.
10936 # The option is referenced via a variable to avoid confusing sed.
10937 lt_compile=`echo "$ac_compile" | $SED \
10938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10940 -e 's:$: $lt_compiler_flag:'`
10941 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10942 (eval "$lt_compile" 2>conftest.err)
10943 ac_status=$?
10944 cat conftest.err >&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 if (exit $ac_status) && test -s "$ac_outfile"; then
10947 # The compiler can only warn and ignore the option if not recognized
10948 # So say no if there are warnings other than the usual output.
10949 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10951 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10952 lt_cv_prog_compiler_pic_works=yes
10953 fi
10954 fi
10955 $RM conftest*
10956
10957 fi
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10959 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10960
10961 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10962 case $lt_prog_compiler_pic in
10963 "" | " "*) ;;
10964 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10965 esac
10966 else
10967 lt_prog_compiler_pic=
10968 lt_prog_compiler_can_build_shared=no
10969 fi
10970
10971 fi
10972
10973
10974
10975
10976
10977
10978 #
10979 # Check to make sure the static flag actually works.
10980 #
10981 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10983 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10984 if ${lt_cv_prog_compiler_static_works+:} false; then :
10985 $as_echo_n "(cached) " >&6
10986 else
10987 lt_cv_prog_compiler_static_works=no
10988 save_LDFLAGS="$LDFLAGS"
10989 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10990 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10991 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10992 # The linker can only warn and ignore the option if not recognized
10993 # So say no if there are warnings
10994 if test -s conftest.err; then
10995 # Append any errors to the config.log.
10996 cat conftest.err 1>&5
10997 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10998 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10999 if diff conftest.exp conftest.er2 >/dev/null; then
11000 lt_cv_prog_compiler_static_works=yes
11001 fi
11002 else
11003 lt_cv_prog_compiler_static_works=yes
11004 fi
11005 fi
11006 $RM -r conftest*
11007 LDFLAGS="$save_LDFLAGS"
11008
11009 fi
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11011 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11012
11013 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11014 :
11015 else
11016 lt_prog_compiler_static=
11017 fi
11018
11019
11020
11021
11022
11023
11024
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11026 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11027 if ${lt_cv_prog_compiler_c_o+:} false; then :
11028 $as_echo_n "(cached) " >&6
11029 else
11030 lt_cv_prog_compiler_c_o=no
11031 $RM -r conftest 2>/dev/null
11032 mkdir conftest
11033 cd conftest
11034 mkdir out
11035 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11036
11037 lt_compiler_flag="-o out/conftest2.$ac_objext"
11038 # Insert the option either (1) after the last *FLAGS variable, or
11039 # (2) before a word containing "conftest.", or (3) at the end.
11040 # Note that $ac_compile itself does not contain backslashes and begins
11041 # with a dollar sign (not a hyphen), so the echo should work correctly.
11042 lt_compile=`echo "$ac_compile" | $SED \
11043 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11045 -e 's:$: $lt_compiler_flag:'`
11046 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11047 (eval "$lt_compile" 2>out/conftest.err)
11048 ac_status=$?
11049 cat out/conftest.err >&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11052 then
11053 # The compiler can only warn and ignore the option if not recognized
11054 # So say no if there are warnings
11055 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11056 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11057 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11058 lt_cv_prog_compiler_c_o=yes
11059 fi
11060 fi
11061 chmod u+w . 2>&5
11062 $RM conftest*
11063 # SGI C++ compiler will create directory out/ii_files/ for
11064 # template instantiation
11065 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11066 $RM out/* && rmdir out
11067 cd ..
11068 $RM -r conftest
11069 $RM conftest*
11070
11071 fi
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11073 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11074
11075
11076
11077
11078
11079
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11081 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11082 if ${lt_cv_prog_compiler_c_o+:} false; then :
11083 $as_echo_n "(cached) " >&6
11084 else
11085 lt_cv_prog_compiler_c_o=no
11086 $RM -r conftest 2>/dev/null
11087 mkdir conftest
11088 cd conftest
11089 mkdir out
11090 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11091
11092 lt_compiler_flag="-o out/conftest2.$ac_objext"
11093 # Insert the option either (1) after the last *FLAGS variable, or
11094 # (2) before a word containing "conftest.", or (3) at the end.
11095 # Note that $ac_compile itself does not contain backslashes and begins
11096 # with a dollar sign (not a hyphen), so the echo should work correctly.
11097 lt_compile=`echo "$ac_compile" | $SED \
11098 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11099 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11100 -e 's:$: $lt_compiler_flag:'`
11101 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11102 (eval "$lt_compile" 2>out/conftest.err)
11103 ac_status=$?
11104 cat out/conftest.err >&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11107 then
11108 # The compiler can only warn and ignore the option if not recognized
11109 # So say no if there are warnings
11110 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11111 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11112 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11113 lt_cv_prog_compiler_c_o=yes
11114 fi
11115 fi
11116 chmod u+w . 2>&5
11117 $RM conftest*
11118 # SGI C++ compiler will create directory out/ii_files/ for
11119 # template instantiation
11120 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11121 $RM out/* && rmdir out
11122 cd ..
11123 $RM -r conftest
11124 $RM conftest*
11125
11126 fi
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11128 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11129
11130
11131
11132
11133 hard_links="nottested"
11134 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11135 # do not overwrite the value of need_locks provided by the user
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11137 $as_echo_n "checking if we can lock with hard links... " >&6; }
11138 hard_links=yes
11139 $RM conftest*
11140 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11141 touch conftest.a
11142 ln conftest.a conftest.b 2>&5 || hard_links=no
11143 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11145 $as_echo "$hard_links" >&6; }
11146 if test "$hard_links" = no; then
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11148 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11149 need_locks=warn
11150 fi
11151 else
11152 need_locks=no
11153 fi
11154
11155
11156
11157
11158
11159
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11161 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11162
11163 runpath_var=
11164 allow_undefined_flag=
11165 always_export_symbols=no
11166 archive_cmds=
11167 archive_expsym_cmds=
11168 compiler_needs_object=no
11169 enable_shared_with_static_runtimes=no
11170 export_dynamic_flag_spec=
11171 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11172 hardcode_automatic=no
11173 hardcode_direct=no
11174 hardcode_direct_absolute=no
11175 hardcode_libdir_flag_spec=
11176 hardcode_libdir_flag_spec_ld=
11177 hardcode_libdir_separator=
11178 hardcode_minus_L=no
11179 hardcode_shlibpath_var=unsupported
11180 inherit_rpath=no
11181 link_all_deplibs=unknown
11182 module_cmds=
11183 module_expsym_cmds=
11184 old_archive_from_new_cmds=
11185 old_archive_from_expsyms_cmds=
11186 thread_safe_flag_spec=
11187 whole_archive_flag_spec=
11188 # include_expsyms should be a list of space-separated symbols to be *always*
11189 # included in the symbol list
11190 include_expsyms=
11191 # exclude_expsyms can be an extended regexp of symbols to exclude
11192 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11193 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11194 # as well as any symbol that contains `d'.
11195 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11196 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11197 # platforms (ab)use it in PIC code, but their linkers get confused if
11198 # the symbol is explicitly referenced. Since portable code cannot
11199 # rely on this symbol name, it's probably fine to never include it in
11200 # preloaded symbol tables.
11201 # Exclude shared library initialization/finalization symbols.
11202 extract_expsyms_cmds=
11203
11204 case $host_os in
11205 cygwin* | mingw* | pw32* | cegcc*)
11206 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11207 # When not using gcc, we currently assume that we are using
11208 # Microsoft Visual C++.
11209 if test "$GCC" != yes; then
11210 with_gnu_ld=no
11211 fi
11212 ;;
11213 interix*)
11214 # we just hope/assume this is gcc and not c89 (= MSVC++)
11215 with_gnu_ld=yes
11216 ;;
11217 openbsd*)
11218 with_gnu_ld=no
11219 ;;
11220 esac
11221
11222 ld_shlibs=yes
11223
11224 # On some targets, GNU ld is compatible enough with the native linker
11225 # that we're better off using the native interface for both.
11226 lt_use_gnu_ld_interface=no
11227 if test "$with_gnu_ld" = yes; then
11228 case $host_os in
11229 aix*)
11230 # The AIX port of GNU ld has always aspired to compatibility
11231 # with the native linker. However, as the warning in the GNU ld
11232 # block says, versions before 2.19.5* couldn't really create working
11233 # shared libraries, regardless of the interface used.
11234 case `$LD -v 2>&1` in
11235 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11236 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11237 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11238 *)
11239 lt_use_gnu_ld_interface=yes
11240 ;;
11241 esac
11242 ;;
11243 *)
11244 lt_use_gnu_ld_interface=yes
11245 ;;
11246 esac
11247 fi
11248
11249 if test "$lt_use_gnu_ld_interface" = yes; then
11250 # If archive_cmds runs LD, not CC, wlarc should be empty
11251 wlarc='${wl}'
11252
11253 # Set some defaults for GNU ld with shared library support. These
11254 # are reset later if shared libraries are not supported. Putting them
11255 # here allows them to be overridden if necessary.
11256 runpath_var=LD_RUN_PATH
11257 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11258 export_dynamic_flag_spec='${wl}--export-dynamic'
11259 # ancient GNU ld didn't support --whole-archive et. al.
11260 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11261 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11262 else
11263 whole_archive_flag_spec=
11264 fi
11265 supports_anon_versioning=no
11266 case `$LD -v 2>&1` in
11267 *GNU\ gold*) supports_anon_versioning=yes ;;
11268 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11269 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11270 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11271 *\ 2.11.*) ;; # other 2.11 versions
11272 *) supports_anon_versioning=yes ;;
11273 esac
11274
11275 # See if GNU ld supports shared libraries.
11276 case $host_os in
11277 aix[3-9]*)
11278 # On AIX/PPC, the GNU linker is very broken
11279 if test "$host_cpu" != ia64; then
11280 ld_shlibs=no
11281 cat <<_LT_EOF 1>&2
11282
11283 *** Warning: the GNU linker, at least up to release 2.19, is reported
11284 *** to be unable to reliably create shared libraries on AIX.
11285 *** Therefore, libtool is disabling shared libraries support. If you
11286 *** really care for shared libraries, you may want to install binutils
11287 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11288 *** You will then need to restart the configuration process.
11289
11290 _LT_EOF
11291 fi
11292 ;;
11293
11294 amigaos*)
11295 case $host_cpu in
11296 powerpc)
11297 # see comment about AmigaOS4 .so support
11298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11299 archive_expsym_cmds=''
11300 ;;
11301 m68k)
11302 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)'
11303 hardcode_libdir_flag_spec='-L$libdir'
11304 hardcode_minus_L=yes
11305 ;;
11306 esac
11307 ;;
11308
11309 beos*)
11310 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11311 allow_undefined_flag=unsupported
11312 # Joseph Beckenbach <[email protected]> says some releases of gcc
11313 # support --undefined. This deserves some investigation. FIXME
11314 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11315 else
11316 ld_shlibs=no
11317 fi
11318 ;;
11319
11320 cygwin* | mingw* | pw32* | cegcc*)
11321 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11322 # as there is no search path for DLLs.
11323 hardcode_libdir_flag_spec='-L$libdir'
11324 export_dynamic_flag_spec='${wl}--export-all-symbols'
11325 allow_undefined_flag=unsupported
11326 always_export_symbols=no
11327 enable_shared_with_static_runtimes=yes
11328 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11329
11330 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11332 # If the export-symbols file already is a .def file (1st line
11333 # is EXPORTS), use it as is; otherwise, prepend...
11334 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11335 cp $export_symbols $output_objdir/$soname.def;
11336 else
11337 echo EXPORTS > $output_objdir/$soname.def;
11338 cat $export_symbols >> $output_objdir/$soname.def;
11339 fi~
11340 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11341 else
11342 ld_shlibs=no
11343 fi
11344 ;;
11345
11346 haiku*)
11347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11348 link_all_deplibs=yes
11349 ;;
11350
11351 interix[3-9]*)
11352 hardcode_direct=no
11353 hardcode_shlibpath_var=no
11354 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11355 export_dynamic_flag_spec='${wl}-E'
11356 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11357 # Instead, shared libraries are loaded at an image base (0x10000000 by
11358 # default) and relocated if they conflict, which is a slow very memory
11359 # consuming and fragmenting process. To avoid this, we pick a random,
11360 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11361 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11362 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11363 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'
11364 ;;
11365
11366 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
11367 tmp_diet=no
11368 if test "$host_os" = linux-dietlibc; then
11369 case $cc_basename in
11370 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11371 esac
11372 fi
11373 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11374 && test "$tmp_diet" = no
11375 then
11376 tmp_addflag=' $pic_flag'
11377 tmp_sharedflag='-shared'
11378 case $cc_basename,$host_cpu in
11379 pgcc*) # Portland Group C compiler
11380 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'
11381 tmp_addflag=' $pic_flag'
11382 ;;
11383 pgf77* | pgf90* | pgf95* | pgfortran*)
11384 # Portland Group f77 and f90 compilers
11385 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'
11386 tmp_addflag=' $pic_flag -Mnomain' ;;
11387 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11388 tmp_addflag=' -i_dynamic' ;;
11389 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11390 tmp_addflag=' -i_dynamic -nofor_main' ;;
11391 ifc* | ifort*) # Intel Fortran compiler
11392 tmp_addflag=' -nofor_main' ;;
11393 lf95*) # Lahey Fortran 8.1
11394 whole_archive_flag_spec=
11395 tmp_sharedflag='--shared' ;;
11396 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11397 tmp_sharedflag='-qmkshrobj'
11398 tmp_addflag= ;;
11399 nvcc*) # Cuda Compiler Driver 2.2
11400 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'
11401 compiler_needs_object=yes
11402 ;;
11403 esac
11404 case `$CC -V 2>&1 | sed 5q` in
11405 *Sun\ C*) # Sun C 5.9
11406 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'
11407 compiler_needs_object=yes
11408 tmp_sharedflag='-G' ;;
11409 *Sun\ F*) # Sun Fortran 8.3
11410 tmp_sharedflag='-G' ;;
11411 esac
11412 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11413
11414 if test "x$supports_anon_versioning" = xyes; then
11415 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11416 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11417 echo "local: *; };" >> $output_objdir/$libname.ver~
11418 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11419 fi
11420
11421 case $cc_basename in
11422 xlf* | bgf* | bgxlf* | mpixlf*)
11423 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11424 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11425 hardcode_libdir_flag_spec=
11426 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11427 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11428 if test "x$supports_anon_versioning" = xyes; then
11429 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11430 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11431 echo "local: *; };" >> $output_objdir/$libname.ver~
11432 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11433 fi
11434 ;;
11435 esac
11436 else
11437 ld_shlibs=no
11438 fi
11439 ;;
11440
11441 netbsd*)
11442 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11443 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11444 wlarc=
11445 else
11446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11447 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11448 fi
11449 ;;
11450
11451 solaris*)
11452 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11453 ld_shlibs=no
11454 cat <<_LT_EOF 1>&2
11455
11456 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11457 *** create shared libraries on Solaris systems. Therefore, libtool
11458 *** is disabling shared libraries support. We urge you to upgrade GNU
11459 *** binutils to release 2.9.1 or newer. Another option is to modify
11460 *** your PATH or compiler configuration so that the native linker is
11461 *** used, and then restart.
11462
11463 _LT_EOF
11464 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11465 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11466 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11467 else
11468 ld_shlibs=no
11469 fi
11470 ;;
11471
11472 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11473 case `$LD -v 2>&1` in
11474 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11475 ld_shlibs=no
11476 cat <<_LT_EOF 1>&2
11477
11478 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11479 *** reliably create shared libraries on SCO systems. Therefore, libtool
11480 *** is disabling shared libraries support. We urge you to upgrade GNU
11481 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11482 *** your PATH or compiler configuration so that the native linker is
11483 *** used, and then restart.
11484
11485 _LT_EOF
11486 ;;
11487 *)
11488 # For security reasons, it is highly recommended that you always
11489 # use absolute paths for naming shared libraries, and exclude the
11490 # DT_RUNPATH tag from executables and libraries. But doing so
11491 # requires that you compile everything twice, which is a pain.
11492 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11493 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11494 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11495 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11496 else
11497 ld_shlibs=no
11498 fi
11499 ;;
11500 esac
11501 ;;
11502
11503 sunos4*)
11504 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11505 wlarc=
11506 hardcode_direct=yes
11507 hardcode_shlibpath_var=no
11508 ;;
11509
11510 *)
11511 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11513 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11514 else
11515 ld_shlibs=no
11516 fi
11517 ;;
11518 esac
11519
11520 if test "$ld_shlibs" = no; then
11521 runpath_var=
11522 hardcode_libdir_flag_spec=
11523 export_dynamic_flag_spec=
11524 whole_archive_flag_spec=
11525 fi
11526 else
11527 # PORTME fill in a description of your system's linker (not GNU ld)
11528 case $host_os in
11529 aix3*)
11530 allow_undefined_flag=unsupported
11531 always_export_symbols=yes
11532 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'
11533 # Note: this linker hardcodes the directories in LIBPATH if there
11534 # are no directories specified by -L.
11535 hardcode_minus_L=yes
11536 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11537 # Neither direct hardcoding nor static linking is supported with a
11538 # broken collect2.
11539 hardcode_direct=unsupported
11540 fi
11541 ;;
11542
11543 aix[4-9]*)
11544 if test "$host_cpu" = ia64; then
11545 # On IA64, the linker does run time linking by default, so we don't
11546 # have to do anything special.
11547 aix_use_runtimelinking=no
11548 exp_sym_flag='-Bexport'
11549 no_entry_flag=""
11550 else
11551 # If we're using GNU nm, then we don't want the "-C" option.
11552 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11553 # Also, AIX nm treats weak defined symbols like other global
11554 # defined symbols, whereas GNU nm marks them as "W".
11555 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11556 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'
11557 else
11558 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'
11559 fi
11560 aix_use_runtimelinking=no
11561
11562 # Test if we are trying to use run time linking or normal
11563 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11564 # need to do runtime linking.
11565 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11566 for ld_flag in $LDFLAGS; do
11567 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11568 aix_use_runtimelinking=yes
11569 break
11570 fi
11571 done
11572 ;;
11573 esac
11574
11575 exp_sym_flag='-bexport'
11576 no_entry_flag='-bnoentry'
11577 fi
11578
11579 # When large executables or shared objects are built, AIX ld can
11580 # have problems creating the table of contents. If linking a library
11581 # or program results in "error TOC overflow" add -mminimal-toc to
11582 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11583 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11584
11585 archive_cmds=''
11586 hardcode_direct=yes
11587 hardcode_direct_absolute=yes
11588 hardcode_libdir_separator=':'
11589 link_all_deplibs=yes
11590 file_list_spec='${wl}-f,'
11591
11592 if test "$GCC" = yes; then
11593 case $host_os in aix4.[012]|aix4.[012].*)
11594 # We only want to do this on AIX 4.2 and lower, the check
11595 # below for broken collect2 doesn't work under 4.3+
11596 collect2name=`${CC} -print-prog-name=collect2`
11597 if test -f "$collect2name" &&
11598 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11599 then
11600 # We have reworked collect2
11601 :
11602 else
11603 # We have old collect2
11604 hardcode_direct=unsupported
11605 # It fails to find uninstalled libraries when the uninstalled
11606 # path is not listed in the libpath. Setting hardcode_minus_L
11607 # to unsupported forces relinking
11608 hardcode_minus_L=yes
11609 hardcode_libdir_flag_spec='-L$libdir'
11610 hardcode_libdir_separator=
11611 fi
11612 ;;
11613 esac
11614 shared_flag='-shared'
11615 if test "$aix_use_runtimelinking" = yes; then
11616 shared_flag="$shared_flag "'${wl}-G'
11617 fi
11618 else
11619 # not using gcc
11620 if test "$host_cpu" = ia64; then
11621 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11622 # chokes on -Wl,-G. The following line is correct:
11623 shared_flag='-G'
11624 else
11625 if test "$aix_use_runtimelinking" = yes; then
11626 shared_flag='${wl}-G'
11627 else
11628 shared_flag='${wl}-bM:SRE'
11629 fi
11630 fi
11631 fi
11632
11633 export_dynamic_flag_spec='${wl}-bexpall'
11634 # It seems that -bexpall does not export symbols beginning with
11635 # underscore (_), so it is better to generate a list of symbols to export.
11636 always_export_symbols=yes
11637 if test "$aix_use_runtimelinking" = yes; then
11638 # Warning - without using the other runtime loading flags (-brtl),
11639 # -berok will link without error, but may produce a broken library.
11640 allow_undefined_flag='-berok'
11641 # Determine the default libpath from the value encoded in an
11642 # empty executable.
11643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11644 /* end confdefs.h. */
11645
11646 int
11647 main ()
11648 {
11649
11650 ;
11651 return 0;
11652 }
11653 _ACEOF
11654 if ac_fn_c_try_link "$LINENO"; then :
11655
11656 lt_aix_libpath_sed='
11657 /Import File Strings/,/^$/ {
11658 /^0/ {
11659 s/^0 *\(.*\)$/\1/
11660 p
11661 }
11662 }'
11663 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11664 # Check for a 64-bit object if we didn't find anything.
11665 if test -z "$aix_libpath"; then
11666 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11667 fi
11668 fi
11669 rm -f core conftest.err conftest.$ac_objext \
11670 conftest$ac_exeext conftest.$ac_ext
11671 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11672
11673 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11674 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"
11675 else
11676 if test "$host_cpu" = ia64; then
11677 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11678 allow_undefined_flag="-z nodefs"
11679 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"
11680 else
11681 # Determine the default libpath from the value encoded in an
11682 # empty executable.
11683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684 /* end confdefs.h. */
11685
11686 int
11687 main ()
11688 {
11689
11690 ;
11691 return 0;
11692 }
11693 _ACEOF
11694 if ac_fn_c_try_link "$LINENO"; then :
11695
11696 lt_aix_libpath_sed='
11697 /Import File Strings/,/^$/ {
11698 /^0/ {
11699 s/^0 *\(.*\)$/\1/
11700 p
11701 }
11702 }'
11703 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11704 # Check for a 64-bit object if we didn't find anything.
11705 if test -z "$aix_libpath"; then
11706 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11707 fi
11708 fi
11709 rm -f core conftest.err conftest.$ac_objext \
11710 conftest$ac_exeext conftest.$ac_ext
11711 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11712
11713 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11714 # Warning - without using the other run time loading flags,
11715 # -berok will link without error, but may produce a broken library.
11716 no_undefined_flag=' ${wl}-bernotok'
11717 allow_undefined_flag=' ${wl}-berok'
11718 if test "$with_gnu_ld" = yes; then
11719 # We only use this code for GNU lds that support --whole-archive.
11720 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11721 else
11722 # Exported symbols can be pulled into shared objects from archives
11723 whole_archive_flag_spec='$convenience'
11724 fi
11725 archive_cmds_need_lc=yes
11726 # This is similar to how AIX traditionally builds its shared libraries.
11727 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'
11728 fi
11729 fi
11730 ;;
11731
11732 amigaos*)
11733 case $host_cpu in
11734 powerpc)
11735 # see comment about AmigaOS4 .so support
11736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11737 archive_expsym_cmds=''
11738 ;;
11739 m68k)
11740 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)'
11741 hardcode_libdir_flag_spec='-L$libdir'
11742 hardcode_minus_L=yes
11743 ;;
11744 esac
11745 ;;
11746
11747 bsdi[45]*)
11748 export_dynamic_flag_spec=-rdynamic
11749 ;;
11750
11751 cygwin* | mingw* | pw32* | cegcc*)
11752 # When not using gcc, we currently assume that we are using
11753 # Microsoft Visual C++.
11754 # hardcode_libdir_flag_spec is actually meaningless, as there is
11755 # no search path for DLLs.
11756 hardcode_libdir_flag_spec=' '
11757 allow_undefined_flag=unsupported
11758 # Tell ltmain to make .lib files, not .a files.
11759 libext=lib
11760 # Tell ltmain to make .dll files, not .so files.
11761 shrext_cmds=".dll"
11762 # FIXME: Setting linknames here is a bad hack.
11763 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11764 # The linker will automatically build a .lib file if we build a DLL.
11765 old_archive_from_new_cmds='true'
11766 # FIXME: Should let the user specify the lib program.
11767 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11768 fix_srcfile_path='`cygpath -w "$srcfile"`'
11769 enable_shared_with_static_runtimes=yes
11770 ;;
11771
11772 darwin* | rhapsody*)
11773
11774
11775 archive_cmds_need_lc=no
11776 hardcode_direct=no
11777 hardcode_automatic=yes
11778 hardcode_shlibpath_var=unsupported
11779 if test "$lt_cv_ld_force_load" = "yes"; then
11780 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\"`'
11781 else
11782 whole_archive_flag_spec=''
11783 fi
11784 link_all_deplibs=yes
11785 allow_undefined_flag="$_lt_dar_allow_undefined"
11786 case $cc_basename in
11787 ifort*) _lt_dar_can_shared=yes ;;
11788 *) _lt_dar_can_shared=$GCC ;;
11789 esac
11790 if test "$_lt_dar_can_shared" = "yes"; then
11791 output_verbose_link_cmd=func_echo_all
11792 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11793 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11794 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}"
11795 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}"
11796
11797 else
11798 ld_shlibs=no
11799 fi
11800
11801 ;;
11802
11803 dgux*)
11804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11805 hardcode_libdir_flag_spec='-L$libdir'
11806 hardcode_shlibpath_var=no
11807 ;;
11808
11809 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11810 # support. Future versions do this automatically, but an explicit c++rt0.o
11811 # does not break anything, and helps significantly (at the cost of a little
11812 # extra space).
11813 freebsd2.2*)
11814 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11815 hardcode_libdir_flag_spec='-R$libdir'
11816 hardcode_direct=yes
11817 hardcode_shlibpath_var=no
11818 ;;
11819
11820 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11821 freebsd2.*)
11822 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11823 hardcode_direct=yes
11824 hardcode_minus_L=yes
11825 hardcode_shlibpath_var=no
11826 ;;
11827
11828 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11829 freebsd* | dragonfly*)
11830 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11831 hardcode_libdir_flag_spec='-R$libdir'
11832 hardcode_direct=yes
11833 hardcode_shlibpath_var=no
11834 ;;
11835
11836 hpux9*)
11837 if test "$GCC" = yes; then
11838 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'
11839 else
11840 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'
11841 fi
11842 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11843 hardcode_libdir_separator=:
11844 hardcode_direct=yes
11845
11846 # hardcode_minus_L: Not really in the search PATH,
11847 # but as the default location of the library.
11848 hardcode_minus_L=yes
11849 export_dynamic_flag_spec='${wl}-E'
11850 ;;
11851
11852 hpux10*)
11853 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11854 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11855 else
11856 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11857 fi
11858 if test "$with_gnu_ld" = no; then
11859 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11860 hardcode_libdir_flag_spec_ld='+b $libdir'
11861 hardcode_libdir_separator=:
11862 hardcode_direct=yes
11863 hardcode_direct_absolute=yes
11864 export_dynamic_flag_spec='${wl}-E'
11865 # hardcode_minus_L: Not really in the search PATH,
11866 # but as the default location of the library.
11867 hardcode_minus_L=yes
11868 fi
11869 ;;
11870
11871 hpux11*)
11872 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11873 case $host_cpu in
11874 hppa*64*)
11875 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11876 ;;
11877 ia64*)
11878 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11879 ;;
11880 *)
11881 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11882 ;;
11883 esac
11884 else
11885 case $host_cpu in
11886 hppa*64*)
11887 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11888 ;;
11889 ia64*)
11890 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11891 ;;
11892 *)
11893
11894 # Older versions of the 11.00 compiler do not understand -b yet
11895 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11897 $as_echo_n "checking if $CC understands -b... " >&6; }
11898 if ${lt_cv_prog_compiler__b+:} false; then :
11899 $as_echo_n "(cached) " >&6
11900 else
11901 lt_cv_prog_compiler__b=no
11902 save_LDFLAGS="$LDFLAGS"
11903 LDFLAGS="$LDFLAGS -b"
11904 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11905 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11906 # The linker can only warn and ignore the option if not recognized
11907 # So say no if there are warnings
11908 if test -s conftest.err; then
11909 # Append any errors to the config.log.
11910 cat conftest.err 1>&5
11911 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11913 if diff conftest.exp conftest.er2 >/dev/null; then
11914 lt_cv_prog_compiler__b=yes
11915 fi
11916 else
11917 lt_cv_prog_compiler__b=yes
11918 fi
11919 fi
11920 $RM -r conftest*
11921 LDFLAGS="$save_LDFLAGS"
11922
11923 fi
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11925 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11926
11927 if test x"$lt_cv_prog_compiler__b" = xyes; then
11928 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11929 else
11930 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11931 fi
11932
11933 ;;
11934 esac
11935 fi
11936 if test "$with_gnu_ld" = no; then
11937 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11938 hardcode_libdir_separator=:
11939
11940 case $host_cpu in
11941 hppa*64*|ia64*)
11942 hardcode_direct=no
11943 hardcode_shlibpath_var=no
11944 ;;
11945 *)
11946 hardcode_direct=yes
11947 hardcode_direct_absolute=yes
11948 export_dynamic_flag_spec='${wl}-E'
11949
11950 # hardcode_minus_L: Not really in the search PATH,
11951 # but as the default location of the library.
11952 hardcode_minus_L=yes
11953 ;;
11954 esac
11955 fi
11956 ;;
11957
11958 irix5* | irix6* | nonstopux*)
11959 if test "$GCC" = yes; then
11960 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'
11961 # Try to use the -exported_symbol ld option, if it does not
11962 # work, assume that -exports_file does not work either and
11963 # implicitly export all symbols.
11964 save_LDFLAGS="$LDFLAGS"
11965 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h. */
11968 int foo(void) {}
11969 _ACEOF
11970 if ac_fn_c_try_link "$LINENO"; then :
11971 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'
11972
11973 fi
11974 rm -f core conftest.err conftest.$ac_objext \
11975 conftest$ac_exeext conftest.$ac_ext
11976 LDFLAGS="$save_LDFLAGS"
11977 else
11978 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'
11979 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'
11980 fi
11981 archive_cmds_need_lc='no'
11982 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11983 hardcode_libdir_separator=:
11984 inherit_rpath=yes
11985 link_all_deplibs=yes
11986 ;;
11987
11988 netbsd*)
11989 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11990 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11991 else
11992 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11993 fi
11994 hardcode_libdir_flag_spec='-R$libdir'
11995 hardcode_direct=yes
11996 hardcode_shlibpath_var=no
11997 ;;
11998
11999 newsos6)
12000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12001 hardcode_direct=yes
12002 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12003 hardcode_libdir_separator=:
12004 hardcode_shlibpath_var=no
12005 ;;
12006
12007 *nto* | *qnx*)
12008 ;;
12009
12010 openbsd*)
12011 if test -f /usr/libexec/ld.so; then
12012 hardcode_direct=yes
12013 hardcode_shlibpath_var=no
12014 hardcode_direct_absolute=yes
12015 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12016 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12017 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12018 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12019 export_dynamic_flag_spec='${wl}-E'
12020 else
12021 case $host_os in
12022 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12023 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12024 hardcode_libdir_flag_spec='-R$libdir'
12025 ;;
12026 *)
12027 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12028 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12029 ;;
12030 esac
12031 fi
12032 else
12033 ld_shlibs=no
12034 fi
12035 ;;
12036
12037 os2*)
12038 hardcode_libdir_flag_spec='-L$libdir'
12039 hardcode_minus_L=yes
12040 allow_undefined_flag=unsupported
12041 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'
12042 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12043 ;;
12044
12045 osf3*)
12046 if test "$GCC" = yes; then
12047 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12048 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'
12049 else
12050 allow_undefined_flag=' -expect_unresolved \*'
12051 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'
12052 fi
12053 archive_cmds_need_lc='no'
12054 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12055 hardcode_libdir_separator=:
12056 ;;
12057
12058 osf4* | osf5*) # as osf3* with the addition of -msym flag
12059 if test "$GCC" = yes; then
12060 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12061 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'
12062 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12063 else
12064 allow_undefined_flag=' -expect_unresolved \*'
12065 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'
12066 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~
12067 $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'
12068
12069 # Both c and cxx compiler support -rpath directly
12070 hardcode_libdir_flag_spec='-rpath $libdir'
12071 fi
12072 archive_cmds_need_lc='no'
12073 hardcode_libdir_separator=:
12074 ;;
12075
12076 solaris*)
12077 no_undefined_flag=' -z defs'
12078 if test "$GCC" = yes; then
12079 wlarc='${wl}'
12080 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12081 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12082 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12083 else
12084 case `$CC -V 2>&1` in
12085 *"Compilers 5.0"*)
12086 wlarc=''
12087 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12088 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12089 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12090 ;;
12091 *)
12092 wlarc='${wl}'
12093 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12094 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12095 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12096 ;;
12097 esac
12098 fi
12099 hardcode_libdir_flag_spec='-R$libdir'
12100 hardcode_shlibpath_var=no
12101 case $host_os in
12102 solaris2.[0-5] | solaris2.[0-5].*) ;;
12103 *)
12104 # The compiler driver will combine and reorder linker options,
12105 # but understands `-z linker_flag'. GCC discards it without `$wl',
12106 # but is careful enough not to reorder.
12107 # Supported since Solaris 2.6 (maybe 2.5.1?)
12108 if test "$GCC" = yes; then
12109 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12110 else
12111 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12112 fi
12113 ;;
12114 esac
12115 link_all_deplibs=yes
12116 ;;
12117
12118 sunos4*)
12119 if test "x$host_vendor" = xsequent; then
12120 # Use $CC to link under sequent, because it throws in some extra .o
12121 # files that make .init and .fini sections work.
12122 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12123 else
12124 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12125 fi
12126 hardcode_libdir_flag_spec='-L$libdir'
12127 hardcode_direct=yes
12128 hardcode_minus_L=yes
12129 hardcode_shlibpath_var=no
12130 ;;
12131
12132 sysv4)
12133 case $host_vendor in
12134 sni)
12135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12136 hardcode_direct=yes # is this really true???
12137 ;;
12138 siemens)
12139 ## LD is ld it makes a PLAMLIB
12140 ## CC just makes a GrossModule.
12141 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12142 reload_cmds='$CC -r -o $output$reload_objs'
12143 hardcode_direct=no
12144 ;;
12145 motorola)
12146 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12147 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12148 ;;
12149 esac
12150 runpath_var='LD_RUN_PATH'
12151 hardcode_shlibpath_var=no
12152 ;;
12153
12154 sysv4.3*)
12155 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12156 hardcode_shlibpath_var=no
12157 export_dynamic_flag_spec='-Bexport'
12158 ;;
12159
12160 sysv4*MP*)
12161 if test -d /usr/nec; then
12162 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12163 hardcode_shlibpath_var=no
12164 runpath_var=LD_RUN_PATH
12165 hardcode_runpath_var=yes
12166 ld_shlibs=yes
12167 fi
12168 ;;
12169
12170 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12171 no_undefined_flag='${wl}-z,text'
12172 archive_cmds_need_lc=no
12173 hardcode_shlibpath_var=no
12174 runpath_var='LD_RUN_PATH'
12175
12176 if test "$GCC" = yes; then
12177 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12178 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12179 else
12180 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12181 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12182 fi
12183 ;;
12184
12185 sysv5* | sco3.2v5* | sco5v6*)
12186 # Note: We can NOT use -z defs as we might desire, because we do not
12187 # link with -lc, and that would cause any symbols used from libc to
12188 # always be unresolved, which means just about no library would
12189 # ever link correctly. If we're not using GNU ld we use -z text
12190 # though, which does catch some bad symbols but isn't as heavy-handed
12191 # as -z defs.
12192 no_undefined_flag='${wl}-z,text'
12193 allow_undefined_flag='${wl}-z,nodefs'
12194 archive_cmds_need_lc=no
12195 hardcode_shlibpath_var=no
12196 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12197 hardcode_libdir_separator=':'
12198 link_all_deplibs=yes
12199 export_dynamic_flag_spec='${wl}-Bexport'
12200 runpath_var='LD_RUN_PATH'
12201
12202 if test "$GCC" = yes; then
12203 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12204 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12205 else
12206 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12207 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12208 fi
12209 ;;
12210
12211 uts4*)
12212 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12213 hardcode_libdir_flag_spec='-L$libdir'
12214 hardcode_shlibpath_var=no
12215 ;;
12216
12217 *)
12218 ld_shlibs=no
12219 ;;
12220 esac
12221
12222 if test x$host_vendor = xsni; then
12223 case $host in
12224 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12225 export_dynamic_flag_spec='${wl}-Blargedynsym'
12226 ;;
12227 esac
12228 fi
12229 fi
12230
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12232 $as_echo "$ld_shlibs" >&6; }
12233 test "$ld_shlibs" = no && can_build_shared=no
12234
12235 with_gnu_ld=$with_gnu_ld
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251 #
12252 # Do we need to explicitly link libc?
12253 #
12254 case "x$archive_cmds_need_lc" in
12255 x|xyes)
12256 # Assume -lc should be added
12257 archive_cmds_need_lc=yes
12258
12259 if test "$enable_shared" = yes && test "$GCC" = yes; then
12260 case $archive_cmds in
12261 *'~'*)
12262 # FIXME: we may have to deal with multi-command sequences.
12263 ;;
12264 '$CC '*)
12265 # Test whether the compiler implicitly links with -lc since on some
12266 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12267 # to ld, don't add -lc before -lgcc.
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12269 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12270 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12271 $as_echo_n "(cached) " >&6
12272 else
12273 $RM conftest*
12274 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12275
12276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12277 (eval $ac_compile) 2>&5
12278 ac_status=$?
12279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12280 test $ac_status = 0; } 2>conftest.err; then
12281 soname=conftest
12282 lib=conftest
12283 libobjs=conftest.$ac_objext
12284 deplibs=
12285 wl=$lt_prog_compiler_wl
12286 pic_flag=$lt_prog_compiler_pic
12287 compiler_flags=-v
12288 linker_flags=-v
12289 verstring=
12290 output_objdir=.
12291 libname=conftest
12292 lt_save_allow_undefined_flag=$allow_undefined_flag
12293 allow_undefined_flag=
12294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12295 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12296 ac_status=$?
12297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12298 test $ac_status = 0; }
12299 then
12300 lt_cv_archive_cmds_need_lc=no
12301 else
12302 lt_cv_archive_cmds_need_lc=yes
12303 fi
12304 allow_undefined_flag=$lt_save_allow_undefined_flag
12305 else
12306 cat conftest.err 1>&5
12307 fi
12308 $RM conftest*
12309
12310 fi
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12312 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12313 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12314 ;;
12315 esac
12316 fi
12317 ;;
12318 esac
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12477 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12478
12479 if test "$GCC" = yes; then
12480 case $host_os in
12481 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12482 *) lt_awk_arg="/^libraries:/" ;;
12483 esac
12484 case $host_os in
12485 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12486 *) lt_sed_strip_eq="s,=/,/,g" ;;
12487 esac
12488 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12489 case $lt_search_path_spec in
12490 *\;*)
12491 # if the path contains ";" then we assume it to be the separator
12492 # otherwise default to the standard path separator (i.e. ":") - it is
12493 # assumed that no part of a normal pathname contains ";" but that should
12494 # okay in the real world where ";" in dirpaths is itself problematic.
12495 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12496 ;;
12497 *)
12498 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12499 ;;
12500 esac
12501 # Ok, now we have the path, separated by spaces, we can step through it
12502 # and add multilib dir if necessary.
12503 lt_tmp_lt_search_path_spec=
12504 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12505 for lt_sys_path in $lt_search_path_spec; do
12506 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12507 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12508 else
12509 test -d "$lt_sys_path" && \
12510 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12511 fi
12512 done
12513 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12514 BEGIN {RS=" "; FS="/|\n";} {
12515 lt_foo="";
12516 lt_count=0;
12517 for (lt_i = NF; lt_i > 0; lt_i--) {
12518 if ($lt_i != "" && $lt_i != ".") {
12519 if ($lt_i == "..") {
12520 lt_count++;
12521 } else {
12522 if (lt_count == 0) {
12523 lt_foo="/" $lt_i lt_foo;
12524 } else {
12525 lt_count--;
12526 }
12527 }
12528 }
12529 }
12530 if (lt_foo != "") { lt_freq[lt_foo]++; }
12531 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12532 }'`
12533 # AWK program above erroneously prepends '/' to C:/dos/paths
12534 # for these hosts.
12535 case $host_os in
12536 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12537 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12538 esac
12539 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12540 else
12541 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12542 fi
12543 library_names_spec=
12544 libname_spec='lib$name'
12545 soname_spec=
12546 shrext_cmds=".so"
12547 postinstall_cmds=
12548 postuninstall_cmds=
12549 finish_cmds=
12550 finish_eval=
12551 shlibpath_var=
12552 shlibpath_overrides_runpath=unknown
12553 version_type=none
12554 dynamic_linker="$host_os ld.so"
12555 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12556 need_lib_prefix=unknown
12557 hardcode_into_libs=no
12558
12559 # when you set need_version to no, make sure it does not cause -set_version
12560 # flags to be left without arguments
12561 need_version=unknown
12562
12563 case $host_os in
12564 aix3*)
12565 version_type=linux
12566 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12567 shlibpath_var=LIBPATH
12568
12569 # AIX 3 has no versioning support, so we append a major version to the name.
12570 soname_spec='${libname}${release}${shared_ext}$major'
12571 ;;
12572
12573 aix[4-9]*)
12574 version_type=linux
12575 need_lib_prefix=no
12576 need_version=no
12577 hardcode_into_libs=yes
12578 if test "$host_cpu" = ia64; then
12579 # AIX 5 supports IA64
12580 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12581 shlibpath_var=LD_LIBRARY_PATH
12582 else
12583 # With GCC up to 2.95.x, collect2 would create an import file
12584 # for dependence libraries. The import file would start with
12585 # the line `#! .'. This would cause the generated library to
12586 # depend on `.', always an invalid library. This was fixed in
12587 # development snapshots of GCC prior to 3.0.
12588 case $host_os in
12589 aix4 | aix4.[01] | aix4.[01].*)
12590 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12591 echo ' yes '
12592 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12593 :
12594 else
12595 can_build_shared=no
12596 fi
12597 ;;
12598 esac
12599 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12600 # soname into executable. Probably we can add versioning support to
12601 # collect2, so additional links can be useful in future.
12602 if test "$aix_use_runtimelinking" = yes; then
12603 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12604 # instead of lib<name>.a to let people know that these are not
12605 # typical AIX shared libraries.
12606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12607 else
12608 # We preserve .a as extension for shared libraries through AIX4.2
12609 # and later when we are not doing run time linking.
12610 library_names_spec='${libname}${release}.a $libname.a'
12611 soname_spec='${libname}${release}${shared_ext}$major'
12612 fi
12613 shlibpath_var=LIBPATH
12614 fi
12615 ;;
12616
12617 amigaos*)
12618 case $host_cpu in
12619 powerpc)
12620 # Since July 2007 AmigaOS4 officially supports .so libraries.
12621 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12623 ;;
12624 m68k)
12625 library_names_spec='$libname.ixlibrary $libname.a'
12626 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12627 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'
12628 ;;
12629 esac
12630 ;;
12631
12632 beos*)
12633 library_names_spec='${libname}${shared_ext}'
12634 dynamic_linker="$host_os ld.so"
12635 shlibpath_var=LIBRARY_PATH
12636 ;;
12637
12638 bsdi[45]*)
12639 version_type=linux
12640 need_version=no
12641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12642 soname_spec='${libname}${release}${shared_ext}$major'
12643 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12644 shlibpath_var=LD_LIBRARY_PATH
12645 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12646 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12647 # the default ld.so.conf also contains /usr/contrib/lib and
12648 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12649 # libtool to hard-code these into programs
12650 ;;
12651
12652 cygwin* | mingw* | pw32* | cegcc*)
12653 version_type=windows
12654 shrext_cmds=".dll"
12655 need_version=no
12656 need_lib_prefix=no
12657
12658 case $GCC,$host_os in
12659 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12660 library_names_spec='$libname.dll.a'
12661 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12662 postinstall_cmds='base_file=`basename \${file}`~
12663 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12664 dldir=$destdir/`dirname \$dlpath`~
12665 test -d \$dldir || mkdir -p \$dldir~
12666 $install_prog $dir/$dlname \$dldir/$dlname~
12667 chmod a+x \$dldir/$dlname~
12668 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12669 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12670 fi'
12671 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12672 dlpath=$dir/\$dldll~
12673 $RM \$dlpath'
12674 shlibpath_overrides_runpath=yes
12675
12676 case $host_os in
12677 cygwin*)
12678 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12679 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12680
12681 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12682 ;;
12683 mingw* | cegcc*)
12684 # MinGW DLLs use traditional 'lib' prefix
12685 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12686 ;;
12687 pw32*)
12688 # pw32 DLLs use 'pw' prefix rather than 'lib'
12689 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12690 ;;
12691 esac
12692 ;;
12693
12694 *)
12695 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12696 ;;
12697 esac
12698 dynamic_linker='Win32 ld.exe'
12699 # FIXME: first we should search . and the directory the executable is in
12700 shlibpath_var=PATH
12701 ;;
12702
12703 darwin* | rhapsody*)
12704 dynamic_linker="$host_os dyld"
12705 version_type=darwin
12706 need_lib_prefix=no
12707 need_version=no
12708 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12709 soname_spec='${libname}${release}${major}$shared_ext'
12710 shlibpath_overrides_runpath=yes
12711 shlibpath_var=DYLD_LIBRARY_PATH
12712 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12713
12714 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12715 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12716 ;;
12717
12718 dgux*)
12719 version_type=linux
12720 need_lib_prefix=no
12721 need_version=no
12722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12723 soname_spec='${libname}${release}${shared_ext}$major'
12724 shlibpath_var=LD_LIBRARY_PATH
12725 ;;
12726
12727 freebsd* | dragonfly*)
12728 # DragonFly does not have aout. When/if they implement a new
12729 # versioning mechanism, adjust this.
12730 if test -x /usr/bin/objformat; then
12731 objformat=`/usr/bin/objformat`
12732 else
12733 case $host_os in
12734 freebsd[23].*) objformat=aout ;;
12735 *) objformat=elf ;;
12736 esac
12737 fi
12738 version_type=freebsd-$objformat
12739 case $version_type in
12740 freebsd-elf*)
12741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12742 need_version=no
12743 need_lib_prefix=no
12744 ;;
12745 freebsd-*)
12746 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12747 need_version=yes
12748 ;;
12749 esac
12750 shlibpath_var=LD_LIBRARY_PATH
12751 case $host_os in
12752 freebsd2.*)
12753 shlibpath_overrides_runpath=yes
12754 ;;
12755 freebsd3.[01]* | freebsdelf3.[01]*)
12756 shlibpath_overrides_runpath=yes
12757 hardcode_into_libs=yes
12758 ;;
12759 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12760 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12761 shlibpath_overrides_runpath=no
12762 hardcode_into_libs=yes
12763 ;;
12764 *) # from 4.6 on, and DragonFly
12765 shlibpath_overrides_runpath=yes
12766 hardcode_into_libs=yes
12767 ;;
12768 esac
12769 ;;
12770
12771 haiku*)
12772 version_type=linux
12773 need_lib_prefix=no
12774 need_version=no
12775 dynamic_linker="$host_os runtime_loader"
12776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12777 soname_spec='${libname}${release}${shared_ext}$major'
12778 shlibpath_var=LIBRARY_PATH
12779 shlibpath_overrides_runpath=yes
12780 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12781 hardcode_into_libs=yes
12782 ;;
12783
12784 hpux9* | hpux10* | hpux11*)
12785 # Give a soname corresponding to the major version so that dld.sl refuses to
12786 # link against other versions.
12787 version_type=sunos
12788 need_lib_prefix=no
12789 need_version=no
12790 case $host_cpu in
12791 ia64*)
12792 shrext_cmds='.so'
12793 hardcode_into_libs=yes
12794 dynamic_linker="$host_os dld.so"
12795 shlibpath_var=LD_LIBRARY_PATH
12796 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12798 soname_spec='${libname}${release}${shared_ext}$major'
12799 if test "X$HPUX_IA64_MODE" = X32; then
12800 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12801 else
12802 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12803 fi
12804 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12805 ;;
12806 hppa*64*)
12807 shrext_cmds='.sl'
12808 hardcode_into_libs=yes
12809 dynamic_linker="$host_os dld.sl"
12810 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12811 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12813 soname_spec='${libname}${release}${shared_ext}$major'
12814 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12815 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12816 ;;
12817 *)
12818 shrext_cmds='.sl'
12819 dynamic_linker="$host_os dld.sl"
12820 shlibpath_var=SHLIB_PATH
12821 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12823 soname_spec='${libname}${release}${shared_ext}$major'
12824 ;;
12825 esac
12826 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12827 postinstall_cmds='chmod 555 $lib'
12828 # or fails outright, so override atomically:
12829 install_override_mode=555
12830 ;;
12831
12832 interix[3-9]*)
12833 version_type=linux
12834 need_lib_prefix=no
12835 need_version=no
12836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12837 soname_spec='${libname}${release}${shared_ext}$major'
12838 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12839 shlibpath_var=LD_LIBRARY_PATH
12840 shlibpath_overrides_runpath=no
12841 hardcode_into_libs=yes
12842 ;;
12843
12844 irix5* | irix6* | nonstopux*)
12845 case $host_os in
12846 nonstopux*) version_type=nonstopux ;;
12847 *)
12848 if test "$lt_cv_prog_gnu_ld" = yes; then
12849 version_type=linux
12850 else
12851 version_type=irix
12852 fi ;;
12853 esac
12854 need_lib_prefix=no
12855 need_version=no
12856 soname_spec='${libname}${release}${shared_ext}$major'
12857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12858 case $host_os in
12859 irix5* | nonstopux*)
12860 libsuff= shlibsuff=
12861 ;;
12862 *)
12863 case $LD in # libtool.m4 will add one of these switches to LD
12864 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12865 libsuff= shlibsuff= libmagic=32-bit;;
12866 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12867 libsuff=32 shlibsuff=N32 libmagic=N32;;
12868 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12869 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12870 *) libsuff= shlibsuff= libmagic=never-match;;
12871 esac
12872 ;;
12873 esac
12874 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12875 shlibpath_overrides_runpath=no
12876 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12877 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12878 hardcode_into_libs=yes
12879 ;;
12880
12881 # No shared lib support for Linux oldld, aout, or coff.
12882 linux*oldld* | linux*aout* | linux*coff*)
12883 dynamic_linker=no
12884 ;;
12885
12886 # This must be Linux ELF.
12887
12888 # uclinux* changes (here and below) have been submitted to the libtool
12889 # project, but have not yet been accepted: they are GCC-local changes
12890 # for the time being. (See
12891 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
12892 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
12893 version_type=linux
12894 need_lib_prefix=no
12895 need_version=no
12896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12897 soname_spec='${libname}${release}${shared_ext}$major'
12898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12899 shlibpath_var=LD_LIBRARY_PATH
12900 shlibpath_overrides_runpath=no
12901
12902 # Some binutils ld are patched to set DT_RUNPATH
12903 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12904 $as_echo_n "(cached) " >&6
12905 else
12906 lt_cv_shlibpath_overrides_runpath=no
12907 save_LDFLAGS=$LDFLAGS
12908 save_libdir=$libdir
12909 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12910 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912 /* end confdefs.h. */
12913
12914 int
12915 main ()
12916 {
12917
12918 ;
12919 return 0;
12920 }
12921 _ACEOF
12922 if ac_fn_c_try_link "$LINENO"; then :
12923 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12924 lt_cv_shlibpath_overrides_runpath=yes
12925 fi
12926 fi
12927 rm -f core conftest.err conftest.$ac_objext \
12928 conftest$ac_exeext conftest.$ac_ext
12929 LDFLAGS=$save_LDFLAGS
12930 libdir=$save_libdir
12931
12932 fi
12933
12934 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12935
12936 # This implies no fast_install, which is unacceptable.
12937 # Some rework will be needed to allow for fast_install
12938 # before this can be enabled.
12939 hardcode_into_libs=yes
12940
12941 # Append ld.so.conf contents to the search path
12942 if test -f /etc/ld.so.conf; then
12943 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' ' '`
12944 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12945 fi
12946
12947 # We used to test for /lib/ld.so.1 and disable shared libraries on
12948 # powerpc, because MkLinux only supported shared libraries with the
12949 # GNU dynamic linker. Since this was broken with cross compilers,
12950 # most powerpc-linux boxes support dynamic linking these days and
12951 # people can always --disable-shared, the test was removed, and we
12952 # assume the GNU/Linux dynamic linker is in use.
12953 dynamic_linker='GNU/Linux ld.so'
12954 ;;
12955
12956 netbsd*)
12957 version_type=sunos
12958 need_lib_prefix=no
12959 need_version=no
12960 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12963 dynamic_linker='NetBSD (a.out) ld.so'
12964 else
12965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12966 soname_spec='${libname}${release}${shared_ext}$major'
12967 dynamic_linker='NetBSD ld.elf_so'
12968 fi
12969 shlibpath_var=LD_LIBRARY_PATH
12970 shlibpath_overrides_runpath=yes
12971 hardcode_into_libs=yes
12972 ;;
12973
12974 newsos6)
12975 version_type=linux
12976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12977 shlibpath_var=LD_LIBRARY_PATH
12978 shlibpath_overrides_runpath=yes
12979 ;;
12980
12981 *nto* | *qnx*)
12982 version_type=qnx
12983 need_lib_prefix=no
12984 need_version=no
12985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12986 soname_spec='${libname}${release}${shared_ext}$major'
12987 shlibpath_var=LD_LIBRARY_PATH
12988 shlibpath_overrides_runpath=no
12989 hardcode_into_libs=yes
12990 dynamic_linker='ldqnx.so'
12991 ;;
12992
12993 openbsd*)
12994 version_type=sunos
12995 sys_lib_dlsearch_path_spec="/usr/lib"
12996 need_lib_prefix=no
12997 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12998 case $host_os in
12999 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13000 *) need_version=no ;;
13001 esac
13002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13004 shlibpath_var=LD_LIBRARY_PATH
13005 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13006 case $host_os in
13007 openbsd2.[89] | openbsd2.[89].*)
13008 shlibpath_overrides_runpath=no
13009 ;;
13010 *)
13011 shlibpath_overrides_runpath=yes
13012 ;;
13013 esac
13014 else
13015 shlibpath_overrides_runpath=yes
13016 fi
13017 ;;
13018
13019 os2*)
13020 libname_spec='$name'
13021 shrext_cmds=".dll"
13022 need_lib_prefix=no
13023 library_names_spec='$libname${shared_ext} $libname.a'
13024 dynamic_linker='OS/2 ld.exe'
13025 shlibpath_var=LIBPATH
13026 ;;
13027
13028 osf3* | osf4* | osf5*)
13029 version_type=osf
13030 need_lib_prefix=no
13031 need_version=no
13032 soname_spec='${libname}${release}${shared_ext}$major'
13033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13034 shlibpath_var=LD_LIBRARY_PATH
13035 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13036 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13037 ;;
13038
13039 rdos*)
13040 dynamic_linker=no
13041 ;;
13042
13043 solaris*)
13044 version_type=linux
13045 need_lib_prefix=no
13046 need_version=no
13047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13048 soname_spec='${libname}${release}${shared_ext}$major'
13049 shlibpath_var=LD_LIBRARY_PATH
13050 shlibpath_overrides_runpath=yes
13051 hardcode_into_libs=yes
13052 # ldd complains unless libraries are executable
13053 postinstall_cmds='chmod +x $lib'
13054 ;;
13055
13056 sunos4*)
13057 version_type=sunos
13058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13059 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13060 shlibpath_var=LD_LIBRARY_PATH
13061 shlibpath_overrides_runpath=yes
13062 if test "$with_gnu_ld" = yes; then
13063 need_lib_prefix=no
13064 fi
13065 need_version=yes
13066 ;;
13067
13068 sysv4 | sysv4.3*)
13069 version_type=linux
13070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13071 soname_spec='${libname}${release}${shared_ext}$major'
13072 shlibpath_var=LD_LIBRARY_PATH
13073 case $host_vendor in
13074 sni)
13075 shlibpath_overrides_runpath=no
13076 need_lib_prefix=no
13077 runpath_var=LD_RUN_PATH
13078 ;;
13079 siemens)
13080 need_lib_prefix=no
13081 ;;
13082 motorola)
13083 need_lib_prefix=no
13084 need_version=no
13085 shlibpath_overrides_runpath=no
13086 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13087 ;;
13088 esac
13089 ;;
13090
13091 sysv4*MP*)
13092 if test -d /usr/nec ;then
13093 version_type=linux
13094 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13095 soname_spec='$libname${shared_ext}.$major'
13096 shlibpath_var=LD_LIBRARY_PATH
13097 fi
13098 ;;
13099
13100 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13101 version_type=freebsd-elf
13102 need_lib_prefix=no
13103 need_version=no
13104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13105 soname_spec='${libname}${release}${shared_ext}$major'
13106 shlibpath_var=LD_LIBRARY_PATH
13107 shlibpath_overrides_runpath=yes
13108 hardcode_into_libs=yes
13109 if test "$with_gnu_ld" = yes; then
13110 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13111 else
13112 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13113 case $host_os in
13114 sco3.2v5*)
13115 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13116 ;;
13117 esac
13118 fi
13119 sys_lib_dlsearch_path_spec='/usr/lib'
13120 ;;
13121
13122 tpf*)
13123 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13124 version_type=linux
13125 need_lib_prefix=no
13126 need_version=no
13127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13128 shlibpath_var=LD_LIBRARY_PATH
13129 shlibpath_overrides_runpath=no
13130 hardcode_into_libs=yes
13131 ;;
13132
13133 uts4*)
13134 version_type=linux
13135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13136 soname_spec='${libname}${release}${shared_ext}$major'
13137 shlibpath_var=LD_LIBRARY_PATH
13138 ;;
13139
13140 # Shared libraries for VwWorks, >= 7 only at this stage
13141 # and (fpic) still incompatible with "large" code models
13142 # in a few configurations. Only for RTP mode in any case,
13143 # and upon explicit request at configure time.
13144 vxworks7*)
13145 dynamic_linker=no
13146 case ${with_multisubdir}-${enable_shared} in
13147 *large*)
13148 ;;
13149 *mrtp*-yes)
13150 version_type=linux
13151 need_lib_prefix=no
13152 need_version=no
13153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13154 soname_spec='${libname}${release}${shared_ext}$major'
13155 dynamic_linker="$host_os module_loader"
13156 ;;
13157 esac
13158 ;;
13159 *)
13160 dynamic_linker=no
13161 ;;
13162 esac
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13164 $as_echo "$dynamic_linker" >&6; }
13165 test "$dynamic_linker" = no && can_build_shared=no
13166
13167 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13168 if test "$GCC" = yes; then
13169 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13170 fi
13171
13172 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13173 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13174 fi
13175 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13176 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13177 fi
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13271 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13272 hardcode_action=
13273 if test -n "$hardcode_libdir_flag_spec" ||
13274 test -n "$runpath_var" ||
13275 test "X$hardcode_automatic" = "Xyes" ; then
13276
13277 # We can hardcode non-existent directories.
13278 if test "$hardcode_direct" != no &&
13279 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13280 # have to relink, otherwise we might link with an installed library
13281 # when we should be linking with a yet-to-be-installed one
13282 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13283 test "$hardcode_minus_L" != no; then
13284 # Linking always hardcodes the temporary library directory.
13285 hardcode_action=relink
13286 else
13287 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13288 hardcode_action=immediate
13289 fi
13290 else
13291 # We cannot hardcode anything, or else we can only hardcode existing
13292 # directories.
13293 hardcode_action=unsupported
13294 fi
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13296 $as_echo "$hardcode_action" >&6; }
13297
13298 if test "$hardcode_action" = relink ||
13299 test "$inherit_rpath" = yes; then
13300 # Fast installation is not supported
13301 enable_fast_install=no
13302 elif test "$shlibpath_overrides_runpath" = yes ||
13303 test "$enable_shared" = no; then
13304 # Fast installation is not necessary
13305 enable_fast_install=needless
13306 fi
13307
13308
13309
13310
13311
13312
13313 if test "x$enable_dlopen" != xyes; then
13314 enable_dlopen=unknown
13315 enable_dlopen_self=unknown
13316 enable_dlopen_self_static=unknown
13317 else
13318 lt_cv_dlopen=no
13319 lt_cv_dlopen_libs=
13320
13321 case $host_os in
13322 beos*)
13323 lt_cv_dlopen="load_add_on"
13324 lt_cv_dlopen_libs=
13325 lt_cv_dlopen_self=yes
13326 ;;
13327
13328 mingw* | pw32* | cegcc*)
13329 lt_cv_dlopen="LoadLibrary"
13330 lt_cv_dlopen_libs=
13331 ;;
13332
13333 cygwin*)
13334 lt_cv_dlopen="dlopen"
13335 lt_cv_dlopen_libs=
13336 ;;
13337
13338 darwin*)
13339 # if libdl is installed we need to link against it
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13341 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13342 if ${ac_cv_lib_dl_dlopen+:} false; then :
13343 $as_echo_n "(cached) " >&6
13344 else
13345 ac_check_lib_save_LIBS=$LIBS
13346 LIBS="-ldl $LIBS"
13347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348 /* end confdefs.h. */
13349
13350 /* Override any GCC internal prototype to avoid an error.
13351 Use char because int might match the return type of a GCC
13352 builtin and then its argument prototype would still apply. */
13353 #ifdef __cplusplus
13354 extern "C"
13355 #endif
13356 char dlopen ();
13357 int
13358 main ()
13359 {
13360 return dlopen ();
13361 ;
13362 return 0;
13363 }
13364 _ACEOF
13365 if ac_fn_c_try_link "$LINENO"; then :
13366 ac_cv_lib_dl_dlopen=yes
13367 else
13368 ac_cv_lib_dl_dlopen=no
13369 fi
13370 rm -f core conftest.err conftest.$ac_objext \
13371 conftest$ac_exeext conftest.$ac_ext
13372 LIBS=$ac_check_lib_save_LIBS
13373 fi
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13375 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13376 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13377 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13378 else
13379
13380 lt_cv_dlopen="dyld"
13381 lt_cv_dlopen_libs=
13382 lt_cv_dlopen_self=yes
13383
13384 fi
13385
13386 ;;
13387
13388 *)
13389 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13390 if test "x$ac_cv_func_shl_load" = xyes; then :
13391 lt_cv_dlopen="shl_load"
13392 else
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13394 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13395 if ${ac_cv_lib_dld_shl_load+:} false; then :
13396 $as_echo_n "(cached) " >&6
13397 else
13398 ac_check_lib_save_LIBS=$LIBS
13399 LIBS="-ldld $LIBS"
13400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13401 /* end confdefs.h. */
13402
13403 /* Override any GCC internal prototype to avoid an error.
13404 Use char because int might match the return type of a GCC
13405 builtin and then its argument prototype would still apply. */
13406 #ifdef __cplusplus
13407 extern "C"
13408 #endif
13409 char shl_load ();
13410 int
13411 main ()
13412 {
13413 return shl_load ();
13414 ;
13415 return 0;
13416 }
13417 _ACEOF
13418 if ac_fn_c_try_link "$LINENO"; then :
13419 ac_cv_lib_dld_shl_load=yes
13420 else
13421 ac_cv_lib_dld_shl_load=no
13422 fi
13423 rm -f core conftest.err conftest.$ac_objext \
13424 conftest$ac_exeext conftest.$ac_ext
13425 LIBS=$ac_check_lib_save_LIBS
13426 fi
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13428 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13429 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13430 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13431 else
13432 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13433 if test "x$ac_cv_func_dlopen" = xyes; then :
13434 lt_cv_dlopen="dlopen"
13435 else
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13437 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13438 if ${ac_cv_lib_dl_dlopen+:} false; then :
13439 $as_echo_n "(cached) " >&6
13440 else
13441 ac_check_lib_save_LIBS=$LIBS
13442 LIBS="-ldl $LIBS"
13443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13444 /* end confdefs.h. */
13445
13446 /* Override any GCC internal prototype to avoid an error.
13447 Use char because int might match the return type of a GCC
13448 builtin and then its argument prototype would still apply. */
13449 #ifdef __cplusplus
13450 extern "C"
13451 #endif
13452 char dlopen ();
13453 int
13454 main ()
13455 {
13456 return dlopen ();
13457 ;
13458 return 0;
13459 }
13460 _ACEOF
13461 if ac_fn_c_try_link "$LINENO"; then :
13462 ac_cv_lib_dl_dlopen=yes
13463 else
13464 ac_cv_lib_dl_dlopen=no
13465 fi
13466 rm -f core conftest.err conftest.$ac_objext \
13467 conftest$ac_exeext conftest.$ac_ext
13468 LIBS=$ac_check_lib_save_LIBS
13469 fi
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13471 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13472 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13473 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13474 else
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13476 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13477 if ${ac_cv_lib_svld_dlopen+:} false; then :
13478 $as_echo_n "(cached) " >&6
13479 else
13480 ac_check_lib_save_LIBS=$LIBS
13481 LIBS="-lsvld $LIBS"
13482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13483 /* end confdefs.h. */
13484
13485 /* Override any GCC internal prototype to avoid an error.
13486 Use char because int might match the return type of a GCC
13487 builtin and then its argument prototype would still apply. */
13488 #ifdef __cplusplus
13489 extern "C"
13490 #endif
13491 char dlopen ();
13492 int
13493 main ()
13494 {
13495 return dlopen ();
13496 ;
13497 return 0;
13498 }
13499 _ACEOF
13500 if ac_fn_c_try_link "$LINENO"; then :
13501 ac_cv_lib_svld_dlopen=yes
13502 else
13503 ac_cv_lib_svld_dlopen=no
13504 fi
13505 rm -f core conftest.err conftest.$ac_objext \
13506 conftest$ac_exeext conftest.$ac_ext
13507 LIBS=$ac_check_lib_save_LIBS
13508 fi
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13510 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13511 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13512 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13513 else
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13515 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13516 if ${ac_cv_lib_dld_dld_link+:} false; then :
13517 $as_echo_n "(cached) " >&6
13518 else
13519 ac_check_lib_save_LIBS=$LIBS
13520 LIBS="-ldld $LIBS"
13521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13522 /* end confdefs.h. */
13523
13524 /* Override any GCC internal prototype to avoid an error.
13525 Use char because int might match the return type of a GCC
13526 builtin and then its argument prototype would still apply. */
13527 #ifdef __cplusplus
13528 extern "C"
13529 #endif
13530 char dld_link ();
13531 int
13532 main ()
13533 {
13534 return dld_link ();
13535 ;
13536 return 0;
13537 }
13538 _ACEOF
13539 if ac_fn_c_try_link "$LINENO"; then :
13540 ac_cv_lib_dld_dld_link=yes
13541 else
13542 ac_cv_lib_dld_dld_link=no
13543 fi
13544 rm -f core conftest.err conftest.$ac_objext \
13545 conftest$ac_exeext conftest.$ac_ext
13546 LIBS=$ac_check_lib_save_LIBS
13547 fi
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13549 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13550 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13551 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13552 fi
13553
13554
13555 fi
13556
13557
13558 fi
13559
13560
13561 fi
13562
13563
13564 fi
13565
13566
13567 fi
13568
13569 ;;
13570 esac
13571
13572 if test "x$lt_cv_dlopen" != xno; then
13573 enable_dlopen=yes
13574 else
13575 enable_dlopen=no
13576 fi
13577
13578 case $lt_cv_dlopen in
13579 dlopen)
13580 save_CPPFLAGS="$CPPFLAGS"
13581 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13582
13583 save_LDFLAGS="$LDFLAGS"
13584 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13585
13586 save_LIBS="$LIBS"
13587 LIBS="$lt_cv_dlopen_libs $LIBS"
13588
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13590 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13591 if ${lt_cv_dlopen_self+:} false; then :
13592 $as_echo_n "(cached) " >&6
13593 else
13594 if test "$cross_compiling" = yes; then :
13595 lt_cv_dlopen_self=cross
13596 else
13597 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13598 lt_status=$lt_dlunknown
13599 cat > conftest.$ac_ext <<_LT_EOF
•13600 #line 13600 "configure"
13601 #include "confdefs.h"
13602
13603 #if HAVE_DLFCN_H
13604 #include <dlfcn.h>
13605 #endif
13606
13607 #include <stdio.h>
13608
13609 #ifdef RTLD_GLOBAL
13610 # define LT_DLGLOBAL RTLD_GLOBAL
13611 #else
13612 # ifdef DL_GLOBAL
13613 # define LT_DLGLOBAL DL_GLOBAL
13614 # else
13615 # define LT_DLGLOBAL 0
13616 # endif
13617 #endif
13618
13619 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13620 find out it does not work in some platform. */
13621 #ifndef LT_DLLAZY_OR_NOW
13622 # ifdef RTLD_LAZY
13623 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13624 # else
13625 # ifdef DL_LAZY
13626 # define LT_DLLAZY_OR_NOW DL_LAZY
13627 # else
13628 # ifdef RTLD_NOW
13629 # define LT_DLLAZY_OR_NOW RTLD_NOW
13630 # else
13631 # ifdef DL_NOW
13632 # define LT_DLLAZY_OR_NOW DL_NOW
13633 # else
13634 # define LT_DLLAZY_OR_NOW 0
13635 # endif
13636 # endif
13637 # endif
13638 # endif
13639 #endif
13640
13641 /* When -fvisbility=hidden is used, assume the code has been annotated
13642 correspondingly for the symbols needed. */
13643 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13644 void fnord () __attribute__((visibility("default")));
13645 #endif
13646
13647 void fnord () { int i=42; }
13648 int main ()
13649 {
13650 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13651 int status = $lt_dlunknown;
13652
13653 if (self)
13654 {
13655 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13656 else
13657 {
13658 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13659 else puts (dlerror ());
13660 }
13661 /* dlclose (self); */
13662 }
13663 else
13664 puts (dlerror ());
13665
13666 return status;
13667 }
13668 _LT_EOF
13669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13670 (eval $ac_link) 2>&5
13671 ac_status=$?
13672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13673 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13674 (./conftest; exit; ) >&5 2>/dev/null
13675 lt_status=$?
13676 case x$lt_status in
13677 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13678 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13679 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13680 esac
13681 else :
13682 # compilation failed
13683 lt_cv_dlopen_self=no
13684 fi
13685 fi
13686 rm -fr conftest*
13687
13688
13689 fi
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13691 $as_echo "$lt_cv_dlopen_self" >&6; }
13692
13693 if test "x$lt_cv_dlopen_self" = xyes; then
13694 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13696 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13697 if ${lt_cv_dlopen_self_static+:} false; then :
13698 $as_echo_n "(cached) " >&6
13699 else
13700 if test "$cross_compiling" = yes; then :
13701 lt_cv_dlopen_self_static=cross
13702 else
13703 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13704 lt_status=$lt_dlunknown
13705 cat > conftest.$ac_ext <<_LT_EOF
•13706 #line 13706 "configure"
13707 #include "confdefs.h"
13708
13709 #if HAVE_DLFCN_H
13710 #include <dlfcn.h>
13711 #endif
13712
13713 #include <stdio.h>
13714
13715 #ifdef RTLD_GLOBAL
13716 # define LT_DLGLOBAL RTLD_GLOBAL
13717 #else
13718 # ifdef DL_GLOBAL
13719 # define LT_DLGLOBAL DL_GLOBAL
13720 # else
13721 # define LT_DLGLOBAL 0
13722 # endif
13723 #endif
13724
13725 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13726 find out it does not work in some platform. */
13727 #ifndef LT_DLLAZY_OR_NOW
13728 # ifdef RTLD_LAZY
13729 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13730 # else
13731 # ifdef DL_LAZY
13732 # define LT_DLLAZY_OR_NOW DL_LAZY
13733 # else
13734 # ifdef RTLD_NOW
13735 # define LT_DLLAZY_OR_NOW RTLD_NOW
13736 # else
13737 # ifdef DL_NOW
13738 # define LT_DLLAZY_OR_NOW DL_NOW
13739 # else
13740 # define LT_DLLAZY_OR_NOW 0
13741 # endif
13742 # endif
13743 # endif
13744 # endif
13745 #endif
13746
13747 /* When -fvisbility=hidden is used, assume the code has been annotated
13748 correspondingly for the symbols needed. */
13749 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13750 void fnord () __attribute__((visibility("default")));
13751 #endif
13752
13753 void fnord () { int i=42; }
13754 int main ()
13755 {
13756 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13757 int status = $lt_dlunknown;
13758
13759 if (self)
13760 {
13761 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13762 else
13763 {
13764 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13765 else puts (dlerror ());
13766 }
13767 /* dlclose (self); */
13768 }
13769 else
13770 puts (dlerror ());
13771
13772 return status;
13773 }
13774 _LT_EOF
13775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13776 (eval $ac_link) 2>&5
13777 ac_status=$?
13778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13779 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13780 (./conftest; exit; ) >&5 2>/dev/null
13781 lt_status=$?
13782 case x$lt_status in
13783 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13784 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13785 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13786 esac
13787 else :
13788 # compilation failed
13789 lt_cv_dlopen_self_static=no
13790 fi
13791 fi
13792 rm -fr conftest*
13793
13794
13795 fi
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13797 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13798 fi
13799
13800 CPPFLAGS="$save_CPPFLAGS"
13801 LDFLAGS="$save_LDFLAGS"
13802 LIBS="$save_LIBS"
13803 ;;
13804 esac
13805
13806 case $lt_cv_dlopen_self in
13807 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13808 *) enable_dlopen_self=unknown ;;
13809 esac
13810
13811 case $lt_cv_dlopen_self_static in
13812 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13813 *) enable_dlopen_self_static=unknown ;;
13814 esac
13815 fi
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833 striplib=
13834 old_striplib=
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13836 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13837 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13838 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13839 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13841 $as_echo "yes" >&6; }
13842 else
13843 # FIXME - insert some real tests, host_os isn't really good enough
13844 case $host_os in
13845 darwin*)
13846 if test -n "$STRIP" ; then
13847 striplib="$STRIP -x"
13848 old_striplib="$STRIP -S"
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13850 $as_echo "yes" >&6; }
13851 else
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13853 $as_echo "no" >&6; }
13854 fi
13855 ;;
13856 *)
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13858 $as_echo "no" >&6; }
13859 ;;
13860 esac
13861 fi
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874 # Report which library types will actually be built
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13876 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13878 $as_echo "$can_build_shared" >&6; }
13879
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13881 $as_echo_n "checking whether to build shared libraries... " >&6; }
13882 test "$can_build_shared" = "no" && enable_shared=no
13883
13884 # On AIX, shared libraries and static libraries use the same namespace, and
13885 # are all built from PIC.
13886 case $host_os in
13887 aix3*)
13888 test "$enable_shared" = yes && enable_static=no
13889 if test -n "$RANLIB"; then
13890 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13891 postinstall_cmds='$RANLIB $lib'
13892 fi
13893 ;;
13894
13895 aix[4-9]*)
13896 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13897 test "$enable_shared" = yes && enable_static=no
13898 fi
13899 ;;
13900 esac
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13902 $as_echo "$enable_shared" >&6; }
13903
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13905 $as_echo_n "checking whether to build static libraries... " >&6; }
13906 # Make sure either enable_shared or enable_static is yes.
13907 test "$enable_shared" = yes || enable_static=yes
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13909 $as_echo "$enable_static" >&6; }
13910
13911
13912
13913
13914 fi
13915 ac_ext=c
13916 ac_cpp='$CPP $CPPFLAGS'
13917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13920
13921 CC="$lt_save_CC"
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935 ac_config_commands="$ac_config_commands libtool"
13936
13937
13938
13939
13940 # Only expand once:
13941
13942
13943 # Check whether --enable-largefile was given.
13944 if test "${enable_largefile+set}" = set; then :
13945 enableval=$enable_largefile;
13946 fi
13947
13948 if test "$enable_largefile" != no; then
13949
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13951 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13952 if ${ac_cv_sys_largefile_CC+:} false; then :
13953 $as_echo_n "(cached) " >&6
13954 else
13955 ac_cv_sys_largefile_CC=no
13956 if test "$GCC" != yes; then
13957 ac_save_CC=$CC
13958 while :; do
13959 # IRIX 6.2 and later do not support large files by default,
13960 # so use the C compiler's -n32 option if that helps.
13961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13962 /* end confdefs.h. */
13963 #include <sys/types.h>
13964 /* Check that off_t can represent 2**63 - 1 correctly.
13965 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13966 since some C++ compilers masquerading as C compilers
13967 incorrectly reject 9223372036854775807. */
13968 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13969 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13970 && LARGE_OFF_T % 2147483647 == 1)
13971 ? 1 : -1];
13972 int
13973 main ()
13974 {
13975
13976 ;
13977 return 0;
13978 }
13979 _ACEOF
13980 if ac_fn_c_try_compile "$LINENO"; then :
13981 break
13982 fi
13983 rm -f core conftest.err conftest.$ac_objext
13984 CC="$CC -n32"
13985 if ac_fn_c_try_compile "$LINENO"; then :
13986 ac_cv_sys_largefile_CC=' -n32'; break
13987 fi
13988 rm -f core conftest.err conftest.$ac_objext
13989 break
13990 done
13991 CC=$ac_save_CC
13992 rm -f conftest.$ac_ext
13993 fi
13994 fi
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13996 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13997 if test "$ac_cv_sys_largefile_CC" != no; then
13998 CC=$CC$ac_cv_sys_largefile_CC
13999 fi
14000
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14002 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14003 if ${ac_cv_sys_file_offset_bits+:} false; then :
14004 $as_echo_n "(cached) " >&6
14005 else
14006 while :; do
14007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14008 /* end confdefs.h. */
14009 #include <sys/types.h>
14010 /* Check that off_t can represent 2**63 - 1 correctly.
14011 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14012 since some C++ compilers masquerading as C compilers
14013 incorrectly reject 9223372036854775807. */
14014 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14015 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14016 && LARGE_OFF_T % 2147483647 == 1)
14017 ? 1 : -1];
14018 int
14019 main ()
14020 {
14021
14022 ;
14023 return 0;
14024 }
14025 _ACEOF
14026 if ac_fn_c_try_compile "$LINENO"; then :
14027 ac_cv_sys_file_offset_bits=no; break
14028 fi
14029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14031 /* end confdefs.h. */
14032 #define _FILE_OFFSET_BITS 64
14033 #include <sys/types.h>
14034 /* Check that off_t can represent 2**63 - 1 correctly.
14035 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14036 since some C++ compilers masquerading as C compilers
14037 incorrectly reject 9223372036854775807. */
14038 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14039 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14040 && LARGE_OFF_T % 2147483647 == 1)
14041 ? 1 : -1];
14042 int
14043 main ()
14044 {
14045
14046 ;
14047 return 0;
14048 }
14049 _ACEOF
14050 if ac_fn_c_try_compile "$LINENO"; then :
14051 ac_cv_sys_file_offset_bits=64; break
14052 fi
14053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14054 ac_cv_sys_file_offset_bits=unknown
14055 break
14056 done
14057 fi
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14059 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14060 case $ac_cv_sys_file_offset_bits in #(
14061 no | unknown) ;;
14062 *)
14063 cat >>confdefs.h <<_ACEOF
14064 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14065 _ACEOF
14066 ;;
14067 esac
14068 rm -rf conftest*
14069 if test $ac_cv_sys_file_offset_bits = unknown; then
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14071 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14072 if ${ac_cv_sys_large_files+:} false; then :
14073 $as_echo_n "(cached) " >&6
14074 else
14075 while :; do
14076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14077 /* end confdefs.h. */
14078 #include <sys/types.h>
14079 /* Check that off_t can represent 2**63 - 1 correctly.
14080 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14081 since some C++ compilers masquerading as C compilers
14082 incorrectly reject 9223372036854775807. */
14083 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14084 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14085 && LARGE_OFF_T % 2147483647 == 1)
14086 ? 1 : -1];
14087 int
14088 main ()
14089 {
14090
14091 ;
14092 return 0;
14093 }
14094 _ACEOF
14095 if ac_fn_c_try_compile "$LINENO"; then :
14096 ac_cv_sys_large_files=no; break
14097 fi
14098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14100 /* end confdefs.h. */
14101 #define _LARGE_FILES 1
14102 #include <sys/types.h>
14103 /* Check that off_t can represent 2**63 - 1 correctly.
14104 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14105 since some C++ compilers masquerading as C compilers
14106 incorrectly reject 9223372036854775807. */
14107 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14108 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14109 && LARGE_OFF_T % 2147483647 == 1)
14110 ? 1 : -1];
14111 int
14112 main ()
14113 {
14114
14115 ;
14116 return 0;
14117 }
14118 _ACEOF
14119 if ac_fn_c_try_compile "$LINENO"; then :
14120 ac_cv_sys_large_files=1; break
14121 fi
14122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14123 ac_cv_sys_large_files=unknown
14124 break
14125 done
14126 fi
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14128 $as_echo "$ac_cv_sys_large_files" >&6; }
14129 case $ac_cv_sys_large_files in #(
14130 no | unknown) ;;
14131 *)
14132 cat >>confdefs.h <<_ACEOF
14133 #define _LARGE_FILES $ac_cv_sys_large_files
14134 _ACEOF
14135 ;;
14136 esac
14137 rm -rf conftest*
14138 fi
14139
14140
14141 fi
14142
14143 : ${CONFIG_LT=./config.lt}
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
14145 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
14146 as_write_fail=0
14147 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
14148 #! $SHELL
14149 # Generated by $as_me.
14150 # Run this file to recreate a libtool stub with the current configuration.
14151 SHELL=\${CONFIG_SHELL-$SHELL}
14152 export SHELL
14153 _ASEOF
14154 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
14155 ## -------------------- ##
14156 ## M4sh Initialization. ##
14157 ## -------------------- ##
14158
14159 # Be more Bourne compatible
14160 DUALCASE=1; export DUALCASE # for MKS sh
14161 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14162 emulate sh
14163 NULLCMD=:
14164 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14165 # is contrary to our usage. Disable this feature.
14166 alias -g '${1+"$@"}'='"$@"'
14167 setopt NO_GLOB_SUBST
14168 else
14169 case `(set -o) 2>/dev/null` in #(
14170 *posix*) :
14171 set -o posix ;; #(
14172 *) :
14173 ;;
14174 esac
14175 fi
14176
14177
14178 as_nl='
14179 '
14180 export as_nl
14181 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14182 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14183 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14184 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14185 # Prefer a ksh shell builtin over an external printf program on Solaris,
14186 # but without wasting forks for bash or zsh.
14187 if test -z "$BASH_VERSION$ZSH_VERSION" \
14188 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14189 as_echo='print -r --'
14190 as_echo_n='print -rn --'
14191 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14192 as_echo='printf %s\n'
14193 as_echo_n='printf %s'
14194 else
14195 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14196 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14197 as_echo_n='/usr/ucb/echo -n'
14198 else
14199 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14200 as_echo_n_body='eval
14201 arg=$1;
14202 case $arg in #(
14203 *"$as_nl"*)
14204 expr "X$arg" : "X\\(.*\\)$as_nl";
14205 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14206 esac;
14207 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14208 '
14209 export as_echo_n_body
14210 as_echo_n='sh -c $as_echo_n_body as_echo'
14211 fi
14212 export as_echo_body
14213 as_echo='sh -c $as_echo_body as_echo'
14214 fi
14215
14216 # The user is always right.
14217 if test "${PATH_SEPARATOR+set}" != set; then
14218 PATH_SEPARATOR=:
14219 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14220 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14221 PATH_SEPARATOR=';'
14222 }
14223 fi
14224
14225
14226 # IFS
14227 # We need space, tab and new line, in precisely that order. Quoting is
14228 # there to prevent editors from complaining about space-tab.
14229 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14230 # splitting by setting IFS to empty value.)
14231 IFS=" "" $as_nl"
14232
14233 # Find who we are. Look in the path if we contain no directory separator.
14234 as_myself=
14235 case $0 in #((
14236 *[\\/]* ) as_myself=$0 ;;
14237 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14238 for as_dir in $PATH
14239 do
14240 IFS=$as_save_IFS
14241 test -z "$as_dir" && as_dir=.
14242 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14243 done
14244 IFS=$as_save_IFS
14245
14246 ;;
14247 esac
14248 # We did not find ourselves, most probably we were run as `sh COMMAND'
14249 # in which case we are not to be found in the path.
14250 if test "x$as_myself" = x; then
14251 as_myself=$0
14252 fi
14253 if test ! -f "$as_myself"; then
14254 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14255 exit 1
14256 fi
14257
14258 # Unset variables that we do not need and which cause bugs (e.g. in
14259 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14260 # suppresses any "Segmentation fault" message there. '((' could
14261 # trigger a bug in pdksh 5.2.14.
14262 for as_var in BASH_ENV ENV MAIL MAILPATH
14263 do eval test x\${$as_var+set} = xset \
14264 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14265 done
14266 PS1='$ '
14267 PS2='> '
14268 PS4='+ '
14269
14270 # NLS nuisances.
14271 LC_ALL=C
14272 export LC_ALL
14273 LANGUAGE=C
14274 export LANGUAGE
14275
14276 # CDPATH.
14277 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14278
14279
14280 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14281 # ----------------------------------------
14282 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14283 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14284 # script with STATUS, using 1 if that was 0.
14285 as_fn_error ()
14286 {
14287 as_status=$1; test $as_status -eq 0 && as_status=1
14288 if test "$4"; then
14289 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14290 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14291 fi
14292 $as_echo "$as_me: error: $2" >&2
14293 as_fn_exit $as_status
14294 } # as_fn_error
14295
14296
14297 # as_fn_set_status STATUS
14298 # -----------------------
14299 # Set $? to STATUS, without forking.
14300 as_fn_set_status ()
14301 {
14302 return $1
14303 } # as_fn_set_status
14304
14305 # as_fn_exit STATUS
14306 # -----------------
14307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14308 as_fn_exit ()
14309 {
14310 set +e
14311 as_fn_set_status $1
14312 exit $1
14313 } # as_fn_exit
14314
14315 # as_fn_unset VAR
14316 # ---------------
14317 # Portably unset VAR.
14318 as_fn_unset ()
14319 {
14320 { eval $1=; unset $1;}
14321 }
14322 as_unset=as_fn_unset
14323 # as_fn_append VAR VALUE
14324 # ----------------------
14325 # Append the text in VALUE to the end of the definition contained in VAR. Take
14326 # advantage of any shell optimizations that allow amortized linear growth over
14327 # repeated appends, instead of the typical quadratic growth present in naive
14328 # implementations.
14329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14330 eval 'as_fn_append ()
14331 {
14332 eval $1+=\$2
14333 }'
14334 else
14335 as_fn_append ()
14336 {
14337 eval $1=\$$1\$2
14338 }
14339 fi # as_fn_append
14340
14341 # as_fn_arith ARG...
14342 # ------------------
14343 # Perform arithmetic evaluation on the ARGs, and store the result in the
14344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14345 # must be portable across $(()) and expr.
14346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14347 eval 'as_fn_arith ()
14348 {
14349 as_val=$(( $* ))
14350 }'
14351 else
14352 as_fn_arith ()
14353 {
14354 as_val=`expr "$@" || test $? -eq 1`
14355 }
14356 fi # as_fn_arith
14357
14358
14359 if expr a : '\(a\)' >/dev/null 2>&1 &&
14360 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14361 as_expr=expr
14362 else
14363 as_expr=false
14364 fi
14365
14366 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14367 as_basename=basename
14368 else
14369 as_basename=false
14370 fi
14371
14372 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14373 as_dirname=dirname
14374 else
14375 as_dirname=false
14376 fi
14377
14378 as_me=`$as_basename -- "$0" ||
14379 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14380 X"$0" : 'X\(//\)$' \| \
14381 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14382 $as_echo X/"$0" |
14383 sed '/^.*\/\([^/][^/]*\)\/*$/{
14384 s//\1/
14385 q
14386 }
14387 /^X\/\(\/\/\)$/{
14388 s//\1/
14389 q
14390 }
14391 /^X\/\(\/\).*/{
14392 s//\1/
14393 q
14394 }
14395 s/.*/./; q'`
14396
14397 # Avoid depending upon Character Ranges.
14398 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14399 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14400 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14401 as_cr_digits='0123456789'
14402 as_cr_alnum=$as_cr_Letters$as_cr_digits
14403
14404 ECHO_C= ECHO_N= ECHO_T=
14405 case `echo -n x` in #(((((
14406 -n*)
14407 case `echo 'xy\c'` in
14408 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14409 xy) ECHO_C='\c';;
14410 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14411 ECHO_T=' ';;
14412 esac;;
14413 *)
14414 ECHO_N='-n';;
14415 esac
14416
14417 rm -f conf$$ conf$$.exe conf$$.file
14418 if test -d conf$$.dir; then
14419 rm -f conf$$.dir/conf$$.file
14420 else
14421 rm -f conf$$.dir
14422 mkdir conf$$.dir 2>/dev/null
14423 fi
14424 if (echo >conf$$.file) 2>/dev/null; then
14425 if ln -s conf$$.file conf$$ 2>/dev/null; then
14426 as_ln_s='ln -s'
14427 # ... but there are two gotchas:
14428 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14429 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14430 # In both cases, we have to default to `cp -pR'.
14431 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14432 as_ln_s='cp -pR'
14433 elif ln conf$$.file conf$$ 2>/dev/null; then
14434 as_ln_s=ln
14435 else
14436 as_ln_s='cp -pR'
14437 fi
14438 else
14439 as_ln_s='cp -pR'
14440 fi
14441 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14442 rmdir conf$$.dir 2>/dev/null
14443
14444
14445 # as_fn_mkdir_p
14446 # -------------
14447 # Create "$as_dir" as a directory, including parents if necessary.
14448 as_fn_mkdir_p ()
14449 {
14450
14451 case $as_dir in #(
14452 -*) as_dir=./$as_dir;;
14453 esac
14454 test -d "$as_dir" || eval $as_mkdir_p || {
14455 as_dirs=
14456 while :; do
14457 case $as_dir in #(
14458 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14459 *) as_qdir=$as_dir;;
14460 esac
14461 as_dirs="'$as_qdir' $as_dirs"
14462 as_dir=`$as_dirname -- "$as_dir" ||
14463 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14464 X"$as_dir" : 'X\(//\)[^/]' \| \
14465 X"$as_dir" : 'X\(//\)$' \| \
14466 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14467 $as_echo X"$as_dir" |
14468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14469 s//\1/
14470 q
14471 }
14472 /^X\(\/\/\)[^/].*/{
14473 s//\1/
14474 q
14475 }
14476 /^X\(\/\/\)$/{
14477 s//\1/
14478 q
14479 }
14480 /^X\(\/\).*/{
14481 s//\1/
14482 q
14483 }
14484 s/.*/./; q'`
14485 test -d "$as_dir" && break
14486 done
14487 test -z "$as_dirs" || eval "mkdir $as_dirs"
14488 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14489
14490
14491 } # as_fn_mkdir_p
14492 if mkdir -p . 2>/dev/null; then
14493 as_mkdir_p='mkdir -p "$as_dir"'
14494 else
14495 test -d ./-p && rmdir ./-p
14496 as_mkdir_p=false
14497 fi
14498
14499
14500 # as_fn_executable_p FILE
14501 # -----------------------
14502 # Test if FILE is an executable regular file.
14503 as_fn_executable_p ()
14504 {
14505 test -f "$1" && test -x "$1"
14506 } # as_fn_executable_p
14507 as_test_x='test -x'
14508 as_executable_p=as_fn_executable_p
14509
14510 # Sed expression to map a string onto a valid CPP name.
14511 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14512
14513 # Sed expression to map a string onto a valid variable name.
14514 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14515
14516
14517 exec 6>&1
14518 ## --------------------------------- ##
14519 ## Main body of "$CONFIG_LT" script. ##
14520 ## --------------------------------- ##
14521 _ASEOF
14522 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
14523
14524 cat >>"$CONFIG_LT" <<\_LTEOF
14525 lt_cl_silent=false
14526 exec 5>>config.log
14527 {
14528 echo
14529 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14530 ## Running $as_me. ##
14531 _ASBOX
14532 } >&5
14533
14534 lt_cl_help="\
14535 \`$as_me' creates a local libtool stub from the current configuration,
14536 for use in further configure time tests before the real libtool is
14537 generated.
14538
14539 Usage: $0 [OPTIONS]
14540
14541 -h, --help print this help, then exit
14542 -V, --version print version number, then exit
14543 -q, --quiet do not print progress messages
14544 -d, --debug don't remove temporary files
14545
14546 Report bugs to <[email protected]>."
14547
14548 lt_cl_version="\
14549 libctf config.lt 1.2.0
14550 configured by $0, generated by GNU Autoconf 2.69.
14551
14552 Copyright (C) 2009 Free Software Foundation, Inc.
14553 This config.lt script is free software; the Free Software Foundation
14554 gives unlimited permision to copy, distribute and modify it."
14555
14556 while test $# != 0
14557 do
14558 case $1 in
14559 --version | --v* | -V )
14560 echo "$lt_cl_version"; exit 0 ;;
14561 --help | --h* | -h )
14562 echo "$lt_cl_help"; exit 0 ;;
14563 --debug | --d* | -d )
14564 debug=: ;;
14565 --quiet | --q* | --silent | --s* | -q )
14566 lt_cl_silent=: ;;
14567
14568 -*) as_fn_error $? "unrecognized option: $1
14569 Try \`$0 --help' for more information." "$LINENO" 5 ;;
14570
14571 *) as_fn_error $? "unrecognized argument: $1
14572 Try \`$0 --help' for more information." "$LINENO" 5 ;;
14573 esac
14574 shift
14575 done
14576
14577 if $lt_cl_silent; then
14578 exec 6>/dev/null
14579 fi
14580 _LTEOF
14581
14582 cat >>"$CONFIG_LT" <<_LTEOF
14583
14584
14585 # The HP-UX ksh and POSIX shell print the target directory to stdout
14586 # if CDPATH is set.
14587 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14588
14589 sed_quote_subst='$sed_quote_subst'
14590 double_quote_subst='$double_quote_subst'
14591 delay_variable_subst='$delay_variable_subst'
14592 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14593 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14594 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14595 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14596 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14597 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14598 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14599 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14600 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14601 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14602 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14603 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14604 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14605 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14606 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14607 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14608 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14609 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14610 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14611 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14612 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14613 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14614 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14615 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14616 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14617 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14618 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14619 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14620 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14621 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14622 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14623 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14624 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14625 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14626 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14627 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14628 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14629 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14630 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14631 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14632 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14633 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14634 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14635 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14636 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14637 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14638 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14639 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14640 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"`'
14641 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14642 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14643 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14644 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14645 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14646 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14647 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14648 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14649 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14650 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14651 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14652 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14653 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14654 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14655 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14656 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14657 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14658 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14659 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14660 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14661 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14662 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14663 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14664 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14665 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14666 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14667 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14668 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14669 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14670 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14671 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14672 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14673 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14674 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14675 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14676 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14677 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14678 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14679 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14680 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14681 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14682 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14683 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14684 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14685 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14686 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14687 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14688 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14689 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14690 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14691 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14692 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14693 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14694 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14695 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14696 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14697 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14698 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14699 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14700 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14701 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14702 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14703 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14704 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14705 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14706 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14707 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14708 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14709 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14710 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14711 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14712
14713 LTCC='$LTCC'
14714 LTCFLAGS='$LTCFLAGS'
14715 compiler='$compiler_DEFAULT'
14716
14717 # A function that is used when there is no print builtin or printf.
14718 func_fallback_echo ()
14719 {
14720 eval 'cat <<_LTECHO_EOF
14721 \$1
14722 _LTECHO_EOF'
14723 }
14724
14725 # Quote evaled strings.
14726 for var in SHELL \
14727 ECHO \
14728 SED \
14729 GREP \
14730 EGREP \
14731 FGREP \
14732 LD \
14733 NM \
14734 LN_S \
14735 lt_SP2NL \
14736 lt_NL2SP \
14737 reload_flag \
14738 OBJDUMP \
14739 deplibs_check_method \
14740 file_magic_cmd \
14741 AR \
14742 AR_FLAGS \
14743 STRIP \
14744 RANLIB \
14745 CC \
14746 CFLAGS \
14747 compiler \
14748 lt_cv_sys_global_symbol_pipe \
14749 lt_cv_sys_global_symbol_to_cdecl \
14750 lt_cv_sys_global_symbol_to_c_name_address \
14751 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14752 lt_prog_compiler_no_builtin_flag \
14753 lt_prog_compiler_wl \
14754 lt_prog_compiler_pic \
14755 lt_prog_compiler_static \
14756 lt_cv_prog_compiler_c_o \
14757 need_locks \
14758 DSYMUTIL \
14759 NMEDIT \
14760 LIPO \
14761 OTOOL \
14762 OTOOL64 \
14763 shrext_cmds \
14764 export_dynamic_flag_spec \
14765 whole_archive_flag_spec \
14766 compiler_needs_object \
14767 with_gnu_ld \
14768 allow_undefined_flag \
14769 no_undefined_flag \
14770 hardcode_libdir_flag_spec \
14771 hardcode_libdir_flag_spec_ld \
14772 hardcode_libdir_separator \
14773 fix_srcfile_path \
14774 exclude_expsyms \
14775 include_expsyms \
14776 file_list_spec \
14777 variables_saved_for_relink \
14778 libname_spec \
14779 library_names_spec \
14780 soname_spec \
14781 install_override_mode \
14782 finish_eval \
14783 old_striplib \
14784 striplib; do
14785 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14786 *[\\\\\\\`\\"\\\$]*)
14787 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14788 ;;
14789 *)
14790 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14791 ;;
14792 esac
14793 done
14794
14795 # Double-quote double-evaled strings.
14796 for var in reload_cmds \
14797 old_postinstall_cmds \
14798 old_postuninstall_cmds \
14799 old_archive_cmds \
14800 extract_expsyms_cmds \
14801 old_archive_from_new_cmds \
14802 old_archive_from_expsyms_cmds \
14803 archive_cmds \
14804 archive_expsym_cmds \
14805 module_cmds \
14806 module_expsym_cmds \
14807 export_symbols_cmds \
14808 prelink_cmds \
14809 postinstall_cmds \
14810 postuninstall_cmds \
14811 finish_cmds \
14812 sys_lib_search_path_spec \
14813 sys_lib_dlsearch_path_spec; do
14814 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14815 *[\\\\\\\`\\"\\\$]*)
14816 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14817 ;;
14818 *)
14819 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14820 ;;
14821 esac
14822 done
14823
14824 ac_aux_dir='$ac_aux_dir'
14825 xsi_shell='$xsi_shell'
14826 lt_shell_append='$lt_shell_append'
14827
14828 # See if we are running on zsh, and set the options which allow our
14829 # commands through without removal of \ escapes INIT.
14830 if test -n "\${ZSH_VERSION+set}" ; then
14831 setopt NO_GLOB_SUBST
14832 fi
14833
14834
14835 PACKAGE='$PACKAGE'
14836 VERSION='$VERSION'
14837 TIMESTAMP='$TIMESTAMP'
14838 RM='$RM'
14839 ofile='$ofile'
14840
14841
14842
14843 _LTEOF
14844
14845 cat >>"$CONFIG_LT" <<\_LTEOF
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
14847 $as_echo "$as_me: creating $ofile" >&6;}
14848
14849
14850 # See if we are running on zsh, and set the options which allow our
14851 # commands through without removal of \ escapes.
14852 if test -n "${ZSH_VERSION+set}" ; then
14853 setopt NO_GLOB_SUBST
14854 fi
14855
14856 cfgfile="${ofile}T"
14857 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14858 $RM "$cfgfile"
14859
14860 cat <<_LT_EOF >> "$cfgfile"
14861 #! $SHELL
14862
14863 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14864 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14865 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14866 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14867 #
14868 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14869 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14870 # Written by Gordon Matzigkeit, 1996
14871 #
14872 # This file is part of GNU Libtool.
14873 #
14874 # GNU Libtool is free software; you can redistribute it and/or
14875 # modify it under the terms of the GNU General Public License as
14876 # published by the Free Software Foundation; either version 2 of
14877 # the License, or (at your option) any later version.
14878 #
14879 # As a special exception to the GNU General Public License,
14880 # if you distribute this file as part of a program or library that
14881 # is built using GNU Libtool, you may include this file under the
14882 # same distribution terms that you use for the rest of that program.
14883 #
14884 # GNU Libtool is distributed in the hope that it will be useful,
14885 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14886 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14887 # GNU General Public License for more details.
14888 #
14889 # You should have received a copy of the GNU General Public License
14890 # along with GNU Libtool; see the file COPYING. If not, a copy
14891 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14892 # obtained by writing to the Free Software Foundation, Inc.,
14893 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14894
14895
14896 # The names of the tagged configurations supported by this script.
14897 available_tags=""
14898
14899 # ### BEGIN LIBTOOL CONFIG
14900
14901 # Whether or not to build shared libraries.
14902 build_libtool_libs=$enable_shared
14903
14904 # Which release of libtool.m4 was used?
14905 macro_version=$macro_version
14906 macro_revision=$macro_revision
14907
14908 # Whether or not to build static libraries.
14909 build_old_libs=$enable_static
14910
14911 # What type of objects to build.
14912 pic_mode=$pic_mode
14913
14914 # Whether or not to optimize for fast installation.
14915 fast_install=$enable_fast_install
14916
14917 # Shell to use when invoking shell scripts.
14918 SHELL=$lt_SHELL
14919
14920 # An echo program that protects backslashes.
14921 ECHO=$lt_ECHO
14922
14923 # The host system.
14924 host_alias=$host_alias
14925 host=$host
14926 host_os=$host_os
14927
14928 # The build system.
14929 build_alias=$build_alias
14930 build=$build
14931 build_os=$build_os
14932
14933 # A sed program that does not truncate output.
14934 SED=$lt_SED
14935
14936 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14937 Xsed="\$SED -e 1s/^X//"
14938
14939 # A grep program that handles long lines.
14940 GREP=$lt_GREP
14941
14942 # An ERE matcher.
14943 EGREP=$lt_EGREP
14944
14945 # A literal string matcher.
14946 FGREP=$lt_FGREP
14947
14948 # A BSD- or MS-compatible name lister.
14949 NM=$lt_NM
14950
14951 # Whether we need soft or hard links.
14952 LN_S=$lt_LN_S
14953
14954 # What is the maximum length of a command?
14955 max_cmd_len=$max_cmd_len
14956
14957 # Object file suffix (normally "o").
14958 objext=$ac_objext
14959
14960 # Executable file suffix (normally "").
14961 exeext=$exeext
14962
14963 # whether the shell understands "unset".
14964 lt_unset=$lt_unset
14965
14966 # turn spaces into newlines.
14967 SP2NL=$lt_lt_SP2NL
14968
14969 # turn newlines into spaces.
14970 NL2SP=$lt_lt_NL2SP
14971
14972 # An object symbol dumper.
14973 OBJDUMP=$lt_OBJDUMP
14974
14975 # Method to check whether dependent libraries are shared objects.
14976 deplibs_check_method=$lt_deplibs_check_method
14977
14978 # Command to use when deplibs_check_method == "file_magic".
14979 file_magic_cmd=$lt_file_magic_cmd
14980
14981 # The archiver.
14982 AR=$lt_AR
14983 AR_FLAGS=$lt_AR_FLAGS
14984
14985 # A symbol stripping program.
14986 STRIP=$lt_STRIP
14987
14988 # Commands used to install an old-style archive.
14989 RANLIB=$lt_RANLIB
14990 old_postinstall_cmds=$lt_old_postinstall_cmds
14991 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14992
14993 # Whether to use a lock for old archive extraction.
14994 lock_old_archive_extraction=$lock_old_archive_extraction
14995
14996 # A C compiler.
14997 LTCC=$lt_CC
14998
14999 # LTCC compiler flags.
15000 LTCFLAGS=$lt_CFLAGS
15001
15002 # Take the output of nm and produce a listing of raw symbols and C names.
15003 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15004
15005 # Transform the output of nm in a proper C declaration.
15006 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15007
15008 # Transform the output of nm in a C name address pair.
15009 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15010
15011 # Transform the output of nm in a C name address pair when lib prefix is needed.
15012 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15013
15014 # The name of the directory that contains temporary libtool files.
15015 objdir=$objdir
15016
15017 # Used to examine libraries when file_magic_cmd begins with "file".
15018 MAGIC_CMD=$MAGIC_CMD
15019
15020 # Must we lock files when doing compilation?
15021 need_locks=$lt_need_locks
15022
15023 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15024 DSYMUTIL=$lt_DSYMUTIL
15025
15026 # Tool to change global to local symbols on Mac OS X.
15027 NMEDIT=$lt_NMEDIT
15028
15029 # Tool to manipulate fat objects and archives on Mac OS X.
15030 LIPO=$lt_LIPO
15031
15032 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15033 OTOOL=$lt_OTOOL
15034
15035 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15036 OTOOL64=$lt_OTOOL64
15037
15038 # Old archive suffix (normally "a").
15039 libext=$libext
15040
15041 # Shared library suffix (normally ".so").
15042 shrext_cmds=$lt_shrext_cmds
15043
15044 # The commands to extract the exported symbol list from a shared archive.
15045 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15046
15047 # Variables whose values should be saved in libtool wrapper scripts and
15048 # restored at link time.
15049 variables_saved_for_relink=$lt_variables_saved_for_relink
15050
15051 # Do we need the "lib" prefix for modules?
15052 need_lib_prefix=$need_lib_prefix
15053
15054 # Do we need a version for libraries?
15055 need_version=$need_version
15056
15057 # Library versioning type.
15058 version_type=$version_type
15059
15060 # Shared library runtime path variable.
15061 runpath_var=$runpath_var
15062
15063 # Shared library path variable.
15064 shlibpath_var=$shlibpath_var
15065
15066 # Is shlibpath searched before the hard-coded library search path?
15067 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15068
15069 # Format of library name prefix.
15070 libname_spec=$lt_libname_spec
15071
15072 # List of archive names. First name is the real one, the rest are links.
15073 # The last name is the one that the linker finds with -lNAME
15074 library_names_spec=$lt_library_names_spec
15075
15076 # The coded name of the library, if different from the real name.
15077 soname_spec=$lt_soname_spec
15078
15079 # Permission mode override for installation of shared libraries.
15080 install_override_mode=$lt_install_override_mode
15081
15082 # Command to use after installation of a shared archive.
15083 postinstall_cmds=$lt_postinstall_cmds
15084
15085 # Command to use after uninstallation of a shared archive.
15086 postuninstall_cmds=$lt_postuninstall_cmds
15087
15088 # Commands used to finish a libtool library installation in a directory.
15089 finish_cmds=$lt_finish_cmds
15090
15091 # As "finish_cmds", except a single script fragment to be evaled but
15092 # not shown.
15093 finish_eval=$lt_finish_eval
15094
15095 # Whether we should hardcode library paths into libraries.
15096 hardcode_into_libs=$hardcode_into_libs
15097
15098 # Compile-time system search path for libraries.
15099 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15100
15101 # Run-time system search path for libraries.
15102 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15103
15104 # Whether dlopen is supported.
15105 dlopen_support=$enable_dlopen
15106
15107 # Whether dlopen of programs is supported.
15108 dlopen_self=$enable_dlopen_self
15109
15110 # Whether dlopen of statically linked programs is supported.
15111 dlopen_self_static=$enable_dlopen_self_static
15112
15113 # Commands to strip libraries.
15114 old_striplib=$lt_old_striplib
15115 striplib=$lt_striplib
15116
15117
15118 # The linker used to build libraries.
15119 LD=$lt_LD
15120
15121 # How to create reloadable object files.
15122 reload_flag=$lt_reload_flag
15123 reload_cmds=$lt_reload_cmds
15124
15125 # Commands used to build an old-style archive.
15126 old_archive_cmds=$lt_old_archive_cmds
15127
15128 # A language specific compiler.
15129 CC=$lt_compiler
15130
15131 # Is the compiler the GNU compiler?
15132 with_gcc=$GCC
15133
15134 # Compiler flag to turn off builtin functions.
15135 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15136
15137 # How to pass a linker flag through the compiler.
15138 wl=$lt_lt_prog_compiler_wl
15139
15140 # Additional compiler flags for building library objects.
15141 pic_flag=$lt_lt_prog_compiler_pic
15142
15143 # Compiler flag to prevent dynamic linking.
15144 link_static_flag=$lt_lt_prog_compiler_static
15145
15146 # Does compiler simultaneously support -c and -o options?
15147 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15148
15149 # Whether or not to add -lc for building shared libraries.
15150 build_libtool_need_lc=$archive_cmds_need_lc
15151
15152 # Whether or not to disallow shared libs when runtime libs are static.
15153 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15154
15155 # Compiler flag to allow reflexive dlopens.
15156 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15157
15158 # Compiler flag to generate shared objects directly from archives.
15159 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15160
15161 # Whether the compiler copes with passing no objects directly.
15162 compiler_needs_object=$lt_compiler_needs_object
15163
15164 # Create an old-style archive from a shared archive.
15165 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15166
15167 # Create a temporary old-style archive to link instead of a shared archive.
15168 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15169
15170 # Commands used to build a shared archive.
15171 archive_cmds=$lt_archive_cmds
15172 archive_expsym_cmds=$lt_archive_expsym_cmds
15173
15174 # Commands used to build a loadable module if different from building
15175 # a shared archive.
15176 module_cmds=$lt_module_cmds
15177 module_expsym_cmds=$lt_module_expsym_cmds
15178
15179 # Whether we are building with GNU ld or not.
15180 with_gnu_ld=$lt_with_gnu_ld
15181
15182 # Flag that allows shared libraries with undefined symbols to be built.
15183 allow_undefined_flag=$lt_allow_undefined_flag
15184
15185 # Flag that enforces no undefined symbols.
15186 no_undefined_flag=$lt_no_undefined_flag
15187
15188 # Flag to hardcode \$libdir into a binary during linking.
15189 # This must work even if \$libdir does not exist
15190 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15191
15192 # If ld is used when linking, flag to hardcode \$libdir into a binary
15193 # during linking. This must work even if \$libdir does not exist.
15194 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15195
15196 # Whether we need a single "-rpath" flag with a separated argument.
15197 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15198
15199 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15200 # DIR into the resulting binary.
15201 hardcode_direct=$hardcode_direct
15202
15203 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15204 # DIR into the resulting binary and the resulting library dependency is
15205 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15206 # library is relocated.
15207 hardcode_direct_absolute=$hardcode_direct_absolute
15208
15209 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15210 # into the resulting binary.
15211 hardcode_minus_L=$hardcode_minus_L
15212
15213 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15214 # into the resulting binary.
15215 hardcode_shlibpath_var=$hardcode_shlibpath_var
15216
15217 # Set to "yes" if building a shared library automatically hardcodes DIR
15218 # into the library and all subsequent libraries and executables linked
15219 # against it.
15220 hardcode_automatic=$hardcode_automatic
15221
15222 # Set to yes if linker adds runtime paths of dependent libraries
15223 # to runtime path list.
15224 inherit_rpath=$inherit_rpath
15225
15226 # Whether libtool must link a program against all its dependency libraries.
15227 link_all_deplibs=$link_all_deplibs
15228
15229 # Fix the shell variable \$srcfile for the compiler.
15230 fix_srcfile_path=$lt_fix_srcfile_path
15231
15232 # Set to "yes" if exported symbols are required.
15233 always_export_symbols=$always_export_symbols
15234
15235 # The commands to list exported symbols.
15236 export_symbols_cmds=$lt_export_symbols_cmds
15237
15238 # Symbols that should not be listed in the preloaded symbols.
15239 exclude_expsyms=$lt_exclude_expsyms
15240
15241 # Symbols that must always be exported.
15242 include_expsyms=$lt_include_expsyms
15243
15244 # Commands necessary for linking programs (against libraries) with templates.
15245 prelink_cmds=$lt_prelink_cmds
15246
15247 # Specify filename containing input files.
15248 file_list_spec=$lt_file_list_spec
15249
15250 # How to hardcode a shared library path into an executable.
15251 hardcode_action=$hardcode_action
15252
15253 # ### END LIBTOOL CONFIG
15254
15255 _LT_EOF
15256
15257 case $host_os in
15258 aix3*)
15259 cat <<\_LT_EOF >> "$cfgfile"
15260 # AIX sometimes has problems with the GCC collect2 program. For some
15261 # reason, if we set the COLLECT_NAMES environment variable, the problems
15262 # vanish in a puff of smoke.
15263 if test "X${COLLECT_NAMES+set}" != Xset; then
15264 COLLECT_NAMES=
15265 export COLLECT_NAMES
15266 fi
15267 _LT_EOF
15268 ;;
15269 esac
15270
15271
15272 ltmain="$ac_aux_dir/ltmain.sh"
15273
15274
15275 # We use sed instead of cat because bash on DJGPP gets confused if
15276 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15277 # text mode, it properly converts lines to CR/LF. This bash problem
15278 # is reportedly fixed, but why not run on old versions too?
15279 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15280 || (rm -f "$cfgfile"; exit 1)
15281
15282 case $xsi_shell in
15283 yes)
15284 cat << \_LT_EOF >> "$cfgfile"
15285
15286 # func_dirname file append nondir_replacement
15287 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15288 # otherwise set result to NONDIR_REPLACEMENT.
15289 func_dirname ()
15290 {
15291 case ${1} in
15292 */*) func_dirname_result="${1%/*}${2}" ;;
15293 * ) func_dirname_result="${3}" ;;
15294 esac
15295 }
15296
15297 # func_basename file
15298 func_basename ()
15299 {
15300 func_basename_result="${1##*/}"
15301 }
15302
15303 # func_dirname_and_basename file append nondir_replacement
15304 # perform func_basename and func_dirname in a single function
15305 # call:
15306 # dirname: Compute the dirname of FILE. If nonempty,
15307 # add APPEND to the result, otherwise set result
15308 # to NONDIR_REPLACEMENT.
15309 # value returned in "$func_dirname_result"
15310 # basename: Compute filename of FILE.
15311 # value retuned in "$func_basename_result"
15312 # Implementation must be kept synchronized with func_dirname
15313 # and func_basename. For efficiency, we do not delegate to
15314 # those functions but instead duplicate the functionality here.
15315 func_dirname_and_basename ()
15316 {
15317 case ${1} in
15318 */*) func_dirname_result="${1%/*}${2}" ;;
15319 * ) func_dirname_result="${3}" ;;
15320 esac
15321 func_basename_result="${1##*/}"
15322 }
15323
15324 # func_stripname prefix suffix name
15325 # strip PREFIX and SUFFIX off of NAME.
15326 # PREFIX and SUFFIX must not contain globbing or regex special
15327 # characters, hashes, percent signs, but SUFFIX may contain a leading
15328 # dot (in which case that matches only a dot).
15329 func_stripname ()
15330 {
15331 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15332 # positional parameters, so assign one to ordinary parameter first.
15333 func_stripname_result=${3}
15334 func_stripname_result=${func_stripname_result#"${1}"}
15335 func_stripname_result=${func_stripname_result%"${2}"}
15336 }
15337
15338 # func_opt_split
15339 func_opt_split ()
15340 {
15341 func_opt_split_opt=${1%%=*}
15342 func_opt_split_arg=${1#*=}
15343 }
15344
15345 # func_lo2o object
15346 func_lo2o ()
15347 {
15348 case ${1} in
15349 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15350 *) func_lo2o_result=${1} ;;
15351 esac
15352 }
15353
15354 # func_xform libobj-or-source
15355 func_xform ()
15356 {
15357 func_xform_result=${1%.*}.lo
15358 }
15359
15360 # func_arith arithmetic-term...
15361 func_arith ()
15362 {
15363 func_arith_result=$(( $* ))
15364 }
15365
15366 # func_len string
15367 # STRING may not start with a hyphen.
15368 func_len ()
15369 {
15370 func_len_result=${#1}
15371 }
15372
15373 _LT_EOF
15374 ;;
15375 *) # Bourne compatible functions.
15376 cat << \_LT_EOF >> "$cfgfile"
15377
15378 # func_dirname file append nondir_replacement
15379 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15380 # otherwise set result to NONDIR_REPLACEMENT.
15381 func_dirname ()
15382 {
15383 # Extract subdirectory from the argument.
15384 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15385 if test "X$func_dirname_result" = "X${1}"; then
15386 func_dirname_result="${3}"
15387 else
15388 func_dirname_result="$func_dirname_result${2}"
15389 fi
15390 }
15391
15392 # func_basename file
15393 func_basename ()
15394 {
15395 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15396 }
15397
15398
15399 # func_stripname prefix suffix name
15400 # strip PREFIX and SUFFIX off of NAME.
15401 # PREFIX and SUFFIX must not contain globbing or regex special
15402 # characters, hashes, percent signs, but SUFFIX may contain a leading
15403 # dot (in which case that matches only a dot).
15404 # func_strip_suffix prefix name
15405 func_stripname ()
15406 {
15407 case ${2} in
15408 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15409 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15410 esac
15411 }
15412
15413 # sed scripts:
15414 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15415 my_sed_long_arg='1s/^-[^=]*=//'
15416
15417 # func_opt_split
15418 func_opt_split ()
15419 {
15420 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15421 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15422 }
15423
15424 # func_lo2o object
15425 func_lo2o ()
15426 {
15427 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15428 }
15429
15430 # func_xform libobj-or-source
15431 func_xform ()
15432 {
15433 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15434 }
15435
15436 # func_arith arithmetic-term...
15437 func_arith ()
15438 {
15439 func_arith_result=`expr "$@"`
15440 }
15441
15442 # func_len string
15443 # STRING may not start with a hyphen.
15444 func_len ()
15445 {
15446 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15447 }
15448
15449 _LT_EOF
15450 esac
15451
15452 case $lt_shell_append in
15453 yes)
15454 cat << \_LT_EOF >> "$cfgfile"
15455
15456 # func_append var value
15457 # Append VALUE to the end of shell variable VAR.
15458 func_append ()
15459 {
15460 eval "$1+=\$2"
15461 }
15462 _LT_EOF
15463 ;;
15464 *)
15465 cat << \_LT_EOF >> "$cfgfile"
15466
15467 # func_append var value
15468 # Append VALUE to the end of shell variable VAR.
15469 func_append ()
15470 {
15471 eval "$1=\$$1\$2"
15472 }
15473
15474 _LT_EOF
15475 ;;
15476 esac
15477
15478
15479 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15480 || (rm -f "$cfgfile"; exit 1)
15481
15482 mv -f "$cfgfile" "$ofile" ||
15483 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15484 chmod +x "$ofile"
15485
15486
15487 as_fn_exit 0
15488 _LTEOF
15489 chmod +x "$CONFIG_LT"
15490
15491 # configure is writing to config.log, but config.lt does its own redirection,
15492 # appending to config.log, which fails on DOS, as config.log is still kept
15493 # open by configure. Here we exec the FD to /dev/null, effectively closing
15494 # config.log, so it can be properly (re)opened and appended to by config.lt.
15495 lt_cl_success=:
15496 test "$silent" = yes &&
15497 lt_config_lt_args="$lt_config_lt_args --quiet"
15498 exec 5>/dev/null
15499 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
15500 exec 5>>config.log
15501 $lt_cl_success || as_fn_exit 1
15502
15503
15504 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
15505 for ac_prog in aclocal
15506 do
15507 # Extract the first word of "$ac_prog", so it can be a program name with args.
15508 set dummy $ac_prog; ac_word=$2
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15510 $as_echo_n "checking for $ac_word... " >&6; }
15511 if ${ac_cv_prog_ACLOCAL+:} false; then :
15512 $as_echo_n "(cached) " >&6
15513 else
15514 if test -n "$ACLOCAL"; then
15515 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
15516 else
15517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15518 for as_dir in $PATH
15519 do
15520 IFS=$as_save_IFS
15521 test -z "$as_dir" && as_dir=.
15522 for ac_exec_ext in '' $ac_executable_extensions; do
15523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15524 ac_cv_prog_ACLOCAL="$ac_prog"
15525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15526 break 2
15527 fi
15528 done
15529 done
15530 IFS=$as_save_IFS
15531
15532 fi
15533 fi
15534 ACLOCAL=$ac_cv_prog_ACLOCAL
15535 if test -n "$ACLOCAL"; then
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
15537 $as_echo "$ACLOCAL" >&6; }
15538 else
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15540 $as_echo "no" >&6; }
15541 fi
15542
15543
15544 test -n "$ACLOCAL" && break
15545 done
15546 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
15547
15548 for ac_prog in autoconf
15549 do
15550 # Extract the first word of "$ac_prog", so it can be a program name with args.
15551 set dummy $ac_prog; ac_word=$2
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15553 $as_echo_n "checking for $ac_word... " >&6; }
15554 if ${ac_cv_prog_AUTOCONF+:} false; then :
15555 $as_echo_n "(cached) " >&6
15556 else
15557 if test -n "$AUTOCONF"; then
15558 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
15559 else
15560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15561 for as_dir in $PATH
15562 do
15563 IFS=$as_save_IFS
15564 test -z "$as_dir" && as_dir=.
15565 for ac_exec_ext in '' $ac_executable_extensions; do
15566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15567 ac_cv_prog_AUTOCONF="$ac_prog"
15568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15569 break 2
15570 fi
15571 done
15572 done
15573 IFS=$as_save_IFS
15574
15575 fi
15576 fi
15577 AUTOCONF=$ac_cv_prog_AUTOCONF
15578 if test -n "$AUTOCONF"; then
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
15580 $as_echo "$AUTOCONF" >&6; }
15581 else
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15583 $as_echo "no" >&6; }
15584 fi
15585
15586
15587 test -n "$AUTOCONF" && break
15588 done
15589 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
15590
15591 for ac_prog in autoheader
15592 do
15593 # Extract the first word of "$ac_prog", so it can be a program name with args.
15594 set dummy $ac_prog; ac_word=$2
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15596 $as_echo_n "checking for $ac_word... " >&6; }
15597 if ${ac_cv_prog_AUTOHEADER+:} false; then :
15598 $as_echo_n "(cached) " >&6
15599 else
15600 if test -n "$AUTOHEADER"; then
15601 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
15602 else
15603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15604 for as_dir in $PATH
15605 do
15606 IFS=$as_save_IFS
15607 test -z "$as_dir" && as_dir=.
15608 for ac_exec_ext in '' $ac_executable_extensions; do
15609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15610 ac_cv_prog_AUTOHEADER="$ac_prog"
15611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15612 break 2
15613 fi
15614 done
15615 done
15616 IFS=$as_save_IFS
15617
15618 fi
15619 fi
15620 AUTOHEADER=$ac_cv_prog_AUTOHEADER
15621 if test -n "$AUTOHEADER"; then
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
15623 $as_echo "$AUTOHEADER" >&6; }
15624 else
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15626 $as_echo "no" >&6; }
15627 fi
15628
15629
15630 test -n "$AUTOHEADER" && break
15631 done
15632 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
15633
15634
15635 # Figure out what compiler warnings we can enable.
15636 # See config/warnings.m4 for details.
15637
15638 ac_ext=c
15639 ac_cpp='$CPP $CPPFLAGS'
15640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15643
15644 warn=
15645 save_CFLAGS="$CFLAGS"
15646 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \
15647 -Wmissing-format-attribute; do
15648 # Do the check with the no- prefix removed since gcc silently
15649 # accepts any -Wno-* option on purpose
15650 case $real_option in
15651 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15652 *) option=$real_option ;;
15653 esac
15654 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15655
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15657 $as_echo_n "checking whether $CC supports $option... " >&6; }
15658 if eval \${$as_acx_Woption+:} false; then :
15659 $as_echo_n "(cached) " >&6
15660 else
15661 CFLAGS="$option"
15662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15663 /* end confdefs.h. */
15664
15665 int
15666 main ()
15667 {
15668
15669 ;
15670 return 0;
15671 }
15672 _ACEOF
15673 if ac_fn_c_try_compile "$LINENO"; then :
15674 eval "$as_acx_Woption=yes"
15675 else
15676 eval "$as_acx_Woption=no"
15677 fi
15678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15679
15680 fi
15681 eval ac_res=\$$as_acx_Woption
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15683 $as_echo "$ac_res" >&6; }
15684 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15685 warn="$warn${warn:+ }$real_option"
15686 fi
15687 done
15688 CFLAGS="$save_CFLAGS"
15689 ac_ext=c
15690 ac_cpp='$CPP $CPPFLAGS'
15691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15694
15695
15696 ac_ext=c
15697 ac_cpp='$CPP $CPPFLAGS'
15698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15701
15702 c_warn=
15703 save_CFLAGS="$CFLAGS"
15704 for real_option in -Wstrict-prototypes -Wmissing-prototypes \
15705 -Wold-style-definition; do
15706 # Do the check with the no- prefix removed since gcc silently
15707 # accepts any -Wno-* option on purpose
15708 case $real_option in
15709 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15710 *) option=$real_option ;;
15711 esac
15712 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15713
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15715 $as_echo_n "checking whether $CC supports $option... " >&6; }
15716 if eval \${$as_acx_Woption+:} false; then :
15717 $as_echo_n "(cached) " >&6
15718 else
15719 CFLAGS="$option"
15720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15721 /* end confdefs.h. */
15722
15723 int
15724 main ()
15725 {
15726
15727 ;
15728 return 0;
15729 }
15730 _ACEOF
15731 if ac_fn_c_try_compile "$LINENO"; then :
15732 eval "$as_acx_Woption=yes"
15733 else
15734 eval "$as_acx_Woption=no"
15735 fi
15736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15737
15738 fi
15739 eval ac_res=\$$as_acx_Woption
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15741 $as_echo "$ac_res" >&6; }
15742 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15743 c_warn="$c_warn${c_warn:+ }$real_option"
15744 fi
15745 done
15746 CFLAGS="$save_CFLAGS"
15747 ac_ext=c
15748 ac_cpp='$CPP $CPPFLAGS'
15749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15752
15753
15754 ac_ext=c
15755 ac_cpp='$CPP $CPPFLAGS'
15756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15759
15760 WARN_PEDANTIC=
15761 # Do the check with the no- prefix removed from the warning options
15762 # since gcc silently accepts any -Wno-* option on purpose
15763 if test "$GCC" = yes; then :
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
15765 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
15766 if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false; then :
15767 $as_echo_n "(cached) " >&6
15768 else
15769 save_CFLAGS="$CFLAGS"
15770 CFLAGS="-pedantic -Wlong-long"
15771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15772 /* end confdefs.h. */
15773
15774 int
15775 main ()
15776 {
15777
15778 ;
15779 return 0;
15780 }
15781 _ACEOF
15782 if ac_fn_c_try_compile "$LINENO"; then :
15783 acx_cv_prog_cc_pedantic__Wlong_long=yes
15784 else
15785 acx_cv_prog_cc_pedantic__Wlong_long=no
15786 fi
15787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15788 CFLAGS="$save_CFLAGS"
15789 fi
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
15791 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
15792 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
15793 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
15794 fi
15795
15796 fi
15797 ac_ext=c
15798 ac_cpp='$CPP $CPPFLAGS'
15799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15802
15803
15804
15805 # Only enable with --enable-werror-always until existing warnings are
15806 # corrected.
15807 ac_ext=c
15808 ac_cpp='$CPP $CPPFLAGS'
15809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15812
15813 WERROR=
15814 # Check whether --enable-werror-always was given.
15815 if test "${enable_werror_always+set}" = set; then :
15816 enableval=$enable_werror_always;
15817 else
15818 enable_werror_always=no
15819 fi
15820
15821 if test $enable_werror_always = yes; then :
15822 WERROR="$WERROR${WERROR:+ }-Werror"
15823 fi
15824
15825 ac_ext=c
15826 ac_cpp='$CPP $CPPFLAGS'
15827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15830
15831
15832
15833
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15835 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15836 # Check whether --enable-maintainer-mode was given.
15837 if test "${enable_maintainer_mode+set}" = set; then :
15838 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15839 else
15840 USE_MAINTAINER_MODE=no
15841 fi
15842
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15844 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15845 if test $USE_MAINTAINER_MODE = yes; then
15846 MAINTAINER_MODE_TRUE=
15847 MAINTAINER_MODE_FALSE='#'
15848 else
15849 MAINTAINER_MODE_TRUE='#'
15850 MAINTAINER_MODE_FALSE=
15851 fi
15852
15853 MAINT=$MAINTAINER_MODE_TRUE
15854
15855
15856 case ${build_alias} in
15857 "") build_noncanonical=${build} ;;
15858 *) build_noncanonical=${build_alias} ;;
15859 esac
15860
15861 case ${host_alias} in
15862 "") host_noncanonical=${build_noncanonical} ;;
15863 *) host_noncanonical=${host_alias} ;;
15864 esac
15865
15866 case ${target_alias} in
15867 "") target_noncanonical=${host_noncanonical} ;;
15868 *) target_noncanonical=${target_alias} ;;
15869 esac
15870
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
15872 $as_echo_n "checking whether to install libbfd... " >&6; }
15873 # Check whether --enable-install-libbfd was given.
15874 if test "${enable_install_libbfd+set}" = set; then :
15875 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
15876 else
15877 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
15878 install_libbfd_p=yes
15879 else
15880 install_libbfd_p=no
15881 fi
15882 fi
15883
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
15885 $as_echo "$install_libbfd_p" >&6; }
15886 if test $install_libbfd_p = yes; then
15887 INSTALL_LIBBFD_TRUE=
15888 INSTALL_LIBBFD_FALSE='#'
15889 else
15890 INSTALL_LIBBFD_TRUE='#'
15891 INSTALL_LIBBFD_FALSE=
15892 fi
15893
15894 # Need _noncanonical variables for this.
15895
15896
15897
15898
15899 # libbfd.a is a host library containing target dependent code
15900 bfdlibdir='$(libdir)'
15901 bfdincludedir='$(includedir)'
15902 if test "${host}" != "${target}"; then
15903 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
15904 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
15905 fi
15906
15907
15908
15909
15910
15911
15912 ac_ext=c
15913 ac_cpp='$CPP $CPPFLAGS'
15914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15917
15918 ac_libctf_warn_cflags=
15919 save_CFLAGS="$CFLAGS"
15920 for real_option in -Wall; do
15921 # Do the check with the no- prefix removed since gcc silently
15922 # accepts any -Wno-* option on purpose
15923 case $real_option in
15924 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15925 *) option=$real_option ;;
15926 esac
15927 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15928
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15930 $as_echo_n "checking whether $CC supports $option... " >&6; }
15931 if eval \${$as_acx_Woption+:} false; then :
15932 $as_echo_n "(cached) " >&6
15933 else
15934 CFLAGS="$option"
15935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15936 /* end confdefs.h. */
15937
15938 int
15939 main ()
15940 {
15941
15942 ;
15943 return 0;
15944 }
15945 _ACEOF
15946 if ac_fn_c_try_compile "$LINENO"; then :
15947 eval "$as_acx_Woption=yes"
15948 else
15949 eval "$as_acx_Woption=no"
15950 fi
15951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15952
15953 fi
15954 eval ac_res=\$$as_acx_Woption
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15956 $as_echo "$ac_res" >&6; }
15957 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15958 ac_libctf_warn_cflags="$ac_libctf_warn_cflags${ac_libctf_warn_cflags:+ }$real_option"
15959 fi
15960 done
15961 CFLAGS="$save_CFLAGS"
15962 ac_ext=c
15963 ac_cpp='$CPP $CPPFLAGS'
15964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15967
15968
15969
15970
15971
15972
15973 for ac_header in $ac_header_list
15974 do :
15975 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15976 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15977 "
15978 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15979 cat >>confdefs.h <<_ACEOF
15980 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15981 _ACEOF
15982
15983 fi
15984
15985 done
15986
15987
15988
15989
15990
15991
15992
15993 save_ASAN_OPTIONS="$ASAN_OPTIONS"
15994 ASAN_OPTIONS=detect_leaks=0
15995 export ASAN_OPTIONS
15996
15997 for ac_func in getpagesize
15998 do :
15999 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16000 if test "x$ac_cv_func_getpagesize" = xyes; then :
16001 cat >>confdefs.h <<_ACEOF
16002 #define HAVE_GETPAGESIZE 1
16003 _ACEOF
16004
16005 fi
16006 done
16007
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16009 $as_echo_n "checking for working mmap... " >&6; }
16010 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
16011 $as_echo_n "(cached) " >&6
16012 else
16013 if test "$cross_compiling" = yes; then :
16014 ac_cv_func_mmap_fixed_mapped=no
16015 else
16016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16017 /* end confdefs.h. */
16018 $ac_includes_default
16019 /* malloc might have been renamed as rpl_malloc. */
16020 #undef malloc
16021
16022 /* Thanks to Mike Haertel and Jim Avera for this test.
16023 Here is a matrix of mmap possibilities:
16024 mmap private not fixed
16025 mmap private fixed at somewhere currently unmapped
16026 mmap private fixed at somewhere already mapped
16027 mmap shared not fixed
16028 mmap shared fixed at somewhere currently unmapped
16029 mmap shared fixed at somewhere already mapped
16030 For private mappings, we should verify that changes cannot be read()
16031 back from the file, nor mmap's back from the file at a different
16032 address. (There have been systems where private was not correctly
16033 implemented like the infamous i386 svr4.0, and systems where the
16034 VM page cache was not coherent with the file system buffer cache
16035 like early versions of FreeBSD and possibly contemporary NetBSD.)
16036 For shared mappings, we should conversely verify that changes get
16037 propagated back to all the places they're supposed to be.
16038
16039 Grep wants private fixed already mapped.
16040 The main things grep needs to know about mmap are:
16041 * does it exist and is it safe to write into the mmap'd area
16042 * how to use it (BSD variants) */
16043
16044 #include <fcntl.h>
16045 #include <sys/mman.h>
16046
16047 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16048 char *malloc ();
16049 #endif
16050
16051 /* This mess was copied from the GNU getpagesize.h. */
16052 #ifndef HAVE_GETPAGESIZE
16053 # ifdef _SC_PAGESIZE
16054 # define getpagesize() sysconf(_SC_PAGESIZE)
16055 # else /* no _SC_PAGESIZE */
16056 # ifdef HAVE_SYS_PARAM_H
16057 # include <sys/param.h>
16058 # ifdef EXEC_PAGESIZE
16059 # define getpagesize() EXEC_PAGESIZE
16060 # else /* no EXEC_PAGESIZE */
16061 # ifdef NBPG
16062 # define getpagesize() NBPG * CLSIZE
16063 # ifndef CLSIZE
16064 # define CLSIZE 1
16065 # endif /* no CLSIZE */
16066 # else /* no NBPG */
16067 # ifdef NBPC
16068 # define getpagesize() NBPC
16069 # else /* no NBPC */
16070 # ifdef PAGESIZE
16071 # define getpagesize() PAGESIZE
16072 # endif /* PAGESIZE */
16073 # endif /* no NBPC */
16074 # endif /* no NBPG */
16075 # endif /* no EXEC_PAGESIZE */
16076 # else /* no HAVE_SYS_PARAM_H */
16077 # define getpagesize() 8192 /* punt totally */
16078 # endif /* no HAVE_SYS_PARAM_H */
16079 # endif /* no _SC_PAGESIZE */
16080
16081 #endif /* no HAVE_GETPAGESIZE */
16082
16083 int
16084 main ()
16085 {
16086 char *data, *data2, *data3;
16087 const char *cdata2;
16088 int i, pagesize;
16089 int fd, fd2;
16090
16091 pagesize = getpagesize ();
16092
16093 /* First, make a file with some known garbage in it. */
16094 data = (char *) malloc (pagesize);
16095 if (!data)
16096 return 1;
16097 for (i = 0; i < pagesize; ++i)
16098 *(data + i) = rand ();
16099 umask (0);
16100 fd = creat ("conftest.mmap", 0600);
16101 if (fd < 0)
16102 return 2;
16103 if (write (fd, data, pagesize) != pagesize)
16104 return 3;
16105 close (fd);
16106
16107 /* Next, check that the tail of a page is zero-filled. File must have
16108 non-zero length, otherwise we risk SIGBUS for entire page. */
16109 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16110 if (fd2 < 0)
16111 return 4;
16112 cdata2 = "";
16113 if (write (fd2, cdata2, 1) != 1)
16114 return 5;
16115 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16116 if (data2 == MAP_FAILED)
16117 return 6;
16118 for (i = 0; i < pagesize; ++i)
16119 if (*(data2 + i))
16120 return 7;
16121 close (fd2);
16122 if (munmap (data2, pagesize))
16123 return 8;
16124
16125 /* Next, try to mmap the file at a fixed address which already has
16126 something else allocated at it. If we can, also make sure that
16127 we see the same garbage. */
16128 fd = open ("conftest.mmap", O_RDWR);
16129 if (fd < 0)
16130 return 9;
16131 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16132 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16133 return 10;
16134 for (i = 0; i < pagesize; ++i)
16135 if (*(data + i) != *(data2 + i))
16136 return 11;
16137
16138 /* Finally, make sure that changes to the mapped area do not
16139 percolate back to the file as seen by read(). (This is a bug on
16140 some variants of i386 svr4.0.) */
16141 for (i = 0; i < pagesize; ++i)
16142 *(data2 + i) = *(data2 + i) + 1;
16143 data3 = (char *) malloc (pagesize);
16144 if (!data3)
16145 return 12;
16146 if (read (fd, data3, pagesize) != pagesize)
16147 return 13;
16148 for (i = 0; i < pagesize; ++i)
16149 if (*(data + i) != *(data3 + i))
16150 return 14;
16151 close (fd);
16152 return 0;
16153 }
16154 _ACEOF
16155 if ac_fn_c_try_run "$LINENO"; then :
16156 ac_cv_func_mmap_fixed_mapped=yes
16157 else
16158 ac_cv_func_mmap_fixed_mapped=no
16159 fi
16160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16161 conftest.$ac_objext conftest.beam conftest.$ac_ext
16162 fi
16163
16164 fi
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16166 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16167 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16168
16169 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16170
16171 fi
16172 rm -f conftest.mmap conftest.txt
16173
16174 ASAN_OPTIONS="$save_ASAN_OPTIONS"
16175
16176 # Needed for BFD capability checks.
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
16178 $as_echo_n "checking for library containing dlsym... " >&6; }
16179 if ${ac_cv_search_dlsym+:} false; then :
16180 $as_echo_n "(cached) " >&6
16181 else
16182 ac_func_search_save_LIBS=$LIBS
16183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16184 /* end confdefs.h. */
16185
16186 /* Override any GCC internal prototype to avoid an error.
16187 Use char because int might match the return type of a GCC
16188 builtin and then its argument prototype would still apply. */
16189 #ifdef __cplusplus
16190 extern "C"
16191 #endif
16192 char dlsym ();
16193 int
16194 main ()
16195 {
16196 return dlsym ();
16197 ;
16198 return 0;
16199 }
16200 _ACEOF
16201 for ac_lib in '' dl; do
16202 if test -z "$ac_lib"; then
16203 ac_res="none required"
16204 else
16205 ac_res=-l$ac_lib
16206 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16207 fi
16208 if ac_fn_c_try_link "$LINENO"; then :
16209 ac_cv_search_dlsym=$ac_res
16210 fi
16211 rm -f core conftest.err conftest.$ac_objext \
16212 conftest$ac_exeext
16213 if ${ac_cv_search_dlsym+:} false; then :
16214 break
16215 fi
16216 done
16217 if ${ac_cv_search_dlsym+:} false; then :
16218
16219 else
16220 ac_cv_search_dlsym=no
16221 fi
16222 rm conftest.$ac_ext
16223 LIBS=$ac_func_search_save_LIBS
16224 fi
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
16226 $as_echo "$ac_cv_search_dlsym" >&6; }
16227 ac_res=$ac_cv_search_dlsym
16228 if test "$ac_res" != no; then :
16229 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16230
16231 fi
16232
16233
16234 # Use the system's zlib library.
16235 zlibdir="-L\$(top_builddir)/../zlib"
16236 zlibinc="-I\$(top_srcdir)/../zlib"
16237
16238 # Check whether --with-system-zlib was given.
16239 if test "${with_system_zlib+set}" = set; then :
16240 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
16241 zlibdir=
16242 zlibinc=
16243 fi
16244
16245 fi
16246
16247
16248
16249
16250
16251 # Check whether --enable-libctf-hash-debugging was given.
16252 if test "${enable_libctf_hash_debugging+set}" = set; then :
16253 enableval=$enable_libctf_hash_debugging;
16254 case "$enableval" in
16255 yes|no) ;;
16256 *) as_fn_error $? "Argument to enable/disable libctf-hash-debugging must be yes or no" "$LINENO" 5 ;;
16257 esac
16258
16259 else
16260 enable_libctf_hash_debugging=no
16261 fi
16262
16263
16264 if test "${enable_libctf_hash_debugging}" = yes; then
16265
16266 $as_echo "#define ENABLE_LIBCTF_HASH_DEBUGGING 1" >>confdefs.h
16267
16268 fi
16269 if test "${enable_libctf_hash_debugging}" = yes; then
16270 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE=
16271 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE='#'
16272 else
16273 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE='#'
16274 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE=
16275 fi
16276
16277
16278 # Similar to GDB_AC_CHECK_BFD.
16279 OLD_CFLAGS=$CFLAGS
16280 OLD_LDFLAGS=$LDFLAGS
16281 OLD_LIBS=$LIBS
16282 OLD_CC=$CC
16283 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
16284 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
16285 # always want our bfd.
16286 CC="./libtool --quiet --mode=link $OLD_CC"
16287 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
16288 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
16289 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
16290 LIBS="-lbfd -liberty $intl $LIBS"
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
16292 $as_echo_n "checking for ELF support in BFD... " >&6; }
16293 if ${ac_cv_libctf_bfd_elf+:} false; then :
16294 $as_echo_n "(cached) " >&6
16295 else
16296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16297 /* end confdefs.h. */
16298 #include <stdlib.h>
16299 #include <string.h>
16300 #include "bfd.h"
16301 #include "elf-bfd.h"
16302 int
16303 main ()
16304 {
16305 (void) bfd_section_from_elf_index (NULL, 0);
16306 return 0;
16307 ;
16308 return 0;
16309 }
16310 _ACEOF
16311 if ac_fn_c_try_link "$LINENO"; then :
16312 ac_cv_libctf_bfd_elf=yes
16313 else
16314 ac_cv_libctf_bfd_elf=no
16315 fi
16316 rm -f core conftest.err conftest.$ac_objext \
16317 conftest$ac_exeext conftest.$ac_ext
16318 fi
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_bfd_elf" >&5
16320 $as_echo "$ac_cv_libctf_bfd_elf" >&6; }
16321 CFLAGS=$OLD_CFLAGS
16322 LDFLAGS=$OLD_LDFLAGS
16323 LIBS=$OLD_LIBS
16324 CC=$OLD_CC
16325
16326 if test $ac_cv_libctf_bfd_elf = yes; then
16327
16328 $as_echo "#define HAVE_BFD_ELF 1" >>confdefs.h
16329
16330 fi
16331
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16333 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16334 if ${ac_cv_c_bigendian+:} false; then :
16335 $as_echo_n "(cached) " >&6
16336 else
16337 ac_cv_c_bigendian=unknown
16338 # See if we're dealing with a universal compiler.
16339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16340 /* end confdefs.h. */
16341 #ifndef __APPLE_CC__
16342 not a universal capable compiler
16343 #endif
16344 typedef int dummy;
16345
16346 _ACEOF
16347 if ac_fn_c_try_compile "$LINENO"; then :
16348
16349 # Check for potential -arch flags. It is not universal unless
16350 # there are at least two -arch flags with different values.
16351 ac_arch=
16352 ac_prev=
16353 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16354 if test -n "$ac_prev"; then
16355 case $ac_word in
16356 i?86 | x86_64 | ppc | ppc64)
16357 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16358 ac_arch=$ac_word
16359 else
16360 ac_cv_c_bigendian=universal
16361 break
16362 fi
16363 ;;
16364 esac
16365 ac_prev=
16366 elif test "x$ac_word" = "x-arch"; then
16367 ac_prev=arch
16368 fi
16369 done
16370 fi
16371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16372 if test $ac_cv_c_bigendian = unknown; then
16373 # See if sys/param.h defines the BYTE_ORDER macro.
16374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16375 /* end confdefs.h. */
16376 #include <sys/types.h>
16377 #include <sys/param.h>
16378
16379 int
16380 main ()
16381 {
16382 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16383 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16384 && LITTLE_ENDIAN)
16385 bogus endian macros
16386 #endif
16387
16388 ;
16389 return 0;
16390 }
16391 _ACEOF
16392 if ac_fn_c_try_compile "$LINENO"; then :
16393 # It does; now see whether it defined to BIG_ENDIAN or not.
16394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16395 /* end confdefs.h. */
16396 #include <sys/types.h>
16397 #include <sys/param.h>
16398
16399 int
16400 main ()
16401 {
16402 #if BYTE_ORDER != BIG_ENDIAN
16403 not big endian
16404 #endif
16405
16406 ;
16407 return 0;
16408 }
16409 _ACEOF
16410 if ac_fn_c_try_compile "$LINENO"; then :
16411 ac_cv_c_bigendian=yes
16412 else
16413 ac_cv_c_bigendian=no
16414 fi
16415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16416 fi
16417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16418 fi
16419 if test $ac_cv_c_bigendian = unknown; then
16420 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16422 /* end confdefs.h. */
16423 #include <limits.h>
16424
16425 int
16426 main ()
16427 {
16428 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16429 bogus endian macros
16430 #endif
16431
16432 ;
16433 return 0;
16434 }
16435 _ACEOF
16436 if ac_fn_c_try_compile "$LINENO"; then :
16437 # It does; now see whether it defined to _BIG_ENDIAN or not.
16438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16439 /* end confdefs.h. */
16440 #include <limits.h>
16441
16442 int
16443 main ()
16444 {
16445 #ifndef _BIG_ENDIAN
16446 not big endian
16447 #endif
16448
16449 ;
16450 return 0;
16451 }
16452 _ACEOF
16453 if ac_fn_c_try_compile "$LINENO"; then :
16454 ac_cv_c_bigendian=yes
16455 else
16456 ac_cv_c_bigendian=no
16457 fi
16458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16459 fi
16460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16461 fi
16462 if test $ac_cv_c_bigendian = unknown; then
16463 # Compile a test program.
16464 if test "$cross_compiling" = yes; then :
16465 # Try to guess by grepping values from an object file.
16466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16467 /* end confdefs.h. */
16468 short int ascii_mm[] =
16469 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16470 short int ascii_ii[] =
16471 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16472 int use_ascii (int i) {
16473 return ascii_mm[i] + ascii_ii[i];
16474 }
16475 short int ebcdic_ii[] =
16476 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16477 short int ebcdic_mm[] =
16478 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16479 int use_ebcdic (int i) {
16480 return ebcdic_mm[i] + ebcdic_ii[i];
16481 }
16482 extern int foo;
16483
16484 int
16485 main ()
16486 {
16487 return use_ascii (foo) == use_ebcdic (foo);
16488 ;
16489 return 0;
16490 }
16491 _ACEOF
16492 if ac_fn_c_try_compile "$LINENO"; then :
16493 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16494 ac_cv_c_bigendian=yes
16495 fi
16496 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16497 if test "$ac_cv_c_bigendian" = unknown; then
16498 ac_cv_c_bigendian=no
16499 else
16500 # finding both strings is unlikely to happen, but who knows?
16501 ac_cv_c_bigendian=unknown
16502 fi
16503 fi
16504 fi
16505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16506 else
16507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16508 /* end confdefs.h. */
16509 $ac_includes_default
16510 int
16511 main ()
16512 {
16513
16514 /* Are we little or big endian? From Harbison&Steele. */
16515 union
16516 {
16517 long int l;
16518 char c[sizeof (long int)];
16519 } u;
16520 u.l = 1;
16521 return u.c[sizeof (long int) - 1] == 1;
16522
16523 ;
16524 return 0;
16525 }
16526 _ACEOF
16527 if ac_fn_c_try_run "$LINENO"; then :
16528 ac_cv_c_bigendian=no
16529 else
16530 ac_cv_c_bigendian=yes
16531 fi
16532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16533 conftest.$ac_objext conftest.beam conftest.$ac_ext
16534 fi
16535
16536 fi
16537 fi
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16539 $as_echo "$ac_cv_c_bigendian" >&6; }
16540 case $ac_cv_c_bigendian in #(
16541 yes)
16542 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16543 ;; #(
16544 no)
16545 ;; #(
16546 universal)
16547
16548 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16549
16550 ;; #(
16551 *)
16552 as_fn_error $? "unknown endianness
16553 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16554 esac
16555
16556 for ac_header in byteswap.h endian.h valgrind/valgrind.h
16557 do :
16558 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16559 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16560 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16561 cat >>confdefs.h <<_ACEOF
16562 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16563 _ACEOF
16564
16565 fi
16566
16567 done
16568
16569 for ac_func in pread
16570 do :
16571 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
16572 if test "x$ac_cv_func_pread" = xyes; then :
16573 cat >>confdefs.h <<_ACEOF
16574 #define HAVE_PREAD 1
16575 _ACEOF
16576
16577 fi
16578 done
16579
16580
16581 ac_fn_c_check_decl "$LINENO" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h>
16582 "
16583 if test "x$ac_cv_have_decl_bswap_16" = xyes; then :
16584 ac_have_decl=1
16585 else
16586 ac_have_decl=0
16587 fi
16588
16589 cat >>confdefs.h <<_ACEOF
16590 #define HAVE_DECL_BSWAP_16 $ac_have_decl
16591 _ACEOF
16592 ac_fn_c_check_decl "$LINENO" "bswap_32" "ac_cv_have_decl_bswap_32" "#include <byteswap.h>
16593 "
16594 if test "x$ac_cv_have_decl_bswap_32" = xyes; then :
16595 ac_have_decl=1
16596 else
16597 ac_have_decl=0
16598 fi
16599
16600 cat >>confdefs.h <<_ACEOF
16601 #define HAVE_DECL_BSWAP_32 $ac_have_decl
16602 _ACEOF
16603 ac_fn_c_check_decl "$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "#include <byteswap.h>
16604 "
16605 if test "x$ac_cv_have_decl_bswap_64" = xyes; then :
16606 ac_have_decl=1
16607 else
16608 ac_have_decl=0
16609 fi
16610
16611 cat >>confdefs.h <<_ACEOF
16612 #define HAVE_DECL_BSWAP_64 $ac_have_decl
16613 _ACEOF
16614
16615 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
16616 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
16617 ac_have_decl=1
16618 else
16619 ac_have_decl=0
16620 fi
16621
16622 cat >>confdefs.h <<_ACEOF
16623 #define HAVE_DECL_ASPRINTF $ac_have_decl
16624 _ACEOF
16625 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
16626 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
16627 ac_have_decl=1
16628 else
16629 ac_have_decl=0
16630 fi
16631
16632 cat >>confdefs.h <<_ACEOF
16633 #define HAVE_DECL_VASPRINTF $ac_have_decl
16634 _ACEOF
16635 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
16636 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
16637 ac_have_decl=1
16638 else
16639 ac_have_decl=0
16640 fi
16641
16642 cat >>confdefs.h <<_ACEOF
16643 #define HAVE_DECL_STPCPY $ac_have_decl
16644 _ACEOF
16645
16646
16647
16648
16649
16650 for ac_func in $ac_func_list
16651 do :
16652 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16653 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16654 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16655 cat >>confdefs.h <<_ACEOF
16656 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16657 _ACEOF
16658
16659 fi
16660 done
16661
16662
16663
16664
16665 if test $ac_cv_func_qsort_r = yes; then
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qsort_r signature" >&5
16667 $as_echo_n "checking for qsort_r signature... " >&6; }
16668 if ${ac_cv_libctf_qsort_r_signature+:} false; then :
16669 $as_echo_n "(cached) " >&6
16670 else
16671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16672 /* end confdefs.h. */
16673 #undef qsort_r
16674 #include <stdlib.h>
16675 void qsort_r (void *, size_t, size_t,
16676 int (*) (void const *, void const *,
16677 void *),
16678 void *);
16679 void (*p) (void *, size_t, size_t,
16680 int (*) (void const *, void const *,
16681 void *),
16682 void *) = qsort_r;
16683
16684 int
16685 main ()
16686 {
16687
16688 ;
16689 return 0;
16690 }
16691 _ACEOF
16692 if ac_fn_c_try_link "$LINENO"; then :
16693 ac_cv_libctf_qsort_r_signature=GNU
16694 else
16695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16696 /* end confdefs.h. */
16697 #undef qsort_r
16698 #include <stdlib.h>
16699 void qsort_r (void *, size_t, size_t, void *,
16700 int (*) (void *,
16701 void const *,
16702 void const *));
16703 void (*p) (void *, size_t, size_t, void *,
16704 int (*) (void *, void const *,
16705 void const *)) = qsort_r;
16706
16707 int
16708 main ()
16709 {
16710
16711 ;
16712 return 0;
16713 }
16714 _ACEOF
16715 if ac_fn_c_try_link "$LINENO"; then :
16716 ac_cv_libctf_qsort_r_signature=BSD
16717 else
16718 ac_cv_libctf_qsort_r_signature=unknown
16719 fi
16720 rm -f core conftest.err conftest.$ac_objext \
16721 conftest$ac_exeext conftest.$ac_ext
16722 fi
16723 rm -f core conftest.err conftest.$ac_objext \
16724 conftest$ac_exeext conftest.$ac_ext
16725 fi
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_qsort_r_signature" >&5
16727 $as_echo "$ac_cv_libctf_qsort_r_signature" >&6; }
16728 fi
16729
16730 case x$ac_cv_libctf_qsort_r_signature in
16731 xGNU)
16732 $as_echo "#define HAVE_QSORT_R_ARG_LAST 1" >>confdefs.h
16733 ;;
16734 xBSD)
16735 $as_echo "#define HAVE_QSORT_R_COMPAR_LAST 1" >>confdefs.h
16736 ;;
16737 *) ac_cv_libctf_qsort_r_signature=unknown;;
16738 esac
16739
16740 if test "${ac_cv_libctf_qsort_r_signature}" = unknown; then
16741 NEED_CTF_QSORT_R_TRUE=
16742 NEED_CTF_QSORT_R_FALSE='#'
16743 else
16744 NEED_CTF_QSORT_R_TRUE='#'
16745 NEED_CTF_QSORT_R_FALSE=
16746 fi
16747
16748
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
16750 $as_echo_n "checking for O_CLOEXEC... " >&6; }
16751 if ${ac_cv_libctf_macro_O_CLOEXEC+:} false; then :
16752 $as_echo_n "(cached) " >&6
16753 else
16754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16755 /* end confdefs.h. */
16756 #include <fcntl.h>
16757 #ifndef O_CLOEXEC
16758 choke me;
16759 #endif
16760
16761 int
16762 main ()
16763 {
16764 return O_CLOEXEC;
16765 ;
16766 return 0;
16767 }
16768 _ACEOF
16769 if ac_fn_c_try_link "$LINENO"; then :
16770 ac_cv_libctf_macro_O_CLOEXEC=yes
16771 else
16772 ac_cv_libctf_macro_O_CLOEXEC=no
16773 fi
16774 rm -f core conftest.err conftest.$ac_objext \
16775 conftest$ac_exeext conftest.$ac_ext
16776 fi
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_macro_O_CLOEXEC" >&5
16778 $as_echo "$ac_cv_libctf_macro_O_CLOEXEC" >&6; }
16779
16780 if test $ac_cv_libctf_macro_O_CLOEXEC = yes; then
16781
16782 $as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
16783
16784 fi
16785
16786 build_info=
16787 makeinfo_too_old=
16788 for ac_prog in makeinfo
16789 do
16790 # Extract the first word of "$ac_prog", so it can be a program name with args.
16791 set dummy $ac_prog; ac_word=$2
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16793 $as_echo_n "checking for $ac_word... " >&6; }
16794 if ${ac_cv_prog_MAKEINFO+:} false; then :
16795 $as_echo_n "(cached) " >&6
16796 else
16797 if test -n "$MAKEINFO"; then
16798 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
16799 else
16800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16801 for as_dir in $PATH
16802 do
16803 IFS=$as_save_IFS
16804 test -z "$as_dir" && as_dir=.
16805 for ac_exec_ext in '' $ac_executable_extensions; do
16806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16807 ac_cv_prog_MAKEINFO="$ac_prog"
16808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16809 break 2
16810 fi
16811 done
16812 done
16813 IFS=$as_save_IFS
16814
16815 fi
16816 fi
16817 MAKEINFO=$ac_cv_prog_MAKEINFO
16818 if test -n "$MAKEINFO"; then
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
16820 $as_echo "$MAKEINFO" >&6; }
16821 else
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16823 $as_echo "no" >&6; }
16824 fi
16825
16826
16827 test -n "$MAKEINFO" && break
16828 done
16829 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
16830
16831 case " $build_configdirs " in
16832 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
16833 esac
16834
16835 # We require texinfo to be 6.3 or later, for a working synindex
16836 # and validatemenus: otherwise we fall back to /bin/true.
16837 if ${MAKEINFO} --version \
16838 | egrep 'texinfo[^0-9]*(6\.[3-9]|[7-9]|[1-6][0-9])' >/dev/null 2>&1; then
16839 build_info=yes
16840 else
16841 build_info=
16842 makeinfo_too_old=t
16843 fi
16844
16845 if test -n "$makeinfo_too_old"; then
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16847 *** Makeinfo is too old. Info documentation will not be built." >&5
16848 $as_echo "$as_me: WARNING:
16849 *** Makeinfo is too old. Info documentation will not be built." >&2;}
16850 fi
16851
16852 if test "${build_info}" = yes; then
16853 BUILD_INFO_TRUE=
16854 BUILD_INFO_FALSE='#'
16855 else
16856 BUILD_INFO_TRUE='#'
16857 BUILD_INFO_FALSE=
16858 fi
16859
16860
16861 CTF_LIBADD="-L`pwd`/../libiberty -liberty"
16862 SHARED_LDFLAGS=
16863
16864 # Horrible hacks to build DLLs on Windows and a shared library elsewhere.
16865 if test "$enable_shared" = "yes"; then
16866 # When building a shared libctf, link against the pic version of libiberty
16867 # so that apps that use libctf won't need libiberty just to satisfy any
16868 # libctf references. We can't do that if a pic libiberty is unavailable
16869 # since including non-pic # code would insert text relocations into libctf.
16870 # Note that linking against libbfd as we do here, which is itself linked
16871 # against libiberty, may not satisfy all the libctf libiberty references
16872 # since libbfd may not pull in the entirety of libiberty.
16873 # Also, jam libintl into the right place in all of this: after libiberty,
16874 # which uses it, but before -lcygwin, which it uses.
16875 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
16876 if test -n "$x"; then
16877 CTF_LIBADD="-L`pwd`/../libiberty/pic -liberty"
16878 fi
16879 fi
16880
16881 CTF_LIBADD="$CTF_LIBADD $LTLIBINTL"
16882
16883 if test "$enable_shared" = "yes"; then
16884 case "${host}" in
16885 # More hacks to build DLLs on Windows.
16886 *-*-cygwin*)
16887 SHARED_LDFLAGS="-no-undefined"
16888 CTF_LIBADD="$CTF_LIBADD -lcygwin"
16889 ;;
16890 esac
16891 fi
16892
16893
16894
16895 # Extract the first word of "expect", so it can be a program name with args.
16896 set dummy expect; ac_word=$2
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16898 $as_echo_n "checking for $ac_word... " >&6; }
16899 if ${ac_cv_path_EXPECT+:} false; then :
16900 $as_echo_n "(cached) " >&6
16901 else
16902 case $EXPECT in
16903 [\\/]* | ?:[\\/]*)
16904 ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
16905 ;;
16906 *)
16907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16908 for as_dir in $PATH
16909 do
16910 IFS=$as_save_IFS
16911 test -z "$as_dir" && as_dir=.
16912 for ac_exec_ext in '' $ac_executable_extensions; do
16913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16914 ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
16915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16916 break 2
16917 fi
16918 done
16919 done
16920 IFS=$as_save_IFS
16921
16922 ;;
16923 esac
16924 fi
16925 EXPECT=$ac_cv_path_EXPECT
16926 if test -n "$EXPECT"; then
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
16928 $as_echo "$EXPECT" >&6; }
16929 else
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16931 $as_echo "no" >&6; }
16932 fi
16933
16934
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl supporting try/catch" >&5
16936 $as_echo_n "checking for Tcl supporting try/catch... " >&6; }
16937 if ${ac_cv_libctf_tcl_try+:} false; then :
16938 $as_echo_n "(cached) " >&6
16939 else
16940 ac_cv_libctf_tcl_try=`if test -z $EXPECT; then echo no; else $EXPECT << EOF
16941 if [llength [info commands try]] then { puts yes } else { puts no }
16942 EOF
16943 fi`
16944
16945 fi
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_tcl_try" >&5
16947 $as_echo "$ac_cv_libctf_tcl_try" >&6; }
16948
16949 HAVE_TCL_TRY=false
16950 if test "${ac_cv_libctf_tcl_try}" = "yes"; then
16951 HAVE_TCL_TRY=true
16952 fi
16953
16954
16955 # Use a version script, if possible, or an -export-symbols-regex otherwise.
16956 # First figure out the version script flag: then massage the script, if
16957 # needed.
16958 decommented_version_script=
16959 no_version_script=
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker versioning flags" >&5
16961 $as_echo_n "checking for linker versioning flags... " >&6; }
16962 if ${ac_cv_libctf_version_script+:} false; then :
16963 $as_echo_n "(cached) " >&6
16964 else
16965 echo 'FOO { global: mai*; local: ctf_fo*; };' > conftest.ver
16966 old_LDFLAGS="$LDFLAGS"
16967 old_CFLAGS="$CFLAGS"
16968 LDFLAGS="$LDFLAGS -shared -Wl,--version-script=conftest.ver"
16969 CFLAGS="$CFLAGS -fPIC"
16970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16971 /* end confdefs.h. */
16972 int ctf_foo (void) { return 0; }
16973 int main (void) { return ctf_foo(); }
16974 _ACEOF
16975 if ac_fn_c_try_link "$LINENO"; then :
16976 ac_cv_libctf_version_script="-Wl,--version-script"
16977 fi
16978 rm -f core conftest.err conftest.$ac_objext \
16979 conftest$ac_exeext conftest.$ac_ext
16980 LDFLAGS="$old_LDFLAGS"
16981
16982 if test -z "$ac_cv_libctf_version_script"; then
16983 LDFLAGS="$LDFLAGS -shared -Wl,-B,local -Wl,-z,gnu-version-script=conftest.ver"
16984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16985 /* end confdefs.h. */
16986 int ctf_foo (void) { return 0; }
16987 int main (void) { return ctf_foo(); }
16988 _ACEOF
16989 if ac_fn_c_try_link "$LINENO"; then :
16990 ac_cv_libctf_version_script="-Wl,-B,local -Wl,-z,gnu-version-script"
16991 decommented_version_script=t
16992 fi
16993 rm -f core conftest.err conftest.$ac_objext \
16994 conftest$ac_exeext conftest.$ac_ext
16995 LDFLAGS="$old_LDFLAGS"
16996 fi
16997 CFLAGS="$old_CFLAGS"
16998
16999 if test -z "$ac_cv_libctf_version_script"; then
17000 ac_cv_libctf_version_script='-export-symbols-regex ctf_.*'
17001 no_version_script=t
17002 fi
17003 rm -f conftest.ver
17004 fi
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_version_script" >&5
17006 $as_echo "$ac_cv_libctf_version_script" >&6; }
17007
17008 # Ensure that no symbols exist in the version script for libctf-nobfd.so
17009 # that do not exist in the shared library itself, since some linkers (Solaris)
17010 # add such symbols with type NOTYPE, and others (LLVM) complain loudly
17011 # and fail to link.
17012 grep -v 'libctf only' $srcdir/libctf.ver > libctf-nobfd.ver
17013
17014 if test -n "$decommented_version_script"; then
17015 # Solaris's version scripts use shell-style comments rather than the C-style
17016 # used by GNU ld. Use cpp to strip the comments out. (cpp exists under this
17017 # name on all platforms that support ld -z gnu-version-script.)
17018 /lib/cpp < $srcdir/libctf.ver > libctf-decommented.ver
17019 /lib/cpp < $srcdir/libctf-nobfd.ver > libctf-nobfd-decommented.ver
17020 VERSION_FLAGS="$ac_cv_libctf_version_script='libctf-decommented.ver'"
17021 VERSION_FLAGS_NOBFD="$ac_cv_libctf_version_script='libctf-nobfd-decommented.ver'"
17022 elif test -z "$no_version_script"; then
17023 VERSION_FLAGS="$ac_cv_libctf_version_script='$srcdir/libctf.ver'"
17024 VERSION_FLAGS_NOBFD="$ac_cv_libctf_version_script='libctf-nobfd.ver'"
17025 else
17026 VERSION_FLAGS="$ac_cv_libctf_version_script"
17027 VERSION_FLAGS_NOBFD="$ac_cv_libctf_version_script"
17028 fi
17029
17030
17031
•17032 CTF_SOVER_EXT=$CTF_SOVER_EXT
17033
17034
17035 ac_config_files="$ac_config_files Makefile"
17036
17037 ac_config_headers="$ac_config_headers config.h"
17038
17039 cat >confcache <<\_ACEOF
17040 # This file is a shell script that caches the results of configure
17041 # tests run on this system so they can be shared between configure
17042 # scripts and configure runs, see configure's option --config-cache.
17043 # It is not useful on other systems. If it contains results you don't
17044 # want to keep, you may remove or edit it.
17045 #
17046 # config.status only pays attention to the cache file if you give it
17047 # the --recheck option to rerun configure.
17048 #
17049 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17050 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17051 # following values.
17052
17053 _ACEOF
17054
17055 # The following way of writing the cache mishandles newlines in values,
17056 # but we know of no workaround that is simple, portable, and efficient.
17057 # So, we kill variables containing newlines.
17058 # Ultrix sh set writes to stderr and can't be redirected directly,
17059 # and sets the high bit in the cache file unless we assign to the vars.
17060 (
17061 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17062 eval ac_val=\$$ac_var
17063 case $ac_val in #(
17064 *${as_nl}*)
17065 case $ac_var in #(
17066 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17067 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17068 esac
17069 case $ac_var in #(
17070 _ | IFS | as_nl) ;; #(
17071 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17072 *) { eval $ac_var=; unset $ac_var;} ;;
17073 esac ;;
17074 esac
17075 done
17076
17077 (set) 2>&1 |
17078 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17079 *${as_nl}ac_space=\ *)
17080 # `set' does not quote correctly, so add quotes: double-quote
17081 # substitution turns \\\\ into \\, and sed turns \\ into \.
17082 sed -n \
17083 "s/'/'\\\\''/g;
17084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17085 ;; #(
17086 *)
17087 # `set' quotes correctly as required by POSIX, so do not add quotes.
17088 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17089 ;;
17090 esac |
17091 sort
17092 ) |
17093 sed '
17094 /^ac_cv_env_/b end
17095 t clear
17096 :clear
17097 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17098 t end
17099 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17100 :end' >>confcache
17101 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17102 if test -w "$cache_file"; then
17103 if test "x$cache_file" != "x/dev/null"; then
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17105 $as_echo "$as_me: updating cache $cache_file" >&6;}
17106 if test ! -f "$cache_file" || test -h "$cache_file"; then
17107 cat confcache >"$cache_file"
17108 else
17109 case $cache_file in #(
17110 */* | ?:*)
17111 mv -f confcache "$cache_file"$$ &&
17112 mv -f "$cache_file"$$ "$cache_file" ;; #(
17113 *)
17114 mv -f confcache "$cache_file" ;;
17115 esac
17116 fi
17117 fi
17118 else
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17120 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17121 fi
17122 fi
17123 rm -f confcache
17124
17125 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17126 # Let make expand exec_prefix.
17127 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17128
17129 DEFS=-DHAVE_CONFIG_H
17130
17131 ac_libobjs=
17132 ac_ltlibobjs=
17133 U=
17134 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17135 # 1. Remove the extension, and $U if already installed.
17136 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17137 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17138 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17139 # will be set to the directory where LIBOBJS objects are built.
17140 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17141 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17142 done
17143 LIBOBJS=$ac_libobjs
17144
17145 LTLIBOBJS=$ac_ltlibobjs
17146
17147
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17149 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17150 if test -n "$am_sleep_pid"; then
17151 # Hide warnings about reused PIDs.
17152 wait $am_sleep_pid 2>/dev/null
17153 fi
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17155 $as_echo "done" >&6; }
17156 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17157 as_fn_error $? "conditional \"AMDEP\" was never defined.
17158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17159 fi
17160 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17161 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17163 fi
17164 if test -n "$EXEEXT"; then
17165 am__EXEEXT_TRUE=
17166 am__EXEEXT_FALSE='#'
17167 else
17168 am__EXEEXT_TRUE='#'
17169 am__EXEEXT_FALSE=
17170 fi
17171
17172 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17173 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17175 fi
17176 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
17177 as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined.
17178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17179 fi
17180 if test -z "${ENABLE_LIBCTF_HASH_DEBUGGING_TRUE}" && test -z "${ENABLE_LIBCTF_HASH_DEBUGGING_FALSE}"; then
17181 as_fn_error $? "conditional \"ENABLE_LIBCTF_HASH_DEBUGGING\" was never defined.
17182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17183 fi
17184
17185 if test -z "${NEED_CTF_QSORT_R_TRUE}" && test -z "${NEED_CTF_QSORT_R_FALSE}"; then
17186 as_fn_error $? "conditional \"NEED_CTF_QSORT_R\" was never defined.
17187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17188 fi
17189 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17190 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
17191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17192 fi
17193
17194 : "${CONFIG_STATUS=./config.status}"
17195 ac_write_fail=0
17196 ac_clean_files_save=$ac_clean_files
17197 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17199 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17200 as_write_fail=0
17201 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17202 #! $SHELL
17203 # Generated by $as_me.
17204 # Run this file to recreate the current configuration.
17205 # Compiler output produced by configure, useful for debugging
17206 # configure, is in config.log if it exists.
17207
17208 debug=false
17209 ac_cs_recheck=false
17210 ac_cs_silent=false
17211
17212 SHELL=\${CONFIG_SHELL-$SHELL}
17213 export SHELL
17214 _ASEOF
17215 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17216 ## -------------------- ##
17217 ## M4sh Initialization. ##
17218 ## -------------------- ##
17219
17220 # Be more Bourne compatible
17221 DUALCASE=1; export DUALCASE # for MKS sh
17222 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17223 emulate sh
17224 NULLCMD=:
17225 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17226 # is contrary to our usage. Disable this feature.
17227 alias -g '${1+"$@"}'='"$@"'
17228 setopt NO_GLOB_SUBST
17229 else
17230 case `(set -o) 2>/dev/null` in #(
17231 *posix*) :
17232 set -o posix ;; #(
17233 *) :
17234 ;;
17235 esac
17236 fi
17237
17238
17239 as_nl='
17240 '
17241 export as_nl
17242 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17243 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17244 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17245 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17246 # Prefer a ksh shell builtin over an external printf program on Solaris,
17247 # but without wasting forks for bash or zsh.
17248 if test -z "$BASH_VERSION$ZSH_VERSION" \
17249 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17250 as_echo='print -r --'
17251 as_echo_n='print -rn --'
17252 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17253 as_echo='printf %s\n'
17254 as_echo_n='printf %s'
17255 else
17256 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17257 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17258 as_echo_n='/usr/ucb/echo -n'
17259 else
17260 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17261 as_echo_n_body='eval
17262 arg=$1;
17263 case $arg in #(
17264 *"$as_nl"*)
17265 expr "X$arg" : "X\\(.*\\)$as_nl";
17266 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17267 esac;
17268 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17269 '
17270 export as_echo_n_body
17271 as_echo_n='sh -c $as_echo_n_body as_echo'
17272 fi
17273 export as_echo_body
17274 as_echo='sh -c $as_echo_body as_echo'
17275 fi
17276
17277 # The user is always right.
17278 if test "${PATH_SEPARATOR+set}" != set; then
17279 PATH_SEPARATOR=:
17280 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17281 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17282 PATH_SEPARATOR=';'
17283 }
17284 fi
17285
17286
17287 # IFS
17288 # We need space, tab and new line, in precisely that order. Quoting is
17289 # there to prevent editors from complaining about space-tab.
17290 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17291 # splitting by setting IFS to empty value.)
17292 IFS=" "" $as_nl"
17293
17294 # Find who we are. Look in the path if we contain no directory separator.
17295 as_myself=
17296 case $0 in #((
17297 *[\\/]* ) as_myself=$0 ;;
17298 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17299 for as_dir in $PATH
17300 do
17301 IFS=$as_save_IFS
17302 test -z "$as_dir" && as_dir=.
17303 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17304 done
17305 IFS=$as_save_IFS
17306
17307 ;;
17308 esac
17309 # We did not find ourselves, most probably we were run as `sh COMMAND'
17310 # in which case we are not to be found in the path.
17311 if test "x$as_myself" = x; then
17312 as_myself=$0
17313 fi
17314 if test ! -f "$as_myself"; then
17315 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17316 exit 1
17317 fi
17318
17319 # Unset variables that we do not need and which cause bugs (e.g. in
17320 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17321 # suppresses any "Segmentation fault" message there. '((' could
17322 # trigger a bug in pdksh 5.2.14.
17323 for as_var in BASH_ENV ENV MAIL MAILPATH
17324 do eval test x\${$as_var+set} = xset \
17325 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17326 done
17327 PS1='$ '
17328 PS2='> '
17329 PS4='+ '
17330
17331 # NLS nuisances.
17332 LC_ALL=C
17333 export LC_ALL
17334 LANGUAGE=C
17335 export LANGUAGE
17336
17337 # CDPATH.
17338 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17339
17340
17341 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17342 # ----------------------------------------
17343 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17344 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17345 # script with STATUS, using 1 if that was 0.
17346 as_fn_error ()
17347 {
17348 as_status=$1; test $as_status -eq 0 && as_status=1
17349 if test "$4"; then
17350 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17351 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17352 fi
17353 $as_echo "$as_me: error: $2" >&2
17354 as_fn_exit $as_status
17355 } # as_fn_error
17356
17357
17358 # as_fn_set_status STATUS
17359 # -----------------------
17360 # Set $? to STATUS, without forking.
17361 as_fn_set_status ()
17362 {
17363 return $1
17364 } # as_fn_set_status
17365
17366 # as_fn_exit STATUS
17367 # -----------------
17368 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17369 as_fn_exit ()
17370 {
17371 set +e
17372 as_fn_set_status $1
17373 exit $1
17374 } # as_fn_exit
17375
17376 # as_fn_unset VAR
17377 # ---------------
17378 # Portably unset VAR.
17379 as_fn_unset ()
17380 {
17381 { eval $1=; unset $1;}
17382 }
17383 as_unset=as_fn_unset
17384 # as_fn_append VAR VALUE
17385 # ----------------------
17386 # Append the text in VALUE to the end of the definition contained in VAR. Take
17387 # advantage of any shell optimizations that allow amortized linear growth over
17388 # repeated appends, instead of the typical quadratic growth present in naive
17389 # implementations.
17390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17391 eval 'as_fn_append ()
17392 {
17393 eval $1+=\$2
17394 }'
17395 else
17396 as_fn_append ()
17397 {
17398 eval $1=\$$1\$2
17399 }
17400 fi # as_fn_append
17401
17402 # as_fn_arith ARG...
17403 # ------------------
17404 # Perform arithmetic evaluation on the ARGs, and store the result in the
17405 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17406 # must be portable across $(()) and expr.
17407 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17408 eval 'as_fn_arith ()
17409 {
17410 as_val=$(( $* ))
17411 }'
17412 else
17413 as_fn_arith ()
17414 {
17415 as_val=`expr "$@" || test $? -eq 1`
17416 }
17417 fi # as_fn_arith
17418
17419
17420 if expr a : '\(a\)' >/dev/null 2>&1 &&
17421 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17422 as_expr=expr
17423 else
17424 as_expr=false
17425 fi
17426
17427 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17428 as_basename=basename
17429 else
17430 as_basename=false
17431 fi
17432
17433 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17434 as_dirname=dirname
17435 else
17436 as_dirname=false
17437 fi
17438
17439 as_me=`$as_basename -- "$0" ||
17440 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17441 X"$0" : 'X\(//\)$' \| \
17442 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17443 $as_echo X/"$0" |
17444 sed '/^.*\/\([^/][^/]*\)\/*$/{
17445 s//\1/
17446 q
17447 }
17448 /^X\/\(\/\/\)$/{
17449 s//\1/
17450 q
17451 }
17452 /^X\/\(\/\).*/{
17453 s//\1/
17454 q
17455 }
17456 s/.*/./; q'`
17457
17458 # Avoid depending upon Character Ranges.
17459 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17460 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17461 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17462 as_cr_digits='0123456789'
17463 as_cr_alnum=$as_cr_Letters$as_cr_digits
17464
17465 ECHO_C= ECHO_N= ECHO_T=
17466 case `echo -n x` in #(((((
17467 -n*)
17468 case `echo 'xy\c'` in
17469 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17470 xy) ECHO_C='\c';;
17471 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17472 ECHO_T=' ';;
17473 esac;;
17474 *)
17475 ECHO_N='-n';;
17476 esac
17477
17478 rm -f conf$$ conf$$.exe conf$$.file
17479 if test -d conf$$.dir; then
17480 rm -f conf$$.dir/conf$$.file
17481 else
17482 rm -f conf$$.dir
17483 mkdir conf$$.dir 2>/dev/null
17484 fi
17485 if (echo >conf$$.file) 2>/dev/null; then
17486 if ln -s conf$$.file conf$$ 2>/dev/null; then
17487 as_ln_s='ln -s'
17488 # ... but there are two gotchas:
17489 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17490 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17491 # In both cases, we have to default to `cp -pR'.
17492 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17493 as_ln_s='cp -pR'
17494 elif ln conf$$.file conf$$ 2>/dev/null; then
17495 as_ln_s=ln
17496 else
17497 as_ln_s='cp -pR'
17498 fi
17499 else
17500 as_ln_s='cp -pR'
17501 fi
17502 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17503 rmdir conf$$.dir 2>/dev/null
17504
17505
17506 # as_fn_mkdir_p
17507 # -------------
17508 # Create "$as_dir" as a directory, including parents if necessary.
17509 as_fn_mkdir_p ()
17510 {
17511
17512 case $as_dir in #(
17513 -*) as_dir=./$as_dir;;
17514 esac
17515 test -d "$as_dir" || eval $as_mkdir_p || {
17516 as_dirs=
17517 while :; do
17518 case $as_dir in #(
17519 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17520 *) as_qdir=$as_dir;;
17521 esac
17522 as_dirs="'$as_qdir' $as_dirs"
17523 as_dir=`$as_dirname -- "$as_dir" ||
17524 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17525 X"$as_dir" : 'X\(//\)[^/]' \| \
17526 X"$as_dir" : 'X\(//\)$' \| \
17527 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17528 $as_echo X"$as_dir" |
17529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17530 s//\1/
17531 q
17532 }
17533 /^X\(\/\/\)[^/].*/{
17534 s//\1/
17535 q
17536 }
17537 /^X\(\/\/\)$/{
17538 s//\1/
17539 q
17540 }
17541 /^X\(\/\).*/{
17542 s//\1/
17543 q
17544 }
17545 s/.*/./; q'`
17546 test -d "$as_dir" && break
17547 done
17548 test -z "$as_dirs" || eval "mkdir $as_dirs"
17549 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17550
17551
17552 } # as_fn_mkdir_p
17553 if mkdir -p . 2>/dev/null; then
17554 as_mkdir_p='mkdir -p "$as_dir"'
17555 else
17556 test -d ./-p && rmdir ./-p
17557 as_mkdir_p=false
17558 fi
17559
17560
17561 # as_fn_executable_p FILE
17562 # -----------------------
17563 # Test if FILE is an executable regular file.
17564 as_fn_executable_p ()
17565 {
17566 test -f "$1" && test -x "$1"
17567 } # as_fn_executable_p
17568 as_test_x='test -x'
17569 as_executable_p=as_fn_executable_p
17570
17571 # Sed expression to map a string onto a valid CPP name.
17572 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17573
17574 # Sed expression to map a string onto a valid variable name.
17575 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17576
17577
17578 exec 6>&1
17579 ## ----------------------------------- ##
17580 ## Main body of $CONFIG_STATUS script. ##
17581 ## ----------------------------------- ##
17582 _ASEOF
17583 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17584
17585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17586 # Save the log message, to keep $0 and so on meaningful, and to
17587 # report actual input values of CONFIG_FILES etc. instead of their
17588 # values after options handling.
17589 ac_log="
17590 This file was extended by libctf $as_me 1.2.0, which was
17591 generated by GNU Autoconf 2.69. Invocation command line was
17592
17593 CONFIG_FILES = $CONFIG_FILES
17594 CONFIG_HEADERS = $CONFIG_HEADERS
17595 CONFIG_LINKS = $CONFIG_LINKS
17596 CONFIG_COMMANDS = $CONFIG_COMMANDS
17597 $ $0 $@
17598
17599 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17600 "
17601
17602 _ACEOF
17603
17604 case $ac_config_files in *"
17605 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17606 esac
17607
17608 case $ac_config_headers in *"
17609 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17610 esac
17611
17612
17613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17614 # Files that config.status was made for.
17615 config_files="$ac_config_files"
17616 config_headers="$ac_config_headers"
17617 config_commands="$ac_config_commands"
17618
17619 _ACEOF
17620
17621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17622 ac_cs_usage="\
17623 \`$as_me' instantiates files and other configuration actions
17624 from templates according to the current configuration. Unless the files
17625 and actions are specified as TAGs, all are instantiated by default.
17626
17627 Usage: $0 [OPTION]... [TAG]...
17628
17629 -h, --help print this help, then exit
17630 -V, --version print version number and configuration settings, then exit
17631 --config print configuration, then exit
17632 -q, --quiet, --silent
17633 do not print progress messages
17634 -d, --debug don't remove temporary files
17635 --recheck update $as_me by reconfiguring in the same conditions
17636 --file=FILE[:TEMPLATE]
17637 instantiate the configuration file FILE
17638 --header=FILE[:TEMPLATE]
17639 instantiate the configuration header FILE
17640
17641 Configuration files:
17642 $config_files
17643
17644 Configuration headers:
17645 $config_headers
17646
17647 Configuration commands:
17648 $config_commands
17649
17650 Report bugs to the package provider."
17651
17652 _ACEOF
17653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17654 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17655 ac_cs_version="\\
17656 libctf config.status 1.2.0
17657 configured by $0, generated by GNU Autoconf 2.69,
17658 with options \\"\$ac_cs_config\\"
17659
17660 Copyright (C) 2012 Free Software Foundation, Inc.
17661 This config.status script is free software; the Free Software Foundation
17662 gives unlimited permission to copy, distribute and modify it."
17663
17664 ac_pwd='$ac_pwd'
17665 srcdir='$srcdir'
17666 INSTALL='$INSTALL'
17667 MKDIR_P='$MKDIR_P'
17668 AWK='$AWK'
17669 test -n "\$AWK" || AWK=awk
17670 _ACEOF
17671
17672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17673 # The default lists apply if the user does not specify any file.
17674 ac_need_defaults=:
17675 while test $# != 0
17676 do
17677 case $1 in
17678 --*=?*)
17679 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17680 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17681 ac_shift=:
17682 ;;
17683 --*=)
17684 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17685 ac_optarg=
17686 ac_shift=:
17687 ;;
17688 *)
17689 ac_option=$1
17690 ac_optarg=$2
17691 ac_shift=shift
17692 ;;
17693 esac
17694
17695 case $ac_option in
17696 # Handling of the options.
17697 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17698 ac_cs_recheck=: ;;
17699 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17700 $as_echo "$ac_cs_version"; exit ;;
17701 --config | --confi | --conf | --con | --co | --c )
17702 $as_echo "$ac_cs_config"; exit ;;
17703 --debug | --debu | --deb | --de | --d | -d )
17704 debug=: ;;
17705 --file | --fil | --fi | --f )
17706 $ac_shift
17707 case $ac_optarg in
17708 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17709 '') as_fn_error $? "missing file argument" ;;
17710 esac
17711 as_fn_append CONFIG_FILES " '$ac_optarg'"
17712 ac_need_defaults=false;;
17713 --header | --heade | --head | --hea )
17714 $ac_shift
17715 case $ac_optarg in
17716 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17717 esac
17718 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17719 ac_need_defaults=false;;
17720 --he | --h)
17721 # Conflict between --help and --header
17722 as_fn_error $? "ambiguous option: \`$1'
17723 Try \`$0 --help' for more information.";;
17724 --help | --hel | -h )
17725 $as_echo "$ac_cs_usage"; exit ;;
17726 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17727 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17728 ac_cs_silent=: ;;
17729
17730 # This is an error.
17731 -*) as_fn_error $? "unrecognized option: \`$1'
17732 Try \`$0 --help' for more information." ;;
17733
17734 *) as_fn_append ac_config_targets " $1"
17735 ac_need_defaults=false ;;
17736
17737 esac
17738 shift
17739 done
17740
17741 ac_configure_extra_args=
17742
17743 if $ac_cs_silent; then
17744 exec 6>/dev/null
17745 ac_configure_extra_args="$ac_configure_extra_args --silent"
17746 fi
17747
17748 _ACEOF
17749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17750 if \$ac_cs_recheck; then
17751 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17752 shift
17753 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17754 CONFIG_SHELL='$SHELL'
17755 export CONFIG_SHELL
17756 exec "\$@"
17757 fi
17758
17759 _ACEOF
17760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17761 exec 5>>config.log
17762 {
17763 echo
17764 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17765 ## Running $as_me. ##
17766 _ASBOX
17767 $as_echo "$ac_log"
17768 } >&5
17769
17770 _ACEOF
17771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17772 #
17773 # INIT-COMMANDS
17774 #
17775 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17776 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17777 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17778 # from automake.
17779 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17780 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17781 LINGUAS="${LINGUAS-%UNSET%}"
17782
17783
17784
17785 # The HP-UX ksh and POSIX shell print the target directory to stdout
17786 # if CDPATH is set.
17787 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17788
17789 sed_quote_subst='$sed_quote_subst'
17790 double_quote_subst='$double_quote_subst'
17791 delay_variable_subst='$delay_variable_subst'
17792 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17793 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17794 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17795 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17796 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17797 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17798 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17799 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17800 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17801 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17802 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17803 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17804 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17805 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17806 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17807 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17808 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17809 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17810 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17811 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17812 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17813 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17814 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17815 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17816 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17817 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17818 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17819 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17820 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17821 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17822 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17823 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17824 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17825 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17826 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17827 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17828 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17829 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17830 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17831 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17832 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17833 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17834 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17835 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17836 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17837 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17838 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17839 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17840 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"`'
17841 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17842 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17843 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17844 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17845 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17846 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17847 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17848 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17849 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17850 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17851 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17852 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17853 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17854 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17855 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17856 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17857 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17858 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17859 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17860 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17861 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17862 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17863 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17864 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17865 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17866 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17867 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17868 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17869 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17870 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17871 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17872 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17873 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17874 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17875 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17876 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17877 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17878 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17879 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17880 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17881 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17882 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17883 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17884 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17885 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17886 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17887 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17888 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17889 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17890 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17891 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17892 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17893 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17894 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17895 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17896 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17897 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17898 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17899 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17900 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17901 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17902 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17903 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17904 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17905 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17906 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17907 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17908 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17909 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17910 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17911 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17912
17913 LTCC='$LTCC'
17914 LTCFLAGS='$LTCFLAGS'
17915 compiler='$compiler_DEFAULT'
17916
17917 # A function that is used when there is no print builtin or printf.
17918 func_fallback_echo ()
17919 {
17920 eval 'cat <<_LTECHO_EOF
17921 \$1
17922 _LTECHO_EOF'
17923 }
17924
17925 # Quote evaled strings.
17926 for var in SHELL \
17927 ECHO \
17928 SED \
17929 GREP \
17930 EGREP \
17931 FGREP \
17932 LD \
17933 NM \
17934 LN_S \
17935 lt_SP2NL \
17936 lt_NL2SP \
17937 reload_flag \
17938 OBJDUMP \
17939 deplibs_check_method \
17940 file_magic_cmd \
17941 AR \
17942 AR_FLAGS \
17943 STRIP \
17944 RANLIB \
17945 CC \
17946 CFLAGS \
17947 compiler \
17948 lt_cv_sys_global_symbol_pipe \
17949 lt_cv_sys_global_symbol_to_cdecl \
17950 lt_cv_sys_global_symbol_to_c_name_address \
17951 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17952 lt_prog_compiler_no_builtin_flag \
17953 lt_prog_compiler_wl \
17954 lt_prog_compiler_pic \
17955 lt_prog_compiler_static \
17956 lt_cv_prog_compiler_c_o \
17957 need_locks \
17958 DSYMUTIL \
17959 NMEDIT \
17960 LIPO \
17961 OTOOL \
17962 OTOOL64 \
17963 shrext_cmds \
17964 export_dynamic_flag_spec \
17965 whole_archive_flag_spec \
17966 compiler_needs_object \
17967 with_gnu_ld \
17968 allow_undefined_flag \
17969 no_undefined_flag \
17970 hardcode_libdir_flag_spec \
17971 hardcode_libdir_flag_spec_ld \
17972 hardcode_libdir_separator \
17973 fix_srcfile_path \
17974 exclude_expsyms \
17975 include_expsyms \
17976 file_list_spec \
17977 variables_saved_for_relink \
17978 libname_spec \
17979 library_names_spec \
17980 soname_spec \
17981 install_override_mode \
17982 finish_eval \
17983 old_striplib \
17984 striplib; do
17985 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17986 *[\\\\\\\`\\"\\\$]*)
17987 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17988 ;;
17989 *)
17990 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17991 ;;
17992 esac
17993 done
17994
17995 # Double-quote double-evaled strings.
17996 for var in reload_cmds \
17997 old_postinstall_cmds \
17998 old_postuninstall_cmds \
17999 old_archive_cmds \
18000 extract_expsyms_cmds \
18001 old_archive_from_new_cmds \
18002 old_archive_from_expsyms_cmds \
18003 archive_cmds \
18004 archive_expsym_cmds \
18005 module_cmds \
18006 module_expsym_cmds \
18007 export_symbols_cmds \
18008 prelink_cmds \
18009 postinstall_cmds \
18010 postuninstall_cmds \
18011 finish_cmds \
18012 sys_lib_search_path_spec \
18013 sys_lib_dlsearch_path_spec; do
18014 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18015 *[\\\\\\\`\\"\\\$]*)
18016 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18017 ;;
18018 *)
18019 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18020 ;;
18021 esac
18022 done
18023
18024 ac_aux_dir='$ac_aux_dir'
18025 xsi_shell='$xsi_shell'
18026 lt_shell_append='$lt_shell_append'
18027
18028 # See if we are running on zsh, and set the options which allow our
18029 # commands through without removal of \ escapes INIT.
18030 if test -n "\${ZSH_VERSION+set}" ; then
18031 setopt NO_GLOB_SUBST
18032 fi
18033
18034
18035 PACKAGE='$PACKAGE'
18036 VERSION='$VERSION'
18037 TIMESTAMP='$TIMESTAMP'
18038 RM='$RM'
18039 ofile='$ofile'
18040
18041 ac_aux_dir='$ac_aux_dir'
18042
18043
18044
18045 _ACEOF
18046
18047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18048
18049 # Handling of arguments.
18050 for ac_config_target in $ac_config_targets
18051 do
18052 case $ac_config_target in
18053 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18054 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18055 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18056 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18057 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18058
18059 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18060 esac
18061 done
18062
18063
18064 # If the user did not use the arguments to specify the items to instantiate,
18065 # then the envvar interface is used. Set only those that are not.
18066 # We use the long form for the default assignment because of an extremely
18067 # bizarre bug on SunOS 4.1.3.
18068 if $ac_need_defaults; then
18069 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18070 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18071 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18072 fi
18073
18074 # Have a temporary directory for convenience. Make it in the build tree
18075 # simply because there is no reason against having it here, and in addition,
18076 # creating and moving files from /tmp can sometimes cause problems.
18077 # Hook for its removal unless debugging.
18078 # Note that there is a small window in which the directory will not be cleaned:
18079 # after its creation but before its name has been assigned to `$tmp'.
18080 $debug ||
18081 {
18082 tmp= ac_tmp=
18083 trap 'exit_status=$?
18084 : "${ac_tmp:=$tmp}"
18085 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18086 ' 0
18087 trap 'as_fn_exit 1' 1 2 13 15
18088 }
18089 # Create a (secure) tmp directory for tmp files.
18090
18091 {
18092 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18093 test -d "$tmp"
18094 } ||
18095 {
18096 tmp=./conf$$-$RANDOM
18097 (umask 077 && mkdir "$tmp")
18098 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18099 ac_tmp=$tmp
18100
18101 # Set up the scripts for CONFIG_FILES section.
18102 # No need to generate them if there are no CONFIG_FILES.
18103 # This happens for instance with `./config.status config.h'.
18104 if test -n "$CONFIG_FILES"; then
18105
18106
18107 ac_cr=`echo X | tr X '\015'`
18108 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18109 # But we know of no other shell where ac_cr would be empty at this
18110 # point, so we can use a bashism as a fallback.
18111 if test "x$ac_cr" = x; then
18112 eval ac_cr=\$\'\\r\'
18113 fi
18114 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18115 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18116 ac_cs_awk_cr='\\r'
18117 else
18118 ac_cs_awk_cr=$ac_cr
18119 fi
18120
18121 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18122 _ACEOF
18123
18124
18125 {
18126 echo "cat >conf$$subs.awk <<_ACEOF" &&
18127 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18128 echo "_ACEOF"
18129 } >conf$$subs.sh ||
18130 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18131 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18132 ac_delim='%!_!# '
18133 for ac_last_try in false false false false false :; do
18134 . ./conf$$subs.sh ||
18135 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18136
18137 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18138 if test $ac_delim_n = $ac_delim_num; then
18139 break
18140 elif $ac_last_try; then
18141 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18142 else
18143 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18144 fi
18145 done
18146 rm -f conf$$subs.sh
18147
18148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18149 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18150 _ACEOF
18151 sed -n '
18152 h
18153 s/^/S["/; s/!.*/"]=/
18154 p
18155 g
18156 s/^[^!]*!//
18157 :repl
18158 t repl
18159 s/'"$ac_delim"'$//
18160 t delim
18161 :nl
18162 h
18163 s/\(.\{148\}\)..*/\1/
18164 t more1
18165 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18166 p
18167 n
18168 b repl
18169 :more1
18170 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18171 p
18172 g
18173 s/.\{148\}//
18174 t nl
18175 :delim
18176 h
18177 s/\(.\{148\}\)..*/\1/
18178 t more2
18179 s/["\\]/\\&/g; s/^/"/; s/$/"/
18180 p
18181 b
18182 :more2
18183 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18184 p
18185 g
18186 s/.\{148\}//
18187 t delim
18188 ' <conf$$subs.awk | sed '
18189 /^[^""]/{
18190 N
18191 s/\n//
18192 }
18193 ' >>$CONFIG_STATUS || ac_write_fail=1
18194 rm -f conf$$subs.awk
18195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18196 _ACAWK
18197 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18198 for (key in S) S_is_set[key] = 1
18199 FS = ""
18200
18201 }
18202 {
18203 line = $ 0
18204 nfields = split(line, field, "@")
18205 substed = 0
18206 len = length(field[1])
18207 for (i = 2; i < nfields; i++) {
18208 key = field[i]
18209 keylen = length(key)
18210 if (S_is_set[key]) {
18211 value = S[key]
18212 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18213 len += length(value) + length(field[++i])
18214 substed = 1
18215 } else
18216 len += 1 + keylen
18217 }
18218
18219 print line
18220 }
18221
18222 _ACAWK
18223 _ACEOF
18224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18225 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18226 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18227 else
18228 cat
18229 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18230 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18231 _ACEOF
18232
18233 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18234 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18235 # trailing colons and then remove the whole line if VPATH becomes empty
18236 # (actually we leave an empty line to preserve line numbers).
18237 if test "x$srcdir" = x.; then
18238 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18239 h
18240 s///
18241 s/^/:/
18242 s/[ ]*$/:/
18243 s/:\$(srcdir):/:/g
18244 s/:\${srcdir}:/:/g
18245 s/:@srcdir@:/:/g
18246 s/^:*//
18247 s/:*$//
18248 x
18249 s/\(=[ ]*\).*/\1/
18250 G
18251 s/\n//
18252 s/^[^=]*=[ ]*$//
18253 }'
18254 fi
18255
18256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18257 fi # test -n "$CONFIG_FILES"
18258
18259 # Set up the scripts for CONFIG_HEADERS section.
18260 # No need to generate them if there are no CONFIG_HEADERS.
18261 # This happens for instance with `./config.status Makefile'.
18262 if test -n "$CONFIG_HEADERS"; then
18263 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18264 BEGIN {
18265 _ACEOF
18266
18267 # Transform confdefs.h into an awk script `defines.awk', embedded as
18268 # here-document in config.status, that substitutes the proper values into
18269 # config.h.in to produce config.h.
18270
18271 # Create a delimiter string that does not exist in confdefs.h, to ease
18272 # handling of long lines.
18273 ac_delim='%!_!# '
18274 for ac_last_try in false false :; do
18275 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18276 if test -z "$ac_tt"; then
18277 break
18278 elif $ac_last_try; then
18279 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18280 else
18281 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18282 fi
18283 done
18284
18285 # For the awk script, D is an array of macro values keyed by name,
18286 # likewise P contains macro parameters if any. Preserve backslash
18287 # newline sequences.
18288
18289 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18290 sed -n '
18291 s/.\{148\}/&'"$ac_delim"'/g
18292 t rset
18293 :rset
18294 s/^[ ]*#[ ]*define[ ][ ]*/ /
18295 t def
18296 d
18297 :def
18298 s/\\$//
18299 t bsnl
18300 s/["\\]/\\&/g
18301 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18302 D["\1"]=" \3"/p
18303 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18304 d
18305 :bsnl
18306 s/["\\]/\\&/g
18307 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18308 D["\1"]=" \3\\\\\\n"\\/p
18309 t cont
18310 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18311 t cont
18312 d
18313 :cont
18314 n
18315 s/.\{148\}/&'"$ac_delim"'/g
18316 t clear
18317 :clear
18318 s/\\$//
18319 t bsnlc
18320 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18321 d
18322 :bsnlc
18323 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18324 b cont
18325 ' <confdefs.h | sed '
18326 s/'"$ac_delim"'/"\\\
18327 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18328
18329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18330 for (key in D) D_is_set[key] = 1
18331 FS = ""
18332 }
18333 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18334 line = \$ 0
18335 split(line, arg, " ")
18336 if (arg[1] == "#") {
18337 defundef = arg[2]
18338 mac1 = arg[3]
18339 } else {
18340 defundef = substr(arg[1], 2)
18341 mac1 = arg[2]
18342 }
18343 split(mac1, mac2, "(") #)
18344 macro = mac2[1]
18345 prefix = substr(line, 1, index(line, defundef) - 1)
18346 if (D_is_set[macro]) {
18347 # Preserve the white space surrounding the "#".
18348 print prefix "define", macro P[macro] D[macro]
18349 next
18350 } else {
18351 # Replace #undef with comments. This is necessary, for example,
18352 # in the case of _POSIX_SOURCE, which is predefined and required
18353 # on some systems where configure will not decide to define it.
18354 if (defundef == "undef") {
18355 print "/*", prefix defundef, macro, "*/"
18356 next
18357 }
18358 }
18359 }
18360 { print }
18361 _ACAWK
18362 _ACEOF
18363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18364 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18365 fi # test -n "$CONFIG_HEADERS"
18366
18367
18368 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18369 shift
18370 for ac_tag
18371 do
18372 case $ac_tag in
18373 :[FHLC]) ac_mode=$ac_tag; continue;;
18374 esac
18375 case $ac_mode$ac_tag in
18376 :[FHL]*:*);;
18377 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18378 :[FH]-) ac_tag=-:-;;
18379 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18380 esac
18381 ac_save_IFS=$IFS
18382 IFS=:
18383 set x $ac_tag
18384 IFS=$ac_save_IFS
18385 shift
18386 ac_file=$1
18387 shift
18388
18389 case $ac_mode in
18390 :L) ac_source=$1;;
18391 :[FH])
18392 ac_file_inputs=
18393 for ac_f
18394 do
18395 case $ac_f in
18396 -) ac_f="$ac_tmp/stdin";;
18397 *) # Look for the file first in the build tree, then in the source tree
18398 # (if the path is not absolute). The absolute path cannot be DOS-style,
18399 # because $ac_f cannot contain `:'.
18400 test -f "$ac_f" ||
18401 case $ac_f in
18402 [\\/$]*) false;;
18403 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18404 esac ||
18405 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18406 esac
18407 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18408 as_fn_append ac_file_inputs " '$ac_f'"
18409 done
18410
18411 # Let's still pretend it is `configure' which instantiates (i.e., don't
18412 # use $as_me), people would be surprised to read:
18413 # /* config.h. Generated by config.status. */
18414 configure_input='Generated from '`
18415 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18416 `' by configure.'
18417 if test x"$ac_file" != x-; then
18418 configure_input="$ac_file. $configure_input"
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18420 $as_echo "$as_me: creating $ac_file" >&6;}
18421 fi
18422 # Neutralize special characters interpreted by sed in replacement strings.
18423 case $configure_input in #(
18424 *\&* | *\|* | *\\* )
18425 ac_sed_conf_input=`$as_echo "$configure_input" |
18426 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18427 *) ac_sed_conf_input=$configure_input;;
18428 esac
18429
18430 case $ac_tag in
18431 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18432 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18433 esac
18434 ;;
18435 esac
18436
18437 ac_dir=`$as_dirname -- "$ac_file" ||
18438 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18439 X"$ac_file" : 'X\(//\)[^/]' \| \
18440 X"$ac_file" : 'X\(//\)$' \| \
18441 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18442 $as_echo X"$ac_file" |
18443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18444 s//\1/
18445 q
18446 }
18447 /^X\(\/\/\)[^/].*/{
18448 s//\1/
18449 q
18450 }
18451 /^X\(\/\/\)$/{
18452 s//\1/
18453 q
18454 }
18455 /^X\(\/\).*/{
18456 s//\1/
18457 q
18458 }
18459 s/.*/./; q'`
18460 as_dir="$ac_dir"; as_fn_mkdir_p
18461 ac_builddir=.
18462
18463 case "$ac_dir" in
18464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18465 *)
18466 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18467 # A ".." for each directory in $ac_dir_suffix.
18468 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18469 case $ac_top_builddir_sub in
18470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18472 esac ;;
18473 esac
18474 ac_abs_top_builddir=$ac_pwd
18475 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18476 # for backward compatibility:
18477 ac_top_builddir=$ac_top_build_prefix
18478
18479 case $srcdir in
18480 .) # We are building in place.
18481 ac_srcdir=.
18482 ac_top_srcdir=$ac_top_builddir_sub
18483 ac_abs_top_srcdir=$ac_pwd ;;
18484 [\\/]* | ?:[\\/]* ) # Absolute name.
18485 ac_srcdir=$srcdir$ac_dir_suffix;
18486 ac_top_srcdir=$srcdir
18487 ac_abs_top_srcdir=$srcdir ;;
18488 *) # Relative name.
18489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18490 ac_top_srcdir=$ac_top_build_prefix$srcdir
18491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18492 esac
18493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18494
18495
18496 case $ac_mode in
18497 :F)
18498 #
18499 # CONFIG_FILE
18500 #
18501
18502 case $INSTALL in
18503 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18504 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18505 esac
18506 ac_MKDIR_P=$MKDIR_P
18507 case $MKDIR_P in
18508 [\\/$]* | ?:[\\/]* ) ;;
18509 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18510 esac
18511 _ACEOF
18512
18513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18514 # If the template does not know about datarootdir, expand it.
18515 # FIXME: This hack should be removed a few years after 2.60.
18516 ac_datarootdir_hack=; ac_datarootdir_seen=
18517 ac_sed_dataroot='
18518 /datarootdir/ {
18519 p
18520 q
18521 }
18522 /@datadir@/p
18523 /@docdir@/p
18524 /@infodir@/p
18525 /@localedir@/p
18526 /@mandir@/p'
18527 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18528 *datarootdir*) ac_datarootdir_seen=yes;;
18529 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18531 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18532 _ACEOF
18533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18534 ac_datarootdir_hack='
18535 s&@datadir@&$datadir&g
18536 s&@docdir@&$docdir&g
18537 s&@infodir@&$infodir&g
18538 s&@localedir@&$localedir&g
18539 s&@mandir@&$mandir&g
18540 s&\\\${datarootdir}&$datarootdir&g' ;;
18541 esac
18542 _ACEOF
18543
18544 # Neutralize VPATH when `$srcdir' = `.'.
18545 # Shell code in configure.ac might set extrasub.
18546 # FIXME: do we really want to maintain this feature?
18547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18548 ac_sed_extra="$ac_vpsub
18549 $extrasub
18550 _ACEOF
18551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18552 :t
18553 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18554 s|@configure_input@|$ac_sed_conf_input|;t t
18555 s&@top_builddir@&$ac_top_builddir_sub&;t t
18556 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18557 s&@srcdir@&$ac_srcdir&;t t
18558 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18559 s&@top_srcdir@&$ac_top_srcdir&;t t
18560 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18561 s&@builddir@&$ac_builddir&;t t
18562 s&@abs_builddir@&$ac_abs_builddir&;t t
18563 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18564 s&@INSTALL@&$ac_INSTALL&;t t
18565 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18566 $ac_datarootdir_hack
18567 "
18568 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18569 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18570
18571 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18572 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18573 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18574 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18576 which seems to be undefined. Please make sure it is defined" >&5
18577 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18578 which seems to be undefined. Please make sure it is defined" >&2;}
18579
18580 rm -f "$ac_tmp/stdin"
18581 case $ac_file in
18582 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18583 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18584 esac \
18585 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18586 ;;
18587 :H)
18588 #
18589 # CONFIG_HEADER
18590 #
18591 if test x"$ac_file" != x-; then
18592 {
18593 $as_echo "/* $configure_input */" \
18594 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18595 } >"$ac_tmp/config.h" \
18596 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18597 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18599 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18600 else
18601 rm -f "$ac_file"
18602 mv "$ac_tmp/config.h" "$ac_file" \
18603 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18604 fi
18605 else
18606 $as_echo "/* $configure_input */" \
18607 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18608 || as_fn_error $? "could not create -" "$LINENO" 5
18609 fi
18610 # Compute "$ac_file"'s index in $config_headers.
18611 _am_arg="$ac_file"
18612 _am_stamp_count=1
18613 for _am_header in $config_headers :; do
18614 case $_am_header in
18615 $_am_arg | $_am_arg:* )
18616 break ;;
18617 * )
18618 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18619 esac
18620 done
18621 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18622 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18623 X"$_am_arg" : 'X\(//\)[^/]' \| \
18624 X"$_am_arg" : 'X\(//\)$' \| \
18625 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18626 $as_echo X"$_am_arg" |
18627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18628 s//\1/
18629 q
18630 }
18631 /^X\(\/\/\)[^/].*/{
18632 s//\1/
18633 q
18634 }
18635 /^X\(\/\/\)$/{
18636 s//\1/
18637 q
18638 }
18639 /^X\(\/\).*/{
18640 s//\1/
18641 q
18642 }
18643 s/.*/./; q'`/stamp-h$_am_stamp_count
18644 ;;
18645
18646 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18647 $as_echo "$as_me: executing $ac_file commands" >&6;}
18648 ;;
18649 esac
18650
18651
18652 case $ac_file$ac_mode in
18653 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18654 # Older Autoconf quotes --file arguments for eval, but not when files
18655 # are listed without --file. Let's play safe and only enable the eval
18656 # if we detect the quoting.
18657 case $CONFIG_FILES in
18658 *\'*) eval set x "$CONFIG_FILES" ;;
18659 *) set x $CONFIG_FILES ;;
18660 esac
18661 shift
18662 for mf
18663 do
18664 # Strip MF so we end up with the name of the file.
18665 mf=`echo "$mf" | sed -e 's/:.*$//'`
18666 # Check whether this is an Automake generated Makefile or not.
18667 # We used to match only the files named 'Makefile.in', but
18668 # some people rename them; so instead we look at the file content.
18669 # Grep'ing the first line is not enough: some people post-process
18670 # each Makefile.in and add a new line on top of each file to say so.
18671 # Grep'ing the whole file is not good either: AIX grep has a line
18672 # limit of 2048, but all sed's we know have understand at least 4000.
18673 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18674 dirpart=`$as_dirname -- "$mf" ||
18675 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18676 X"$mf" : 'X\(//\)[^/]' \| \
18677 X"$mf" : 'X\(//\)$' \| \
18678 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18679 $as_echo X"$mf" |
18680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18681 s//\1/
18682 q
18683 }
18684 /^X\(\/\/\)[^/].*/{
18685 s//\1/
18686 q
18687 }
18688 /^X\(\/\/\)$/{
18689 s//\1/
18690 q
18691 }
18692 /^X\(\/\).*/{
18693 s//\1/
18694 q
18695 }
18696 s/.*/./; q'`
18697 else
18698 continue
18699 fi
18700 # Extract the definition of DEPDIR, am__include, and am__quote
18701 # from the Makefile without running 'make'.
18702 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18703 test -z "$DEPDIR" && continue
18704 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18705 test -z "$am__include" && continue
18706 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18707 # Find all dependency output files, they are included files with
18708 # $(DEPDIR) in their names. We invoke sed twice because it is the
18709 # simplest approach to changing $(DEPDIR) to its actual value in the
18710 # expansion.
18711 for file in `sed -n "
18712 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18713 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18714 # Make sure the directory exists.
18715 test -f "$dirpart/$file" && continue
18716 fdir=`$as_dirname -- "$file" ||
18717 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18718 X"$file" : 'X\(//\)[^/]' \| \
18719 X"$file" : 'X\(//\)$' \| \
18720 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18721 $as_echo X"$file" |
18722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18723 s//\1/
18724 q
18725 }
18726 /^X\(\/\/\)[^/].*/{
18727 s//\1/
18728 q
18729 }
18730 /^X\(\/\/\)$/{
18731 s//\1/
18732 q
18733 }
18734 /^X\(\/\).*/{
18735 s//\1/
18736 q
18737 }
18738 s/.*/./; q'`
18739 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18740 # echo "creating $dirpart/$file"
18741 echo '# dummy' > "$dirpart/$file"
18742 done
18743 done
18744 }
18745 ;;
18746 "default-1":C)
18747 for ac_file in $CONFIG_FILES; do
18748 # Support "outfile[:infile[:infile...]]"
18749 case "$ac_file" in
18750 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18751 esac
18752 # PO directories have a Makefile.in generated from Makefile.in.in.
18753 case "$ac_file" in */Makefile.in)
18754 # Adjust a relative srcdir.
18755 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18756 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
18757 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18758 # In autoconf-2.13 it is called $ac_given_srcdir.
18759 # In autoconf-2.50 it is called $srcdir.
18760 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18761 case "$ac_given_srcdir" in
18762 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18763 /*) top_srcdir="$ac_given_srcdir" ;;
18764 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18765 esac
18766 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18767 rm -f "$ac_dir/POTFILES"
18768 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18769 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18770 POMAKEFILEDEPS="POTFILES.in"
18771 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18772 # on $ac_dir but don't depend on user-specified configuration
18773 # parameters.
18774 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18775 # The LINGUAS file contains the set of available languages.
18776 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18777 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
18778 fi
18779 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18780 # Hide the ALL_LINGUAS assigment from automake.
18781 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18782 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18783 else
18784 # The set of available languages was given in configure.ac.
18785 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18786 fi
18787 case "$ac_given_srcdir" in
18788 .) srcdirpre= ;;
18789 *) srcdirpre='$(srcdir)/' ;;
18790 esac
18791 POFILES=
18792 GMOFILES=
18793 UPDATEPOFILES=
18794 DUMMYPOFILES=
18795 for lang in $ALL_LINGUAS; do
18796 POFILES="$POFILES $srcdirpre$lang.po"
18797 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18798 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18799 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18800 done
18801 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18802 # environment variable.
18803 INST_LINGUAS=
18804 if test -n "$ALL_LINGUAS"; then
18805 for presentlang in $ALL_LINGUAS; do
18806 useit=no
18807 if test "%UNSET%" != "$LINGUAS"; then
18808 desiredlanguages="$LINGUAS"
18809 else
18810 desiredlanguages="$ALL_LINGUAS"
18811 fi
18812 for desiredlang in $desiredlanguages; do
18813 # Use the presentlang catalog if desiredlang is
18814 # a. equal to presentlang, or
18815 # b. a variant of presentlang (because in this case,
18816 # presentlang can be used as a fallback for messages
18817 # which are not translated in the desiredlang catalog).
18818 case "$desiredlang" in
18819 "$presentlang"*) useit=yes;;
18820 esac
18821 done
18822 if test $useit = yes; then
18823 INST_LINGUAS="$INST_LINGUAS $presentlang"
18824 fi
18825 done
18826 fi
18827 CATALOGS=
18828 if test -n "$INST_LINGUAS"; then
18829 for lang in $INST_LINGUAS; do
18830 CATALOGS="$CATALOGS $lang.gmo"
18831 done
18832 fi
18833 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18834 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"
18835 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18836 if test -f "$f"; then
18837 case "$f" in
18838 *.orig | *.bak | *~) ;;
18839 *) cat "$f" >> "$ac_dir/Makefile" ;;
18840 esac
18841 fi
18842 done
18843 fi
18844 ;;
18845 esac
18846 done ;;
18847 "libtool":C)
18848
18849 # See if we are running on zsh, and set the options which allow our
18850 # commands through without removal of \ escapes.
18851 if test -n "${ZSH_VERSION+set}" ; then
18852 setopt NO_GLOB_SUBST
18853 fi
18854
18855 cfgfile="${ofile}T"
18856 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18857 $RM "$cfgfile"
18858
18859 cat <<_LT_EOF >> "$cfgfile"
18860 #! $SHELL
18861
18862 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18863 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18864 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18865 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18866 #
18867 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18868 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18869 # Written by Gordon Matzigkeit, 1996
18870 #
18871 # This file is part of GNU Libtool.
18872 #
18873 # GNU Libtool is free software; you can redistribute it and/or
18874 # modify it under the terms of the GNU General Public License as
18875 # published by the Free Software Foundation; either version 2 of
18876 # the License, or (at your option) any later version.
18877 #
18878 # As a special exception to the GNU General Public License,
18879 # if you distribute this file as part of a program or library that
18880 # is built using GNU Libtool, you may include this file under the
18881 # same distribution terms that you use for the rest of that program.
18882 #
18883 # GNU Libtool is distributed in the hope that it will be useful,
18884 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18885 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18886 # GNU General Public License for more details.
18887 #
18888 # You should have received a copy of the GNU General Public License
18889 # along with GNU Libtool; see the file COPYING. If not, a copy
18890 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18891 # obtained by writing to the Free Software Foundation, Inc.,
18892 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18893
18894
18895 # The names of the tagged configurations supported by this script.
18896 available_tags=""
18897
18898 # ### BEGIN LIBTOOL CONFIG
18899
18900 # Whether or not to build shared libraries.
18901 build_libtool_libs=$enable_shared
18902
18903 # Which release of libtool.m4 was used?
18904 macro_version=$macro_version
18905 macro_revision=$macro_revision
18906
18907 # Whether or not to build static libraries.
18908 build_old_libs=$enable_static
18909
18910 # What type of objects to build.
18911 pic_mode=$pic_mode
18912
18913 # Whether or not to optimize for fast installation.
18914 fast_install=$enable_fast_install
18915
18916 # Shell to use when invoking shell scripts.
18917 SHELL=$lt_SHELL
18918
18919 # An echo program that protects backslashes.
18920 ECHO=$lt_ECHO
18921
18922 # The host system.
18923 host_alias=$host_alias
18924 host=$host
18925 host_os=$host_os
18926
18927 # The build system.
18928 build_alias=$build_alias
18929 build=$build
18930 build_os=$build_os
18931
18932 # A sed program that does not truncate output.
18933 SED=$lt_SED
18934
18935 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18936 Xsed="\$SED -e 1s/^X//"
18937
18938 # A grep program that handles long lines.
18939 GREP=$lt_GREP
18940
18941 # An ERE matcher.
18942 EGREP=$lt_EGREP
18943
18944 # A literal string matcher.
18945 FGREP=$lt_FGREP
18946
18947 # A BSD- or MS-compatible name lister.
18948 NM=$lt_NM
18949
18950 # Whether we need soft or hard links.
18951 LN_S=$lt_LN_S
18952
18953 # What is the maximum length of a command?
18954 max_cmd_len=$max_cmd_len
18955
18956 # Object file suffix (normally "o").
18957 objext=$ac_objext
18958
18959 # Executable file suffix (normally "").
18960 exeext=$exeext
18961
18962 # whether the shell understands "unset".
18963 lt_unset=$lt_unset
18964
18965 # turn spaces into newlines.
18966 SP2NL=$lt_lt_SP2NL
18967
18968 # turn newlines into spaces.
18969 NL2SP=$lt_lt_NL2SP
18970
18971 # An object symbol dumper.
18972 OBJDUMP=$lt_OBJDUMP
18973
18974 # Method to check whether dependent libraries are shared objects.
18975 deplibs_check_method=$lt_deplibs_check_method
18976
18977 # Command to use when deplibs_check_method == "file_magic".
18978 file_magic_cmd=$lt_file_magic_cmd
18979
18980 # The archiver.
18981 AR=$lt_AR
18982 AR_FLAGS=$lt_AR_FLAGS
18983
18984 # A symbol stripping program.
18985 STRIP=$lt_STRIP
18986
18987 # Commands used to install an old-style archive.
18988 RANLIB=$lt_RANLIB
18989 old_postinstall_cmds=$lt_old_postinstall_cmds
18990 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18991
18992 # Whether to use a lock for old archive extraction.
18993 lock_old_archive_extraction=$lock_old_archive_extraction
18994
18995 # A C compiler.
18996 LTCC=$lt_CC
18997
18998 # LTCC compiler flags.
18999 LTCFLAGS=$lt_CFLAGS
19000
19001 # Take the output of nm and produce a listing of raw symbols and C names.
19002 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19003
19004 # Transform the output of nm in a proper C declaration.
19005 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19006
19007 # Transform the output of nm in a C name address pair.
19008 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19009
19010 # Transform the output of nm in a C name address pair when lib prefix is needed.
19011 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19012
19013 # The name of the directory that contains temporary libtool files.
19014 objdir=$objdir
19015
19016 # Used to examine libraries when file_magic_cmd begins with "file".
19017 MAGIC_CMD=$MAGIC_CMD
19018
19019 # Must we lock files when doing compilation?
19020 need_locks=$lt_need_locks
19021
19022 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19023 DSYMUTIL=$lt_DSYMUTIL
19024
19025 # Tool to change global to local symbols on Mac OS X.
19026 NMEDIT=$lt_NMEDIT
19027
19028 # Tool to manipulate fat objects and archives on Mac OS X.
19029 LIPO=$lt_LIPO
19030
19031 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19032 OTOOL=$lt_OTOOL
19033
19034 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19035 OTOOL64=$lt_OTOOL64
19036
19037 # Old archive suffix (normally "a").
19038 libext=$libext
19039
19040 # Shared library suffix (normally ".so").
19041 shrext_cmds=$lt_shrext_cmds
19042
19043 # The commands to extract the exported symbol list from a shared archive.
19044 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19045
19046 # Variables whose values should be saved in libtool wrapper scripts and
19047 # restored at link time.
19048 variables_saved_for_relink=$lt_variables_saved_for_relink
19049
19050 # Do we need the "lib" prefix for modules?
19051 need_lib_prefix=$need_lib_prefix
19052
19053 # Do we need a version for libraries?
19054 need_version=$need_version
19055
19056 # Library versioning type.
19057 version_type=$version_type
19058
19059 # Shared library runtime path variable.
19060 runpath_var=$runpath_var
19061
19062 # Shared library path variable.
19063 shlibpath_var=$shlibpath_var
19064
19065 # Is shlibpath searched before the hard-coded library search path?
19066 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19067
19068 # Format of library name prefix.
19069 libname_spec=$lt_libname_spec
19070
19071 # List of archive names. First name is the real one, the rest are links.
19072 # The last name is the one that the linker finds with -lNAME
19073 library_names_spec=$lt_library_names_spec
19074
19075 # The coded name of the library, if different from the real name.
19076 soname_spec=$lt_soname_spec
19077
19078 # Permission mode override for installation of shared libraries.
19079 install_override_mode=$lt_install_override_mode
19080
19081 # Command to use after installation of a shared archive.
19082 postinstall_cmds=$lt_postinstall_cmds
19083
19084 # Command to use after uninstallation of a shared archive.
19085 postuninstall_cmds=$lt_postuninstall_cmds
19086
19087 # Commands used to finish a libtool library installation in a directory.
19088 finish_cmds=$lt_finish_cmds
19089
19090 # As "finish_cmds", except a single script fragment to be evaled but
19091 # not shown.
19092 finish_eval=$lt_finish_eval
19093
19094 # Whether we should hardcode library paths into libraries.
19095 hardcode_into_libs=$hardcode_into_libs
19096
19097 # Compile-time system search path for libraries.
19098 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19099
19100 # Run-time system search path for libraries.
19101 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19102
19103 # Whether dlopen is supported.
19104 dlopen_support=$enable_dlopen
19105
19106 # Whether dlopen of programs is supported.
19107 dlopen_self=$enable_dlopen_self
19108
19109 # Whether dlopen of statically linked programs is supported.
19110 dlopen_self_static=$enable_dlopen_self_static
19111
19112 # Commands to strip libraries.
19113 old_striplib=$lt_old_striplib
19114 striplib=$lt_striplib
19115
19116
19117 # The linker used to build libraries.
19118 LD=$lt_LD
19119
19120 # How to create reloadable object files.
19121 reload_flag=$lt_reload_flag
19122 reload_cmds=$lt_reload_cmds
19123
19124 # Commands used to build an old-style archive.
19125 old_archive_cmds=$lt_old_archive_cmds
19126
19127 # A language specific compiler.
19128 CC=$lt_compiler
19129
19130 # Is the compiler the GNU compiler?
19131 with_gcc=$GCC
19132
19133 # Compiler flag to turn off builtin functions.
19134 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19135
19136 # How to pass a linker flag through the compiler.
19137 wl=$lt_lt_prog_compiler_wl
19138
19139 # Additional compiler flags for building library objects.
19140 pic_flag=$lt_lt_prog_compiler_pic
19141
19142 # Compiler flag to prevent dynamic linking.
19143 link_static_flag=$lt_lt_prog_compiler_static
19144
19145 # Does compiler simultaneously support -c and -o options?
19146 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19147
19148 # Whether or not to add -lc for building shared libraries.
19149 build_libtool_need_lc=$archive_cmds_need_lc
19150
19151 # Whether or not to disallow shared libs when runtime libs are static.
19152 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19153
19154 # Compiler flag to allow reflexive dlopens.
19155 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19156
19157 # Compiler flag to generate shared objects directly from archives.
19158 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19159
19160 # Whether the compiler copes with passing no objects directly.
19161 compiler_needs_object=$lt_compiler_needs_object
19162
19163 # Create an old-style archive from a shared archive.
19164 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19165
19166 # Create a temporary old-style archive to link instead of a shared archive.
19167 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19168
19169 # Commands used to build a shared archive.
19170 archive_cmds=$lt_archive_cmds
19171 archive_expsym_cmds=$lt_archive_expsym_cmds
19172
19173 # Commands used to build a loadable module if different from building
19174 # a shared archive.
19175 module_cmds=$lt_module_cmds
19176 module_expsym_cmds=$lt_module_expsym_cmds
19177
19178 # Whether we are building with GNU ld or not.
19179 with_gnu_ld=$lt_with_gnu_ld
19180
19181 # Flag that allows shared libraries with undefined symbols to be built.
19182 allow_undefined_flag=$lt_allow_undefined_flag
19183
19184 # Flag that enforces no undefined symbols.
19185 no_undefined_flag=$lt_no_undefined_flag
19186
19187 # Flag to hardcode \$libdir into a binary during linking.
19188 # This must work even if \$libdir does not exist
19189 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19190
19191 # If ld is used when linking, flag to hardcode \$libdir into a binary
19192 # during linking. This must work even if \$libdir does not exist.
19193 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19194
19195 # Whether we need a single "-rpath" flag with a separated argument.
19196 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19197
19198 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19199 # DIR into the resulting binary.
19200 hardcode_direct=$hardcode_direct
19201
19202 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19203 # DIR into the resulting binary and the resulting library dependency is
19204 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19205 # library is relocated.
19206 hardcode_direct_absolute=$hardcode_direct_absolute
19207
19208 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19209 # into the resulting binary.
19210 hardcode_minus_L=$hardcode_minus_L
19211
19212 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19213 # into the resulting binary.
19214 hardcode_shlibpath_var=$hardcode_shlibpath_var
19215
19216 # Set to "yes" if building a shared library automatically hardcodes DIR
19217 # into the library and all subsequent libraries and executables linked
19218 # against it.
19219 hardcode_automatic=$hardcode_automatic
19220
19221 # Set to yes if linker adds runtime paths of dependent libraries
19222 # to runtime path list.
19223 inherit_rpath=$inherit_rpath
19224
19225 # Whether libtool must link a program against all its dependency libraries.
19226 link_all_deplibs=$link_all_deplibs
19227
19228 # Fix the shell variable \$srcfile for the compiler.
19229 fix_srcfile_path=$lt_fix_srcfile_path
19230
19231 # Set to "yes" if exported symbols are required.
19232 always_export_symbols=$always_export_symbols
19233
19234 # The commands to list exported symbols.
19235 export_symbols_cmds=$lt_export_symbols_cmds
19236
19237 # Symbols that should not be listed in the preloaded symbols.
19238 exclude_expsyms=$lt_exclude_expsyms
19239
19240 # Symbols that must always be exported.
19241 include_expsyms=$lt_include_expsyms
19242
19243 # Commands necessary for linking programs (against libraries) with templates.
19244 prelink_cmds=$lt_prelink_cmds
19245
19246 # Specify filename containing input files.
19247 file_list_spec=$lt_file_list_spec
19248
19249 # How to hardcode a shared library path into an executable.
19250 hardcode_action=$hardcode_action
19251
19252 # ### END LIBTOOL CONFIG
19253
19254 _LT_EOF
19255
19256 case $host_os in
19257 aix3*)
19258 cat <<\_LT_EOF >> "$cfgfile"
19259 # AIX sometimes has problems with the GCC collect2 program. For some
19260 # reason, if we set the COLLECT_NAMES environment variable, the problems
19261 # vanish in a puff of smoke.
19262 if test "X${COLLECT_NAMES+set}" != Xset; then
19263 COLLECT_NAMES=
19264 export COLLECT_NAMES
19265 fi
19266 _LT_EOF
19267 ;;
19268 esac
19269
19270
19271 ltmain="$ac_aux_dir/ltmain.sh"
19272
19273
19274 # We use sed instead of cat because bash on DJGPP gets confused if
19275 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19276 # text mode, it properly converts lines to CR/LF. This bash problem
19277 # is reportedly fixed, but why not run on old versions too?
19278 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19279 || (rm -f "$cfgfile"; exit 1)
19280
19281 case $xsi_shell in
19282 yes)
19283 cat << \_LT_EOF >> "$cfgfile"
19284
19285 # func_dirname file append nondir_replacement
19286 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19287 # otherwise set result to NONDIR_REPLACEMENT.
19288 func_dirname ()
19289 {
19290 case ${1} in
19291 */*) func_dirname_result="${1%/*}${2}" ;;
19292 * ) func_dirname_result="${3}" ;;
19293 esac
19294 }
19295
19296 # func_basename file
19297 func_basename ()
19298 {
19299 func_basename_result="${1##*/}"
19300 }
19301
19302 # func_dirname_and_basename file append nondir_replacement
19303 # perform func_basename and func_dirname in a single function
19304 # call:
19305 # dirname: Compute the dirname of FILE. If nonempty,
19306 # add APPEND to the result, otherwise set result
19307 # to NONDIR_REPLACEMENT.
19308 # value returned in "$func_dirname_result"
19309 # basename: Compute filename of FILE.
19310 # value retuned in "$func_basename_result"
19311 # Implementation must be kept synchronized with func_dirname
19312 # and func_basename. For efficiency, we do not delegate to
19313 # those functions but instead duplicate the functionality here.
19314 func_dirname_and_basename ()
19315 {
19316 case ${1} in
19317 */*) func_dirname_result="${1%/*}${2}" ;;
19318 * ) func_dirname_result="${3}" ;;
19319 esac
19320 func_basename_result="${1##*/}"
19321 }
19322
19323 # func_stripname prefix suffix name
19324 # strip PREFIX and SUFFIX off of NAME.
19325 # PREFIX and SUFFIX must not contain globbing or regex special
19326 # characters, hashes, percent signs, but SUFFIX may contain a leading
19327 # dot (in which case that matches only a dot).
19328 func_stripname ()
19329 {
19330 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19331 # positional parameters, so assign one to ordinary parameter first.
19332 func_stripname_result=${3}
19333 func_stripname_result=${func_stripname_result#"${1}"}
19334 func_stripname_result=${func_stripname_result%"${2}"}
19335 }
19336
19337 # func_opt_split
19338 func_opt_split ()
19339 {
19340 func_opt_split_opt=${1%%=*}
19341 func_opt_split_arg=${1#*=}
19342 }
19343
19344 # func_lo2o object
19345 func_lo2o ()
19346 {
19347 case ${1} in
19348 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19349 *) func_lo2o_result=${1} ;;
19350 esac
19351 }
19352
19353 # func_xform libobj-or-source
19354 func_xform ()
19355 {
19356 func_xform_result=${1%.*}.lo
19357 }
19358
19359 # func_arith arithmetic-term...
19360 func_arith ()
19361 {
19362 func_arith_result=$(( $* ))
19363 }
19364
19365 # func_len string
19366 # STRING may not start with a hyphen.
19367 func_len ()
19368 {
19369 func_len_result=${#1}
19370 }
19371
19372 _LT_EOF
19373 ;;
19374 *) # Bourne compatible functions.
19375 cat << \_LT_EOF >> "$cfgfile"
19376
19377 # func_dirname file append nondir_replacement
19378 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19379 # otherwise set result to NONDIR_REPLACEMENT.
19380 func_dirname ()
19381 {
19382 # Extract subdirectory from the argument.
19383 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19384 if test "X$func_dirname_result" = "X${1}"; then
19385 func_dirname_result="${3}"
19386 else
19387 func_dirname_result="$func_dirname_result${2}"
19388 fi
19389 }
19390
19391 # func_basename file
19392 func_basename ()
19393 {
19394 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19395 }
19396
19397
19398 # func_stripname prefix suffix name
19399 # strip PREFIX and SUFFIX off of NAME.
19400 # PREFIX and SUFFIX must not contain globbing or regex special
19401 # characters, hashes, percent signs, but SUFFIX may contain a leading
19402 # dot (in which case that matches only a dot).
19403 # func_strip_suffix prefix name
19404 func_stripname ()
19405 {
19406 case ${2} in
19407 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19408 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19409 esac
19410 }
19411
19412 # sed scripts:
19413 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19414 my_sed_long_arg='1s/^-[^=]*=//'
19415
19416 # func_opt_split
19417 func_opt_split ()
19418 {
19419 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19420 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19421 }
19422
19423 # func_lo2o object
19424 func_lo2o ()
19425 {
19426 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19427 }
19428
19429 # func_xform libobj-or-source
19430 func_xform ()
19431 {
19432 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19433 }
19434
19435 # func_arith arithmetic-term...
19436 func_arith ()
19437 {
19438 func_arith_result=`expr "$@"`
19439 }
19440
19441 # func_len string
19442 # STRING may not start with a hyphen.
19443 func_len ()
19444 {
19445 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19446 }
19447
19448 _LT_EOF
19449 esac
19450
19451 case $lt_shell_append in
19452 yes)
19453 cat << \_LT_EOF >> "$cfgfile"
19454
19455 # func_append var value
19456 # Append VALUE to the end of shell variable VAR.
19457 func_append ()
19458 {
19459 eval "$1+=\$2"
19460 }
19461 _LT_EOF
19462 ;;
19463 *)
19464 cat << \_LT_EOF >> "$cfgfile"
19465
19466 # func_append var value
19467 # Append VALUE to the end of shell variable VAR.
19468 func_append ()
19469 {
19470 eval "$1=\$$1\$2"
19471 }
19472
19473 _LT_EOF
19474 ;;
19475 esac
19476
19477
19478 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19479 || (rm -f "$cfgfile"; exit 1)
19480
19481 mv -f "$cfgfile" "$ofile" ||
19482 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19483 chmod +x "$ofile"
19484
19485 ;;
19486
19487 esac
19488 done # for ac_tag
19489
19490
19491 as_fn_exit 0
19492 _ACEOF
19493 ac_clean_files=$ac_clean_files_save
19494
19495 test $ac_write_fail = 0 ||
19496 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19497
19498
19499 # configure is writing to config.log, and then calls config.status.
19500 # config.status does its own redirection, appending to config.log.
19501 # Unfortunately, on DOS this fails, as config.log is still kept open
19502 # by configure, so config.status won't be able to write to it; its
19503 # output is simply discarded. So we exec the FD to /dev/null,
19504 # effectively closing config.log, so it can be properly (re)opened and
19505 # appended to by config.status. When coming back to configure, we
19506 # need to make the FD available again.
19507 if test "$no_create" != yes; then
19508 ac_cs_success=:
19509 ac_config_status_args=
19510 test "$silent" = yes &&
19511 ac_config_status_args="$ac_config_status_args --quiet"
19512 exec 5>/dev/null
19513 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19514 exec 5>>config.log
19515 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19516 # would make configure fail if this is the last instruction.
19517 $ac_cs_success || as_fn_exit 1
19518 fi
19519 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19521 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19522 fi
19523
19524
19525
19526 touch config.status.tmp
19527 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
19528 sed '/as_fn_exit 0/i \
19529 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
19530 touch --reference=Makefile Makefile.tmp \
19531 mv Makefile.tmp Makefile \
19532 ' config.status > config.status.tmp
19533 touch --reference=config.status config.status.tmp
19534 mv config.status.tmp config.status
19535 chmod +x config.status
19536 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
19537 touch --reference=Makefile Makefile.tmp
19538 mv Makefile.tmp Makefile
19539 else
19540 rm -f config.status.tmp
19541 fi