Automatic date update in version.in
[deliverable/binutils-gdb.git] / libctf / configure
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 bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='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 ac_header_list=
633 ac_func_list=
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 VERSION_FLAGS
639 TCL_TRY_FALSE
640 TCL_TRY_TRUE
641 EXPECT
642 CTF_LIBADD
643 SHARED_LDFLAGS
644 NEED_CTF_QSORT_R_FALSE
645 NEED_CTF_QSORT_R_TRUE
646 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE
647 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE
648 zlibinc
649 zlibdir
650 ac_libctf_warn_cflags
651 bfdincludedir
652 bfdlibdir
653 target_noncanonical
654 host_noncanonical
655 INSTALL_LIBBFD_FALSE
656 INSTALL_LIBBFD_TRUE
657 MAINT
658 MAINTAINER_MODE_FALSE
659 MAINTAINER_MODE_TRUE
660 WERROR
661 WARN_PEDANTIC
662 c_warn
663 warn
664 OTOOL64
665 OTOOL
666 LIPO
667 NMEDIT
668 DSYMUTIL
669 OBJDUMP
670 LN_S
671 NM
672 ac_ct_DUMPBIN
673 DUMPBIN
674 LD
675 FGREP
676 SED
677 LIBTOOL
678 CATOBJEXT
679 GENCAT
680 INSTOBJEXT
681 DATADIRNAME
682 CATALOGS
683 POSUB
684 GMSGFMT
685 XGETTEXT
686 INCINTL
687 LIBINTL_DEP
688 LIBINTL
689 USE_NLS
690 ac_ct_AR
691 AR
692 RANLIB
693 AM_BACKSLASH
694 AM_DEFAULT_VERBOSITY
695 AM_DEFAULT_V
696 AM_V
697 am__fastdepCC_FALSE
698 am__fastdepCC_TRUE
699 CCDEPMODE
700 am__nodep
701 AMDEPBACKSLASH
702 AMDEP_FALSE
703 AMDEP_TRUE
704 am__quote
705 am__include
706 DEPDIR
707 am__untar
708 am__tar
709 AMTAR
710 am__leading_dot
711 SET_MAKE
712 AWK
713 mkdir_p
714 MKDIR_P
715 INSTALL_STRIP_PROGRAM
716 STRIP
717 install_sh
718 MAKEINFO
719 AUTOHEADER
720 AUTOMAKE
721 AUTOCONF
722 ACLOCAL
723 VERSION
724 PACKAGE
725 CYGPATH_W
726 am__isrc
727 INSTALL_DATA
728 INSTALL_SCRIPT
729 INSTALL_PROGRAM
730 EGREP
731 GREP
732 CPP
733 OBJEXT
734 EXEEXT
735 ac_ct_CC
736 CPPFLAGS
737 LDFLAGS
738 CFLAGS
739 CC
740 target_os
741 target_vendor
742 target_cpu
743 target
744 host_os
745 host_vendor
746 host_cpu
747 host
748 build_os
749 build_vendor
750 build_cpu
751 build
752 target_alias
753 host_alias
754 build_alias
755 LIBS
756 ECHO_T
757 ECHO_N
758 ECHO_C
759 DEFS
760 mandir
761 localedir
762 libdir
763 psdir
764 pdfdir
765 dvidir
766 htmldir
767 infodir
768 docdir
769 oldincludedir
770 includedir
771 localstatedir
772 sharedstatedir
773 sysconfdir
774 datadir
775 datarootdir
776 libexecdir
777 sbindir
778 bindir
779 program_transform_name
780 prefix
781 exec_prefix
782 PACKAGE_URL
783 PACKAGE_BUGREPORT
784 PACKAGE_STRING
785 PACKAGE_VERSION
786 PACKAGE_TARNAME
787 PACKAGE_NAME
788 PATH_SEPARATOR
789 SHELL'
790 ac_subst_files=''
791 ac_user_opts='
792 enable_option_checking
793 enable_dependency_tracking
794 enable_silent_rules
795 enable_shared
796 enable_static
797 with_pic
798 enable_fast_install
799 with_gnu_ld
800 enable_libtool_lock
801 enable_largefile
802 enable_werror_always
803 enable_maintainer_mode
804 enable_install_libbfd
805 with_system_zlib
806 enable_libctf_hash_debugging
807 '
808 ac_precious_vars='build_alias
809 host_alias
810 target_alias
811 CC
812 CFLAGS
813 LDFLAGS
814 LIBS
815 CPPFLAGS
816 CPP'
817
818
819 # Initialize some variables set by options.
820 ac_init_help=
821 ac_init_version=false
822 ac_unrecognized_opts=
823 ac_unrecognized_sep=
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
826 cache_file=/dev/null
827 exec_prefix=NONE
828 no_create=
829 no_recursion=
830 prefix=NONE
831 program_prefix=NONE
832 program_suffix=NONE
833 program_transform_name=s,x,x,
834 silent=
835 site=
836 srcdir=
837 verbose=
838 x_includes=NONE
839 x_libraries=NONE
840
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
859 htmldir='${docdir}'
860 dvidir='${docdir}'
861 pdfdir='${docdir}'
862 psdir='${docdir}'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
866
867 ac_prev=
868 ac_dashdash=
869 for ac_option
870 do
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
874 ac_prev=
875 continue
876 fi
877
878 case $ac_option in
879 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *=) ac_optarg= ;;
881 *) ac_optarg=yes ;;
882 esac
883
884 # Accept the important Cygnus configure options, so we can diagnose typos.
885
886 case $ac_dashdash$ac_option in
887 --)
888 ac_dashdash=yes ;;
889
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 ac_prev=bindir ;;
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 bindir=$ac_optarg ;;
894
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
899
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
906
907 --config-cache | -C)
908 cache_file=config.cache ;;
909
910 -datadir | --datadir | --datadi | --datad)
911 ac_prev=datadir ;;
912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
913 datadir=$ac_optarg ;;
914
915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
921
922 -disable-* | --disable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=no ;;
937
938 -docdir | --docdir | --docdi | --doc | --do)
939 ac_prev=docdir ;;
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941 docdir=$ac_optarg ;;
942
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944 ac_prev=dvidir ;;
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946 dvidir=$ac_optarg ;;
947
948 -enable-* | --enable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error $? "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
956 *"
957 "enable_$ac_useropt"
958 "*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=\$ac_optarg ;;
963
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
971 exec_prefix=$ac_optarg ;;
972
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
975 with_gas=yes ;;
976
977 -help | --help | --hel | --he | -h)
978 ac_init_help=long ;;
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
983
984 -host | --host | --hos | --ho)
985 ac_prev=host_alias ;;
986 -host=* | --host=* | --hos=* | --ho=*)
987 host_alias=$ac_optarg ;;
988
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990 ac_prev=htmldir ;;
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992 | --ht=*)
993 htmldir=$ac_optarg ;;
994
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
1000 includedir=$ac_optarg ;;
1001
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1003 ac_prev=infodir ;;
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005 infodir=$ac_optarg ;;
1006
1007 -libdir | --libdir | --libdi | --libd)
1008 ac_prev=libdir ;;
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010 libdir=$ac_optarg ;;
1011
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
1017 libexecdir=$ac_optarg ;;
1018
1019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1023
1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
1025 | --localstate | --localstat | --localsta | --localst | --locals)
1026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029 localstatedir=$ac_optarg ;;
1030
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032 ac_prev=mandir ;;
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034 mandir=$ac_optarg ;;
1035
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1038 with_fp=no ;;
1039
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041 | --no-cr | --no-c | -n)
1042 no_create=yes ;;
1043
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046 no_recursion=yes ;;
1047
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055 oldincludedir=$ac_optarg ;;
1056
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058 ac_prev=prefix ;;
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060 prefix=$ac_optarg ;;
1061
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067 program_prefix=$ac_optarg ;;
1068
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074 program_suffix=$ac_optarg ;;
1075
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
1091 program_transform_name=$ac_optarg ;;
1092
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094 ac_prev=pdfdir ;;
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1097
1098 -psdir | --psdir | --psdi | --psd | --ps)
1099 ac_prev=psdir ;;
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101 psdir=$ac_optarg ;;
1102
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1105 silent=yes ;;
1106
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108 ac_prev=sbindir ;;
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110 | --sbi=* | --sb=*)
1111 sbindir=$ac_optarg ;;
1112
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1116 | --sha | --sh)
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121 | --sha=* | --sh=*)
1122 sharedstatedir=$ac_optarg ;;
1123
1124 -site | --site | --sit)
1125 ac_prev=site ;;
1126 -site=* | --site=* | --sit=*)
1127 site=$ac_optarg ;;
1128
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130 ac_prev=srcdir ;;
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132 srcdir=$ac_optarg ;;
1133
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139 sysconfdir=$ac_optarg ;;
1140
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1142 ac_prev=target_alias ;;
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144 target_alias=$ac_optarg ;;
1145
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147 verbose=yes ;;
1148
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
1151
1152 -with-* | --with-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error $? "invalid package name: $ac_useropt"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1160 *"
1161 "with_$ac_useropt"
1162 "*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval with_$ac_useropt=\$ac_optarg ;;
1167
1168 -without-* | --without-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid package name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1176 *"
1177 "with_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=no ;;
1183
1184 --x)
1185 # Obsolete; use --with-x.
1186 with_x=yes ;;
1187
1188 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189 | --x-incl | --x-inc | --x-in | --x-i)
1190 ac_prev=x_includes ;;
1191 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193 x_includes=$ac_optarg ;;
1194
1195 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197 ac_prev=x_libraries ;;
1198 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200 x_libraries=$ac_optarg ;;
1201
1202 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1203 Try \`$0 --help' for more information"
1204 ;;
1205
1206 *=*)
1207 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208 # Reject names that are not valid shell variable names.
1209 case $ac_envvar in #(
1210 '' | [0-9]* | *[!_$as_cr_alnum]* )
1211 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1212 esac
1213 eval $ac_envvar=\$ac_optarg
1214 export $ac_envvar ;;
1215
1216 *)
1217 # FIXME: should be removed in autoconf 3.0.
1218 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1219 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1221 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222 ;;
1223
1224 esac
1225 done
1226
1227 if test -n "$ac_prev"; then
1228 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229 as_fn_error $? "missing argument to $ac_option"
1230 fi
1231
1232 if test -n "$ac_unrecognized_opts"; then
1233 case $enable_option_checking in
1234 no) ;;
1235 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1236 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237 esac
1238 fi
1239
1240 # Check all directory arguments for consistency.
1241 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242 datadir sysconfdir sharedstatedir localstatedir includedir \
1243 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244 libdir localedir mandir
1245 do
1246 eval ac_val=\$$ac_var
1247 # Remove trailing slashes.
1248 case $ac_val in
1249 */ )
1250 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251 eval $ac_var=\$ac_val;;
1252 esac
1253 # Be sure to have absolute directory names.
1254 case $ac_val in
1255 [\\/$]* | ?:[\\/]* ) continue;;
1256 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257 esac
1258 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1259 done
1260
1261 # There might be people who depend on the old broken behavior: `$host'
1262 # used to hold the argument of --host etc.
1263 # FIXME: To remove some day.
1264 build=$build_alias
1265 host=$host_alias
1266 target=$target_alias
1267
1268 # FIXME: To remove some day.
1269 if test "x$host_alias" != x; then
1270 if test "x$build_alias" = x; then
1271 cross_compiling=maybe
1272 elif test "x$build_alias" != "x$host_alias"; then
1273 cross_compiling=yes
1274 fi
1275 fi
1276
1277 ac_tool_prefix=
1278 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
1280 test "$silent" = yes && exec 6>/dev/null
1281
1282
1283 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284 ac_ls_di=`ls -di .` &&
1285 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286 as_fn_error $? "working directory cannot be determined"
1287 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1288 as_fn_error $? "pwd does not report name of working directory"
1289
1290
1291 # Find the source files, if location was not specified.
1292 if test -z "$srcdir"; then
1293 ac_srcdir_defaulted=yes
1294 # Try the directory containing this script, then the parent directory.
1295 ac_confdir=`$as_dirname -- "$as_myself" ||
1296 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297 X"$as_myself" : 'X\(//\)[^/]' \| \
1298 X"$as_myself" : 'X\(//\)$' \| \
1299 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300 $as_echo X"$as_myself" |
1301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)[^/].*/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\/\)$/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\).*/{
1314 s//\1/
1315 q
1316 }
1317 s/.*/./; q'`
1318 srcdir=$ac_confdir
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1320 srcdir=..
1321 fi
1322 else
1323 ac_srcdir_defaulted=no
1324 fi
1325 if test ! -r "$srcdir/$ac_unique_file"; then
1326 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1328 fi
1329 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330 ac_abs_confdir=`(
1331 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1332 pwd)`
1333 # When building in place, set srcdir=.
1334 if test "$ac_abs_confdir" = "$ac_pwd"; then
1335 srcdir=.
1336 fi
1337 # Remove unnecessary trailing slashes from srcdir.
1338 # Double slashes in file names in object file debugging info
1339 # mess up M-x gdb in Emacs.
1340 case $srcdir in
1341 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342 esac
1343 for ac_var in $ac_precious_vars; do
1344 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_env_${ac_var}_value=\$${ac_var}
1346 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348 done
1349
1350 #
1351 # Report the --help message.
1352 #
1353 if test "$ac_init_help" = "long"; then
1354 # Omit some internal or obsolete options to make the list less imposing.
1355 # This message is too long to be a string in the A/UX 3.1 sh.
1356 cat <<_ACEOF
1357 \`configure' configures libctf 1.2.0 to adapt to many kinds of systems.
1358
1359 Usage: $0 [OPTION]... [VAR=VALUE]...
1360
1361 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362 VAR=VALUE. See below for descriptions of some of the useful variables.
1363
1364 Defaults for the options are specified in brackets.
1365
1366 Configuration:
1367 -h, --help display this help and exit
1368 --help=short display options specific to this package
1369 --help=recursive display the short help of all the included packages
1370 -V, --version display version information and exit
1371 -q, --quiet, --silent do not print \`checking ...' messages
1372 --cache-file=FILE cache test results in FILE [disabled]
1373 -C, --config-cache alias for \`--cache-file=config.cache'
1374 -n, --no-create do not create output files
1375 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1376
1377 Installation directories:
1378 --prefix=PREFIX install architecture-independent files in PREFIX
1379 [$ac_default_prefix]
1380 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1381 [PREFIX]
1382
1383 By default, \`make install' will install all the files in
1384 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1385 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1386 for instance \`--prefix=\$HOME'.
1387
1388 For better control, use the options below.
1389
1390 Fine tuning of the installation directories:
1391 --bindir=DIR user executables [EPREFIX/bin]
1392 --sbindir=DIR system admin executables [EPREFIX/sbin]
1393 --libexecdir=DIR program executables [EPREFIX/libexec]
1394 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1395 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1396 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1397 --libdir=DIR object code libraries [EPREFIX/lib]
1398 --includedir=DIR C header files [PREFIX/include]
1399 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1400 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1401 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1402 --infodir=DIR info documentation [DATAROOTDIR/info]
1403 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1404 --mandir=DIR man documentation [DATAROOTDIR/man]
1405 --docdir=DIR documentation root [DATAROOTDIR/doc/libctf]
1406 --htmldir=DIR html documentation [DOCDIR]
1407 --dvidir=DIR dvi documentation [DOCDIR]
1408 --pdfdir=DIR pdf documentation [DOCDIR]
1409 --psdir=DIR ps documentation [DOCDIR]
1410 _ACEOF
1411
1412 cat <<\_ACEOF
1413
1414 Program names:
1415 --program-prefix=PREFIX prepend PREFIX to installed program names
1416 --program-suffix=SUFFIX append SUFFIX to installed program names
1417 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1418
1419 System types:
1420 --build=BUILD configure for building on BUILD [guessed]
1421 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1422 --target=TARGET configure for building compilers for TARGET [HOST]
1423 _ACEOF
1424 fi
1425
1426 if test -n "$ac_init_help"; then
1427 case $ac_init_help in
1428 short | recursive ) echo "Configuration of libctf 1.2.0:";;
1429 esac
1430 cat <<\_ACEOF
1431
1432 Optional Features:
1433 --disable-option-checking ignore unrecognized --enable/--with options
1434 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1435 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1436 --enable-dependency-tracking
1437 do not reject slow dependency extractors
1438 --disable-dependency-tracking
1439 speeds up one-time build
1440 --enable-silent-rules less verbose build output (undo: "make V=1")
1441 --disable-silent-rules verbose build output (undo: "make V=0")
1442 --enable-shared[=PKGS] build shared libraries [default=no]
1443 --enable-static[=PKGS] build static libraries [default=yes]
1444 --enable-fast-install[=PKGS]
1445 optimize for fast installation [default=yes]
1446 --disable-libtool-lock avoid locking (might break parallel builds)
1447 --disable-largefile omit support for large files
1448 --enable-werror-always enable -Werror despite compiler version
1449 --enable-maintainer-mode
1450 enable make rules and dependencies not useful (and
1451 sometimes confusing) to the casual installer
1452 --enable-install-libbfd controls installation of libbfd and related headers
1453 --enable-libctf-hash-debugging
1454 Enable expensive debugging of CTF deduplication type
1455 hashing [default=no]
1456
1457 Optional Packages:
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460 --with-pic try to use only PIC/non-PIC objects [default=use
1461 both]
1462 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1463 --with-system-zlib use installed libz
1464
1465 Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1473 CPP C preprocessor
1474
1475 Use these variables to override the choices made by `configure' or to help
1476 it to find libraries and programs with nonstandard names/locations.
1477
1478 Report bugs to the package provider.
1479 _ACEOF
1480 ac_status=$?
1481 fi
1482
1483 if test "$ac_init_help" = "recursive"; then
1484 # If there are subdirs, report their specific --help.
1485 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1486 test -d "$ac_dir" ||
1487 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1488 continue
1489 ac_builddir=.
1490
1491 case "$ac_dir" in
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *)
1494 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1495 # A ".." for each directory in $ac_dir_suffix.
1496 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1497 case $ac_top_builddir_sub in
1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500 esac ;;
1501 esac
1502 ac_abs_top_builddir=$ac_pwd
1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504 # for backward compatibility:
1505 ac_top_builddir=$ac_top_build_prefix
1506
1507 case $srcdir in
1508 .) # We are building in place.
1509 ac_srcdir=.
1510 ac_top_srcdir=$ac_top_builddir_sub
1511 ac_abs_top_srcdir=$ac_pwd ;;
1512 [\\/]* | ?:[\\/]* ) # Absolute name.
1513 ac_srcdir=$srcdir$ac_dir_suffix;
1514 ac_top_srcdir=$srcdir
1515 ac_abs_top_srcdir=$srcdir ;;
1516 *) # Relative name.
1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518 ac_top_srcdir=$ac_top_build_prefix$srcdir
1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1520 esac
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522
1523 cd "$ac_dir" || { ac_status=$?; continue; }
1524 # Check for guested configure.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure" --help=recursive
1531 else
1532 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533 fi || ac_status=$?
1534 cd "$ac_pwd" || { ac_status=$?; break; }
1535 done
1536 fi
1537
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1540 cat <<\_ACEOF
1541 libctf configure 1.2.0
1542 generated by GNU Autoconf 2.69
1543
1544 Copyright (C) 2012 Free Software Foundation, Inc.
1545 This configure script is free software; the Free Software Foundation
1546 gives unlimited permission to copy, distribute and modify it.
1547 _ACEOF
1548 exit
1549 fi
1550
1551 ## ------------------------ ##
1552 ## Autoconf initialization. ##
1553 ## ------------------------ ##
1554
1555 # ac_fn_c_try_compile LINENO
1556 # --------------------------
1557 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1558 ac_fn_c_try_compile ()
1559 {
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 rm -f conftest.$ac_objext
1562 if { { ac_try="$ac_compile"
1563 case "(($ac_try" in
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1566 esac
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 $as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_compile") 2>conftest.err
1570 ac_status=$?
1571 if test -s conftest.err; then
1572 grep -v '^ *+' conftest.err >conftest.er1
1573 cat conftest.er1 >&5
1574 mv -f conftest.er1 conftest.err
1575 fi
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } && {
1578 test -z "$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1580 } && test -s conftest.$ac_objext; then :
1581 ac_retval=0
1582 else
1583 $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1585
1586 ac_retval=1
1587 fi
1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589 as_fn_set_status $ac_retval
1590
1591 } # ac_fn_c_try_compile
1592
1593 # ac_fn_c_try_cpp LINENO
1594 # ----------------------
1595 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1596 ac_fn_c_try_cpp ()
1597 {
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 if { { ac_try="$ac_cpp conftest.$ac_ext"
1600 case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1607 ac_status=$?
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1612 fi
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } > conftest.i && {
1615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 }; then :
1618 ac_retval=0
1619 else
1620 $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1622
1623 ac_retval=1
1624 fi
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status $ac_retval
1627
1628 } # ac_fn_c_try_cpp
1629
1630 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1631 # -------------------------------------------------------
1632 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1633 # the include files in INCLUDES and setting the cache variable VAR
1634 # accordingly.
1635 ac_fn_c_check_header_mongrel ()
1636 {
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 if eval \${$3+:} false; then :
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1640 $as_echo_n "checking for $2... " >&6; }
1641 if eval \${$3+:} false; then :
1642 $as_echo_n "(cached) " >&6
1643 fi
1644 eval ac_res=\$$3
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646 $as_echo "$ac_res" >&6; }
1647 else
1648 # Is the header compilable?
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1650 $as_echo_n "checking $2 usability... " >&6; }
1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652 /* end confdefs.h. */
1653 $4
1654 #include <$2>
1655 _ACEOF
1656 if ac_fn_c_try_compile "$LINENO"; then :
1657 ac_header_compiler=yes
1658 else
1659 ac_header_compiler=no
1660 fi
1661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1663 $as_echo "$ac_header_compiler" >&6; }
1664
1665 # Is the header present?
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1667 $as_echo_n "checking $2 presence... " >&6; }
1668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669 /* end confdefs.h. */
1670 #include <$2>
1671 _ACEOF
1672 if ac_fn_c_try_cpp "$LINENO"; then :
1673 ac_header_preproc=yes
1674 else
1675 ac_header_preproc=no
1676 fi
1677 rm -f conftest.err conftest.i conftest.$ac_ext
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1679 $as_echo "$ac_header_preproc" >&6; }
1680
1681 # So? What about this header?
1682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1683 yes:no: )
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1685 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1687 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1688 ;;
1689 no:yes:* )
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1691 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1693 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1695 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1697 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1699 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1700 ;;
1701 esac
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703 $as_echo_n "checking for $2... " >&6; }
1704 if eval \${$3+:} false; then :
1705 $as_echo_n "(cached) " >&6
1706 else
1707 eval "$3=\$ac_header_compiler"
1708 fi
1709 eval ac_res=\$$3
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711 $as_echo "$ac_res" >&6; }
1712 fi
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714
1715 } # ac_fn_c_check_header_mongrel
1716
1717 # ac_fn_c_try_run LINENO
1718 # ----------------------
1719 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1720 # that executables *can* be run.
1721 ac_fn_c_try_run ()
1722 {
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 if { { ac_try="$ac_link"
1725 case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_link") 2>&5
1732 ac_status=$?
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1735 { { case "(($ac_try" in
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_try") 2>&5
1742 ac_status=$?
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; }; }; then :
1745 ac_retval=0
1746 else
1747 $as_echo "$as_me: program exited with status $ac_status" >&5
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1750
1751 ac_retval=$ac_status
1752 fi
1753 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755 as_fn_set_status $ac_retval
1756
1757 } # ac_fn_c_try_run
1758
1759 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1760 # -------------------------------------------------------
1761 # Tests whether HEADER exists and can be compiled using the include files in
1762 # INCLUDES, setting the cache variable VAR accordingly.
1763 ac_fn_c_check_header_compile ()
1764 {
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767 $as_echo_n "checking for $2... " >&6; }
1768 if eval \${$3+:} false; then :
1769 $as_echo_n "(cached) " >&6
1770 else
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h. */
1773 $4
1774 #include <$2>
1775 _ACEOF
1776 if ac_fn_c_try_compile "$LINENO"; then :
1777 eval "$3=yes"
1778 else
1779 eval "$3=no"
1780 fi
1781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1782 fi
1783 eval ac_res=\$$3
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1785 $as_echo "$ac_res" >&6; }
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787
1788 } # ac_fn_c_check_header_compile
1789
1790 # ac_fn_c_try_link LINENO
1791 # -----------------------
1792 # Try to link conftest.$ac_ext, and return whether this succeeded.
1793 ac_fn_c_try_link ()
1794 {
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 rm -f conftest.$ac_objext conftest$ac_exeext
1797 if { { ac_try="$ac_link"
1798 case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_link") 2>conftest.err
1805 ac_status=$?
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1810 fi
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } && {
1813 test -z "$ac_c_werror_flag" ||
1814 test ! -s conftest.err
1815 } && test -s conftest$ac_exeext && {
1816 test "$cross_compiling" = yes ||
1817 test -x conftest$ac_exeext
1818 }; then :
1819 ac_retval=0
1820 else
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1823
1824 ac_retval=1
1825 fi
1826 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1827 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1828 # interfere with the next link command; also delete a directory that is
1829 # left behind by Apple's compiler. We do this before executing the actions.
1830 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1833
1834 } # ac_fn_c_try_link
1835
1836 # ac_fn_c_check_func LINENO FUNC VAR
1837 # ----------------------------------
1838 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1839 ac_fn_c_check_func ()
1840 {
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843 $as_echo_n "checking for $2... " >&6; }
1844 if eval \${$3+:} false; then :
1845 $as_echo_n "(cached) " >&6
1846 else
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1849 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1851 #define $2 innocuous_$2
1852
1853 /* System header to define __stub macros and hopefully few prototypes,
1854 which can conflict with char $2 (); below.
1855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1856 <limits.h> exists even on freestanding compilers. */
1857
1858 #ifdef __STDC__
1859 # include <limits.h>
1860 #else
1861 # include <assert.h>
1862 #endif
1863
1864 #undef $2
1865
1866 /* Override any GCC internal prototype to avoid an error.
1867 Use char because int might match the return type of a GCC
1868 builtin and then its argument prototype would still apply. */
1869 #ifdef __cplusplus
1870 extern "C"
1871 #endif
1872 char $2 ();
1873 /* The GNU C library defines this for functions which it implements
1874 to always fail with ENOSYS. Some functions are actually named
1875 something starting with __ and the normal name is an alias. */
1876 #if defined __stub_$2 || defined __stub___$2
1877 choke me
1878 #endif
1879
1880 int
1881 main ()
1882 {
1883 return $2 ();
1884 ;
1885 return 0;
1886 }
1887 _ACEOF
1888 if ac_fn_c_try_link "$LINENO"; then :
1889 eval "$3=yes"
1890 else
1891 eval "$3=no"
1892 fi
1893 rm -f core conftest.err conftest.$ac_objext \
1894 conftest$ac_exeext conftest.$ac_ext
1895 fi
1896 eval ac_res=\$$3
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900
1901 } # ac_fn_c_check_func
1902
1903 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1904 # ---------------------------------------------
1905 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1906 # accordingly.
1907 ac_fn_c_check_decl ()
1908 {
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 as_decl_name=`echo $2|sed 's/ *(.*//'`
1911 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1913 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1914 if eval \${$3+:} false; then :
1915 $as_echo_n "(cached) " >&6
1916 else
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 $4
1920 int
1921 main ()
1922 {
1923 #ifndef $as_decl_name
1924 #ifdef __cplusplus
1925 (void) $as_decl_use;
1926 #else
1927 (void) $as_decl_name;
1928 #endif
1929 #endif
1930
1931 ;
1932 return 0;
1933 }
1934 _ACEOF
1935 if ac_fn_c_try_compile "$LINENO"; then :
1936 eval "$3=yes"
1937 else
1938 eval "$3=no"
1939 fi
1940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941 fi
1942 eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946
1947 } # ac_fn_c_check_decl
1948 cat >config.log <<_ACEOF
1949 This file contains any messages produced by compilers while
1950 running configure, to aid debugging if configure makes a mistake.
1951
1952 It was created by libctf $as_me 1.2.0, which was
1953 generated by GNU Autoconf 2.69. Invocation command line was
1954
1955 $ $0 $@
1956
1957 _ACEOF
1958 exec 5>>config.log
1959 {
1960 cat <<_ASUNAME
1961 ## --------- ##
1962 ## Platform. ##
1963 ## --------- ##
1964
1965 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1966 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1967 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1968 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1969 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1970
1971 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1972 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1973
1974 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1975 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1976 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1977 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1978 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1979 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1980 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1981
1982 _ASUNAME
1983
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 for as_dir in $PATH
1986 do
1987 IFS=$as_save_IFS
1988 test -z "$as_dir" && as_dir=.
1989 $as_echo "PATH: $as_dir"
1990 done
1991 IFS=$as_save_IFS
1992
1993 } >&5
1994
1995 cat >&5 <<_ACEOF
1996
1997
1998 ## ----------- ##
1999 ## Core tests. ##
2000 ## ----------- ##
2001
2002 _ACEOF
2003
2004
2005 # Keep a trace of the command line.
2006 # Strip out --no-create and --no-recursion so they do not pile up.
2007 # Strip out --silent because we don't want to record it for future runs.
2008 # Also quote any args containing shell meta-characters.
2009 # Make two passes to allow for proper duplicate-argument suppression.
2010 ac_configure_args=
2011 ac_configure_args0=
2012 ac_configure_args1=
2013 ac_must_keep_next=false
2014 for ac_pass in 1 2
2015 do
2016 for ac_arg
2017 do
2018 case $ac_arg in
2019 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2021 | -silent | --silent | --silen | --sile | --sil)
2022 continue ;;
2023 *\'*)
2024 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2025 esac
2026 case $ac_pass in
2027 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2028 2)
2029 as_fn_append ac_configure_args1 " '$ac_arg'"
2030 if test $ac_must_keep_next = true; then
2031 ac_must_keep_next=false # Got value, back to normal.
2032 else
2033 case $ac_arg in
2034 *=* | --config-cache | -C | -disable-* | --disable-* \
2035 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2036 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2037 | -with-* | --with-* | -without-* | --without-* | --x)
2038 case "$ac_configure_args0 " in
2039 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2040 esac
2041 ;;
2042 -* ) ac_must_keep_next=true ;;
2043 esac
2044 fi
2045 as_fn_append ac_configure_args " '$ac_arg'"
2046 ;;
2047 esac
2048 done
2049 done
2050 { ac_configure_args0=; unset ac_configure_args0;}
2051 { ac_configure_args1=; unset ac_configure_args1;}
2052
2053 # When interrupted or exit'd, cleanup temporary files, and complete
2054 # config.log. We remove comments because anyway the quotes in there
2055 # would cause problems or look ugly.
2056 # WARNING: Use '\'' to represent an apostrophe within the trap.
2057 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2058 trap 'exit_status=$?
2059 # Save into config.log some information that might help in debugging.
2060 {
2061 echo
2062
2063 $as_echo "## ---------------- ##
2064 ## Cache variables. ##
2065 ## ---------------- ##"
2066 echo
2067 # The following way of writing the cache mishandles newlines in values,
2068 (
2069 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2070 eval ac_val=\$$ac_var
2071 case $ac_val in #(
2072 *${as_nl}*)
2073 case $ac_var in #(
2074 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2075 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2076 esac
2077 case $ac_var in #(
2078 _ | IFS | as_nl) ;; #(
2079 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2080 *) { eval $ac_var=; unset $ac_var;} ;;
2081 esac ;;
2082 esac
2083 done
2084 (set) 2>&1 |
2085 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2086 *${as_nl}ac_space=\ *)
2087 sed -n \
2088 "s/'\''/'\''\\\\'\'''\''/g;
2089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2090 ;; #(
2091 *)
2092 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2093 ;;
2094 esac |
2095 sort
2096 )
2097 echo
2098
2099 $as_echo "## ----------------- ##
2100 ## Output variables. ##
2101 ## ----------------- ##"
2102 echo
2103 for ac_var in $ac_subst_vars
2104 do
2105 eval ac_val=\$$ac_var
2106 case $ac_val in
2107 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2108 esac
2109 $as_echo "$ac_var='\''$ac_val'\''"
2110 done | sort
2111 echo
2112
2113 if test -n "$ac_subst_files"; then
2114 $as_echo "## ------------------- ##
2115 ## File substitutions. ##
2116 ## ------------------- ##"
2117 echo
2118 for ac_var in $ac_subst_files
2119 do
2120 eval ac_val=\$$ac_var
2121 case $ac_val in
2122 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2123 esac
2124 $as_echo "$ac_var='\''$ac_val'\''"
2125 done | sort
2126 echo
2127 fi
2128
2129 if test -s confdefs.h; then
2130 $as_echo "## ----------- ##
2131 ## confdefs.h. ##
2132 ## ----------- ##"
2133 echo
2134 cat confdefs.h
2135 echo
2136 fi
2137 test "$ac_signal" != 0 &&
2138 $as_echo "$as_me: caught signal $ac_signal"
2139 $as_echo "$as_me: exit $exit_status"
2140 } >&5
2141 rm -f core *.core core.conftest.* &&
2142 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2143 exit $exit_status
2144 ' 0
2145 for ac_signal in 1 2 13 15; do
2146 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2147 done
2148 ac_signal=0
2149
2150 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2151 rm -f -r conftest* confdefs.h
2152
2153 $as_echo "/* confdefs.h */" > confdefs.h
2154
2155 # Predefined preprocessor variables.
2156
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_NAME "$PACKAGE_NAME"
2159 _ACEOF
2160
2161 cat >>confdefs.h <<_ACEOF
2162 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2163 _ACEOF
2164
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2167 _ACEOF
2168
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_STRING "$PACKAGE_STRING"
2171 _ACEOF
2172
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2175 _ACEOF
2176
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_URL "$PACKAGE_URL"
2179 _ACEOF
2180
2181
2182 # Let the site file select an alternate cache file if it wants to.
2183 # Prefer an explicitly selected file to automatically selected ones.
2184 ac_site_file1=NONE
2185 ac_site_file2=NONE
2186 if test -n "$CONFIG_SITE"; then
2187 # We do not want a PATH search for config.site.
2188 case $CONFIG_SITE in #((
2189 -*) ac_site_file1=./$CONFIG_SITE;;
2190 */*) ac_site_file1=$CONFIG_SITE;;
2191 *) ac_site_file1=./$CONFIG_SITE;;
2192 esac
2193 elif test "x$prefix" != xNONE; then
2194 ac_site_file1=$prefix/share/config.site
2195 ac_site_file2=$prefix/etc/config.site
2196 else
2197 ac_site_file1=$ac_default_prefix/share/config.site
2198 ac_site_file2=$ac_default_prefix/etc/config.site
2199 fi
2200 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2201 do
2202 test "x$ac_site_file" = xNONE && continue
2203 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2205 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2206 sed 's/^/| /' "$ac_site_file" >&5
2207 . "$ac_site_file" \
2208 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2210 as_fn_error $? "failed to load site script $ac_site_file
2211 See \`config.log' for more details" "$LINENO" 5; }
2212 fi
2213 done
2214
2215 if test -r "$cache_file"; then
2216 # Some versions of bash will fail to source /dev/null (special files
2217 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2218 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2220 $as_echo "$as_me: loading cache $cache_file" >&6;}
2221 case $cache_file in
2222 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2223 *) . "./$cache_file";;
2224 esac
2225 fi
2226 else
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2228 $as_echo "$as_me: creating cache $cache_file" >&6;}
2229 >$cache_file
2230 fi
2231
2232 as_fn_append ac_header_list " stdlib.h"
2233 as_fn_append ac_header_list " unistd.h"
2234 as_fn_append ac_header_list " sys/param.h"
2235 as_fn_append ac_func_list " qsort_r"
2236 # Check that the precious variables saved in the cache have kept the same
2237 # value.
2238 ac_cache_corrupted=false
2239 for ac_var in $ac_precious_vars; do
2240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2241 eval ac_new_set=\$ac_env_${ac_var}_set
2242 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2243 eval ac_new_val=\$ac_env_${ac_var}_value
2244 case $ac_old_set,$ac_new_set in
2245 set,)
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2247 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2248 ac_cache_corrupted=: ;;
2249 ,set)
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2251 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2252 ac_cache_corrupted=: ;;
2253 ,);;
2254 *)
2255 if test "x$ac_old_val" != "x$ac_new_val"; then
2256 # differences in whitespace do not lead to failure.
2257 ac_old_val_w=`echo x $ac_old_val`
2258 ac_new_val_w=`echo x $ac_new_val`
2259 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2261 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2262 ac_cache_corrupted=:
2263 else
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2265 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2266 eval $ac_var=\$ac_old_val
2267 fi
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2269 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2271 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2272 fi;;
2273 esac
2274 # Pass precious variables to config.status.
2275 if test "$ac_new_set" = set; then
2276 case $ac_new_val in
2277 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2278 *) ac_arg=$ac_var=$ac_new_val ;;
2279 esac
2280 case " $ac_configure_args " in
2281 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2282 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2283 esac
2284 fi
2285 done
2286 if $ac_cache_corrupted; then
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2290 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2291 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2292 fi
2293 ## -------------------- ##
2294 ## Main body of script. ##
2295 ## -------------------- ##
2296
2297 ac_ext=c
2298 ac_cpp='$CPP $CPPFLAGS'
2299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311 ac_aux_dir=
2312 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2313 if test -f "$ac_dir/install-sh"; then
2314 ac_aux_dir=$ac_dir
2315 ac_install_sh="$ac_aux_dir/install-sh -c"
2316 break
2317 elif test -f "$ac_dir/install.sh"; then
2318 ac_aux_dir=$ac_dir
2319 ac_install_sh="$ac_aux_dir/install.sh -c"
2320 break
2321 elif test -f "$ac_dir/shtool"; then
2322 ac_aux_dir=$ac_dir
2323 ac_install_sh="$ac_aux_dir/shtool install -c"
2324 break
2325 fi
2326 done
2327 if test -z "$ac_aux_dir"; then
2328 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2329 fi
2330
2331 # These three variables are undocumented and unsupported,
2332 # and are intended to be withdrawn in a future Autoconf release.
2333 # They can cause serious problems if a builder's source tree is in a directory
2334 # whose full name contains unusual characters.
2335 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2336 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2337 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2338
2339
2340 # Make sure we can run config.sub.
2341 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2342 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2343
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2345 $as_echo_n "checking build system type... " >&6; }
2346 if ${ac_cv_build+:} false; then :
2347 $as_echo_n "(cached) " >&6
2348 else
2349 ac_build_alias=$build_alias
2350 test "x$ac_build_alias" = x &&
2351 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2352 test "x$ac_build_alias" = x &&
2353 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2354 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2355 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2356
2357 fi
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2359 $as_echo "$ac_cv_build" >&6; }
2360 case $ac_cv_build in
2361 *-*-*) ;;
2362 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2363 esac
2364 build=$ac_cv_build
2365 ac_save_IFS=$IFS; IFS='-'
2366 set x $ac_cv_build
2367 shift
2368 build_cpu=$1
2369 build_vendor=$2
2370 shift; shift
2371 # Remember, the first character of IFS is used to create $*,
2372 # except with old shells:
2373 build_os=$*
2374 IFS=$ac_save_IFS
2375 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2376
2377
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2379 $as_echo_n "checking host system type... " >&6; }
2380 if ${ac_cv_host+:} false; then :
2381 $as_echo_n "(cached) " >&6
2382 else
2383 if test "x$host_alias" = x; then
2384 ac_cv_host=$ac_cv_build
2385 else
2386 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2387 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2388 fi
2389
2390 fi
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2392 $as_echo "$ac_cv_host" >&6; }
2393 case $ac_cv_host in
2394 *-*-*) ;;
2395 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2396 esac
2397 host=$ac_cv_host
2398 ac_save_IFS=$IFS; IFS='-'
2399 set x $ac_cv_host
2400 shift
2401 host_cpu=$1
2402 host_vendor=$2
2403 shift; shift
2404 # Remember, the first character of IFS is used to create $*,
2405 # except with old shells:
2406 host_os=$*
2407 IFS=$ac_save_IFS
2408 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2409
2410
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2412 $as_echo_n "checking target system type... " >&6; }
2413 if ${ac_cv_target+:} false; then :
2414 $as_echo_n "(cached) " >&6
2415 else
2416 if test "x$target_alias" = x; then
2417 ac_cv_target=$ac_cv_host
2418 else
2419 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2420 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2421 fi
2422
2423 fi
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2425 $as_echo "$ac_cv_target" >&6; }
2426 case $ac_cv_target in
2427 *-*-*) ;;
2428 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2429 esac
2430 target=$ac_cv_target
2431 ac_save_IFS=$IFS; IFS='-'
2432 set x $ac_cv_target
2433 shift
2434 target_cpu=$1
2435 target_vendor=$2
2436 shift; shift
2437 # Remember, the first character of IFS is used to create $*,
2438 # except with old shells:
2439 target_os=$*
2440 IFS=$ac_save_IFS
2441 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2442
2443
2444 # The aliases save the names the user supplied, while $host etc.
2445 # will get canonicalized.
2446 test -n "$target_alias" &&
2447 test "$program_prefix$program_suffix$program_transform_name" = \
2448 NONENONEs,x,x, &&
2449 program_prefix=${target_alias}-
2450 # Expand $ac_aux_dir to an absolute path.
2451 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2452
2453 ac_ext=c
2454 ac_cpp='$CPP $CPPFLAGS'
2455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2458 if test -n "$ac_tool_prefix"; then
2459 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2460 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2462 $as_echo_n "checking for $ac_word... " >&6; }
2463 if ${ac_cv_prog_CC+:} false; then :
2464 $as_echo_n "(cached) " >&6
2465 else
2466 if test -n "$CC"; then
2467 ac_cv_prog_CC="$CC" # Let the user override the test.
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472 IFS=$as_save_IFS
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2476 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 break 2
2479 fi
2480 done
2481 done
2482 IFS=$as_save_IFS
2483
2484 fi
2485 fi
2486 CC=$ac_cv_prog_CC
2487 if test -n "$CC"; then
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2489 $as_echo "$CC" >&6; }
2490 else
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492 $as_echo "no" >&6; }
2493 fi
2494
2495
2496 fi
2497 if test -z "$ac_cv_prog_CC"; then
2498 ac_ct_CC=$CC
2499 # Extract the first word of "gcc", so it can be a program name with args.
2500 set dummy gcc; ac_word=$2
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2502 $as_echo_n "checking for $ac_word... " >&6; }
2503 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2504 $as_echo_n "(cached) " >&6
2505 else
2506 if test -n "$ac_ct_CC"; then
2507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2511 do
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2516 ac_cv_prog_ac_ct_CC="gcc"
2517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 break 2
2519 fi
2520 done
2521 done
2522 IFS=$as_save_IFS
2523
2524 fi
2525 fi
2526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2527 if test -n "$ac_ct_CC"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2529 $as_echo "$ac_ct_CC" >&6; }
2530 else
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2532 $as_echo "no" >&6; }
2533 fi
2534
2535 if test "x$ac_ct_CC" = x; then
2536 CC=""
2537 else
2538 case $cross_compiling:$ac_tool_warned in
2539 yes:)
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2542 ac_tool_warned=yes ;;
2543 esac
2544 CC=$ac_ct_CC
2545 fi
2546 else
2547 CC="$ac_cv_prog_CC"
2548 fi
2549
2550 if test -z "$CC"; then
2551 if test -n "$ac_tool_prefix"; then
2552 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2553 set dummy ${ac_tool_prefix}cc; ac_word=$2
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555 $as_echo_n "checking for $ac_word... " >&6; }
2556 if ${ac_cv_prog_CC+:} false; then :
2557 $as_echo_n "(cached) " >&6
2558 else
2559 if test -n "$CC"; then
2560 ac_cv_prog_CC="$CC" # Let the user override the test.
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2564 do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2569 ac_cv_prog_CC="${ac_tool_prefix}cc"
2570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 break 2
2572 fi
2573 done
2574 done
2575 IFS=$as_save_IFS
2576
2577 fi
2578 fi
2579 CC=$ac_cv_prog_CC
2580 if test -n "$CC"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2582 $as_echo "$CC" >&6; }
2583 else
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 $as_echo "no" >&6; }
2586 fi
2587
2588
2589 fi
2590 fi
2591 if test -z "$CC"; then
2592 # Extract the first word of "cc", so it can be a program name with args.
2593 set dummy cc; ac_word=$2
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595 $as_echo_n "checking for $ac_word... " >&6; }
2596 if ${ac_cv_prog_CC+:} false; then :
2597 $as_echo_n "(cached) " >&6
2598 else
2599 if test -n "$CC"; then
2600 ac_cv_prog_CC="$CC" # Let the user override the test.
2601 else
2602 ac_prog_rejected=no
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 for as_dir in $PATH
2605 do
2606 IFS=$as_save_IFS
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2610 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2611 ac_prog_rejected=yes
2612 continue
2613 fi
2614 ac_cv_prog_CC="cc"
2615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 break 2
2617 fi
2618 done
2619 done
2620 IFS=$as_save_IFS
2621
2622 if test $ac_prog_rejected = yes; then
2623 # We found a bogon in the path, so make sure we never use it.
2624 set dummy $ac_cv_prog_CC
2625 shift
2626 if test $# != 0; then
2627 # We chose a different compiler from the bogus one.
2628 # However, it has the same basename, so the bogon will be chosen
2629 # first if we set CC to just the basename; use the full file name.
2630 shift
2631 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2632 fi
2633 fi
2634 fi
2635 fi
2636 CC=$ac_cv_prog_CC
2637 if test -n "$CC"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2639 $as_echo "$CC" >&6; }
2640 else
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2642 $as_echo "no" >&6; }
2643 fi
2644
2645
2646 fi
2647 if test -z "$CC"; then
2648 if test -n "$ac_tool_prefix"; then
2649 for ac_prog in cl.exe
2650 do
2651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if ${ac_cv_prog_CC+:} false; then :
2656 $as_echo_n "(cached) " >&6
2657 else
2658 if test -n "$CC"; then
2659 ac_cv_prog_CC="$CC" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2663 do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2671 fi
2672 done
2673 done
2674 IFS=$as_save_IFS
2675
2676 fi
2677 fi
2678 CC=$ac_cv_prog_CC
2679 if test -n "$CC"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2681 $as_echo "$CC" >&6; }
2682 else
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684 $as_echo "no" >&6; }
2685 fi
2686
2687
2688 test -n "$CC" && break
2689 done
2690 fi
2691 if test -z "$CC"; then
2692 ac_ct_CC=$CC
2693 for ac_prog in cl.exe
2694 do
2695 # Extract the first word of "$ac_prog", so it can be a program name with args.
2696 set dummy $ac_prog; ac_word=$2
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2700 $as_echo_n "(cached) " >&6
2701 else
2702 if test -n "$ac_ct_CC"; then
2703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2704 else
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2707 do
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2712 ac_cv_prog_ac_ct_CC="$ac_prog"
2713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2714 break 2
2715 fi
2716 done
2717 done
2718 IFS=$as_save_IFS
2719
2720 fi
2721 fi
2722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2723 if test -n "$ac_ct_CC"; then
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2725 $as_echo "$ac_ct_CC" >&6; }
2726 else
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728 $as_echo "no" >&6; }
2729 fi
2730
2731
2732 test -n "$ac_ct_CC" && break
2733 done
2734
2735 if test "x$ac_ct_CC" = x; then
2736 CC=""
2737 else
2738 case $cross_compiling:$ac_tool_warned in
2739 yes:)
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2742 ac_tool_warned=yes ;;
2743 esac
2744 CC=$ac_ct_CC
2745 fi
2746 fi
2747
2748 fi
2749
2750
2751 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2753 as_fn_error $? "no acceptable C compiler found in \$PATH
2754 See \`config.log' for more details" "$LINENO" 5; }
2755
2756 # Provide some information about the compiler.
2757 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2758 set X $ac_compile
2759 ac_compiler=$2
2760 for ac_option in --version -v -V -qversion; do
2761 { { ac_try="$ac_compiler $ac_option >&5"
2762 case "(($ac_try" in
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2765 esac
2766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2767 $as_echo "$ac_try_echo"; } >&5
2768 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2769 ac_status=$?
2770 if test -s conftest.err; then
2771 sed '10a\
2772 ... rest of stderr output deleted ...
2773 10q' conftest.err >conftest.er1
2774 cat conftest.er1 >&5
2775 fi
2776 rm -f conftest.er1 conftest.err
2777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2778 test $ac_status = 0; }
2779 done
2780
2781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2782 /* end confdefs.h. */
2783
2784 int
2785 main ()
2786 {
2787
2788 ;
2789 return 0;
2790 }
2791 _ACEOF
2792 ac_clean_files_save=$ac_clean_files
2793 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2794 # Try to create an executable without -o first, disregard a.out.
2795 # It will help us diagnose broken compilers, and finding out an intuition
2796 # of exeext.
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2798 $as_echo_n "checking whether the C compiler works... " >&6; }
2799 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2800
2801 # The possible output files:
2802 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2803
2804 ac_rmfiles=
2805 for ac_file in $ac_files
2806 do
2807 case $ac_file in
2808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2809 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2810 esac
2811 done
2812 rm -f $ac_rmfiles
2813
2814 if { { ac_try="$ac_link_default"
2815 case "(($ac_try" in
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2818 esac
2819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2820 $as_echo "$ac_try_echo"; } >&5
2821 (eval "$ac_link_default") 2>&5
2822 ac_status=$?
2823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2824 test $ac_status = 0; }; then :
2825 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2826 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2827 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2828 # so that the user can short-circuit this test for compilers unknown to
2829 # Autoconf.
2830 for ac_file in $ac_files ''
2831 do
2832 test -f "$ac_file" || continue
2833 case $ac_file in
2834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2835 ;;
2836 [ab].out )
2837 # We found the default executable, but exeext='' is most
2838 # certainly right.
2839 break;;
2840 *.* )
2841 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2842 then :; else
2843 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2844 fi
2845 # We set ac_cv_exeext here because the later test for it is not
2846 # safe: cross compilers may not add the suffix if given an `-o'
2847 # argument, so we may need to know it at that point already.
2848 # Even if this section looks crufty: it has the advantage of
2849 # actually working.
2850 break;;
2851 * )
2852 break;;
2853 esac
2854 done
2855 test "$ac_cv_exeext" = no && ac_cv_exeext=
2856
2857 else
2858 ac_file=''
2859 fi
2860 if test -z "$ac_file"; then :
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 $as_echo "no" >&6; }
2863 $as_echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2865
2866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2868 as_fn_error 77 "C compiler cannot create executables
2869 See \`config.log' for more details" "$LINENO" 5; }
2870 else
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2872 $as_echo "yes" >&6; }
2873 fi
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2875 $as_echo_n "checking for C compiler default output file name... " >&6; }
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2877 $as_echo "$ac_file" >&6; }
2878 ac_exeext=$ac_cv_exeext
2879
2880 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2881 ac_clean_files=$ac_clean_files_save
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2883 $as_echo_n "checking for suffix of executables... " >&6; }
2884 if { { ac_try="$ac_link"
2885 case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888 esac
2889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2890 $as_echo "$ac_try_echo"; } >&5
2891 (eval "$ac_link") 2>&5
2892 ac_status=$?
2893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2894 test $ac_status = 0; }; then :
2895 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2896 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2897 # work properly (i.e., refer to `conftest.exe'), while it won't with
2898 # `rm'.
2899 for ac_file in conftest.exe conftest conftest.*; do
2900 test -f "$ac_file" || continue
2901 case $ac_file in
2902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2903 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2904 break;;
2905 * ) break;;
2906 esac
2907 done
2908 else
2909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2911 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2912 See \`config.log' for more details" "$LINENO" 5; }
2913 fi
2914 rm -f conftest conftest$ac_cv_exeext
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2916 $as_echo "$ac_cv_exeext" >&6; }
2917
2918 rm -f conftest.$ac_ext
2919 EXEEXT=$ac_cv_exeext
2920 ac_exeext=$EXEEXT
2921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922 /* end confdefs.h. */
2923 #include <stdio.h>
2924 int
2925 main ()
2926 {
2927 FILE *f = fopen ("conftest.out", "w");
2928 return ferror (f) || fclose (f) != 0;
2929
2930 ;
2931 return 0;
2932 }
2933 _ACEOF
2934 ac_clean_files="$ac_clean_files conftest.out"
2935 # Check that the compiler produces executables we can run. If not, either
2936 # the compiler is broken, or we cross compile.
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2938 $as_echo_n "checking whether we are cross compiling... " >&6; }
2939 if test "$cross_compiling" != yes; then
2940 { { ac_try="$ac_link"
2941 case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2944 esac
2945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2946 $as_echo "$ac_try_echo"; } >&5
2947 (eval "$ac_link") 2>&5
2948 ac_status=$?
2949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2950 test $ac_status = 0; }
2951 if { ac_try='./conftest$ac_cv_exeext'
2952 { { case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955 esac
2956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2957 $as_echo "$ac_try_echo"; } >&5
2958 (eval "$ac_try") 2>&5
2959 ac_status=$?
2960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2961 test $ac_status = 0; }; }; then
2962 cross_compiling=no
2963 else
2964 if test "$cross_compiling" = maybe; then
2965 cross_compiling=yes
2966 else
2967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2969 as_fn_error $? "cannot run C compiled programs.
2970 If you meant to cross compile, use \`--host'.
2971 See \`config.log' for more details" "$LINENO" 5; }
2972 fi
2973 fi
2974 fi
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2976 $as_echo "$cross_compiling" >&6; }
2977
2978 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2979 ac_clean_files=$ac_clean_files_save
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2981 $as_echo_n "checking for suffix of object files... " >&6; }
2982 if ${ac_cv_objext+:} false; then :
2983 $as_echo_n "(cached) " >&6
2984 else
2985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2986 /* end confdefs.h. */
2987
2988 int
2989 main ()
2990 {
2991
2992 ;
2993 return 0;
2994 }
2995 _ACEOF
2996 rm -f conftest.o conftest.obj
2997 if { { ac_try="$ac_compile"
2998 case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3001 esac
3002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3003 $as_echo "$ac_try_echo"; } >&5
3004 (eval "$ac_compile") 2>&5
3005 ac_status=$?
3006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3007 test $ac_status = 0; }; then :
3008 for ac_file in conftest.o conftest.obj conftest.*; do
3009 test -f "$ac_file" || continue;
3010 case $ac_file in
3011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3012 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3013 break;;
3014 esac
3015 done
3016 else
3017 $as_echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3019
3020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3022 as_fn_error $? "cannot compute suffix of object files: cannot compile
3023 See \`config.log' for more details" "$LINENO" 5; }
3024 fi
3025 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3026 fi
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3028 $as_echo "$ac_cv_objext" >&6; }
3029 OBJEXT=$ac_cv_objext
3030 ac_objext=$OBJEXT
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3032 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3033 if ${ac_cv_c_compiler_gnu+:} false; then :
3034 $as_echo_n "(cached) " >&6
3035 else
3036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3037 /* end confdefs.h. */
3038
3039 int
3040 main ()
3041 {
3042 #ifndef __GNUC__
3043 choke me
3044 #endif
3045
3046 ;
3047 return 0;
3048 }
3049 _ACEOF
3050 if ac_fn_c_try_compile "$LINENO"; then :
3051 ac_compiler_gnu=yes
3052 else
3053 ac_compiler_gnu=no
3054 fi
3055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3057
3058 fi
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3060 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3061 if test $ac_compiler_gnu = yes; then
3062 GCC=yes
3063 else
3064 GCC=
3065 fi
3066 ac_test_CFLAGS=${CFLAGS+set}
3067 ac_save_CFLAGS=$CFLAGS
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3069 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3070 if ${ac_cv_prog_cc_g+:} false; then :
3071 $as_echo_n "(cached) " >&6
3072 else
3073 ac_save_c_werror_flag=$ac_c_werror_flag
3074 ac_c_werror_flag=yes
3075 ac_cv_prog_cc_g=no
3076 CFLAGS="-g"
3077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3078 /* end confdefs.h. */
3079
3080 int
3081 main ()
3082 {
3083
3084 ;
3085 return 0;
3086 }
3087 _ACEOF
3088 if ac_fn_c_try_compile "$LINENO"; then :
3089 ac_cv_prog_cc_g=yes
3090 else
3091 CFLAGS=""
3092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3093 /* end confdefs.h. */
3094
3095 int
3096 main ()
3097 {
3098
3099 ;
3100 return 0;
3101 }
3102 _ACEOF
3103 if ac_fn_c_try_compile "$LINENO"; then :
3104
3105 else
3106 ac_c_werror_flag=$ac_save_c_werror_flag
3107 CFLAGS="-g"
3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109 /* end confdefs.h. */
3110
3111 int
3112 main ()
3113 {
3114
3115 ;
3116 return 0;
3117 }
3118 _ACEOF
3119 if ac_fn_c_try_compile "$LINENO"; then :
3120 ac_cv_prog_cc_g=yes
3121 fi
3122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3123 fi
3124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125 fi
3126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3127 ac_c_werror_flag=$ac_save_c_werror_flag
3128 fi
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3130 $as_echo "$ac_cv_prog_cc_g" >&6; }
3131 if test "$ac_test_CFLAGS" = set; then
3132 CFLAGS=$ac_save_CFLAGS
3133 elif test $ac_cv_prog_cc_g = yes; then
3134 if test "$GCC" = yes; then
3135 CFLAGS="-g -O2"
3136 else
3137 CFLAGS="-g"
3138 fi
3139 else
3140 if test "$GCC" = yes; then
3141 CFLAGS="-O2"
3142 else
3143 CFLAGS=
3144 fi
3145 fi
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3147 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3148 if ${ac_cv_prog_cc_c89+:} false; then :
3149 $as_echo_n "(cached) " >&6
3150 else
3151 ac_cv_prog_cc_c89=no
3152 ac_save_CC=$CC
3153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154 /* end confdefs.h. */
3155 #include <stdarg.h>
3156 #include <stdio.h>
3157 struct stat;
3158 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3159 struct buf { int x; };
3160 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3161 static char *e (p, i)
3162 char **p;
3163 int i;
3164 {
3165 return p[i];
3166 }
3167 static char *f (char * (*g) (char **, int), char **p, ...)
3168 {
3169 char *s;
3170 va_list v;
3171 va_start (v,p);
3172 s = g (p, va_arg (v,int));
3173 va_end (v);
3174 return s;
3175 }
3176
3177 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3178 function prototypes and stuff, but not '\xHH' hex character constants.
3179 These don't provoke an error unfortunately, instead are silently treated
3180 as 'x'. The following induces an error, until -std is added to get
3181 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3182 array size at least. It's necessary to write '\x00'==0 to get something
3183 that's true only with -std. */
3184 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3185
3186 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3187 inside strings and character constants. */
3188 #define FOO(x) 'x'
3189 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3190
3191 int test (int i, double x);
3192 struct s1 {int (*f) (int a);};
3193 struct s2 {int (*f) (double a);};
3194 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3195 int argc;
3196 char **argv;
3197 int
3198 main ()
3199 {
3200 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3201 ;
3202 return 0;
3203 }
3204 _ACEOF
3205 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3206 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3207 do
3208 CC="$ac_save_CC $ac_arg"
3209 if ac_fn_c_try_compile "$LINENO"; then :
3210 ac_cv_prog_cc_c89=$ac_arg
3211 fi
3212 rm -f core conftest.err conftest.$ac_objext
3213 test "x$ac_cv_prog_cc_c89" != "xno" && break
3214 done
3215 rm -f conftest.$ac_ext
3216 CC=$ac_save_CC
3217
3218 fi
3219 # AC_CACHE_VAL
3220 case "x$ac_cv_prog_cc_c89" in
3221 x)
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3223 $as_echo "none needed" >&6; } ;;
3224 xno)
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3226 $as_echo "unsupported" >&6; } ;;
3227 *)
3228 CC="$CC $ac_cv_prog_cc_c89"
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3230 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3231 esac
3232 if test "x$ac_cv_prog_cc_c89" != xno; then :
3233
3234 fi
3235
3236 ac_ext=c
3237 ac_cpp='$CPP $CPPFLAGS'
3238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241
3242 ac_ext=c
3243 ac_cpp='$CPP $CPPFLAGS'
3244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3248 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3249 if ${am_cv_prog_cc_c_o+:} false; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3254
3255 int
3256 main ()
3257 {
3258
3259 ;
3260 return 0;
3261 }
3262 _ACEOF
3263 # Make sure it works both with $CC and with simple cc.
3264 # Following AC_PROG_CC_C_O, we do the test twice because some
3265 # compilers refuse to overwrite an existing .o file with -o,
3266 # though they will create one.
3267 am_cv_prog_cc_c_o=yes
3268 for am_i in 1 2; do
3269 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3270 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3271 ac_status=$?
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } \
3274 && test -f conftest2.$ac_objext; then
3275 : OK
3276 else
3277 am_cv_prog_cc_c_o=no
3278 break
3279 fi
3280 done
3281 rm -f core conftest*
3282 unset am_i
3283 fi
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3285 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3286 if test "$am_cv_prog_cc_c_o" != yes; then
3287 # Losing compiler, so override with the script.
3288 # FIXME: It is wrong to rewrite CC.
3289 # But if we don't then we get into trouble of one sort or another.
3290 # A longer-term fix would be to have automake use am__CC in this case,
3291 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3292 CC="$am_aux_dir/compile $CC"
3293 fi
3294 ac_ext=c
3295 ac_cpp='$CPP $CPPFLAGS'
3296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3299
3300
3301
3302 ac_ext=c
3303 ac_cpp='$CPP $CPPFLAGS'
3304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3308 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3309 # On Suns, sometimes $CPP names a directory.
3310 if test -n "$CPP" && test -d "$CPP"; then
3311 CPP=
3312 fi
3313 if test -z "$CPP"; then
3314 if ${ac_cv_prog_CPP+:} false; then :
3315 $as_echo_n "(cached) " >&6
3316 else
3317 # Double quotes because CPP needs to be expanded
3318 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3319 do
3320 ac_preproc_ok=false
3321 for ac_c_preproc_warn_flag in '' yes
3322 do
3323 # Use a header file that comes with gcc, so configuring glibc
3324 # with a fresh cross-compiler works.
3325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3326 # <limits.h> exists even on freestanding compilers.
3327 # On the NeXT, cc -E runs the code through the compiler's parser,
3328 # not just through cpp. "Syntax error" is here to catch this case.
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3331 #ifdef __STDC__
3332 # include <limits.h>
3333 #else
3334 # include <assert.h>
3335 #endif
3336 Syntax error
3337 _ACEOF
3338 if ac_fn_c_try_cpp "$LINENO"; then :
3339
3340 else
3341 # Broken: fails on valid input.
3342 continue
3343 fi
3344 rm -f conftest.err conftest.i conftest.$ac_ext
3345
3346 # OK, works on sane cases. Now check whether nonexistent headers
3347 # can be detected and how.
3348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349 /* end confdefs.h. */
3350 #include <ac_nonexistent.h>
3351 _ACEOF
3352 if ac_fn_c_try_cpp "$LINENO"; then :
3353 # Broken: success on invalid input.
3354 continue
3355 else
3356 # Passes both tests.
3357 ac_preproc_ok=:
3358 break
3359 fi
3360 rm -f conftest.err conftest.i conftest.$ac_ext
3361
3362 done
3363 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3364 rm -f conftest.i conftest.err conftest.$ac_ext
3365 if $ac_preproc_ok; then :
3366 break
3367 fi
3368
3369 done
3370 ac_cv_prog_CPP=$CPP
3371
3372 fi
3373 CPP=$ac_cv_prog_CPP
3374 else
3375 ac_cv_prog_CPP=$CPP
3376 fi
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3378 $as_echo "$CPP" >&6; }
3379 ac_preproc_ok=false
3380 for ac_c_preproc_warn_flag in '' yes
3381 do
3382 # Use a header file that comes with gcc, so configuring glibc
3383 # with a fresh cross-compiler works.
3384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3385 # <limits.h> exists even on freestanding compilers.
3386 # On the NeXT, cc -E runs the code through the compiler's parser,
3387 # not just through cpp. "Syntax error" is here to catch this case.
3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h. */
3390 #ifdef __STDC__
3391 # include <limits.h>
3392 #else
3393 # include <assert.h>
3394 #endif
3395 Syntax error
3396 _ACEOF
3397 if ac_fn_c_try_cpp "$LINENO"; then :
3398
3399 else
3400 # Broken: fails on valid input.
3401 continue
3402 fi
3403 rm -f conftest.err conftest.i conftest.$ac_ext
3404
3405 # OK, works on sane cases. Now check whether nonexistent headers
3406 # can be detected and how.
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3409 #include <ac_nonexistent.h>
3410 _ACEOF
3411 if ac_fn_c_try_cpp "$LINENO"; then :
3412 # Broken: success on invalid input.
3413 continue
3414 else
3415 # Passes both tests.
3416 ac_preproc_ok=:
3417 break
3418 fi
3419 rm -f conftest.err conftest.i conftest.$ac_ext
3420
3421 done
3422 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3423 rm -f conftest.i conftest.err conftest.$ac_ext
3424 if $ac_preproc_ok; then :
3425
3426 else
3427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3429 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3430 See \`config.log' for more details" "$LINENO" 5; }
3431 fi
3432
3433 ac_ext=c
3434 ac_cpp='$CPP $CPPFLAGS'
3435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438
3439
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3441 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3442 if ${ac_cv_path_GREP+:} false; then :
3443 $as_echo_n "(cached) " >&6
3444 else
3445 if test -z "$GREP"; then
3446 ac_path_GREP_found=false
3447 # Loop through the user's path and test for each of PROGNAME-LIST
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3450 do
3451 IFS=$as_save_IFS
3452 test -z "$as_dir" && as_dir=.
3453 for ac_prog in grep ggrep; do
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3456 as_fn_executable_p "$ac_path_GREP" || continue
3457 # Check for GNU ac_path_GREP and select it if it is found.
3458 # Check for GNU $ac_path_GREP
3459 case `"$ac_path_GREP" --version 2>&1` in
3460 *GNU*)
3461 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3462 *)
3463 ac_count=0
3464 $as_echo_n 0123456789 >"conftest.in"
3465 while :
3466 do
3467 cat "conftest.in" "conftest.in" >"conftest.tmp"
3468 mv "conftest.tmp" "conftest.in"
3469 cp "conftest.in" "conftest.nl"
3470 $as_echo 'GREP' >> "conftest.nl"
3471 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3472 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3473 as_fn_arith $ac_count + 1 && ac_count=$as_val
3474 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3475 # Best one so far, save it but keep looking for a better one
3476 ac_cv_path_GREP="$ac_path_GREP"
3477 ac_path_GREP_max=$ac_count
3478 fi
3479 # 10*(2^10) chars as input seems more than enough
3480 test $ac_count -gt 10 && break
3481 done
3482 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3483 esac
3484
3485 $ac_path_GREP_found && break 3
3486 done
3487 done
3488 done
3489 IFS=$as_save_IFS
3490 if test -z "$ac_cv_path_GREP"; then
3491 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3492 fi
3493 else
3494 ac_cv_path_GREP=$GREP
3495 fi
3496
3497 fi
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3499 $as_echo "$ac_cv_path_GREP" >&6; }
3500 GREP="$ac_cv_path_GREP"
3501
3502
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3504 $as_echo_n "checking for egrep... " >&6; }
3505 if ${ac_cv_path_EGREP+:} false; then :
3506 $as_echo_n "(cached) " >&6
3507 else
3508 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3509 then ac_cv_path_EGREP="$GREP -E"
3510 else
3511 if test -z "$EGREP"; then
3512 ac_path_EGREP_found=false
3513 # Loop through the user's path and test for each of PROGNAME-LIST
3514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3516 do
3517 IFS=$as_save_IFS
3518 test -z "$as_dir" && as_dir=.
3519 for ac_prog in egrep; do
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3522 as_fn_executable_p "$ac_path_EGREP" || continue
3523 # Check for GNU ac_path_EGREP and select it if it is found.
3524 # Check for GNU $ac_path_EGREP
3525 case `"$ac_path_EGREP" --version 2>&1` in
3526 *GNU*)
3527 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3528 *)
3529 ac_count=0
3530 $as_echo_n 0123456789 >"conftest.in"
3531 while :
3532 do
3533 cat "conftest.in" "conftest.in" >"conftest.tmp"
3534 mv "conftest.tmp" "conftest.in"
3535 cp "conftest.in" "conftest.nl"
3536 $as_echo 'EGREP' >> "conftest.nl"
3537 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3538 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3539 as_fn_arith $ac_count + 1 && ac_count=$as_val
3540 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3541 # Best one so far, save it but keep looking for a better one
3542 ac_cv_path_EGREP="$ac_path_EGREP"
3543 ac_path_EGREP_max=$ac_count
3544 fi
3545 # 10*(2^10) chars as input seems more than enough
3546 test $ac_count -gt 10 && break
3547 done
3548 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3549 esac
3550
3551 $ac_path_EGREP_found && break 3
3552 done
3553 done
3554 done
3555 IFS=$as_save_IFS
3556 if test -z "$ac_cv_path_EGREP"; then
3557 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3558 fi
3559 else
3560 ac_cv_path_EGREP=$EGREP
3561 fi
3562
3563 fi
3564 fi
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3566 $as_echo "$ac_cv_path_EGREP" >&6; }
3567 EGREP="$ac_cv_path_EGREP"
3568
3569
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3571 $as_echo_n "checking for ANSI C header files... " >&6; }
3572 if ${ac_cv_header_stdc+:} false; then :
3573 $as_echo_n "(cached) " >&6
3574 else
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3577 #include <stdlib.h>
3578 #include <stdarg.h>
3579 #include <string.h>
3580 #include <float.h>
3581
3582 int
3583 main ()
3584 {
3585
3586 ;
3587 return 0;
3588 }
3589 _ACEOF
3590 if ac_fn_c_try_compile "$LINENO"; then :
3591 ac_cv_header_stdc=yes
3592 else
3593 ac_cv_header_stdc=no
3594 fi
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596
3597 if test $ac_cv_header_stdc = yes; then
3598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3601 #include <string.h>
3602
3603 _ACEOF
3604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3605 $EGREP "memchr" >/dev/null 2>&1; then :
3606
3607 else
3608 ac_cv_header_stdc=no
3609 fi
3610 rm -f conftest*
3611
3612 fi
3613
3614 if test $ac_cv_header_stdc = yes; then
3615 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617 /* end confdefs.h. */
3618 #include <stdlib.h>
3619
3620 _ACEOF
3621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3622 $EGREP "free" >/dev/null 2>&1; then :
3623
3624 else
3625 ac_cv_header_stdc=no
3626 fi
3627 rm -f conftest*
3628
3629 fi
3630
3631 if test $ac_cv_header_stdc = yes; then
3632 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3633 if test "$cross_compiling" = yes; then :
3634 :
3635 else
3636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637 /* end confdefs.h. */
3638 #include <ctype.h>
3639 #include <stdlib.h>
3640 #if ((' ' & 0x0FF) == 0x020)
3641 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3642 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3643 #else
3644 # define ISLOWER(c) \
3645 (('a' <= (c) && (c) <= 'i') \
3646 || ('j' <= (c) && (c) <= 'r') \
3647 || ('s' <= (c) && (c) <= 'z'))
3648 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3649 #endif
3650
3651 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3652 int
3653 main ()
3654 {
3655 int i;
3656 for (i = 0; i < 256; i++)
3657 if (XOR (islower (i), ISLOWER (i))
3658 || toupper (i) != TOUPPER (i))
3659 return 2;
3660 return 0;
3661 }
3662 _ACEOF
3663 if ac_fn_c_try_run "$LINENO"; then :
3664
3665 else
3666 ac_cv_header_stdc=no
3667 fi
3668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3669 conftest.$ac_objext conftest.beam conftest.$ac_ext
3670 fi
3671
3672 fi
3673 fi
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3675 $as_echo "$ac_cv_header_stdc" >&6; }
3676 if test $ac_cv_header_stdc = yes; then
3677
3678 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3679
3680 fi
3681
3682 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3683 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3684 inttypes.h stdint.h unistd.h
3685 do :
3686 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3687 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3688 "
3689 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3690 cat >>confdefs.h <<_ACEOF
3691 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3692 _ACEOF
3693
3694 fi
3695
3696 done
3697
3698
3699
3700 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3701 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3702 MINIX=yes
3703 else
3704 MINIX=
3705 fi
3706
3707
3708 if test "$MINIX" = yes; then
3709
3710 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3711
3712
3713 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3714
3715
3716 $as_echo "#define _MINIX 1" >>confdefs.h
3717
3718 fi
3719
3720
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3722 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3723 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3724 $as_echo_n "(cached) " >&6
3725 else
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3728
3729 # define __EXTENSIONS__ 1
3730 $ac_includes_default
3731 int
3732 main ()
3733 {
3734
3735 ;
3736 return 0;
3737 }
3738 _ACEOF
3739 if ac_fn_c_try_compile "$LINENO"; then :
3740 ac_cv_safe_to_define___extensions__=yes
3741 else
3742 ac_cv_safe_to_define___extensions__=no
3743 fi
3744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 fi
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3747 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3748 test $ac_cv_safe_to_define___extensions__ = yes &&
3749 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3750
3751 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3752
3753 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3754
3755 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3756
3757 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3758
3759
3760 am__api_version='1.15'
3761
3762 # Find a good install program. We prefer a C program (faster),
3763 # so one script is as good as another. But avoid the broken or
3764 # incompatible versions:
3765 # SysV /etc/install, /usr/sbin/install
3766 # SunOS /usr/etc/install
3767 # IRIX /sbin/install
3768 # AIX /bin/install
3769 # AmigaOS /C/install, which installs bootblocks on floppy discs
3770 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3771 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3772 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3773 # OS/2's system install, which has a completely different semantic
3774 # ./install, which can be erroneously created by make from ./install.sh.
3775 # Reject install programs that cannot install multiple files.
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3777 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3778 if test -z "$INSTALL"; then
3779 if ${ac_cv_path_install+:} false; then :
3780 $as_echo_n "(cached) " >&6
3781 else
3782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783 for as_dir in $PATH
3784 do
3785 IFS=$as_save_IFS
3786 test -z "$as_dir" && as_dir=.
3787 # Account for people who put trailing slashes in PATH elements.
3788 case $as_dir/ in #((
3789 ./ | .// | /[cC]/* | \
3790 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3791 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3792 /usr/ucb/* ) ;;
3793 *)
3794 # OSF1 and SCO ODT 3.0 have their own names for install.
3795 # Don't use installbsd from OSF since it installs stuff as root
3796 # by default.
3797 for ac_prog in ginstall scoinst install; do
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3800 if test $ac_prog = install &&
3801 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3802 # AIX install. It has an incompatible calling convention.
3803 :
3804 elif test $ac_prog = install &&
3805 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3806 # program-specific install script used by HP pwplus--don't use.
3807 :
3808 else
3809 rm -rf conftest.one conftest.two conftest.dir
3810 echo one > conftest.one
3811 echo two > conftest.two
3812 mkdir conftest.dir
3813 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3814 test -s conftest.one && test -s conftest.two &&
3815 test -s conftest.dir/conftest.one &&
3816 test -s conftest.dir/conftest.two
3817 then
3818 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3819 break 3
3820 fi
3821 fi
3822 fi
3823 done
3824 done
3825 ;;
3826 esac
3827
3828 done
3829 IFS=$as_save_IFS
3830
3831 rm -rf conftest.one conftest.two conftest.dir
3832
3833 fi
3834 if test "${ac_cv_path_install+set}" = set; then
3835 INSTALL=$ac_cv_path_install
3836 else
3837 # As a last resort, use the slow shell script. Don't cache a
3838 # value for INSTALL within a source directory, because that will
3839 # break other packages using the cache if that directory is
3840 # removed, or if the value is a relative name.
3841 INSTALL=$ac_install_sh
3842 fi
3843 fi
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3845 $as_echo "$INSTALL" >&6; }
3846
3847 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3848 # It thinks the first close brace ends the variable substitution.
3849 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3850
3851 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3852
3853 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3854
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3856 $as_echo_n "checking whether build environment is sane... " >&6; }
3857 # Reject unsafe characters in $srcdir or the absolute working directory
3858 # name. Accept space and tab only in the latter.
3859 am_lf='
3860 '
3861 case `pwd` in
3862 *[\\\"\#\$\&\'\`$am_lf]*)
3863 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3864 esac
3865 case $srcdir in
3866 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3867 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3868 esac
3869
3870 # Do 'set' in a subshell so we don't clobber the current shell's
3871 # arguments. Must try -L first in case configure is actually a
3872 # symlink; some systems play weird games with the mod time of symlinks
3873 # (eg FreeBSD returns the mod time of the symlink's containing
3874 # directory).
3875 if (
3876 am_has_slept=no
3877 for am_try in 1 2; do
3878 echo "timestamp, slept: $am_has_slept" > conftest.file
3879 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3880 if test "$*" = "X"; then
3881 # -L didn't work.
3882 set X `ls -t "$srcdir/configure" conftest.file`
3883 fi
3884 if test "$*" != "X $srcdir/configure conftest.file" \
3885 && test "$*" != "X conftest.file $srcdir/configure"; then
3886
3887 # If neither matched, then we have a broken ls. This can happen
3888 # if, for instance, CONFIG_SHELL is bash and it inherits a
3889 # broken ls alias from the environment. This has actually
3890 # happened. Such a system could not be considered "sane".
3891 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3892 alias in your environment" "$LINENO" 5
3893 fi
3894 if test "$2" = conftest.file || test $am_try -eq 2; then
3895 break
3896 fi
3897 # Just in case.
3898 sleep 1
3899 am_has_slept=yes
3900 done
3901 test "$2" = conftest.file
3902 )
3903 then
3904 # Ok.
3905 :
3906 else
3907 as_fn_error $? "newly created file is older than distributed files!
3908 Check your system clock" "$LINENO" 5
3909 fi
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3911 $as_echo "yes" >&6; }
3912 # If we didn't sleep, we still need to ensure time stamps of config.status and
3913 # generated files are strictly newer.
3914 am_sleep_pid=
3915 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3916 ( sleep 1 ) &
3917 am_sleep_pid=$!
3918 fi
3919
3920 rm -f conftest.file
3921
3922 test "$program_prefix" != NONE &&
3923 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3924 # Use a double $ so make ignores it.
3925 test "$program_suffix" != NONE &&
3926 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3927 # Double any \ or $.
3928 # By default was `s,x,x', remove it if useless.
3929 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3930 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3931
3932 if test x"${MISSING+set}" != xset; then
3933 case $am_aux_dir in
3934 *\ * | *\ *)
3935 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3936 *)
3937 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3938 esac
3939 fi
3940 # Use eval to expand $SHELL
3941 if eval "$MISSING --is-lightweight"; then
3942 am_missing_run="$MISSING "
3943 else
3944 am_missing_run=
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3946 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3947 fi
3948
3949 if test x"${install_sh+set}" != xset; then
3950 case $am_aux_dir in
3951 *\ * | *\ *)
3952 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3953 *)
3954 install_sh="\${SHELL} $am_aux_dir/install-sh"
3955 esac
3956 fi
3957
3958 # Installed binaries are usually stripped using 'strip' when the user
3959 # run "make install-strip". However 'strip' might not be the right
3960 # tool to use in cross-compilation environments, therefore Automake
3961 # will honor the 'STRIP' environment variable to overrule this program.
3962 if test "$cross_compiling" != no; then
3963 if test -n "$ac_tool_prefix"; then
3964 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3965 set dummy ${ac_tool_prefix}strip; ac_word=$2
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967 $as_echo_n "checking for $ac_word... " >&6; }
3968 if ${ac_cv_prog_STRIP+:} false; then :
3969 $as_echo_n "(cached) " >&6
3970 else
3971 if test -n "$STRIP"; then
3972 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3973 else
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH
3976 do
3977 IFS=$as_save_IFS
3978 test -z "$as_dir" && as_dir=.
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3981 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 break 2
3984 fi
3985 done
3986 done
3987 IFS=$as_save_IFS
3988
3989 fi
3990 fi
3991 STRIP=$ac_cv_prog_STRIP
3992 if test -n "$STRIP"; then
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3994 $as_echo "$STRIP" >&6; }
3995 else
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997 $as_echo "no" >&6; }
3998 fi
3999
4000
4001 fi
4002 if test -z "$ac_cv_prog_STRIP"; then
4003 ac_ct_STRIP=$STRIP
4004 # Extract the first word of "strip", so it can be a program name with args.
4005 set dummy strip; ac_word=$2
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007 $as_echo_n "checking for $ac_word... " >&6; }
4008 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4009 $as_echo_n "(cached) " >&6
4010 else
4011 if test -n "$ac_ct_STRIP"; then
4012 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4013 else
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 for as_dir in $PATH
4016 do
4017 IFS=$as_save_IFS
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021 ac_cv_prog_ac_ct_STRIP="strip"
4022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 break 2
4024 fi
4025 done
4026 done
4027 IFS=$as_save_IFS
4028
4029 fi
4030 fi
4031 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4032 if test -n "$ac_ct_STRIP"; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4034 $as_echo "$ac_ct_STRIP" >&6; }
4035 else
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 $as_echo "no" >&6; }
4038 fi
4039
4040 if test "x$ac_ct_STRIP" = x; then
4041 STRIP=":"
4042 else
4043 case $cross_compiling:$ac_tool_warned in
4044 yes:)
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4047 ac_tool_warned=yes ;;
4048 esac
4049 STRIP=$ac_ct_STRIP
4050 fi
4051 else
4052 STRIP="$ac_cv_prog_STRIP"
4053 fi
4054
4055 fi
4056 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4057
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4059 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4060 if test -z "$MKDIR_P"; then
4061 if ${ac_cv_path_mkdir+:} false; then :
4062 $as_echo_n "(cached) " >&6
4063 else
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4066 do
4067 IFS=$as_save_IFS
4068 test -z "$as_dir" && as_dir=.
4069 for ac_prog in mkdir gmkdir; do
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4072 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4073 'mkdir (GNU coreutils) '* | \
4074 'mkdir (coreutils) '* | \
4075 'mkdir (fileutils) '4.1*)
4076 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4077 break 3;;
4078 esac
4079 done
4080 done
4081 done
4082 IFS=$as_save_IFS
4083
4084 fi
4085
4086 test -d ./--version && rmdir ./--version
4087 if test "${ac_cv_path_mkdir+set}" = set; then
4088 MKDIR_P="$ac_cv_path_mkdir -p"
4089 else
4090 # As a last resort, use the slow shell script. Don't cache a
4091 # value for MKDIR_P within a source directory, because that will
4092 # break other packages using the cache if that directory is
4093 # removed, or if the value is a relative name.
4094 MKDIR_P="$ac_install_sh -d"
4095 fi
4096 fi
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4098 $as_echo "$MKDIR_P" >&6; }
4099
4100 for ac_prog in gawk mawk nawk awk
4101 do
4102 # Extract the first word of "$ac_prog", so it can be a program name with args.
4103 set dummy $ac_prog; ac_word=$2
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4105 $as_echo_n "checking for $ac_word... " >&6; }
4106 if ${ac_cv_prog_AWK+:} false; then :
4107 $as_echo_n "(cached) " >&6
4108 else
4109 if test -n "$AWK"; then
4110 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4111 else
4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113 for as_dir in $PATH
4114 do
4115 IFS=$as_save_IFS
4116 test -z "$as_dir" && as_dir=.
4117 for ac_exec_ext in '' $ac_executable_extensions; do
4118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4119 ac_cv_prog_AWK="$ac_prog"
4120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4121 break 2
4122 fi
4123 done
4124 done
4125 IFS=$as_save_IFS
4126
4127 fi
4128 fi
4129 AWK=$ac_cv_prog_AWK
4130 if test -n "$AWK"; then
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4132 $as_echo "$AWK" >&6; }
4133 else
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135 $as_echo "no" >&6; }
4136 fi
4137
4138
4139 test -n "$AWK" && break
4140 done
4141
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4143 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4144 set x ${MAKE-make}
4145 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4146 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4147 $as_echo_n "(cached) " >&6
4148 else
4149 cat >conftest.make <<\_ACEOF
4150 SHELL = /bin/sh
4151 all:
4152 @echo '@@@%%%=$(MAKE)=@@@%%%'
4153 _ACEOF
4154 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4155 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4156 *@@@%%%=?*=@@@%%%*)
4157 eval ac_cv_prog_make_${ac_make}_set=yes;;
4158 *)
4159 eval ac_cv_prog_make_${ac_make}_set=no;;
4160 esac
4161 rm -f conftest.make
4162 fi
4163 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4165 $as_echo "yes" >&6; }
4166 SET_MAKE=
4167 else
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169 $as_echo "no" >&6; }
4170 SET_MAKE="MAKE=${MAKE-make}"
4171 fi
4172
4173 rm -rf .tst 2>/dev/null
4174 mkdir .tst 2>/dev/null
4175 if test -d .tst; then
4176 am__leading_dot=.
4177 else
4178 am__leading_dot=_
4179 fi
4180 rmdir .tst 2>/dev/null
4181
4182 DEPDIR="${am__leading_dot}deps"
4183
4184 ac_config_commands="$ac_config_commands depfiles"
4185
4186
4187 am_make=${MAKE-make}
4188 cat > confinc << 'END'
4189 am__doit:
4190 @echo this is the am__doit target
4191 .PHONY: am__doit
4192 END
4193 # If we don't find an include directive, just comment out the code.
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4195 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4196 am__include="#"
4197 am__quote=
4198 _am_result=none
4199 # First try GNU make style include.
4200 echo "include confinc" > confmf
4201 # Ignore all kinds of additional output from 'make'.
4202 case `$am_make -s -f confmf 2> /dev/null` in #(
4203 *the\ am__doit\ target*)
4204 am__include=include
4205 am__quote=
4206 _am_result=GNU
4207 ;;
4208 esac
4209 # Now try BSD make style include.
4210 if test "$am__include" = "#"; then
4211 echo '.include "confinc"' > confmf
4212 case `$am_make -s -f confmf 2> /dev/null` in #(
4213 *the\ am__doit\ target*)
4214 am__include=.include
4215 am__quote="\""
4216 _am_result=BSD
4217 ;;
4218 esac
4219 fi
4220
4221
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4223 $as_echo "$_am_result" >&6; }
4224 rm -f confinc confmf
4225
4226 # Check whether --enable-dependency-tracking was given.
4227 if test "${enable_dependency_tracking+set}" = set; then :
4228 enableval=$enable_dependency_tracking;
4229 fi
4230
4231 if test "x$enable_dependency_tracking" != xno; then
4232 am_depcomp="$ac_aux_dir/depcomp"
4233 AMDEPBACKSLASH='\'
4234 am__nodep='_no'
4235 fi
4236 if test "x$enable_dependency_tracking" != xno; then
4237 AMDEP_TRUE=
4238 AMDEP_FALSE='#'
4239 else
4240 AMDEP_TRUE='#'
4241 AMDEP_FALSE=
4242 fi
4243
4244
4245 # Check whether --enable-silent-rules was given.
4246 if test "${enable_silent_rules+set}" = set; then :
4247 enableval=$enable_silent_rules;
4248 fi
4249
4250 case $enable_silent_rules in # (((
4251 yes) AM_DEFAULT_VERBOSITY=0;;
4252 no) AM_DEFAULT_VERBOSITY=1;;
4253 *) AM_DEFAULT_VERBOSITY=1;;
4254 esac
4255 am_make=${MAKE-make}
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4257 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4258 if ${am_cv_make_support_nested_variables+:} false; then :
4259 $as_echo_n "(cached) " >&6
4260 else
4261 if $as_echo 'TRUE=$(BAR$(V))
4262 BAR0=false
4263 BAR1=true
4264 V=1
4265 am__doit:
4266 @$(TRUE)
4267 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4268 am_cv_make_support_nested_variables=yes
4269 else
4270 am_cv_make_support_nested_variables=no
4271 fi
4272 fi
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4274 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4275 if test $am_cv_make_support_nested_variables = yes; then
4276 AM_V='$(V)'
4277 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4278 else
4279 AM_V=$AM_DEFAULT_VERBOSITY
4280 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4281 fi
4282 AM_BACKSLASH='\'
4283
4284 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4285 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4286 # is not polluted with repeated "-I."
4287 am__isrc=' -I$(srcdir)'
4288 # test to see if srcdir already configured
4289 if test -f $srcdir/config.status; then
4290 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4291 fi
4292 fi
4293
4294 # test whether we have cygpath
4295 if test -z "$CYGPATH_W"; then
4296 if (cygpath --version) >/dev/null 2>/dev/null; then
4297 CYGPATH_W='cygpath -w'
4298 else
4299 CYGPATH_W=echo
4300 fi
4301 fi
4302
4303
4304 # Define the identity of the package.
4305 PACKAGE='libctf'
4306 VERSION='1.2.0'
4307
4308
4309 cat >>confdefs.h <<_ACEOF
4310 #define PACKAGE "$PACKAGE"
4311 _ACEOF
4312
4313
4314 cat >>confdefs.h <<_ACEOF
4315 #define VERSION "$VERSION"
4316 _ACEOF
4317
4318 # Some tools Automake needs.
4319
4320 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4321
4322
4323 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4324
4325
4326 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4327
4328
4329 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4330
4331
4332 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4333
4334 # For better backward compatibility. To be removed once Automake 1.9.x
4335 # dies out for good. For more background, see:
4336 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4337 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4338 mkdir_p='$(MKDIR_P)'
4339
4340 # We need awk for the "check" target (and possibly the TAP driver). The
4341 # system "awk" is bad on some platforms.
4342 # Always define AMTAR for backward compatibility. Yes, it's still used
4343 # in the wild :-( We should find a proper way to deprecate it ...
4344 AMTAR='$${TAR-tar}'
4345
4346
4347 # We'll loop over all known methods to create a tar archive until one works.
4348 _am_tools='gnutar pax cpio none'
4349
4350 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4351
4352
4353
4354
4355
4356 depcc="$CC" am_compiler_list=
4357
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4359 $as_echo_n "checking dependency style of $depcc... " >&6; }
4360 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4361 $as_echo_n "(cached) " >&6
4362 else
4363 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4364 # We make a subdir and do the tests there. Otherwise we can end up
4365 # making bogus files that we don't know about and never remove. For
4366 # instance it was reported that on HP-UX the gcc test will end up
4367 # making a dummy file named 'D' -- because '-MD' means "put the output
4368 # in D".
4369 rm -rf conftest.dir
4370 mkdir conftest.dir
4371 # Copy depcomp to subdir because otherwise we won't find it if we're
4372 # using a relative directory.
4373 cp "$am_depcomp" conftest.dir
4374 cd conftest.dir
4375 # We will build objects and dependencies in a subdirectory because
4376 # it helps to detect inapplicable dependency modes. For instance
4377 # both Tru64's cc and ICC support -MD to output dependencies as a
4378 # side effect of compilation, but ICC will put the dependencies in
4379 # the current directory while Tru64 will put them in the object
4380 # directory.
4381 mkdir sub
4382
4383 am_cv_CC_dependencies_compiler_type=none
4384 if test "$am_compiler_list" = ""; then
4385 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4386 fi
4387 am__universal=false
4388 case " $depcc " in #(
4389 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4390 esac
4391
4392 for depmode in $am_compiler_list; do
4393 # Setup a source with many dependencies, because some compilers
4394 # like to wrap large dependency lists on column 80 (with \), and
4395 # we should not choose a depcomp mode which is confused by this.
4396 #
4397 # We need to recreate these files for each test, as the compiler may
4398 # overwrite some of them when testing with obscure command lines.
4399 # This happens at least with the AIX C compiler.
4400 : > sub/conftest.c
4401 for i in 1 2 3 4 5 6; do
4402 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4403 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4404 # Solaris 10 /bin/sh.
4405 echo '/* dummy */' > sub/conftst$i.h
4406 done
4407 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4408
4409 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4410 # mode. It turns out that the SunPro C++ compiler does not properly
4411 # handle '-M -o', and we need to detect this. Also, some Intel
4412 # versions had trouble with output in subdirs.
4413 am__obj=sub/conftest.${OBJEXT-o}
4414 am__minus_obj="-o $am__obj"
4415 case $depmode in
4416 gcc)
4417 # This depmode causes a compiler race in universal mode.
4418 test "$am__universal" = false || continue
4419 ;;
4420 nosideeffect)
4421 # After this tag, mechanisms are not by side-effect, so they'll
4422 # only be used when explicitly requested.
4423 if test "x$enable_dependency_tracking" = xyes; then
4424 continue
4425 else
4426 break
4427 fi
4428 ;;
4429 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4430 # This compiler won't grok '-c -o', but also, the minuso test has
4431 # not run yet. These depmodes are late enough in the game, and
4432 # so weak that their functioning should not be impacted.
4433 am__obj=conftest.${OBJEXT-o}
4434 am__minus_obj=
4435 ;;
4436 none) break ;;
4437 esac
4438 if depmode=$depmode \
4439 source=sub/conftest.c object=$am__obj \
4440 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4441 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4442 >/dev/null 2>conftest.err &&
4443 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4444 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4445 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4446 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4447 # icc doesn't choke on unknown options, it will just issue warnings
4448 # or remarks (even with -Werror). So we grep stderr for any message
4449 # that says an option was ignored or not supported.
4450 # When given -MP, icc 7.0 and 7.1 complain thusly:
4451 # icc: Command line warning: ignoring option '-M'; no argument required
4452 # The diagnosis changed in icc 8.0:
4453 # icc: Command line remark: option '-MP' not supported
4454 if (grep 'ignoring option' conftest.err ||
4455 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4456 am_cv_CC_dependencies_compiler_type=$depmode
4457 break
4458 fi
4459 fi
4460 done
4461
4462 cd ..
4463 rm -rf conftest.dir
4464 else
4465 am_cv_CC_dependencies_compiler_type=none
4466 fi
4467
4468 fi
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4470 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4471 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4472
4473 if
4474 test "x$enable_dependency_tracking" != xno \
4475 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4476 am__fastdepCC_TRUE=
4477 am__fastdepCC_FALSE='#'
4478 else
4479 am__fastdepCC_TRUE='#'
4480 am__fastdepCC_FALSE=
4481 fi
4482
4483
4484
4485 # POSIX will say in a future version that running "rm -f" with no argument
4486 # is OK; and we want to be able to make that assumption in our Makefile
4487 # recipes. So use an aggressive probe to check that the usage we want is
4488 # actually supported "in the wild" to an acceptable degree.
4489 # See automake bug#10828.
4490 # To make any issue more visible, cause the running configure to be aborted
4491 # by default if the 'rm' program in use doesn't match our expectations; the
4492 # user can still override this though.
4493 if rm -f && rm -fr && rm -rf; then : OK; else
4494 cat >&2 <<'END'
4495 Oops!
4496
4497 Your 'rm' program seems unable to run without file operands specified
4498 on the command line, even when the '-f' option is present. This is contrary
4499 to the behaviour of most rm programs out there, and not conforming with
4500 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4501
4502 Please tell bug-automake@gnu.org about your system, including the value
4503 of your $PATH and any error possibly output before this message. This
4504 can help us improve future automake versions.
4505
4506 END
4507 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4508 echo 'Configuration will proceed anyway, since you have set the' >&2
4509 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4510 echo >&2
4511 else
4512 cat >&2 <<'END'
4513 Aborting the configuration process, to ensure you take notice of the issue.
4514
4515 You can download and install GNU coreutils to get an 'rm' implementation
4516 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4517
4518 If you want to complete the configuration process using your problematic
4519 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4520 to "yes", and re-run configure.
4521
4522 END
4523 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4524 fi
4525 fi
4526
4527
4528 # Checks for programs.
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4530 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4531 set x ${MAKE-make}
4532 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4533 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4534 $as_echo_n "(cached) " >&6
4535 else
4536 cat >conftest.make <<\_ACEOF
4537 SHELL = /bin/sh
4538 all:
4539 @echo '@@@%%%=$(MAKE)=@@@%%%'
4540 _ACEOF
4541 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4542 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4543 *@@@%%%=?*=@@@%%%*)
4544 eval ac_cv_prog_make_${ac_make}_set=yes;;
4545 *)
4546 eval ac_cv_prog_make_${ac_make}_set=no;;
4547 esac
4548 rm -f conftest.make
4549 fi
4550 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4552 $as_echo "yes" >&6; }
4553 SET_MAKE=
4554 else
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 $as_echo "no" >&6; }
4557 SET_MAKE="MAKE=${MAKE-make}"
4558 fi
4559
4560 ac_ext=c
4561 ac_cpp='$CPP $CPPFLAGS'
4562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4565 if test -n "$ac_tool_prefix"; then
4566 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4567 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569 $as_echo_n "checking for $ac_word... " >&6; }
4570 if ${ac_cv_prog_CC+:} false; then :
4571 $as_echo_n "(cached) " >&6
4572 else
4573 if test -n "$CC"; then
4574 ac_cv_prog_CC="$CC" # Let the user override the test.
4575 else
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH
4578 do
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4583 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 break 2
4586 fi
4587 done
4588 done
4589 IFS=$as_save_IFS
4590
4591 fi
4592 fi
4593 CC=$ac_cv_prog_CC
4594 if test -n "$CC"; then
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4596 $as_echo "$CC" >&6; }
4597 else
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599 $as_echo "no" >&6; }
4600 fi
4601
4602
4603 fi
4604 if test -z "$ac_cv_prog_CC"; then
4605 ac_ct_CC=$CC
4606 # Extract the first word of "gcc", so it can be a program name with args.
4607 set dummy gcc; ac_word=$2
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4609 $as_echo_n "checking for $ac_word... " >&6; }
4610 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4611 $as_echo_n "(cached) " >&6
4612 else
4613 if test -n "$ac_ct_CC"; then
4614 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4615 else
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH
4618 do
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4623 ac_cv_prog_ac_ct_CC="gcc"
4624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 break 2
4626 fi
4627 done
4628 done
4629 IFS=$as_save_IFS
4630
4631 fi
4632 fi
4633 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4634 if test -n "$ac_ct_CC"; then
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4636 $as_echo "$ac_ct_CC" >&6; }
4637 else
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639 $as_echo "no" >&6; }
4640 fi
4641
4642 if test "x$ac_ct_CC" = x; then
4643 CC=""
4644 else
4645 case $cross_compiling:$ac_tool_warned in
4646 yes:)
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4649 ac_tool_warned=yes ;;
4650 esac
4651 CC=$ac_ct_CC
4652 fi
4653 else
4654 CC="$ac_cv_prog_CC"
4655 fi
4656
4657 if test -z "$CC"; then
4658 if test -n "$ac_tool_prefix"; then
4659 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4660 set dummy ${ac_tool_prefix}cc; ac_word=$2
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if ${ac_cv_prog_CC+:} false; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 if test -n "$CC"; then
4667 ac_cv_prog_CC="$CC" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4671 do
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676 ac_cv_prog_CC="${ac_tool_prefix}cc"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4679 fi
4680 done
4681 done
4682 IFS=$as_save_IFS
4683
4684 fi
4685 fi
4686 CC=$ac_cv_prog_CC
4687 if test -n "$CC"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4689 $as_echo "$CC" >&6; }
4690 else
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4693 fi
4694
4695
4696 fi
4697 fi
4698 if test -z "$CC"; then
4699 # Extract the first word of "cc", so it can be a program name with args.
4700 set dummy cc; ac_word=$2
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702 $as_echo_n "checking for $ac_word... " >&6; }
4703 if ${ac_cv_prog_CC+:} false; then :
4704 $as_echo_n "(cached) " >&6
4705 else
4706 if test -n "$CC"; then
4707 ac_cv_prog_CC="$CC" # Let the user override the test.
4708 else
4709 ac_prog_rejected=no
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH
4712 do
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4717 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4718 ac_prog_rejected=yes
4719 continue
4720 fi
4721 ac_cv_prog_CC="cc"
4722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 break 2
4724 fi
4725 done
4726 done
4727 IFS=$as_save_IFS
4728
4729 if test $ac_prog_rejected = yes; then
4730 # We found a bogon in the path, so make sure we never use it.
4731 set dummy $ac_cv_prog_CC
4732 shift
4733 if test $# != 0; then
4734 # We chose a different compiler from the bogus one.
4735 # However, it has the same basename, so the bogon will be chosen
4736 # first if we set CC to just the basename; use the full file name.
4737 shift
4738 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4739 fi
4740 fi
4741 fi
4742 fi
4743 CC=$ac_cv_prog_CC
4744 if test -n "$CC"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4746 $as_echo "$CC" >&6; }
4747 else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4750 fi
4751
4752
4753 fi
4754 if test -z "$CC"; then
4755 if test -n "$ac_tool_prefix"; then
4756 for ac_prog in cl.exe
4757 do
4758 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4759 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761 $as_echo_n "checking for $ac_word... " >&6; }
4762 if ${ac_cv_prog_CC+:} false; then :
4763 $as_echo_n "(cached) " >&6
4764 else
4765 if test -n "$CC"; then
4766 ac_cv_prog_CC="$CC" # Let the user override the test.
4767 else
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 for as_dir in $PATH
4770 do
4771 IFS=$as_save_IFS
4772 test -z "$as_dir" && as_dir=.
4773 for ac_exec_ext in '' $ac_executable_extensions; do
4774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4775 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4777 break 2
4778 fi
4779 done
4780 done
4781 IFS=$as_save_IFS
4782
4783 fi
4784 fi
4785 CC=$ac_cv_prog_CC
4786 if test -n "$CC"; then
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4788 $as_echo "$CC" >&6; }
4789 else
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791 $as_echo "no" >&6; }
4792 fi
4793
4794
4795 test -n "$CC" && break
4796 done
4797 fi
4798 if test -z "$CC"; then
4799 ac_ct_CC=$CC
4800 for ac_prog in cl.exe
4801 do
4802 # Extract the first word of "$ac_prog", so it can be a program name with args.
4803 set dummy $ac_prog; ac_word=$2
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805 $as_echo_n "checking for $ac_word... " >&6; }
4806 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 if test -n "$ac_ct_CC"; then
4810 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4811 else
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4814 do
4815 IFS=$as_save_IFS
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4819 ac_cv_prog_ac_ct_CC="$ac_prog"
4820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 break 2
4822 fi
4823 done
4824 done
4825 IFS=$as_save_IFS
4826
4827 fi
4828 fi
4829 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4830 if test -n "$ac_ct_CC"; then
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4832 $as_echo "$ac_ct_CC" >&6; }
4833 else
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835 $as_echo "no" >&6; }
4836 fi
4837
4838
4839 test -n "$ac_ct_CC" && break
4840 done
4841
4842 if test "x$ac_ct_CC" = x; then
4843 CC=""
4844 else
4845 case $cross_compiling:$ac_tool_warned in
4846 yes:)
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4849 ac_tool_warned=yes ;;
4850 esac
4851 CC=$ac_ct_CC
4852 fi
4853 fi
4854
4855 fi
4856
4857
4858 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4860 as_fn_error $? "no acceptable C compiler found in \$PATH
4861 See \`config.log' for more details" "$LINENO" 5; }
4862
4863 # Provide some information about the compiler.
4864 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4865 set X $ac_compile
4866 ac_compiler=$2
4867 for ac_option in --version -v -V -qversion; do
4868 { { ac_try="$ac_compiler $ac_option >&5"
4869 case "(($ac_try" in
4870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871 *) ac_try_echo=$ac_try;;
4872 esac
4873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4874 $as_echo "$ac_try_echo"; } >&5
4875 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4876 ac_status=$?
4877 if test -s conftest.err; then
4878 sed '10a\
4879 ... rest of stderr output deleted ...
4880 10q' conftest.err >conftest.er1
4881 cat conftest.er1 >&5
4882 fi
4883 rm -f conftest.er1 conftest.err
4884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4885 test $ac_status = 0; }
4886 done
4887
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4889 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4890 if ${ac_cv_c_compiler_gnu+:} false; then :
4891 $as_echo_n "(cached) " >&6
4892 else
4893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4894 /* end confdefs.h. */
4895
4896 int
4897 main ()
4898 {
4899 #ifndef __GNUC__
4900 choke me
4901 #endif
4902
4903 ;
4904 return 0;
4905 }
4906 _ACEOF
4907 if ac_fn_c_try_compile "$LINENO"; then :
4908 ac_compiler_gnu=yes
4909 else
4910 ac_compiler_gnu=no
4911 fi
4912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4913 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4914
4915 fi
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4917 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4918 if test $ac_compiler_gnu = yes; then
4919 GCC=yes
4920 else
4921 GCC=
4922 fi
4923 ac_test_CFLAGS=${CFLAGS+set}
4924 ac_save_CFLAGS=$CFLAGS
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4926 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4927 if ${ac_cv_prog_cc_g+:} false; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 ac_save_c_werror_flag=$ac_c_werror_flag
4931 ac_c_werror_flag=yes
4932 ac_cv_prog_cc_g=no
4933 CFLAGS="-g"
4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h. */
4936
4937 int
4938 main ()
4939 {
4940
4941 ;
4942 return 0;
4943 }
4944 _ACEOF
4945 if ac_fn_c_try_compile "$LINENO"; then :
4946 ac_cv_prog_cc_g=yes
4947 else
4948 CFLAGS=""
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4951
4952 int
4953 main ()
4954 {
4955
4956 ;
4957 return 0;
4958 }
4959 _ACEOF
4960 if ac_fn_c_try_compile "$LINENO"; then :
4961
4962 else
4963 ac_c_werror_flag=$ac_save_c_werror_flag
4964 CFLAGS="-g"
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4967
4968 int
4969 main ()
4970 {
4971
4972 ;
4973 return 0;
4974 }
4975 _ACEOF
4976 if ac_fn_c_try_compile "$LINENO"; then :
4977 ac_cv_prog_cc_g=yes
4978 fi
4979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4980 fi
4981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4982 fi
4983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4984 ac_c_werror_flag=$ac_save_c_werror_flag
4985 fi
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4987 $as_echo "$ac_cv_prog_cc_g" >&6; }
4988 if test "$ac_test_CFLAGS" = set; then
4989 CFLAGS=$ac_save_CFLAGS
4990 elif test $ac_cv_prog_cc_g = yes; then
4991 if test "$GCC" = yes; then
4992 CFLAGS="-g -O2"
4993 else
4994 CFLAGS="-g"
4995 fi
4996 else
4997 if test "$GCC" = yes; then
4998 CFLAGS="-O2"
4999 else
5000 CFLAGS=
5001 fi
5002 fi
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5004 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5005 if ${ac_cv_prog_cc_c89+:} false; then :
5006 $as_echo_n "(cached) " >&6
5007 else
5008 ac_cv_prog_cc_c89=no
5009 ac_save_CC=$CC
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h. */
5012 #include <stdarg.h>
5013 #include <stdio.h>
5014 struct stat;
5015 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5016 struct buf { int x; };
5017 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5018 static char *e (p, i)
5019 char **p;
5020 int i;
5021 {
5022 return p[i];
5023 }
5024 static char *f (char * (*g) (char **, int), char **p, ...)
5025 {
5026 char *s;
5027 va_list v;
5028 va_start (v,p);
5029 s = g (p, va_arg (v,int));
5030 va_end (v);
5031 return s;
5032 }
5033
5034 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5035 function prototypes and stuff, but not '\xHH' hex character constants.
5036 These don't provoke an error unfortunately, instead are silently treated
5037 as 'x'. The following induces an error, until -std is added to get
5038 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5039 array size at least. It's necessary to write '\x00'==0 to get something
5040 that's true only with -std. */
5041 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5042
5043 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5044 inside strings and character constants. */
5045 #define FOO(x) 'x'
5046 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5047
5048 int test (int i, double x);
5049 struct s1 {int (*f) (int a);};
5050 struct s2 {int (*f) (double a);};
5051 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5052 int argc;
5053 char **argv;
5054 int
5055 main ()
5056 {
5057 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5058 ;
5059 return 0;
5060 }
5061 _ACEOF
5062 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5063 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5064 do
5065 CC="$ac_save_CC $ac_arg"
5066 if ac_fn_c_try_compile "$LINENO"; then :
5067 ac_cv_prog_cc_c89=$ac_arg
5068 fi
5069 rm -f core conftest.err conftest.$ac_objext
5070 test "x$ac_cv_prog_cc_c89" != "xno" && break
5071 done
5072 rm -f conftest.$ac_ext
5073 CC=$ac_save_CC
5074
5075 fi
5076 # AC_CACHE_VAL
5077 case "x$ac_cv_prog_cc_c89" in
5078 x)
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5080 $as_echo "none needed" >&6; } ;;
5081 xno)
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5083 $as_echo "unsupported" >&6; } ;;
5084 *)
5085 CC="$CC $ac_cv_prog_cc_c89"
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5087 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5088 esac
5089 if test "x$ac_cv_prog_cc_c89" != xno; then :
5090
5091 fi
5092
5093 ac_ext=c
5094 ac_cpp='$CPP $CPPFLAGS'
5095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5098
5099 ac_ext=c
5100 ac_cpp='$CPP $CPPFLAGS'
5101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5105 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5106 if ${am_cv_prog_cc_c_o+:} false; then :
5107 $as_echo_n "(cached) " >&6
5108 else
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5111
5112 int
5113 main ()
5114 {
5115
5116 ;
5117 return 0;
5118 }
5119 _ACEOF
5120 # Make sure it works both with $CC and with simple cc.
5121 # Following AC_PROG_CC_C_O, we do the test twice because some
5122 # compilers refuse to overwrite an existing .o file with -o,
5123 # though they will create one.
5124 am_cv_prog_cc_c_o=yes
5125 for am_i in 1 2; do
5126 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5127 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5128 ac_status=$?
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } \
5131 && test -f conftest2.$ac_objext; then
5132 : OK
5133 else
5134 am_cv_prog_cc_c_o=no
5135 break
5136 fi
5137 done
5138 rm -f core conftest*
5139 unset am_i
5140 fi
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5142 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5143 if test "$am_cv_prog_cc_c_o" != yes; then
5144 # Losing compiler, so override with the script.
5145 # FIXME: It is wrong to rewrite CC.
5146 # But if we don't then we get into trouble of one sort or another.
5147 # A longer-term fix would be to have automake use am__CC in this case,
5148 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5149 CC="$am_aux_dir/compile $CC"
5150 fi
5151 ac_ext=c
5152 ac_cpp='$CPP $CPPFLAGS'
5153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5156
5157
5158 if test -n "$ac_tool_prefix"; then
5159 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5160 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5162 $as_echo_n "checking for $ac_word... " >&6; }
5163 if ${ac_cv_prog_RANLIB+:} false; then :
5164 $as_echo_n "(cached) " >&6
5165 else
5166 if test -n "$RANLIB"; then
5167 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5168 else
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH
5171 do
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5176 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 break 2
5179 fi
5180 done
5181 done
5182 IFS=$as_save_IFS
5183
5184 fi
5185 fi
5186 RANLIB=$ac_cv_prog_RANLIB
5187 if test -n "$RANLIB"; then
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5189 $as_echo "$RANLIB" >&6; }
5190 else
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192 $as_echo "no" >&6; }
5193 fi
5194
5195
5196 fi
5197 if test -z "$ac_cv_prog_RANLIB"; then
5198 ac_ct_RANLIB=$RANLIB
5199 # Extract the first word of "ranlib", so it can be a program name with args.
5200 set dummy ranlib; ac_word=$2
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5202 $as_echo_n "checking for $ac_word... " >&6; }
5203 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5204 $as_echo_n "(cached) " >&6
5205 else
5206 if test -n "$ac_ct_RANLIB"; then
5207 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5208 else
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5211 do
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216 ac_cv_prog_ac_ct_RANLIB="ranlib"
5217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 break 2
5219 fi
5220 done
5221 done
5222 IFS=$as_save_IFS
5223
5224 fi
5225 fi
5226 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5227 if test -n "$ac_ct_RANLIB"; then
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5229 $as_echo "$ac_ct_RANLIB" >&6; }
5230 else
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }
5233 fi
5234
5235 if test "x$ac_ct_RANLIB" = x; then
5236 RANLIB=":"
5237 else
5238 case $cross_compiling:$ac_tool_warned in
5239 yes:)
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5242 ac_tool_warned=yes ;;
5243 esac
5244 RANLIB=$ac_ct_RANLIB
5245 fi
5246 else
5247 RANLIB="$ac_cv_prog_RANLIB"
5248 fi
5249
5250 if test -n "$ac_tool_prefix"; then
5251 for ac_prog in ar lib "link -lib"
5252 do
5253 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5254 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5256 $as_echo_n "checking for $ac_word... " >&6; }
5257 if ${ac_cv_prog_AR+:} false; then :
5258 $as_echo_n "(cached) " >&6
5259 else
5260 if test -n "$AR"; then
5261 ac_cv_prog_AR="$AR" # Let the user override the test.
5262 else
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in $PATH
5265 do
5266 IFS=$as_save_IFS
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 break 2
5273 fi
5274 done
5275 done
5276 IFS=$as_save_IFS
5277
5278 fi
5279 fi
5280 AR=$ac_cv_prog_AR
5281 if test -n "$AR"; then
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5283 $as_echo "$AR" >&6; }
5284 else
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286 $as_echo "no" >&6; }
5287 fi
5288
5289
5290 test -n "$AR" && break
5291 done
5292 fi
5293 if test -z "$AR"; then
5294 ac_ct_AR=$AR
5295 for ac_prog in ar lib "link -lib"
5296 do
5297 # Extract the first word of "$ac_prog", so it can be a program name with args.
5298 set dummy $ac_prog; ac_word=$2
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5300 $as_echo_n "checking for $ac_word... " >&6; }
5301 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 if test -n "$ac_ct_AR"; then
5305 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5306 else
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5309 do
5310 IFS=$as_save_IFS
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314 ac_cv_prog_ac_ct_AR="$ac_prog"
5315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 break 2
5317 fi
5318 done
5319 done
5320 IFS=$as_save_IFS
5321
5322 fi
5323 fi
5324 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5325 if test -n "$ac_ct_AR"; then
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5327 $as_echo "$ac_ct_AR" >&6; }
5328 else
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330 $as_echo "no" >&6; }
5331 fi
5332
5333
5334 test -n "$ac_ct_AR" && break
5335 done
5336
5337 if test "x$ac_ct_AR" = x; then
5338 AR="false"
5339 else
5340 case $cross_compiling:$ac_tool_warned in
5341 yes:)
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5344 ac_tool_warned=yes ;;
5345 esac
5346 AR=$ac_ct_AR
5347 fi
5348 fi
5349
5350 : ${AR=ar}
5351
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5353 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5354 if ${am_cv_ar_interface+:} false; then :
5355 $as_echo_n "(cached) " >&6
5356 else
5357 ac_ext=c
5358 ac_cpp='$CPP $CPPFLAGS'
5359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5362
5363 am_cv_ar_interface=ar
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h. */
5366 int some_variable = 0;
5367 _ACEOF
5368 if ac_fn_c_try_compile "$LINENO"; then :
5369 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5371 (eval $am_ar_try) 2>&5
5372 ac_status=$?
5373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5374 test $ac_status = 0; }
5375 if test "$ac_status" -eq 0; then
5376 am_cv_ar_interface=ar
5377 else
5378 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5380 (eval $am_ar_try) 2>&5
5381 ac_status=$?
5382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5383 test $ac_status = 0; }
5384 if test "$ac_status" -eq 0; then
5385 am_cv_ar_interface=lib
5386 else
5387 am_cv_ar_interface=unknown
5388 fi
5389 fi
5390 rm -f conftest.lib libconftest.a
5391
5392 fi
5393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5394 ac_ext=c
5395 ac_cpp='$CPP $CPPFLAGS'
5396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5399
5400 fi
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5402 $as_echo "$am_cv_ar_interface" >&6; }
5403
5404 case $am_cv_ar_interface in
5405 ar)
5406 ;;
5407 lib)
5408 # Microsoft lib, so override with the ar-lib wrapper script.
5409 # FIXME: It is wrong to rewrite AR.
5410 # But if we don't then we get into trouble of one sort or another.
5411 # A longer-term fix would be to have automake use am__AR in this case,
5412 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5413 # similar.
5414 AR="$am_aux_dir/ar-lib $AR"
5415 ;;
5416 unknown)
5417 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5418 ;;
5419 esac
5420
5421 # If we haven't got the data from the intl directory,
5422 # assume NLS is disabled.
5423 USE_NLS=no
5424 LIBINTL=
5425 LIBINTL_DEP=
5426 INCINTL=
5427 XGETTEXT=
5428 GMSGFMT=
5429 POSUB=
5430
5431 if test -f ../intl/config.intl; then
5432 . ../intl/config.intl
5433 fi
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5435 $as_echo_n "checking whether NLS is requested... " >&6; }
5436 if test x"$USE_NLS" != xyes; then
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5439 else
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5441 $as_echo "yes" >&6; }
5442
5443 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5444
5445
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5447 $as_echo_n "checking for catalogs to be installed... " >&6; }
5448 # Look for .po and .gmo files in the source directory.
5449 CATALOGS=
5450 XLINGUAS=
5451 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5452 # If there aren't any .gmo files the shell will give us the
5453 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5454 # weeded out.
5455 case "$cat" in *\**)
5456 continue;;
5457 esac
5458 # The quadruple backslash is collapsed to a double backslash
5459 # by the backticks, then collapsed again by the double quotes,
5460 # leaving us with one backslash in the sed expression (right
5461 # before the dot that mustn't act as a wildcard).
5462 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5463 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5464 # The user is allowed to set LINGUAS to a list of languages to
5465 # install catalogs for. If it's empty that means "all of them."
5466 if test "x$LINGUAS" = x; then
5467 CATALOGS="$CATALOGS $cat"
5468 XLINGUAS="$XLINGUAS $lang"
5469 else
5470 case "$LINGUAS" in *$lang*)
5471 CATALOGS="$CATALOGS $cat"
5472 XLINGUAS="$XLINGUAS $lang"
5473 ;;
5474 esac
5475 fi
5476 done
5477 LINGUAS="$XLINGUAS"
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5479 $as_echo "$LINGUAS" >&6; }
5480
5481
5482 DATADIRNAME=share
5483
5484 INSTOBJEXT=.mo
5485
5486 GENCAT=gencat
5487
5488 CATOBJEXT=.gmo
5489
5490 fi
5491
5492 # Check whether --enable-shared was given.
5493 if test "${enable_shared+set}" = set; then :
5494 enableval=$enable_shared; p=${PACKAGE-default}
5495 case $enableval in
5496 yes) enable_shared=yes ;;
5497 no) enable_shared=no ;;
5498 *)
5499 enable_shared=no
5500 # Look at the argument we got. We use all the common list separators.
5501 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5502 for pkg in $enableval; do
5503 IFS="$lt_save_ifs"
5504 if test "X$pkg" = "X$p"; then
5505 enable_shared=yes
5506 fi
5507 done
5508 IFS="$lt_save_ifs"
5509 ;;
5510 esac
5511 else
5512 enable_shared=no
5513 fi
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524 case `pwd` in
5525 *\ * | *\ *)
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5527 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5528 esac
5529
5530
5531
5532 macro_version='2.2.7a'
5533 macro_revision='1.3134'
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547 ltmain="$ac_aux_dir/ltmain.sh"
5548
5549 # Backslashify metacharacters that are still active within
5550 # double-quoted strings.
5551 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5552
5553 # Same as above, but do not quote variable references.
5554 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5555
5556 # Sed substitution to delay expansion of an escaped shell variable in a
5557 # double_quote_subst'ed string.
5558 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5559
5560 # Sed substitution to delay expansion of an escaped single quote.
5561 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5562
5563 # Sed substitution to avoid accidental globbing in evaled expressions
5564 no_glob_subst='s/\*/\\\*/g'
5565
5566 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5567 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5568 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5569
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5571 $as_echo_n "checking how to print strings... " >&6; }
5572 # Test print first, because it will be a builtin if present.
5573 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5574 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5575 ECHO='print -r --'
5576 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5577 ECHO='printf %s\n'
5578 else
5579 # Use this function as a fallback that always works.
5580 func_fallback_echo ()
5581 {
5582 eval 'cat <<_LTECHO_EOF
5583 $1
5584 _LTECHO_EOF'
5585 }
5586 ECHO='func_fallback_echo'
5587 fi
5588
5589 # func_echo_all arg...
5590 # Invoke $ECHO with all args, space-separated.
5591 func_echo_all ()
5592 {
5593 $ECHO ""
5594 }
5595
5596 case "$ECHO" in
5597 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5598 $as_echo "printf" >&6; } ;;
5599 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5600 $as_echo "print -r" >&6; } ;;
5601 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5602 $as_echo "cat" >&6; } ;;
5603 esac
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5619 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5620 if ${ac_cv_path_SED+:} false; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5624 for ac_i in 1 2 3 4 5 6 7; do
5625 ac_script="$ac_script$as_nl$ac_script"
5626 done
5627 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5628 { ac_script=; unset ac_script;}
5629 if test -z "$SED"; then
5630 ac_path_SED_found=false
5631 # Loop through the user's path and test for each of PROGNAME-LIST
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH
5634 do
5635 IFS=$as_save_IFS
5636 test -z "$as_dir" && as_dir=.
5637 for ac_prog in sed gsed; do
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5640 as_fn_executable_p "$ac_path_SED" || continue
5641 # Check for GNU ac_path_SED and select it if it is found.
5642 # Check for GNU $ac_path_SED
5643 case `"$ac_path_SED" --version 2>&1` in
5644 *GNU*)
5645 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5646 *)
5647 ac_count=0
5648 $as_echo_n 0123456789 >"conftest.in"
5649 while :
5650 do
5651 cat "conftest.in" "conftest.in" >"conftest.tmp"
5652 mv "conftest.tmp" "conftest.in"
5653 cp "conftest.in" "conftest.nl"
5654 $as_echo '' >> "conftest.nl"
5655 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5656 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5657 as_fn_arith $ac_count + 1 && ac_count=$as_val
5658 if test $ac_count -gt ${ac_path_SED_max-0}; then
5659 # Best one so far, save it but keep looking for a better one
5660 ac_cv_path_SED="$ac_path_SED"
5661 ac_path_SED_max=$ac_count
5662 fi
5663 # 10*(2^10) chars as input seems more than enough
5664 test $ac_count -gt 10 && break
5665 done
5666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5667 esac
5668
5669 $ac_path_SED_found && break 3
5670 done
5671 done
5672 done
5673 IFS=$as_save_IFS
5674 if test -z "$ac_cv_path_SED"; then
5675 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5676 fi
5677 else
5678 ac_cv_path_SED=$SED
5679 fi
5680
5681 fi
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5683 $as_echo "$ac_cv_path_SED" >&6; }
5684 SED="$ac_cv_path_SED"
5685 rm -f conftest.sed
5686
5687 test -z "$SED" && SED=sed
5688 Xsed="$SED -e 1s/^X//"
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5701 $as_echo_n "checking for fgrep... " >&6; }
5702 if ${ac_cv_path_FGREP+:} false; then :
5703 $as_echo_n "(cached) " >&6
5704 else
5705 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5706 then ac_cv_path_FGREP="$GREP -F"
5707 else
5708 if test -z "$FGREP"; then
5709 ac_path_FGREP_found=false
5710 # Loop through the user's path and test for each of PROGNAME-LIST
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5713 do
5714 IFS=$as_save_IFS
5715 test -z "$as_dir" && as_dir=.
5716 for ac_prog in fgrep; do
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5719 as_fn_executable_p "$ac_path_FGREP" || continue
5720 # Check for GNU ac_path_FGREP and select it if it is found.
5721 # Check for GNU $ac_path_FGREP
5722 case `"$ac_path_FGREP" --version 2>&1` in
5723 *GNU*)
5724 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5725 *)
5726 ac_count=0
5727 $as_echo_n 0123456789 >"conftest.in"
5728 while :
5729 do
5730 cat "conftest.in" "conftest.in" >"conftest.tmp"
5731 mv "conftest.tmp" "conftest.in"
5732 cp "conftest.in" "conftest.nl"
5733 $as_echo 'FGREP' >> "conftest.nl"
5734 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5735 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5736 as_fn_arith $ac_count + 1 && ac_count=$as_val
5737 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5738 # Best one so far, save it but keep looking for a better one
5739 ac_cv_path_FGREP="$ac_path_FGREP"
5740 ac_path_FGREP_max=$ac_count
5741 fi
5742 # 10*(2^10) chars as input seems more than enough
5743 test $ac_count -gt 10 && break
5744 done
5745 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5746 esac
5747
5748 $ac_path_FGREP_found && break 3
5749 done
5750 done
5751 done
5752 IFS=$as_save_IFS
5753 if test -z "$ac_cv_path_FGREP"; then
5754 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5755 fi
5756 else
5757 ac_cv_path_FGREP=$FGREP
5758 fi
5759
5760 fi
5761 fi
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5763 $as_echo "$ac_cv_path_FGREP" >&6; }
5764 FGREP="$ac_cv_path_FGREP"
5765
5766
5767 test -z "$GREP" && GREP=grep
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787 # Check whether --with-gnu-ld was given.
5788 if test "${with_gnu_ld+set}" = set; then :
5789 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5790 else
5791 with_gnu_ld=no
5792 fi
5793
5794 ac_prog=ld
5795 if test "$GCC" = yes; then
5796 # Check if gcc -print-prog-name=ld gives a path.
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5798 $as_echo_n "checking for ld used by $CC... " >&6; }
5799 case $host in
5800 *-*-mingw*)
5801 # gcc leaves a trailing carriage return which upsets mingw
5802 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5803 *)
5804 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5805 esac
5806 case $ac_prog in
5807 # Accept absolute paths.
5808 [\\/]* | ?:[\\/]*)
5809 re_direlt='/[^/][^/]*/\.\./'
5810 # Canonicalize the pathname of ld
5811 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5812 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5813 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5814 done
5815 test -z "$LD" && LD="$ac_prog"
5816 ;;
5817 "")
5818 # If it fails, then pretend we aren't using GCC.
5819 ac_prog=ld
5820 ;;
5821 *)
5822 # If it is relative, then search for the first ld in PATH.
5823 with_gnu_ld=unknown
5824 ;;
5825 esac
5826 elif test "$with_gnu_ld" = yes; then
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5828 $as_echo_n "checking for GNU ld... " >&6; }
5829 else
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5831 $as_echo_n "checking for non-GNU ld... " >&6; }
5832 fi
5833 if ${lt_cv_path_LD+:} false; then :
5834 $as_echo_n "(cached) " >&6
5835 else
5836 if test -z "$LD"; then
5837 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5838 for ac_dir in $PATH; do
5839 IFS="$lt_save_ifs"
5840 test -z "$ac_dir" && ac_dir=.
5841 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5842 lt_cv_path_LD="$ac_dir/$ac_prog"
5843 # Check to see if the program is GNU ld. I'd rather use --version,
5844 # but apparently some variants of GNU ld only accept -v.
5845 # Break only if it was the GNU/non-GNU ld that we prefer.
5846 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5847 *GNU* | *'with BFD'*)
5848 test "$with_gnu_ld" != no && break
5849 ;;
5850 *)
5851 test "$with_gnu_ld" != yes && break
5852 ;;
5853 esac
5854 fi
5855 done
5856 IFS="$lt_save_ifs"
5857 else
5858 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5859 fi
5860 fi
5861
5862 LD="$lt_cv_path_LD"
5863 if test -n "$LD"; then
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5865 $as_echo "$LD" >&6; }
5866 else
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868 $as_echo "no" >&6; }
5869 fi
5870 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5872 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5873 if ${lt_cv_prog_gnu_ld+:} false; then :
5874 $as_echo_n "(cached) " >&6
5875 else
5876 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5877 case `$LD -v 2>&1 </dev/null` in
5878 *GNU* | *'with BFD'*)
5879 lt_cv_prog_gnu_ld=yes
5880 ;;
5881 *)
5882 lt_cv_prog_gnu_ld=no
5883 ;;
5884 esac
5885 fi
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5887 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5888 with_gnu_ld=$lt_cv_prog_gnu_ld
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5899 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5900 if ${lt_cv_path_NM+:} false; then :
5901 $as_echo_n "(cached) " >&6
5902 else
5903 if test -n "$NM"; then
5904 # Let the user override the test.
5905 lt_cv_path_NM="$NM"
5906 else
5907 lt_nm_to_check="${ac_tool_prefix}nm"
5908 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5909 lt_nm_to_check="$lt_nm_to_check nm"
5910 fi
5911 for lt_tmp_nm in $lt_nm_to_check; do
5912 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5913 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5914 IFS="$lt_save_ifs"
5915 test -z "$ac_dir" && ac_dir=.
5916 tmp_nm="$ac_dir/$lt_tmp_nm"
5917 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5918 # Check to see if the nm accepts a BSD-compat flag.
5919 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5920 # nm: unknown option "B" ignored
5921 # Tru64's nm complains that /dev/null is an invalid object file
5922 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5923 */dev/null* | *'Invalid file or object type'*)
5924 lt_cv_path_NM="$tmp_nm -B"
5925 break
5926 ;;
5927 *)
5928 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5929 */dev/null*)
5930 lt_cv_path_NM="$tmp_nm -p"
5931 break
5932 ;;
5933 *)
5934 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5935 continue # so that we can try to find one that supports BSD flags
5936 ;;
5937 esac
5938 ;;
5939 esac
5940 fi
5941 done
5942 IFS="$lt_save_ifs"
5943 done
5944 : ${lt_cv_path_NM=no}
5945 fi
5946 fi
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5948 $as_echo "$lt_cv_path_NM" >&6; }
5949 if test "$lt_cv_path_NM" != "no"; then
5950 NM="$lt_cv_path_NM"
5951 else
5952 # Didn't find any BSD compatible name lister, look for dumpbin.
5953 if test -n "$DUMPBIN"; then :
5954 # Let the user override the test.
5955 else
5956 if test -n "$ac_tool_prefix"; then
5957 for ac_prog in dumpbin "link -dump"
5958 do
5959 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5960 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962 $as_echo_n "checking for $ac_word... " >&6; }
5963 if ${ac_cv_prog_DUMPBIN+:} false; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966 if test -n "$DUMPBIN"; then
5967 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5968 else
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 for as_dir in $PATH
5971 do
5972 IFS=$as_save_IFS
5973 test -z "$as_dir" && as_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5976 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 break 2
5979 fi
5980 done
5981 done
5982 IFS=$as_save_IFS
5983
5984 fi
5985 fi
5986 DUMPBIN=$ac_cv_prog_DUMPBIN
5987 if test -n "$DUMPBIN"; then
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5989 $as_echo "$DUMPBIN" >&6; }
5990 else
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992 $as_echo "no" >&6; }
5993 fi
5994
5995
5996 test -n "$DUMPBIN" && break
5997 done
5998 fi
5999 if test -z "$DUMPBIN"; then
6000 ac_ct_DUMPBIN=$DUMPBIN
6001 for ac_prog in dumpbin "link -dump"
6002 do
6003 # Extract the first word of "$ac_prog", so it can be a program name with args.
6004 set dummy $ac_prog; ac_word=$2
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006 $as_echo_n "checking for $ac_word... " >&6; }
6007 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6008 $as_echo_n "(cached) " >&6
6009 else
6010 if test -n "$ac_ct_DUMPBIN"; then
6011 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6012 else
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 for as_dir in $PATH
6015 do
6016 IFS=$as_save_IFS
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6020 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 break 2
6023 fi
6024 done
6025 done
6026 IFS=$as_save_IFS
6027
6028 fi
6029 fi
6030 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6031 if test -n "$ac_ct_DUMPBIN"; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6033 $as_echo "$ac_ct_DUMPBIN" >&6; }
6034 else
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036 $as_echo "no" >&6; }
6037 fi
6038
6039
6040 test -n "$ac_ct_DUMPBIN" && break
6041 done
6042
6043 if test "x$ac_ct_DUMPBIN" = x; then
6044 DUMPBIN=":"
6045 else
6046 case $cross_compiling:$ac_tool_warned in
6047 yes:)
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6050 ac_tool_warned=yes ;;
6051 esac
6052 DUMPBIN=$ac_ct_DUMPBIN
6053 fi
6054 fi
6055
6056 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6057 *COFF*)
6058 DUMPBIN="$DUMPBIN -symbols"
6059 ;;
6060 *)
6061 DUMPBIN=:
6062 ;;
6063 esac
6064 fi
6065
6066 if test "$DUMPBIN" != ":"; then
6067 NM="$DUMPBIN"
6068 fi
6069 fi
6070 test -z "$NM" && NM=nm
6071
6072
6073
6074
6075
6076
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6078 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6079 if ${lt_cv_nm_interface+:} false; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 lt_cv_nm_interface="BSD nm"
6083 echo "int some_variable = 0;" > conftest.$ac_ext
6084 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6085 (eval "$ac_compile" 2>conftest.err)
6086 cat conftest.err >&5
6087 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6088 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6089 cat conftest.err >&5
6090 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6091 cat conftest.out >&5
6092 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6093 lt_cv_nm_interface="MS dumpbin"
6094 fi
6095 rm -f conftest*
6096 fi
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6098 $as_echo "$lt_cv_nm_interface" >&6; }
6099
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6101 $as_echo_n "checking whether ln -s works... " >&6; }
6102 LN_S=$as_ln_s
6103 if test "$LN_S" = "ln -s"; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6105 $as_echo "yes" >&6; }
6106 else
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6108 $as_echo "no, using $LN_S" >&6; }
6109 fi
6110
6111 # find the maximum length of command line arguments
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6113 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6114 if ${lt_cv_sys_max_cmd_len+:} false; then :
6115 $as_echo_n "(cached) " >&6
6116 else
6117 i=0
6118 teststring="ABCD"
6119
6120 case $build_os in
6121 msdosdjgpp*)
6122 # On DJGPP, this test can blow up pretty badly due to problems in libc
6123 # (any single argument exceeding 2000 bytes causes a buffer overrun
6124 # during glob expansion). Even if it were fixed, the result of this
6125 # check would be larger than it should be.
6126 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6127 ;;
6128
6129 gnu*)
6130 # Under GNU Hurd, this test is not required because there is
6131 # no limit to the length of command line arguments.
6132 # Libtool will interpret -1 as no limit whatsoever
6133 lt_cv_sys_max_cmd_len=-1;
6134 ;;
6135
6136 cygwin* | mingw* | cegcc*)
6137 # On Win9x/ME, this test blows up -- it succeeds, but takes
6138 # about 5 minutes as the teststring grows exponentially.
6139 # Worse, since 9x/ME are not pre-emptively multitasking,
6140 # you end up with a "frozen" computer, even though with patience
6141 # the test eventually succeeds (with a max line length of 256k).
6142 # Instead, let's just punt: use the minimum linelength reported by
6143 # all of the supported platforms: 8192 (on NT/2K/XP).
6144 lt_cv_sys_max_cmd_len=8192;
6145 ;;
6146
6147 mint*)
6148 # On MiNT this can take a long time and run out of memory.
6149 lt_cv_sys_max_cmd_len=8192;
6150 ;;
6151
6152 amigaos*)
6153 # On AmigaOS with pdksh, this test takes hours, literally.
6154 # So we just punt and use a minimum line length of 8192.
6155 lt_cv_sys_max_cmd_len=8192;
6156 ;;
6157
6158 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6159 # This has been around since 386BSD, at least. Likely further.
6160 if test -x /sbin/sysctl; then
6161 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6162 elif test -x /usr/sbin/sysctl; then
6163 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6164 else
6165 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6166 fi
6167 # And add a safety zone
6168 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6170 ;;
6171
6172 interix*)
6173 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6174 lt_cv_sys_max_cmd_len=196608
6175 ;;
6176
6177 osf*)
6178 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6179 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6180 # nice to cause kernel panics so lets avoid the loop below.
6181 # First set a reasonable default.
6182 lt_cv_sys_max_cmd_len=16384
6183 #
6184 if test -x /sbin/sysconfig; then
6185 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6186 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6187 esac
6188 fi
6189 ;;
6190 sco3.2v5*)
6191 lt_cv_sys_max_cmd_len=102400
6192 ;;
6193 sysv5* | sco5v6* | sysv4.2uw2*)
6194 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6195 if test -n "$kargmax"; then
6196 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6197 else
6198 lt_cv_sys_max_cmd_len=32768
6199 fi
6200 ;;
6201 *)
6202 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6203 if test -n "$lt_cv_sys_max_cmd_len"; then
6204 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6205 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6206 else
6207 # Make teststring a little bigger before we do anything with it.
6208 # a 1K string should be a reasonable start.
6209 for i in 1 2 3 4 5 6 7 8 ; do
6210 teststring=$teststring$teststring
6211 done
6212 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6213 # If test is not a shell built-in, we'll probably end up computing a
6214 # maximum length that is only half of the actual maximum length, but
6215 # we can't tell.
6216 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6217 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6218 test $i != 17 # 1/2 MB should be enough
6219 do
6220 i=`expr $i + 1`
6221 teststring=$teststring$teststring
6222 done
6223 # Only check the string length outside the loop.
6224 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6225 teststring=
6226 # Add a significant safety factor because C++ compilers can tack on
6227 # massive amounts of additional arguments before passing them to the
6228 # linker. It appears as though 1/2 is a usable value.
6229 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6230 fi
6231 ;;
6232 esac
6233
6234 fi
6235
6236 if test -n $lt_cv_sys_max_cmd_len ; then
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6238 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6239 else
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6241 $as_echo "none" >&6; }
6242 fi
6243 max_cmd_len=$lt_cv_sys_max_cmd_len
6244
6245
6246
6247
6248
6249
6250 : ${CP="cp -f"}
6251 : ${MV="mv -f"}
6252 : ${RM="rm -f"}
6253
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6255 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6256 # Try some XSI features
6257 xsi_shell=no
6258 ( _lt_dummy="a/b/c"
6259 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6260 = c,a/b,, \
6261 && eval 'test $(( 1 + 1 )) -eq 2 \
6262 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6263 && xsi_shell=yes
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6265 $as_echo "$xsi_shell" >&6; }
6266
6267
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6269 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6270 lt_shell_append=no
6271 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6272 >/dev/null 2>&1 \
6273 && lt_shell_append=yes
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6275 $as_echo "$lt_shell_append" >&6; }
6276
6277
6278 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6279 lt_unset=unset
6280 else
6281 lt_unset=false
6282 fi
6283
6284
6285
6286
6287
6288 # test EBCDIC or ASCII
6289 case `echo X|tr X '\101'` in
6290 A) # ASCII based system
6291 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6292 lt_SP2NL='tr \040 \012'
6293 lt_NL2SP='tr \015\012 \040\040'
6294 ;;
6295 *) # EBCDIC based system
6296 lt_SP2NL='tr \100 \n'
6297 lt_NL2SP='tr \r\n \100\100'
6298 ;;
6299 esac
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6310 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6311 if ${lt_cv_ld_reload_flag+:} false; then :
6312 $as_echo_n "(cached) " >&6
6313 else
6314 lt_cv_ld_reload_flag='-r'
6315 fi
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6317 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6318 reload_flag=$lt_cv_ld_reload_flag
6319 case $reload_flag in
6320 "" | " "*) ;;
6321 *) reload_flag=" $reload_flag" ;;
6322 esac
6323 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6324 case $host_os in
6325 darwin*)
6326 if test "$GCC" = yes; then
6327 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6328 else
6329 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6330 fi
6331 ;;
6332 esac
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342 if test -n "$ac_tool_prefix"; then
6343 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6344 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6346 $as_echo_n "checking for $ac_word... " >&6; }
6347 if ${ac_cv_prog_OBJDUMP+:} false; then :
6348 $as_echo_n "(cached) " >&6
6349 else
6350 if test -n "$OBJDUMP"; then
6351 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6352 else
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 for as_dir in $PATH
6355 do
6356 IFS=$as_save_IFS
6357 test -z "$as_dir" && as_dir=.
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6360 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6362 break 2
6363 fi
6364 done
6365 done
6366 IFS=$as_save_IFS
6367
6368 fi
6369 fi
6370 OBJDUMP=$ac_cv_prog_OBJDUMP
6371 if test -n "$OBJDUMP"; then
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6373 $as_echo "$OBJDUMP" >&6; }
6374 else
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6376 $as_echo "no" >&6; }
6377 fi
6378
6379
6380 fi
6381 if test -z "$ac_cv_prog_OBJDUMP"; then
6382 ac_ct_OBJDUMP=$OBJDUMP
6383 # Extract the first word of "objdump", so it can be a program name with args.
6384 set dummy objdump; ac_word=$2
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6386 $as_echo_n "checking for $ac_word... " >&6; }
6387 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6388 $as_echo_n "(cached) " >&6
6389 else
6390 if test -n "$ac_ct_OBJDUMP"; then
6391 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6392 else
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 for as_dir in $PATH
6395 do
6396 IFS=$as_save_IFS
6397 test -z "$as_dir" && as_dir=.
6398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6400 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6402 break 2
6403 fi
6404 done
6405 done
6406 IFS=$as_save_IFS
6407
6408 fi
6409 fi
6410 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6411 if test -n "$ac_ct_OBJDUMP"; then
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6413 $as_echo "$ac_ct_OBJDUMP" >&6; }
6414 else
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6417 fi
6418
6419 if test "x$ac_ct_OBJDUMP" = x; then
6420 OBJDUMP="false"
6421 else
6422 case $cross_compiling:$ac_tool_warned in
6423 yes:)
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6426 ac_tool_warned=yes ;;
6427 esac
6428 OBJDUMP=$ac_ct_OBJDUMP
6429 fi
6430 else
6431 OBJDUMP="$ac_cv_prog_OBJDUMP"
6432 fi
6433
6434 test -z "$OBJDUMP" && OBJDUMP=objdump
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6445 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6446 if ${lt_cv_deplibs_check_method+:} false; then :
6447 $as_echo_n "(cached) " >&6
6448 else
6449 lt_cv_file_magic_cmd='$MAGIC_CMD'
6450 lt_cv_file_magic_test_file=
6451 lt_cv_deplibs_check_method='unknown'
6452 # Need to set the preceding variable on all platforms that support
6453 # interlibrary dependencies.
6454 # 'none' -- dependencies not supported.
6455 # `unknown' -- same as none, but documents that we really don't know.
6456 # 'pass_all' -- all dependencies passed with no checks.
6457 # 'test_compile' -- check by making test program.
6458 # 'file_magic [[regex]]' -- check by looking for files in library path
6459 # which responds to the $file_magic_cmd with a given extended regex.
6460 # If you have `file' or equivalent on your system and you're not sure
6461 # whether `pass_all' will *always* work, you probably want this one.
6462
6463 case $host_os in
6464 aix[4-9]*)
6465 lt_cv_deplibs_check_method=pass_all
6466 ;;
6467
6468 beos*)
6469 lt_cv_deplibs_check_method=pass_all
6470 ;;
6471
6472 bsdi[45]*)
6473 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6474 lt_cv_file_magic_cmd='/usr/bin/file -L'
6475 lt_cv_file_magic_test_file=/shlib/libc.so
6476 ;;
6477
6478 cygwin*)
6479 # func_win32_libid is a shell function defined in ltmain.sh
6480 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6481 lt_cv_file_magic_cmd='func_win32_libid'
6482 ;;
6483
6484 mingw* | pw32*)
6485 # Base MSYS/MinGW do not provide the 'file' command needed by
6486 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6487 # unless we find 'file', for example because we are cross-compiling.
6488 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6489 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6490 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6491 lt_cv_file_magic_cmd='func_win32_libid'
6492 else
6493 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6494 lt_cv_file_magic_cmd='$OBJDUMP -f'
6495 fi
6496 ;;
6497
6498 cegcc*)
6499 # use the weaker test based on 'objdump'. See mingw*.
6500 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6501 lt_cv_file_magic_cmd='$OBJDUMP -f'
6502 ;;
6503
6504 darwin* | rhapsody*)
6505 lt_cv_deplibs_check_method=pass_all
6506 ;;
6507
6508 freebsd* | dragonfly*)
6509 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6510 case $host_cpu in
6511 i*86 )
6512 # Not sure whether the presence of OpenBSD here was a mistake.
6513 # Let's accept both of them until this is cleared up.
6514 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6515 lt_cv_file_magic_cmd=/usr/bin/file
6516 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6517 ;;
6518 esac
6519 else
6520 lt_cv_deplibs_check_method=pass_all
6521 fi
6522 ;;
6523
6524 gnu*)
6525 lt_cv_deplibs_check_method=pass_all
6526 ;;
6527
6528 haiku*)
6529 lt_cv_deplibs_check_method=pass_all
6530 ;;
6531
6532 hpux10.20* | hpux11*)
6533 lt_cv_file_magic_cmd=/usr/bin/file
6534 case $host_cpu in
6535 ia64*)
6536 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6537 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6538 ;;
6539 hppa*64*)
6540 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]'
6541 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6542 ;;
6543 *)
6544 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6545 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6546 ;;
6547 esac
6548 ;;
6549
6550 interix[3-9]*)
6551 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6553 ;;
6554
6555 irix5* | irix6* | nonstopux*)
6556 case $LD in
6557 *-32|*"-32 ") libmagic=32-bit;;
6558 *-n32|*"-n32 ") libmagic=N32;;
6559 *-64|*"-64 ") libmagic=64-bit;;
6560 *) libmagic=never-match;;
6561 esac
6562 lt_cv_deplibs_check_method=pass_all
6563 ;;
6564
6565 # This must be Linux ELF.
6566 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6567 lt_cv_deplibs_check_method=pass_all
6568 ;;
6569
6570 netbsd*)
6571 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6573 else
6574 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6575 fi
6576 ;;
6577
6578 newos6*)
6579 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6580 lt_cv_file_magic_cmd=/usr/bin/file
6581 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6582 ;;
6583
6584 *nto* | *qnx*)
6585 lt_cv_deplibs_check_method=pass_all
6586 ;;
6587
6588 openbsd*)
6589 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6590 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6591 else
6592 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6593 fi
6594 ;;
6595
6596 osf3* | osf4* | osf5*)
6597 lt_cv_deplibs_check_method=pass_all
6598 ;;
6599
6600 rdos*)
6601 lt_cv_deplibs_check_method=pass_all
6602 ;;
6603
6604 solaris*)
6605 lt_cv_deplibs_check_method=pass_all
6606 ;;
6607
6608 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6609 lt_cv_deplibs_check_method=pass_all
6610 ;;
6611
6612 sysv4 | sysv4.3*)
6613 case $host_vendor in
6614 motorola)
6615 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]'
6616 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6617 ;;
6618 ncr)
6619 lt_cv_deplibs_check_method=pass_all
6620 ;;
6621 sequent)
6622 lt_cv_file_magic_cmd='/bin/file'
6623 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6624 ;;
6625 sni)
6626 lt_cv_file_magic_cmd='/bin/file'
6627 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6628 lt_cv_file_magic_test_file=/lib/libc.so
6629 ;;
6630 siemens)
6631 lt_cv_deplibs_check_method=pass_all
6632 ;;
6633 pc)
6634 lt_cv_deplibs_check_method=pass_all
6635 ;;
6636 esac
6637 ;;
6638
6639 tpf*)
6640 lt_cv_deplibs_check_method=pass_all
6641 ;;
6642 esac
6643
6644 fi
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6646 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6647 file_magic_cmd=$lt_cv_file_magic_cmd
6648 deplibs_check_method=$lt_cv_deplibs_check_method
6649 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662 plugin_option=
6663 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6664 for plugin in $plugin_names; do
6665 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6666 if test x$plugin_so = x$plugin; then
6667 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6668 fi
6669 if test x$plugin_so != x$plugin; then
6670 plugin_option="--plugin $plugin_so"
6671 break
6672 fi
6673 done
6674
6675 if test -n "$ac_tool_prefix"; then
6676 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6677 set dummy ${ac_tool_prefix}ar; ac_word=$2
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679 $as_echo_n "checking for $ac_word... " >&6; }
6680 if ${ac_cv_prog_AR+:} false; then :
6681 $as_echo_n "(cached) " >&6
6682 else
6683 if test -n "$AR"; then
6684 ac_cv_prog_AR="$AR" # Let the user override the test.
6685 else
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6688 do
6689 IFS=$as_save_IFS
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6693 ac_cv_prog_AR="${ac_tool_prefix}ar"
6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 break 2
6696 fi
6697 done
6698 done
6699 IFS=$as_save_IFS
6700
6701 fi
6702 fi
6703 AR=$ac_cv_prog_AR
6704 if test -n "$AR"; then
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6706 $as_echo "$AR" >&6; }
6707 else
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 $as_echo "no" >&6; }
6710 fi
6711
6712
6713 fi
6714 if test -z "$ac_cv_prog_AR"; then
6715 ac_ct_AR=$AR
6716 # Extract the first word of "ar", so it can be a program name with args.
6717 set dummy ar; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6721 $as_echo_n "(cached) " >&6
6722 else
6723 if test -n "$ac_ct_AR"; then
6724 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_ac_ct_AR="ar"
6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 break 2
6736 fi
6737 done
6738 done
6739 IFS=$as_save_IFS
6740
6741 fi
6742 fi
6743 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6744 if test -n "$ac_ct_AR"; then
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6746 $as_echo "$ac_ct_AR" >&6; }
6747 else
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6750 fi
6751
6752 if test "x$ac_ct_AR" = x; then
6753 AR="false"
6754 else
6755 case $cross_compiling:$ac_tool_warned in
6756 yes:)
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6759 ac_tool_warned=yes ;;
6760 esac
6761 AR=$ac_ct_AR
6762 fi
6763 else
6764 AR="$ac_cv_prog_AR"
6765 fi
6766
6767 test -z "$AR" && AR=ar
6768 if test -n "$plugin_option"; then
6769 if $AR --help 2>&1 | grep -q "\--plugin"; then
6770 touch conftest.c
6771 $AR $plugin_option rc conftest.a conftest.c
6772 if test "$?" != 0; then
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6774 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6775 else
6776 AR="$AR $plugin_option"
6777 fi
6778 rm -f conftest.*
6779 fi
6780 fi
6781 test -z "$AR_FLAGS" && AR_FLAGS=cru
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793 if test -n "$ac_tool_prefix"; then
6794 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6795 set dummy ${ac_tool_prefix}strip; ac_word=$2
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797 $as_echo_n "checking for $ac_word... " >&6; }
6798 if ${ac_cv_prog_STRIP+:} false; then :
6799 $as_echo_n "(cached) " >&6
6800 else
6801 if test -n "$STRIP"; then
6802 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6803 else
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6806 do
6807 IFS=$as_save_IFS
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6811 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 break 2
6814 fi
6815 done
6816 done
6817 IFS=$as_save_IFS
6818
6819 fi
6820 fi
6821 STRIP=$ac_cv_prog_STRIP
6822 if test -n "$STRIP"; then
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6824 $as_echo "$STRIP" >&6; }
6825 else
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6827 $as_echo "no" >&6; }
6828 fi
6829
6830
6831 fi
6832 if test -z "$ac_cv_prog_STRIP"; then
6833 ac_ct_STRIP=$STRIP
6834 # Extract the first word of "strip", so it can be a program name with args.
6835 set dummy strip; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 if test -n "$ac_ct_STRIP"; then
6842 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6843 else
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6846 do
6847 IFS=$as_save_IFS
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6851 ac_cv_prog_ac_ct_STRIP="strip"
6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 break 2
6854 fi
6855 done
6856 done
6857 IFS=$as_save_IFS
6858
6859 fi
6860 fi
6861 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6862 if test -n "$ac_ct_STRIP"; then
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6864 $as_echo "$ac_ct_STRIP" >&6; }
6865 else
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6868 fi
6869
6870 if test "x$ac_ct_STRIP" = x; then
6871 STRIP=":"
6872 else
6873 case $cross_compiling:$ac_tool_warned in
6874 yes:)
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6877 ac_tool_warned=yes ;;
6878 esac
6879 STRIP=$ac_ct_STRIP
6880 fi
6881 else
6882 STRIP="$ac_cv_prog_STRIP"
6883 fi
6884
6885 test -z "$STRIP" && STRIP=:
6886
6887
6888
6889
6890
6891
6892 if test -n "$ac_tool_prefix"; then
6893 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6894 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896 $as_echo_n "checking for $ac_word... " >&6; }
6897 if ${ac_cv_prog_RANLIB+:} false; then :
6898 $as_echo_n "(cached) " >&6
6899 else
6900 if test -n "$RANLIB"; then
6901 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6902 else
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 for as_dir in $PATH
6905 do
6906 IFS=$as_save_IFS
6907 test -z "$as_dir" && as_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6910 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 break 2
6913 fi
6914 done
6915 done
6916 IFS=$as_save_IFS
6917
6918 fi
6919 fi
6920 RANLIB=$ac_cv_prog_RANLIB
6921 if test -n "$RANLIB"; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6923 $as_echo "$RANLIB" >&6; }
6924 else
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6927 fi
6928
6929
6930 fi
6931 if test -z "$ac_cv_prog_RANLIB"; then
6932 ac_ct_RANLIB=$RANLIB
6933 # Extract the first word of "ranlib", so it can be a program name with args.
6934 set dummy ranlib; ac_word=$2
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936 $as_echo_n "checking for $ac_word... " >&6; }
6937 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6938 $as_echo_n "(cached) " >&6
6939 else
6940 if test -n "$ac_ct_RANLIB"; then
6941 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6942 else
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 for as_dir in $PATH
6945 do
6946 IFS=$as_save_IFS
6947 test -z "$as_dir" && as_dir=.
6948 for ac_exec_ext in '' $ac_executable_extensions; do
6949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6950 ac_cv_prog_ac_ct_RANLIB="ranlib"
6951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952 break 2
6953 fi
6954 done
6955 done
6956 IFS=$as_save_IFS
6957
6958 fi
6959 fi
6960 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6961 if test -n "$ac_ct_RANLIB"; then
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6963 $as_echo "$ac_ct_RANLIB" >&6; }
6964 else
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 $as_echo "no" >&6; }
6967 fi
6968
6969 if test "x$ac_ct_RANLIB" = x; then
6970 RANLIB=":"
6971 else
6972 case $cross_compiling:$ac_tool_warned in
6973 yes:)
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6976 ac_tool_warned=yes ;;
6977 esac
6978 RANLIB=$ac_ct_RANLIB
6979 fi
6980 else
6981 RANLIB="$ac_cv_prog_RANLIB"
6982 fi
6983
6984 test -z "$RANLIB" && RANLIB=:
6985 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6986 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6987 RANLIB="$RANLIB $plugin_option"
6988 fi
6989 fi
6990
6991
6992
6993
6994
6995
6996 # Determine commands to create old-style static archives.
6997 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6998 old_postinstall_cmds='chmod 644 $oldlib'
6999 old_postuninstall_cmds=
7000
7001 if test -n "$RANLIB"; then
7002 case $host_os in
7003 openbsd*)
7004 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7005 ;;
7006 *)
7007 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7008 ;;
7009 esac
7010 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7011 fi
7012
7013 case $host_os in
7014 darwin*)
7015 lock_old_archive_extraction=yes ;;
7016 *)
7017 lock_old_archive_extraction=no ;;
7018 esac
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058 # If no C compiler was specified, use CC.
7059 LTCC=${LTCC-"$CC"}
7060
7061 # If no C compiler flags were specified, use CFLAGS.
7062 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7063
7064 # Allow CC to be a program name with arguments.
7065 compiler=$CC
7066
7067
7068 # Check for command to grab the raw symbol name followed by C symbol from nm.
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7070 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7071 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7072 $as_echo_n "(cached) " >&6
7073 else
7074
7075 # These are sane defaults that work on at least a few old systems.
7076 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7077
7078 # Character class describing NM global symbol codes.
7079 symcode='[BCDEGRST]'
7080
7081 # Regexp to match symbols that can be accessed directly from C.
7082 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7083
7084 # Define system-specific variables.
7085 case $host_os in
7086 aix*)
7087 symcode='[BCDT]'
7088 ;;
7089 cygwin* | mingw* | pw32* | cegcc*)
7090 symcode='[ABCDGISTW]'
7091 ;;
7092 hpux*)
7093 if test "$host_cpu" = ia64; then
7094 symcode='[ABCDEGRST]'
7095 fi
7096 ;;
7097 irix* | nonstopux*)
7098 symcode='[BCDEGRST]'
7099 ;;
7100 osf*)
7101 symcode='[BCDEGQRST]'
7102 ;;
7103 solaris*)
7104 symcode='[BDRT]'
7105 ;;
7106 sco3.2v5*)
7107 symcode='[DT]'
7108 ;;
7109 sysv4.2uw2*)
7110 symcode='[DT]'
7111 ;;
7112 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7113 symcode='[ABDT]'
7114 ;;
7115 sysv4)
7116 symcode='[DFNSTU]'
7117 ;;
7118 esac
7119
7120 # If we're using GNU nm, then use its standard symbol codes.
7121 case `$NM -V 2>&1` in
7122 *GNU* | *'with BFD'*)
7123 symcode='[ABCDGIRSTW]' ;;
7124 esac
7125
7126 # Transform an extracted symbol line into a proper C declaration.
7127 # Some systems (esp. on ia64) link data and code symbols differently,
7128 # so use this general approach.
7129 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7130
7131 # Transform an extracted symbol line into symbol name and symbol address
7132 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7133 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'"
7134
7135 # Handle CRLF in mingw tool chain
7136 opt_cr=
7137 case $build_os in
7138 mingw*)
7139 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7140 ;;
7141 esac
7142
7143 # Try without a prefix underscore, then with it.
7144 for ac_symprfx in "" "_"; do
7145
7146 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7147 symxfrm="\\1 $ac_symprfx\\2 \\2"
7148
7149 # Write the raw and C identifiers.
7150 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7151 # Fake it for dumpbin and say T for any non-static function
7152 # and D for any global variable.
7153 # Also find C++ and __fastcall symbols from MSVC++,
7154 # which start with @ or ?.
7155 lt_cv_sys_global_symbol_pipe="$AWK '"\
7156 " {last_section=section; section=\$ 3};"\
7157 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7158 " \$ 0!~/External *\|/{next};"\
7159 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7160 " {if(hide[section]) next};"\
7161 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7162 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7163 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7164 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7165 " ' prfx=^$ac_symprfx"
7166 else
7167 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7168 fi
7169
7170 # Check to see that the pipe works correctly.
7171 pipe_works=no
7172
7173 rm -f conftest*
7174 cat > conftest.$ac_ext <<_LT_EOF
7175 #ifdef __cplusplus
7176 extern "C" {
7177 #endif
7178 char nm_test_var;
7179 void nm_test_func(void);
7180 void nm_test_func(void){}
7181 #ifdef __cplusplus
7182 }
7183 #endif
7184 int main(){nm_test_var='a';nm_test_func();return(0);}
7185 _LT_EOF
7186
7187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7188 (eval $ac_compile) 2>&5
7189 ac_status=$?
7190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7191 test $ac_status = 0; }; then
7192 # Now try to grab the symbols.
7193 nlist=conftest.nm
7194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7195 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7196 ac_status=$?
7197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7198 test $ac_status = 0; } && test -s "$nlist"; then
7199 # Try sorting and uniquifying the output.
7200 if sort "$nlist" | uniq > "$nlist"T; then
7201 mv -f "$nlist"T "$nlist"
7202 else
7203 rm -f "$nlist"T
7204 fi
7205
7206 # Make sure that we snagged all the symbols we need.
7207 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7208 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7209 cat <<_LT_EOF > conftest.$ac_ext
7210 #ifdef __cplusplus
7211 extern "C" {
7212 #endif
7213
7214 _LT_EOF
7215 # Now generate the symbol file.
7216 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7217
7218 cat <<_LT_EOF >> conftest.$ac_ext
7219
7220 /* The mapping between symbol names and symbols. */
7221 const struct {
7222 const char *name;
7223 void *address;
7224 }
7225 lt__PROGRAM__LTX_preloaded_symbols[] =
7226 {
7227 { "@PROGRAM@", (void *) 0 },
7228 _LT_EOF
7229 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7230 cat <<\_LT_EOF >> conftest.$ac_ext
7231 {0, (void *) 0}
7232 };
7233
7234 /* This works around a problem in FreeBSD linker */
7235 #ifdef FREEBSD_WORKAROUND
7236 static const void *lt_preloaded_setup() {
7237 return lt__PROGRAM__LTX_preloaded_symbols;
7238 }
7239 #endif
7240
7241 #ifdef __cplusplus
7242 }
7243 #endif
7244 _LT_EOF
7245 # Now try linking the two files.
7246 mv conftest.$ac_objext conftstm.$ac_objext
7247 lt_save_LIBS="$LIBS"
7248 lt_save_CFLAGS="$CFLAGS"
7249 LIBS="conftstm.$ac_objext"
7250 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7252 (eval $ac_link) 2>&5
7253 ac_status=$?
7254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7255 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7256 pipe_works=yes
7257 fi
7258 LIBS="$lt_save_LIBS"
7259 CFLAGS="$lt_save_CFLAGS"
7260 else
7261 echo "cannot find nm_test_func in $nlist" >&5
7262 fi
7263 else
7264 echo "cannot find nm_test_var in $nlist" >&5
7265 fi
7266 else
7267 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7268 fi
7269 else
7270 echo "$progname: failed program was:" >&5
7271 cat conftest.$ac_ext >&5
7272 fi
7273 rm -rf conftest* conftst*
7274
7275 # Do not use the global_symbol_pipe unless it works.
7276 if test "$pipe_works" = yes; then
7277 break
7278 else
7279 lt_cv_sys_global_symbol_pipe=
7280 fi
7281 done
7282
7283 fi
7284
7285 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7286 lt_cv_sys_global_symbol_to_cdecl=
7287 fi
7288 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7290 $as_echo "failed" >&6; }
7291 else
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7293 $as_echo "ok" >&6; }
7294 fi
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317 # Check whether --enable-libtool-lock was given.
7318 if test "${enable_libtool_lock+set}" = set; then :
7319 enableval=$enable_libtool_lock;
7320 fi
7321
7322 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7323
7324 # Some flags need to be propagated to the compiler or linker for good
7325 # libtool support.
7326 case $host in
7327 ia64-*-hpux*)
7328 # Find out which ABI we are using.
7329 echo 'int i;' > conftest.$ac_ext
7330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7331 (eval $ac_compile) 2>&5
7332 ac_status=$?
7333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7334 test $ac_status = 0; }; then
7335 case `/usr/bin/file conftest.$ac_objext` in
7336 *ELF-32*)
7337 HPUX_IA64_MODE="32"
7338 ;;
7339 *ELF-64*)
7340 HPUX_IA64_MODE="64"
7341 ;;
7342 esac
7343 fi
7344 rm -rf conftest*
7345 ;;
7346 *-*-irix6*)
7347 # Find out which ABI we are using.
7348 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7350 (eval $ac_compile) 2>&5
7351 ac_status=$?
7352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7353 test $ac_status = 0; }; then
7354 if test "$lt_cv_prog_gnu_ld" = yes; then
7355 case `/usr/bin/file conftest.$ac_objext` in
7356 *32-bit*)
7357 LD="${LD-ld} -melf32bsmip"
7358 ;;
7359 *N32*)
7360 LD="${LD-ld} -melf32bmipn32"
7361 ;;
7362 *64-bit*)
7363 LD="${LD-ld} -melf64bmip"
7364 ;;
7365 esac
7366 else
7367 case `/usr/bin/file conftest.$ac_objext` in
7368 *32-bit*)
7369 LD="${LD-ld} -32"
7370 ;;
7371 *N32*)
7372 LD="${LD-ld} -n32"
7373 ;;
7374 *64-bit*)
7375 LD="${LD-ld} -64"
7376 ;;
7377 esac
7378 fi
7379 fi
7380 rm -rf conftest*
7381 ;;
7382
7383 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7384 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7385 # Find out which ABI we are using.
7386 echo 'int i;' > conftest.$ac_ext
7387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7388 (eval $ac_compile) 2>&5
7389 ac_status=$?
7390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7391 test $ac_status = 0; }; then
7392 case `/usr/bin/file conftest.o` in
7393 *32-bit*)
7394 case $host in
7395 x86_64-*kfreebsd*-gnu)
7396 LD="${LD-ld} -m elf_i386_fbsd"
7397 ;;
7398 x86_64-*linux*)
7399 case `/usr/bin/file conftest.o` in
7400 *x86-64*)
7401 LD="${LD-ld} -m elf32_x86_64"
7402 ;;
7403 *)
7404 LD="${LD-ld} -m elf_i386"
7405 ;;
7406 esac
7407 ;;
7408 powerpc64le-*linux*)
7409 LD="${LD-ld} -m elf32lppclinux"
7410 ;;
7411 powerpc64-*linux*)
7412 LD="${LD-ld} -m elf32ppclinux"
7413 ;;
7414 s390x-*linux*)
7415 LD="${LD-ld} -m elf_s390"
7416 ;;
7417 sparc64-*linux*)
7418 LD="${LD-ld} -m elf32_sparc"
7419 ;;
7420 esac
7421 ;;
7422 *64-bit*)
7423 case $host in
7424 x86_64-*kfreebsd*-gnu)
7425 LD="${LD-ld} -m elf_x86_64_fbsd"
7426 ;;
7427 x86_64-*linux*)
7428 LD="${LD-ld} -m elf_x86_64"
7429 ;;
7430 powerpcle-*linux*)
7431 LD="${LD-ld} -m elf64lppc"
7432 ;;
7433 powerpc-*linux*)
7434 LD="${LD-ld} -m elf64ppc"
7435 ;;
7436 s390*-*linux*|s390*-*tpf*)
7437 LD="${LD-ld} -m elf64_s390"
7438 ;;
7439 sparc*-*linux*)
7440 LD="${LD-ld} -m elf64_sparc"
7441 ;;
7442 esac
7443 ;;
7444 esac
7445 fi
7446 rm -rf conftest*
7447 ;;
7448
7449 *-*-sco3.2v5*)
7450 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7451 SAVE_CFLAGS="$CFLAGS"
7452 CFLAGS="$CFLAGS -belf"
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7454 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7455 if ${lt_cv_cc_needs_belf+:} false; then :
7456 $as_echo_n "(cached) " >&6
7457 else
7458 ac_ext=c
7459 ac_cpp='$CPP $CPPFLAGS'
7460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7463
7464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h. */
7466
7467 int
7468 main ()
7469 {
7470
7471 ;
7472 return 0;
7473 }
7474 _ACEOF
7475 if ac_fn_c_try_link "$LINENO"; then :
7476 lt_cv_cc_needs_belf=yes
7477 else
7478 lt_cv_cc_needs_belf=no
7479 fi
7480 rm -f core conftest.err conftest.$ac_objext \
7481 conftest$ac_exeext conftest.$ac_ext
7482 ac_ext=c
7483 ac_cpp='$CPP $CPPFLAGS'
7484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7487
7488 fi
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7490 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7491 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7492 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7493 CFLAGS="$SAVE_CFLAGS"
7494 fi
7495 ;;
7496 sparc*-*solaris*)
7497 # Find out which ABI we are using.
7498 echo 'int i;' > conftest.$ac_ext
7499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7500 (eval $ac_compile) 2>&5
7501 ac_status=$?
7502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7503 test $ac_status = 0; }; then
7504 case `/usr/bin/file conftest.o` in
7505 *64-bit*)
7506 case $lt_cv_prog_gnu_ld in
7507 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7508 *)
7509 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7510 LD="${LD-ld} -64"
7511 fi
7512 ;;
7513 esac
7514 ;;
7515 esac
7516 fi
7517 rm -rf conftest*
7518 ;;
7519 esac
7520
7521 need_locks="$enable_libtool_lock"
7522
7523
7524 case $host_os in
7525 rhapsody* | darwin*)
7526 if test -n "$ac_tool_prefix"; then
7527 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7528 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530 $as_echo_n "checking for $ac_word... " >&6; }
7531 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7532 $as_echo_n "(cached) " >&6
7533 else
7534 if test -n "$DSYMUTIL"; then
7535 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7536 else
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 for as_dir in $PATH
7539 do
7540 IFS=$as_save_IFS
7541 test -z "$as_dir" && as_dir=.
7542 for ac_exec_ext in '' $ac_executable_extensions; do
7543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7544 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7546 break 2
7547 fi
7548 done
7549 done
7550 IFS=$as_save_IFS
7551
7552 fi
7553 fi
7554 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7555 if test -n "$DSYMUTIL"; then
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7557 $as_echo "$DSYMUTIL" >&6; }
7558 else
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560 $as_echo "no" >&6; }
7561 fi
7562
7563
7564 fi
7565 if test -z "$ac_cv_prog_DSYMUTIL"; then
7566 ac_ct_DSYMUTIL=$DSYMUTIL
7567 # Extract the first word of "dsymutil", so it can be a program name with args.
7568 set dummy dsymutil; ac_word=$2
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570 $as_echo_n "checking for $ac_word... " >&6; }
7571 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7572 $as_echo_n "(cached) " >&6
7573 else
7574 if test -n "$ac_ct_DSYMUTIL"; then
7575 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7576 else
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578 for as_dir in $PATH
7579 do
7580 IFS=$as_save_IFS
7581 test -z "$as_dir" && as_dir=.
7582 for ac_exec_ext in '' $ac_executable_extensions; do
7583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7584 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 break 2
7587 fi
7588 done
7589 done
7590 IFS=$as_save_IFS
7591
7592 fi
7593 fi
7594 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7595 if test -n "$ac_ct_DSYMUTIL"; then
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7597 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7598 else
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600 $as_echo "no" >&6; }
7601 fi
7602
7603 if test "x$ac_ct_DSYMUTIL" = x; then
7604 DSYMUTIL=":"
7605 else
7606 case $cross_compiling:$ac_tool_warned in
7607 yes:)
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7610 ac_tool_warned=yes ;;
7611 esac
7612 DSYMUTIL=$ac_ct_DSYMUTIL
7613 fi
7614 else
7615 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7616 fi
7617
7618 if test -n "$ac_tool_prefix"; then
7619 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7620 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7622 $as_echo_n "checking for $ac_word... " >&6; }
7623 if ${ac_cv_prog_NMEDIT+:} false; then :
7624 $as_echo_n "(cached) " >&6
7625 else
7626 if test -n "$NMEDIT"; then
7627 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7628 else
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 for as_dir in $PATH
7631 do
7632 IFS=$as_save_IFS
7633 test -z "$as_dir" && as_dir=.
7634 for ac_exec_ext in '' $ac_executable_extensions; do
7635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7636 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 break 2
7639 fi
7640 done
7641 done
7642 IFS=$as_save_IFS
7643
7644 fi
7645 fi
7646 NMEDIT=$ac_cv_prog_NMEDIT
7647 if test -n "$NMEDIT"; then
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7649 $as_echo "$NMEDIT" >&6; }
7650 else
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652 $as_echo "no" >&6; }
7653 fi
7654
7655
7656 fi
7657 if test -z "$ac_cv_prog_NMEDIT"; then
7658 ac_ct_NMEDIT=$NMEDIT
7659 # Extract the first word of "nmedit", so it can be a program name with args.
7660 set dummy nmedit; ac_word=$2
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662 $as_echo_n "checking for $ac_word... " >&6; }
7663 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7664 $as_echo_n "(cached) " >&6
7665 else
7666 if test -n "$ac_ct_NMEDIT"; then
7667 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7668 else
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 for as_dir in $PATH
7671 do
7672 IFS=$as_save_IFS
7673 test -z "$as_dir" && as_dir=.
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7676 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7678 break 2
7679 fi
7680 done
7681 done
7682 IFS=$as_save_IFS
7683
7684 fi
7685 fi
7686 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7687 if test -n "$ac_ct_NMEDIT"; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7689 $as_echo "$ac_ct_NMEDIT" >&6; }
7690 else
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7693 fi
7694
7695 if test "x$ac_ct_NMEDIT" = x; then
7696 NMEDIT=":"
7697 else
7698 case $cross_compiling:$ac_tool_warned in
7699 yes:)
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7702 ac_tool_warned=yes ;;
7703 esac
7704 NMEDIT=$ac_ct_NMEDIT
7705 fi
7706 else
7707 NMEDIT="$ac_cv_prog_NMEDIT"
7708 fi
7709
7710 if test -n "$ac_tool_prefix"; then
7711 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7712 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714 $as_echo_n "checking for $ac_word... " >&6; }
7715 if ${ac_cv_prog_LIPO+:} false; then :
7716 $as_echo_n "(cached) " >&6
7717 else
7718 if test -n "$LIPO"; then
7719 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7720 else
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 for as_dir in $PATH
7723 do
7724 IFS=$as_save_IFS
7725 test -z "$as_dir" && as_dir=.
7726 for ac_exec_ext in '' $ac_executable_extensions; do
7727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7728 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7730 break 2
7731 fi
7732 done
7733 done
7734 IFS=$as_save_IFS
7735
7736 fi
7737 fi
7738 LIPO=$ac_cv_prog_LIPO
7739 if test -n "$LIPO"; then
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7741 $as_echo "$LIPO" >&6; }
7742 else
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 $as_echo "no" >&6; }
7745 fi
7746
7747
7748 fi
7749 if test -z "$ac_cv_prog_LIPO"; then
7750 ac_ct_LIPO=$LIPO
7751 # Extract the first word of "lipo", so it can be a program name with args.
7752 set dummy lipo; ac_word=$2
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7754 $as_echo_n "checking for $ac_word... " >&6; }
7755 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7756 $as_echo_n "(cached) " >&6
7757 else
7758 if test -n "$ac_ct_LIPO"; then
7759 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7760 else
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 for as_dir in $PATH
7763 do
7764 IFS=$as_save_IFS
7765 test -z "$as_dir" && as_dir=.
7766 for ac_exec_ext in '' $ac_executable_extensions; do
7767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7768 ac_cv_prog_ac_ct_LIPO="lipo"
7769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7770 break 2
7771 fi
7772 done
7773 done
7774 IFS=$as_save_IFS
7775
7776 fi
7777 fi
7778 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7779 if test -n "$ac_ct_LIPO"; then
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7781 $as_echo "$ac_ct_LIPO" >&6; }
7782 else
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7784 $as_echo "no" >&6; }
7785 fi
7786
7787 if test "x$ac_ct_LIPO" = x; then
7788 LIPO=":"
7789 else
7790 case $cross_compiling:$ac_tool_warned in
7791 yes:)
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7794 ac_tool_warned=yes ;;
7795 esac
7796 LIPO=$ac_ct_LIPO
7797 fi
7798 else
7799 LIPO="$ac_cv_prog_LIPO"
7800 fi
7801
7802 if test -n "$ac_tool_prefix"; then
7803 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7804 set dummy ${ac_tool_prefix}otool; ac_word=$2
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7806 $as_echo_n "checking for $ac_word... " >&6; }
7807 if ${ac_cv_prog_OTOOL+:} false; then :
7808 $as_echo_n "(cached) " >&6
7809 else
7810 if test -n "$OTOOL"; then
7811 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7812 else
7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 for as_dir in $PATH
7815 do
7816 IFS=$as_save_IFS
7817 test -z "$as_dir" && as_dir=.
7818 for ac_exec_ext in '' $ac_executable_extensions; do
7819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7820 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7822 break 2
7823 fi
7824 done
7825 done
7826 IFS=$as_save_IFS
7827
7828 fi
7829 fi
7830 OTOOL=$ac_cv_prog_OTOOL
7831 if test -n "$OTOOL"; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7833 $as_echo "$OTOOL" >&6; }
7834 else
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836 $as_echo "no" >&6; }
7837 fi
7838
7839
7840 fi
7841 if test -z "$ac_cv_prog_OTOOL"; then
7842 ac_ct_OTOOL=$OTOOL
7843 # Extract the first word of "otool", so it can be a program name with args.
7844 set dummy otool; ac_word=$2
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7846 $as_echo_n "checking for $ac_word... " >&6; }
7847 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7848 $as_echo_n "(cached) " >&6
7849 else
7850 if test -n "$ac_ct_OTOOL"; then
7851 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7852 else
7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854 for as_dir in $PATH
7855 do
7856 IFS=$as_save_IFS
7857 test -z "$as_dir" && as_dir=.
7858 for ac_exec_ext in '' $ac_executable_extensions; do
7859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7860 ac_cv_prog_ac_ct_OTOOL="otool"
7861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7862 break 2
7863 fi
7864 done
7865 done
7866 IFS=$as_save_IFS
7867
7868 fi
7869 fi
7870 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7871 if test -n "$ac_ct_OTOOL"; then
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7873 $as_echo "$ac_ct_OTOOL" >&6; }
7874 else
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876 $as_echo "no" >&6; }
7877 fi
7878
7879 if test "x$ac_ct_OTOOL" = x; then
7880 OTOOL=":"
7881 else
7882 case $cross_compiling:$ac_tool_warned in
7883 yes:)
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7886 ac_tool_warned=yes ;;
7887 esac
7888 OTOOL=$ac_ct_OTOOL
7889 fi
7890 else
7891 OTOOL="$ac_cv_prog_OTOOL"
7892 fi
7893
7894 if test -n "$ac_tool_prefix"; then
7895 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7896 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7898 $as_echo_n "checking for $ac_word... " >&6; }
7899 if ${ac_cv_prog_OTOOL64+:} false; then :
7900 $as_echo_n "(cached) " >&6
7901 else
7902 if test -n "$OTOOL64"; then
7903 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7904 else
7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 for as_dir in $PATH
7907 do
7908 IFS=$as_save_IFS
7909 test -z "$as_dir" && as_dir=.
7910 for ac_exec_ext in '' $ac_executable_extensions; do
7911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7912 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7914 break 2
7915 fi
7916 done
7917 done
7918 IFS=$as_save_IFS
7919
7920 fi
7921 fi
7922 OTOOL64=$ac_cv_prog_OTOOL64
7923 if test -n "$OTOOL64"; then
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7925 $as_echo "$OTOOL64" >&6; }
7926 else
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928 $as_echo "no" >&6; }
7929 fi
7930
7931
7932 fi
7933 if test -z "$ac_cv_prog_OTOOL64"; then
7934 ac_ct_OTOOL64=$OTOOL64
7935 # Extract the first word of "otool64", so it can be a program name with args.
7936 set dummy otool64; ac_word=$2
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938 $as_echo_n "checking for $ac_word... " >&6; }
7939 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7940 $as_echo_n "(cached) " >&6
7941 else
7942 if test -n "$ac_ct_OTOOL64"; then
7943 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7944 else
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 for as_dir in $PATH
7947 do
7948 IFS=$as_save_IFS
7949 test -z "$as_dir" && as_dir=.
7950 for ac_exec_ext in '' $ac_executable_extensions; do
7951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7952 ac_cv_prog_ac_ct_OTOOL64="otool64"
7953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7954 break 2
7955 fi
7956 done
7957 done
7958 IFS=$as_save_IFS
7959
7960 fi
7961 fi
7962 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7963 if test -n "$ac_ct_OTOOL64"; then
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7965 $as_echo "$ac_ct_OTOOL64" >&6; }
7966 else
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968 $as_echo "no" >&6; }
7969 fi
7970
7971 if test "x$ac_ct_OTOOL64" = x; then
7972 OTOOL64=":"
7973 else
7974 case $cross_compiling:$ac_tool_warned in
7975 yes:)
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7978 ac_tool_warned=yes ;;
7979 esac
7980 OTOOL64=$ac_ct_OTOOL64
7981 fi
7982 else
7983 OTOOL64="$ac_cv_prog_OTOOL64"
7984 fi
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8013 $as_echo_n "checking for -single_module linker flag... " >&6; }
8014 if ${lt_cv_apple_cc_single_mod+:} false; then :
8015 $as_echo_n "(cached) " >&6
8016 else
8017 lt_cv_apple_cc_single_mod=no
8018 if test -z "${LT_MULTI_MODULE}"; then
8019 # By default we will add the -single_module flag. You can override
8020 # by either setting the environment variable LT_MULTI_MODULE
8021 # non-empty at configure time, or by adding -multi_module to the
8022 # link flags.
8023 rm -rf libconftest.dylib*
8024 echo "int foo(void){return 1;}" > conftest.c
8025 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8026 -dynamiclib -Wl,-single_module conftest.c" >&5
8027 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8028 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8029 _lt_result=$?
8030 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8031 lt_cv_apple_cc_single_mod=yes
8032 else
8033 cat conftest.err >&5
8034 fi
8035 rm -rf libconftest.dylib*
8036 rm -f conftest.*
8037 fi
8038 fi
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8040 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8042 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8043 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8044 $as_echo_n "(cached) " >&6
8045 else
8046 lt_cv_ld_exported_symbols_list=no
8047 save_LDFLAGS=$LDFLAGS
8048 echo "_main" > conftest.sym
8049 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h. */
8052
8053 int
8054 main ()
8055 {
8056
8057 ;
8058 return 0;
8059 }
8060 _ACEOF
8061 if ac_fn_c_try_link "$LINENO"; then :
8062 lt_cv_ld_exported_symbols_list=yes
8063 else
8064 lt_cv_ld_exported_symbols_list=no
8065 fi
8066 rm -f core conftest.err conftest.$ac_objext \
8067 conftest$ac_exeext conftest.$ac_ext
8068 LDFLAGS="$save_LDFLAGS"
8069
8070 fi
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8072 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8074 $as_echo_n "checking for -force_load linker flag... " >&6; }
8075 if ${lt_cv_ld_force_load+:} false; then :
8076 $as_echo_n "(cached) " >&6
8077 else
8078 lt_cv_ld_force_load=no
8079 cat > conftest.c << _LT_EOF
8080 int forced_loaded() { return 2;}
8081 _LT_EOF
8082 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8083 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8084 echo "$AR cru libconftest.a conftest.o" >&5
8085 $AR cru libconftest.a conftest.o 2>&5
8086 cat > conftest.c << _LT_EOF
8087 int main() { return 0;}
8088 _LT_EOF
8089 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8090 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8091 _lt_result=$?
8092 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8093 lt_cv_ld_force_load=yes
8094 else
8095 cat conftest.err >&5
8096 fi
8097 rm -f conftest.err libconftest.a conftest conftest.c
8098 rm -rf conftest.dSYM
8099
8100 fi
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8102 $as_echo "$lt_cv_ld_force_load" >&6; }
8103 case $host_os in
8104 rhapsody* | darwin1.[012])
8105 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8106 darwin1.*)
8107 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8108 darwin*) # darwin 5.x on
8109 # if running on 10.5 or later, the deployment target defaults
8110 # to the OS version, if on x86, and 10.4, the deployment
8111 # target defaults to 10.4. Don't you love it?
8112 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8113 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8114 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8115 10.[012][,.]*)
8116 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8117 10.*)
8118 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8119 esac
8120 ;;
8121 esac
8122 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8123 _lt_dar_single_mod='$single_module'
8124 fi
8125 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8126 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8127 else
8128 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8129 fi
8130 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8131 _lt_dsymutil='~$DSYMUTIL $lib || :'
8132 else
8133 _lt_dsymutil=
8134 fi
8135 ;;
8136 esac
8137
8138 for ac_header in dlfcn.h
8139 do :
8140 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8141 "
8142 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8143 cat >>confdefs.h <<_ACEOF
8144 #define HAVE_DLFCN_H 1
8145 _ACEOF
8146
8147 fi
8148
8149 done
8150
8151
8152
8153
8154
8155 # Set options
8156
8157
8158
8159 enable_dlopen=no
8160
8161
8162 enable_win32_dll=no
8163
8164
8165
8166 # Check whether --enable-static was given.
8167 if test "${enable_static+set}" = set; then :
8168 enableval=$enable_static; p=${PACKAGE-default}
8169 case $enableval in
8170 yes) enable_static=yes ;;
8171 no) enable_static=no ;;
8172 *)
8173 enable_static=no
8174 # Look at the argument we got. We use all the common list separators.
8175 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8176 for pkg in $enableval; do
8177 IFS="$lt_save_ifs"
8178 if test "X$pkg" = "X$p"; then
8179 enable_static=yes
8180 fi
8181 done
8182 IFS="$lt_save_ifs"
8183 ;;
8184 esac
8185 else
8186 enable_static=yes
8187 fi
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198 # Check whether --with-pic was given.
8199 if test "${with_pic+set}" = set; then :
8200 withval=$with_pic; pic_mode="$withval"
8201 else
8202 pic_mode=default
8203 fi
8204
8205
8206 test -z "$pic_mode" && pic_mode=default
8207
8208
8209
8210
8211
8212
8213
8214 # Check whether --enable-fast-install was given.
8215 if test "${enable_fast_install+set}" = set; then :
8216 enableval=$enable_fast_install; p=${PACKAGE-default}
8217 case $enableval in
8218 yes) enable_fast_install=yes ;;
8219 no) enable_fast_install=no ;;
8220 *)
8221 enable_fast_install=no
8222 # Look at the argument we got. We use all the common list separators.
8223 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8224 for pkg in $enableval; do
8225 IFS="$lt_save_ifs"
8226 if test "X$pkg" = "X$p"; then
8227 enable_fast_install=yes
8228 fi
8229 done
8230 IFS="$lt_save_ifs"
8231 ;;
8232 esac
8233 else
8234 enable_fast_install=yes
8235 fi
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247 # This can be used to rebuild libtool when needed
8248 LIBTOOL_DEPS="$ltmain"
8249
8250 # Always use our own libtool.
8251 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278 test -z "$LN_S" && LN_S="ln -s"
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293 if test -n "${ZSH_VERSION+set}" ; then
8294 setopt NO_GLOB_SUBST
8295 fi
8296
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8298 $as_echo_n "checking for objdir... " >&6; }
8299 if ${lt_cv_objdir+:} false; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 rm -f .libs 2>/dev/null
8303 mkdir .libs 2>/dev/null
8304 if test -d .libs; then
8305 lt_cv_objdir=.libs
8306 else
8307 # MS-DOS does not allow filenames that begin with a dot.
8308 lt_cv_objdir=_libs
8309 fi
8310 rmdir .libs 2>/dev/null
8311 fi
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8313 $as_echo "$lt_cv_objdir" >&6; }
8314 objdir=$lt_cv_objdir
8315
8316
8317
8318
8319
8320 cat >>confdefs.h <<_ACEOF
8321 #define LT_OBJDIR "$lt_cv_objdir/"
8322 _ACEOF
8323
8324
8325
8326
8327 case $host_os in
8328 aix3*)
8329 # AIX sometimes has problems with the GCC collect2 program. For some
8330 # reason, if we set the COLLECT_NAMES environment variable, the problems
8331 # vanish in a puff of smoke.
8332 if test "X${COLLECT_NAMES+set}" != Xset; then
8333 COLLECT_NAMES=
8334 export COLLECT_NAMES
8335 fi
8336 ;;
8337 esac
8338
8339 # Global variables:
8340 ofile=libtool
8341 can_build_shared=yes
8342
8343 # All known linkers require a `.a' archive for static linking (except MSVC,
8344 # which needs '.lib').
8345 libext=a
8346
8347 with_gnu_ld="$lt_cv_prog_gnu_ld"
8348
8349 old_CC="$CC"
8350 old_CFLAGS="$CFLAGS"
8351
8352 # Set sane defaults for various variables
8353 test -z "$CC" && CC=cc
8354 test -z "$LTCC" && LTCC=$CC
8355 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8356 test -z "$LD" && LD=ld
8357 test -z "$ac_objext" && ac_objext=o
8358
8359 for cc_temp in $compiler""; do
8360 case $cc_temp in
8361 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8362 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8363 \-*) ;;
8364 *) break;;
8365 esac
8366 done
8367 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8368
8369
8370 # Only perform the check for file, if the check method requires it
8371 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8372 case $deplibs_check_method in
8373 file_magic*)
8374 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8376 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8377 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8378 $as_echo_n "(cached) " >&6
8379 else
8380 case $MAGIC_CMD in
8381 [\\/*] | ?:[\\/]*)
8382 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8383 ;;
8384 *)
8385 lt_save_MAGIC_CMD="$MAGIC_CMD"
8386 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8387 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8388 for ac_dir in $ac_dummy; do
8389 IFS="$lt_save_ifs"
8390 test -z "$ac_dir" && ac_dir=.
8391 if test -f $ac_dir/${ac_tool_prefix}file; then
8392 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8393 if test -n "$file_magic_test_file"; then
8394 case $deplibs_check_method in
8395 "file_magic "*)
8396 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8397 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8398 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8399 $EGREP "$file_magic_regex" > /dev/null; then
8400 :
8401 else
8402 cat <<_LT_EOF 1>&2
8403
8404 *** Warning: the command libtool uses to detect shared libraries,
8405 *** $file_magic_cmd, produces output that libtool cannot recognize.
8406 *** The result is that libtool may fail to recognize shared libraries
8407 *** as such. This will affect the creation of libtool libraries that
8408 *** depend on shared libraries, but programs linked with such libtool
8409 *** libraries will work regardless of this problem. Nevertheless, you
8410 *** may want to report the problem to your system manager and/or to
8411 *** bug-libtool@gnu.org
8412
8413 _LT_EOF
8414 fi ;;
8415 esac
8416 fi
8417 break
8418 fi
8419 done
8420 IFS="$lt_save_ifs"
8421 MAGIC_CMD="$lt_save_MAGIC_CMD"
8422 ;;
8423 esac
8424 fi
8425
8426 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8427 if test -n "$MAGIC_CMD"; then
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8429 $as_echo "$MAGIC_CMD" >&6; }
8430 else
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432 $as_echo "no" >&6; }
8433 fi
8434
8435
8436
8437
8438
8439 if test -z "$lt_cv_path_MAGIC_CMD"; then
8440 if test -n "$ac_tool_prefix"; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8442 $as_echo_n "checking for file... " >&6; }
8443 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8444 $as_echo_n "(cached) " >&6
8445 else
8446 case $MAGIC_CMD in
8447 [\\/*] | ?:[\\/]*)
8448 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8449 ;;
8450 *)
8451 lt_save_MAGIC_CMD="$MAGIC_CMD"
8452 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8453 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8454 for ac_dir in $ac_dummy; do
8455 IFS="$lt_save_ifs"
8456 test -z "$ac_dir" && ac_dir=.
8457 if test -f $ac_dir/file; then
8458 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8459 if test -n "$file_magic_test_file"; then
8460 case $deplibs_check_method in
8461 "file_magic "*)
8462 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8463 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8464 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8465 $EGREP "$file_magic_regex" > /dev/null; then
8466 :
8467 else
8468 cat <<_LT_EOF 1>&2
8469
8470 *** Warning: the command libtool uses to detect shared libraries,
8471 *** $file_magic_cmd, produces output that libtool cannot recognize.
8472 *** The result is that libtool may fail to recognize shared libraries
8473 *** as such. This will affect the creation of libtool libraries that
8474 *** depend on shared libraries, but programs linked with such libtool
8475 *** libraries will work regardless of this problem. Nevertheless, you
8476 *** may want to report the problem to your system manager and/or to
8477 *** bug-libtool@gnu.org
8478
8479 _LT_EOF
8480 fi ;;
8481 esac
8482 fi
8483 break
8484 fi
8485 done
8486 IFS="$lt_save_ifs"
8487 MAGIC_CMD="$lt_save_MAGIC_CMD"
8488 ;;
8489 esac
8490 fi
8491
8492 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8493 if test -n "$MAGIC_CMD"; then
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8495 $as_echo "$MAGIC_CMD" >&6; }
8496 else
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498 $as_echo "no" >&6; }
8499 fi
8500
8501
8502 else
8503 MAGIC_CMD=:
8504 fi
8505 fi
8506
8507 fi
8508 ;;
8509 esac
8510
8511 # Use C for the default configuration in the libtool script
8512
8513 lt_save_CC="$CC"
8514 ac_ext=c
8515 ac_cpp='$CPP $CPPFLAGS'
8516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8519
8520
8521 # Source file extension for C test sources.
8522 ac_ext=c
8523
8524 # Object file extension for compiled C test sources.
8525 objext=o
8526 objext=$objext
8527
8528 # Code to be used in simple compile tests
8529 lt_simple_compile_test_code="int some_variable = 0;"
8530
8531 # Code to be used in simple link tests
8532 lt_simple_link_test_code='int main(){return(0);}'
8533
8534
8535
8536
8537
8538
8539
8540 # If no C compiler was specified, use CC.
8541 LTCC=${LTCC-"$CC"}
8542
8543 # If no C compiler flags were specified, use CFLAGS.
8544 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8545
8546 # Allow CC to be a program name with arguments.
8547 compiler=$CC
8548
8549 # Save the default compiler, since it gets overwritten when the other
8550 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8551 compiler_DEFAULT=$CC
8552
8553 # save warnings/boilerplate of simple test code
8554 ac_outfile=conftest.$ac_objext
8555 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8556 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8557 _lt_compiler_boilerplate=`cat conftest.err`
8558 $RM conftest*
8559
8560 ac_outfile=conftest.$ac_objext
8561 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8562 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8563 _lt_linker_boilerplate=`cat conftest.err`
8564 $RM -r conftest*
8565
8566
8567 ## CAVEAT EMPTOR:
8568 ## There is no encapsulation within the following macros, do not change
8569 ## the running order or otherwise move them around unless you know exactly
8570 ## what you are doing...
8571 if test -n "$compiler"; then
8572
8573 lt_prog_compiler_no_builtin_flag=
8574
8575 if test "$GCC" = yes; then
8576 case $cc_basename in
8577 nvcc*)
8578 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8579 *)
8580 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8581 esac
8582
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8584 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8585 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8586 $as_echo_n "(cached) " >&6
8587 else
8588 lt_cv_prog_compiler_rtti_exceptions=no
8589 ac_outfile=conftest.$ac_objext
8590 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8591 lt_compiler_flag="-fno-rtti -fno-exceptions"
8592 # Insert the option either (1) after the last *FLAGS variable, or
8593 # (2) before a word containing "conftest.", or (3) at the end.
8594 # Note that $ac_compile itself does not contain backslashes and begins
8595 # with a dollar sign (not a hyphen), so the echo should work correctly.
8596 # The option is referenced via a variable to avoid confusing sed.
8597 lt_compile=`echo "$ac_compile" | $SED \
8598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8600 -e 's:$: $lt_compiler_flag:'`
8601 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8602 (eval "$lt_compile" 2>conftest.err)
8603 ac_status=$?
8604 cat conftest.err >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 if (exit $ac_status) && test -s "$ac_outfile"; then
8607 # The compiler can only warn and ignore the option if not recognized
8608 # So say no if there are warnings other than the usual output.
8609 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8610 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8611 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8612 lt_cv_prog_compiler_rtti_exceptions=yes
8613 fi
8614 fi
8615 $RM conftest*
8616
8617 fi
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8619 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8620
8621 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8622 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8623 else
8624 :
8625 fi
8626
8627 fi
8628
8629
8630
8631
8632
8633
8634 lt_prog_compiler_wl=
8635 lt_prog_compiler_pic=
8636 lt_prog_compiler_static=
8637
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8639 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8640
8641 if test "$GCC" = yes; then
8642 lt_prog_compiler_wl='-Wl,'
8643 lt_prog_compiler_static='-static'
8644
8645 case $host_os in
8646 aix*)
8647 # All AIX code is PIC.
8648 if test "$host_cpu" = ia64; then
8649 # AIX 5 now supports IA64 processor
8650 lt_prog_compiler_static='-Bstatic'
8651 fi
8652 lt_prog_compiler_pic='-fPIC'
8653 ;;
8654
8655 amigaos*)
8656 case $host_cpu in
8657 powerpc)
8658 # see comment about AmigaOS4 .so support
8659 lt_prog_compiler_pic='-fPIC'
8660 ;;
8661 m68k)
8662 # FIXME: we need at least 68020 code to build shared libraries, but
8663 # adding the `-m68020' flag to GCC prevents building anything better,
8664 # like `-m68040'.
8665 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8666 ;;
8667 esac
8668 ;;
8669
8670 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8671 # PIC is the default for these OSes.
8672 ;;
8673
8674 mingw* | cygwin* | pw32* | os2* | cegcc*)
8675 # This hack is so that the source file can tell whether it is being
8676 # built for inclusion in a dll (and should export symbols for example).
8677 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8678 # (--disable-auto-import) libraries
8679 lt_prog_compiler_pic='-DDLL_EXPORT'
8680 ;;
8681
8682 darwin* | rhapsody*)
8683 # PIC is the default on this platform
8684 # Common symbols not allowed in MH_DYLIB files
8685 lt_prog_compiler_pic='-fno-common'
8686 ;;
8687
8688 haiku*)
8689 # PIC is the default for Haiku.
8690 # The "-static" flag exists, but is broken.
8691 lt_prog_compiler_static=
8692 ;;
8693
8694 hpux*)
8695 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8696 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8697 # sets the default TLS model and affects inlining.
8698 case $host_cpu in
8699 hppa*64*)
8700 # +Z the default
8701 ;;
8702 *)
8703 lt_prog_compiler_pic='-fPIC'
8704 ;;
8705 esac
8706 ;;
8707
8708 interix[3-9]*)
8709 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8710 # Instead, we relocate shared libraries at runtime.
8711 ;;
8712
8713 msdosdjgpp*)
8714 # Just because we use GCC doesn't mean we suddenly get shared libraries
8715 # on systems that don't support them.
8716 lt_prog_compiler_can_build_shared=no
8717 enable_shared=no
8718 ;;
8719
8720 *nto* | *qnx*)
8721 # QNX uses GNU C++, but need to define -shared option too, otherwise
8722 # it will coredump.
8723 lt_prog_compiler_pic='-fPIC -shared'
8724 ;;
8725
8726 sysv4*MP*)
8727 if test -d /usr/nec; then
8728 lt_prog_compiler_pic=-Kconform_pic
8729 fi
8730 ;;
8731
8732 *)
8733 lt_prog_compiler_pic='-fPIC'
8734 ;;
8735 esac
8736
8737 case $cc_basename in
8738 nvcc*) # Cuda Compiler Driver 2.2
8739 lt_prog_compiler_wl='-Xlinker '
8740 lt_prog_compiler_pic='-Xcompiler -fPIC'
8741 ;;
8742 esac
8743 else
8744 # PORTME Check for flag to pass linker flags through the system compiler.
8745 case $host_os in
8746 aix*)
8747 lt_prog_compiler_wl='-Wl,'
8748 if test "$host_cpu" = ia64; then
8749 # AIX 5 now supports IA64 processor
8750 lt_prog_compiler_static='-Bstatic'
8751 else
8752 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8753 fi
8754 ;;
8755
8756 mingw* | cygwin* | pw32* | os2* | cegcc*)
8757 # This hack is so that the source file can tell whether it is being
8758 # built for inclusion in a dll (and should export symbols for example).
8759 lt_prog_compiler_pic='-DDLL_EXPORT'
8760 ;;
8761
8762 hpux9* | hpux10* | hpux11*)
8763 lt_prog_compiler_wl='-Wl,'
8764 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8765 # not for PA HP-UX.
8766 case $host_cpu in
8767 hppa*64*|ia64*)
8768 # +Z the default
8769 ;;
8770 *)
8771 lt_prog_compiler_pic='+Z'
8772 ;;
8773 esac
8774 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8775 lt_prog_compiler_static='${wl}-a ${wl}archive'
8776 ;;
8777
8778 irix5* | irix6* | nonstopux*)
8779 lt_prog_compiler_wl='-Wl,'
8780 # PIC (with -KPIC) is the default.
8781 lt_prog_compiler_static='-non_shared'
8782 ;;
8783
8784 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8785 case $cc_basename in
8786 # old Intel for x86_64 which still supported -KPIC.
8787 ecc*)
8788 lt_prog_compiler_wl='-Wl,'
8789 lt_prog_compiler_pic='-KPIC'
8790 lt_prog_compiler_static='-static'
8791 ;;
8792 # icc used to be incompatible with GCC.
8793 # ICC 10 doesn't accept -KPIC any more.
8794 icc* | ifort*)
8795 lt_prog_compiler_wl='-Wl,'
8796 lt_prog_compiler_pic='-fPIC'
8797 lt_prog_compiler_static='-static'
8798 ;;
8799 # Lahey Fortran 8.1.
8800 lf95*)
8801 lt_prog_compiler_wl='-Wl,'
8802 lt_prog_compiler_pic='--shared'
8803 lt_prog_compiler_static='--static'
8804 ;;
8805 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8806 # Portland Group compilers (*not* the Pentium gcc compiler,
8807 # which looks to be a dead project)
8808 lt_prog_compiler_wl='-Wl,'
8809 lt_prog_compiler_pic='-fpic'
8810 lt_prog_compiler_static='-Bstatic'
8811 ;;
8812 ccc*)
8813 lt_prog_compiler_wl='-Wl,'
8814 # All Alpha code is PIC.
8815 lt_prog_compiler_static='-non_shared'
8816 ;;
8817 xl* | bgxl* | bgf* | mpixl*)
8818 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8819 lt_prog_compiler_wl='-Wl,'
8820 lt_prog_compiler_pic='-qpic'
8821 lt_prog_compiler_static='-qstaticlink'
8822 ;;
8823 *)
8824 case `$CC -V 2>&1 | sed 5q` in
8825 *Sun\ F* | *Sun*Fortran*)
8826 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8827 lt_prog_compiler_pic='-KPIC'
8828 lt_prog_compiler_static='-Bstatic'
8829 lt_prog_compiler_wl=''
8830 ;;
8831 *Sun\ C*)
8832 # Sun C 5.9
8833 lt_prog_compiler_pic='-KPIC'
8834 lt_prog_compiler_static='-Bstatic'
8835 lt_prog_compiler_wl='-Wl,'
8836 ;;
8837 esac
8838 ;;
8839 esac
8840 ;;
8841
8842 newsos6)
8843 lt_prog_compiler_pic='-KPIC'
8844 lt_prog_compiler_static='-Bstatic'
8845 ;;
8846
8847 *nto* | *qnx*)
8848 # QNX uses GNU C++, but need to define -shared option too, otherwise
8849 # it will coredump.
8850 lt_prog_compiler_pic='-fPIC -shared'
8851 ;;
8852
8853 osf3* | osf4* | osf5*)
8854 lt_prog_compiler_wl='-Wl,'
8855 # All OSF/1 code is PIC.
8856 lt_prog_compiler_static='-non_shared'
8857 ;;
8858
8859 rdos*)
8860 lt_prog_compiler_static='-non_shared'
8861 ;;
8862
8863 solaris*)
8864 lt_prog_compiler_pic='-KPIC'
8865 lt_prog_compiler_static='-Bstatic'
8866 case $cc_basename in
8867 f77* | f90* | f95*)
8868 lt_prog_compiler_wl='-Qoption ld ';;
8869 *)
8870 lt_prog_compiler_wl='-Wl,';;
8871 esac
8872 ;;
8873
8874 sunos4*)
8875 lt_prog_compiler_wl='-Qoption ld '
8876 lt_prog_compiler_pic='-PIC'
8877 lt_prog_compiler_static='-Bstatic'
8878 ;;
8879
8880 sysv4 | sysv4.2uw2* | sysv4.3*)
8881 lt_prog_compiler_wl='-Wl,'
8882 lt_prog_compiler_pic='-KPIC'
8883 lt_prog_compiler_static='-Bstatic'
8884 ;;
8885
8886 sysv4*MP*)
8887 if test -d /usr/nec ;then
8888 lt_prog_compiler_pic='-Kconform_pic'
8889 lt_prog_compiler_static='-Bstatic'
8890 fi
8891 ;;
8892
8893 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8894 lt_prog_compiler_wl='-Wl,'
8895 lt_prog_compiler_pic='-KPIC'
8896 lt_prog_compiler_static='-Bstatic'
8897 ;;
8898
8899 unicos*)
8900 lt_prog_compiler_wl='-Wl,'
8901 lt_prog_compiler_can_build_shared=no
8902 ;;
8903
8904 uts4*)
8905 lt_prog_compiler_pic='-pic'
8906 lt_prog_compiler_static='-Bstatic'
8907 ;;
8908
8909 *)
8910 lt_prog_compiler_can_build_shared=no
8911 ;;
8912 esac
8913 fi
8914
8915 case $host_os in
8916 # For platforms which do not support PIC, -DPIC is meaningless:
8917 *djgpp*)
8918 lt_prog_compiler_pic=
8919 ;;
8920 *)
8921 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8922 ;;
8923 esac
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8925 $as_echo "$lt_prog_compiler_pic" >&6; }
8926
8927
8928
8929
8930
8931
8932 #
8933 # Check to make sure the PIC flag actually works.
8934 #
8935 if test -n "$lt_prog_compiler_pic"; then
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8937 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8938 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8939 $as_echo_n "(cached) " >&6
8940 else
8941 lt_cv_prog_compiler_pic_works=no
8942 ac_outfile=conftest.$ac_objext
8943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8944 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8945 # Insert the option either (1) after the last *FLAGS variable, or
8946 # (2) before a word containing "conftest.", or (3) at the end.
8947 # Note that $ac_compile itself does not contain backslashes and begins
8948 # with a dollar sign (not a hyphen), so the echo should work correctly.
8949 # The option is referenced via a variable to avoid confusing sed.
8950 lt_compile=`echo "$ac_compile" | $SED \
8951 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8952 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8953 -e 's:$: $lt_compiler_flag:'`
8954 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8955 (eval "$lt_compile" 2>conftest.err)
8956 ac_status=$?
8957 cat conftest.err >&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 if (exit $ac_status) && test -s "$ac_outfile"; then
8960 # The compiler can only warn and ignore the option if not recognized
8961 # So say no if there are warnings other than the usual output.
8962 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8963 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8964 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8965 lt_cv_prog_compiler_pic_works=yes
8966 fi
8967 fi
8968 $RM conftest*
8969
8970 fi
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8972 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8973
8974 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8975 case $lt_prog_compiler_pic in
8976 "" | " "*) ;;
8977 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8978 esac
8979 else
8980 lt_prog_compiler_pic=
8981 lt_prog_compiler_can_build_shared=no
8982 fi
8983
8984 fi
8985
8986
8987
8988
8989
8990
8991 #
8992 # Check to make sure the static flag actually works.
8993 #
8994 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8996 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8997 if ${lt_cv_prog_compiler_static_works+:} false; then :
8998 $as_echo_n "(cached) " >&6
8999 else
9000 lt_cv_prog_compiler_static_works=no
9001 save_LDFLAGS="$LDFLAGS"
9002 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9003 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9004 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9005 # The linker can only warn and ignore the option if not recognized
9006 # So say no if there are warnings
9007 if test -s conftest.err; then
9008 # Append any errors to the config.log.
9009 cat conftest.err 1>&5
9010 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9011 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9012 if diff conftest.exp conftest.er2 >/dev/null; then
9013 lt_cv_prog_compiler_static_works=yes
9014 fi
9015 else
9016 lt_cv_prog_compiler_static_works=yes
9017 fi
9018 fi
9019 $RM -r conftest*
9020 LDFLAGS="$save_LDFLAGS"
9021
9022 fi
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9024 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9025
9026 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9027 :
9028 else
9029 lt_prog_compiler_static=
9030 fi
9031
9032
9033
9034
9035
9036
9037
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9039 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9040 if ${lt_cv_prog_compiler_c_o+:} false; then :
9041 $as_echo_n "(cached) " >&6
9042 else
9043 lt_cv_prog_compiler_c_o=no
9044 $RM -r conftest 2>/dev/null
9045 mkdir conftest
9046 cd conftest
9047 mkdir out
9048 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9049
9050 lt_compiler_flag="-o out/conftest2.$ac_objext"
9051 # Insert the option either (1) after the last *FLAGS variable, or
9052 # (2) before a word containing "conftest.", or (3) at the end.
9053 # Note that $ac_compile itself does not contain backslashes and begins
9054 # with a dollar sign (not a hyphen), so the echo should work correctly.
9055 lt_compile=`echo "$ac_compile" | $SED \
9056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9058 -e 's:$: $lt_compiler_flag:'`
9059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9060 (eval "$lt_compile" 2>out/conftest.err)
9061 ac_status=$?
9062 cat out/conftest.err >&5
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9065 then
9066 # The compiler can only warn and ignore the option if not recognized
9067 # So say no if there are warnings
9068 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9069 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9070 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9071 lt_cv_prog_compiler_c_o=yes
9072 fi
9073 fi
9074 chmod u+w . 2>&5
9075 $RM conftest*
9076 # SGI C++ compiler will create directory out/ii_files/ for
9077 # template instantiation
9078 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9079 $RM out/* && rmdir out
9080 cd ..
9081 $RM -r conftest
9082 $RM conftest*
9083
9084 fi
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9086 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9087
9088
9089
9090
9091
9092
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9094 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9095 if ${lt_cv_prog_compiler_c_o+:} false; then :
9096 $as_echo_n "(cached) " >&6
9097 else
9098 lt_cv_prog_compiler_c_o=no
9099 $RM -r conftest 2>/dev/null
9100 mkdir conftest
9101 cd conftest
9102 mkdir out
9103 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9104
9105 lt_compiler_flag="-o out/conftest2.$ac_objext"
9106 # Insert the option either (1) after the last *FLAGS variable, or
9107 # (2) before a word containing "conftest.", or (3) at the end.
9108 # Note that $ac_compile itself does not contain backslashes and begins
9109 # with a dollar sign (not a hyphen), so the echo should work correctly.
9110 lt_compile=`echo "$ac_compile" | $SED \
9111 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9113 -e 's:$: $lt_compiler_flag:'`
9114 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9115 (eval "$lt_compile" 2>out/conftest.err)
9116 ac_status=$?
9117 cat out/conftest.err >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9120 then
9121 # The compiler can only warn and ignore the option if not recognized
9122 # So say no if there are warnings
9123 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9124 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9125 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9126 lt_cv_prog_compiler_c_o=yes
9127 fi
9128 fi
9129 chmod u+w . 2>&5
9130 $RM conftest*
9131 # SGI C++ compiler will create directory out/ii_files/ for
9132 # template instantiation
9133 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9134 $RM out/* && rmdir out
9135 cd ..
9136 $RM -r conftest
9137 $RM conftest*
9138
9139 fi
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9141 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9142
9143
9144
9145
9146 hard_links="nottested"
9147 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9148 # do not overwrite the value of need_locks provided by the user
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9150 $as_echo_n "checking if we can lock with hard links... " >&6; }
9151 hard_links=yes
9152 $RM conftest*
9153 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9154 touch conftest.a
9155 ln conftest.a conftest.b 2>&5 || hard_links=no
9156 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9158 $as_echo "$hard_links" >&6; }
9159 if test "$hard_links" = no; then
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9161 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9162 need_locks=warn
9163 fi
9164 else
9165 need_locks=no
9166 fi
9167
9168
9169
9170
9171
9172
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9174 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9175
9176 runpath_var=
9177 allow_undefined_flag=
9178 always_export_symbols=no
9179 archive_cmds=
9180 archive_expsym_cmds=
9181 compiler_needs_object=no
9182 enable_shared_with_static_runtimes=no
9183 export_dynamic_flag_spec=
9184 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9185 hardcode_automatic=no
9186 hardcode_direct=no
9187 hardcode_direct_absolute=no
9188 hardcode_libdir_flag_spec=
9189 hardcode_libdir_flag_spec_ld=
9190 hardcode_libdir_separator=
9191 hardcode_minus_L=no
9192 hardcode_shlibpath_var=unsupported
9193 inherit_rpath=no
9194 link_all_deplibs=unknown
9195 module_cmds=
9196 module_expsym_cmds=
9197 old_archive_from_new_cmds=
9198 old_archive_from_expsyms_cmds=
9199 thread_safe_flag_spec=
9200 whole_archive_flag_spec=
9201 # include_expsyms should be a list of space-separated symbols to be *always*
9202 # included in the symbol list
9203 include_expsyms=
9204 # exclude_expsyms can be an extended regexp of symbols to exclude
9205 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9206 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9207 # as well as any symbol that contains `d'.
9208 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9209 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9210 # platforms (ab)use it in PIC code, but their linkers get confused if
9211 # the symbol is explicitly referenced. Since portable code cannot
9212 # rely on this symbol name, it's probably fine to never include it in
9213 # preloaded symbol tables.
9214 # Exclude shared library initialization/finalization symbols.
9215 extract_expsyms_cmds=
9216
9217 case $host_os in
9218 cygwin* | mingw* | pw32* | cegcc*)
9219 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9220 # When not using gcc, we currently assume that we are using
9221 # Microsoft Visual C++.
9222 if test "$GCC" != yes; then
9223 with_gnu_ld=no
9224 fi
9225 ;;
9226 interix*)
9227 # we just hope/assume this is gcc and not c89 (= MSVC++)
9228 with_gnu_ld=yes
9229 ;;
9230 openbsd*)
9231 with_gnu_ld=no
9232 ;;
9233 esac
9234
9235 ld_shlibs=yes
9236
9237 # On some targets, GNU ld is compatible enough with the native linker
9238 # that we're better off using the native interface for both.
9239 lt_use_gnu_ld_interface=no
9240 if test "$with_gnu_ld" = yes; then
9241 case $host_os in
9242 aix*)
9243 # The AIX port of GNU ld has always aspired to compatibility
9244 # with the native linker. However, as the warning in the GNU ld
9245 # block says, versions before 2.19.5* couldn't really create working
9246 # shared libraries, regardless of the interface used.
9247 case `$LD -v 2>&1` in
9248 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9249 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9250 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9251 *)
9252 lt_use_gnu_ld_interface=yes
9253 ;;
9254 esac
9255 ;;
9256 *)
9257 lt_use_gnu_ld_interface=yes
9258 ;;
9259 esac
9260 fi
9261
9262 if test "$lt_use_gnu_ld_interface" = yes; then
9263 # If archive_cmds runs LD, not CC, wlarc should be empty
9264 wlarc='${wl}'
9265
9266 # Set some defaults for GNU ld with shared library support. These
9267 # are reset later if shared libraries are not supported. Putting them
9268 # here allows them to be overridden if necessary.
9269 runpath_var=LD_RUN_PATH
9270 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9271 export_dynamic_flag_spec='${wl}--export-dynamic'
9272 # ancient GNU ld didn't support --whole-archive et. al.
9273 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9274 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9275 else
9276 whole_archive_flag_spec=
9277 fi
9278 supports_anon_versioning=no
9279 case `$LD -v 2>&1` in
9280 *GNU\ gold*) supports_anon_versioning=yes ;;
9281 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9282 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9283 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9284 *\ 2.11.*) ;; # other 2.11 versions
9285 *) supports_anon_versioning=yes ;;
9286 esac
9287
9288 # See if GNU ld supports shared libraries.
9289 case $host_os in
9290 aix[3-9]*)
9291 # On AIX/PPC, the GNU linker is very broken
9292 if test "$host_cpu" != ia64; then
9293 ld_shlibs=no
9294 cat <<_LT_EOF 1>&2
9295
9296 *** Warning: the GNU linker, at least up to release 2.19, is reported
9297 *** to be unable to reliably create shared libraries on AIX.
9298 *** Therefore, libtool is disabling shared libraries support. If you
9299 *** really care for shared libraries, you may want to install binutils
9300 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9301 *** You will then need to restart the configuration process.
9302
9303 _LT_EOF
9304 fi
9305 ;;
9306
9307 amigaos*)
9308 case $host_cpu in
9309 powerpc)
9310 # see comment about AmigaOS4 .so support
9311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9312 archive_expsym_cmds=''
9313 ;;
9314 m68k)
9315 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)'
9316 hardcode_libdir_flag_spec='-L$libdir'
9317 hardcode_minus_L=yes
9318 ;;
9319 esac
9320 ;;
9321
9322 beos*)
9323 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9324 allow_undefined_flag=unsupported
9325 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9326 # support --undefined. This deserves some investigation. FIXME
9327 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9328 else
9329 ld_shlibs=no
9330 fi
9331 ;;
9332
9333 cygwin* | mingw* | pw32* | cegcc*)
9334 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9335 # as there is no search path for DLLs.
9336 hardcode_libdir_flag_spec='-L$libdir'
9337 export_dynamic_flag_spec='${wl}--export-all-symbols'
9338 allow_undefined_flag=unsupported
9339 always_export_symbols=no
9340 enable_shared_with_static_runtimes=yes
9341 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9342
9343 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9344 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9345 # If the export-symbols file already is a .def file (1st line
9346 # is EXPORTS), use it as is; otherwise, prepend...
9347 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9348 cp $export_symbols $output_objdir/$soname.def;
9349 else
9350 echo EXPORTS > $output_objdir/$soname.def;
9351 cat $export_symbols >> $output_objdir/$soname.def;
9352 fi~
9353 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9354 else
9355 ld_shlibs=no
9356 fi
9357 ;;
9358
9359 haiku*)
9360 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9361 link_all_deplibs=yes
9362 ;;
9363
9364 interix[3-9]*)
9365 hardcode_direct=no
9366 hardcode_shlibpath_var=no
9367 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9368 export_dynamic_flag_spec='${wl}-E'
9369 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9370 # Instead, shared libraries are loaded at an image base (0x10000000 by
9371 # default) and relocated if they conflict, which is a slow very memory
9372 # consuming and fragmenting process. To avoid this, we pick a random,
9373 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9374 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9375 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9376 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'
9377 ;;
9378
9379 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9380 tmp_diet=no
9381 if test "$host_os" = linux-dietlibc; then
9382 case $cc_basename in
9383 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9384 esac
9385 fi
9386 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9387 && test "$tmp_diet" = no
9388 then
9389 tmp_addflag=' $pic_flag'
9390 tmp_sharedflag='-shared'
9391 case $cc_basename,$host_cpu in
9392 pgcc*) # Portland Group C compiler
9393 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'
9394 tmp_addflag=' $pic_flag'
9395 ;;
9396 pgf77* | pgf90* | pgf95* | pgfortran*)
9397 # Portland Group f77 and f90 compilers
9398 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'
9399 tmp_addflag=' $pic_flag -Mnomain' ;;
9400 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9401 tmp_addflag=' -i_dynamic' ;;
9402 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9403 tmp_addflag=' -i_dynamic -nofor_main' ;;
9404 ifc* | ifort*) # Intel Fortran compiler
9405 tmp_addflag=' -nofor_main' ;;
9406 lf95*) # Lahey Fortran 8.1
9407 whole_archive_flag_spec=
9408 tmp_sharedflag='--shared' ;;
9409 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9410 tmp_sharedflag='-qmkshrobj'
9411 tmp_addflag= ;;
9412 nvcc*) # Cuda Compiler Driver 2.2
9413 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'
9414 compiler_needs_object=yes
9415 ;;
9416 esac
9417 case `$CC -V 2>&1 | sed 5q` in
9418 *Sun\ C*) # Sun C 5.9
9419 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'
9420 compiler_needs_object=yes
9421 tmp_sharedflag='-G' ;;
9422 *Sun\ F*) # Sun Fortran 8.3
9423 tmp_sharedflag='-G' ;;
9424 esac
9425 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9426
9427 if test "x$supports_anon_versioning" = xyes; then
9428 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9429 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9430 echo "local: *; };" >> $output_objdir/$libname.ver~
9431 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9432 fi
9433
9434 case $cc_basename in
9435 xlf* | bgf* | bgxlf* | mpixlf*)
9436 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9437 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9438 hardcode_libdir_flag_spec=
9439 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9440 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9441 if test "x$supports_anon_versioning" = xyes; then
9442 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9443 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9444 echo "local: *; };" >> $output_objdir/$libname.ver~
9445 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9446 fi
9447 ;;
9448 esac
9449 else
9450 ld_shlibs=no
9451 fi
9452 ;;
9453
9454 netbsd*)
9455 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9456 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9457 wlarc=
9458 else
9459 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9460 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9461 fi
9462 ;;
9463
9464 solaris*)
9465 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9466 ld_shlibs=no
9467 cat <<_LT_EOF 1>&2
9468
9469 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9470 *** create shared libraries on Solaris systems. Therefore, libtool
9471 *** is disabling shared libraries support. We urge you to upgrade GNU
9472 *** binutils to release 2.9.1 or newer. Another option is to modify
9473 *** your PATH or compiler configuration so that the native linker is
9474 *** used, and then restart.
9475
9476 _LT_EOF
9477 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9479 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9480 else
9481 ld_shlibs=no
9482 fi
9483 ;;
9484
9485 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9486 case `$LD -v 2>&1` in
9487 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9488 ld_shlibs=no
9489 cat <<_LT_EOF 1>&2
9490
9491 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9492 *** reliably create shared libraries on SCO systems. Therefore, libtool
9493 *** is disabling shared libraries support. We urge you to upgrade GNU
9494 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9495 *** your PATH or compiler configuration so that the native linker is
9496 *** used, and then restart.
9497
9498 _LT_EOF
9499 ;;
9500 *)
9501 # For security reasons, it is highly recommended that you always
9502 # use absolute paths for naming shared libraries, and exclude the
9503 # DT_RUNPATH tag from executables and libraries. But doing so
9504 # requires that you compile everything twice, which is a pain.
9505 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9506 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9507 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9508 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9509 else
9510 ld_shlibs=no
9511 fi
9512 ;;
9513 esac
9514 ;;
9515
9516 sunos4*)
9517 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9518 wlarc=
9519 hardcode_direct=yes
9520 hardcode_shlibpath_var=no
9521 ;;
9522
9523 *)
9524 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9525 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9526 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9527 else
9528 ld_shlibs=no
9529 fi
9530 ;;
9531 esac
9532
9533 if test "$ld_shlibs" = no; then
9534 runpath_var=
9535 hardcode_libdir_flag_spec=
9536 export_dynamic_flag_spec=
9537 whole_archive_flag_spec=
9538 fi
9539 else
9540 # PORTME fill in a description of your system's linker (not GNU ld)
9541 case $host_os in
9542 aix3*)
9543 allow_undefined_flag=unsupported
9544 always_export_symbols=yes
9545 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'
9546 # Note: this linker hardcodes the directories in LIBPATH if there
9547 # are no directories specified by -L.
9548 hardcode_minus_L=yes
9549 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9550 # Neither direct hardcoding nor static linking is supported with a
9551 # broken collect2.
9552 hardcode_direct=unsupported
9553 fi
9554 ;;
9555
9556 aix[4-9]*)
9557 if test "$host_cpu" = ia64; then
9558 # On IA64, the linker does run time linking by default, so we don't
9559 # have to do anything special.
9560 aix_use_runtimelinking=no
9561 exp_sym_flag='-Bexport'
9562 no_entry_flag=""
9563 else
9564 # If we're using GNU nm, then we don't want the "-C" option.
9565 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9566 # Also, AIX nm treats weak defined symbols like other global
9567 # defined symbols, whereas GNU nm marks them as "W".
9568 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9569 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'
9570 else
9571 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'
9572 fi
9573 aix_use_runtimelinking=no
9574
9575 # Test if we are trying to use run time linking or normal
9576 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9577 # need to do runtime linking.
9578 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9579 for ld_flag in $LDFLAGS; do
9580 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9581 aix_use_runtimelinking=yes
9582 break
9583 fi
9584 done
9585 ;;
9586 esac
9587
9588 exp_sym_flag='-bexport'
9589 no_entry_flag='-bnoentry'
9590 fi
9591
9592 # When large executables or shared objects are built, AIX ld can
9593 # have problems creating the table of contents. If linking a library
9594 # or program results in "error TOC overflow" add -mminimal-toc to
9595 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9596 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9597
9598 archive_cmds=''
9599 hardcode_direct=yes
9600 hardcode_direct_absolute=yes
9601 hardcode_libdir_separator=':'
9602 link_all_deplibs=yes
9603 file_list_spec='${wl}-f,'
9604
9605 if test "$GCC" = yes; then
9606 case $host_os in aix4.[012]|aix4.[012].*)
9607 # We only want to do this on AIX 4.2 and lower, the check
9608 # below for broken collect2 doesn't work under 4.3+
9609 collect2name=`${CC} -print-prog-name=collect2`
9610 if test -f "$collect2name" &&
9611 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9612 then
9613 # We have reworked collect2
9614 :
9615 else
9616 # We have old collect2
9617 hardcode_direct=unsupported
9618 # It fails to find uninstalled libraries when the uninstalled
9619 # path is not listed in the libpath. Setting hardcode_minus_L
9620 # to unsupported forces relinking
9621 hardcode_minus_L=yes
9622 hardcode_libdir_flag_spec='-L$libdir'
9623 hardcode_libdir_separator=
9624 fi
9625 ;;
9626 esac
9627 shared_flag='-shared'
9628 if test "$aix_use_runtimelinking" = yes; then
9629 shared_flag="$shared_flag "'${wl}-G'
9630 fi
9631 else
9632 # not using gcc
9633 if test "$host_cpu" = ia64; then
9634 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9635 # chokes on -Wl,-G. The following line is correct:
9636 shared_flag='-G'
9637 else
9638 if test "$aix_use_runtimelinking" = yes; then
9639 shared_flag='${wl}-G'
9640 else
9641 shared_flag='${wl}-bM:SRE'
9642 fi
9643 fi
9644 fi
9645
9646 export_dynamic_flag_spec='${wl}-bexpall'
9647 # It seems that -bexpall does not export symbols beginning with
9648 # underscore (_), so it is better to generate a list of symbols to export.
9649 always_export_symbols=yes
9650 if test "$aix_use_runtimelinking" = yes; then
9651 # Warning - without using the other runtime loading flags (-brtl),
9652 # -berok will link without error, but may produce a broken library.
9653 allow_undefined_flag='-berok'
9654 # Determine the default libpath from the value encoded in an
9655 # empty executable.
9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657 /* end confdefs.h. */
9658
9659 int
9660 main ()
9661 {
9662
9663 ;
9664 return 0;
9665 }
9666 _ACEOF
9667 if ac_fn_c_try_link "$LINENO"; then :
9668
9669 lt_aix_libpath_sed='
9670 /Import File Strings/,/^$/ {
9671 /^0/ {
9672 s/^0 *\(.*\)$/\1/
9673 p
9674 }
9675 }'
9676 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9677 # Check for a 64-bit object if we didn't find anything.
9678 if test -z "$aix_libpath"; then
9679 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9680 fi
9681 fi
9682 rm -f core conftest.err conftest.$ac_objext \
9683 conftest$ac_exeext conftest.$ac_ext
9684 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9685
9686 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9687 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"
9688 else
9689 if test "$host_cpu" = ia64; then
9690 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9691 allow_undefined_flag="-z nodefs"
9692 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"
9693 else
9694 # Determine the default libpath from the value encoded in an
9695 # empty executable.
9696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9697 /* end confdefs.h. */
9698
9699 int
9700 main ()
9701 {
9702
9703 ;
9704 return 0;
9705 }
9706 _ACEOF
9707 if ac_fn_c_try_link "$LINENO"; then :
9708
9709 lt_aix_libpath_sed='
9710 /Import File Strings/,/^$/ {
9711 /^0/ {
9712 s/^0 *\(.*\)$/\1/
9713 p
9714 }
9715 }'
9716 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9717 # Check for a 64-bit object if we didn't find anything.
9718 if test -z "$aix_libpath"; then
9719 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9720 fi
9721 fi
9722 rm -f core conftest.err conftest.$ac_objext \
9723 conftest$ac_exeext conftest.$ac_ext
9724 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9725
9726 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9727 # Warning - without using the other run time loading flags,
9728 # -berok will link without error, but may produce a broken library.
9729 no_undefined_flag=' ${wl}-bernotok'
9730 allow_undefined_flag=' ${wl}-berok'
9731 if test "$with_gnu_ld" = yes; then
9732 # We only use this code for GNU lds that support --whole-archive.
9733 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9734 else
9735 # Exported symbols can be pulled into shared objects from archives
9736 whole_archive_flag_spec='$convenience'
9737 fi
9738 archive_cmds_need_lc=yes
9739 # This is similar to how AIX traditionally builds its shared libraries.
9740 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'
9741 fi
9742 fi
9743 ;;
9744
9745 amigaos*)
9746 case $host_cpu in
9747 powerpc)
9748 # see comment about AmigaOS4 .so support
9749 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9750 archive_expsym_cmds=''
9751 ;;
9752 m68k)
9753 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)'
9754 hardcode_libdir_flag_spec='-L$libdir'
9755 hardcode_minus_L=yes
9756 ;;
9757 esac
9758 ;;
9759
9760 bsdi[45]*)
9761 export_dynamic_flag_spec=-rdynamic
9762 ;;
9763
9764 cygwin* | mingw* | pw32* | cegcc*)
9765 # When not using gcc, we currently assume that we are using
9766 # Microsoft Visual C++.
9767 # hardcode_libdir_flag_spec is actually meaningless, as there is
9768 # no search path for DLLs.
9769 hardcode_libdir_flag_spec=' '
9770 allow_undefined_flag=unsupported
9771 # Tell ltmain to make .lib files, not .a files.
9772 libext=lib
9773 # Tell ltmain to make .dll files, not .so files.
9774 shrext_cmds=".dll"
9775 # FIXME: Setting linknames here is a bad hack.
9776 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9777 # The linker will automatically build a .lib file if we build a DLL.
9778 old_archive_from_new_cmds='true'
9779 # FIXME: Should let the user specify the lib program.
9780 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9781 fix_srcfile_path='`cygpath -w "$srcfile"`'
9782 enable_shared_with_static_runtimes=yes
9783 ;;
9784
9785 darwin* | rhapsody*)
9786
9787
9788 archive_cmds_need_lc=no
9789 hardcode_direct=no
9790 hardcode_automatic=yes
9791 hardcode_shlibpath_var=unsupported
9792 if test "$lt_cv_ld_force_load" = "yes"; then
9793 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\"`'
9794 else
9795 whole_archive_flag_spec=''
9796 fi
9797 link_all_deplibs=yes
9798 allow_undefined_flag="$_lt_dar_allow_undefined"
9799 case $cc_basename in
9800 ifort*) _lt_dar_can_shared=yes ;;
9801 *) _lt_dar_can_shared=$GCC ;;
9802 esac
9803 if test "$_lt_dar_can_shared" = "yes"; then
9804 output_verbose_link_cmd=func_echo_all
9805 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9806 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9807 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}"
9808 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}"
9809
9810 else
9811 ld_shlibs=no
9812 fi
9813
9814 ;;
9815
9816 dgux*)
9817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9818 hardcode_libdir_flag_spec='-L$libdir'
9819 hardcode_shlibpath_var=no
9820 ;;
9821
9822 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9823 # support. Future versions do this automatically, but an explicit c++rt0.o
9824 # does not break anything, and helps significantly (at the cost of a little
9825 # extra space).
9826 freebsd2.2*)
9827 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9828 hardcode_libdir_flag_spec='-R$libdir'
9829 hardcode_direct=yes
9830 hardcode_shlibpath_var=no
9831 ;;
9832
9833 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9834 freebsd2.*)
9835 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9836 hardcode_direct=yes
9837 hardcode_minus_L=yes
9838 hardcode_shlibpath_var=no
9839 ;;
9840
9841 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9842 freebsd* | dragonfly*)
9843 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9844 hardcode_libdir_flag_spec='-R$libdir'
9845 hardcode_direct=yes
9846 hardcode_shlibpath_var=no
9847 ;;
9848
9849 hpux9*)
9850 if test "$GCC" = yes; then
9851 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'
9852 else
9853 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'
9854 fi
9855 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9856 hardcode_libdir_separator=:
9857 hardcode_direct=yes
9858
9859 # hardcode_minus_L: Not really in the search PATH,
9860 # but as the default location of the library.
9861 hardcode_minus_L=yes
9862 export_dynamic_flag_spec='${wl}-E'
9863 ;;
9864
9865 hpux10*)
9866 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9867 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9868 else
9869 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9870 fi
9871 if test "$with_gnu_ld" = no; then
9872 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9873 hardcode_libdir_flag_spec_ld='+b $libdir'
9874 hardcode_libdir_separator=:
9875 hardcode_direct=yes
9876 hardcode_direct_absolute=yes
9877 export_dynamic_flag_spec='${wl}-E'
9878 # hardcode_minus_L: Not really in the search PATH,
9879 # but as the default location of the library.
9880 hardcode_minus_L=yes
9881 fi
9882 ;;
9883
9884 hpux11*)
9885 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9886 case $host_cpu in
9887 hppa*64*)
9888 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9889 ;;
9890 ia64*)
9891 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9892 ;;
9893 *)
9894 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9895 ;;
9896 esac
9897 else
9898 case $host_cpu in
9899 hppa*64*)
9900 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9901 ;;
9902 ia64*)
9903 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9904 ;;
9905 *)
9906
9907 # Older versions of the 11.00 compiler do not understand -b yet
9908 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9910 $as_echo_n "checking if $CC understands -b... " >&6; }
9911 if ${lt_cv_prog_compiler__b+:} false; then :
9912 $as_echo_n "(cached) " >&6
9913 else
9914 lt_cv_prog_compiler__b=no
9915 save_LDFLAGS="$LDFLAGS"
9916 LDFLAGS="$LDFLAGS -b"
9917 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9918 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9919 # The linker can only warn and ignore the option if not recognized
9920 # So say no if there are warnings
9921 if test -s conftest.err; then
9922 # Append any errors to the config.log.
9923 cat conftest.err 1>&5
9924 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9925 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9926 if diff conftest.exp conftest.er2 >/dev/null; then
9927 lt_cv_prog_compiler__b=yes
9928 fi
9929 else
9930 lt_cv_prog_compiler__b=yes
9931 fi
9932 fi
9933 $RM -r conftest*
9934 LDFLAGS="$save_LDFLAGS"
9935
9936 fi
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9938 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9939
9940 if test x"$lt_cv_prog_compiler__b" = xyes; then
9941 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9942 else
9943 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9944 fi
9945
9946 ;;
9947 esac
9948 fi
9949 if test "$with_gnu_ld" = no; then
9950 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9951 hardcode_libdir_separator=:
9952
9953 case $host_cpu in
9954 hppa*64*|ia64*)
9955 hardcode_direct=no
9956 hardcode_shlibpath_var=no
9957 ;;
9958 *)
9959 hardcode_direct=yes
9960 hardcode_direct_absolute=yes
9961 export_dynamic_flag_spec='${wl}-E'
9962
9963 # hardcode_minus_L: Not really in the search PATH,
9964 # but as the default location of the library.
9965 hardcode_minus_L=yes
9966 ;;
9967 esac
9968 fi
9969 ;;
9970
9971 irix5* | irix6* | nonstopux*)
9972 if test "$GCC" = yes; then
9973 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'
9974 # Try to use the -exported_symbol ld option, if it does not
9975 # work, assume that -exports_file does not work either and
9976 # implicitly export all symbols.
9977 save_LDFLAGS="$LDFLAGS"
9978 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9980 /* end confdefs.h. */
9981 int foo(void) {}
9982 _ACEOF
9983 if ac_fn_c_try_link "$LINENO"; then :
9984 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'
9985
9986 fi
9987 rm -f core conftest.err conftest.$ac_objext \
9988 conftest$ac_exeext conftest.$ac_ext
9989 LDFLAGS="$save_LDFLAGS"
9990 else
9991 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'
9992 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'
9993 fi
9994 archive_cmds_need_lc='no'
9995 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9996 hardcode_libdir_separator=:
9997 inherit_rpath=yes
9998 link_all_deplibs=yes
9999 ;;
10000
10001 netbsd*)
10002 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10003 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10004 else
10005 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10006 fi
10007 hardcode_libdir_flag_spec='-R$libdir'
10008 hardcode_direct=yes
10009 hardcode_shlibpath_var=no
10010 ;;
10011
10012 newsos6)
10013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10014 hardcode_direct=yes
10015 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10016 hardcode_libdir_separator=:
10017 hardcode_shlibpath_var=no
10018 ;;
10019
10020 *nto* | *qnx*)
10021 ;;
10022
10023 openbsd*)
10024 if test -f /usr/libexec/ld.so; then
10025 hardcode_direct=yes
10026 hardcode_shlibpath_var=no
10027 hardcode_direct_absolute=yes
10028 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10029 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10030 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10031 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10032 export_dynamic_flag_spec='${wl}-E'
10033 else
10034 case $host_os in
10035 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10036 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10037 hardcode_libdir_flag_spec='-R$libdir'
10038 ;;
10039 *)
10040 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10041 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10042 ;;
10043 esac
10044 fi
10045 else
10046 ld_shlibs=no
10047 fi
10048 ;;
10049
10050 os2*)
10051 hardcode_libdir_flag_spec='-L$libdir'
10052 hardcode_minus_L=yes
10053 allow_undefined_flag=unsupported
10054 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'
10055 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10056 ;;
10057
10058 osf3*)
10059 if test "$GCC" = yes; then
10060 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10061 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'
10062 else
10063 allow_undefined_flag=' -expect_unresolved \*'
10064 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'
10065 fi
10066 archive_cmds_need_lc='no'
10067 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10068 hardcode_libdir_separator=:
10069 ;;
10070
10071 osf4* | osf5*) # as osf3* with the addition of -msym flag
10072 if test "$GCC" = yes; then
10073 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10074 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'
10075 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10076 else
10077 allow_undefined_flag=' -expect_unresolved \*'
10078 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'
10079 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~
10080 $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'
10081
10082 # Both c and cxx compiler support -rpath directly
10083 hardcode_libdir_flag_spec='-rpath $libdir'
10084 fi
10085 archive_cmds_need_lc='no'
10086 hardcode_libdir_separator=:
10087 ;;
10088
10089 solaris*)
10090 no_undefined_flag=' -z defs'
10091 if test "$GCC" = yes; then
10092 wlarc='${wl}'
10093 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10094 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10095 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10096 else
10097 case `$CC -V 2>&1` in
10098 *"Compilers 5.0"*)
10099 wlarc=''
10100 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10101 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10102 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10103 ;;
10104 *)
10105 wlarc='${wl}'
10106 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10107 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10108 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10109 ;;
10110 esac
10111 fi
10112 hardcode_libdir_flag_spec='-R$libdir'
10113 hardcode_shlibpath_var=no
10114 case $host_os in
10115 solaris2.[0-5] | solaris2.[0-5].*) ;;
10116 *)
10117 # The compiler driver will combine and reorder linker options,
10118 # but understands `-z linker_flag'. GCC discards it without `$wl',
10119 # but is careful enough not to reorder.
10120 # Supported since Solaris 2.6 (maybe 2.5.1?)
10121 if test "$GCC" = yes; then
10122 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10123 else
10124 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10125 fi
10126 ;;
10127 esac
10128 link_all_deplibs=yes
10129 ;;
10130
10131 sunos4*)
10132 if test "x$host_vendor" = xsequent; then
10133 # Use $CC to link under sequent, because it throws in some extra .o
10134 # files that make .init and .fini sections work.
10135 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10136 else
10137 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10138 fi
10139 hardcode_libdir_flag_spec='-L$libdir'
10140 hardcode_direct=yes
10141 hardcode_minus_L=yes
10142 hardcode_shlibpath_var=no
10143 ;;
10144
10145 sysv4)
10146 case $host_vendor in
10147 sni)
10148 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10149 hardcode_direct=yes # is this really true???
10150 ;;
10151 siemens)
10152 ## LD is ld it makes a PLAMLIB
10153 ## CC just makes a GrossModule.
10154 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10155 reload_cmds='$CC -r -o $output$reload_objs'
10156 hardcode_direct=no
10157 ;;
10158 motorola)
10159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10160 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10161 ;;
10162 esac
10163 runpath_var='LD_RUN_PATH'
10164 hardcode_shlibpath_var=no
10165 ;;
10166
10167 sysv4.3*)
10168 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10169 hardcode_shlibpath_var=no
10170 export_dynamic_flag_spec='-Bexport'
10171 ;;
10172
10173 sysv4*MP*)
10174 if test -d /usr/nec; then
10175 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10176 hardcode_shlibpath_var=no
10177 runpath_var=LD_RUN_PATH
10178 hardcode_runpath_var=yes
10179 ld_shlibs=yes
10180 fi
10181 ;;
10182
10183 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10184 no_undefined_flag='${wl}-z,text'
10185 archive_cmds_need_lc=no
10186 hardcode_shlibpath_var=no
10187 runpath_var='LD_RUN_PATH'
10188
10189 if test "$GCC" = yes; then
10190 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10191 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10192 else
10193 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10194 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10195 fi
10196 ;;
10197
10198 sysv5* | sco3.2v5* | sco5v6*)
10199 # Note: We can NOT use -z defs as we might desire, because we do not
10200 # link with -lc, and that would cause any symbols used from libc to
10201 # always be unresolved, which means just about no library would
10202 # ever link correctly. If we're not using GNU ld we use -z text
10203 # though, which does catch some bad symbols but isn't as heavy-handed
10204 # as -z defs.
10205 no_undefined_flag='${wl}-z,text'
10206 allow_undefined_flag='${wl}-z,nodefs'
10207 archive_cmds_need_lc=no
10208 hardcode_shlibpath_var=no
10209 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10210 hardcode_libdir_separator=':'
10211 link_all_deplibs=yes
10212 export_dynamic_flag_spec='${wl}-Bexport'
10213 runpath_var='LD_RUN_PATH'
10214
10215 if test "$GCC" = yes; then
10216 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10217 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218 else
10219 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10220 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10221 fi
10222 ;;
10223
10224 uts4*)
10225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10226 hardcode_libdir_flag_spec='-L$libdir'
10227 hardcode_shlibpath_var=no
10228 ;;
10229
10230 *)
10231 ld_shlibs=no
10232 ;;
10233 esac
10234
10235 if test x$host_vendor = xsni; then
10236 case $host in
10237 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10238 export_dynamic_flag_spec='${wl}-Blargedynsym'
10239 ;;
10240 esac
10241 fi
10242 fi
10243
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10245 $as_echo "$ld_shlibs" >&6; }
10246 test "$ld_shlibs" = no && can_build_shared=no
10247
10248 with_gnu_ld=$with_gnu_ld
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264 #
10265 # Do we need to explicitly link libc?
10266 #
10267 case "x$archive_cmds_need_lc" in
10268 x|xyes)
10269 # Assume -lc should be added
10270 archive_cmds_need_lc=yes
10271
10272 if test "$enable_shared" = yes && test "$GCC" = yes; then
10273 case $archive_cmds in
10274 *'~'*)
10275 # FIXME: we may have to deal with multi-command sequences.
10276 ;;
10277 '$CC '*)
10278 # Test whether the compiler implicitly links with -lc since on some
10279 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10280 # to ld, don't add -lc before -lgcc.
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10282 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10283 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10284 $as_echo_n "(cached) " >&6
10285 else
10286 $RM conftest*
10287 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10288
10289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10290 (eval $ac_compile) 2>&5
10291 ac_status=$?
10292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10293 test $ac_status = 0; } 2>conftest.err; then
10294 soname=conftest
10295 lib=conftest
10296 libobjs=conftest.$ac_objext
10297 deplibs=
10298 wl=$lt_prog_compiler_wl
10299 pic_flag=$lt_prog_compiler_pic
10300 compiler_flags=-v
10301 linker_flags=-v
10302 verstring=
10303 output_objdir=.
10304 libname=conftest
10305 lt_save_allow_undefined_flag=$allow_undefined_flag
10306 allow_undefined_flag=
10307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10308 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10309 ac_status=$?
10310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10311 test $ac_status = 0; }
10312 then
10313 lt_cv_archive_cmds_need_lc=no
10314 else
10315 lt_cv_archive_cmds_need_lc=yes
10316 fi
10317 allow_undefined_flag=$lt_save_allow_undefined_flag
10318 else
10319 cat conftest.err 1>&5
10320 fi
10321 $RM conftest*
10322
10323 fi
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10325 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10326 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10327 ;;
10328 esac
10329 fi
10330 ;;
10331 esac
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10490 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10491
10492 if test "$GCC" = yes; then
10493 case $host_os in
10494 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10495 *) lt_awk_arg="/^libraries:/" ;;
10496 esac
10497 case $host_os in
10498 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10499 *) lt_sed_strip_eq="s,=/,/,g" ;;
10500 esac
10501 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10502 case $lt_search_path_spec in
10503 *\;*)
10504 # if the path contains ";" then we assume it to be the separator
10505 # otherwise default to the standard path separator (i.e. ":") - it is
10506 # assumed that no part of a normal pathname contains ";" but that should
10507 # okay in the real world where ";" in dirpaths is itself problematic.
10508 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10509 ;;
10510 *)
10511 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10512 ;;
10513 esac
10514 # Ok, now we have the path, separated by spaces, we can step through it
10515 # and add multilib dir if necessary.
10516 lt_tmp_lt_search_path_spec=
10517 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10518 for lt_sys_path in $lt_search_path_spec; do
10519 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10520 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10521 else
10522 test -d "$lt_sys_path" && \
10523 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10524 fi
10525 done
10526 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10527 BEGIN {RS=" "; FS="/|\n";} {
10528 lt_foo="";
10529 lt_count=0;
10530 for (lt_i = NF; lt_i > 0; lt_i--) {
10531 if ($lt_i != "" && $lt_i != ".") {
10532 if ($lt_i == "..") {
10533 lt_count++;
10534 } else {
10535 if (lt_count == 0) {
10536 lt_foo="/" $lt_i lt_foo;
10537 } else {
10538 lt_count--;
10539 }
10540 }
10541 }
10542 }
10543 if (lt_foo != "") { lt_freq[lt_foo]++; }
10544 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10545 }'`
10546 # AWK program above erroneously prepends '/' to C:/dos/paths
10547 # for these hosts.
10548 case $host_os in
10549 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10550 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10551 esac
10552 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10553 else
10554 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10555 fi
10556 library_names_spec=
10557 libname_spec='lib$name'
10558 soname_spec=
10559 shrext_cmds=".so"
10560 postinstall_cmds=
10561 postuninstall_cmds=
10562 finish_cmds=
10563 finish_eval=
10564 shlibpath_var=
10565 shlibpath_overrides_runpath=unknown
10566 version_type=none
10567 dynamic_linker="$host_os ld.so"
10568 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10569 need_lib_prefix=unknown
10570 hardcode_into_libs=no
10571
10572 # when you set need_version to no, make sure it does not cause -set_version
10573 # flags to be left without arguments
10574 need_version=unknown
10575
10576 case $host_os in
10577 aix3*)
10578 version_type=linux
10579 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10580 shlibpath_var=LIBPATH
10581
10582 # AIX 3 has no versioning support, so we append a major version to the name.
10583 soname_spec='${libname}${release}${shared_ext}$major'
10584 ;;
10585
10586 aix[4-9]*)
10587 version_type=linux
10588 need_lib_prefix=no
10589 need_version=no
10590 hardcode_into_libs=yes
10591 if test "$host_cpu" = ia64; then
10592 # AIX 5 supports IA64
10593 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10594 shlibpath_var=LD_LIBRARY_PATH
10595 else
10596 # With GCC up to 2.95.x, collect2 would create an import file
10597 # for dependence libraries. The import file would start with
10598 # the line `#! .'. This would cause the generated library to
10599 # depend on `.', always an invalid library. This was fixed in
10600 # development snapshots of GCC prior to 3.0.
10601 case $host_os in
10602 aix4 | aix4.[01] | aix4.[01].*)
10603 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10604 echo ' yes '
10605 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10606 :
10607 else
10608 can_build_shared=no
10609 fi
10610 ;;
10611 esac
10612 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10613 # soname into executable. Probably we can add versioning support to
10614 # collect2, so additional links can be useful in future.
10615 if test "$aix_use_runtimelinking" = yes; then
10616 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10617 # instead of lib<name>.a to let people know that these are not
10618 # typical AIX shared libraries.
10619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10620 else
10621 # We preserve .a as extension for shared libraries through AIX4.2
10622 # and later when we are not doing run time linking.
10623 library_names_spec='${libname}${release}.a $libname.a'
10624 soname_spec='${libname}${release}${shared_ext}$major'
10625 fi
10626 shlibpath_var=LIBPATH
10627 fi
10628 ;;
10629
10630 amigaos*)
10631 case $host_cpu in
10632 powerpc)
10633 # Since July 2007 AmigaOS4 officially supports .so libraries.
10634 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10636 ;;
10637 m68k)
10638 library_names_spec='$libname.ixlibrary $libname.a'
10639 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10640 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'
10641 ;;
10642 esac
10643 ;;
10644
10645 beos*)
10646 library_names_spec='${libname}${shared_ext}'
10647 dynamic_linker="$host_os ld.so"
10648 shlibpath_var=LIBRARY_PATH
10649 ;;
10650
10651 bsdi[45]*)
10652 version_type=linux
10653 need_version=no
10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655 soname_spec='${libname}${release}${shared_ext}$major'
10656 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10657 shlibpath_var=LD_LIBRARY_PATH
10658 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10659 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10660 # the default ld.so.conf also contains /usr/contrib/lib and
10661 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10662 # libtool to hard-code these into programs
10663 ;;
10664
10665 cygwin* | mingw* | pw32* | cegcc*)
10666 version_type=windows
10667 shrext_cmds=".dll"
10668 need_version=no
10669 need_lib_prefix=no
10670
10671 case $GCC,$host_os in
10672 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10673 library_names_spec='$libname.dll.a'
10674 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10675 postinstall_cmds='base_file=`basename \${file}`~
10676 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10677 dldir=$destdir/`dirname \$dlpath`~
10678 test -d \$dldir || mkdir -p \$dldir~
10679 $install_prog $dir/$dlname \$dldir/$dlname~
10680 chmod a+x \$dldir/$dlname~
10681 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10682 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10683 fi'
10684 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10685 dlpath=$dir/\$dldll~
10686 $RM \$dlpath'
10687 shlibpath_overrides_runpath=yes
10688
10689 case $host_os in
10690 cygwin*)
10691 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10692 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10693
10694 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10695 ;;
10696 mingw* | cegcc*)
10697 # MinGW DLLs use traditional 'lib' prefix
10698 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10699 ;;
10700 pw32*)
10701 # pw32 DLLs use 'pw' prefix rather than 'lib'
10702 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10703 ;;
10704 esac
10705 ;;
10706
10707 *)
10708 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10709 ;;
10710 esac
10711 dynamic_linker='Win32 ld.exe'
10712 # FIXME: first we should search . and the directory the executable is in
10713 shlibpath_var=PATH
10714 ;;
10715
10716 darwin* | rhapsody*)
10717 dynamic_linker="$host_os dyld"
10718 version_type=darwin
10719 need_lib_prefix=no
10720 need_version=no
10721 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10722 soname_spec='${libname}${release}${major}$shared_ext'
10723 shlibpath_overrides_runpath=yes
10724 shlibpath_var=DYLD_LIBRARY_PATH
10725 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10726
10727 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10728 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10729 ;;
10730
10731 dgux*)
10732 version_type=linux
10733 need_lib_prefix=no
10734 need_version=no
10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10736 soname_spec='${libname}${release}${shared_ext}$major'
10737 shlibpath_var=LD_LIBRARY_PATH
10738 ;;
10739
10740 freebsd* | dragonfly*)
10741 # DragonFly does not have aout. When/if they implement a new
10742 # versioning mechanism, adjust this.
10743 if test -x /usr/bin/objformat; then
10744 objformat=`/usr/bin/objformat`
10745 else
10746 case $host_os in
10747 freebsd[23].*) objformat=aout ;;
10748 *) objformat=elf ;;
10749 esac
10750 fi
10751 version_type=freebsd-$objformat
10752 case $version_type in
10753 freebsd-elf*)
10754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10755 need_version=no
10756 need_lib_prefix=no
10757 ;;
10758 freebsd-*)
10759 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10760 need_version=yes
10761 ;;
10762 esac
10763 shlibpath_var=LD_LIBRARY_PATH
10764 case $host_os in
10765 freebsd2.*)
10766 shlibpath_overrides_runpath=yes
10767 ;;
10768 freebsd3.[01]* | freebsdelf3.[01]*)
10769 shlibpath_overrides_runpath=yes
10770 hardcode_into_libs=yes
10771 ;;
10772 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10773 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10774 shlibpath_overrides_runpath=no
10775 hardcode_into_libs=yes
10776 ;;
10777 *) # from 4.6 on, and DragonFly
10778 shlibpath_overrides_runpath=yes
10779 hardcode_into_libs=yes
10780 ;;
10781 esac
10782 ;;
10783
10784 haiku*)
10785 version_type=linux
10786 need_lib_prefix=no
10787 need_version=no
10788 dynamic_linker="$host_os runtime_loader"
10789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10790 soname_spec='${libname}${release}${shared_ext}$major'
10791 shlibpath_var=LIBRARY_PATH
10792 shlibpath_overrides_runpath=yes
10793 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10794 hardcode_into_libs=yes
10795 ;;
10796
10797 hpux9* | hpux10* | hpux11*)
10798 # Give a soname corresponding to the major version so that dld.sl refuses to
10799 # link against other versions.
10800 version_type=sunos
10801 need_lib_prefix=no
10802 need_version=no
10803 case $host_cpu in
10804 ia64*)
10805 shrext_cmds='.so'
10806 hardcode_into_libs=yes
10807 dynamic_linker="$host_os dld.so"
10808 shlibpath_var=LD_LIBRARY_PATH
10809 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10811 soname_spec='${libname}${release}${shared_ext}$major'
10812 if test "X$HPUX_IA64_MODE" = X32; then
10813 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10814 else
10815 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10816 fi
10817 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10818 ;;
10819 hppa*64*)
10820 shrext_cmds='.sl'
10821 hardcode_into_libs=yes
10822 dynamic_linker="$host_os dld.sl"
10823 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10824 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10826 soname_spec='${libname}${release}${shared_ext}$major'
10827 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10828 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10829 ;;
10830 *)
10831 shrext_cmds='.sl'
10832 dynamic_linker="$host_os dld.sl"
10833 shlibpath_var=SHLIB_PATH
10834 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10836 soname_spec='${libname}${release}${shared_ext}$major'
10837 ;;
10838 esac
10839 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10840 postinstall_cmds='chmod 555 $lib'
10841 # or fails outright, so override atomically:
10842 install_override_mode=555
10843 ;;
10844
10845 interix[3-9]*)
10846 version_type=linux
10847 need_lib_prefix=no
10848 need_version=no
10849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10850 soname_spec='${libname}${release}${shared_ext}$major'
10851 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10852 shlibpath_var=LD_LIBRARY_PATH
10853 shlibpath_overrides_runpath=no
10854 hardcode_into_libs=yes
10855 ;;
10856
10857 irix5* | irix6* | nonstopux*)
10858 case $host_os in
10859 nonstopux*) version_type=nonstopux ;;
10860 *)
10861 if test "$lt_cv_prog_gnu_ld" = yes; then
10862 version_type=linux
10863 else
10864 version_type=irix
10865 fi ;;
10866 esac
10867 need_lib_prefix=no
10868 need_version=no
10869 soname_spec='${libname}${release}${shared_ext}$major'
10870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10871 case $host_os in
10872 irix5* | nonstopux*)
10873 libsuff= shlibsuff=
10874 ;;
10875 *)
10876 case $LD in # libtool.m4 will add one of these switches to LD
10877 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10878 libsuff= shlibsuff= libmagic=32-bit;;
10879 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10880 libsuff=32 shlibsuff=N32 libmagic=N32;;
10881 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10882 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10883 *) libsuff= shlibsuff= libmagic=never-match;;
10884 esac
10885 ;;
10886 esac
10887 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10888 shlibpath_overrides_runpath=no
10889 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10890 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10891 hardcode_into_libs=yes
10892 ;;
10893
10894 # No shared lib support for Linux oldld, aout, or coff.
10895 linux*oldld* | linux*aout* | linux*coff*)
10896 dynamic_linker=no
10897 ;;
10898
10899 # This must be Linux ELF.
10900 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10901 version_type=linux
10902 need_lib_prefix=no
10903 need_version=no
10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10905 soname_spec='${libname}${release}${shared_ext}$major'
10906 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10907 shlibpath_var=LD_LIBRARY_PATH
10908 shlibpath_overrides_runpath=no
10909
10910 # Some binutils ld are patched to set DT_RUNPATH
10911 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10912 $as_echo_n "(cached) " >&6
10913 else
10914 lt_cv_shlibpath_overrides_runpath=no
10915 save_LDFLAGS=$LDFLAGS
10916 save_libdir=$libdir
10917 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10918 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10920 /* end confdefs.h. */
10921
10922 int
10923 main ()
10924 {
10925
10926 ;
10927 return 0;
10928 }
10929 _ACEOF
10930 if ac_fn_c_try_link "$LINENO"; then :
10931 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10932 lt_cv_shlibpath_overrides_runpath=yes
10933 fi
10934 fi
10935 rm -f core conftest.err conftest.$ac_objext \
10936 conftest$ac_exeext conftest.$ac_ext
10937 LDFLAGS=$save_LDFLAGS
10938 libdir=$save_libdir
10939
10940 fi
10941
10942 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10943
10944 # This implies no fast_install, which is unacceptable.
10945 # Some rework will be needed to allow for fast_install
10946 # before this can be enabled.
10947 hardcode_into_libs=yes
10948
10949 # Append ld.so.conf contents to the search path
10950 if test -f /etc/ld.so.conf; then
10951 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' ' '`
10952 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10953 fi
10954
10955 # We used to test for /lib/ld.so.1 and disable shared libraries on
10956 # powerpc, because MkLinux only supported shared libraries with the
10957 # GNU dynamic linker. Since this was broken with cross compilers,
10958 # most powerpc-linux boxes support dynamic linking these days and
10959 # people can always --disable-shared, the test was removed, and we
10960 # assume the GNU/Linux dynamic linker is in use.
10961 dynamic_linker='GNU/Linux ld.so'
10962 ;;
10963
10964 netbsd*)
10965 version_type=sunos
10966 need_lib_prefix=no
10967 need_version=no
10968 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10971 dynamic_linker='NetBSD (a.out) ld.so'
10972 else
10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10974 soname_spec='${libname}${release}${shared_ext}$major'
10975 dynamic_linker='NetBSD ld.elf_so'
10976 fi
10977 shlibpath_var=LD_LIBRARY_PATH
10978 shlibpath_overrides_runpath=yes
10979 hardcode_into_libs=yes
10980 ;;
10981
10982 newsos6)
10983 version_type=linux
10984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10985 shlibpath_var=LD_LIBRARY_PATH
10986 shlibpath_overrides_runpath=yes
10987 ;;
10988
10989 *nto* | *qnx*)
10990 version_type=qnx
10991 need_lib_prefix=no
10992 need_version=no
10993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10994 soname_spec='${libname}${release}${shared_ext}$major'
10995 shlibpath_var=LD_LIBRARY_PATH
10996 shlibpath_overrides_runpath=no
10997 hardcode_into_libs=yes
10998 dynamic_linker='ldqnx.so'
10999 ;;
11000
11001 openbsd*)
11002 version_type=sunos
11003 sys_lib_dlsearch_path_spec="/usr/lib"
11004 need_lib_prefix=no
11005 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11006 case $host_os in
11007 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11008 *) need_version=no ;;
11009 esac
11010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11012 shlibpath_var=LD_LIBRARY_PATH
11013 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11014 case $host_os in
11015 openbsd2.[89] | openbsd2.[89].*)
11016 shlibpath_overrides_runpath=no
11017 ;;
11018 *)
11019 shlibpath_overrides_runpath=yes
11020 ;;
11021 esac
11022 else
11023 shlibpath_overrides_runpath=yes
11024 fi
11025 ;;
11026
11027 os2*)
11028 libname_spec='$name'
11029 shrext_cmds=".dll"
11030 need_lib_prefix=no
11031 library_names_spec='$libname${shared_ext} $libname.a'
11032 dynamic_linker='OS/2 ld.exe'
11033 shlibpath_var=LIBPATH
11034 ;;
11035
11036 osf3* | osf4* | osf5*)
11037 version_type=osf
11038 need_lib_prefix=no
11039 need_version=no
11040 soname_spec='${libname}${release}${shared_ext}$major'
11041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042 shlibpath_var=LD_LIBRARY_PATH
11043 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11044 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11045 ;;
11046
11047 rdos*)
11048 dynamic_linker=no
11049 ;;
11050
11051 solaris*)
11052 version_type=linux
11053 need_lib_prefix=no
11054 need_version=no
11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11056 soname_spec='${libname}${release}${shared_ext}$major'
11057 shlibpath_var=LD_LIBRARY_PATH
11058 shlibpath_overrides_runpath=yes
11059 hardcode_into_libs=yes
11060 # ldd complains unless libraries are executable
11061 postinstall_cmds='chmod +x $lib'
11062 ;;
11063
11064 sunos4*)
11065 version_type=sunos
11066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11067 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11068 shlibpath_var=LD_LIBRARY_PATH
11069 shlibpath_overrides_runpath=yes
11070 if test "$with_gnu_ld" = yes; then
11071 need_lib_prefix=no
11072 fi
11073 need_version=yes
11074 ;;
11075
11076 sysv4 | sysv4.3*)
11077 version_type=linux
11078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11079 soname_spec='${libname}${release}${shared_ext}$major'
11080 shlibpath_var=LD_LIBRARY_PATH
11081 case $host_vendor in
11082 sni)
11083 shlibpath_overrides_runpath=no
11084 need_lib_prefix=no
11085 runpath_var=LD_RUN_PATH
11086 ;;
11087 siemens)
11088 need_lib_prefix=no
11089 ;;
11090 motorola)
11091 need_lib_prefix=no
11092 need_version=no
11093 shlibpath_overrides_runpath=no
11094 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11095 ;;
11096 esac
11097 ;;
11098
11099 sysv4*MP*)
11100 if test -d /usr/nec ;then
11101 version_type=linux
11102 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11103 soname_spec='$libname${shared_ext}.$major'
11104 shlibpath_var=LD_LIBRARY_PATH
11105 fi
11106 ;;
11107
11108 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11109 version_type=freebsd-elf
11110 need_lib_prefix=no
11111 need_version=no
11112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11113 soname_spec='${libname}${release}${shared_ext}$major'
11114 shlibpath_var=LD_LIBRARY_PATH
11115 shlibpath_overrides_runpath=yes
11116 hardcode_into_libs=yes
11117 if test "$with_gnu_ld" = yes; then
11118 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11119 else
11120 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11121 case $host_os in
11122 sco3.2v5*)
11123 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11124 ;;
11125 esac
11126 fi
11127 sys_lib_dlsearch_path_spec='/usr/lib'
11128 ;;
11129
11130 tpf*)
11131 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11132 version_type=linux
11133 need_lib_prefix=no
11134 need_version=no
11135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11136 shlibpath_var=LD_LIBRARY_PATH
11137 shlibpath_overrides_runpath=no
11138 hardcode_into_libs=yes
11139 ;;
11140
11141 uts4*)
11142 version_type=linux
11143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11144 soname_spec='${libname}${release}${shared_ext}$major'
11145 shlibpath_var=LD_LIBRARY_PATH
11146 ;;
11147
11148 *)
11149 dynamic_linker=no
11150 ;;
11151 esac
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11153 $as_echo "$dynamic_linker" >&6; }
11154 test "$dynamic_linker" = no && can_build_shared=no
11155
11156 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11157 if test "$GCC" = yes; then
11158 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11159 fi
11160
11161 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11162 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11163 fi
11164 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11165 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11166 fi
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11260 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11261 hardcode_action=
11262 if test -n "$hardcode_libdir_flag_spec" ||
11263 test -n "$runpath_var" ||
11264 test "X$hardcode_automatic" = "Xyes" ; then
11265
11266 # We can hardcode non-existent directories.
11267 if test "$hardcode_direct" != no &&
11268 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11269 # have to relink, otherwise we might link with an installed library
11270 # when we should be linking with a yet-to-be-installed one
11271 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11272 test "$hardcode_minus_L" != no; then
11273 # Linking always hardcodes the temporary library directory.
11274 hardcode_action=relink
11275 else
11276 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11277 hardcode_action=immediate
11278 fi
11279 else
11280 # We cannot hardcode anything, or else we can only hardcode existing
11281 # directories.
11282 hardcode_action=unsupported
11283 fi
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11285 $as_echo "$hardcode_action" >&6; }
11286
11287 if test "$hardcode_action" = relink ||
11288 test "$inherit_rpath" = yes; then
11289 # Fast installation is not supported
11290 enable_fast_install=no
11291 elif test "$shlibpath_overrides_runpath" = yes ||
11292 test "$enable_shared" = no; then
11293 # Fast installation is not necessary
11294 enable_fast_install=needless
11295 fi
11296
11297
11298
11299
11300
11301
11302 if test "x$enable_dlopen" != xyes; then
11303 enable_dlopen=unknown
11304 enable_dlopen_self=unknown
11305 enable_dlopen_self_static=unknown
11306 else
11307 lt_cv_dlopen=no
11308 lt_cv_dlopen_libs=
11309
11310 case $host_os in
11311 beos*)
11312 lt_cv_dlopen="load_add_on"
11313 lt_cv_dlopen_libs=
11314 lt_cv_dlopen_self=yes
11315 ;;
11316
11317 mingw* | pw32* | cegcc*)
11318 lt_cv_dlopen="LoadLibrary"
11319 lt_cv_dlopen_libs=
11320 ;;
11321
11322 cygwin*)
11323 lt_cv_dlopen="dlopen"
11324 lt_cv_dlopen_libs=
11325 ;;
11326
11327 darwin*)
11328 # if libdl is installed we need to link against it
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11330 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11331 if ${ac_cv_lib_dl_dlopen+:} false; then :
11332 $as_echo_n "(cached) " >&6
11333 else
11334 ac_check_lib_save_LIBS=$LIBS
11335 LIBS="-ldl $LIBS"
11336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11337 /* end confdefs.h. */
11338
11339 /* Override any GCC internal prototype to avoid an error.
11340 Use char because int might match the return type of a GCC
11341 builtin and then its argument prototype would still apply. */
11342 #ifdef __cplusplus
11343 extern "C"
11344 #endif
11345 char dlopen ();
11346 int
11347 main ()
11348 {
11349 return dlopen ();
11350 ;
11351 return 0;
11352 }
11353 _ACEOF
11354 if ac_fn_c_try_link "$LINENO"; then :
11355 ac_cv_lib_dl_dlopen=yes
11356 else
11357 ac_cv_lib_dl_dlopen=no
11358 fi
11359 rm -f core conftest.err conftest.$ac_objext \
11360 conftest$ac_exeext conftest.$ac_ext
11361 LIBS=$ac_check_lib_save_LIBS
11362 fi
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11364 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11365 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11366 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11367 else
11368
11369 lt_cv_dlopen="dyld"
11370 lt_cv_dlopen_libs=
11371 lt_cv_dlopen_self=yes
11372
11373 fi
11374
11375 ;;
11376
11377 *)
11378 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11379 if test "x$ac_cv_func_shl_load" = xyes; then :
11380 lt_cv_dlopen="shl_load"
11381 else
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11383 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11384 if ${ac_cv_lib_dld_shl_load+:} false; then :
11385 $as_echo_n "(cached) " >&6
11386 else
11387 ac_check_lib_save_LIBS=$LIBS
11388 LIBS="-ldld $LIBS"
11389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11390 /* end confdefs.h. */
11391
11392 /* Override any GCC internal prototype to avoid an error.
11393 Use char because int might match the return type of a GCC
11394 builtin and then its argument prototype would still apply. */
11395 #ifdef __cplusplus
11396 extern "C"
11397 #endif
11398 char shl_load ();
11399 int
11400 main ()
11401 {
11402 return shl_load ();
11403 ;
11404 return 0;
11405 }
11406 _ACEOF
11407 if ac_fn_c_try_link "$LINENO"; then :
11408 ac_cv_lib_dld_shl_load=yes
11409 else
11410 ac_cv_lib_dld_shl_load=no
11411 fi
11412 rm -f core conftest.err conftest.$ac_objext \
11413 conftest$ac_exeext conftest.$ac_ext
11414 LIBS=$ac_check_lib_save_LIBS
11415 fi
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11417 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11418 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11419 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11420 else
11421 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11422 if test "x$ac_cv_func_dlopen" = xyes; then :
11423 lt_cv_dlopen="dlopen"
11424 else
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11426 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11427 if ${ac_cv_lib_dl_dlopen+:} false; then :
11428 $as_echo_n "(cached) " >&6
11429 else
11430 ac_check_lib_save_LIBS=$LIBS
11431 LIBS="-ldl $LIBS"
11432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11433 /* end confdefs.h. */
11434
11435 /* Override any GCC internal prototype to avoid an error.
11436 Use char because int might match the return type of a GCC
11437 builtin and then its argument prototype would still apply. */
11438 #ifdef __cplusplus
11439 extern "C"
11440 #endif
11441 char dlopen ();
11442 int
11443 main ()
11444 {
11445 return dlopen ();
11446 ;
11447 return 0;
11448 }
11449 _ACEOF
11450 if ac_fn_c_try_link "$LINENO"; then :
11451 ac_cv_lib_dl_dlopen=yes
11452 else
11453 ac_cv_lib_dl_dlopen=no
11454 fi
11455 rm -f core conftest.err conftest.$ac_objext \
11456 conftest$ac_exeext conftest.$ac_ext
11457 LIBS=$ac_check_lib_save_LIBS
11458 fi
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11460 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11461 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11462 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11463 else
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11465 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11466 if ${ac_cv_lib_svld_dlopen+:} false; then :
11467 $as_echo_n "(cached) " >&6
11468 else
11469 ac_check_lib_save_LIBS=$LIBS
11470 LIBS="-lsvld $LIBS"
11471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472 /* end confdefs.h. */
11473
11474 /* Override any GCC internal prototype to avoid an error.
11475 Use char because int might match the return type of a GCC
11476 builtin and then its argument prototype would still apply. */
11477 #ifdef __cplusplus
11478 extern "C"
11479 #endif
11480 char dlopen ();
11481 int
11482 main ()
11483 {
11484 return dlopen ();
11485 ;
11486 return 0;
11487 }
11488 _ACEOF
11489 if ac_fn_c_try_link "$LINENO"; then :
11490 ac_cv_lib_svld_dlopen=yes
11491 else
11492 ac_cv_lib_svld_dlopen=no
11493 fi
11494 rm -f core conftest.err conftest.$ac_objext \
11495 conftest$ac_exeext conftest.$ac_ext
11496 LIBS=$ac_check_lib_save_LIBS
11497 fi
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11499 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11500 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11501 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11502 else
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11504 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11505 if ${ac_cv_lib_dld_dld_link+:} false; then :
11506 $as_echo_n "(cached) " >&6
11507 else
11508 ac_check_lib_save_LIBS=$LIBS
11509 LIBS="-ldld $LIBS"
11510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11511 /* end confdefs.h. */
11512
11513 /* Override any GCC internal prototype to avoid an error.
11514 Use char because int might match the return type of a GCC
11515 builtin and then its argument prototype would still apply. */
11516 #ifdef __cplusplus
11517 extern "C"
11518 #endif
11519 char dld_link ();
11520 int
11521 main ()
11522 {
11523 return dld_link ();
11524 ;
11525 return 0;
11526 }
11527 _ACEOF
11528 if ac_fn_c_try_link "$LINENO"; then :
11529 ac_cv_lib_dld_dld_link=yes
11530 else
11531 ac_cv_lib_dld_dld_link=no
11532 fi
11533 rm -f core conftest.err conftest.$ac_objext \
11534 conftest$ac_exeext conftest.$ac_ext
11535 LIBS=$ac_check_lib_save_LIBS
11536 fi
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11538 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11539 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11540 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11541 fi
11542
11543
11544 fi
11545
11546
11547 fi
11548
11549
11550 fi
11551
11552
11553 fi
11554
11555
11556 fi
11557
11558 ;;
11559 esac
11560
11561 if test "x$lt_cv_dlopen" != xno; then
11562 enable_dlopen=yes
11563 else
11564 enable_dlopen=no
11565 fi
11566
11567 case $lt_cv_dlopen in
11568 dlopen)
11569 save_CPPFLAGS="$CPPFLAGS"
11570 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11571
11572 save_LDFLAGS="$LDFLAGS"
11573 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11574
11575 save_LIBS="$LIBS"
11576 LIBS="$lt_cv_dlopen_libs $LIBS"
11577
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11579 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11580 if ${lt_cv_dlopen_self+:} false; then :
11581 $as_echo_n "(cached) " >&6
11582 else
11583 if test "$cross_compiling" = yes; then :
11584 lt_cv_dlopen_self=cross
11585 else
11586 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11587 lt_status=$lt_dlunknown
11588 cat > conftest.$ac_ext <<_LT_EOF
11589 #line 11589 "configure"
11590 #include "confdefs.h"
11591
11592 #if HAVE_DLFCN_H
11593 #include <dlfcn.h>
11594 #endif
11595
11596 #include <stdio.h>
11597
11598 #ifdef RTLD_GLOBAL
11599 # define LT_DLGLOBAL RTLD_GLOBAL
11600 #else
11601 # ifdef DL_GLOBAL
11602 # define LT_DLGLOBAL DL_GLOBAL
11603 # else
11604 # define LT_DLGLOBAL 0
11605 # endif
11606 #endif
11607
11608 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11609 find out it does not work in some platform. */
11610 #ifndef LT_DLLAZY_OR_NOW
11611 # ifdef RTLD_LAZY
11612 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11613 # else
11614 # ifdef DL_LAZY
11615 # define LT_DLLAZY_OR_NOW DL_LAZY
11616 # else
11617 # ifdef RTLD_NOW
11618 # define LT_DLLAZY_OR_NOW RTLD_NOW
11619 # else
11620 # ifdef DL_NOW
11621 # define LT_DLLAZY_OR_NOW DL_NOW
11622 # else
11623 # define LT_DLLAZY_OR_NOW 0
11624 # endif
11625 # endif
11626 # endif
11627 # endif
11628 #endif
11629
11630 /* When -fvisbility=hidden is used, assume the code has been annotated
11631 correspondingly for the symbols needed. */
11632 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11633 void fnord () __attribute__((visibility("default")));
11634 #endif
11635
11636 void fnord () { int i=42; }
11637 int main ()
11638 {
11639 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11640 int status = $lt_dlunknown;
11641
11642 if (self)
11643 {
11644 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11645 else
11646 {
11647 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11648 else puts (dlerror ());
11649 }
11650 /* dlclose (self); */
11651 }
11652 else
11653 puts (dlerror ());
11654
11655 return status;
11656 }
11657 _LT_EOF
11658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11659 (eval $ac_link) 2>&5
11660 ac_status=$?
11661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11662 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11663 (./conftest; exit; ) >&5 2>/dev/null
11664 lt_status=$?
11665 case x$lt_status in
11666 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11667 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11668 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11669 esac
11670 else :
11671 # compilation failed
11672 lt_cv_dlopen_self=no
11673 fi
11674 fi
11675 rm -fr conftest*
11676
11677
11678 fi
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11680 $as_echo "$lt_cv_dlopen_self" >&6; }
11681
11682 if test "x$lt_cv_dlopen_self" = xyes; then
11683 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11685 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11686 if ${lt_cv_dlopen_self_static+:} false; then :
11687 $as_echo_n "(cached) " >&6
11688 else
11689 if test "$cross_compiling" = yes; then :
11690 lt_cv_dlopen_self_static=cross
11691 else
11692 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11693 lt_status=$lt_dlunknown
11694 cat > conftest.$ac_ext <<_LT_EOF
11695 #line 11695 "configure"
11696 #include "confdefs.h"
11697
11698 #if HAVE_DLFCN_H
11699 #include <dlfcn.h>
11700 #endif
11701
11702 #include <stdio.h>
11703
11704 #ifdef RTLD_GLOBAL
11705 # define LT_DLGLOBAL RTLD_GLOBAL
11706 #else
11707 # ifdef DL_GLOBAL
11708 # define LT_DLGLOBAL DL_GLOBAL
11709 # else
11710 # define LT_DLGLOBAL 0
11711 # endif
11712 #endif
11713
11714 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11715 find out it does not work in some platform. */
11716 #ifndef LT_DLLAZY_OR_NOW
11717 # ifdef RTLD_LAZY
11718 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11719 # else
11720 # ifdef DL_LAZY
11721 # define LT_DLLAZY_OR_NOW DL_LAZY
11722 # else
11723 # ifdef RTLD_NOW
11724 # define LT_DLLAZY_OR_NOW RTLD_NOW
11725 # else
11726 # ifdef DL_NOW
11727 # define LT_DLLAZY_OR_NOW DL_NOW
11728 # else
11729 # define LT_DLLAZY_OR_NOW 0
11730 # endif
11731 # endif
11732 # endif
11733 # endif
11734 #endif
11735
11736 /* When -fvisbility=hidden is used, assume the code has been annotated
11737 correspondingly for the symbols needed. */
11738 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11739 void fnord () __attribute__((visibility("default")));
11740 #endif
11741
11742 void fnord () { int i=42; }
11743 int main ()
11744 {
11745 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11746 int status = $lt_dlunknown;
11747
11748 if (self)
11749 {
11750 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11751 else
11752 {
11753 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11754 else puts (dlerror ());
11755 }
11756 /* dlclose (self); */
11757 }
11758 else
11759 puts (dlerror ());
11760
11761 return status;
11762 }
11763 _LT_EOF
11764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11765 (eval $ac_link) 2>&5
11766 ac_status=$?
11767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11768 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11769 (./conftest; exit; ) >&5 2>/dev/null
11770 lt_status=$?
11771 case x$lt_status in
11772 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11773 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11774 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11775 esac
11776 else :
11777 # compilation failed
11778 lt_cv_dlopen_self_static=no
11779 fi
11780 fi
11781 rm -fr conftest*
11782
11783
11784 fi
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11786 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11787 fi
11788
11789 CPPFLAGS="$save_CPPFLAGS"
11790 LDFLAGS="$save_LDFLAGS"
11791 LIBS="$save_LIBS"
11792 ;;
11793 esac
11794
11795 case $lt_cv_dlopen_self in
11796 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11797 *) enable_dlopen_self=unknown ;;
11798 esac
11799
11800 case $lt_cv_dlopen_self_static in
11801 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11802 *) enable_dlopen_self_static=unknown ;;
11803 esac
11804 fi
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822 striplib=
11823 old_striplib=
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11825 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11826 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11827 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11828 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11830 $as_echo "yes" >&6; }
11831 else
11832 # FIXME - insert some real tests, host_os isn't really good enough
11833 case $host_os in
11834 darwin*)
11835 if test -n "$STRIP" ; then
11836 striplib="$STRIP -x"
11837 old_striplib="$STRIP -S"
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11839 $as_echo "yes" >&6; }
11840 else
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842 $as_echo "no" >&6; }
11843 fi
11844 ;;
11845 *)
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11847 $as_echo "no" >&6; }
11848 ;;
11849 esac
11850 fi
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863 # Report which library types will actually be built
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11865 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11867 $as_echo "$can_build_shared" >&6; }
11868
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11870 $as_echo_n "checking whether to build shared libraries... " >&6; }
11871 test "$can_build_shared" = "no" && enable_shared=no
11872
11873 # On AIX, shared libraries and static libraries use the same namespace, and
11874 # are all built from PIC.
11875 case $host_os in
11876 aix3*)
11877 test "$enable_shared" = yes && enable_static=no
11878 if test -n "$RANLIB"; then
11879 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11880 postinstall_cmds='$RANLIB $lib'
11881 fi
11882 ;;
11883
11884 aix[4-9]*)
11885 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11886 test "$enable_shared" = yes && enable_static=no
11887 fi
11888 ;;
11889 esac
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11891 $as_echo "$enable_shared" >&6; }
11892
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11894 $as_echo_n "checking whether to build static libraries... " >&6; }
11895 # Make sure either enable_shared or enable_static is yes.
11896 test "$enable_shared" = yes || enable_static=yes
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11898 $as_echo "$enable_static" >&6; }
11899
11900
11901
11902
11903 fi
11904 ac_ext=c
11905 ac_cpp='$CPP $CPPFLAGS'
11906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11909
11910 CC="$lt_save_CC"
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924 ac_config_commands="$ac_config_commands libtool"
11925
11926
11927
11928
11929 # Only expand once:
11930
11931
11932 # Check whether --enable-largefile was given.
11933 if test "${enable_largefile+set}" = set; then :
11934 enableval=$enable_largefile;
11935 fi
11936
11937 if test "$enable_largefile" != no; then
11938
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11940 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11941 if ${ac_cv_sys_largefile_CC+:} false; then :
11942 $as_echo_n "(cached) " >&6
11943 else
11944 ac_cv_sys_largefile_CC=no
11945 if test "$GCC" != yes; then
11946 ac_save_CC=$CC
11947 while :; do
11948 # IRIX 6.2 and later do not support large files by default,
11949 # so use the C compiler's -n32 option if that helps.
11950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11951 /* end confdefs.h. */
11952 #include <sys/types.h>
11953 /* Check that off_t can represent 2**63 - 1 correctly.
11954 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11955 since some C++ compilers masquerading as C compilers
11956 incorrectly reject 9223372036854775807. */
11957 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11958 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11959 && LARGE_OFF_T % 2147483647 == 1)
11960 ? 1 : -1];
11961 int
11962 main ()
11963 {
11964
11965 ;
11966 return 0;
11967 }
11968 _ACEOF
11969 if ac_fn_c_try_compile "$LINENO"; then :
11970 break
11971 fi
11972 rm -f core conftest.err conftest.$ac_objext
11973 CC="$CC -n32"
11974 if ac_fn_c_try_compile "$LINENO"; then :
11975 ac_cv_sys_largefile_CC=' -n32'; break
11976 fi
11977 rm -f core conftest.err conftest.$ac_objext
11978 break
11979 done
11980 CC=$ac_save_CC
11981 rm -f conftest.$ac_ext
11982 fi
11983 fi
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11985 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11986 if test "$ac_cv_sys_largefile_CC" != no; then
11987 CC=$CC$ac_cv_sys_largefile_CC
11988 fi
11989
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11991 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11992 if ${ac_cv_sys_file_offset_bits+:} false; then :
11993 $as_echo_n "(cached) " >&6
11994 else
11995 while :; do
11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h. */
11998 #include <sys/types.h>
11999 /* Check that off_t can represent 2**63 - 1 correctly.
12000 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12001 since some C++ compilers masquerading as C compilers
12002 incorrectly reject 9223372036854775807. */
12003 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12004 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12005 && LARGE_OFF_T % 2147483647 == 1)
12006 ? 1 : -1];
12007 int
12008 main ()
12009 {
12010
12011 ;
12012 return 0;
12013 }
12014 _ACEOF
12015 if ac_fn_c_try_compile "$LINENO"; then :
12016 ac_cv_sys_file_offset_bits=no; break
12017 fi
12018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 /* end confdefs.h. */
12021 #define _FILE_OFFSET_BITS 64
12022 #include <sys/types.h>
12023 /* Check that off_t can represent 2**63 - 1 correctly.
12024 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12025 since some C++ compilers masquerading as C compilers
12026 incorrectly reject 9223372036854775807. */
12027 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12028 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12029 && LARGE_OFF_T % 2147483647 == 1)
12030 ? 1 : -1];
12031 int
12032 main ()
12033 {
12034
12035 ;
12036 return 0;
12037 }
12038 _ACEOF
12039 if ac_fn_c_try_compile "$LINENO"; then :
12040 ac_cv_sys_file_offset_bits=64; break
12041 fi
12042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12043 ac_cv_sys_file_offset_bits=unknown
12044 break
12045 done
12046 fi
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12048 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12049 case $ac_cv_sys_file_offset_bits in #(
12050 no | unknown) ;;
12051 *)
12052 cat >>confdefs.h <<_ACEOF
12053 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12054 _ACEOF
12055 ;;
12056 esac
12057 rm -rf conftest*
12058 if test $ac_cv_sys_file_offset_bits = unknown; then
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12060 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12061 if ${ac_cv_sys_large_files+:} false; then :
12062 $as_echo_n "(cached) " >&6
12063 else
12064 while :; do
12065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066 /* end confdefs.h. */
12067 #include <sys/types.h>
12068 /* Check that off_t can represent 2**63 - 1 correctly.
12069 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12070 since some C++ compilers masquerading as C compilers
12071 incorrectly reject 9223372036854775807. */
12072 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12073 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12074 && LARGE_OFF_T % 2147483647 == 1)
12075 ? 1 : -1];
12076 int
12077 main ()
12078 {
12079
12080 ;
12081 return 0;
12082 }
12083 _ACEOF
12084 if ac_fn_c_try_compile "$LINENO"; then :
12085 ac_cv_sys_large_files=no; break
12086 fi
12087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089 /* end confdefs.h. */
12090 #define _LARGE_FILES 1
12091 #include <sys/types.h>
12092 /* Check that off_t can represent 2**63 - 1 correctly.
12093 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12094 since some C++ compilers masquerading as C compilers
12095 incorrectly reject 9223372036854775807. */
12096 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12097 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12098 && LARGE_OFF_T % 2147483647 == 1)
12099 ? 1 : -1];
12100 int
12101 main ()
12102 {
12103
12104 ;
12105 return 0;
12106 }
12107 _ACEOF
12108 if ac_fn_c_try_compile "$LINENO"; then :
12109 ac_cv_sys_large_files=1; break
12110 fi
12111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12112 ac_cv_sys_large_files=unknown
12113 break
12114 done
12115 fi
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12117 $as_echo "$ac_cv_sys_large_files" >&6; }
12118 case $ac_cv_sys_large_files in #(
12119 no | unknown) ;;
12120 *)
12121 cat >>confdefs.h <<_ACEOF
12122 #define _LARGE_FILES $ac_cv_sys_large_files
12123 _ACEOF
12124 ;;
12125 esac
12126 rm -rf conftest*
12127 fi
12128
12129
12130 fi
12131
12132
12133 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
12134 for ac_prog in aclocal
12135 do
12136 # Extract the first word of "$ac_prog", so it can be a program name with args.
12137 set dummy $ac_prog; ac_word=$2
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12139 $as_echo_n "checking for $ac_word... " >&6; }
12140 if ${ac_cv_prog_ACLOCAL+:} false; then :
12141 $as_echo_n "(cached) " >&6
12142 else
12143 if test -n "$ACLOCAL"; then
12144 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
12145 else
12146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12147 for as_dir in $PATH
12148 do
12149 IFS=$as_save_IFS
12150 test -z "$as_dir" && as_dir=.
12151 for ac_exec_ext in '' $ac_executable_extensions; do
12152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12153 ac_cv_prog_ACLOCAL="$ac_prog"
12154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12155 break 2
12156 fi
12157 done
12158 done
12159 IFS=$as_save_IFS
12160
12161 fi
12162 fi
12163 ACLOCAL=$ac_cv_prog_ACLOCAL
12164 if test -n "$ACLOCAL"; then
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
12166 $as_echo "$ACLOCAL" >&6; }
12167 else
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12169 $as_echo "no" >&6; }
12170 fi
12171
12172
12173 test -n "$ACLOCAL" && break
12174 done
12175 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
12176
12177 for ac_prog in autoconf
12178 do
12179 # Extract the first word of "$ac_prog", so it can be a program name with args.
12180 set dummy $ac_prog; ac_word=$2
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12182 $as_echo_n "checking for $ac_word... " >&6; }
12183 if ${ac_cv_prog_AUTOCONF+:} false; then :
12184 $as_echo_n "(cached) " >&6
12185 else
12186 if test -n "$AUTOCONF"; then
12187 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
12188 else
12189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12190 for as_dir in $PATH
12191 do
12192 IFS=$as_save_IFS
12193 test -z "$as_dir" && as_dir=.
12194 for ac_exec_ext in '' $ac_executable_extensions; do
12195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12196 ac_cv_prog_AUTOCONF="$ac_prog"
12197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12198 break 2
12199 fi
12200 done
12201 done
12202 IFS=$as_save_IFS
12203
12204 fi
12205 fi
12206 AUTOCONF=$ac_cv_prog_AUTOCONF
12207 if test -n "$AUTOCONF"; then
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
12209 $as_echo "$AUTOCONF" >&6; }
12210 else
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12212 $as_echo "no" >&6; }
12213 fi
12214
12215
12216 test -n "$AUTOCONF" && break
12217 done
12218 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
12219
12220 for ac_prog in autoheader
12221 do
12222 # Extract the first word of "$ac_prog", so it can be a program name with args.
12223 set dummy $ac_prog; ac_word=$2
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12225 $as_echo_n "checking for $ac_word... " >&6; }
12226 if ${ac_cv_prog_AUTOHEADER+:} false; then :
12227 $as_echo_n "(cached) " >&6
12228 else
12229 if test -n "$AUTOHEADER"; then
12230 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
12231 else
12232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12233 for as_dir in $PATH
12234 do
12235 IFS=$as_save_IFS
12236 test -z "$as_dir" && as_dir=.
12237 for ac_exec_ext in '' $ac_executable_extensions; do
12238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12239 ac_cv_prog_AUTOHEADER="$ac_prog"
12240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12241 break 2
12242 fi
12243 done
12244 done
12245 IFS=$as_save_IFS
12246
12247 fi
12248 fi
12249 AUTOHEADER=$ac_cv_prog_AUTOHEADER
12250 if test -n "$AUTOHEADER"; then
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
12252 $as_echo "$AUTOHEADER" >&6; }
12253 else
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12255 $as_echo "no" >&6; }
12256 fi
12257
12258
12259 test -n "$AUTOHEADER" && break
12260 done
12261 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
12262
12263
12264 # Figure out what compiler warnings we can enable.
12265 # See config/warnings.m4 for details.
12266
12267 ac_ext=c
12268 ac_cpp='$CPP $CPPFLAGS'
12269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12272
12273 warn=
12274 save_CFLAGS="$CFLAGS"
12275 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \
12276 -Wmissing-format-attribute; do
12277 # Do the check with the no- prefix removed since gcc silently
12278 # accepts any -Wno-* option on purpose
12279 case $real_option in
12280 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
12281 *) option=$real_option ;;
12282 esac
12283 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
12284
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
12286 $as_echo_n "checking whether $CC supports $option... " >&6; }
12287 if eval \${$as_acx_Woption+:} false; then :
12288 $as_echo_n "(cached) " >&6
12289 else
12290 CFLAGS="$option"
12291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12292 /* end confdefs.h. */
12293
12294 int
12295 main ()
12296 {
12297
12298 ;
12299 return 0;
12300 }
12301 _ACEOF
12302 if ac_fn_c_try_compile "$LINENO"; then :
12303 eval "$as_acx_Woption=yes"
12304 else
12305 eval "$as_acx_Woption=no"
12306 fi
12307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12308
12309 fi
12310 eval ac_res=\$$as_acx_Woption
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12312 $as_echo "$ac_res" >&6; }
12313 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
12314 warn="$warn${warn:+ }$real_option"
12315 fi
12316 done
12317 CFLAGS="$save_CFLAGS"
12318 ac_ext=c
12319 ac_cpp='$CPP $CPPFLAGS'
12320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12323
12324
12325 ac_ext=c
12326 ac_cpp='$CPP $CPPFLAGS'
12327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12330
12331 c_warn=
12332 save_CFLAGS="$CFLAGS"
12333 for real_option in -Wstrict-prototypes -Wmissing-prototypes \
12334 -Wold-style-definition; do
12335 # Do the check with the no- prefix removed since gcc silently
12336 # accepts any -Wno-* option on purpose
12337 case $real_option in
12338 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
12339 *) option=$real_option ;;
12340 esac
12341 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
12342
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
12344 $as_echo_n "checking whether $CC supports $option... " >&6; }
12345 if eval \${$as_acx_Woption+:} false; then :
12346 $as_echo_n "(cached) " >&6
12347 else
12348 CFLAGS="$option"
12349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12350 /* end confdefs.h. */
12351
12352 int
12353 main ()
12354 {
12355
12356 ;
12357 return 0;
12358 }
12359 _ACEOF
12360 if ac_fn_c_try_compile "$LINENO"; then :
12361 eval "$as_acx_Woption=yes"
12362 else
12363 eval "$as_acx_Woption=no"
12364 fi
12365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12366
12367 fi
12368 eval ac_res=\$$as_acx_Woption
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12370 $as_echo "$ac_res" >&6; }
12371 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
12372 c_warn="$c_warn${c_warn:+ }$real_option"
12373 fi
12374 done
12375 CFLAGS="$save_CFLAGS"
12376 ac_ext=c
12377 ac_cpp='$CPP $CPPFLAGS'
12378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12381
12382
12383 ac_ext=c
12384 ac_cpp='$CPP $CPPFLAGS'
12385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12388
12389 WARN_PEDANTIC=
12390 # Do the check with the no- prefix removed from the warning options
12391 # since gcc silently accepts any -Wno-* option on purpose
12392 if test "$GCC" = yes; then :
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
12394 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
12395 if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false; then :
12396 $as_echo_n "(cached) " >&6
12397 else
12398 save_CFLAGS="$CFLAGS"
12399 CFLAGS="-pedantic -Wlong-long"
12400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12401 /* end confdefs.h. */
12402
12403 int
12404 main ()
12405 {
12406
12407 ;
12408 return 0;
12409 }
12410 _ACEOF
12411 if ac_fn_c_try_compile "$LINENO"; then :
12412 acx_cv_prog_cc_pedantic__Wlong_long=yes
12413 else
12414 acx_cv_prog_cc_pedantic__Wlong_long=no
12415 fi
12416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12417 CFLAGS="$save_CFLAGS"
12418 fi
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
12420 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
12421 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
12422 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
12423 fi
12424
12425 fi
12426 ac_ext=c
12427 ac_cpp='$CPP $CPPFLAGS'
12428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12431
12432
12433
12434 # Only enable with --enable-werror-always until existing warnings are
12435 # corrected.
12436 ac_ext=c
12437 ac_cpp='$CPP $CPPFLAGS'
12438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12441
12442 WERROR=
12443 # Check whether --enable-werror-always was given.
12444 if test "${enable_werror_always+set}" = set; then :
12445 enableval=$enable_werror_always;
12446 else
12447 enable_werror_always=no
12448 fi
12449
12450 if test $enable_werror_always = yes; then :
12451 WERROR="$WERROR${WERROR:+ }-Werror"
12452 fi
12453
12454 ac_ext=c
12455 ac_cpp='$CPP $CPPFLAGS'
12456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12459
12460
12461
12462
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12464 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12465 # Check whether --enable-maintainer-mode was given.
12466 if test "${enable_maintainer_mode+set}" = set; then :
12467 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12468 else
12469 USE_MAINTAINER_MODE=no
12470 fi
12471
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12473 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12474 if test $USE_MAINTAINER_MODE = yes; then
12475 MAINTAINER_MODE_TRUE=
12476 MAINTAINER_MODE_FALSE='#'
12477 else
12478 MAINTAINER_MODE_TRUE='#'
12479 MAINTAINER_MODE_FALSE=
12480 fi
12481
12482 MAINT=$MAINTAINER_MODE_TRUE
12483
12484
12485 case ${build_alias} in
12486 "") build_noncanonical=${build} ;;
12487 *) build_noncanonical=${build_alias} ;;
12488 esac
12489
12490 case ${host_alias} in
12491 "") host_noncanonical=${build_noncanonical} ;;
12492 *) host_noncanonical=${host_alias} ;;
12493 esac
12494
12495 case ${target_alias} in
12496 "") target_noncanonical=${host_noncanonical} ;;
12497 *) target_noncanonical=${target_alias} ;;
12498 esac
12499
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
12501 $as_echo_n "checking whether to install libbfd... " >&6; }
12502 # Check whether --enable-install-libbfd was given.
12503 if test "${enable_install_libbfd+set}" = set; then :
12504 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
12505 else
12506 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12507 install_libbfd_p=yes
12508 else
12509 install_libbfd_p=no
12510 fi
12511 fi
12512
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
12514 $as_echo "$install_libbfd_p" >&6; }
12515 if test $install_libbfd_p = yes; then
12516 INSTALL_LIBBFD_TRUE=
12517 INSTALL_LIBBFD_FALSE='#'
12518 else
12519 INSTALL_LIBBFD_TRUE='#'
12520 INSTALL_LIBBFD_FALSE=
12521 fi
12522
12523 # Need _noncanonical variables for this.
12524
12525
12526
12527
12528 # libbfd.a is a host library containing target dependent code
12529 bfdlibdir='$(libdir)'
12530 bfdincludedir='$(includedir)'
12531 if test "${host}" != "${target}"; then
12532 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12533 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
12534 fi
12535
12536
12537
12538
12539
12540
12541 ac_ext=c
12542 ac_cpp='$CPP $CPPFLAGS'
12543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12546
12547 ac_libctf_warn_cflags=
12548 save_CFLAGS="$CFLAGS"
12549 for real_option in -Wall; do
12550 # Do the check with the no- prefix removed since gcc silently
12551 # accepts any -Wno-* option on purpose
12552 case $real_option in
12553 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
12554 *) option=$real_option ;;
12555 esac
12556 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
12557
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
12559 $as_echo_n "checking whether $CC supports $option... " >&6; }
12560 if eval \${$as_acx_Woption+:} false; then :
12561 $as_echo_n "(cached) " >&6
12562 else
12563 CFLAGS="$option"
12564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12565 /* end confdefs.h. */
12566
12567 int
12568 main ()
12569 {
12570
12571 ;
12572 return 0;
12573 }
12574 _ACEOF
12575 if ac_fn_c_try_compile "$LINENO"; then :
12576 eval "$as_acx_Woption=yes"
12577 else
12578 eval "$as_acx_Woption=no"
12579 fi
12580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12581
12582 fi
12583 eval ac_res=\$$as_acx_Woption
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12585 $as_echo "$ac_res" >&6; }
12586 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
12587 ac_libctf_warn_cflags="$ac_libctf_warn_cflags${ac_libctf_warn_cflags:+ }$real_option"
12588 fi
12589 done
12590 CFLAGS="$save_CFLAGS"
12591 ac_ext=c
12592 ac_cpp='$CPP $CPPFLAGS'
12593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12596
12597
12598
12599
12600
12601
12602 for ac_header in $ac_header_list
12603 do :
12604 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12605 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12606 "
12607 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12608 cat >>confdefs.h <<_ACEOF
12609 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12610 _ACEOF
12611
12612 fi
12613
12614 done
12615
12616
12617
12618
12619
12620
12621
12622
12623 for ac_func in getpagesize
12624 do :
12625 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12626 if test "x$ac_cv_func_getpagesize" = xyes; then :
12627 cat >>confdefs.h <<_ACEOF
12628 #define HAVE_GETPAGESIZE 1
12629 _ACEOF
12630
12631 fi
12632 done
12633
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12635 $as_echo_n "checking for working mmap... " >&6; }
12636 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
12637 $as_echo_n "(cached) " >&6
12638 else
12639 if test "$cross_compiling" = yes; then :
12640 ac_cv_func_mmap_fixed_mapped=no
12641 else
12642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643 /* end confdefs.h. */
12644 $ac_includes_default
12645 /* malloc might have been renamed as rpl_malloc. */
12646 #undef malloc
12647
12648 /* Thanks to Mike Haertel and Jim Avera for this test.
12649 Here is a matrix of mmap possibilities:
12650 mmap private not fixed
12651 mmap private fixed at somewhere currently unmapped
12652 mmap private fixed at somewhere already mapped
12653 mmap shared not fixed
12654 mmap shared fixed at somewhere currently unmapped
12655 mmap shared fixed at somewhere already mapped
12656 For private mappings, we should verify that changes cannot be read()
12657 back from the file, nor mmap's back from the file at a different
12658 address. (There have been systems where private was not correctly
12659 implemented like the infamous i386 svr4.0, and systems where the
12660 VM page cache was not coherent with the file system buffer cache
12661 like early versions of FreeBSD and possibly contemporary NetBSD.)
12662 For shared mappings, we should conversely verify that changes get
12663 propagated back to all the places they're supposed to be.
12664
12665 Grep wants private fixed already mapped.
12666 The main things grep needs to know about mmap are:
12667 * does it exist and is it safe to write into the mmap'd area
12668 * how to use it (BSD variants) */
12669
12670 #include <fcntl.h>
12671 #include <sys/mman.h>
12672
12673 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12674 char *malloc ();
12675 #endif
12676
12677 /* This mess was copied from the GNU getpagesize.h. */
12678 #ifndef HAVE_GETPAGESIZE
12679 # ifdef _SC_PAGESIZE
12680 # define getpagesize() sysconf(_SC_PAGESIZE)
12681 # else /* no _SC_PAGESIZE */
12682 # ifdef HAVE_SYS_PARAM_H
12683 # include <sys/param.h>
12684 # ifdef EXEC_PAGESIZE
12685 # define getpagesize() EXEC_PAGESIZE
12686 # else /* no EXEC_PAGESIZE */
12687 # ifdef NBPG
12688 # define getpagesize() NBPG * CLSIZE
12689 # ifndef CLSIZE
12690 # define CLSIZE 1
12691 # endif /* no CLSIZE */
12692 # else /* no NBPG */
12693 # ifdef NBPC
12694 # define getpagesize() NBPC
12695 # else /* no NBPC */
12696 # ifdef PAGESIZE
12697 # define getpagesize() PAGESIZE
12698 # endif /* PAGESIZE */
12699 # endif /* no NBPC */
12700 # endif /* no NBPG */
12701 # endif /* no EXEC_PAGESIZE */
12702 # else /* no HAVE_SYS_PARAM_H */
12703 # define getpagesize() 8192 /* punt totally */
12704 # endif /* no HAVE_SYS_PARAM_H */
12705 # endif /* no _SC_PAGESIZE */
12706
12707 #endif /* no HAVE_GETPAGESIZE */
12708
12709 int
12710 main ()
12711 {
12712 char *data, *data2, *data3;
12713 const char *cdata2;
12714 int i, pagesize;
12715 int fd, fd2;
12716
12717 pagesize = getpagesize ();
12718
12719 /* First, make a file with some known garbage in it. */
12720 data = (char *) malloc (pagesize);
12721 if (!data)
12722 return 1;
12723 for (i = 0; i < pagesize; ++i)
12724 *(data + i) = rand ();
12725 umask (0);
12726 fd = creat ("conftest.mmap", 0600);
12727 if (fd < 0)
12728 return 2;
12729 if (write (fd, data, pagesize) != pagesize)
12730 return 3;
12731 close (fd);
12732
12733 /* Next, check that the tail of a page is zero-filled. File must have
12734 non-zero length, otherwise we risk SIGBUS for entire page. */
12735 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12736 if (fd2 < 0)
12737 return 4;
12738 cdata2 = "";
12739 if (write (fd2, cdata2, 1) != 1)
12740 return 5;
12741 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12742 if (data2 == MAP_FAILED)
12743 return 6;
12744 for (i = 0; i < pagesize; ++i)
12745 if (*(data2 + i))
12746 return 7;
12747 close (fd2);
12748 if (munmap (data2, pagesize))
12749 return 8;
12750
12751 /* Next, try to mmap the file at a fixed address which already has
12752 something else allocated at it. If we can, also make sure that
12753 we see the same garbage. */
12754 fd = open ("conftest.mmap", O_RDWR);
12755 if (fd < 0)
12756 return 9;
12757 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12758 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12759 return 10;
12760 for (i = 0; i < pagesize; ++i)
12761 if (*(data + i) != *(data2 + i))
12762 return 11;
12763
12764 /* Finally, make sure that changes to the mapped area do not
12765 percolate back to the file as seen by read(). (This is a bug on
12766 some variants of i386 svr4.0.) */
12767 for (i = 0; i < pagesize; ++i)
12768 *(data2 + i) = *(data2 + i) + 1;
12769 data3 = (char *) malloc (pagesize);
12770 if (!data3)
12771 return 12;
12772 if (read (fd, data3, pagesize) != pagesize)
12773 return 13;
12774 for (i = 0; i < pagesize; ++i)
12775 if (*(data + i) != *(data3 + i))
12776 return 14;
12777 close (fd);
12778 return 0;
12779 }
12780 _ACEOF
12781 if ac_fn_c_try_run "$LINENO"; then :
12782 ac_cv_func_mmap_fixed_mapped=yes
12783 else
12784 ac_cv_func_mmap_fixed_mapped=no
12785 fi
12786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12787 conftest.$ac_objext conftest.beam conftest.$ac_ext
12788 fi
12789
12790 fi
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12792 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12793 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12794
12795 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12796
12797 fi
12798 rm -f conftest.mmap conftest.txt
12799
12800 # Needed for BFD capability checks.
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
12802 $as_echo_n "checking for library containing dlsym... " >&6; }
12803 if ${ac_cv_search_dlsym+:} false; then :
12804 $as_echo_n "(cached) " >&6
12805 else
12806 ac_func_search_save_LIBS=$LIBS
12807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12808 /* end confdefs.h. */
12809
12810 /* Override any GCC internal prototype to avoid an error.
12811 Use char because int might match the return type of a GCC
12812 builtin and then its argument prototype would still apply. */
12813 #ifdef __cplusplus
12814 extern "C"
12815 #endif
12816 char dlsym ();
12817 int
12818 main ()
12819 {
12820 return dlsym ();
12821 ;
12822 return 0;
12823 }
12824 _ACEOF
12825 for ac_lib in '' dl; do
12826 if test -z "$ac_lib"; then
12827 ac_res="none required"
12828 else
12829 ac_res=-l$ac_lib
12830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12831 fi
12832 if ac_fn_c_try_link "$LINENO"; then :
12833 ac_cv_search_dlsym=$ac_res
12834 fi
12835 rm -f core conftest.err conftest.$ac_objext \
12836 conftest$ac_exeext
12837 if ${ac_cv_search_dlsym+:} false; then :
12838 break
12839 fi
12840 done
12841 if ${ac_cv_search_dlsym+:} false; then :
12842
12843 else
12844 ac_cv_search_dlsym=no
12845 fi
12846 rm conftest.$ac_ext
12847 LIBS=$ac_func_search_save_LIBS
12848 fi
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
12850 $as_echo "$ac_cv_search_dlsym" >&6; }
12851 ac_res=$ac_cv_search_dlsym
12852 if test "$ac_res" != no; then :
12853 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12854
12855 fi
12856
12857
12858 # Use the system's zlib library.
12859 zlibdir="-L\$(top_builddir)/../zlib"
12860 zlibinc="-I\$(top_srcdir)/../zlib"
12861
12862 # Check whether --with-system-zlib was given.
12863 if test "${with_system_zlib+set}" = set; then :
12864 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
12865 zlibdir=
12866 zlibinc=
12867 fi
12868
12869 fi
12870
12871
12872
12873
12874
12875 # Check whether --enable-libctf-hash-debugging was given.
12876 if test "${enable_libctf_hash_debugging+set}" = set; then :
12877 enableval=$enable_libctf_hash_debugging;
12878 case "$enableval" in
12879 yes|no) ;;
12880 *) as_fn_error $? "Argument to enable/disable libctf-hash-debugging must be yes or no" "$LINENO" 5 ;;
12881 esac
12882
12883 else
12884 enable_libctf_hash_debugging=no
12885 fi
12886
12887
12888 if test "${enable_libctf_hash_debugging}" = yes; then
12889
12890 $as_echo "#define ENABLE_LIBCTF_HASH_DEBUGGING 1" >>confdefs.h
12891
12892 fi
12893 if test "${enable_libctf_hash_debugging}" = yes; then
12894 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE=
12895 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE='#'
12896 else
12897 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE='#'
12898 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE=
12899 fi
12900
12901
12902 # Similar to GDB_AC_CHECK_BFD.
12903 OLD_CFLAGS=$CFLAGS
12904 OLD_LDFLAGS=$LDFLAGS
12905 OLD_LIBS=$LIBS
12906 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
12907 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
12908 # always want our bfd.
12909 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
12910 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
12911 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
12912 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
12913 LIBS="-lbfd -liberty -lz $intl $LIBS"
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
12915 $as_echo_n "checking for ELF support in BFD... " >&6; }
12916 if ${ac_cv_libctf_bfd_elf+:} false; then :
12917 $as_echo_n "(cached) " >&6
12918 else
12919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920 /* end confdefs.h. */
12921 #include <stdlib.h>
12922 #include <string.h>
12923 #include "bfd.h"
12924 #include "elf-bfd.h"
12925 int
12926 main ()
12927 {
12928 (void) bfd_section_from_elf_index (NULL, 0);
12929 return 0;
12930 ;
12931 return 0;
12932 }
12933 _ACEOF
12934 if ac_fn_c_try_link "$LINENO"; then :
12935 ac_cv_libctf_bfd_elf=yes
12936 else
12937 ac_cv_libctf_bfd_elf=no
12938 fi
12939 rm -f core conftest.err conftest.$ac_objext \
12940 conftest$ac_exeext conftest.$ac_ext
12941 fi
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_bfd_elf" >&5
12943 $as_echo "$ac_cv_libctf_bfd_elf" >&6; }
12944 CFLAGS=$OLD_CFLAGS
12945 LDFLAGS=$OLD_LDFLAGS
12946 LIBS=$OLD_LIBS
12947
12948 if test $ac_cv_libctf_bfd_elf = yes; then
12949
12950 $as_echo "#define HAVE_BFD_ELF 1" >>confdefs.h
12951
12952 fi
12953
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12955 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12956 if ${ac_cv_c_bigendian+:} false; then :
12957 $as_echo_n "(cached) " >&6
12958 else
12959 ac_cv_c_bigendian=unknown
12960 # See if we're dealing with a universal compiler.
12961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12962 /* end confdefs.h. */
12963 #ifndef __APPLE_CC__
12964 not a universal capable compiler
12965 #endif
12966 typedef int dummy;
12967
12968 _ACEOF
12969 if ac_fn_c_try_compile "$LINENO"; then :
12970
12971 # Check for potential -arch flags. It is not universal unless
12972 # there are at least two -arch flags with different values.
12973 ac_arch=
12974 ac_prev=
12975 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12976 if test -n "$ac_prev"; then
12977 case $ac_word in
12978 i?86 | x86_64 | ppc | ppc64)
12979 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12980 ac_arch=$ac_word
12981 else
12982 ac_cv_c_bigendian=universal
12983 break
12984 fi
12985 ;;
12986 esac
12987 ac_prev=
12988 elif test "x$ac_word" = "x-arch"; then
12989 ac_prev=arch
12990 fi
12991 done
12992 fi
12993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12994 if test $ac_cv_c_bigendian = unknown; then
12995 # See if sys/param.h defines the BYTE_ORDER macro.
12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
12998 #include <sys/types.h>
12999 #include <sys/param.h>
13000
13001 int
13002 main ()
13003 {
13004 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13005 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13006 && LITTLE_ENDIAN)
13007 bogus endian macros
13008 #endif
13009
13010 ;
13011 return 0;
13012 }
13013 _ACEOF
13014 if ac_fn_c_try_compile "$LINENO"; then :
13015 # It does; now see whether it defined to BIG_ENDIAN or not.
13016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13017 /* end confdefs.h. */
13018 #include <sys/types.h>
13019 #include <sys/param.h>
13020
13021 int
13022 main ()
13023 {
13024 #if BYTE_ORDER != BIG_ENDIAN
13025 not big endian
13026 #endif
13027
13028 ;
13029 return 0;
13030 }
13031 _ACEOF
13032 if ac_fn_c_try_compile "$LINENO"; then :
13033 ac_cv_c_bigendian=yes
13034 else
13035 ac_cv_c_bigendian=no
13036 fi
13037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13038 fi
13039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13040 fi
13041 if test $ac_cv_c_bigendian = unknown; then
13042 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13044 /* end confdefs.h. */
13045 #include <limits.h>
13046
13047 int
13048 main ()
13049 {
13050 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13051 bogus endian macros
13052 #endif
13053
13054 ;
13055 return 0;
13056 }
13057 _ACEOF
13058 if ac_fn_c_try_compile "$LINENO"; then :
13059 # It does; now see whether it defined to _BIG_ENDIAN or not.
13060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13061 /* end confdefs.h. */
13062 #include <limits.h>
13063
13064 int
13065 main ()
13066 {
13067 #ifndef _BIG_ENDIAN
13068 not big endian
13069 #endif
13070
13071 ;
13072 return 0;
13073 }
13074 _ACEOF
13075 if ac_fn_c_try_compile "$LINENO"; then :
13076 ac_cv_c_bigendian=yes
13077 else
13078 ac_cv_c_bigendian=no
13079 fi
13080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13081 fi
13082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13083 fi
13084 if test $ac_cv_c_bigendian = unknown; then
13085 # Compile a test program.
13086 if test "$cross_compiling" = yes; then :
13087 # Try to guess by grepping values from an object file.
13088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13089 /* end confdefs.h. */
13090 short int ascii_mm[] =
13091 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13092 short int ascii_ii[] =
13093 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13094 int use_ascii (int i) {
13095 return ascii_mm[i] + ascii_ii[i];
13096 }
13097 short int ebcdic_ii[] =
13098 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13099 short int ebcdic_mm[] =
13100 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13101 int use_ebcdic (int i) {
13102 return ebcdic_mm[i] + ebcdic_ii[i];
13103 }
13104 extern int foo;
13105
13106 int
13107 main ()
13108 {
13109 return use_ascii (foo) == use_ebcdic (foo);
13110 ;
13111 return 0;
13112 }
13113 _ACEOF
13114 if ac_fn_c_try_compile "$LINENO"; then :
13115 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13116 ac_cv_c_bigendian=yes
13117 fi
13118 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13119 if test "$ac_cv_c_bigendian" = unknown; then
13120 ac_cv_c_bigendian=no
13121 else
13122 # finding both strings is unlikely to happen, but who knows?
13123 ac_cv_c_bigendian=unknown
13124 fi
13125 fi
13126 fi
13127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13128 else
13129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13130 /* end confdefs.h. */
13131 $ac_includes_default
13132 int
13133 main ()
13134 {
13135
13136 /* Are we little or big endian? From Harbison&Steele. */
13137 union
13138 {
13139 long int l;
13140 char c[sizeof (long int)];
13141 } u;
13142 u.l = 1;
13143 return u.c[sizeof (long int) - 1] == 1;
13144
13145 ;
13146 return 0;
13147 }
13148 _ACEOF
13149 if ac_fn_c_try_run "$LINENO"; then :
13150 ac_cv_c_bigendian=no
13151 else
13152 ac_cv_c_bigendian=yes
13153 fi
13154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13155 conftest.$ac_objext conftest.beam conftest.$ac_ext
13156 fi
13157
13158 fi
13159 fi
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13161 $as_echo "$ac_cv_c_bigendian" >&6; }
13162 case $ac_cv_c_bigendian in #(
13163 yes)
13164 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13165 ;; #(
13166 no)
13167 ;; #(
13168 universal)
13169
13170 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13171
13172 ;; #(
13173 *)
13174 as_fn_error $? "unknown endianness
13175 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13176 esac
13177
13178 for ac_header in byteswap.h endian.h
13179 do :
13180 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13181 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13182 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13183 cat >>confdefs.h <<_ACEOF
13184 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13185 _ACEOF
13186
13187 fi
13188
13189 done
13190
13191 for ac_func in pread
13192 do :
13193 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
13194 if test "x$ac_cv_func_pread" = xyes; then :
13195 cat >>confdefs.h <<_ACEOF
13196 #define HAVE_PREAD 1
13197 _ACEOF
13198
13199 fi
13200 done
13201
13202
13203 ac_fn_c_check_decl "$LINENO" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h>
13204 "
13205 if test "x$ac_cv_have_decl_bswap_16" = xyes; then :
13206 ac_have_decl=1
13207 else
13208 ac_have_decl=0
13209 fi
13210
13211 cat >>confdefs.h <<_ACEOF
13212 #define HAVE_DECL_BSWAP_16 $ac_have_decl
13213 _ACEOF
13214 ac_fn_c_check_decl "$LINENO" "bswap_32" "ac_cv_have_decl_bswap_32" "#include <byteswap.h>
13215 "
13216 if test "x$ac_cv_have_decl_bswap_32" = xyes; then :
13217 ac_have_decl=1
13218 else
13219 ac_have_decl=0
13220 fi
13221
13222 cat >>confdefs.h <<_ACEOF
13223 #define HAVE_DECL_BSWAP_32 $ac_have_decl
13224 _ACEOF
13225 ac_fn_c_check_decl "$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "#include <byteswap.h>
13226 "
13227 if test "x$ac_cv_have_decl_bswap_64" = xyes; then :
13228 ac_have_decl=1
13229 else
13230 ac_have_decl=0
13231 fi
13232
13233 cat >>confdefs.h <<_ACEOF
13234 #define HAVE_DECL_BSWAP_64 $ac_have_decl
13235 _ACEOF
13236
13237 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
13238 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
13239 ac_have_decl=1
13240 else
13241 ac_have_decl=0
13242 fi
13243
13244 cat >>confdefs.h <<_ACEOF
13245 #define HAVE_DECL_ASPRINTF $ac_have_decl
13246 _ACEOF
13247 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
13248 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
13249 ac_have_decl=1
13250 else
13251 ac_have_decl=0
13252 fi
13253
13254 cat >>confdefs.h <<_ACEOF
13255 #define HAVE_DECL_VASPRINTF $ac_have_decl
13256 _ACEOF
13257 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13258 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
13259 ac_have_decl=1
13260 else
13261 ac_have_decl=0
13262 fi
13263
13264 cat >>confdefs.h <<_ACEOF
13265 #define HAVE_DECL_STPCPY $ac_have_decl
13266 _ACEOF
13267
13268
13269
13270
13271
13272 for ac_func in $ac_func_list
13273 do :
13274 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13275 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13276 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13277 cat >>confdefs.h <<_ACEOF
13278 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13279 _ACEOF
13280
13281 fi
13282 done
13283
13284
13285
13286
13287 if test $ac_cv_func_qsort_r = yes; then
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qsort_r signature" >&5
13289 $as_echo_n "checking for qsort_r signature... " >&6; }
13290 if ${ac_cv_libctf_qsort_r_signature+:} false; then :
13291 $as_echo_n "(cached) " >&6
13292 else
13293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294 /* end confdefs.h. */
13295 #undef qsort_r
13296 #include <stdlib.h>
13297 void qsort_r (void *, size_t, size_t,
13298 int (*) (void const *, void const *,
13299 void *),
13300 void *);
13301 void (*p) (void *, size_t, size_t,
13302 int (*) (void const *, void const *,
13303 void *),
13304 void *) = qsort_r;
13305
13306 int
13307 main ()
13308 {
13309
13310 ;
13311 return 0;
13312 }
13313 _ACEOF
13314 if ac_fn_c_try_link "$LINENO"; then :
13315 ac_cv_libctf_qsort_r_signature=GNU
13316 else
13317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13318 /* end confdefs.h. */
13319 #undef qsort_r
13320 #include <stdlib.h>
13321 void qsort_r (void *, size_t, size_t, void *,
13322 int (*) (void *,
13323 void const *,
13324 void const *));
13325 void (*p) (void *, size_t, size_t, void *,
13326 int (*) (void *, void const *,
13327 void const *)) = qsort_r;
13328
13329 int
13330 main ()
13331 {
13332
13333 ;
13334 return 0;
13335 }
13336 _ACEOF
13337 if ac_fn_c_try_link "$LINENO"; then :
13338 ac_cv_libctf_qsort_r_signature=BSD
13339 else
13340 ac_cv_libctf_qsort_r_signature=unknown
13341 fi
13342 rm -f core conftest.err conftest.$ac_objext \
13343 conftest$ac_exeext conftest.$ac_ext
13344 fi
13345 rm -f core conftest.err conftest.$ac_objext \
13346 conftest$ac_exeext conftest.$ac_ext
13347 fi
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_qsort_r_signature" >&5
13349 $as_echo "$ac_cv_libctf_qsort_r_signature" >&6; }
13350 fi
13351
13352 case x$ac_cv_libctf_qsort_r_signature in
13353 xGNU)
13354 $as_echo "#define HAVE_QSORT_R_ARG_LAST 1" >>confdefs.h
13355 ;;
13356 xBSD)
13357 $as_echo "#define HAVE_QSORT_R_COMPAR_LAST 1" >>confdefs.h
13358 ;;
13359 *) ac_cv_libctf_qsort_r_signature=unknown;;
13360 esac
13361
13362 if test "${ac_cv_libctf_qsort_r_signature}" = unknown; then
13363 NEED_CTF_QSORT_R_TRUE=
13364 NEED_CTF_QSORT_R_FALSE='#'
13365 else
13366 NEED_CTF_QSORT_R_TRUE='#'
13367 NEED_CTF_QSORT_R_FALSE=
13368 fi
13369
13370
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
13372 $as_echo_n "checking for O_CLOEXEC... " >&6; }
13373 if ${ac_cv_libctf_macro_O_CLOEXEC+:} false; then :
13374 $as_echo_n "(cached) " >&6
13375 else
13376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13377 /* end confdefs.h. */
13378 #include <fcntl.h>
13379 #ifndef O_CLOEXEC
13380 choke me;
13381 #endif
13382
13383 int
13384 main ()
13385 {
13386 return O_CLOEXEC;
13387 ;
13388 return 0;
13389 }
13390 _ACEOF
13391 if ac_fn_c_try_link "$LINENO"; then :
13392 ac_cv_libctf_macro_O_CLOEXEC=yes
13393 else
13394 ac_cv_libctf_macro_O_CLOEXEC=no
13395 fi
13396 rm -f core conftest.err conftest.$ac_objext \
13397 conftest$ac_exeext conftest.$ac_ext
13398 fi
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_macro_O_CLOEXEC" >&5
13400 $as_echo "$ac_cv_libctf_macro_O_CLOEXEC" >&6; }
13401
13402 if test $ac_cv_libctf_macro_O_CLOEXEC = yes; then
13403
13404 $as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
13405
13406 fi
13407
13408 CTF_LIBADD="-L`pwd`/../libiberty -liberty"
13409 SHARED_LDFLAGS=
13410
13411 # Horrible hacks to build DLLs on Windows and a shared library elsewhere.
13412 if test "$enable_shared" = "yes"; then
13413 # When building a shared libctf, link against the pic version of libiberty
13414 # so that apps that use libctf won't need libiberty just to satisfy any
13415 # libctf references. We can't do that if a pic libiberty is unavailable
13416 # since including non-pic # code would insert text relocations into libctf.
13417 # Note that linking against libbfd as we do here, which is itself linked
13418 # against libiberty, may not satisfy all the libctf libiberty references
13419 # since libbfd may not pull in the entirety of libiberty.
13420 # Also, jam libintl into the right place in all of this: after libiberty,
13421 # which uses it, but before -lcygwin, which it uses.
13422 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
13423 if test -n "$x"; then
13424 CTF_LIBADD="-L`pwd`/../libiberty/pic -liberty"
13425 fi
13426 fi
13427
13428 CTF_LIBADD="$CTF_LIBADD $LIBINTL"
13429
13430 if test "$enable_shared" = "yes"; then
13431 case "${host}" in
13432 # More hacks to build DLLs on Windows.
13433 *-*-cygwin*)
13434 SHARED_LDFLAGS="-no-undefined"
13435 CTF_LIBADD="$CTF_LIBADD -lcygwin"
13436 ;;
13437 esac
13438 fi
13439
13440
13441
13442 # Extract the first word of "expect", so it can be a program name with args.
13443 set dummy expect; ac_word=$2
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13445 $as_echo_n "checking for $ac_word... " >&6; }
13446 if ${ac_cv_path_EXPECT+:} false; then :
13447 $as_echo_n "(cached) " >&6
13448 else
13449 case $EXPECT in
13450 [\\/]* | ?:[\\/]*)
13451 ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
13452 ;;
13453 *)
13454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13455 for as_dir in $PATH
13456 do
13457 IFS=$as_save_IFS
13458 test -z "$as_dir" && as_dir=.
13459 for ac_exec_ext in '' $ac_executable_extensions; do
13460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13461 ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
13462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13463 break 2
13464 fi
13465 done
13466 done
13467 IFS=$as_save_IFS
13468
13469 ;;
13470 esac
13471 fi
13472 EXPECT=$ac_cv_path_EXPECT
13473 if test -n "$EXPECT"; then
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
13475 $as_echo "$EXPECT" >&6; }
13476 else
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13478 $as_echo "no" >&6; }
13479 fi
13480
13481
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl supporting try/catch" >&5
13483 $as_echo_n "checking for Tcl supporting try/catch... " >&6; }
13484 if ${ac_cv_libctf_tcl_try+:} false; then :
13485 $as_echo_n "(cached) " >&6
13486 else
13487 ac_cv_libctf_tcl_try=`if test -z $EXPECT; then echo no; else $EXPECT << EOF
13488 if [llength [info commands try]] then { puts yes } else { puts no }
13489 EOF
13490 fi`
13491
13492 fi
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_tcl_try" >&5
13494 $as_echo "$ac_cv_libctf_tcl_try" >&6; }
13495 if test "${ac_cv_libctf_tcl_try}" = yes; then
13496 TCL_TRY_TRUE=
13497 TCL_TRY_FALSE='#'
13498 else
13499 TCL_TRY_TRUE='#'
13500 TCL_TRY_FALSE=
13501 fi
13502
13503
13504 # Use a version script, if possible, or an -export-symbols-regex otherwise.
13505 VERSION_FLAGS='-export-symbols-regex ctf_.*'
13506 if $LD --help 2>&1 | grep -- --version-script >/dev/null; then
13507 VERSION_FLAGS="-Wl,--version-script='$srcdir/libctf.ver'"
13508 fi
13509
13510
13511 ac_config_files="$ac_config_files Makefile"
13512
13513 ac_config_headers="$ac_config_headers config.h"
13514
13515 cat >confcache <<\_ACEOF
13516 # This file is a shell script that caches the results of configure
13517 # tests run on this system so they can be shared between configure
13518 # scripts and configure runs, see configure's option --config-cache.
13519 # It is not useful on other systems. If it contains results you don't
13520 # want to keep, you may remove or edit it.
13521 #
13522 # config.status only pays attention to the cache file if you give it
13523 # the --recheck option to rerun configure.
13524 #
13525 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13526 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13527 # following values.
13528
13529 _ACEOF
13530
13531 # The following way of writing the cache mishandles newlines in values,
13532 # but we know of no workaround that is simple, portable, and efficient.
13533 # So, we kill variables containing newlines.
13534 # Ultrix sh set writes to stderr and can't be redirected directly,
13535 # and sets the high bit in the cache file unless we assign to the vars.
13536 (
13537 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13538 eval ac_val=\$$ac_var
13539 case $ac_val in #(
13540 *${as_nl}*)
13541 case $ac_var in #(
13542 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13543 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13544 esac
13545 case $ac_var in #(
13546 _ | IFS | as_nl) ;; #(
13547 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13548 *) { eval $ac_var=; unset $ac_var;} ;;
13549 esac ;;
13550 esac
13551 done
13552
13553 (set) 2>&1 |
13554 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13555 *${as_nl}ac_space=\ *)
13556 # `set' does not quote correctly, so add quotes: double-quote
13557 # substitution turns \\\\ into \\, and sed turns \\ into \.
13558 sed -n \
13559 "s/'/'\\\\''/g;
13560 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13561 ;; #(
13562 *)
13563 # `set' quotes correctly as required by POSIX, so do not add quotes.
13564 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13565 ;;
13566 esac |
13567 sort
13568 ) |
13569 sed '
13570 /^ac_cv_env_/b end
13571 t clear
13572 :clear
13573 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13574 t end
13575 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13576 :end' >>confcache
13577 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13578 if test -w "$cache_file"; then
13579 if test "x$cache_file" != "x/dev/null"; then
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13581 $as_echo "$as_me: updating cache $cache_file" >&6;}
13582 if test ! -f "$cache_file" || test -h "$cache_file"; then
13583 cat confcache >"$cache_file"
13584 else
13585 case $cache_file in #(
13586 */* | ?:*)
13587 mv -f confcache "$cache_file"$$ &&
13588 mv -f "$cache_file"$$ "$cache_file" ;; #(
13589 *)
13590 mv -f confcache "$cache_file" ;;
13591 esac
13592 fi
13593 fi
13594 else
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13596 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13597 fi
13598 fi
13599 rm -f confcache
13600
13601 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13602 # Let make expand exec_prefix.
13603 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13604
13605 DEFS=-DHAVE_CONFIG_H
13606
13607 ac_libobjs=
13608 ac_ltlibobjs=
13609 U=
13610 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13611 # 1. Remove the extension, and $U if already installed.
13612 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13613 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13614 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13615 # will be set to the directory where LIBOBJS objects are built.
13616 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13617 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13618 done
13619 LIBOBJS=$ac_libobjs
13620
13621 LTLIBOBJS=$ac_ltlibobjs
13622
13623
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13625 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13626 if test -n "$am_sleep_pid"; then
13627 # Hide warnings about reused PIDs.
13628 wait $am_sleep_pid 2>/dev/null
13629 fi
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13631 $as_echo "done" >&6; }
13632 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13633 as_fn_error $? "conditional \"AMDEP\" was never defined.
13634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13635 fi
13636 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13637 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13639 fi
13640 if test -n "$EXEEXT"; then
13641 am__EXEEXT_TRUE=
13642 am__EXEEXT_FALSE='#'
13643 else
13644 am__EXEEXT_TRUE='#'
13645 am__EXEEXT_FALSE=
13646 fi
13647
13648 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13649 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13651 fi
13652 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
13653 as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined.
13654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13655 fi
13656 if test -z "${ENABLE_LIBCTF_HASH_DEBUGGING_TRUE}" && test -z "${ENABLE_LIBCTF_HASH_DEBUGGING_FALSE}"; then
13657 as_fn_error $? "conditional \"ENABLE_LIBCTF_HASH_DEBUGGING\" was never defined.
13658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13659 fi
13660
13661 if test -z "${NEED_CTF_QSORT_R_TRUE}" && test -z "${NEED_CTF_QSORT_R_FALSE}"; then
13662 as_fn_error $? "conditional \"NEED_CTF_QSORT_R\" was never defined.
13663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13664 fi
13665 if test -z "${TCL_TRY_TRUE}" && test -z "${TCL_TRY_FALSE}"; then
13666 as_fn_error $? "conditional \"TCL_TRY\" was never defined.
13667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13668 fi
13669
13670 : "${CONFIG_STATUS=./config.status}"
13671 ac_write_fail=0
13672 ac_clean_files_save=$ac_clean_files
13673 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13675 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13676 as_write_fail=0
13677 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13678 #! $SHELL
13679 # Generated by $as_me.
13680 # Run this file to recreate the current configuration.
13681 # Compiler output produced by configure, useful for debugging
13682 # configure, is in config.log if it exists.
13683
13684 debug=false
13685 ac_cs_recheck=false
13686 ac_cs_silent=false
13687
13688 SHELL=\${CONFIG_SHELL-$SHELL}
13689 export SHELL
13690 _ASEOF
13691 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13692 ## -------------------- ##
13693 ## M4sh Initialization. ##
13694 ## -------------------- ##
13695
13696 # Be more Bourne compatible
13697 DUALCASE=1; export DUALCASE # for MKS sh
13698 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13699 emulate sh
13700 NULLCMD=:
13701 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13702 # is contrary to our usage. Disable this feature.
13703 alias -g '${1+"$@"}'='"$@"'
13704 setopt NO_GLOB_SUBST
13705 else
13706 case `(set -o) 2>/dev/null` in #(
13707 *posix*) :
13708 set -o posix ;; #(
13709 *) :
13710 ;;
13711 esac
13712 fi
13713
13714
13715 as_nl='
13716 '
13717 export as_nl
13718 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13719 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13720 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13721 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13722 # Prefer a ksh shell builtin over an external printf program on Solaris,
13723 # but without wasting forks for bash or zsh.
13724 if test -z "$BASH_VERSION$ZSH_VERSION" \
13725 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13726 as_echo='print -r --'
13727 as_echo_n='print -rn --'
13728 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13729 as_echo='printf %s\n'
13730 as_echo_n='printf %s'
13731 else
13732 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13733 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13734 as_echo_n='/usr/ucb/echo -n'
13735 else
13736 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13737 as_echo_n_body='eval
13738 arg=$1;
13739 case $arg in #(
13740 *"$as_nl"*)
13741 expr "X$arg" : "X\\(.*\\)$as_nl";
13742 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13743 esac;
13744 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13745 '
13746 export as_echo_n_body
13747 as_echo_n='sh -c $as_echo_n_body as_echo'
13748 fi
13749 export as_echo_body
13750 as_echo='sh -c $as_echo_body as_echo'
13751 fi
13752
13753 # The user is always right.
13754 if test "${PATH_SEPARATOR+set}" != set; then
13755 PATH_SEPARATOR=:
13756 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13757 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13758 PATH_SEPARATOR=';'
13759 }
13760 fi
13761
13762
13763 # IFS
13764 # We need space, tab and new line, in precisely that order. Quoting is
13765 # there to prevent editors from complaining about space-tab.
13766 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13767 # splitting by setting IFS to empty value.)
13768 IFS=" "" $as_nl"
13769
13770 # Find who we are. Look in the path if we contain no directory separator.
13771 as_myself=
13772 case $0 in #((
13773 *[\\/]* ) as_myself=$0 ;;
13774 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13775 for as_dir in $PATH
13776 do
13777 IFS=$as_save_IFS
13778 test -z "$as_dir" && as_dir=.
13779 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13780 done
13781 IFS=$as_save_IFS
13782
13783 ;;
13784 esac
13785 # We did not find ourselves, most probably we were run as `sh COMMAND'
13786 # in which case we are not to be found in the path.
13787 if test "x$as_myself" = x; then
13788 as_myself=$0
13789 fi
13790 if test ! -f "$as_myself"; then
13791 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13792 exit 1
13793 fi
13794
13795 # Unset variables that we do not need and which cause bugs (e.g. in
13796 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13797 # suppresses any "Segmentation fault" message there. '((' could
13798 # trigger a bug in pdksh 5.2.14.
13799 for as_var in BASH_ENV ENV MAIL MAILPATH
13800 do eval test x\${$as_var+set} = xset \
13801 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13802 done
13803 PS1='$ '
13804 PS2='> '
13805 PS4='+ '
13806
13807 # NLS nuisances.
13808 LC_ALL=C
13809 export LC_ALL
13810 LANGUAGE=C
13811 export LANGUAGE
13812
13813 # CDPATH.
13814 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13815
13816
13817 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13818 # ----------------------------------------
13819 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13820 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13821 # script with STATUS, using 1 if that was 0.
13822 as_fn_error ()
13823 {
13824 as_status=$1; test $as_status -eq 0 && as_status=1
13825 if test "$4"; then
13826 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13827 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13828 fi
13829 $as_echo "$as_me: error: $2" >&2
13830 as_fn_exit $as_status
13831 } # as_fn_error
13832
13833
13834 # as_fn_set_status STATUS
13835 # -----------------------
13836 # Set $? to STATUS, without forking.
13837 as_fn_set_status ()
13838 {
13839 return $1
13840 } # as_fn_set_status
13841
13842 # as_fn_exit STATUS
13843 # -----------------
13844 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13845 as_fn_exit ()
13846 {
13847 set +e
13848 as_fn_set_status $1
13849 exit $1
13850 } # as_fn_exit
13851
13852 # as_fn_unset VAR
13853 # ---------------
13854 # Portably unset VAR.
13855 as_fn_unset ()
13856 {
13857 { eval $1=; unset $1;}
13858 }
13859 as_unset=as_fn_unset
13860 # as_fn_append VAR VALUE
13861 # ----------------------
13862 # Append the text in VALUE to the end of the definition contained in VAR. Take
13863 # advantage of any shell optimizations that allow amortized linear growth over
13864 # repeated appends, instead of the typical quadratic growth present in naive
13865 # implementations.
13866 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13867 eval 'as_fn_append ()
13868 {
13869 eval $1+=\$2
13870 }'
13871 else
13872 as_fn_append ()
13873 {
13874 eval $1=\$$1\$2
13875 }
13876 fi # as_fn_append
13877
13878 # as_fn_arith ARG...
13879 # ------------------
13880 # Perform arithmetic evaluation on the ARGs, and store the result in the
13881 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13882 # must be portable across $(()) and expr.
13883 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13884 eval 'as_fn_arith ()
13885 {
13886 as_val=$(( $* ))
13887 }'
13888 else
13889 as_fn_arith ()
13890 {
13891 as_val=`expr "$@" || test $? -eq 1`
13892 }
13893 fi # as_fn_arith
13894
13895
13896 if expr a : '\(a\)' >/dev/null 2>&1 &&
13897 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13898 as_expr=expr
13899 else
13900 as_expr=false
13901 fi
13902
13903 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13904 as_basename=basename
13905 else
13906 as_basename=false
13907 fi
13908
13909 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13910 as_dirname=dirname
13911 else
13912 as_dirname=false
13913 fi
13914
13915 as_me=`$as_basename -- "$0" ||
13916 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13917 X"$0" : 'X\(//\)$' \| \
13918 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13919 $as_echo X/"$0" |
13920 sed '/^.*\/\([^/][^/]*\)\/*$/{
13921 s//\1/
13922 q
13923 }
13924 /^X\/\(\/\/\)$/{
13925 s//\1/
13926 q
13927 }
13928 /^X\/\(\/\).*/{
13929 s//\1/
13930 q
13931 }
13932 s/.*/./; q'`
13933
13934 # Avoid depending upon Character Ranges.
13935 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13936 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13937 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13938 as_cr_digits='0123456789'
13939 as_cr_alnum=$as_cr_Letters$as_cr_digits
13940
13941 ECHO_C= ECHO_N= ECHO_T=
13942 case `echo -n x` in #(((((
13943 -n*)
13944 case `echo 'xy\c'` in
13945 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13946 xy) ECHO_C='\c';;
13947 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13948 ECHO_T=' ';;
13949 esac;;
13950 *)
13951 ECHO_N='-n';;
13952 esac
13953
13954 rm -f conf$$ conf$$.exe conf$$.file
13955 if test -d conf$$.dir; then
13956 rm -f conf$$.dir/conf$$.file
13957 else
13958 rm -f conf$$.dir
13959 mkdir conf$$.dir 2>/dev/null
13960 fi
13961 if (echo >conf$$.file) 2>/dev/null; then
13962 if ln -s conf$$.file conf$$ 2>/dev/null; then
13963 as_ln_s='ln -s'
13964 # ... but there are two gotchas:
13965 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13966 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13967 # In both cases, we have to default to `cp -pR'.
13968 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13969 as_ln_s='cp -pR'
13970 elif ln conf$$.file conf$$ 2>/dev/null; then
13971 as_ln_s=ln
13972 else
13973 as_ln_s='cp -pR'
13974 fi
13975 else
13976 as_ln_s='cp -pR'
13977 fi
13978 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13979 rmdir conf$$.dir 2>/dev/null
13980
13981
13982 # as_fn_mkdir_p
13983 # -------------
13984 # Create "$as_dir" as a directory, including parents if necessary.
13985 as_fn_mkdir_p ()
13986 {
13987
13988 case $as_dir in #(
13989 -*) as_dir=./$as_dir;;
13990 esac
13991 test -d "$as_dir" || eval $as_mkdir_p || {
13992 as_dirs=
13993 while :; do
13994 case $as_dir in #(
13995 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13996 *) as_qdir=$as_dir;;
13997 esac
13998 as_dirs="'$as_qdir' $as_dirs"
13999 as_dir=`$as_dirname -- "$as_dir" ||
14000 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14001 X"$as_dir" : 'X\(//\)[^/]' \| \
14002 X"$as_dir" : 'X\(//\)$' \| \
14003 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14004 $as_echo X"$as_dir" |
14005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14006 s//\1/
14007 q
14008 }
14009 /^X\(\/\/\)[^/].*/{
14010 s//\1/
14011 q
14012 }
14013 /^X\(\/\/\)$/{
14014 s//\1/
14015 q
14016 }
14017 /^X\(\/\).*/{
14018 s//\1/
14019 q
14020 }
14021 s/.*/./; q'`
14022 test -d "$as_dir" && break
14023 done
14024 test -z "$as_dirs" || eval "mkdir $as_dirs"
14025 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14026
14027
14028 } # as_fn_mkdir_p
14029 if mkdir -p . 2>/dev/null; then
14030 as_mkdir_p='mkdir -p "$as_dir"'
14031 else
14032 test -d ./-p && rmdir ./-p
14033 as_mkdir_p=false
14034 fi
14035
14036
14037 # as_fn_executable_p FILE
14038 # -----------------------
14039 # Test if FILE is an executable regular file.
14040 as_fn_executable_p ()
14041 {
14042 test -f "$1" && test -x "$1"
14043 } # as_fn_executable_p
14044 as_test_x='test -x'
14045 as_executable_p=as_fn_executable_p
14046
14047 # Sed expression to map a string onto a valid CPP name.
14048 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14049
14050 # Sed expression to map a string onto a valid variable name.
14051 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14052
14053
14054 exec 6>&1
14055 ## ----------------------------------- ##
14056 ## Main body of $CONFIG_STATUS script. ##
14057 ## ----------------------------------- ##
14058 _ASEOF
14059 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14060
14061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14062 # Save the log message, to keep $0 and so on meaningful, and to
14063 # report actual input values of CONFIG_FILES etc. instead of their
14064 # values after options handling.
14065 ac_log="
14066 This file was extended by libctf $as_me 1.2.0, which was
14067 generated by GNU Autoconf 2.69. Invocation command line was
14068
14069 CONFIG_FILES = $CONFIG_FILES
14070 CONFIG_HEADERS = $CONFIG_HEADERS
14071 CONFIG_LINKS = $CONFIG_LINKS
14072 CONFIG_COMMANDS = $CONFIG_COMMANDS
14073 $ $0 $@
14074
14075 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14076 "
14077
14078 _ACEOF
14079
14080 case $ac_config_files in *"
14081 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14082 esac
14083
14084 case $ac_config_headers in *"
14085 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14086 esac
14087
14088
14089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14090 # Files that config.status was made for.
14091 config_files="$ac_config_files"
14092 config_headers="$ac_config_headers"
14093 config_commands="$ac_config_commands"
14094
14095 _ACEOF
14096
14097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14098 ac_cs_usage="\
14099 \`$as_me' instantiates files and other configuration actions
14100 from templates according to the current configuration. Unless the files
14101 and actions are specified as TAGs, all are instantiated by default.
14102
14103 Usage: $0 [OPTION]... [TAG]...
14104
14105 -h, --help print this help, then exit
14106 -V, --version print version number and configuration settings, then exit
14107 --config print configuration, then exit
14108 -q, --quiet, --silent
14109 do not print progress messages
14110 -d, --debug don't remove temporary files
14111 --recheck update $as_me by reconfiguring in the same conditions
14112 --file=FILE[:TEMPLATE]
14113 instantiate the configuration file FILE
14114 --header=FILE[:TEMPLATE]
14115 instantiate the configuration header FILE
14116
14117 Configuration files:
14118 $config_files
14119
14120 Configuration headers:
14121 $config_headers
14122
14123 Configuration commands:
14124 $config_commands
14125
14126 Report bugs to the package provider."
14127
14128 _ACEOF
14129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14130 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14131 ac_cs_version="\\
14132 libctf config.status 1.2.0
14133 configured by $0, generated by GNU Autoconf 2.69,
14134 with options \\"\$ac_cs_config\\"
14135
14136 Copyright (C) 2012 Free Software Foundation, Inc.
14137 This config.status script is free software; the Free Software Foundation
14138 gives unlimited permission to copy, distribute and modify it."
14139
14140 ac_pwd='$ac_pwd'
14141 srcdir='$srcdir'
14142 INSTALL='$INSTALL'
14143 MKDIR_P='$MKDIR_P'
14144 AWK='$AWK'
14145 test -n "\$AWK" || AWK=awk
14146 _ACEOF
14147
14148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14149 # The default lists apply if the user does not specify any file.
14150 ac_need_defaults=:
14151 while test $# != 0
14152 do
14153 case $1 in
14154 --*=?*)
14155 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14156 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14157 ac_shift=:
14158 ;;
14159 --*=)
14160 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14161 ac_optarg=
14162 ac_shift=:
14163 ;;
14164 *)
14165 ac_option=$1
14166 ac_optarg=$2
14167 ac_shift=shift
14168 ;;
14169 esac
14170
14171 case $ac_option in
14172 # Handling of the options.
14173 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14174 ac_cs_recheck=: ;;
14175 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14176 $as_echo "$ac_cs_version"; exit ;;
14177 --config | --confi | --conf | --con | --co | --c )
14178 $as_echo "$ac_cs_config"; exit ;;
14179 --debug | --debu | --deb | --de | --d | -d )
14180 debug=: ;;
14181 --file | --fil | --fi | --f )
14182 $ac_shift
14183 case $ac_optarg in
14184 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14185 '') as_fn_error $? "missing file argument" ;;
14186 esac
14187 as_fn_append CONFIG_FILES " '$ac_optarg'"
14188 ac_need_defaults=false;;
14189 --header | --heade | --head | --hea )
14190 $ac_shift
14191 case $ac_optarg in
14192 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14193 esac
14194 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14195 ac_need_defaults=false;;
14196 --he | --h)
14197 # Conflict between --help and --header
14198 as_fn_error $? "ambiguous option: \`$1'
14199 Try \`$0 --help' for more information.";;
14200 --help | --hel | -h )
14201 $as_echo "$ac_cs_usage"; exit ;;
14202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14203 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14204 ac_cs_silent=: ;;
14205
14206 # This is an error.
14207 -*) as_fn_error $? "unrecognized option: \`$1'
14208 Try \`$0 --help' for more information." ;;
14209
14210 *) as_fn_append ac_config_targets " $1"
14211 ac_need_defaults=false ;;
14212
14213 esac
14214 shift
14215 done
14216
14217 ac_configure_extra_args=
14218
14219 if $ac_cs_silent; then
14220 exec 6>/dev/null
14221 ac_configure_extra_args="$ac_configure_extra_args --silent"
14222 fi
14223
14224 _ACEOF
14225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14226 if \$ac_cs_recheck; then
14227 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14228 shift
14229 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14230 CONFIG_SHELL='$SHELL'
14231 export CONFIG_SHELL
14232 exec "\$@"
14233 fi
14234
14235 _ACEOF
14236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14237 exec 5>>config.log
14238 {
14239 echo
14240 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14241 ## Running $as_me. ##
14242 _ASBOX
14243 $as_echo "$ac_log"
14244 } >&5
14245
14246 _ACEOF
14247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14248 #
14249 # INIT-COMMANDS
14250 #
14251 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14252
14253
14254 # The HP-UX ksh and POSIX shell print the target directory to stdout
14255 # if CDPATH is set.
14256 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14257
14258 sed_quote_subst='$sed_quote_subst'
14259 double_quote_subst='$double_quote_subst'
14260 delay_variable_subst='$delay_variable_subst'
14261 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14262 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14263 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14264 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14265 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14266 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14267 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14268 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14269 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14270 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14271 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14272 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14273 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14274 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14275 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14276 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14277 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14278 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14279 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14280 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14281 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14282 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14283 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14284 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14285 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14286 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14287 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14288 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14289 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14290 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14291 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14292 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14293 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14294 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14295 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14296 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14297 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14298 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14299 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14300 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14301 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14302 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14303 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14304 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14305 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14306 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14307 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14308 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14309 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"`'
14310 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14311 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14312 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14313 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14314 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14315 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14316 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14317 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14318 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14319 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14320 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14321 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14322 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14323 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14324 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14325 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14326 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14327 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14328 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14329 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14330 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14331 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14332 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14333 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14334 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14335 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14336 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14337 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14338 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14339 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14340 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14341 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14342 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14343 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14344 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14345 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14346 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14347 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14348 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14349 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14350 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14351 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14352 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14353 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14354 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14355 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14356 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14357 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14358 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14359 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14360 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14361 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14362 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14363 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14364 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14365 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14366 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14367 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14368 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14369 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14370 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14371 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14372 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14373 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14374 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14375 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14376 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14377 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14378 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14379 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14380 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14381
14382 LTCC='$LTCC'
14383 LTCFLAGS='$LTCFLAGS'
14384 compiler='$compiler_DEFAULT'
14385
14386 # A function that is used when there is no print builtin or printf.
14387 func_fallback_echo ()
14388 {
14389 eval 'cat <<_LTECHO_EOF
14390 \$1
14391 _LTECHO_EOF'
14392 }
14393
14394 # Quote evaled strings.
14395 for var in SHELL \
14396 ECHO \
14397 SED \
14398 GREP \
14399 EGREP \
14400 FGREP \
14401 LD \
14402 NM \
14403 LN_S \
14404 lt_SP2NL \
14405 lt_NL2SP \
14406 reload_flag \
14407 OBJDUMP \
14408 deplibs_check_method \
14409 file_magic_cmd \
14410 AR \
14411 AR_FLAGS \
14412 STRIP \
14413 RANLIB \
14414 CC \
14415 CFLAGS \
14416 compiler \
14417 lt_cv_sys_global_symbol_pipe \
14418 lt_cv_sys_global_symbol_to_cdecl \
14419 lt_cv_sys_global_symbol_to_c_name_address \
14420 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14421 lt_prog_compiler_no_builtin_flag \
14422 lt_prog_compiler_wl \
14423 lt_prog_compiler_pic \
14424 lt_prog_compiler_static \
14425 lt_cv_prog_compiler_c_o \
14426 need_locks \
14427 DSYMUTIL \
14428 NMEDIT \
14429 LIPO \
14430 OTOOL \
14431 OTOOL64 \
14432 shrext_cmds \
14433 export_dynamic_flag_spec \
14434 whole_archive_flag_spec \
14435 compiler_needs_object \
14436 with_gnu_ld \
14437 allow_undefined_flag \
14438 no_undefined_flag \
14439 hardcode_libdir_flag_spec \
14440 hardcode_libdir_flag_spec_ld \
14441 hardcode_libdir_separator \
14442 fix_srcfile_path \
14443 exclude_expsyms \
14444 include_expsyms \
14445 file_list_spec \
14446 variables_saved_for_relink \
14447 libname_spec \
14448 library_names_spec \
14449 soname_spec \
14450 install_override_mode \
14451 finish_eval \
14452 old_striplib \
14453 striplib; do
14454 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14455 *[\\\\\\\`\\"\\\$]*)
14456 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14457 ;;
14458 *)
14459 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14460 ;;
14461 esac
14462 done
14463
14464 # Double-quote double-evaled strings.
14465 for var in reload_cmds \
14466 old_postinstall_cmds \
14467 old_postuninstall_cmds \
14468 old_archive_cmds \
14469 extract_expsyms_cmds \
14470 old_archive_from_new_cmds \
14471 old_archive_from_expsyms_cmds \
14472 archive_cmds \
14473 archive_expsym_cmds \
14474 module_cmds \
14475 module_expsym_cmds \
14476 export_symbols_cmds \
14477 prelink_cmds \
14478 postinstall_cmds \
14479 postuninstall_cmds \
14480 finish_cmds \
14481 sys_lib_search_path_spec \
14482 sys_lib_dlsearch_path_spec; do
14483 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14484 *[\\\\\\\`\\"\\\$]*)
14485 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14486 ;;
14487 *)
14488 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14489 ;;
14490 esac
14491 done
14492
14493 ac_aux_dir='$ac_aux_dir'
14494 xsi_shell='$xsi_shell'
14495 lt_shell_append='$lt_shell_append'
14496
14497 # See if we are running on zsh, and set the options which allow our
14498 # commands through without removal of \ escapes INIT.
14499 if test -n "\${ZSH_VERSION+set}" ; then
14500 setopt NO_GLOB_SUBST
14501 fi
14502
14503
14504 PACKAGE='$PACKAGE'
14505 VERSION='$VERSION'
14506 TIMESTAMP='$TIMESTAMP'
14507 RM='$RM'
14508 ofile='$ofile'
14509
14510
14511
14512
14513 _ACEOF
14514
14515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14516
14517 # Handling of arguments.
14518 for ac_config_target in $ac_config_targets
14519 do
14520 case $ac_config_target in
14521 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14522 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14523 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14524 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14525
14526 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14527 esac
14528 done
14529
14530
14531 # If the user did not use the arguments to specify the items to instantiate,
14532 # then the envvar interface is used. Set only those that are not.
14533 # We use the long form for the default assignment because of an extremely
14534 # bizarre bug on SunOS 4.1.3.
14535 if $ac_need_defaults; then
14536 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14537 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14538 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14539 fi
14540
14541 # Have a temporary directory for convenience. Make it in the build tree
14542 # simply because there is no reason against having it here, and in addition,
14543 # creating and moving files from /tmp can sometimes cause problems.
14544 # Hook for its removal unless debugging.
14545 # Note that there is a small window in which the directory will not be cleaned:
14546 # after its creation but before its name has been assigned to `$tmp'.
14547 $debug ||
14548 {
14549 tmp= ac_tmp=
14550 trap 'exit_status=$?
14551 : "${ac_tmp:=$tmp}"
14552 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14553 ' 0
14554 trap 'as_fn_exit 1' 1 2 13 15
14555 }
14556 # Create a (secure) tmp directory for tmp files.
14557
14558 {
14559 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14560 test -d "$tmp"
14561 } ||
14562 {
14563 tmp=./conf$$-$RANDOM
14564 (umask 077 && mkdir "$tmp")
14565 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14566 ac_tmp=$tmp
14567
14568 # Set up the scripts for CONFIG_FILES section.
14569 # No need to generate them if there are no CONFIG_FILES.
14570 # This happens for instance with `./config.status config.h'.
14571 if test -n "$CONFIG_FILES"; then
14572
14573
14574 ac_cr=`echo X | tr X '\015'`
14575 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14576 # But we know of no other shell where ac_cr would be empty at this
14577 # point, so we can use a bashism as a fallback.
14578 if test "x$ac_cr" = x; then
14579 eval ac_cr=\$\'\\r\'
14580 fi
14581 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14582 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14583 ac_cs_awk_cr='\\r'
14584 else
14585 ac_cs_awk_cr=$ac_cr
14586 fi
14587
14588 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14589 _ACEOF
14590
14591
14592 {
14593 echo "cat >conf$$subs.awk <<_ACEOF" &&
14594 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14595 echo "_ACEOF"
14596 } >conf$$subs.sh ||
14597 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14598 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14599 ac_delim='%!_!# '
14600 for ac_last_try in false false false false false :; do
14601 . ./conf$$subs.sh ||
14602 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14603
14604 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14605 if test $ac_delim_n = $ac_delim_num; then
14606 break
14607 elif $ac_last_try; then
14608 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14609 else
14610 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14611 fi
14612 done
14613 rm -f conf$$subs.sh
14614
14615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14616 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14617 _ACEOF
14618 sed -n '
14619 h
14620 s/^/S["/; s/!.*/"]=/
14621 p
14622 g
14623 s/^[^!]*!//
14624 :repl
14625 t repl
14626 s/'"$ac_delim"'$//
14627 t delim
14628 :nl
14629 h
14630 s/\(.\{148\}\)..*/\1/
14631 t more1
14632 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14633 p
14634 n
14635 b repl
14636 :more1
14637 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14638 p
14639 g
14640 s/.\{148\}//
14641 t nl
14642 :delim
14643 h
14644 s/\(.\{148\}\)..*/\1/
14645 t more2
14646 s/["\\]/\\&/g; s/^/"/; s/$/"/
14647 p
14648 b
14649 :more2
14650 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14651 p
14652 g
14653 s/.\{148\}//
14654 t delim
14655 ' <conf$$subs.awk | sed '
14656 /^[^""]/{
14657 N
14658 s/\n//
14659 }
14660 ' >>$CONFIG_STATUS || ac_write_fail=1
14661 rm -f conf$$subs.awk
14662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14663 _ACAWK
14664 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14665 for (key in S) S_is_set[key] = 1
14666 FS = "\a"
14667
14668 }
14669 {
14670 line = $ 0
14671 nfields = split(line, field, "@")
14672 substed = 0
14673 len = length(field[1])
14674 for (i = 2; i < nfields; i++) {
14675 key = field[i]
14676 keylen = length(key)
14677 if (S_is_set[key]) {
14678 value = S[key]
14679 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14680 len += length(value) + length(field[++i])
14681 substed = 1
14682 } else
14683 len += 1 + keylen
14684 }
14685
14686 print line
14687 }
14688
14689 _ACAWK
14690 _ACEOF
14691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14692 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14693 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14694 else
14695 cat
14696 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14697 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14698 _ACEOF
14699
14700 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14701 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14702 # trailing colons and then remove the whole line if VPATH becomes empty
14703 # (actually we leave an empty line to preserve line numbers).
14704 if test "x$srcdir" = x.; then
14705 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14706 h
14707 s///
14708 s/^/:/
14709 s/[ ]*$/:/
14710 s/:\$(srcdir):/:/g
14711 s/:\${srcdir}:/:/g
14712 s/:@srcdir@:/:/g
14713 s/^:*//
14714 s/:*$//
14715 x
14716 s/\(=[ ]*\).*/\1/
14717 G
14718 s/\n//
14719 s/^[^=]*=[ ]*$//
14720 }'
14721 fi
14722
14723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14724 fi # test -n "$CONFIG_FILES"
14725
14726 # Set up the scripts for CONFIG_HEADERS section.
14727 # No need to generate them if there are no CONFIG_HEADERS.
14728 # This happens for instance with `./config.status Makefile'.
14729 if test -n "$CONFIG_HEADERS"; then
14730 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14731 BEGIN {
14732 _ACEOF
14733
14734 # Transform confdefs.h into an awk script `defines.awk', embedded as
14735 # here-document in config.status, that substitutes the proper values into
14736 # config.h.in to produce config.h.
14737
14738 # Create a delimiter string that does not exist in confdefs.h, to ease
14739 # handling of long lines.
14740 ac_delim='%!_!# '
14741 for ac_last_try in false false :; do
14742 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14743 if test -z "$ac_tt"; then
14744 break
14745 elif $ac_last_try; then
14746 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14747 else
14748 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14749 fi
14750 done
14751
14752 # For the awk script, D is an array of macro values keyed by name,
14753 # likewise P contains macro parameters if any. Preserve backslash
14754 # newline sequences.
14755
14756 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14757 sed -n '
14758 s/.\{148\}/&'"$ac_delim"'/g
14759 t rset
14760 :rset
14761 s/^[ ]*#[ ]*define[ ][ ]*/ /
14762 t def
14763 d
14764 :def
14765 s/\\$//
14766 t bsnl
14767 s/["\\]/\\&/g
14768 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14769 D["\1"]=" \3"/p
14770 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14771 d
14772 :bsnl
14773 s/["\\]/\\&/g
14774 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14775 D["\1"]=" \3\\\\\\n"\\/p
14776 t cont
14777 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14778 t cont
14779 d
14780 :cont
14781 n
14782 s/.\{148\}/&'"$ac_delim"'/g
14783 t clear
14784 :clear
14785 s/\\$//
14786 t bsnlc
14787 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14788 d
14789 :bsnlc
14790 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14791 b cont
14792 ' <confdefs.h | sed '
14793 s/'"$ac_delim"'/"\\\
14794 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14795
14796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14797 for (key in D) D_is_set[key] = 1
14798 FS = "\a"
14799 }
14800 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14801 line = \$ 0
14802 split(line, arg, " ")
14803 if (arg[1] == "#") {
14804 defundef = arg[2]
14805 mac1 = arg[3]
14806 } else {
14807 defundef = substr(arg[1], 2)
14808 mac1 = arg[2]
14809 }
14810 split(mac1, mac2, "(") #)
14811 macro = mac2[1]
14812 prefix = substr(line, 1, index(line, defundef) - 1)
14813 if (D_is_set[macro]) {
14814 # Preserve the white space surrounding the "#".
14815 print prefix "define", macro P[macro] D[macro]
14816 next
14817 } else {
14818 # Replace #undef with comments. This is necessary, for example,
14819 # in the case of _POSIX_SOURCE, which is predefined and required
14820 # on some systems where configure will not decide to define it.
14821 if (defundef == "undef") {
14822 print "/*", prefix defundef, macro, "*/"
14823 next
14824 }
14825 }
14826 }
14827 { print }
14828 _ACAWK
14829 _ACEOF
14830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14831 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14832 fi # test -n "$CONFIG_HEADERS"
14833
14834
14835 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14836 shift
14837 for ac_tag
14838 do
14839 case $ac_tag in
14840 :[FHLC]) ac_mode=$ac_tag; continue;;
14841 esac
14842 case $ac_mode$ac_tag in
14843 :[FHL]*:*);;
14844 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14845 :[FH]-) ac_tag=-:-;;
14846 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14847 esac
14848 ac_save_IFS=$IFS
14849 IFS=:
14850 set x $ac_tag
14851 IFS=$ac_save_IFS
14852 shift
14853 ac_file=$1
14854 shift
14855
14856 case $ac_mode in
14857 :L) ac_source=$1;;
14858 :[FH])
14859 ac_file_inputs=
14860 for ac_f
14861 do
14862 case $ac_f in
14863 -) ac_f="$ac_tmp/stdin";;
14864 *) # Look for the file first in the build tree, then in the source tree
14865 # (if the path is not absolute). The absolute path cannot be DOS-style,
14866 # because $ac_f cannot contain `:'.
14867 test -f "$ac_f" ||
14868 case $ac_f in
14869 [\\/$]*) false;;
14870 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14871 esac ||
14872 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14873 esac
14874 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14875 as_fn_append ac_file_inputs " '$ac_f'"
14876 done
14877
14878 # Let's still pretend it is `configure' which instantiates (i.e., don't
14879 # use $as_me), people would be surprised to read:
14880 # /* config.h. Generated by config.status. */
14881 configure_input='Generated from '`
14882 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14883 `' by configure.'
14884 if test x"$ac_file" != x-; then
14885 configure_input="$ac_file. $configure_input"
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14887 $as_echo "$as_me: creating $ac_file" >&6;}
14888 fi
14889 # Neutralize special characters interpreted by sed in replacement strings.
14890 case $configure_input in #(
14891 *\&* | *\|* | *\\* )
14892 ac_sed_conf_input=`$as_echo "$configure_input" |
14893 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14894 *) ac_sed_conf_input=$configure_input;;
14895 esac
14896
14897 case $ac_tag in
14898 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14899 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14900 esac
14901 ;;
14902 esac
14903
14904 ac_dir=`$as_dirname -- "$ac_file" ||
14905 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14906 X"$ac_file" : 'X\(//\)[^/]' \| \
14907 X"$ac_file" : 'X\(//\)$' \| \
14908 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14909 $as_echo X"$ac_file" |
14910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14911 s//\1/
14912 q
14913 }
14914 /^X\(\/\/\)[^/].*/{
14915 s//\1/
14916 q
14917 }
14918 /^X\(\/\/\)$/{
14919 s//\1/
14920 q
14921 }
14922 /^X\(\/\).*/{
14923 s//\1/
14924 q
14925 }
14926 s/.*/./; q'`
14927 as_dir="$ac_dir"; as_fn_mkdir_p
14928 ac_builddir=.
14929
14930 case "$ac_dir" in
14931 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14932 *)
14933 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14934 # A ".." for each directory in $ac_dir_suffix.
14935 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14936 case $ac_top_builddir_sub in
14937 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14938 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14939 esac ;;
14940 esac
14941 ac_abs_top_builddir=$ac_pwd
14942 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14943 # for backward compatibility:
14944 ac_top_builddir=$ac_top_build_prefix
14945
14946 case $srcdir in
14947 .) # We are building in place.
14948 ac_srcdir=.
14949 ac_top_srcdir=$ac_top_builddir_sub
14950 ac_abs_top_srcdir=$ac_pwd ;;
14951 [\\/]* | ?:[\\/]* ) # Absolute name.
14952 ac_srcdir=$srcdir$ac_dir_suffix;
14953 ac_top_srcdir=$srcdir
14954 ac_abs_top_srcdir=$srcdir ;;
14955 *) # Relative name.
14956 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14957 ac_top_srcdir=$ac_top_build_prefix$srcdir
14958 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14959 esac
14960 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14961
14962
14963 case $ac_mode in
14964 :F)
14965 #
14966 # CONFIG_FILE
14967 #
14968
14969 case $INSTALL in
14970 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14971 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14972 esac
14973 ac_MKDIR_P=$MKDIR_P
14974 case $MKDIR_P in
14975 [\\/$]* | ?:[\\/]* ) ;;
14976 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14977 esac
14978 _ACEOF
14979
14980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14981 # If the template does not know about datarootdir, expand it.
14982 # FIXME: This hack should be removed a few years after 2.60.
14983 ac_datarootdir_hack=; ac_datarootdir_seen=
14984 ac_sed_dataroot='
14985 /datarootdir/ {
14986 p
14987 q
14988 }
14989 /@datadir@/p
14990 /@docdir@/p
14991 /@infodir@/p
14992 /@localedir@/p
14993 /@mandir@/p'
14994 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14995 *datarootdir*) ac_datarootdir_seen=yes;;
14996 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14998 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14999 _ACEOF
15000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15001 ac_datarootdir_hack='
15002 s&@datadir@&$datadir&g
15003 s&@docdir@&$docdir&g
15004 s&@infodir@&$infodir&g
15005 s&@localedir@&$localedir&g
15006 s&@mandir@&$mandir&g
15007 s&\\\${datarootdir}&$datarootdir&g' ;;
15008 esac
15009 _ACEOF
15010
15011 # Neutralize VPATH when `$srcdir' = `.'.
15012 # Shell code in configure.ac might set extrasub.
15013 # FIXME: do we really want to maintain this feature?
15014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15015 ac_sed_extra="$ac_vpsub
15016 $extrasub
15017 _ACEOF
15018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15019 :t
15020 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15021 s|@configure_input@|$ac_sed_conf_input|;t t
15022 s&@top_builddir@&$ac_top_builddir_sub&;t t
15023 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15024 s&@srcdir@&$ac_srcdir&;t t
15025 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15026 s&@top_srcdir@&$ac_top_srcdir&;t t
15027 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15028 s&@builddir@&$ac_builddir&;t t
15029 s&@abs_builddir@&$ac_abs_builddir&;t t
15030 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15031 s&@INSTALL@&$ac_INSTALL&;t t
15032 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15033 $ac_datarootdir_hack
15034 "
15035 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15036 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15037
15038 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15039 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15040 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15041 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15043 which seems to be undefined. Please make sure it is defined" >&5
15044 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15045 which seems to be undefined. Please make sure it is defined" >&2;}
15046
15047 rm -f "$ac_tmp/stdin"
15048 case $ac_file in
15049 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15050 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15051 esac \
15052 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15053 ;;
15054 :H)
15055 #
15056 # CONFIG_HEADER
15057 #
15058 if test x"$ac_file" != x-; then
15059 {
15060 $as_echo "/* $configure_input */" \
15061 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15062 } >"$ac_tmp/config.h" \
15063 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15064 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15066 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15067 else
15068 rm -f "$ac_file"
15069 mv "$ac_tmp/config.h" "$ac_file" \
15070 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15071 fi
15072 else
15073 $as_echo "/* $configure_input */" \
15074 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15075 || as_fn_error $? "could not create -" "$LINENO" 5
15076 fi
15077 # Compute "$ac_file"'s index in $config_headers.
15078 _am_arg="$ac_file"
15079 _am_stamp_count=1
15080 for _am_header in $config_headers :; do
15081 case $_am_header in
15082 $_am_arg | $_am_arg:* )
15083 break ;;
15084 * )
15085 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15086 esac
15087 done
15088 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15089 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15090 X"$_am_arg" : 'X\(//\)[^/]' \| \
15091 X"$_am_arg" : 'X\(//\)$' \| \
15092 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15093 $as_echo X"$_am_arg" |
15094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15095 s//\1/
15096 q
15097 }
15098 /^X\(\/\/\)[^/].*/{
15099 s//\1/
15100 q
15101 }
15102 /^X\(\/\/\)$/{
15103 s//\1/
15104 q
15105 }
15106 /^X\(\/\).*/{
15107 s//\1/
15108 q
15109 }
15110 s/.*/./; q'`/stamp-h$_am_stamp_count
15111 ;;
15112
15113 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15114 $as_echo "$as_me: executing $ac_file commands" >&6;}
15115 ;;
15116 esac
15117
15118
15119 case $ac_file$ac_mode in
15120 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15121 # Older Autoconf quotes --file arguments for eval, but not when files
15122 # are listed without --file. Let's play safe and only enable the eval
15123 # if we detect the quoting.
15124 case $CONFIG_FILES in
15125 *\'*) eval set x "$CONFIG_FILES" ;;
15126 *) set x $CONFIG_FILES ;;
15127 esac
15128 shift
15129 for mf
15130 do
15131 # Strip MF so we end up with the name of the file.
15132 mf=`echo "$mf" | sed -e 's/:.*$//'`
15133 # Check whether this is an Automake generated Makefile or not.
15134 # We used to match only the files named 'Makefile.in', but
15135 # some people rename them; so instead we look at the file content.
15136 # Grep'ing the first line is not enough: some people post-process
15137 # each Makefile.in and add a new line on top of each file to say so.
15138 # Grep'ing the whole file is not good either: AIX grep has a line
15139 # limit of 2048, but all sed's we know have understand at least 4000.
15140 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15141 dirpart=`$as_dirname -- "$mf" ||
15142 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15143 X"$mf" : 'X\(//\)[^/]' \| \
15144 X"$mf" : 'X\(//\)$' \| \
15145 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15146 $as_echo X"$mf" |
15147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15148 s//\1/
15149 q
15150 }
15151 /^X\(\/\/\)[^/].*/{
15152 s//\1/
15153 q
15154 }
15155 /^X\(\/\/\)$/{
15156 s//\1/
15157 q
15158 }
15159 /^X\(\/\).*/{
15160 s//\1/
15161 q
15162 }
15163 s/.*/./; q'`
15164 else
15165 continue
15166 fi
15167 # Extract the definition of DEPDIR, am__include, and am__quote
15168 # from the Makefile without running 'make'.
15169 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15170 test -z "$DEPDIR" && continue
15171 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15172 test -z "$am__include" && continue
15173 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15174 # Find all dependency output files, they are included files with
15175 # $(DEPDIR) in their names. We invoke sed twice because it is the
15176 # simplest approach to changing $(DEPDIR) to its actual value in the
15177 # expansion.
15178 for file in `sed -n "
15179 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15180 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15181 # Make sure the directory exists.
15182 test -f "$dirpart/$file" && continue
15183 fdir=`$as_dirname -- "$file" ||
15184 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15185 X"$file" : 'X\(//\)[^/]' \| \
15186 X"$file" : 'X\(//\)$' \| \
15187 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15188 $as_echo X"$file" |
15189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15190 s//\1/
15191 q
15192 }
15193 /^X\(\/\/\)[^/].*/{
15194 s//\1/
15195 q
15196 }
15197 /^X\(\/\/\)$/{
15198 s//\1/
15199 q
15200 }
15201 /^X\(\/\).*/{
15202 s//\1/
15203 q
15204 }
15205 s/.*/./; q'`
15206 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15207 # echo "creating $dirpart/$file"
15208 echo '# dummy' > "$dirpart/$file"
15209 done
15210 done
15211 }
15212 ;;
15213 "libtool":C)
15214
15215 # See if we are running on zsh, and set the options which allow our
15216 # commands through without removal of \ escapes.
15217 if test -n "${ZSH_VERSION+set}" ; then
15218 setopt NO_GLOB_SUBST
15219 fi
15220
15221 cfgfile="${ofile}T"
15222 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15223 $RM "$cfgfile"
15224
15225 cat <<_LT_EOF >> "$cfgfile"
15226 #! $SHELL
15227
15228 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15229 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15230 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15231 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15232 #
15233 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15234 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15235 # Written by Gordon Matzigkeit, 1996
15236 #
15237 # This file is part of GNU Libtool.
15238 #
15239 # GNU Libtool is free software; you can redistribute it and/or
15240 # modify it under the terms of the GNU General Public License as
15241 # published by the Free Software Foundation; either version 2 of
15242 # the License, or (at your option) any later version.
15243 #
15244 # As a special exception to the GNU General Public License,
15245 # if you distribute this file as part of a program or library that
15246 # is built using GNU Libtool, you may include this file under the
15247 # same distribution terms that you use for the rest of that program.
15248 #
15249 # GNU Libtool is distributed in the hope that it will be useful,
15250 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15251 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15252 # GNU General Public License for more details.
15253 #
15254 # You should have received a copy of the GNU General Public License
15255 # along with GNU Libtool; see the file COPYING. If not, a copy
15256 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15257 # obtained by writing to the Free Software Foundation, Inc.,
15258 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15259
15260
15261 # The names of the tagged configurations supported by this script.
15262 available_tags=""
15263
15264 # ### BEGIN LIBTOOL CONFIG
15265
15266 # Whether or not to build shared libraries.
15267 build_libtool_libs=$enable_shared
15268
15269 # Which release of libtool.m4 was used?
15270 macro_version=$macro_version
15271 macro_revision=$macro_revision
15272
15273 # Whether or not to build static libraries.
15274 build_old_libs=$enable_static
15275
15276 # What type of objects to build.
15277 pic_mode=$pic_mode
15278
15279 # Whether or not to optimize for fast installation.
15280 fast_install=$enable_fast_install
15281
15282 # Shell to use when invoking shell scripts.
15283 SHELL=$lt_SHELL
15284
15285 # An echo program that protects backslashes.
15286 ECHO=$lt_ECHO
15287
15288 # The host system.
15289 host_alias=$host_alias
15290 host=$host
15291 host_os=$host_os
15292
15293 # The build system.
15294 build_alias=$build_alias
15295 build=$build
15296 build_os=$build_os
15297
15298 # A sed program that does not truncate output.
15299 SED=$lt_SED
15300
15301 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15302 Xsed="\$SED -e 1s/^X//"
15303
15304 # A grep program that handles long lines.
15305 GREP=$lt_GREP
15306
15307 # An ERE matcher.
15308 EGREP=$lt_EGREP
15309
15310 # A literal string matcher.
15311 FGREP=$lt_FGREP
15312
15313 # A BSD- or MS-compatible name lister.
15314 NM=$lt_NM
15315
15316 # Whether we need soft or hard links.
15317 LN_S=$lt_LN_S
15318
15319 # What is the maximum length of a command?
15320 max_cmd_len=$max_cmd_len
15321
15322 # Object file suffix (normally "o").
15323 objext=$ac_objext
15324
15325 # Executable file suffix (normally "").
15326 exeext=$exeext
15327
15328 # whether the shell understands "unset".
15329 lt_unset=$lt_unset
15330
15331 # turn spaces into newlines.
15332 SP2NL=$lt_lt_SP2NL
15333
15334 # turn newlines into spaces.
15335 NL2SP=$lt_lt_NL2SP
15336
15337 # An object symbol dumper.
15338 OBJDUMP=$lt_OBJDUMP
15339
15340 # Method to check whether dependent libraries are shared objects.
15341 deplibs_check_method=$lt_deplibs_check_method
15342
15343 # Command to use when deplibs_check_method == "file_magic".
15344 file_magic_cmd=$lt_file_magic_cmd
15345
15346 # The archiver.
15347 AR=$lt_AR
15348 AR_FLAGS=$lt_AR_FLAGS
15349
15350 # A symbol stripping program.
15351 STRIP=$lt_STRIP
15352
15353 # Commands used to install an old-style archive.
15354 RANLIB=$lt_RANLIB
15355 old_postinstall_cmds=$lt_old_postinstall_cmds
15356 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15357
15358 # Whether to use a lock for old archive extraction.
15359 lock_old_archive_extraction=$lock_old_archive_extraction
15360
15361 # A C compiler.
15362 LTCC=$lt_CC
15363
15364 # LTCC compiler flags.
15365 LTCFLAGS=$lt_CFLAGS
15366
15367 # Take the output of nm and produce a listing of raw symbols and C names.
15368 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15369
15370 # Transform the output of nm in a proper C declaration.
15371 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15372
15373 # Transform the output of nm in a C name address pair.
15374 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15375
15376 # Transform the output of nm in a C name address pair when lib prefix is needed.
15377 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15378
15379 # The name of the directory that contains temporary libtool files.
15380 objdir=$objdir
15381
15382 # Used to examine libraries when file_magic_cmd begins with "file".
15383 MAGIC_CMD=$MAGIC_CMD
15384
15385 # Must we lock files when doing compilation?
15386 need_locks=$lt_need_locks
15387
15388 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15389 DSYMUTIL=$lt_DSYMUTIL
15390
15391 # Tool to change global to local symbols on Mac OS X.
15392 NMEDIT=$lt_NMEDIT
15393
15394 # Tool to manipulate fat objects and archives on Mac OS X.
15395 LIPO=$lt_LIPO
15396
15397 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15398 OTOOL=$lt_OTOOL
15399
15400 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15401 OTOOL64=$lt_OTOOL64
15402
15403 # Old archive suffix (normally "a").
15404 libext=$libext
15405
15406 # Shared library suffix (normally ".so").
15407 shrext_cmds=$lt_shrext_cmds
15408
15409 # The commands to extract the exported symbol list from a shared archive.
15410 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15411
15412 # Variables whose values should be saved in libtool wrapper scripts and
15413 # restored at link time.
15414 variables_saved_for_relink=$lt_variables_saved_for_relink
15415
15416 # Do we need the "lib" prefix for modules?
15417 need_lib_prefix=$need_lib_prefix
15418
15419 # Do we need a version for libraries?
15420 need_version=$need_version
15421
15422 # Library versioning type.
15423 version_type=$version_type
15424
15425 # Shared library runtime path variable.
15426 runpath_var=$runpath_var
15427
15428 # Shared library path variable.
15429 shlibpath_var=$shlibpath_var
15430
15431 # Is shlibpath searched before the hard-coded library search path?
15432 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15433
15434 # Format of library name prefix.
15435 libname_spec=$lt_libname_spec
15436
15437 # List of archive names. First name is the real one, the rest are links.
15438 # The last name is the one that the linker finds with -lNAME
15439 library_names_spec=$lt_library_names_spec
15440
15441 # The coded name of the library, if different from the real name.
15442 soname_spec=$lt_soname_spec
15443
15444 # Permission mode override for installation of shared libraries.
15445 install_override_mode=$lt_install_override_mode
15446
15447 # Command to use after installation of a shared archive.
15448 postinstall_cmds=$lt_postinstall_cmds
15449
15450 # Command to use after uninstallation of a shared archive.
15451 postuninstall_cmds=$lt_postuninstall_cmds
15452
15453 # Commands used to finish a libtool library installation in a directory.
15454 finish_cmds=$lt_finish_cmds
15455
15456 # As "finish_cmds", except a single script fragment to be evaled but
15457 # not shown.
15458 finish_eval=$lt_finish_eval
15459
15460 # Whether we should hardcode library paths into libraries.
15461 hardcode_into_libs=$hardcode_into_libs
15462
15463 # Compile-time system search path for libraries.
15464 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15465
15466 # Run-time system search path for libraries.
15467 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15468
15469 # Whether dlopen is supported.
15470 dlopen_support=$enable_dlopen
15471
15472 # Whether dlopen of programs is supported.
15473 dlopen_self=$enable_dlopen_self
15474
15475 # Whether dlopen of statically linked programs is supported.
15476 dlopen_self_static=$enable_dlopen_self_static
15477
15478 # Commands to strip libraries.
15479 old_striplib=$lt_old_striplib
15480 striplib=$lt_striplib
15481
15482
15483 # The linker used to build libraries.
15484 LD=$lt_LD
15485
15486 # How to create reloadable object files.
15487 reload_flag=$lt_reload_flag
15488 reload_cmds=$lt_reload_cmds
15489
15490 # Commands used to build an old-style archive.
15491 old_archive_cmds=$lt_old_archive_cmds
15492
15493 # A language specific compiler.
15494 CC=$lt_compiler
15495
15496 # Is the compiler the GNU compiler?
15497 with_gcc=$GCC
15498
15499 # Compiler flag to turn off builtin functions.
15500 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15501
15502 # How to pass a linker flag through the compiler.
15503 wl=$lt_lt_prog_compiler_wl
15504
15505 # Additional compiler flags for building library objects.
15506 pic_flag=$lt_lt_prog_compiler_pic
15507
15508 # Compiler flag to prevent dynamic linking.
15509 link_static_flag=$lt_lt_prog_compiler_static
15510
15511 # Does compiler simultaneously support -c and -o options?
15512 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15513
15514 # Whether or not to add -lc for building shared libraries.
15515 build_libtool_need_lc=$archive_cmds_need_lc
15516
15517 # Whether or not to disallow shared libs when runtime libs are static.
15518 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15519
15520 # Compiler flag to allow reflexive dlopens.
15521 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15522
15523 # Compiler flag to generate shared objects directly from archives.
15524 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15525
15526 # Whether the compiler copes with passing no objects directly.
15527 compiler_needs_object=$lt_compiler_needs_object
15528
15529 # Create an old-style archive from a shared archive.
15530 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15531
15532 # Create a temporary old-style archive to link instead of a shared archive.
15533 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15534
15535 # Commands used to build a shared archive.
15536 archive_cmds=$lt_archive_cmds
15537 archive_expsym_cmds=$lt_archive_expsym_cmds
15538
15539 # Commands used to build a loadable module if different from building
15540 # a shared archive.
15541 module_cmds=$lt_module_cmds
15542 module_expsym_cmds=$lt_module_expsym_cmds
15543
15544 # Whether we are building with GNU ld or not.
15545 with_gnu_ld=$lt_with_gnu_ld
15546
15547 # Flag that allows shared libraries with undefined symbols to be built.
15548 allow_undefined_flag=$lt_allow_undefined_flag
15549
15550 # Flag that enforces no undefined symbols.
15551 no_undefined_flag=$lt_no_undefined_flag
15552
15553 # Flag to hardcode \$libdir into a binary during linking.
15554 # This must work even if \$libdir does not exist
15555 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15556
15557 # If ld is used when linking, flag to hardcode \$libdir into a binary
15558 # during linking. This must work even if \$libdir does not exist.
15559 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15560
15561 # Whether we need a single "-rpath" flag with a separated argument.
15562 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15563
15564 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15565 # DIR into the resulting binary.
15566 hardcode_direct=$hardcode_direct
15567
15568 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15569 # DIR into the resulting binary and the resulting library dependency is
15570 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15571 # library is relocated.
15572 hardcode_direct_absolute=$hardcode_direct_absolute
15573
15574 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15575 # into the resulting binary.
15576 hardcode_minus_L=$hardcode_minus_L
15577
15578 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15579 # into the resulting binary.
15580 hardcode_shlibpath_var=$hardcode_shlibpath_var
15581
15582 # Set to "yes" if building a shared library automatically hardcodes DIR
15583 # into the library and all subsequent libraries and executables linked
15584 # against it.
15585 hardcode_automatic=$hardcode_automatic
15586
15587 # Set to yes if linker adds runtime paths of dependent libraries
15588 # to runtime path list.
15589 inherit_rpath=$inherit_rpath
15590
15591 # Whether libtool must link a program against all its dependency libraries.
15592 link_all_deplibs=$link_all_deplibs
15593
15594 # Fix the shell variable \$srcfile for the compiler.
15595 fix_srcfile_path=$lt_fix_srcfile_path
15596
15597 # Set to "yes" if exported symbols are required.
15598 always_export_symbols=$always_export_symbols
15599
15600 # The commands to list exported symbols.
15601 export_symbols_cmds=$lt_export_symbols_cmds
15602
15603 # Symbols that should not be listed in the preloaded symbols.
15604 exclude_expsyms=$lt_exclude_expsyms
15605
15606 # Symbols that must always be exported.
15607 include_expsyms=$lt_include_expsyms
15608
15609 # Commands necessary for linking programs (against libraries) with templates.
15610 prelink_cmds=$lt_prelink_cmds
15611
15612 # Specify filename containing input files.
15613 file_list_spec=$lt_file_list_spec
15614
15615 # How to hardcode a shared library path into an executable.
15616 hardcode_action=$hardcode_action
15617
15618 # ### END LIBTOOL CONFIG
15619
15620 _LT_EOF
15621
15622 case $host_os in
15623 aix3*)
15624 cat <<\_LT_EOF >> "$cfgfile"
15625 # AIX sometimes has problems with the GCC collect2 program. For some
15626 # reason, if we set the COLLECT_NAMES environment variable, the problems
15627 # vanish in a puff of smoke.
15628 if test "X${COLLECT_NAMES+set}" != Xset; then
15629 COLLECT_NAMES=
15630 export COLLECT_NAMES
15631 fi
15632 _LT_EOF
15633 ;;
15634 esac
15635
15636
15637 ltmain="$ac_aux_dir/ltmain.sh"
15638
15639
15640 # We use sed instead of cat because bash on DJGPP gets confused if
15641 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15642 # text mode, it properly converts lines to CR/LF. This bash problem
15643 # is reportedly fixed, but why not run on old versions too?
15644 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15645 || (rm -f "$cfgfile"; exit 1)
15646
15647 case $xsi_shell in
15648 yes)
15649 cat << \_LT_EOF >> "$cfgfile"
15650
15651 # func_dirname file append nondir_replacement
15652 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15653 # otherwise set result to NONDIR_REPLACEMENT.
15654 func_dirname ()
15655 {
15656 case ${1} in
15657 */*) func_dirname_result="${1%/*}${2}" ;;
15658 * ) func_dirname_result="${3}" ;;
15659 esac
15660 }
15661
15662 # func_basename file
15663 func_basename ()
15664 {
15665 func_basename_result="${1##*/}"
15666 }
15667
15668 # func_dirname_and_basename file append nondir_replacement
15669 # perform func_basename and func_dirname in a single function
15670 # call:
15671 # dirname: Compute the dirname of FILE. If nonempty,
15672 # add APPEND to the result, otherwise set result
15673 # to NONDIR_REPLACEMENT.
15674 # value returned in "$func_dirname_result"
15675 # basename: Compute filename of FILE.
15676 # value retuned in "$func_basename_result"
15677 # Implementation must be kept synchronized with func_dirname
15678 # and func_basename. For efficiency, we do not delegate to
15679 # those functions but instead duplicate the functionality here.
15680 func_dirname_and_basename ()
15681 {
15682 case ${1} in
15683 */*) func_dirname_result="${1%/*}${2}" ;;
15684 * ) func_dirname_result="${3}" ;;
15685 esac
15686 func_basename_result="${1##*/}"
15687 }
15688
15689 # func_stripname prefix suffix name
15690 # strip PREFIX and SUFFIX off of NAME.
15691 # PREFIX and SUFFIX must not contain globbing or regex special
15692 # characters, hashes, percent signs, but SUFFIX may contain a leading
15693 # dot (in which case that matches only a dot).
15694 func_stripname ()
15695 {
15696 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15697 # positional parameters, so assign one to ordinary parameter first.
15698 func_stripname_result=${3}
15699 func_stripname_result=${func_stripname_result#"${1}"}
15700 func_stripname_result=${func_stripname_result%"${2}"}
15701 }
15702
15703 # func_opt_split
15704 func_opt_split ()
15705 {
15706 func_opt_split_opt=${1%%=*}
15707 func_opt_split_arg=${1#*=}
15708 }
15709
15710 # func_lo2o object
15711 func_lo2o ()
15712 {
15713 case ${1} in
15714 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15715 *) func_lo2o_result=${1} ;;
15716 esac
15717 }
15718
15719 # func_xform libobj-or-source
15720 func_xform ()
15721 {
15722 func_xform_result=${1%.*}.lo
15723 }
15724
15725 # func_arith arithmetic-term...
15726 func_arith ()
15727 {
15728 func_arith_result=$(( $* ))
15729 }
15730
15731 # func_len string
15732 # STRING may not start with a hyphen.
15733 func_len ()
15734 {
15735 func_len_result=${#1}
15736 }
15737
15738 _LT_EOF
15739 ;;
15740 *) # Bourne compatible functions.
15741 cat << \_LT_EOF >> "$cfgfile"
15742
15743 # func_dirname file append nondir_replacement
15744 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15745 # otherwise set result to NONDIR_REPLACEMENT.
15746 func_dirname ()
15747 {
15748 # Extract subdirectory from the argument.
15749 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15750 if test "X$func_dirname_result" = "X${1}"; then
15751 func_dirname_result="${3}"
15752 else
15753 func_dirname_result="$func_dirname_result${2}"
15754 fi
15755 }
15756
15757 # func_basename file
15758 func_basename ()
15759 {
15760 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15761 }
15762
15763
15764 # func_stripname prefix suffix name
15765 # strip PREFIX and SUFFIX off of NAME.
15766 # PREFIX and SUFFIX must not contain globbing or regex special
15767 # characters, hashes, percent signs, but SUFFIX may contain a leading
15768 # dot (in which case that matches only a dot).
15769 # func_strip_suffix prefix name
15770 func_stripname ()
15771 {
15772 case ${2} in
15773 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15774 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15775 esac
15776 }
15777
15778 # sed scripts:
15779 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15780 my_sed_long_arg='1s/^-[^=]*=//'
15781
15782 # func_opt_split
15783 func_opt_split ()
15784 {
15785 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15786 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15787 }
15788
15789 # func_lo2o object
15790 func_lo2o ()
15791 {
15792 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15793 }
15794
15795 # func_xform libobj-or-source
15796 func_xform ()
15797 {
15798 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15799 }
15800
15801 # func_arith arithmetic-term...
15802 func_arith ()
15803 {
15804 func_arith_result=`expr "$@"`
15805 }
15806
15807 # func_len string
15808 # STRING may not start with a hyphen.
15809 func_len ()
15810 {
15811 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15812 }
15813
15814 _LT_EOF
15815 esac
15816
15817 case $lt_shell_append in
15818 yes)
15819 cat << \_LT_EOF >> "$cfgfile"
15820
15821 # func_append var value
15822 # Append VALUE to the end of shell variable VAR.
15823 func_append ()
15824 {
15825 eval "$1+=\$2"
15826 }
15827 _LT_EOF
15828 ;;
15829 *)
15830 cat << \_LT_EOF >> "$cfgfile"
15831
15832 # func_append var value
15833 # Append VALUE to the end of shell variable VAR.
15834 func_append ()
15835 {
15836 eval "$1=\$$1\$2"
15837 }
15838
15839 _LT_EOF
15840 ;;
15841 esac
15842
15843
15844 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15845 || (rm -f "$cfgfile"; exit 1)
15846
15847 mv -f "$cfgfile" "$ofile" ||
15848 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15849 chmod +x "$ofile"
15850
15851 ;;
15852
15853 esac
15854 done # for ac_tag
15855
15856
15857 as_fn_exit 0
15858 _ACEOF
15859 ac_clean_files=$ac_clean_files_save
15860
15861 test $ac_write_fail = 0 ||
15862 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15863
15864
15865 # configure is writing to config.log, and then calls config.status.
15866 # config.status does its own redirection, appending to config.log.
15867 # Unfortunately, on DOS this fails, as config.log is still kept open
15868 # by configure, so config.status won't be able to write to it; its
15869 # output is simply discarded. So we exec the FD to /dev/null,
15870 # effectively closing config.log, so it can be properly (re)opened and
15871 # appended to by config.status. When coming back to configure, we
15872 # need to make the FD available again.
15873 if test "$no_create" != yes; then
15874 ac_cs_success=:
15875 ac_config_status_args=
15876 test "$silent" = yes &&
15877 ac_config_status_args="$ac_config_status_args --quiet"
15878 exec 5>/dev/null
15879 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15880 exec 5>>config.log
15881 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15882 # would make configure fail if this is the last instruction.
15883 $ac_cs_success || as_fn_exit 1
15884 fi
15885 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15887 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15888 fi
15889
15890
15891
15892 touch config.status.tmp
15893 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
15894 sed '/as_fn_exit 0/i \
15895 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
15896 touch --reference=Makefile Makefile.tmp \
15897 mv Makefile.tmp Makefile \
15898 ' config.status > config.status.tmp
15899 touch --reference=config.status config.status.tmp
15900 mv config.status.tmp config.status
15901 chmod +x config.status
15902 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
15903 touch --reference=Makefile Makefile.tmp
15904 mv Makefile.tmp Makefile
15905 else
15906 rm -f config.status.tmp
15907 fi
This page took 0.419123 seconds and 4 git commands to generate.