Automatic date update in version.in
[deliverable/binutils-gdb.git] / libctf / configure
CommitLineData
0e65dfba
NA
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
987cf30a 3# Generated by GNU Autoconf 2.69 for libctf 1.2.0.
0e65dfba
NA
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
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
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'
70fi
71
72# The user is always right.
73if 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 }
79fi
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.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
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
100IFS=$as_save_IFS
101
102 ;;
103esac
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.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
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.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export 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.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $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
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if 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
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -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
87279e3c
NA
199test \$(( 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"
0e65dfba
NA
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
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
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
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
242fi; }
243IFS=$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.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $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
265exit 255
266fi
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
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_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.
313as_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.
323as_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.
371as_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.
381if (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 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # 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.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # 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.
416as_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
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_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.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_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
508ECHO_C= ECHO_N= ECHO_T=
509case `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';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (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
542else
543 as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_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.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
87279e3c
NA
564SHELL=${CONFIG_SHELL-/bin/sh}
565
0e65dfba
NA
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 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.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
987cf30a
NA
588PACKAGE_NAME='libctf'
589PACKAGE_TARNAME='libctf'
590PACKAGE_VERSION='1.2.0'
591PACKAGE_STRING='libctf 1.2.0'
0e65dfba
NA
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="ctf-impl.h"
596# Factoring default headers for most tests.
597ac_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
632ac_header_list=
6b22174f 633ac_func_list=
0e65dfba
NA
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBOBJS
87279e3c 638VERSION_FLAGS
cbd8f5bb
NA
639TCL_TRY_FALSE
640TCL_TRY_TRUE
641EXPECT
1038406a 642CTF_LIBADD
87279e3c 643SHARED_LDFLAGS
6b22174f
NA
644NEED_CTF_QSORT_R_FALSE
645NEED_CTF_QSORT_R_TRUE
a9b98702
NA
646ENABLE_LIBCTF_HASH_DEBUGGING_FALSE
647ENABLE_LIBCTF_HASH_DEBUGGING_TRUE
a0486bac
JM
648zlibinc
649zlibdir
0e65dfba 650ac_libctf_warn_cflags
87279e3c
NA
651bfdincludedir
652bfdlibdir
653target_noncanonical
654host_noncanonical
655INSTALL_LIBBFD_FALSE
656INSTALL_LIBBFD_TRUE
0e65dfba
NA
657MAINT
658MAINTAINER_MODE_FALSE
659MAINTAINER_MODE_TRUE
660WERROR
661WARN_PEDANTIC
662c_warn
663warn
87279e3c
NA
664OTOOL64
665OTOOL
666LIPO
667NMEDIT
668DSYMUTIL
669OBJDUMP
670LN_S
671NM
672ac_ct_DUMPBIN
673DUMPBIN
674LD
675FGREP
676SED
677host_os
678host_vendor
679host_cpu
680host
681build_os
682build_vendor
683build_cpu
684build
685LIBTOOL
8e6635bd
NA
686CATOBJEXT
687GENCAT
688INSTOBJEXT
689DATADIRNAME
690CATALOGS
691POSUB
692GMSGFMT
693XGETTEXT
694INCINTL
695LIBINTL_DEP
696LIBINTL
697USE_NLS
0e65dfba
NA
698ac_ct_AR
699AR
700RANLIB
701AM_BACKSLASH
702AM_DEFAULT_VERBOSITY
703AM_DEFAULT_V
704AM_V
705am__fastdepCC_FALSE
706am__fastdepCC_TRUE
707CCDEPMODE
708am__nodep
709AMDEPBACKSLASH
710AMDEP_FALSE
711AMDEP_TRUE
712am__quote
713am__include
714DEPDIR
715am__untar
716am__tar
717AMTAR
718am__leading_dot
719SET_MAKE
720AWK
721mkdir_p
722MKDIR_P
723INSTALL_STRIP_PROGRAM
724STRIP
725install_sh
726MAKEINFO
727AUTOHEADER
728AUTOMAKE
729AUTOCONF
730ACLOCAL
731VERSION
732PACKAGE
733CYGPATH_W
734am__isrc
735INSTALL_DATA
736INSTALL_SCRIPT
737INSTALL_PROGRAM
738EGREP
739GREP
740CPP
741OBJEXT
742EXEEXT
743ac_ct_CC
744CPPFLAGS
745LDFLAGS
746CFLAGS
747CC
748target_alias
749host_alias
750build_alias
751LIBS
752ECHO_T
753ECHO_N
754ECHO_C
755DEFS
756mandir
757localedir
758libdir
759psdir
760pdfdir
761dvidir
762htmldir
763infodir
764docdir
765oldincludedir
766includedir
767localstatedir
768sharedstatedir
769sysconfdir
770datadir
771datarootdir
772libexecdir
773sbindir
774bindir
775program_transform_name
776prefix
777exec_prefix
778PACKAGE_URL
779PACKAGE_BUGREPORT
780PACKAGE_STRING
781PACKAGE_VERSION
782PACKAGE_TARNAME
783PACKAGE_NAME
784PATH_SEPARATOR
785SHELL'
786ac_subst_files=''
787ac_user_opts='
788enable_option_checking
789enable_dependency_tracking
790enable_silent_rules
87279e3c
NA
791enable_shared
792enable_static
793with_pic
794enable_fast_install
795with_gnu_ld
796enable_libtool_lock
0e65dfba
NA
797enable_largefile
798enable_werror_always
799enable_maintainer_mode
87279e3c 800enable_install_libbfd
a0486bac 801with_system_zlib
a9b98702 802enable_libctf_hash_debugging
0e65dfba
NA
803'
804 ac_precious_vars='build_alias
805host_alias
806target_alias
807CC
808CFLAGS
809LDFLAGS
810LIBS
811CPPFLAGS
812CPP'
813
814
815# Initialize some variables set by options.
816ac_init_help=
817ac_init_version=false
818ac_unrecognized_opts=
819ac_unrecognized_sep=
820# The variables have the same names as the options, with
821# dashes changed to underlines.
822cache_file=/dev/null
823exec_prefix=NONE
824no_create=
825no_recursion=
826prefix=NONE
827program_prefix=NONE
828program_suffix=NONE
829program_transform_name=s,x,x,
830silent=
831site=
832srcdir=
833verbose=
834x_includes=NONE
835x_libraries=NONE
836
837# Installation directory options.
838# These are left unexpanded so users can "make install exec_prefix=/foo"
839# and all the variables that are supposed to be based on exec_prefix
840# by default will actually change.
841# Use braces instead of parens because sh, perl, etc. also accept them.
842# (The list follows the same order as the GNU Coding Standards.)
843bindir='${exec_prefix}/bin'
844sbindir='${exec_prefix}/sbin'
845libexecdir='${exec_prefix}/libexec'
846datarootdir='${prefix}/share'
847datadir='${datarootdir}'
848sysconfdir='${prefix}/etc'
849sharedstatedir='${prefix}/com'
850localstatedir='${prefix}/var'
851includedir='${prefix}/include'
852oldincludedir='/usr/include'
853docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854infodir='${datarootdir}/info'
855htmldir='${docdir}'
856dvidir='${docdir}'
857pdfdir='${docdir}'
858psdir='${docdir}'
859libdir='${exec_prefix}/lib'
860localedir='${datarootdir}/locale'
861mandir='${datarootdir}/man'
862
863ac_prev=
864ac_dashdash=
865for ac_option
866do
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
869 eval $ac_prev=\$ac_option
870 ac_prev=
871 continue
872 fi
873
874 case $ac_option in
875 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 *=) ac_optarg= ;;
877 *) ac_optarg=yes ;;
878 esac
879
880 # Accept the important Cygnus configure options, so we can diagnose typos.
881
882 case $ac_dashdash$ac_option in
883 --)
884 ac_dashdash=yes ;;
885
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 ac_prev=bindir ;;
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 bindir=$ac_optarg ;;
890
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
895
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
902
903 --config-cache | -C)
904 cache_file=config.cache ;;
905
906 -datadir | --datadir | --datadi | --datad)
907 ac_prev=datadir ;;
908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
909 datadir=$ac_optarg ;;
910
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
917
918 -disable-* | --disable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error $? "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927"enable_$ac_useropt"
928"*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=no ;;
933
934 -docdir | --docdir | --docdi | --doc | --do)
935 ac_prev=docdir ;;
936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937 docdir=$ac_optarg ;;
938
939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940 ac_prev=dvidir ;;
941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942 dvidir=$ac_optarg ;;
943
944 -enable-* | --enable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error $? "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
952 *"
953"enable_$ac_useropt"
954"*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=\$ac_optarg ;;
959
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
968
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
972
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
979
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
984
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
990
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
997
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1002
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1007
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1014
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1019
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1026
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1031
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1035
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1038 no_create=yes ;;
1039
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1043
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1052
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1057
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1064
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1071
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1088
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1093
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1098
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1102
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1108
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1119
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1124
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1129
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1136
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1141
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1144
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1147
1148 -with-* | --with-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid package name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1156 *"
1157"with_$ac_useropt"
1158"*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval with_$ac_useropt=\$ac_optarg ;;
1163
1164 -without-* | --without-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173"with_$ac_useropt"
1174"*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=no ;;
1179
1180 --x)
1181 # Obsolete; use --with-x.
1182 with_x=yes ;;
1183
1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185 | --x-incl | --x-inc | --x-in | --x-i)
1186 ac_prev=x_includes ;;
1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1189 x_includes=$ac_optarg ;;
1190
1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193 ac_prev=x_libraries ;;
1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1196 x_libraries=$ac_optarg ;;
1197
1198 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1199Try \`$0 --help' for more information"
1200 ;;
1201
1202 *=*)
1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204 # Reject names that are not valid shell variable names.
1205 case $ac_envvar in #(
1206 '' | [0-9]* | *[!_$as_cr_alnum]* )
1207 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1208 esac
1209 eval $ac_envvar=\$ac_optarg
1210 export $ac_envvar ;;
1211
1212 *)
1213 # FIXME: should be removed in autoconf 3.0.
1214 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1217 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1218 ;;
1219
1220 esac
1221done
1222
1223if test -n "$ac_prev"; then
1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1225 as_fn_error $? "missing argument to $ac_option"
1226fi
1227
1228if test -n "$ac_unrecognized_opts"; then
1229 case $enable_option_checking in
1230 no) ;;
1231 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1232 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1233 esac
1234fi
1235
1236# Check all directory arguments for consistency.
1237for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1238 datadir sysconfdir sharedstatedir localstatedir includedir \
1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1240 libdir localedir mandir
1241do
1242 eval ac_val=\$$ac_var
1243 # Remove trailing slashes.
1244 case $ac_val in
1245 */ )
1246 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1247 eval $ac_var=\$ac_val;;
1248 esac
1249 # Be sure to have absolute directory names.
1250 case $ac_val in
1251 [\\/$]* | ?:[\\/]* ) continue;;
1252 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1253 esac
1254 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1255done
1256
1257# There might be people who depend on the old broken behavior: `$host'
1258# used to hold the argument of --host etc.
1259# FIXME: To remove some day.
1260build=$build_alias
1261host=$host_alias
1262target=$target_alias
1263
1264# FIXME: To remove some day.
1265if test "x$host_alias" != x; then
1266 if test "x$build_alias" = x; then
1267 cross_compiling=maybe
1268 elif test "x$build_alias" != "x$host_alias"; then
1269 cross_compiling=yes
1270 fi
1271fi
1272
1273ac_tool_prefix=
1274test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275
1276test "$silent" = yes && exec 6>/dev/null
1277
1278
1279ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280ac_ls_di=`ls -di .` &&
1281ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282 as_fn_error $? "working directory cannot be determined"
1283test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284 as_fn_error $? "pwd does not report name of working directory"
1285
1286
1287# Find the source files, if location was not specified.
1288if test -z "$srcdir"; then
1289 ac_srcdir_defaulted=yes
1290 # Try the directory containing this script, then the parent directory.
1291 ac_confdir=`$as_dirname -- "$as_myself" ||
1292$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293 X"$as_myself" : 'X\(//\)[^/]' \| \
1294 X"$as_myself" : 'X\(//\)$' \| \
1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296$as_echo X"$as_myself" |
1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)[^/].*/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\).*/{
1310 s//\1/
1311 q
1312 }
1313 s/.*/./; q'`
1314 srcdir=$ac_confdir
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 srcdir=..
1317 fi
1318else
1319 ac_srcdir_defaulted=no
1320fi
1321if test ! -r "$srcdir/$ac_unique_file"; then
1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1324fi
1325ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326ac_abs_confdir=`(
1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1328 pwd)`
1329# When building in place, set srcdir=.
1330if test "$ac_abs_confdir" = "$ac_pwd"; then
1331 srcdir=.
1332fi
1333# Remove unnecessary trailing slashes from srcdir.
1334# Double slashes in file names in object file debugging info
1335# mess up M-x gdb in Emacs.
1336case $srcdir in
1337*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338esac
1339for ac_var in $ac_precious_vars; do
1340 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_env_${ac_var}_value=\$${ac_var}
1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344done
1345
1346#
1347# Report the --help message.
1348#
1349if test "$ac_init_help" = "long"; then
1350 # Omit some internal or obsolete options to make the list less imposing.
1351 # This message is too long to be a string in the A/UX 3.1 sh.
1352 cat <<_ACEOF
987cf30a 1353\`configure' configures libctf 1.2.0 to adapt to many kinds of systems.
0e65dfba
NA
1354
1355Usage: $0 [OPTION]... [VAR=VALUE]...
1356
1357To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358VAR=VALUE. See below for descriptions of some of the useful variables.
1359
1360Defaults for the options are specified in brackets.
1361
1362Configuration:
1363 -h, --help display this help and exit
1364 --help=short display options specific to this package
1365 --help=recursive display the short help of all the included packages
1366 -V, --version display version information and exit
1367 -q, --quiet, --silent do not print \`checking ...' messages
1368 --cache-file=FILE cache test results in FILE [disabled]
1369 -C, --config-cache alias for \`--cache-file=config.cache'
1370 -n, --no-create do not create output files
1371 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1372
1373Installation directories:
1374 --prefix=PREFIX install architecture-independent files in PREFIX
1375 [$ac_default_prefix]
1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1377 [PREFIX]
1378
1379By default, \`make install' will install all the files in
1380\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1381an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382for instance \`--prefix=\$HOME'.
1383
1384For better control, use the options below.
1385
1386Fine tuning of the installation directories:
1387 --bindir=DIR user executables [EPREFIX/bin]
1388 --sbindir=DIR system admin executables [EPREFIX/sbin]
1389 --libexecdir=DIR program executables [EPREFIX/libexec]
1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1393 --libdir=DIR object code libraries [EPREFIX/lib]
1394 --includedir=DIR C header files [PREFIX/include]
1395 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1398 --infodir=DIR info documentation [DATAROOTDIR/info]
1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1400 --mandir=DIR man documentation [DATAROOTDIR/man]
987cf30a 1401 --docdir=DIR documentation root [DATAROOTDIR/doc/libctf]
0e65dfba
NA
1402 --htmldir=DIR html documentation [DOCDIR]
1403 --dvidir=DIR dvi documentation [DOCDIR]
1404 --pdfdir=DIR pdf documentation [DOCDIR]
1405 --psdir=DIR ps documentation [DOCDIR]
1406_ACEOF
1407
1408 cat <<\_ACEOF
1409
1410Program names:
1411 --program-prefix=PREFIX prepend PREFIX to installed program names
1412 --program-suffix=SUFFIX append SUFFIX to installed program names
1413 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
87279e3c
NA
1414
1415System types:
1416 --build=BUILD configure for building on BUILD [guessed]
1417 --host=HOST cross-compile to build programs to run on HOST [BUILD]
0e65dfba
NA
1418_ACEOF
1419fi
1420
1421if test -n "$ac_init_help"; then
1422 case $ac_init_help in
987cf30a 1423 short | recursive ) echo "Configuration of libctf 1.2.0:";;
0e65dfba
NA
1424 esac
1425 cat <<\_ACEOF
1426
1427Optional Features:
1428 --disable-option-checking ignore unrecognized --enable/--with options
1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1431 --enable-dependency-tracking
1432 do not reject slow dependency extractors
1433 --disable-dependency-tracking
1434 speeds up one-time build
1435 --enable-silent-rules less verbose build output (undo: "make V=1")
1436 --disable-silent-rules verbose build output (undo: "make V=0")
87279e3c
NA
1437 --enable-shared[=PKGS] build shared libraries [default=no]
1438 --enable-static[=PKGS] build static libraries [default=yes]
1439 --enable-fast-install[=PKGS]
1440 optimize for fast installation [default=yes]
1441 --disable-libtool-lock avoid locking (might break parallel builds)
0e65dfba
NA
1442 --disable-largefile omit support for large files
1443 --enable-werror-always enable -Werror despite compiler version
1444 --enable-maintainer-mode
1445 enable make rules and dependencies not useful (and
1446 sometimes confusing) to the casual installer
87279e3c 1447 --enable-install-libbfd controls installation of libbfd and related headers
a9b98702
NA
1448 --enable-libctf-hash-debugging
1449 Enable expensive debugging of CTF deduplication type
1450 hashing [default=no]
0e65dfba 1451
a0486bac
JM
1452Optional Packages:
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
87279e3c
NA
1455 --with-pic try to use only PIC/non-PIC objects [default=use
1456 both]
1457 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
a0486bac
JM
1458 --with-system-zlib use installed libz
1459
0e65dfba
NA
1460Some influential environment variables:
1461 CC C compiler command
1462 CFLAGS C compiler flags
1463 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1464 nonstandard directory <lib dir>
1465 LIBS libraries to pass to the linker, e.g. -l<library>
1466 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1468 CPP C preprocessor
1469
1470Use these variables to override the choices made by `configure' or to help
1471it to find libraries and programs with nonstandard names/locations.
1472
1473Report bugs to the package provider.
1474_ACEOF
1475ac_status=$?
1476fi
1477
1478if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481 test -d "$ac_dir" ||
1482 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483 continue
1484 ac_builddir=.
1485
1486case "$ac_dir" in
1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488*)
1489 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 esac ;;
1496esac
1497ac_abs_top_builddir=$ac_pwd
1498ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499# for backward compatibility:
1500ac_top_builddir=$ac_top_build_prefix
1501
1502case $srcdir in
1503 .) # We are building in place.
1504 ac_srcdir=.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1511 *) # Relative name.
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515esac
1516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1526 else
1527 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528 fi || ac_status=$?
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1530 done
1531fi
1532
1533test -n "$ac_init_help" && exit $ac_status
1534if $ac_init_version; then
1535 cat <<\_ACEOF
987cf30a 1536libctf configure 1.2.0
0e65dfba
NA
1537generated by GNU Autoconf 2.69
1538
1539Copyright (C) 2012 Free Software Foundation, Inc.
1540This configure script is free software; the Free Software Foundation
1541gives unlimited permission to copy, distribute and modify it.
1542_ACEOF
1543 exit
1544fi
1545
1546## ------------------------ ##
1547## Autoconf initialization. ##
1548## ------------------------ ##
1549
1550# ac_fn_c_try_compile LINENO
1551# --------------------------
1552# Try to compile conftest.$ac_ext, and return whether this succeeded.
1553ac_fn_c_try_compile ()
1554{
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext
1557 if { { ac_try="$ac_compile"
1558case "(($ac_try" in
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1561esac
1562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563$as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_compile") 2>conftest.err
1565 ac_status=$?
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1570 fi
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest.$ac_objext; then :
1576 ac_retval=0
1577else
1578 $as_echo "$as_me: failed program was:" >&5
1579sed 's/^/| /' conftest.$ac_ext >&5
1580
1581 ac_retval=1
1582fi
1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584 as_fn_set_status $ac_retval
1585
1586} # ac_fn_c_try_compile
1587
1588# ac_fn_c_try_cpp LINENO
1589# ----------------------
1590# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1591ac_fn_c_try_cpp ()
1592{
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 if { { ac_try="$ac_cpp conftest.$ac_ext"
1595case "(($ac_try" in
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1598esac
1599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600$as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1602 ac_status=$?
1603 if test -s conftest.err; then
1604 grep -v '^ *+' conftest.err >conftest.er1
1605 cat conftest.er1 >&5
1606 mv -f conftest.er1 conftest.err
1607 fi
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; } > conftest.i && {
1610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1611 test ! -s conftest.err
1612 }; then :
1613 ac_retval=0
1614else
1615 $as_echo "$as_me: failed program was:" >&5
1616sed 's/^/| /' conftest.$ac_ext >&5
1617
1618 ac_retval=1
1619fi
1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621 as_fn_set_status $ac_retval
1622
1623} # ac_fn_c_try_cpp
1624
1625# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1626# -------------------------------------------------------
1627# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1628# the include files in INCLUDES and setting the cache variable VAR
1629# accordingly.
1630ac_fn_c_check_header_mongrel ()
1631{
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 if eval \${$3+:} false; then :
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1635$as_echo_n "checking for $2... " >&6; }
1636if eval \${$3+:} false; then :
1637 $as_echo_n "(cached) " >&6
1638fi
1639eval ac_res=\$$3
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1641$as_echo "$ac_res" >&6; }
1642else
1643 # Is the header compilable?
1644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1645$as_echo_n "checking $2 usability... " >&6; }
1646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647/* end confdefs.h. */
1648$4
1649#include <$2>
1650_ACEOF
1651if ac_fn_c_try_compile "$LINENO"; then :
1652 ac_header_compiler=yes
1653else
1654 ac_header_compiler=no
1655fi
1656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1658$as_echo "$ac_header_compiler" >&6; }
1659
1660# Is the header present?
1661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1662$as_echo_n "checking $2 presence... " >&6; }
1663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1664/* end confdefs.h. */
1665#include <$2>
1666_ACEOF
1667if ac_fn_c_try_cpp "$LINENO"; then :
1668 ac_header_preproc=yes
1669else
1670 ac_header_preproc=no
1671fi
1672rm -f conftest.err conftest.i conftest.$ac_ext
1673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1674$as_echo "$ac_header_preproc" >&6; }
1675
1676# So? What about this header?
1677case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1678 yes:no: )
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1680$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1682$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1683 ;;
1684 no:yes:* )
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1686$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1688$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1690$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1692$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1694$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1695 ;;
1696esac
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1698$as_echo_n "checking for $2... " >&6; }
1699if eval \${$3+:} false; then :
1700 $as_echo_n "(cached) " >&6
1701else
1702 eval "$3=\$ac_header_compiler"
1703fi
1704eval ac_res=\$$3
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1706$as_echo "$ac_res" >&6; }
1707fi
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709
1710} # ac_fn_c_check_header_mongrel
1711
1712# ac_fn_c_try_run LINENO
1713# ----------------------
1714# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1715# that executables *can* be run.
1716ac_fn_c_try_run ()
1717{
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { { ac_try="$ac_link"
1720case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723esac
1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725$as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_link") 2>&5
1727 ac_status=$?
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1730 { { case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733esac
1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735$as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_try") 2>&5
1737 ac_status=$?
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; }; }; then :
1740 ac_retval=0
1741else
1742 $as_echo "$as_me: program exited with status $ac_status" >&5
1743 $as_echo "$as_me: failed program was:" >&5
1744sed 's/^/| /' conftest.$ac_ext >&5
1745
1746 ac_retval=$ac_status
1747fi
1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1751
1752} # ac_fn_c_try_run
1753
1754# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1755# -------------------------------------------------------
1756# Tests whether HEADER exists and can be compiled using the include files in
1757# INCLUDES, setting the cache variable VAR accordingly.
1758ac_fn_c_check_header_compile ()
1759{
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762$as_echo_n "checking for $2... " >&6; }
1763if eval \${$3+:} false; then :
1764 $as_echo_n "(cached) " >&6
1765else
1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767/* end confdefs.h. */
1768$4
1769#include <$2>
1770_ACEOF
1771if ac_fn_c_try_compile "$LINENO"; then :
1772 eval "$3=yes"
1773else
1774 eval "$3=no"
1775fi
1776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1777fi
1778eval ac_res=\$$3
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780$as_echo "$ac_res" >&6; }
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782
1783} # ac_fn_c_check_header_compile
1784
1785# ac_fn_c_try_link LINENO
1786# -----------------------
1787# Try to link conftest.$ac_ext, and return whether this succeeded.
1788ac_fn_c_try_link ()
1789{
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 rm -f conftest.$ac_objext conftest$ac_exeext
1792 if { { ac_try="$ac_link"
1793case "(($ac_try" in
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1796esac
1797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798$as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_link") 2>conftest.err
1800 ac_status=$?
1801 if test -s conftest.err; then
1802 grep -v '^ *+' conftest.err >conftest.er1
1803 cat conftest.er1 >&5
1804 mv -f conftest.er1 conftest.err
1805 fi
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } && {
1808 test -z "$ac_c_werror_flag" ||
1809 test ! -s conftest.err
1810 } && test -s conftest$ac_exeext && {
1811 test "$cross_compiling" = yes ||
1812 test -x conftest$ac_exeext
1813 }; then :
1814 ac_retval=0
1815else
1816 $as_echo "$as_me: failed program was:" >&5
1817sed 's/^/| /' conftest.$ac_ext >&5
1818
1819 ac_retval=1
1820fi
1821 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1822 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1823 # interfere with the next link command; also delete a directory that is
1824 # left behind by Apple's compiler. We do this before executing the actions.
1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status $ac_retval
1828
1829} # ac_fn_c_try_link
1830
1831# ac_fn_c_check_func LINENO FUNC VAR
1832# ----------------------------------
1833# Tests whether FUNC exists, setting the cache variable VAR accordingly
1834ac_fn_c_check_func ()
1835{
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838$as_echo_n "checking for $2... " >&6; }
1839if eval \${$3+:} false; then :
1840 $as_echo_n "(cached) " >&6
1841else
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843/* end confdefs.h. */
1844/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1846#define $2 innocuous_$2
1847
1848/* System header to define __stub macros and hopefully few prototypes,
1849 which can conflict with char $2 (); below.
1850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1851 <limits.h> exists even on freestanding compilers. */
1852
1853#ifdef __STDC__
1854# include <limits.h>
1855#else
1856# include <assert.h>
1857#endif
1858
1859#undef $2
1860
1861/* Override any GCC internal prototype to avoid an error.
1862 Use char because int might match the return type of a GCC
1863 builtin and then its argument prototype would still apply. */
1864#ifdef __cplusplus
1865extern "C"
1866#endif
1867char $2 ();
1868/* The GNU C library defines this for functions which it implements
1869 to always fail with ENOSYS. Some functions are actually named
1870 something starting with __ and the normal name is an alias. */
1871#if defined __stub_$2 || defined __stub___$2
1872choke me
1873#endif
1874
1875int
1876main ()
1877{
1878return $2 ();
1879 ;
1880 return 0;
1881}
1882_ACEOF
1883if ac_fn_c_try_link "$LINENO"; then :
1884 eval "$3=yes"
1885else
1886 eval "$3=no"
1887fi
1888rm -f core conftest.err conftest.$ac_objext \
1889 conftest$ac_exeext conftest.$ac_ext
1890fi
1891eval ac_res=\$$3
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893$as_echo "$ac_res" >&6; }
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895
1896} # ac_fn_c_check_func
3a657c60
EZ
1897
1898# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1899# ---------------------------------------------
1900# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1901# accordingly.
1902ac_fn_c_check_decl ()
1903{
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 as_decl_name=`echo $2|sed 's/ *(.*//'`
1906 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1908$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1909if eval \${$3+:} false; then :
1910 $as_echo_n "(cached) " >&6
1911else
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913/* end confdefs.h. */
1914$4
1915int
1916main ()
1917{
1918#ifndef $as_decl_name
1919#ifdef __cplusplus
1920 (void) $as_decl_use;
1921#else
1922 (void) $as_decl_name;
1923#endif
1924#endif
1925
1926 ;
1927 return 0;
1928}
1929_ACEOF
1930if ac_fn_c_try_compile "$LINENO"; then :
1931 eval "$3=yes"
1932else
1933 eval "$3=no"
1934fi
1935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936fi
1937eval ac_res=\$$3
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939$as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941
1942} # ac_fn_c_check_decl
0e65dfba
NA
1943cat >config.log <<_ACEOF
1944This file contains any messages produced by compilers while
1945running configure, to aid debugging if configure makes a mistake.
1946
987cf30a 1947It was created by libctf $as_me 1.2.0, which was
0e65dfba
NA
1948generated by GNU Autoconf 2.69. Invocation command line was
1949
1950 $ $0 $@
1951
1952_ACEOF
1953exec 5>>config.log
1954{
1955cat <<_ASUNAME
1956## --------- ##
1957## Platform. ##
1958## --------- ##
1959
1960hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1961uname -m = `(uname -m) 2>/dev/null || echo unknown`
1962uname -r = `(uname -r) 2>/dev/null || echo unknown`
1963uname -s = `(uname -s) 2>/dev/null || echo unknown`
1964uname -v = `(uname -v) 2>/dev/null || echo unknown`
1965
1966/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1967/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1968
1969/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1970/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1971/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1972/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1973/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1974/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1975/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1976
1977_ASUNAME
1978
1979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980for as_dir in $PATH
1981do
1982 IFS=$as_save_IFS
1983 test -z "$as_dir" && as_dir=.
1984 $as_echo "PATH: $as_dir"
1985 done
1986IFS=$as_save_IFS
1987
1988} >&5
1989
1990cat >&5 <<_ACEOF
1991
1992
1993## ----------- ##
1994## Core tests. ##
1995## ----------- ##
1996
1997_ACEOF
1998
1999
2000# Keep a trace of the command line.
2001# Strip out --no-create and --no-recursion so they do not pile up.
2002# Strip out --silent because we don't want to record it for future runs.
2003# Also quote any args containing shell meta-characters.
2004# Make two passes to allow for proper duplicate-argument suppression.
2005ac_configure_args=
2006ac_configure_args0=
2007ac_configure_args1=
2008ac_must_keep_next=false
2009for ac_pass in 1 2
2010do
2011 for ac_arg
2012 do
2013 case $ac_arg in
2014 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2016 | -silent | --silent | --silen | --sile | --sil)
2017 continue ;;
2018 *\'*)
2019 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2020 esac
2021 case $ac_pass in
2022 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2023 2)
2024 as_fn_append ac_configure_args1 " '$ac_arg'"
2025 if test $ac_must_keep_next = true; then
2026 ac_must_keep_next=false # Got value, back to normal.
2027 else
2028 case $ac_arg in
2029 *=* | --config-cache | -C | -disable-* | --disable-* \
2030 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2031 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2032 | -with-* | --with-* | -without-* | --without-* | --x)
2033 case "$ac_configure_args0 " in
2034 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2035 esac
2036 ;;
2037 -* ) ac_must_keep_next=true ;;
2038 esac
2039 fi
2040 as_fn_append ac_configure_args " '$ac_arg'"
2041 ;;
2042 esac
2043 done
2044done
2045{ ac_configure_args0=; unset ac_configure_args0;}
2046{ ac_configure_args1=; unset ac_configure_args1;}
2047
2048# When interrupted or exit'd, cleanup temporary files, and complete
2049# config.log. We remove comments because anyway the quotes in there
2050# would cause problems or look ugly.
2051# WARNING: Use '\'' to represent an apostrophe within the trap.
2052# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2053trap 'exit_status=$?
2054 # Save into config.log some information that might help in debugging.
2055 {
2056 echo
2057
2058 $as_echo "## ---------------- ##
2059## Cache variables. ##
2060## ---------------- ##"
2061 echo
2062 # The following way of writing the cache mishandles newlines in values,
2063(
2064 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2065 eval ac_val=\$$ac_var
2066 case $ac_val in #(
2067 *${as_nl}*)
2068 case $ac_var in #(
2069 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2070$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2071 esac
2072 case $ac_var in #(
2073 _ | IFS | as_nl) ;; #(
2074 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2075 *) { eval $ac_var=; unset $ac_var;} ;;
2076 esac ;;
2077 esac
2078 done
2079 (set) 2>&1 |
2080 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2081 *${as_nl}ac_space=\ *)
2082 sed -n \
2083 "s/'\''/'\''\\\\'\'''\''/g;
2084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2085 ;; #(
2086 *)
2087 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2088 ;;
2089 esac |
2090 sort
2091)
2092 echo
2093
2094 $as_echo "## ----------------- ##
2095## Output variables. ##
2096## ----------------- ##"
2097 echo
2098 for ac_var in $ac_subst_vars
2099 do
2100 eval ac_val=\$$ac_var
2101 case $ac_val in
2102 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2103 esac
2104 $as_echo "$ac_var='\''$ac_val'\''"
2105 done | sort
2106 echo
2107
2108 if test -n "$ac_subst_files"; then
2109 $as_echo "## ------------------- ##
2110## File substitutions. ##
2111## ------------------- ##"
2112 echo
2113 for ac_var in $ac_subst_files
2114 do
2115 eval ac_val=\$$ac_var
2116 case $ac_val in
2117 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2118 esac
2119 $as_echo "$ac_var='\''$ac_val'\''"
2120 done | sort
2121 echo
2122 fi
2123
2124 if test -s confdefs.h; then
2125 $as_echo "## ----------- ##
2126## confdefs.h. ##
2127## ----------- ##"
2128 echo
2129 cat confdefs.h
2130 echo
2131 fi
2132 test "$ac_signal" != 0 &&
2133 $as_echo "$as_me: caught signal $ac_signal"
2134 $as_echo "$as_me: exit $exit_status"
2135 } >&5
2136 rm -f core *.core core.conftest.* &&
2137 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2138 exit $exit_status
2139' 0
2140for ac_signal in 1 2 13 15; do
2141 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2142done
2143ac_signal=0
2144
2145# confdefs.h avoids OS command line length limits that DEFS can exceed.
2146rm -f -r conftest* confdefs.h
2147
2148$as_echo "/* confdefs.h */" > confdefs.h
2149
2150# Predefined preprocessor variables.
2151
2152cat >>confdefs.h <<_ACEOF
2153#define PACKAGE_NAME "$PACKAGE_NAME"
2154_ACEOF
2155
2156cat >>confdefs.h <<_ACEOF
2157#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2158_ACEOF
2159
2160cat >>confdefs.h <<_ACEOF
2161#define PACKAGE_VERSION "$PACKAGE_VERSION"
2162_ACEOF
2163
2164cat >>confdefs.h <<_ACEOF
2165#define PACKAGE_STRING "$PACKAGE_STRING"
2166_ACEOF
2167
2168cat >>confdefs.h <<_ACEOF
2169#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2170_ACEOF
2171
2172cat >>confdefs.h <<_ACEOF
2173#define PACKAGE_URL "$PACKAGE_URL"
2174_ACEOF
2175
2176
2177# Let the site file select an alternate cache file if it wants to.
2178# Prefer an explicitly selected file to automatically selected ones.
2179ac_site_file1=NONE
2180ac_site_file2=NONE
2181if test -n "$CONFIG_SITE"; then
2182 # We do not want a PATH search for config.site.
2183 case $CONFIG_SITE in #((
2184 -*) ac_site_file1=./$CONFIG_SITE;;
2185 */*) ac_site_file1=$CONFIG_SITE;;
2186 *) ac_site_file1=./$CONFIG_SITE;;
2187 esac
2188elif test "x$prefix" != xNONE; then
2189 ac_site_file1=$prefix/share/config.site
2190 ac_site_file2=$prefix/etc/config.site
2191else
2192 ac_site_file1=$ac_default_prefix/share/config.site
2193 ac_site_file2=$ac_default_prefix/etc/config.site
2194fi
2195for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2196do
2197 test "x$ac_site_file" = xNONE && continue
2198 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2200$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2201 sed 's/^/| /' "$ac_site_file" >&5
2202 . "$ac_site_file" \
2203 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2205as_fn_error $? "failed to load site script $ac_site_file
2206See \`config.log' for more details" "$LINENO" 5; }
2207 fi
2208done
2209
2210if test -r "$cache_file"; then
2211 # Some versions of bash will fail to source /dev/null (special files
2212 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2213 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2215$as_echo "$as_me: loading cache $cache_file" >&6;}
2216 case $cache_file in
2217 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2218 *) . "./$cache_file";;
2219 esac
2220 fi
2221else
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2223$as_echo "$as_me: creating cache $cache_file" >&6;}
2224 >$cache_file
2225fi
2226
2227as_fn_append ac_header_list " stdlib.h"
2228as_fn_append ac_header_list " unistd.h"
2229as_fn_append ac_header_list " sys/param.h"
6b22174f 2230as_fn_append ac_func_list " qsort_r"
0e65dfba
NA
2231# Check that the precious variables saved in the cache have kept the same
2232# value.
2233ac_cache_corrupted=false
2234for ac_var in $ac_precious_vars; do
2235 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2236 eval ac_new_set=\$ac_env_${ac_var}_set
2237 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2238 eval ac_new_val=\$ac_env_${ac_var}_value
2239 case $ac_old_set,$ac_new_set in
2240 set,)
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2242$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2243 ac_cache_corrupted=: ;;
2244 ,set)
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2246$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2247 ac_cache_corrupted=: ;;
2248 ,);;
2249 *)
2250 if test "x$ac_old_val" != "x$ac_new_val"; then
2251 # differences in whitespace do not lead to failure.
2252 ac_old_val_w=`echo x $ac_old_val`
2253 ac_new_val_w=`echo x $ac_new_val`
2254 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2256$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2257 ac_cache_corrupted=:
2258 else
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2260$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2261 eval $ac_var=\$ac_old_val
2262 fi
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2264$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2266$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2267 fi;;
2268 esac
2269 # Pass precious variables to config.status.
2270 if test "$ac_new_set" = set; then
2271 case $ac_new_val in
2272 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2273 *) ac_arg=$ac_var=$ac_new_val ;;
2274 esac
2275 case " $ac_configure_args " in
2276 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2277 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2278 esac
2279 fi
2280done
2281if $ac_cache_corrupted; then
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2285$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2286 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2287fi
2288## -------------------- ##
2289## Main body of script. ##
2290## -------------------- ##
2291
2292ac_ext=c
2293ac_cpp='$CPP $CPPFLAGS'
2294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2296ac_compiler_gnu=$ac_cv_c_compiler_gnu
2297
2298
2299
2300
2301
2302
2303
87279e3c 2304
a7c23ac9 2305
0e65dfba
NA
2306ac_aux_dir=
2307for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2308 if test -f "$ac_dir/install-sh"; then
2309 ac_aux_dir=$ac_dir
2310 ac_install_sh="$ac_aux_dir/install-sh -c"
2311 break
2312 elif test -f "$ac_dir/install.sh"; then
2313 ac_aux_dir=$ac_dir
2314 ac_install_sh="$ac_aux_dir/install.sh -c"
2315 break
2316 elif test -f "$ac_dir/shtool"; then
2317 ac_aux_dir=$ac_dir
2318 ac_install_sh="$ac_aux_dir/shtool install -c"
2319 break
2320 fi
2321done
2322if test -z "$ac_aux_dir"; then
2323 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2324fi
2325
2326# These three variables are undocumented and unsupported,
2327# and are intended to be withdrawn in a future Autoconf release.
2328# They can cause serious problems if a builder's source tree is in a directory
2329# whose full name contains unusual characters.
2330ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2331ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2332ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2333
2334
2335# Expand $ac_aux_dir to an absolute path.
2336am_aux_dir=`cd "$ac_aux_dir" && pwd`
2337
2338ac_ext=c
2339ac_cpp='$CPP $CPPFLAGS'
2340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2342ac_compiler_gnu=$ac_cv_c_compiler_gnu
2343if test -n "$ac_tool_prefix"; then
2344 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2345set dummy ${ac_tool_prefix}gcc; ac_word=$2
2346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2347$as_echo_n "checking for $ac_word... " >&6; }
2348if ${ac_cv_prog_CC+:} false; then :
2349 $as_echo_n "(cached) " >&6
2350else
2351 if test -n "$CC"; then
2352 ac_cv_prog_CC="$CC" # Let the user override the test.
2353else
2354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355for as_dir in $PATH
2356do
2357 IFS=$as_save_IFS
2358 test -z "$as_dir" && as_dir=.
2359 for ac_exec_ext in '' $ac_executable_extensions; do
2360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2361 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2363 break 2
2364 fi
2365done
2366 done
2367IFS=$as_save_IFS
2368
2369fi
2370fi
2371CC=$ac_cv_prog_CC
2372if test -n "$CC"; then
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2374$as_echo "$CC" >&6; }
2375else
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2377$as_echo "no" >&6; }
2378fi
2379
2380
2381fi
2382if test -z "$ac_cv_prog_CC"; then
2383 ac_ct_CC=$CC
2384 # Extract the first word of "gcc", so it can be a program name with args.
2385set dummy gcc; ac_word=$2
2386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2387$as_echo_n "checking for $ac_word... " >&6; }
2388if ${ac_cv_prog_ac_ct_CC+:} false; then :
2389 $as_echo_n "(cached) " >&6
2390else
2391 if test -n "$ac_ct_CC"; then
2392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2393else
2394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395for as_dir in $PATH
2396do
2397 IFS=$as_save_IFS
2398 test -z "$as_dir" && as_dir=.
2399 for ac_exec_ext in '' $ac_executable_extensions; do
2400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2401 ac_cv_prog_ac_ct_CC="gcc"
2402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2403 break 2
2404 fi
2405done
2406 done
2407IFS=$as_save_IFS
2408
2409fi
2410fi
2411ac_ct_CC=$ac_cv_prog_ac_ct_CC
2412if test -n "$ac_ct_CC"; then
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2414$as_echo "$ac_ct_CC" >&6; }
2415else
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2417$as_echo "no" >&6; }
2418fi
2419
2420 if test "x$ac_ct_CC" = x; then
2421 CC=""
2422 else
2423 case $cross_compiling:$ac_tool_warned in
2424yes:)
2425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2427ac_tool_warned=yes ;;
2428esac
2429 CC=$ac_ct_CC
2430 fi
2431else
2432 CC="$ac_cv_prog_CC"
2433fi
2434
2435if test -z "$CC"; then
2436 if test -n "$ac_tool_prefix"; then
2437 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2438set dummy ${ac_tool_prefix}cc; ac_word=$2
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2440$as_echo_n "checking for $ac_word... " >&6; }
2441if ${ac_cv_prog_CC+:} false; then :
2442 $as_echo_n "(cached) " >&6
2443else
2444 if test -n "$CC"; then
2445 ac_cv_prog_CC="$CC" # Let the user override the test.
2446else
2447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448for as_dir in $PATH
2449do
2450 IFS=$as_save_IFS
2451 test -z "$as_dir" && as_dir=.
2452 for ac_exec_ext in '' $ac_executable_extensions; do
2453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2454 ac_cv_prog_CC="${ac_tool_prefix}cc"
2455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 break 2
2457 fi
2458done
2459 done
2460IFS=$as_save_IFS
2461
2462fi
2463fi
2464CC=$ac_cv_prog_CC
2465if test -n "$CC"; then
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2467$as_echo "$CC" >&6; }
2468else
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2470$as_echo "no" >&6; }
2471fi
2472
2473
2474 fi
2475fi
2476if test -z "$CC"; then
2477 # Extract the first word of "cc", so it can be a program name with args.
2478set dummy cc; ac_word=$2
2479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2480$as_echo_n "checking for $ac_word... " >&6; }
2481if ${ac_cv_prog_CC+:} false; then :
2482 $as_echo_n "(cached) " >&6
2483else
2484 if test -n "$CC"; then
2485 ac_cv_prog_CC="$CC" # Let the user override the test.
2486else
2487 ac_prog_rejected=no
2488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489for as_dir in $PATH
2490do
2491 IFS=$as_save_IFS
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2495 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2496 ac_prog_rejected=yes
2497 continue
2498 fi
2499 ac_cv_prog_CC="cc"
2500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 break 2
2502 fi
2503done
2504 done
2505IFS=$as_save_IFS
2506
2507if test $ac_prog_rejected = yes; then
2508 # We found a bogon in the path, so make sure we never use it.
2509 set dummy $ac_cv_prog_CC
2510 shift
2511 if test $# != 0; then
2512 # We chose a different compiler from the bogus one.
2513 # However, it has the same basename, so the bogon will be chosen
2514 # first if we set CC to just the basename; use the full file name.
2515 shift
2516 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2517 fi
2518fi
2519fi
2520fi
2521CC=$ac_cv_prog_CC
2522if test -n "$CC"; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2524$as_echo "$CC" >&6; }
2525else
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2527$as_echo "no" >&6; }
2528fi
2529
2530
2531fi
2532if test -z "$CC"; then
2533 if test -n "$ac_tool_prefix"; then
2534 for ac_prog in cl.exe
2535 do
2536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2537set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539$as_echo_n "checking for $ac_word... " >&6; }
2540if ${ac_cv_prog_CC+:} false; then :
2541 $as_echo_n "(cached) " >&6
2542else
2543 if test -n "$CC"; then
2544 ac_cv_prog_CC="$CC" # Let the user override the test.
2545else
2546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547for as_dir in $PATH
2548do
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2553 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 break 2
2556 fi
2557done
2558 done
2559IFS=$as_save_IFS
2560
2561fi
2562fi
2563CC=$ac_cv_prog_CC
2564if test -n "$CC"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2566$as_echo "$CC" >&6; }
2567else
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569$as_echo "no" >&6; }
2570fi
2571
2572
2573 test -n "$CC" && break
2574 done
2575fi
2576if test -z "$CC"; then
2577 ac_ct_CC=$CC
2578 for ac_prog in cl.exe
2579do
2580 # Extract the first word of "$ac_prog", so it can be a program name with args.
2581set dummy $ac_prog; ac_word=$2
2582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2583$as_echo_n "checking for $ac_word... " >&6; }
2584if ${ac_cv_prog_ac_ct_CC+:} false; then :
2585 $as_echo_n "(cached) " >&6
2586else
2587 if test -n "$ac_ct_CC"; then
2588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2589else
2590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591for as_dir in $PATH
2592do
2593 IFS=$as_save_IFS
2594 test -z "$as_dir" && as_dir=.
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2597 ac_cv_prog_ac_ct_CC="$ac_prog"
2598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2599 break 2
2600 fi
2601done
2602 done
2603IFS=$as_save_IFS
2604
2605fi
2606fi
2607ac_ct_CC=$ac_cv_prog_ac_ct_CC
2608if test -n "$ac_ct_CC"; then
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2610$as_echo "$ac_ct_CC" >&6; }
2611else
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2613$as_echo "no" >&6; }
2614fi
2615
2616
2617 test -n "$ac_ct_CC" && break
2618done
2619
2620 if test "x$ac_ct_CC" = x; then
2621 CC=""
2622 else
2623 case $cross_compiling:$ac_tool_warned in
2624yes:)
2625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2627ac_tool_warned=yes ;;
2628esac
2629 CC=$ac_ct_CC
2630 fi
2631fi
2632
2633fi
2634
2635
2636test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2638as_fn_error $? "no acceptable C compiler found in \$PATH
2639See \`config.log' for more details" "$LINENO" 5; }
2640
2641# Provide some information about the compiler.
2642$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2643set X $ac_compile
2644ac_compiler=$2
2645for ac_option in --version -v -V -qversion; do
2646 { { ac_try="$ac_compiler $ac_option >&5"
2647case "(($ac_try" in
2648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649 *) ac_try_echo=$ac_try;;
2650esac
2651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2652$as_echo "$ac_try_echo"; } >&5
2653 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2654 ac_status=$?
2655 if test -s conftest.err; then
2656 sed '10a\
2657... rest of stderr output deleted ...
2658 10q' conftest.err >conftest.er1
2659 cat conftest.er1 >&5
2660 fi
2661 rm -f conftest.er1 conftest.err
2662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2663 test $ac_status = 0; }
2664done
2665
2666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2667/* end confdefs.h. */
2668
2669int
2670main ()
2671{
2672
2673 ;
2674 return 0;
2675}
2676_ACEOF
2677ac_clean_files_save=$ac_clean_files
2678ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2679# Try to create an executable without -o first, disregard a.out.
2680# It will help us diagnose broken compilers, and finding out an intuition
2681# of exeext.
2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2683$as_echo_n "checking whether the C compiler works... " >&6; }
2684ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2685
2686# The possible output files:
2687ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2688
2689ac_rmfiles=
2690for ac_file in $ac_files
2691do
2692 case $ac_file in
2693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2694 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2695 esac
2696done
2697rm -f $ac_rmfiles
2698
2699if { { ac_try="$ac_link_default"
2700case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703esac
2704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2705$as_echo "$ac_try_echo"; } >&5
2706 (eval "$ac_link_default") 2>&5
2707 ac_status=$?
2708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2709 test $ac_status = 0; }; then :
2710 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2711# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2712# in a Makefile. We should not override ac_cv_exeext if it was cached,
2713# so that the user can short-circuit this test for compilers unknown to
2714# Autoconf.
2715for ac_file in $ac_files ''
2716do
2717 test -f "$ac_file" || continue
2718 case $ac_file in
2719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2720 ;;
2721 [ab].out )
2722 # We found the default executable, but exeext='' is most
2723 # certainly right.
2724 break;;
2725 *.* )
2726 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2727 then :; else
2728 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2729 fi
2730 # We set ac_cv_exeext here because the later test for it is not
2731 # safe: cross compilers may not add the suffix if given an `-o'
2732 # argument, so we may need to know it at that point already.
2733 # Even if this section looks crufty: it has the advantage of
2734 # actually working.
2735 break;;
2736 * )
2737 break;;
2738 esac
2739done
2740test "$ac_cv_exeext" = no && ac_cv_exeext=
2741
2742else
2743 ac_file=''
2744fi
2745if test -z "$ac_file"; then :
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747$as_echo "no" >&6; }
2748$as_echo "$as_me: failed program was:" >&5
2749sed 's/^/| /' conftest.$ac_ext >&5
2750
2751{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2753as_fn_error 77 "C compiler cannot create executables
2754See \`config.log' for more details" "$LINENO" 5; }
2755else
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2757$as_echo "yes" >&6; }
2758fi
2759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2760$as_echo_n "checking for C compiler default output file name... " >&6; }
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2762$as_echo "$ac_file" >&6; }
2763ac_exeext=$ac_cv_exeext
2764
2765rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2766ac_clean_files=$ac_clean_files_save
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2768$as_echo_n "checking for suffix of executables... " >&6; }
2769if { { ac_try="$ac_link"
2770case "(($ac_try" in
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2773esac
2774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2775$as_echo "$ac_try_echo"; } >&5
2776 (eval "$ac_link") 2>&5
2777 ac_status=$?
2778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2779 test $ac_status = 0; }; then :
2780 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2781# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2782# work properly (i.e., refer to `conftest.exe'), while it won't with
2783# `rm'.
2784for ac_file in conftest.exe conftest conftest.*; do
2785 test -f "$ac_file" || continue
2786 case $ac_file in
2787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2788 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2789 break;;
2790 * ) break;;
2791 esac
2792done
2793else
2794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2796as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2797See \`config.log' for more details" "$LINENO" 5; }
2798fi
2799rm -f conftest conftest$ac_cv_exeext
2800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2801$as_echo "$ac_cv_exeext" >&6; }
2802
2803rm -f conftest.$ac_ext
2804EXEEXT=$ac_cv_exeext
2805ac_exeext=$EXEEXT
2806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807/* end confdefs.h. */
2808#include <stdio.h>
2809int
2810main ()
2811{
2812FILE *f = fopen ("conftest.out", "w");
2813 return ferror (f) || fclose (f) != 0;
2814
2815 ;
2816 return 0;
2817}
2818_ACEOF
2819ac_clean_files="$ac_clean_files conftest.out"
2820# Check that the compiler produces executables we can run. If not, either
2821# the compiler is broken, or we cross compile.
2822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2823$as_echo_n "checking whether we are cross compiling... " >&6; }
2824if test "$cross_compiling" != yes; then
2825 { { ac_try="$ac_link"
2826case "(($ac_try" in
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2829esac
2830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2831$as_echo "$ac_try_echo"; } >&5
2832 (eval "$ac_link") 2>&5
2833 ac_status=$?
2834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2835 test $ac_status = 0; }
2836 if { ac_try='./conftest$ac_cv_exeext'
2837 { { case "(($ac_try" in
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2840esac
2841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2842$as_echo "$ac_try_echo"; } >&5
2843 (eval "$ac_try") 2>&5
2844 ac_status=$?
2845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2846 test $ac_status = 0; }; }; then
2847 cross_compiling=no
2848 else
2849 if test "$cross_compiling" = maybe; then
2850 cross_compiling=yes
2851 else
2852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2853$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2854as_fn_error $? "cannot run C compiled programs.
2855If you meant to cross compile, use \`--host'.
2856See \`config.log' for more details" "$LINENO" 5; }
2857 fi
2858 fi
2859fi
2860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2861$as_echo "$cross_compiling" >&6; }
2862
2863rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2864ac_clean_files=$ac_clean_files_save
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2866$as_echo_n "checking for suffix of object files... " >&6; }
2867if ${ac_cv_objext+:} false; then :
2868 $as_echo_n "(cached) " >&6
2869else
2870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2871/* end confdefs.h. */
2872
2873int
2874main ()
2875{
2876
2877 ;
2878 return 0;
2879}
2880_ACEOF
2881rm -f conftest.o conftest.obj
2882if { { ac_try="$ac_compile"
2883case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2886esac
2887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2888$as_echo "$ac_try_echo"; } >&5
2889 (eval "$ac_compile") 2>&5
2890 ac_status=$?
2891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2892 test $ac_status = 0; }; then :
2893 for ac_file in conftest.o conftest.obj conftest.*; do
2894 test -f "$ac_file" || continue;
2895 case $ac_file in
2896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2897 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2898 break;;
2899 esac
2900done
2901else
2902 $as_echo "$as_me: failed program was:" >&5
2903sed 's/^/| /' conftest.$ac_ext >&5
2904
2905{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2907as_fn_error $? "cannot compute suffix of object files: cannot compile
2908See \`config.log' for more details" "$LINENO" 5; }
2909fi
2910rm -f conftest.$ac_cv_objext conftest.$ac_ext
2911fi
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2913$as_echo "$ac_cv_objext" >&6; }
2914OBJEXT=$ac_cv_objext
2915ac_objext=$OBJEXT
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2917$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2918if ${ac_cv_c_compiler_gnu+:} false; then :
2919 $as_echo_n "(cached) " >&6
2920else
2921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922/* end confdefs.h. */
2923
2924int
2925main ()
2926{
2927#ifndef __GNUC__
2928 choke me
2929#endif
2930
2931 ;
2932 return 0;
2933}
2934_ACEOF
2935if ac_fn_c_try_compile "$LINENO"; then :
2936 ac_compiler_gnu=yes
2937else
2938 ac_compiler_gnu=no
2939fi
2940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2941ac_cv_c_compiler_gnu=$ac_compiler_gnu
2942
2943fi
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2945$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2946if test $ac_compiler_gnu = yes; then
2947 GCC=yes
2948else
2949 GCC=
2950fi
2951ac_test_CFLAGS=${CFLAGS+set}
2952ac_save_CFLAGS=$CFLAGS
2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2954$as_echo_n "checking whether $CC accepts -g... " >&6; }
2955if ${ac_cv_prog_cc_g+:} false; then :
2956 $as_echo_n "(cached) " >&6
2957else
2958 ac_save_c_werror_flag=$ac_c_werror_flag
2959 ac_c_werror_flag=yes
2960 ac_cv_prog_cc_g=no
2961 CFLAGS="-g"
2962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2963/* end confdefs.h. */
2964
2965int
2966main ()
2967{
2968
2969 ;
2970 return 0;
2971}
2972_ACEOF
2973if ac_fn_c_try_compile "$LINENO"; then :
2974 ac_cv_prog_cc_g=yes
2975else
2976 CFLAGS=""
2977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2978/* end confdefs.h. */
2979
2980int
2981main ()
2982{
2983
2984 ;
2985 return 0;
2986}
2987_ACEOF
2988if ac_fn_c_try_compile "$LINENO"; then :
2989
2990else
2991 ac_c_werror_flag=$ac_save_c_werror_flag
2992 CFLAGS="-g"
2993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2994/* end confdefs.h. */
2995
2996int
2997main ()
2998{
2999
3000 ;
3001 return 0;
3002}
3003_ACEOF
3004if ac_fn_c_try_compile "$LINENO"; then :
3005 ac_cv_prog_cc_g=yes
3006fi
3007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3008fi
3009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3010fi
3011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012 ac_c_werror_flag=$ac_save_c_werror_flag
3013fi
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3015$as_echo "$ac_cv_prog_cc_g" >&6; }
3016if test "$ac_test_CFLAGS" = set; then
3017 CFLAGS=$ac_save_CFLAGS
3018elif test $ac_cv_prog_cc_g = yes; then
3019 if test "$GCC" = yes; then
3020 CFLAGS="-g -O2"
3021 else
3022 CFLAGS="-g"
3023 fi
3024else
3025 if test "$GCC" = yes; then
3026 CFLAGS="-O2"
3027 else
3028 CFLAGS=
3029 fi
3030fi
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3032$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3033if ${ac_cv_prog_cc_c89+:} false; then :
3034 $as_echo_n "(cached) " >&6
3035else
3036 ac_cv_prog_cc_c89=no
3037ac_save_CC=$CC
3038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3039/* end confdefs.h. */
3040#include <stdarg.h>
3041#include <stdio.h>
3042struct stat;
3043/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3044struct buf { int x; };
3045FILE * (*rcsopen) (struct buf *, struct stat *, int);
3046static char *e (p, i)
3047 char **p;
3048 int i;
3049{
3050 return p[i];
3051}
3052static char *f (char * (*g) (char **, int), char **p, ...)
3053{
3054 char *s;
3055 va_list v;
3056 va_start (v,p);
3057 s = g (p, va_arg (v,int));
3058 va_end (v);
3059 return s;
3060}
3061
3062/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3063 function prototypes and stuff, but not '\xHH' hex character constants.
3064 These don't provoke an error unfortunately, instead are silently treated
3065 as 'x'. The following induces an error, until -std is added to get
3066 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3067 array size at least. It's necessary to write '\x00'==0 to get something
3068 that's true only with -std. */
3069int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3070
3071/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3072 inside strings and character constants. */
3073#define FOO(x) 'x'
3074int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3075
3076int test (int i, double x);
3077struct s1 {int (*f) (int a);};
3078struct s2 {int (*f) (double a);};
3079int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3080int argc;
3081char **argv;
3082int
3083main ()
3084{
3085return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3086 ;
3087 return 0;
3088}
3089_ACEOF
3090for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3091 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3092do
3093 CC="$ac_save_CC $ac_arg"
3094 if ac_fn_c_try_compile "$LINENO"; then :
3095 ac_cv_prog_cc_c89=$ac_arg
3096fi
3097rm -f core conftest.err conftest.$ac_objext
3098 test "x$ac_cv_prog_cc_c89" != "xno" && break
3099done
3100rm -f conftest.$ac_ext
3101CC=$ac_save_CC
3102
3103fi
3104# AC_CACHE_VAL
3105case "x$ac_cv_prog_cc_c89" in
3106 x)
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3108$as_echo "none needed" >&6; } ;;
3109 xno)
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3111$as_echo "unsupported" >&6; } ;;
3112 *)
3113 CC="$CC $ac_cv_prog_cc_c89"
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3115$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3116esac
3117if test "x$ac_cv_prog_cc_c89" != xno; then :
3118
3119fi
3120
3121ac_ext=c
3122ac_cpp='$CPP $CPPFLAGS'
3123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3125ac_compiler_gnu=$ac_cv_c_compiler_gnu
3126
3127ac_ext=c
3128ac_cpp='$CPP $CPPFLAGS'
3129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3131ac_compiler_gnu=$ac_cv_c_compiler_gnu
3132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3133$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3134if ${am_cv_prog_cc_c_o+:} false; then :
3135 $as_echo_n "(cached) " >&6
3136else
3137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3138/* end confdefs.h. */
3139
3140int
3141main ()
3142{
3143
3144 ;
3145 return 0;
3146}
3147_ACEOF
3148 # Make sure it works both with $CC and with simple cc.
3149 # Following AC_PROG_CC_C_O, we do the test twice because some
3150 # compilers refuse to overwrite an existing .o file with -o,
3151 # though they will create one.
3152 am_cv_prog_cc_c_o=yes
3153 for am_i in 1 2; do
3154 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3155 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } \
3159 && test -f conftest2.$ac_objext; then
3160 : OK
3161 else
3162 am_cv_prog_cc_c_o=no
3163 break
3164 fi
3165 done
3166 rm -f core conftest*
3167 unset am_i
3168fi
3169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3170$as_echo "$am_cv_prog_cc_c_o" >&6; }
3171if test "$am_cv_prog_cc_c_o" != yes; then
3172 # Losing compiler, so override with the script.
3173 # FIXME: It is wrong to rewrite CC.
3174 # But if we don't then we get into trouble of one sort or another.
3175 # A longer-term fix would be to have automake use am__CC in this case,
3176 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3177 CC="$am_aux_dir/compile $CC"
3178fi
3179ac_ext=c
3180ac_cpp='$CPP $CPPFLAGS'
3181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3183ac_compiler_gnu=$ac_cv_c_compiler_gnu
3184
3185
3186
3187ac_ext=c
3188ac_cpp='$CPP $CPPFLAGS'
3189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191ac_compiler_gnu=$ac_cv_c_compiler_gnu
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3193$as_echo_n "checking how to run the C preprocessor... " >&6; }
3194# On Suns, sometimes $CPP names a directory.
3195if test -n "$CPP" && test -d "$CPP"; then
3196 CPP=
3197fi
3198if test -z "$CPP"; then
3199 if ${ac_cv_prog_CPP+:} false; then :
3200 $as_echo_n "(cached) " >&6
3201else
3202 # Double quotes because CPP needs to be expanded
3203 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3204 do
3205 ac_preproc_ok=false
3206for ac_c_preproc_warn_flag in '' yes
3207do
3208 # Use a header file that comes with gcc, so configuring glibc
3209 # with a fresh cross-compiler works.
3210 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3211 # <limits.h> exists even on freestanding compilers.
3212 # On the NeXT, cc -E runs the code through the compiler's parser,
3213 # not just through cpp. "Syntax error" is here to catch this case.
3214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3215/* end confdefs.h. */
3216#ifdef __STDC__
3217# include <limits.h>
3218#else
3219# include <assert.h>
3220#endif
3221 Syntax error
3222_ACEOF
3223if ac_fn_c_try_cpp "$LINENO"; then :
3224
3225else
3226 # Broken: fails on valid input.
3227continue
3228fi
3229rm -f conftest.err conftest.i conftest.$ac_ext
3230
3231 # OK, works on sane cases. Now check whether nonexistent headers
3232 # can be detected and how.
3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234/* end confdefs.h. */
3235#include <ac_nonexistent.h>
3236_ACEOF
3237if ac_fn_c_try_cpp "$LINENO"; then :
3238 # Broken: success on invalid input.
3239continue
3240else
3241 # Passes both tests.
3242ac_preproc_ok=:
3243break
3244fi
3245rm -f conftest.err conftest.i conftest.$ac_ext
3246
3247done
3248# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3249rm -f conftest.i conftest.err conftest.$ac_ext
3250if $ac_preproc_ok; then :
3251 break
3252fi
3253
3254 done
3255 ac_cv_prog_CPP=$CPP
3256
3257fi
3258 CPP=$ac_cv_prog_CPP
3259else
3260 ac_cv_prog_CPP=$CPP
3261fi
3262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3263$as_echo "$CPP" >&6; }
3264ac_preproc_ok=false
3265for ac_c_preproc_warn_flag in '' yes
3266do
3267 # Use a header file that comes with gcc, so configuring glibc
3268 # with a fresh cross-compiler works.
3269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3270 # <limits.h> exists even on freestanding compilers.
3271 # On the NeXT, cc -E runs the code through the compiler's parser,
3272 # not just through cpp. "Syntax error" is here to catch this case.
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274/* end confdefs.h. */
3275#ifdef __STDC__
3276# include <limits.h>
3277#else
3278# include <assert.h>
3279#endif
3280 Syntax error
3281_ACEOF
3282if ac_fn_c_try_cpp "$LINENO"; then :
3283
3284else
3285 # Broken: fails on valid input.
3286continue
3287fi
3288rm -f conftest.err conftest.i conftest.$ac_ext
3289
3290 # OK, works on sane cases. Now check whether nonexistent headers
3291 # can be detected and how.
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293/* end confdefs.h. */
3294#include <ac_nonexistent.h>
3295_ACEOF
3296if ac_fn_c_try_cpp "$LINENO"; then :
3297 # Broken: success on invalid input.
3298continue
3299else
3300 # Passes both tests.
3301ac_preproc_ok=:
3302break
3303fi
3304rm -f conftest.err conftest.i conftest.$ac_ext
3305
3306done
3307# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3308rm -f conftest.i conftest.err conftest.$ac_ext
3309if $ac_preproc_ok; then :
3310
3311else
3312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3314as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3315See \`config.log' for more details" "$LINENO" 5; }
3316fi
3317
3318ac_ext=c
3319ac_cpp='$CPP $CPPFLAGS'
3320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3322ac_compiler_gnu=$ac_cv_c_compiler_gnu
3323
3324
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3326$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3327if ${ac_cv_path_GREP+:} false; then :
3328 $as_echo_n "(cached) " >&6
3329else
3330 if test -z "$GREP"; then
3331 ac_path_GREP_found=false
3332 # Loop through the user's path and test for each of PROGNAME-LIST
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3335do
3336 IFS=$as_save_IFS
3337 test -z "$as_dir" && as_dir=.
3338 for ac_prog in grep ggrep; do
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3341 as_fn_executable_p "$ac_path_GREP" || continue
3342# Check for GNU ac_path_GREP and select it if it is found.
3343 # Check for GNU $ac_path_GREP
3344case `"$ac_path_GREP" --version 2>&1` in
3345*GNU*)
3346 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3347*)
3348 ac_count=0
3349 $as_echo_n 0123456789 >"conftest.in"
3350 while :
3351 do
3352 cat "conftest.in" "conftest.in" >"conftest.tmp"
3353 mv "conftest.tmp" "conftest.in"
3354 cp "conftest.in" "conftest.nl"
3355 $as_echo 'GREP' >> "conftest.nl"
3356 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3357 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3358 as_fn_arith $ac_count + 1 && ac_count=$as_val
3359 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3360 # Best one so far, save it but keep looking for a better one
3361 ac_cv_path_GREP="$ac_path_GREP"
3362 ac_path_GREP_max=$ac_count
3363 fi
3364 # 10*(2^10) chars as input seems more than enough
3365 test $ac_count -gt 10 && break
3366 done
3367 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3368esac
3369
3370 $ac_path_GREP_found && break 3
3371 done
3372 done
3373 done
3374IFS=$as_save_IFS
3375 if test -z "$ac_cv_path_GREP"; then
3376 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3377 fi
3378else
3379 ac_cv_path_GREP=$GREP
3380fi
3381
3382fi
3383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3384$as_echo "$ac_cv_path_GREP" >&6; }
3385 GREP="$ac_cv_path_GREP"
3386
3387
3388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3389$as_echo_n "checking for egrep... " >&6; }
3390if ${ac_cv_path_EGREP+:} false; then :
3391 $as_echo_n "(cached) " >&6
3392else
3393 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3394 then ac_cv_path_EGREP="$GREP -E"
3395 else
3396 if test -z "$EGREP"; then
3397 ac_path_EGREP_found=false
3398 # Loop through the user's path and test for each of PROGNAME-LIST
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3401do
3402 IFS=$as_save_IFS
3403 test -z "$as_dir" && as_dir=.
3404 for ac_prog in egrep; do
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3407 as_fn_executable_p "$ac_path_EGREP" || continue
3408# Check for GNU ac_path_EGREP and select it if it is found.
3409 # Check for GNU $ac_path_EGREP
3410case `"$ac_path_EGREP" --version 2>&1` in
3411*GNU*)
3412 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3413*)
3414 ac_count=0
3415 $as_echo_n 0123456789 >"conftest.in"
3416 while :
3417 do
3418 cat "conftest.in" "conftest.in" >"conftest.tmp"
3419 mv "conftest.tmp" "conftest.in"
3420 cp "conftest.in" "conftest.nl"
3421 $as_echo 'EGREP' >> "conftest.nl"
3422 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3423 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3424 as_fn_arith $ac_count + 1 && ac_count=$as_val
3425 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3426 # Best one so far, save it but keep looking for a better one
3427 ac_cv_path_EGREP="$ac_path_EGREP"
3428 ac_path_EGREP_max=$ac_count
3429 fi
3430 # 10*(2^10) chars as input seems more than enough
3431 test $ac_count -gt 10 && break
3432 done
3433 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3434esac
3435
3436 $ac_path_EGREP_found && break 3
3437 done
3438 done
3439 done
3440IFS=$as_save_IFS
3441 if test -z "$ac_cv_path_EGREP"; then
3442 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3443 fi
3444else
3445 ac_cv_path_EGREP=$EGREP
3446fi
3447
3448 fi
3449fi
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3451$as_echo "$ac_cv_path_EGREP" >&6; }
3452 EGREP="$ac_cv_path_EGREP"
3453
3454
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3456$as_echo_n "checking for ANSI C header files... " >&6; }
3457if ${ac_cv_header_stdc+:} false; then :
3458 $as_echo_n "(cached) " >&6
3459else
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461/* end confdefs.h. */
3462#include <stdlib.h>
3463#include <stdarg.h>
3464#include <string.h>
3465#include <float.h>
3466
3467int
3468main ()
3469{
3470
3471 ;
3472 return 0;
3473}
3474_ACEOF
3475if ac_fn_c_try_compile "$LINENO"; then :
3476 ac_cv_header_stdc=yes
3477else
3478 ac_cv_header_stdc=no
3479fi
3480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481
3482if test $ac_cv_header_stdc = yes; then
3483 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485/* end confdefs.h. */
3486#include <string.h>
3487
3488_ACEOF
3489if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3490 $EGREP "memchr" >/dev/null 2>&1; then :
3491
3492else
3493 ac_cv_header_stdc=no
3494fi
3495rm -f conftest*
3496
3497fi
3498
3499if test $ac_cv_header_stdc = yes; then
3500 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502/* end confdefs.h. */
3503#include <stdlib.h>
3504
3505_ACEOF
3506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3507 $EGREP "free" >/dev/null 2>&1; then :
3508
3509else
3510 ac_cv_header_stdc=no
3511fi
3512rm -f conftest*
3513
3514fi
3515
3516if test $ac_cv_header_stdc = yes; then
3517 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3518 if test "$cross_compiling" = yes; then :
3519 :
3520else
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522/* end confdefs.h. */
3523#include <ctype.h>
3524#include <stdlib.h>
3525#if ((' ' & 0x0FF) == 0x020)
3526# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3527# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3528#else
3529# define ISLOWER(c) \
3530 (('a' <= (c) && (c) <= 'i') \
3531 || ('j' <= (c) && (c) <= 'r') \
3532 || ('s' <= (c) && (c) <= 'z'))
3533# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3534#endif
3535
3536#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3537int
3538main ()
3539{
3540 int i;
3541 for (i = 0; i < 256; i++)
3542 if (XOR (islower (i), ISLOWER (i))
3543 || toupper (i) != TOUPPER (i))
3544 return 2;
3545 return 0;
3546}
3547_ACEOF
3548if ac_fn_c_try_run "$LINENO"; then :
3549
3550else
3551 ac_cv_header_stdc=no
3552fi
3553rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3554 conftest.$ac_objext conftest.beam conftest.$ac_ext
3555fi
3556
3557fi
3558fi
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3560$as_echo "$ac_cv_header_stdc" >&6; }
3561if test $ac_cv_header_stdc = yes; then
3562
3563$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3564
3565fi
3566
3567# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3568for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3569 inttypes.h stdint.h unistd.h
3570do :
3571 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3572ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3573"
3574if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3575 cat >>confdefs.h <<_ACEOF
3576#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3577_ACEOF
3578
3579fi
3580
3581done
3582
3583
3584
3585 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3586if test "x$ac_cv_header_minix_config_h" = xyes; then :
3587 MINIX=yes
3588else
3589 MINIX=
3590fi
3591
3592
3593 if test "$MINIX" = yes; then
3594
3595$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3596
3597
3598$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3599
3600
3601$as_echo "#define _MINIX 1" >>confdefs.h
3602
3603 fi
3604
3605
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3607$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3608if ${ac_cv_safe_to_define___extensions__+:} false; then :
3609 $as_echo_n "(cached) " >&6
3610else
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612/* end confdefs.h. */
3613
3614# define __EXTENSIONS__ 1
3615 $ac_includes_default
3616int
3617main ()
3618{
3619
3620 ;
3621 return 0;
3622}
3623_ACEOF
3624if ac_fn_c_try_compile "$LINENO"; then :
3625 ac_cv_safe_to_define___extensions__=yes
3626else
3627 ac_cv_safe_to_define___extensions__=no
3628fi
3629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630fi
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3632$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3633 test $ac_cv_safe_to_define___extensions__ = yes &&
3634 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3635
3636 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3637
3638 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3639
3640 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3641
3642 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3643
3644
3645am__api_version='1.15'
3646
3647# Find a good install program. We prefer a C program (faster),
3648# so one script is as good as another. But avoid the broken or
3649# incompatible versions:
3650# SysV /etc/install, /usr/sbin/install
3651# SunOS /usr/etc/install
3652# IRIX /sbin/install
3653# AIX /bin/install
3654# AmigaOS /C/install, which installs bootblocks on floppy discs
3655# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3656# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3657# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3658# OS/2's system install, which has a completely different semantic
3659# ./install, which can be erroneously created by make from ./install.sh.
3660# Reject install programs that cannot install multiple files.
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3662$as_echo_n "checking for a BSD-compatible install... " >&6; }
3663if test -z "$INSTALL"; then
3664if ${ac_cv_path_install+:} false; then :
3665 $as_echo_n "(cached) " >&6
3666else
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668for as_dir in $PATH
3669do
3670 IFS=$as_save_IFS
3671 test -z "$as_dir" && as_dir=.
3672 # Account for people who put trailing slashes in PATH elements.
3673case $as_dir/ in #((
3674 ./ | .// | /[cC]/* | \
3675 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3676 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3677 /usr/ucb/* ) ;;
3678 *)
3679 # OSF1 and SCO ODT 3.0 have their own names for install.
3680 # Don't use installbsd from OSF since it installs stuff as root
3681 # by default.
3682 for ac_prog in ginstall scoinst install; do
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3685 if test $ac_prog = install &&
3686 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3687 # AIX install. It has an incompatible calling convention.
3688 :
3689 elif test $ac_prog = install &&
3690 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3691 # program-specific install script used by HP pwplus--don't use.
3692 :
3693 else
3694 rm -rf conftest.one conftest.two conftest.dir
3695 echo one > conftest.one
3696 echo two > conftest.two
3697 mkdir conftest.dir
3698 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3699 test -s conftest.one && test -s conftest.two &&
3700 test -s conftest.dir/conftest.one &&
3701 test -s conftest.dir/conftest.two
3702 then
3703 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3704 break 3
3705 fi
3706 fi
3707 fi
3708 done
3709 done
3710 ;;
3711esac
3712
3713 done
3714IFS=$as_save_IFS
3715
3716rm -rf conftest.one conftest.two conftest.dir
3717
3718fi
3719 if test "${ac_cv_path_install+set}" = set; then
3720 INSTALL=$ac_cv_path_install
3721 else
3722 # As a last resort, use the slow shell script. Don't cache a
3723 # value for INSTALL within a source directory, because that will
3724 # break other packages using the cache if that directory is
3725 # removed, or if the value is a relative name.
3726 INSTALL=$ac_install_sh
3727 fi
3728fi
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3730$as_echo "$INSTALL" >&6; }
3731
3732# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3733# It thinks the first close brace ends the variable substitution.
3734test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3735
3736test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3737
3738test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3739
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3741$as_echo_n "checking whether build environment is sane... " >&6; }
3742# Reject unsafe characters in $srcdir or the absolute working directory
3743# name. Accept space and tab only in the latter.
3744am_lf='
3745'
3746case `pwd` in
3747 *[\\\"\#\$\&\'\`$am_lf]*)
3748 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3749esac
3750case $srcdir in
3751 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3752 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3753esac
3754
3755# Do 'set' in a subshell so we don't clobber the current shell's
3756# arguments. Must try -L first in case configure is actually a
3757# symlink; some systems play weird games with the mod time of symlinks
3758# (eg FreeBSD returns the mod time of the symlink's containing
3759# directory).
3760if (
3761 am_has_slept=no
3762 for am_try in 1 2; do
3763 echo "timestamp, slept: $am_has_slept" > conftest.file
3764 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3765 if test "$*" = "X"; then
3766 # -L didn't work.
3767 set X `ls -t "$srcdir/configure" conftest.file`
3768 fi
3769 if test "$*" != "X $srcdir/configure conftest.file" \
3770 && test "$*" != "X conftest.file $srcdir/configure"; then
3771
3772 # If neither matched, then we have a broken ls. This can happen
3773 # if, for instance, CONFIG_SHELL is bash and it inherits a
3774 # broken ls alias from the environment. This has actually
3775 # happened. Such a system could not be considered "sane".
3776 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3777 alias in your environment" "$LINENO" 5
3778 fi
3779 if test "$2" = conftest.file || test $am_try -eq 2; then
3780 break
3781 fi
3782 # Just in case.
3783 sleep 1
3784 am_has_slept=yes
3785 done
3786 test "$2" = conftest.file
3787 )
3788then
3789 # Ok.
3790 :
3791else
3792 as_fn_error $? "newly created file is older than distributed files!
3793Check your system clock" "$LINENO" 5
3794fi
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3796$as_echo "yes" >&6; }
3797# If we didn't sleep, we still need to ensure time stamps of config.status and
3798# generated files are strictly newer.
3799am_sleep_pid=
3800if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3801 ( sleep 1 ) &
3802 am_sleep_pid=$!
3803fi
3804
3805rm -f conftest.file
3806
3807test "$program_prefix" != NONE &&
3808 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3809# Use a double $ so make ignores it.
3810test "$program_suffix" != NONE &&
3811 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3812# Double any \ or $.
3813# By default was `s,x,x', remove it if useless.
3814ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3815program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3816
3817if test x"${MISSING+set}" != xset; then
3818 case $am_aux_dir in
3819 *\ * | *\ *)
3820 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3821 *)
3822 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3823 esac
3824fi
3825# Use eval to expand $SHELL
3826if eval "$MISSING --is-lightweight"; then
3827 am_missing_run="$MISSING "
3828else
3829 am_missing_run=
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3831$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3832fi
3833
3834if test x"${install_sh+set}" != xset; then
3835 case $am_aux_dir in
3836 *\ * | *\ *)
3837 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3838 *)
3839 install_sh="\${SHELL} $am_aux_dir/install-sh"
3840 esac
3841fi
3842
3843# Installed binaries are usually stripped using 'strip' when the user
3844# run "make install-strip". However 'strip' might not be the right
3845# tool to use in cross-compilation environments, therefore Automake
3846# will honor the 'STRIP' environment variable to overrule this program.
3847if test "$cross_compiling" != no; then
3848 if test -n "$ac_tool_prefix"; then
3849 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3850set dummy ${ac_tool_prefix}strip; ac_word=$2
3851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3852$as_echo_n "checking for $ac_word... " >&6; }
3853if ${ac_cv_prog_STRIP+:} false; then :
3854 $as_echo_n "(cached) " >&6
3855else
3856 if test -n "$STRIP"; then
3857 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3858else
3859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860for as_dir in $PATH
3861do
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3866 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 break 2
3869 fi
3870done
3871 done
3872IFS=$as_save_IFS
3873
3874fi
3875fi
3876STRIP=$ac_cv_prog_STRIP
3877if test -n "$STRIP"; then
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3879$as_echo "$STRIP" >&6; }
3880else
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3882$as_echo "no" >&6; }
3883fi
3884
3885
3886fi
3887if test -z "$ac_cv_prog_STRIP"; then
3888 ac_ct_STRIP=$STRIP
3889 # Extract the first word of "strip", so it can be a program name with args.
3890set dummy strip; ac_word=$2
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892$as_echo_n "checking for $ac_word... " >&6; }
3893if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3894 $as_echo_n "(cached) " >&6
3895else
3896 if test -n "$ac_ct_STRIP"; then
3897 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3898else
3899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900for as_dir in $PATH
3901do
3902 IFS=$as_save_IFS
3903 test -z "$as_dir" && as_dir=.
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3906 ac_cv_prog_ac_ct_STRIP="strip"
3907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 break 2
3909 fi
3910done
3911 done
3912IFS=$as_save_IFS
3913
3914fi
3915fi
3916ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3917if test -n "$ac_ct_STRIP"; then
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3919$as_echo "$ac_ct_STRIP" >&6; }
3920else
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922$as_echo "no" >&6; }
3923fi
3924
3925 if test "x$ac_ct_STRIP" = x; then
3926 STRIP=":"
3927 else
3928 case $cross_compiling:$ac_tool_warned in
3929yes:)
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3932ac_tool_warned=yes ;;
3933esac
3934 STRIP=$ac_ct_STRIP
3935 fi
3936else
3937 STRIP="$ac_cv_prog_STRIP"
3938fi
3939
3940fi
3941INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3942
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3944$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3945if test -z "$MKDIR_P"; then
3946 if ${ac_cv_path_mkdir+:} false; then :
3947 $as_echo_n "(cached) " >&6
3948else
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3951do
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
3954 for ac_prog in mkdir gmkdir; do
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3957 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3958 'mkdir (GNU coreutils) '* | \
3959 'mkdir (coreutils) '* | \
3960 'mkdir (fileutils) '4.1*)
3961 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3962 break 3;;
3963 esac
3964 done
3965 done
3966 done
3967IFS=$as_save_IFS
3968
3969fi
3970
3971 test -d ./--version && rmdir ./--version
3972 if test "${ac_cv_path_mkdir+set}" = set; then
3973 MKDIR_P="$ac_cv_path_mkdir -p"
3974 else
3975 # As a last resort, use the slow shell script. Don't cache a
3976 # value for MKDIR_P within a source directory, because that will
3977 # break other packages using the cache if that directory is
3978 # removed, or if the value is a relative name.
3979 MKDIR_P="$ac_install_sh -d"
3980 fi
3981fi
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3983$as_echo "$MKDIR_P" >&6; }
3984
3985for ac_prog in gawk mawk nawk awk
3986do
3987 # Extract the first word of "$ac_prog", so it can be a program name with args.
3988set dummy $ac_prog; ac_word=$2
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3990$as_echo_n "checking for $ac_word... " >&6; }
3991if ${ac_cv_prog_AWK+:} false; then :
3992 $as_echo_n "(cached) " >&6
3993else
3994 if test -n "$AWK"; then
3995 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3996else
3997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998for as_dir in $PATH
3999do
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4004 ac_cv_prog_AWK="$ac_prog"
4005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 break 2
4007 fi
4008done
4009 done
4010IFS=$as_save_IFS
4011
4012fi
4013fi
4014AWK=$ac_cv_prog_AWK
4015if test -n "$AWK"; then
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4017$as_echo "$AWK" >&6; }
4018else
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4020$as_echo "no" >&6; }
4021fi
4022
4023
4024 test -n "$AWK" && break
4025done
4026
4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4028$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4029set x ${MAKE-make}
4030ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4031if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4032 $as_echo_n "(cached) " >&6
4033else
4034 cat >conftest.make <<\_ACEOF
4035SHELL = /bin/sh
4036all:
4037 @echo '@@@%%%=$(MAKE)=@@@%%%'
4038_ACEOF
4039# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4040case `${MAKE-make} -f conftest.make 2>/dev/null` in
4041 *@@@%%%=?*=@@@%%%*)
4042 eval ac_cv_prog_make_${ac_make}_set=yes;;
4043 *)
4044 eval ac_cv_prog_make_${ac_make}_set=no;;
4045esac
4046rm -f conftest.make
4047fi
4048if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4050$as_echo "yes" >&6; }
4051 SET_MAKE=
4052else
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054$as_echo "no" >&6; }
4055 SET_MAKE="MAKE=${MAKE-make}"
4056fi
4057
4058rm -rf .tst 2>/dev/null
4059mkdir .tst 2>/dev/null
4060if test -d .tst; then
4061 am__leading_dot=.
4062else
4063 am__leading_dot=_
4064fi
4065rmdir .tst 2>/dev/null
4066
4067DEPDIR="${am__leading_dot}deps"
4068
4069ac_config_commands="$ac_config_commands depfiles"
4070
4071
4072am_make=${MAKE-make}
4073cat > confinc << 'END'
4074am__doit:
4075 @echo this is the am__doit target
4076.PHONY: am__doit
4077END
4078# If we don't find an include directive, just comment out the code.
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4080$as_echo_n "checking for style of include used by $am_make... " >&6; }
4081am__include="#"
4082am__quote=
4083_am_result=none
4084# First try GNU make style include.
4085echo "include confinc" > confmf
4086# Ignore all kinds of additional output from 'make'.
4087case `$am_make -s -f confmf 2> /dev/null` in #(
4088*the\ am__doit\ target*)
4089 am__include=include
4090 am__quote=
4091 _am_result=GNU
4092 ;;
4093esac
4094# Now try BSD make style include.
4095if test "$am__include" = "#"; then
4096 echo '.include "confinc"' > confmf
4097 case `$am_make -s -f confmf 2> /dev/null` in #(
4098 *the\ am__doit\ target*)
4099 am__include=.include
4100 am__quote="\""
4101 _am_result=BSD
4102 ;;
4103 esac
4104fi
4105
4106
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4108$as_echo "$_am_result" >&6; }
4109rm -f confinc confmf
4110
4111# Check whether --enable-dependency-tracking was given.
4112if test "${enable_dependency_tracking+set}" = set; then :
4113 enableval=$enable_dependency_tracking;
4114fi
4115
4116if test "x$enable_dependency_tracking" != xno; then
4117 am_depcomp="$ac_aux_dir/depcomp"
4118 AMDEPBACKSLASH='\'
4119 am__nodep='_no'
4120fi
4121 if test "x$enable_dependency_tracking" != xno; then
4122 AMDEP_TRUE=
4123 AMDEP_FALSE='#'
4124else
4125 AMDEP_TRUE='#'
4126 AMDEP_FALSE=
4127fi
4128
4129
4130# Check whether --enable-silent-rules was given.
4131if test "${enable_silent_rules+set}" = set; then :
4132 enableval=$enable_silent_rules;
4133fi
4134
4135case $enable_silent_rules in # (((
4136 yes) AM_DEFAULT_VERBOSITY=0;;
4137 no) AM_DEFAULT_VERBOSITY=1;;
4138 *) AM_DEFAULT_VERBOSITY=1;;
4139esac
4140am_make=${MAKE-make}
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4142$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4143if ${am_cv_make_support_nested_variables+:} false; then :
4144 $as_echo_n "(cached) " >&6
4145else
4146 if $as_echo 'TRUE=$(BAR$(V))
4147BAR0=false
4148BAR1=true
4149V=1
4150am__doit:
4151 @$(TRUE)
4152.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4153 am_cv_make_support_nested_variables=yes
4154else
4155 am_cv_make_support_nested_variables=no
4156fi
4157fi
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4159$as_echo "$am_cv_make_support_nested_variables" >&6; }
4160if test $am_cv_make_support_nested_variables = yes; then
4161 AM_V='$(V)'
4162 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4163else
4164 AM_V=$AM_DEFAULT_VERBOSITY
4165 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4166fi
4167AM_BACKSLASH='\'
4168
4169if test "`cd $srcdir && pwd`" != "`pwd`"; then
4170 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4171 # is not polluted with repeated "-I."
4172 am__isrc=' -I$(srcdir)'
4173 # test to see if srcdir already configured
4174 if test -f $srcdir/config.status; then
4175 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4176 fi
4177fi
4178
4179# test whether we have cygpath
4180if test -z "$CYGPATH_W"; then
4181 if (cygpath --version) >/dev/null 2>/dev/null; then
4182 CYGPATH_W='cygpath -w'
4183 else
4184 CYGPATH_W=echo
4185 fi
4186fi
4187
4188
4189# Define the identity of the package.
987cf30a
NA
4190 PACKAGE='libctf'
4191 VERSION='1.2.0'
0e65dfba
NA
4192
4193
4194cat >>confdefs.h <<_ACEOF
4195#define PACKAGE "$PACKAGE"
4196_ACEOF
4197
4198
4199cat >>confdefs.h <<_ACEOF
4200#define VERSION "$VERSION"
4201_ACEOF
4202
4203# Some tools Automake needs.
4204
4205ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4206
4207
4208AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4209
4210
4211AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4212
4213
4214AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4215
4216
4217MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4218
4219# For better backward compatibility. To be removed once Automake 1.9.x
4220# dies out for good. For more background, see:
4221# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4222# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4223mkdir_p='$(MKDIR_P)'
4224
4225# We need awk for the "check" target (and possibly the TAP driver). The
4226# system "awk" is bad on some platforms.
4227# Always define AMTAR for backward compatibility. Yes, it's still used
4228# in the wild :-( We should find a proper way to deprecate it ...
4229AMTAR='$${TAR-tar}'
4230
4231
4232# We'll loop over all known methods to create a tar archive until one works.
4233_am_tools='gnutar pax cpio none'
4234
4235am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4236
4237
4238
4239
4240
4241depcc="$CC" am_compiler_list=
4242
4243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4244$as_echo_n "checking dependency style of $depcc... " >&6; }
4245if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4246 $as_echo_n "(cached) " >&6
4247else
4248 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4249 # We make a subdir and do the tests there. Otherwise we can end up
4250 # making bogus files that we don't know about and never remove. For
4251 # instance it was reported that on HP-UX the gcc test will end up
4252 # making a dummy file named 'D' -- because '-MD' means "put the output
4253 # in D".
4254 rm -rf conftest.dir
4255 mkdir conftest.dir
4256 # Copy depcomp to subdir because otherwise we won't find it if we're
4257 # using a relative directory.
4258 cp "$am_depcomp" conftest.dir
4259 cd conftest.dir
4260 # We will build objects and dependencies in a subdirectory because
4261 # it helps to detect inapplicable dependency modes. For instance
4262 # both Tru64's cc and ICC support -MD to output dependencies as a
4263 # side effect of compilation, but ICC will put the dependencies in
4264 # the current directory while Tru64 will put them in the object
4265 # directory.
4266 mkdir sub
4267
4268 am_cv_CC_dependencies_compiler_type=none
4269 if test "$am_compiler_list" = ""; then
4270 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4271 fi
4272 am__universal=false
4273 case " $depcc " in #(
4274 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4275 esac
4276
4277 for depmode in $am_compiler_list; do
4278 # Setup a source with many dependencies, because some compilers
4279 # like to wrap large dependency lists on column 80 (with \), and
4280 # we should not choose a depcomp mode which is confused by this.
4281 #
4282 # We need to recreate these files for each test, as the compiler may
4283 # overwrite some of them when testing with obscure command lines.
4284 # This happens at least with the AIX C compiler.
4285 : > sub/conftest.c
4286 for i in 1 2 3 4 5 6; do
4287 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4288 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4289 # Solaris 10 /bin/sh.
4290 echo '/* dummy */' > sub/conftst$i.h
4291 done
4292 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4293
4294 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4295 # mode. It turns out that the SunPro C++ compiler does not properly
4296 # handle '-M -o', and we need to detect this. Also, some Intel
4297 # versions had trouble with output in subdirs.
4298 am__obj=sub/conftest.${OBJEXT-o}
4299 am__minus_obj="-o $am__obj"
4300 case $depmode in
4301 gcc)
4302 # This depmode causes a compiler race in universal mode.
4303 test "$am__universal" = false || continue
4304 ;;
4305 nosideeffect)
4306 # After this tag, mechanisms are not by side-effect, so they'll
4307 # only be used when explicitly requested.
4308 if test "x$enable_dependency_tracking" = xyes; then
4309 continue
4310 else
4311 break
4312 fi
4313 ;;
4314 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4315 # This compiler won't grok '-c -o', but also, the minuso test has
4316 # not run yet. These depmodes are late enough in the game, and
4317 # so weak that their functioning should not be impacted.
4318 am__obj=conftest.${OBJEXT-o}
4319 am__minus_obj=
4320 ;;
4321 none) break ;;
4322 esac
4323 if depmode=$depmode \
4324 source=sub/conftest.c object=$am__obj \
4325 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4326 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4327 >/dev/null 2>conftest.err &&
4328 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4329 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4330 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4331 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4332 # icc doesn't choke on unknown options, it will just issue warnings
4333 # or remarks (even with -Werror). So we grep stderr for any message
4334 # that says an option was ignored or not supported.
4335 # When given -MP, icc 7.0 and 7.1 complain thusly:
4336 # icc: Command line warning: ignoring option '-M'; no argument required
4337 # The diagnosis changed in icc 8.0:
4338 # icc: Command line remark: option '-MP' not supported
4339 if (grep 'ignoring option' conftest.err ||
4340 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4341 am_cv_CC_dependencies_compiler_type=$depmode
4342 break
4343 fi
4344 fi
4345 done
4346
4347 cd ..
4348 rm -rf conftest.dir
4349else
4350 am_cv_CC_dependencies_compiler_type=none
4351fi
4352
4353fi
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4355$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4356CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4357
4358 if
4359 test "x$enable_dependency_tracking" != xno \
4360 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4361 am__fastdepCC_TRUE=
4362 am__fastdepCC_FALSE='#'
4363else
4364 am__fastdepCC_TRUE='#'
4365 am__fastdepCC_FALSE=
4366fi
4367
4368
4369
4370# POSIX will say in a future version that running "rm -f" with no argument
4371# is OK; and we want to be able to make that assumption in our Makefile
4372# recipes. So use an aggressive probe to check that the usage we want is
4373# actually supported "in the wild" to an acceptable degree.
4374# See automake bug#10828.
4375# To make any issue more visible, cause the running configure to be aborted
4376# by default if the 'rm' program in use doesn't match our expectations; the
4377# user can still override this though.
4378if rm -f && rm -fr && rm -rf; then : OK; else
4379 cat >&2 <<'END'
4380Oops!
4381
4382Your 'rm' program seems unable to run without file operands specified
4383on the command line, even when the '-f' option is present. This is contrary
4384to the behaviour of most rm programs out there, and not conforming with
4385the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4386
4387Please tell bug-automake@gnu.org about your system, including the value
4388of your $PATH and any error possibly output before this message. This
4389can help us improve future automake versions.
4390
4391END
4392 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4393 echo 'Configuration will proceed anyway, since you have set the' >&2
4394 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4395 echo >&2
4396 else
4397 cat >&2 <<'END'
4398Aborting the configuration process, to ensure you take notice of the issue.
4399
4400You can download and install GNU coreutils to get an 'rm' implementation
4401that behaves properly: <http://www.gnu.org/software/coreutils/>.
4402
4403If you want to complete the configuration process using your problematic
4404'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4405to "yes", and re-run configure.
4406
4407END
4408 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4409 fi
4410fi
4411
4412
4413# Checks for programs.
4414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4415$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4416set x ${MAKE-make}
4417ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4418if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4419 $as_echo_n "(cached) " >&6
4420else
4421 cat >conftest.make <<\_ACEOF
4422SHELL = /bin/sh
4423all:
4424 @echo '@@@%%%=$(MAKE)=@@@%%%'
4425_ACEOF
4426# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4427case `${MAKE-make} -f conftest.make 2>/dev/null` in
4428 *@@@%%%=?*=@@@%%%*)
4429 eval ac_cv_prog_make_${ac_make}_set=yes;;
4430 *)
4431 eval ac_cv_prog_make_${ac_make}_set=no;;
4432esac
4433rm -f conftest.make
4434fi
4435if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4437$as_echo "yes" >&6; }
4438 SET_MAKE=
4439else
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441$as_echo "no" >&6; }
4442 SET_MAKE="MAKE=${MAKE-make}"
4443fi
4444
4445ac_ext=c
4446ac_cpp='$CPP $CPPFLAGS'
4447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4449ac_compiler_gnu=$ac_cv_c_compiler_gnu
4450if test -n "$ac_tool_prefix"; then
4451 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4452set dummy ${ac_tool_prefix}gcc; ac_word=$2
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454$as_echo_n "checking for $ac_word... " >&6; }
4455if ${ac_cv_prog_CC+:} false; then :
4456 $as_echo_n "(cached) " >&6
4457else
4458 if test -n "$CC"; then
4459 ac_cv_prog_CC="$CC" # Let the user override the test.
4460else
4461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462for as_dir in $PATH
4463do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 break 2
4471 fi
4472done
4473 done
4474IFS=$as_save_IFS
4475
4476fi
4477fi
4478CC=$ac_cv_prog_CC
4479if test -n "$CC"; then
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4481$as_echo "$CC" >&6; }
4482else
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484$as_echo "no" >&6; }
4485fi
4486
4487
4488fi
4489if test -z "$ac_cv_prog_CC"; then
4490 ac_ct_CC=$CC
4491 # Extract the first word of "gcc", so it can be a program name with args.
4492set dummy gcc; ac_word=$2
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4494$as_echo_n "checking for $ac_word... " >&6; }
4495if ${ac_cv_prog_ac_ct_CC+:} false; then :
4496 $as_echo_n "(cached) " >&6
4497else
4498 if test -n "$ac_ct_CC"; then
4499 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4500else
4501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502for as_dir in $PATH
4503do
4504 IFS=$as_save_IFS
4505 test -z "$as_dir" && as_dir=.
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4508 ac_cv_prog_ac_ct_CC="gcc"
4509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4510 break 2
4511 fi
4512done
4513 done
4514IFS=$as_save_IFS
4515
4516fi
4517fi
4518ac_ct_CC=$ac_cv_prog_ac_ct_CC
4519if test -n "$ac_ct_CC"; then
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4521$as_echo "$ac_ct_CC" >&6; }
4522else
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4524$as_echo "no" >&6; }
4525fi
4526
4527 if test "x$ac_ct_CC" = x; then
4528 CC=""
4529 else
4530 case $cross_compiling:$ac_tool_warned in
4531yes:)
4532{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4533$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4534ac_tool_warned=yes ;;
4535esac
4536 CC=$ac_ct_CC
4537 fi
4538else
4539 CC="$ac_cv_prog_CC"
4540fi
4541
4542if test -z "$CC"; then
4543 if test -n "$ac_tool_prefix"; then
4544 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4545set dummy ${ac_tool_prefix}cc; ac_word=$2
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547$as_echo_n "checking for $ac_word... " >&6; }
4548if ${ac_cv_prog_CC+:} false; then :
4549 $as_echo_n "(cached) " >&6
4550else
4551 if test -n "$CC"; then
4552 ac_cv_prog_CC="$CC" # Let the user override the test.
4553else
4554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555for as_dir in $PATH
4556do
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4561 ac_cv_prog_CC="${ac_tool_prefix}cc"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 break 2
4564 fi
4565done
4566 done
4567IFS=$as_save_IFS
4568
4569fi
4570fi
4571CC=$ac_cv_prog_CC
4572if test -n "$CC"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4574$as_echo "$CC" >&6; }
4575else
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577$as_echo "no" >&6; }
4578fi
4579
4580
4581 fi
4582fi
4583if test -z "$CC"; then
4584 # Extract the first word of "cc", so it can be a program name with args.
4585set dummy cc; ac_word=$2
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587$as_echo_n "checking for $ac_word... " >&6; }
4588if ${ac_cv_prog_CC+:} false; then :
4589 $as_echo_n "(cached) " >&6
4590else
4591 if test -n "$CC"; then
4592 ac_cv_prog_CC="$CC" # Let the user override the test.
4593else
4594 ac_prog_rejected=no
4595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596for as_dir in $PATH
4597do
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4602 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4603 ac_prog_rejected=yes
4604 continue
4605 fi
4606 ac_cv_prog_CC="cc"
4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 break 2
4609 fi
4610done
4611 done
4612IFS=$as_save_IFS
4613
4614if test $ac_prog_rejected = yes; then
4615 # We found a bogon in the path, so make sure we never use it.
4616 set dummy $ac_cv_prog_CC
4617 shift
4618 if test $# != 0; then
4619 # We chose a different compiler from the bogus one.
4620 # However, it has the same basename, so the bogon will be chosen
4621 # first if we set CC to just the basename; use the full file name.
4622 shift
4623 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4624 fi
4625fi
4626fi
4627fi
4628CC=$ac_cv_prog_CC
4629if test -n "$CC"; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4631$as_echo "$CC" >&6; }
4632else
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634$as_echo "no" >&6; }
4635fi
4636
4637
4638fi
4639if test -z "$CC"; then
4640 if test -n "$ac_tool_prefix"; then
4641 for ac_prog in cl.exe
4642 do
4643 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4644set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646$as_echo_n "checking for $ac_word... " >&6; }
4647if ${ac_cv_prog_CC+:} false; then :
4648 $as_echo_n "(cached) " >&6
4649else
4650 if test -n "$CC"; then
4651 ac_cv_prog_CC="$CC" # Let the user override the test.
4652else
4653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654for as_dir in $PATH
4655do
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4660 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 break 2
4663 fi
4664done
4665 done
4666IFS=$as_save_IFS
4667
4668fi
4669fi
4670CC=$ac_cv_prog_CC
4671if test -n "$CC"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4673$as_echo "$CC" >&6; }
4674else
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676$as_echo "no" >&6; }
4677fi
4678
4679
4680 test -n "$CC" && break
4681 done
4682fi
4683if test -z "$CC"; then
4684 ac_ct_CC=$CC
4685 for ac_prog in cl.exe
4686do
4687 # Extract the first word of "$ac_prog", so it can be a program name with args.
4688set dummy $ac_prog; ac_word=$2
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690$as_echo_n "checking for $ac_word... " >&6; }
4691if ${ac_cv_prog_ac_ct_CC+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693else
4694 if test -n "$ac_ct_CC"; then
4695 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4696else
4697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704 ac_cv_prog_ac_ct_CC="$ac_prog"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4707 fi
4708done
4709 done
4710IFS=$as_save_IFS
4711
4712fi
4713fi
4714ac_ct_CC=$ac_cv_prog_ac_ct_CC
4715if test -n "$ac_ct_CC"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4717$as_echo "$ac_ct_CC" >&6; }
4718else
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720$as_echo "no" >&6; }
4721fi
4722
4723
4724 test -n "$ac_ct_CC" && break
4725done
4726
4727 if test "x$ac_ct_CC" = x; then
4728 CC=""
4729 else
4730 case $cross_compiling:$ac_tool_warned in
4731yes:)
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4734ac_tool_warned=yes ;;
4735esac
4736 CC=$ac_ct_CC
4737 fi
4738fi
4739
4740fi
4741
4742
4743test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4745as_fn_error $? "no acceptable C compiler found in \$PATH
4746See \`config.log' for more details" "$LINENO" 5; }
4747
4748# Provide some information about the compiler.
4749$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4750set X $ac_compile
4751ac_compiler=$2
4752for ac_option in --version -v -V -qversion; do
4753 { { ac_try="$ac_compiler $ac_option >&5"
4754case "(($ac_try" in
4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756 *) ac_try_echo=$ac_try;;
4757esac
4758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4759$as_echo "$ac_try_echo"; } >&5
4760 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4761 ac_status=$?
4762 if test -s conftest.err; then
4763 sed '10a\
4764... rest of stderr output deleted ...
4765 10q' conftest.err >conftest.er1
4766 cat conftest.er1 >&5
4767 fi
4768 rm -f conftest.er1 conftest.err
4769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4770 test $ac_status = 0; }
4771done
4772
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4774$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4775if ${ac_cv_c_compiler_gnu+:} false; then :
4776 $as_echo_n "(cached) " >&6
4777else
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779/* end confdefs.h. */
4780
4781int
4782main ()
4783{
4784#ifndef __GNUC__
4785 choke me
4786#endif
4787
4788 ;
4789 return 0;
4790}
4791_ACEOF
4792if ac_fn_c_try_compile "$LINENO"; then :
4793 ac_compiler_gnu=yes
4794else
4795 ac_compiler_gnu=no
4796fi
4797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798ac_cv_c_compiler_gnu=$ac_compiler_gnu
4799
4800fi
4801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4802$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4803if test $ac_compiler_gnu = yes; then
4804 GCC=yes
4805else
4806 GCC=
4807fi
4808ac_test_CFLAGS=${CFLAGS+set}
4809ac_save_CFLAGS=$CFLAGS
4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4811$as_echo_n "checking whether $CC accepts -g... " >&6; }
4812if ${ac_cv_prog_cc_g+:} false; then :
4813 $as_echo_n "(cached) " >&6
4814else
4815 ac_save_c_werror_flag=$ac_c_werror_flag
4816 ac_c_werror_flag=yes
4817 ac_cv_prog_cc_g=no
4818 CFLAGS="-g"
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820/* end confdefs.h. */
4821
4822int
4823main ()
4824{
4825
4826 ;
4827 return 0;
4828}
4829_ACEOF
4830if ac_fn_c_try_compile "$LINENO"; then :
4831 ac_cv_prog_cc_g=yes
4832else
4833 CFLAGS=""
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835/* end confdefs.h. */
4836
4837int
4838main ()
4839{
4840
4841 ;
4842 return 0;
4843}
4844_ACEOF
4845if ac_fn_c_try_compile "$LINENO"; then :
4846
4847else
4848 ac_c_werror_flag=$ac_save_c_werror_flag
4849 CFLAGS="-g"
4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851/* end confdefs.h. */
4852
4853int
4854main ()
4855{
4856
4857 ;
4858 return 0;
4859}
4860_ACEOF
4861if ac_fn_c_try_compile "$LINENO"; then :
4862 ac_cv_prog_cc_g=yes
4863fi
4864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865fi
4866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867fi
4868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869 ac_c_werror_flag=$ac_save_c_werror_flag
4870fi
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4872$as_echo "$ac_cv_prog_cc_g" >&6; }
4873if test "$ac_test_CFLAGS" = set; then
4874 CFLAGS=$ac_save_CFLAGS
4875elif test $ac_cv_prog_cc_g = yes; then
4876 if test "$GCC" = yes; then
4877 CFLAGS="-g -O2"
4878 else
4879 CFLAGS="-g"
4880 fi
4881else
4882 if test "$GCC" = yes; then
4883 CFLAGS="-O2"
4884 else
4885 CFLAGS=
4886 fi
4887fi
4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4889$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4890if ${ac_cv_prog_cc_c89+:} false; then :
4891 $as_echo_n "(cached) " >&6
4892else
4893 ac_cv_prog_cc_c89=no
4894ac_save_CC=$CC
4895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896/* end confdefs.h. */
4897#include <stdarg.h>
4898#include <stdio.h>
4899struct stat;
4900/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4901struct buf { int x; };
4902FILE * (*rcsopen) (struct buf *, struct stat *, int);
4903static char *e (p, i)
4904 char **p;
4905 int i;
4906{
4907 return p[i];
4908}
4909static char *f (char * (*g) (char **, int), char **p, ...)
4910{
4911 char *s;
4912 va_list v;
4913 va_start (v,p);
4914 s = g (p, va_arg (v,int));
4915 va_end (v);
4916 return s;
4917}
4918
4919/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4920 function prototypes and stuff, but not '\xHH' hex character constants.
4921 These don't provoke an error unfortunately, instead are silently treated
4922 as 'x'. The following induces an error, until -std is added to get
4923 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4924 array size at least. It's necessary to write '\x00'==0 to get something
4925 that's true only with -std. */
4926int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4927
4928/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4929 inside strings and character constants. */
4930#define FOO(x) 'x'
4931int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4932
4933int test (int i, double x);
4934struct s1 {int (*f) (int a);};
4935struct s2 {int (*f) (double a);};
4936int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4937int argc;
4938char **argv;
4939int
4940main ()
4941{
4942return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4943 ;
4944 return 0;
4945}
4946_ACEOF
4947for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4948 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4949do
4950 CC="$ac_save_CC $ac_arg"
4951 if ac_fn_c_try_compile "$LINENO"; then :
4952 ac_cv_prog_cc_c89=$ac_arg
4953fi
4954rm -f core conftest.err conftest.$ac_objext
4955 test "x$ac_cv_prog_cc_c89" != "xno" && break
4956done
4957rm -f conftest.$ac_ext
4958CC=$ac_save_CC
4959
4960fi
4961# AC_CACHE_VAL
4962case "x$ac_cv_prog_cc_c89" in
4963 x)
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4965$as_echo "none needed" >&6; } ;;
4966 xno)
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4968$as_echo "unsupported" >&6; } ;;
4969 *)
4970 CC="$CC $ac_cv_prog_cc_c89"
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4972$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4973esac
4974if test "x$ac_cv_prog_cc_c89" != xno; then :
4975
4976fi
4977
4978ac_ext=c
4979ac_cpp='$CPP $CPPFLAGS'
4980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4982ac_compiler_gnu=$ac_cv_c_compiler_gnu
4983
4984ac_ext=c
4985ac_cpp='$CPP $CPPFLAGS'
4986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4988ac_compiler_gnu=$ac_cv_c_compiler_gnu
4989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4990$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4991if ${am_cv_prog_cc_c_o+:} false; then :
4992 $as_echo_n "(cached) " >&6
4993else
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995/* end confdefs.h. */
4996
4997int
4998main ()
4999{
5000
5001 ;
5002 return 0;
5003}
5004_ACEOF
5005 # Make sure it works both with $CC and with simple cc.
5006 # Following AC_PROG_CC_C_O, we do the test twice because some
5007 # compilers refuse to overwrite an existing .o file with -o,
5008 # though they will create one.
5009 am_cv_prog_cc_c_o=yes
5010 for am_i in 1 2; do
5011 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5012 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } \
5016 && test -f conftest2.$ac_objext; then
5017 : OK
5018 else
5019 am_cv_prog_cc_c_o=no
5020 break
5021 fi
5022 done
5023 rm -f core conftest*
5024 unset am_i
5025fi
5026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5027$as_echo "$am_cv_prog_cc_c_o" >&6; }
5028if test "$am_cv_prog_cc_c_o" != yes; then
5029 # Losing compiler, so override with the script.
5030 # FIXME: It is wrong to rewrite CC.
5031 # But if we don't then we get into trouble of one sort or another.
5032 # A longer-term fix would be to have automake use am__CC in this case,
5033 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5034 CC="$am_aux_dir/compile $CC"
5035fi
5036ac_ext=c
5037ac_cpp='$CPP $CPPFLAGS'
5038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040ac_compiler_gnu=$ac_cv_c_compiler_gnu
5041
5042
5043if test -n "$ac_tool_prefix"; then
5044 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5045set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5047$as_echo_n "checking for $ac_word... " >&6; }
5048if ${ac_cv_prog_RANLIB+:} false; then :
5049 $as_echo_n "(cached) " >&6
5050else
5051 if test -n "$RANLIB"; then
5052 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5053else
5054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055for as_dir in $PATH
5056do
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5061 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 break 2
5064 fi
5065done
5066 done
5067IFS=$as_save_IFS
5068
5069fi
5070fi
5071RANLIB=$ac_cv_prog_RANLIB
5072if test -n "$RANLIB"; then
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5074$as_echo "$RANLIB" >&6; }
5075else
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077$as_echo "no" >&6; }
5078fi
5079
5080
5081fi
5082if test -z "$ac_cv_prog_RANLIB"; then
5083 ac_ct_RANLIB=$RANLIB
5084 # Extract the first word of "ranlib", so it can be a program name with args.
5085set dummy ranlib; ac_word=$2
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087$as_echo_n "checking for $ac_word... " >&6; }
5088if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5089 $as_echo_n "(cached) " >&6
5090else
5091 if test -n "$ac_ct_RANLIB"; then
5092 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5093else
5094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095for as_dir in $PATH
5096do
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5101 ac_cv_prog_ac_ct_RANLIB="ranlib"
5102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 break 2
5104 fi
5105done
5106 done
5107IFS=$as_save_IFS
5108
5109fi
5110fi
5111ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5112if test -n "$ac_ct_RANLIB"; then
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5114$as_echo "$ac_ct_RANLIB" >&6; }
5115else
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117$as_echo "no" >&6; }
5118fi
5119
5120 if test "x$ac_ct_RANLIB" = x; then
5121 RANLIB=":"
5122 else
5123 case $cross_compiling:$ac_tool_warned in
5124yes:)
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5127ac_tool_warned=yes ;;
5128esac
5129 RANLIB=$ac_ct_RANLIB
5130 fi
5131else
5132 RANLIB="$ac_cv_prog_RANLIB"
5133fi
5134
5135if test -n "$ac_tool_prefix"; then
5136 for ac_prog in ar lib "link -lib"
5137 do
5138 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5139set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141$as_echo_n "checking for $ac_word... " >&6; }
5142if ${ac_cv_prog_AR+:} false; then :
5143 $as_echo_n "(cached) " >&6
5144else
5145 if test -n "$AR"; then
5146 ac_cv_prog_AR="$AR" # Let the user override the test.
5147else
5148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149for as_dir in $PATH
5150do
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5158 fi
5159done
5160 done
5161IFS=$as_save_IFS
5162
5163fi
5164fi
5165AR=$ac_cv_prog_AR
5166if test -n "$AR"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5168$as_echo "$AR" >&6; }
5169else
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171$as_echo "no" >&6; }
5172fi
5173
5174
5175 test -n "$AR" && break
5176 done
5177fi
5178if test -z "$AR"; then
5179 ac_ct_AR=$AR
5180 for ac_prog in ar lib "link -lib"
5181do
5182 # Extract the first word of "$ac_prog", so it can be a program name with args.
5183set dummy $ac_prog; ac_word=$2
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185$as_echo_n "checking for $ac_word... " >&6; }
5186if ${ac_cv_prog_ac_ct_AR+:} false; then :
5187 $as_echo_n "(cached) " >&6
5188else
5189 if test -n "$ac_ct_AR"; then
5190 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5191else
5192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193for as_dir in $PATH
5194do
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5199 ac_cv_prog_ac_ct_AR="$ac_prog"
5200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 break 2
5202 fi
5203done
5204 done
5205IFS=$as_save_IFS
5206
5207fi
5208fi
5209ac_ct_AR=$ac_cv_prog_ac_ct_AR
5210if test -n "$ac_ct_AR"; then
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5212$as_echo "$ac_ct_AR" >&6; }
5213else
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215$as_echo "no" >&6; }
5216fi
5217
5218
5219 test -n "$ac_ct_AR" && break
5220done
5221
5222 if test "x$ac_ct_AR" = x; then
5223 AR="false"
5224 else
5225 case $cross_compiling:$ac_tool_warned in
5226yes:)
5227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5229ac_tool_warned=yes ;;
5230esac
5231 AR=$ac_ct_AR
5232 fi
5233fi
5234
5235: ${AR=ar}
5236
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5238$as_echo_n "checking the archiver ($AR) interface... " >&6; }
5239if ${am_cv_ar_interface+:} false; then :
5240 $as_echo_n "(cached) " >&6
5241else
5242 ac_ext=c
5243ac_cpp='$CPP $CPPFLAGS'
5244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5246ac_compiler_gnu=$ac_cv_c_compiler_gnu
5247
5248 am_cv_ar_interface=ar
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250/* end confdefs.h. */
5251int some_variable = 0;
5252_ACEOF
5253if ac_fn_c_try_compile "$LINENO"; then :
5254 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5256 (eval $am_ar_try) 2>&5
5257 ac_status=$?
5258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5259 test $ac_status = 0; }
5260 if test "$ac_status" -eq 0; then
5261 am_cv_ar_interface=ar
5262 else
5263 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5265 (eval $am_ar_try) 2>&5
5266 ac_status=$?
5267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5268 test $ac_status = 0; }
5269 if test "$ac_status" -eq 0; then
5270 am_cv_ar_interface=lib
5271 else
5272 am_cv_ar_interface=unknown
5273 fi
5274 fi
5275 rm -f conftest.lib libconftest.a
5276
5277fi
5278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279 ac_ext=c
5280ac_cpp='$CPP $CPPFLAGS'
5281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5283ac_compiler_gnu=$ac_cv_c_compiler_gnu
5284
5285fi
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5287$as_echo "$am_cv_ar_interface" >&6; }
5288
5289case $am_cv_ar_interface in
5290ar)
5291 ;;
5292lib)
5293 # Microsoft lib, so override with the ar-lib wrapper script.
5294 # FIXME: It is wrong to rewrite AR.
5295 # But if we don't then we get into trouble of one sort or another.
5296 # A longer-term fix would be to have automake use am__AR in this case,
5297 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5298 # similar.
5299 AR="$am_aux_dir/ar-lib $AR"
5300 ;;
5301unknown)
5302 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5303 ;;
5304esac
5305
8e6635bd
NA
5306# If we haven't got the data from the intl directory,
5307# assume NLS is disabled.
5308USE_NLS=no
5309LIBINTL=
5310LIBINTL_DEP=
5311INCINTL=
5312XGETTEXT=
5313GMSGFMT=
5314POSUB=
5315
5316if test -f ../intl/config.intl; then
5317 . ../intl/config.intl
5318fi
5319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5320$as_echo_n "checking whether NLS is requested... " >&6; }
5321if test x"$USE_NLS" != xyes; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323$as_echo "no" >&6; }
5324else
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5326$as_echo "yes" >&6; }
5327
5328$as_echo "#define ENABLE_NLS 1" >>confdefs.h
5329
5330
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5332$as_echo_n "checking for catalogs to be installed... " >&6; }
5333 # Look for .po and .gmo files in the source directory.
5334 CATALOGS=
5335 XLINGUAS=
5336 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5337 # If there aren't any .gmo files the shell will give us the
5338 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5339 # weeded out.
5340 case "$cat" in *\**)
5341 continue;;
5342 esac
5343 # The quadruple backslash is collapsed to a double backslash
5344 # by the backticks, then collapsed again by the double quotes,
5345 # leaving us with one backslash in the sed expression (right
5346 # before the dot that mustn't act as a wildcard).
5347 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5348 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5349 # The user is allowed to set LINGUAS to a list of languages to
5350 # install catalogs for. If it's empty that means "all of them."
5351 if test "x$LINGUAS" = x; then
5352 CATALOGS="$CATALOGS $cat"
5353 XLINGUAS="$XLINGUAS $lang"
5354 else
5355 case "$LINGUAS" in *$lang*)
5356 CATALOGS="$CATALOGS $cat"
5357 XLINGUAS="$XLINGUAS $lang"
5358 ;;
5359 esac
5360 fi
5361 done
5362 LINGUAS="$XLINGUAS"
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5364$as_echo "$LINGUAS" >&6; }
5365
5366
5367 DATADIRNAME=share
5368
5369 INSTOBJEXT=.mo
5370
5371 GENCAT=gencat
5372
5373 CATOBJEXT=.gmo
5374
5375fi
0e65dfba 5376
87279e3c
NA
5377# Check whether --enable-shared was given.
5378if test "${enable_shared+set}" = set; then :
5379 enableval=$enable_shared; p=${PACKAGE-default}
5380 case $enableval in
5381 yes) enable_shared=yes ;;
5382 no) enable_shared=no ;;
5383 *)
5384 enable_shared=no
5385 # Look at the argument we got. We use all the common list separators.
5386 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5387 for pkg in $enableval; do
5388 IFS="$lt_save_ifs"
5389 if test "X$pkg" = "X$p"; then
5390 enable_shared=yes
5391 fi
5392 done
5393 IFS="$lt_save_ifs"
5394 ;;
5395 esac
5396else
5397 enable_shared=no
0e65dfba
NA
5398fi
5399
0e65dfba 5400
0e65dfba 5401
0e65dfba 5402
87279e3c
NA
5403
5404
5405
5406
5407
5408
5409case `pwd` in
5410 *\ * | *\ *)
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5412$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5413esac
5414
5415
5416
5417macro_version='2.2.7a'
5418macro_revision='1.3134'
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432ltmain="$ac_aux_dir/ltmain.sh"
5433
5434# Make sure we can run config.sub.
5435$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5436 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5437
5438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5439$as_echo_n "checking build system type... " >&6; }
5440if ${ac_cv_build+:} false; then :
0e65dfba
NA
5441 $as_echo_n "(cached) " >&6
5442else
87279e3c
NA
5443 ac_build_alias=$build_alias
5444test "x$ac_build_alias" = x &&
5445 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5446test "x$ac_build_alias" = x &&
5447 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5448ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5449 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
0e65dfba 5450
0e65dfba 5451fi
87279e3c
NA
5452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5453$as_echo "$ac_cv_build" >&6; }
5454case $ac_cv_build in
5455*-*-*) ;;
5456*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
0e65dfba 5457esac
87279e3c
NA
5458build=$ac_cv_build
5459ac_save_IFS=$IFS; IFS='-'
5460set x $ac_cv_build
5461shift
5462build_cpu=$1
5463build_vendor=$2
5464shift; shift
5465# Remember, the first character of IFS is used to create $*,
5466# except with old shells:
5467build_os=$*
5468IFS=$ac_save_IFS
5469case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5470
5471
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5473$as_echo_n "checking host system type... " >&6; }
5474if ${ac_cv_host+:} false; then :
0e65dfba
NA
5475 $as_echo_n "(cached) " >&6
5476else
87279e3c
NA
5477 if test "x$host_alias" = x; then
5478 ac_cv_host=$ac_cv_build
5479else
5480 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5481 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
0e65dfba 5482fi
0e65dfba 5483
0e65dfba 5484fi
87279e3c
NA
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5486$as_echo "$ac_cv_host" >&6; }
5487case $ac_cv_host in
5488*-*-*) ;;
5489*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5490esac
5491host=$ac_cv_host
5492ac_save_IFS=$IFS; IFS='-'
5493set x $ac_cv_host
5494shift
5495host_cpu=$1
5496host_vendor=$2
5497shift; shift
5498# Remember, the first character of IFS is used to create $*,
5499# except with old shells:
5500host_os=$*
5501IFS=$ac_save_IFS
5502case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5503
5504
5505# Backslashify metacharacters that are still active within
5506# double-quoted strings.
5507sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5508
5509# Same as above, but do not quote variable references.
5510double_quote_subst='s/\(["`\\]\)/\\\1/g'
5511
5512# Sed substitution to delay expansion of an escaped shell variable in a
5513# double_quote_subst'ed string.
5514delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5515
5516# Sed substitution to delay expansion of an escaped single quote.
5517delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5518
5519# Sed substitution to avoid accidental globbing in evaled expressions
5520no_glob_subst='s/\*/\\\*/g'
5521
5522ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5523ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5524ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5525
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5527$as_echo_n "checking how to print strings... " >&6; }
5528# Test print first, because it will be a builtin if present.
5529if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5530 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5531 ECHO='print -r --'
5532elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5533 ECHO='printf %s\n'
5534else
5535 # Use this function as a fallback that always works.
5536 func_fallback_echo ()
5537 {
5538 eval 'cat <<_LTECHO_EOF
5539$1
5540_LTECHO_EOF'
5541 }
5542 ECHO='func_fallback_echo'
0e65dfba 5543fi
87279e3c
NA
5544
5545# func_echo_all arg...
5546# Invoke $ECHO with all args, space-separated.
5547func_echo_all ()
5548{
5549 $ECHO ""
5550}
5551
5552case "$ECHO" in
5553 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5554$as_echo "printf" >&6; } ;;
5555 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5556$as_echo "print -r" >&6; } ;;
5557 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5558$as_echo "cat" >&6; } ;;
0e65dfba 5559esac
0e65dfba
NA
5560
5561
0e65dfba
NA
5562
5563
87279e3c
NA
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5575$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5576if ${ac_cv_path_SED+:} false; then :
0e65dfba
NA
5577 $as_echo_n "(cached) " >&6
5578else
87279e3c
NA
5579 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5580 for ac_i in 1 2 3 4 5 6 7; do
5581 ac_script="$ac_script$as_nl$ac_script"
5582 done
5583 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5584 { ac_script=; unset ac_script;}
5585 if test -z "$SED"; then
5586 ac_path_SED_found=false
5587 # Loop through the user's path and test for each of PROGNAME-LIST
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
0e65dfba
NA
5589for as_dir in $PATH
5590do
5591 IFS=$as_save_IFS
5592 test -z "$as_dir" && as_dir=.
87279e3c 5593 for ac_prog in sed gsed; do
0e65dfba 5594 for ac_exec_ext in '' $ac_executable_extensions; do
87279e3c
NA
5595 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5596 as_fn_executable_p "$ac_path_SED" || continue
5597# Check for GNU ac_path_SED and select it if it is found.
5598 # Check for GNU $ac_path_SED
5599case `"$ac_path_SED" --version 2>&1` in
5600*GNU*)
5601 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5602*)
5603 ac_count=0
5604 $as_echo_n 0123456789 >"conftest.in"
5605 while :
5606 do
5607 cat "conftest.in" "conftest.in" >"conftest.tmp"
5608 mv "conftest.tmp" "conftest.in"
5609 cp "conftest.in" "conftest.nl"
5610 $as_echo '' >> "conftest.nl"
5611 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5612 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5613 as_fn_arith $ac_count + 1 && ac_count=$as_val
5614 if test $ac_count -gt ${ac_path_SED_max-0}; then
5615 # Best one so far, save it but keep looking for a better one
5616 ac_cv_path_SED="$ac_path_SED"
5617 ac_path_SED_max=$ac_count
5618 fi
5619 # 10*(2^10) chars as input seems more than enough
5620 test $ac_count -gt 10 && break
5621 done
5622 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5623esac
5624
5625 $ac_path_SED_found && break 3
5626 done
5627 done
5628 done
5629IFS=$as_save_IFS
5630 if test -z "$ac_cv_path_SED"; then
5631 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5632 fi
5633else
5634 ac_cv_path_SED=$SED
5635fi
5636
5637fi
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5639$as_echo "$ac_cv_path_SED" >&6; }
5640 SED="$ac_cv_path_SED"
5641 rm -f conftest.sed
5642
5643test -z "$SED" && SED=sed
5644Xsed="$SED -e 1s/^X//"
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5657$as_echo_n "checking for fgrep... " >&6; }
5658if ${ac_cv_path_FGREP+:} false; then :
5659 $as_echo_n "(cached) " >&6
5660else
5661 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5662 then ac_cv_path_FGREP="$GREP -F"
5663 else
5664 if test -z "$FGREP"; then
5665 ac_path_FGREP_found=false
5666 # Loop through the user's path and test for each of PROGNAME-LIST
5667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5669do
5670 IFS=$as_save_IFS
5671 test -z "$as_dir" && as_dir=.
5672 for ac_prog in fgrep; do
5673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5675 as_fn_executable_p "$ac_path_FGREP" || continue
5676# Check for GNU ac_path_FGREP and select it if it is found.
5677 # Check for GNU $ac_path_FGREP
5678case `"$ac_path_FGREP" --version 2>&1` in
5679*GNU*)
5680 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5681*)
5682 ac_count=0
5683 $as_echo_n 0123456789 >"conftest.in"
5684 while :
5685 do
5686 cat "conftest.in" "conftest.in" >"conftest.tmp"
5687 mv "conftest.tmp" "conftest.in"
5688 cp "conftest.in" "conftest.nl"
5689 $as_echo 'FGREP' >> "conftest.nl"
5690 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5691 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5692 as_fn_arith $ac_count + 1 && ac_count=$as_val
5693 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5694 # Best one so far, save it but keep looking for a better one
5695 ac_cv_path_FGREP="$ac_path_FGREP"
5696 ac_path_FGREP_max=$ac_count
5697 fi
5698 # 10*(2^10) chars as input seems more than enough
5699 test $ac_count -gt 10 && break
5700 done
5701 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5702esac
5703
5704 $ac_path_FGREP_found && break 3
5705 done
5706 done
5707 done
5708IFS=$as_save_IFS
5709 if test -z "$ac_cv_path_FGREP"; then
5710 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5711 fi
5712else
5713 ac_cv_path_FGREP=$FGREP
5714fi
5715
5716 fi
5717fi
5718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5719$as_echo "$ac_cv_path_FGREP" >&6; }
5720 FGREP="$ac_cv_path_FGREP"
5721
5722
5723test -z "$GREP" && GREP=grep
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743# Check whether --with-gnu-ld was given.
5744if test "${with_gnu_ld+set}" = set; then :
5745 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5746else
5747 with_gnu_ld=no
5748fi
5749
5750ac_prog=ld
5751if test "$GCC" = yes; then
5752 # Check if gcc -print-prog-name=ld gives a path.
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5754$as_echo_n "checking for ld used by $CC... " >&6; }
5755 case $host in
5756 *-*-mingw*)
5757 # gcc leaves a trailing carriage return which upsets mingw
5758 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5759 *)
5760 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5761 esac
5762 case $ac_prog in
5763 # Accept absolute paths.
5764 [\\/]* | ?:[\\/]*)
5765 re_direlt='/[^/][^/]*/\.\./'
5766 # Canonicalize the pathname of ld
5767 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5768 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5769 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5770 done
5771 test -z "$LD" && LD="$ac_prog"
5772 ;;
5773 "")
5774 # If it fails, then pretend we aren't using GCC.
5775 ac_prog=ld
5776 ;;
5777 *)
5778 # If it is relative, then search for the first ld in PATH.
5779 with_gnu_ld=unknown
5780 ;;
5781 esac
5782elif test "$with_gnu_ld" = yes; then
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5784$as_echo_n "checking for GNU ld... " >&6; }
5785else
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5787$as_echo_n "checking for non-GNU ld... " >&6; }
5788fi
5789if ${lt_cv_path_LD+:} false; then :
5790 $as_echo_n "(cached) " >&6
5791else
5792 if test -z "$LD"; then
5793 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5794 for ac_dir in $PATH; do
5795 IFS="$lt_save_ifs"
5796 test -z "$ac_dir" && ac_dir=.
5797 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5798 lt_cv_path_LD="$ac_dir/$ac_prog"
5799 # Check to see if the program is GNU ld. I'd rather use --version,
5800 # but apparently some variants of GNU ld only accept -v.
5801 # Break only if it was the GNU/non-GNU ld that we prefer.
5802 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5803 *GNU* | *'with BFD'*)
5804 test "$with_gnu_ld" != no && break
5805 ;;
5806 *)
5807 test "$with_gnu_ld" != yes && break
5808 ;;
5809 esac
5810 fi
5811 done
5812 IFS="$lt_save_ifs"
5813else
5814 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5815fi
5816fi
5817
5818LD="$lt_cv_path_LD"
5819if test -n "$LD"; then
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5821$as_echo "$LD" >&6; }
5822else
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5824$as_echo "no" >&6; }
5825fi
5826test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5828$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5829if ${lt_cv_prog_gnu_ld+:} false; then :
5830 $as_echo_n "(cached) " >&6
5831else
5832 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5833case `$LD -v 2>&1 </dev/null` in
5834*GNU* | *'with BFD'*)
5835 lt_cv_prog_gnu_ld=yes
5836 ;;
5837*)
5838 lt_cv_prog_gnu_ld=no
5839 ;;
5840esac
5841fi
5842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5843$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5844with_gnu_ld=$lt_cv_prog_gnu_ld
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5855$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5856if ${lt_cv_path_NM+:} false; then :
5857 $as_echo_n "(cached) " >&6
5858else
5859 if test -n "$NM"; then
5860 # Let the user override the test.
5861 lt_cv_path_NM="$NM"
5862else
5863 lt_nm_to_check="${ac_tool_prefix}nm"
5864 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5865 lt_nm_to_check="$lt_nm_to_check nm"
5866 fi
5867 for lt_tmp_nm in $lt_nm_to_check; do
5868 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5869 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5870 IFS="$lt_save_ifs"
5871 test -z "$ac_dir" && ac_dir=.
5872 tmp_nm="$ac_dir/$lt_tmp_nm"
5873 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5874 # Check to see if the nm accepts a BSD-compat flag.
5875 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5876 # nm: unknown option "B" ignored
5877 # Tru64's nm complains that /dev/null is an invalid object file
5878 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5879 */dev/null* | *'Invalid file or object type'*)
5880 lt_cv_path_NM="$tmp_nm -B"
5881 break
5882 ;;
5883 *)
5884 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5885 */dev/null*)
5886 lt_cv_path_NM="$tmp_nm -p"
5887 break
5888 ;;
5889 *)
5890 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5891 continue # so that we can try to find one that supports BSD flags
5892 ;;
5893 esac
5894 ;;
5895 esac
5896 fi
5897 done
5898 IFS="$lt_save_ifs"
5899 done
5900 : ${lt_cv_path_NM=no}
5901fi
5902fi
5903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5904$as_echo "$lt_cv_path_NM" >&6; }
5905if test "$lt_cv_path_NM" != "no"; then
5906 NM="$lt_cv_path_NM"
5907else
5908 # Didn't find any BSD compatible name lister, look for dumpbin.
5909 if test -n "$DUMPBIN"; then :
5910 # Let the user override the test.
5911 else
5912 if test -n "$ac_tool_prefix"; then
5913 for ac_prog in dumpbin "link -dump"
5914 do
5915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5916set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918$as_echo_n "checking for $ac_word... " >&6; }
5919if ${ac_cv_prog_DUMPBIN+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921else
5922 if test -n "$DUMPBIN"; then
5923 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5924else
5925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926for as_dir in $PATH
5927do
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5932 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 break 2
5935 fi
5936done
5937 done
5938IFS=$as_save_IFS
5939
5940fi
5941fi
5942DUMPBIN=$ac_cv_prog_DUMPBIN
5943if test -n "$DUMPBIN"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5945$as_echo "$DUMPBIN" >&6; }
5946else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948$as_echo "no" >&6; }
5949fi
5950
5951
5952 test -n "$DUMPBIN" && break
5953 done
5954fi
5955if test -z "$DUMPBIN"; then
5956 ac_ct_DUMPBIN=$DUMPBIN
5957 for ac_prog in dumpbin "link -dump"
5958do
5959 # Extract the first word of "$ac_prog", so it can be a program name with args.
5960set dummy $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; }
5963if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5964 $as_echo_n "(cached) " >&6
5965else
5966 if test -n "$ac_ct_DUMPBIN"; then
5967 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5968else
5969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970for as_dir in $PATH
5971do
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_ac_ct_DUMPBIN="$ac_prog"
5977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 break 2
5979 fi
5980done
5981 done
5982IFS=$as_save_IFS
5983
5984fi
5985fi
5986ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5987if test -n "$ac_ct_DUMPBIN"; then
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5989$as_echo "$ac_ct_DUMPBIN" >&6; }
5990else
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992$as_echo "no" >&6; }
5993fi
5994
5995
5996 test -n "$ac_ct_DUMPBIN" && break
5997done
5998
5999 if test "x$ac_ct_DUMPBIN" = x; then
6000 DUMPBIN=":"
6001 else
6002 case $cross_compiling:$ac_tool_warned in
6003yes:)
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6005$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6006ac_tool_warned=yes ;;
6007esac
6008 DUMPBIN=$ac_ct_DUMPBIN
6009 fi
6010fi
6011
6012 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6013 *COFF*)
6014 DUMPBIN="$DUMPBIN -symbols"
6015 ;;
6016 *)
6017 DUMPBIN=:
6018 ;;
6019 esac
6020 fi
6021
6022 if test "$DUMPBIN" != ":"; then
6023 NM="$DUMPBIN"
6024 fi
6025fi
6026test -z "$NM" && NM=nm
6027
6028
6029
6030
6031
6032
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6034$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6035if ${lt_cv_nm_interface+:} false; then :
6036 $as_echo_n "(cached) " >&6
6037else
6038 lt_cv_nm_interface="BSD nm"
6039 echo "int some_variable = 0;" > conftest.$ac_ext
6040 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6041 (eval "$ac_compile" 2>conftest.err)
6042 cat conftest.err >&5
6043 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6044 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6045 cat conftest.err >&5
6046 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6047 cat conftest.out >&5
6048 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6049 lt_cv_nm_interface="MS dumpbin"
6050 fi
6051 rm -f conftest*
6052fi
6053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6054$as_echo "$lt_cv_nm_interface" >&6; }
6055
6056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6057$as_echo_n "checking whether ln -s works... " >&6; }
6058LN_S=$as_ln_s
6059if test "$LN_S" = "ln -s"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6061$as_echo "yes" >&6; }
6062else
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6064$as_echo "no, using $LN_S" >&6; }
6065fi
6066
6067# find the maximum length of command line arguments
6068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6069$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6070if ${lt_cv_sys_max_cmd_len+:} false; then :
6071 $as_echo_n "(cached) " >&6
6072else
6073 i=0
6074 teststring="ABCD"
6075
6076 case $build_os in
6077 msdosdjgpp*)
6078 # On DJGPP, this test can blow up pretty badly due to problems in libc
6079 # (any single argument exceeding 2000 bytes causes a buffer overrun
6080 # during glob expansion). Even if it were fixed, the result of this
6081 # check would be larger than it should be.
6082 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6083 ;;
6084
6085 gnu*)
6086 # Under GNU Hurd, this test is not required because there is
6087 # no limit to the length of command line arguments.
6088 # Libtool will interpret -1 as no limit whatsoever
6089 lt_cv_sys_max_cmd_len=-1;
6090 ;;
6091
6092 cygwin* | mingw* | cegcc*)
6093 # On Win9x/ME, this test blows up -- it succeeds, but takes
6094 # about 5 minutes as the teststring grows exponentially.
6095 # Worse, since 9x/ME are not pre-emptively multitasking,
6096 # you end up with a "frozen" computer, even though with patience
6097 # the test eventually succeeds (with a max line length of 256k).
6098 # Instead, let's just punt: use the minimum linelength reported by
6099 # all of the supported platforms: 8192 (on NT/2K/XP).
6100 lt_cv_sys_max_cmd_len=8192;
6101 ;;
6102
6103 mint*)
6104 # On MiNT this can take a long time and run out of memory.
6105 lt_cv_sys_max_cmd_len=8192;
6106 ;;
6107
6108 amigaos*)
6109 # On AmigaOS with pdksh, this test takes hours, literally.
6110 # So we just punt and use a minimum line length of 8192.
6111 lt_cv_sys_max_cmd_len=8192;
6112 ;;
6113
6114 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6115 # This has been around since 386BSD, at least. Likely further.
6116 if test -x /sbin/sysctl; then
6117 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6118 elif test -x /usr/sbin/sysctl; then
6119 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6120 else
6121 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6122 fi
6123 # And add a safety zone
6124 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6125 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6126 ;;
6127
6128 interix*)
6129 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6130 lt_cv_sys_max_cmd_len=196608
6131 ;;
6132
6133 osf*)
6134 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6135 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6136 # nice to cause kernel panics so lets avoid the loop below.
6137 # First set a reasonable default.
6138 lt_cv_sys_max_cmd_len=16384
6139 #
6140 if test -x /sbin/sysconfig; then
6141 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6142 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6143 esac
6144 fi
6145 ;;
6146 sco3.2v5*)
6147 lt_cv_sys_max_cmd_len=102400
6148 ;;
6149 sysv5* | sco5v6* | sysv4.2uw2*)
6150 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6151 if test -n "$kargmax"; then
6152 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6153 else
6154 lt_cv_sys_max_cmd_len=32768
6155 fi
6156 ;;
6157 *)
6158 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6159 if test -n "$lt_cv_sys_max_cmd_len"; then
6160 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6161 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6162 else
6163 # Make teststring a little bigger before we do anything with it.
6164 # a 1K string should be a reasonable start.
6165 for i in 1 2 3 4 5 6 7 8 ; do
6166 teststring=$teststring$teststring
6167 done
6168 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6169 # If test is not a shell built-in, we'll probably end up computing a
6170 # maximum length that is only half of the actual maximum length, but
6171 # we can't tell.
6172 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6173 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6174 test $i != 17 # 1/2 MB should be enough
6175 do
6176 i=`expr $i + 1`
6177 teststring=$teststring$teststring
6178 done
6179 # Only check the string length outside the loop.
6180 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6181 teststring=
6182 # Add a significant safety factor because C++ compilers can tack on
6183 # massive amounts of additional arguments before passing them to the
6184 # linker. It appears as though 1/2 is a usable value.
6185 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6186 fi
6187 ;;
6188 esac
6189
6190fi
6191
6192if test -n $lt_cv_sys_max_cmd_len ; then
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6194$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6195else
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6197$as_echo "none" >&6; }
6198fi
6199max_cmd_len=$lt_cv_sys_max_cmd_len
6200
6201
6202
6203
6204
6205
6206: ${CP="cp -f"}
6207: ${MV="mv -f"}
6208: ${RM="rm -f"}
6209
6210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6211$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6212# Try some XSI features
6213xsi_shell=no
6214( _lt_dummy="a/b/c"
6215 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6216 = c,a/b,, \
6217 && eval 'test $(( 1 + 1 )) -eq 2 \
6218 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6219 && xsi_shell=yes
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6221$as_echo "$xsi_shell" >&6; }
6222
6223
6224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6225$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6226lt_shell_append=no
6227( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6228 >/dev/null 2>&1 \
6229 && lt_shell_append=yes
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6231$as_echo "$lt_shell_append" >&6; }
6232
6233
6234if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6235 lt_unset=unset
6236else
6237 lt_unset=false
6238fi
6239
6240
6241
6242
6243
6244# test EBCDIC or ASCII
6245case `echo X|tr X '\101'` in
6246 A) # ASCII based system
6247 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6248 lt_SP2NL='tr \040 \012'
6249 lt_NL2SP='tr \015\012 \040\040'
6250 ;;
6251 *) # EBCDIC based system
6252 lt_SP2NL='tr \100 \n'
6253 lt_NL2SP='tr \r\n \100\100'
6254 ;;
6255esac
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6266$as_echo_n "checking for $LD option to reload object files... " >&6; }
6267if ${lt_cv_ld_reload_flag+:} false; then :
6268 $as_echo_n "(cached) " >&6
6269else
6270 lt_cv_ld_reload_flag='-r'
6271fi
6272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6273$as_echo "$lt_cv_ld_reload_flag" >&6; }
6274reload_flag=$lt_cv_ld_reload_flag
6275case $reload_flag in
6276"" | " "*) ;;
6277*) reload_flag=" $reload_flag" ;;
6278esac
6279reload_cmds='$LD$reload_flag -o $output$reload_objs'
6280case $host_os in
6281 darwin*)
6282 if test "$GCC" = yes; then
6283 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6284 else
6285 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6286 fi
6287 ;;
6288esac
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298if test -n "$ac_tool_prefix"; then
6299 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6300set dummy ${ac_tool_prefix}objdump; ac_word=$2
6301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302$as_echo_n "checking for $ac_word... " >&6; }
6303if ${ac_cv_prog_OBJDUMP+:} false; then :
6304 $as_echo_n "(cached) " >&6
6305else
6306 if test -n "$OBJDUMP"; then
6307 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6308else
6309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310for as_dir in $PATH
6311do
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6316 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 break 2
6319 fi
6320done
6321 done
6322IFS=$as_save_IFS
6323
6324fi
6325fi
6326OBJDUMP=$ac_cv_prog_OBJDUMP
6327if test -n "$OBJDUMP"; then
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6329$as_echo "$OBJDUMP" >&6; }
6330else
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332$as_echo "no" >&6; }
6333fi
6334
6335
6336fi
6337if test -z "$ac_cv_prog_OBJDUMP"; then
6338 ac_ct_OBJDUMP=$OBJDUMP
6339 # Extract the first word of "objdump", so it can be a program name with args.
6340set dummy objdump; ac_word=$2
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342$as_echo_n "checking for $ac_word... " >&6; }
6343if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6344 $as_echo_n "(cached) " >&6
6345else
6346 if test -n "$ac_ct_OBJDUMP"; then
6347 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6348else
6349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350for as_dir in $PATH
6351do
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6356 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 break 2
6359 fi
6360done
6361 done
6362IFS=$as_save_IFS
6363
6364fi
6365fi
6366ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6367if test -n "$ac_ct_OBJDUMP"; then
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6369$as_echo "$ac_ct_OBJDUMP" >&6; }
6370else
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372$as_echo "no" >&6; }
6373fi
6374
6375 if test "x$ac_ct_OBJDUMP" = x; then
6376 OBJDUMP="false"
6377 else
6378 case $cross_compiling:$ac_tool_warned in
6379yes:)
6380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6382ac_tool_warned=yes ;;
6383esac
6384 OBJDUMP=$ac_ct_OBJDUMP
6385 fi
6386else
6387 OBJDUMP="$ac_cv_prog_OBJDUMP"
6388fi
6389
6390test -z "$OBJDUMP" && OBJDUMP=objdump
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6401$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6402if ${lt_cv_deplibs_check_method+:} false; then :
6403 $as_echo_n "(cached) " >&6
6404else
6405 lt_cv_file_magic_cmd='$MAGIC_CMD'
6406lt_cv_file_magic_test_file=
6407lt_cv_deplibs_check_method='unknown'
6408# Need to set the preceding variable on all platforms that support
6409# interlibrary dependencies.
6410# 'none' -- dependencies not supported.
6411# `unknown' -- same as none, but documents that we really don't know.
6412# 'pass_all' -- all dependencies passed with no checks.
6413# 'test_compile' -- check by making test program.
6414# 'file_magic [[regex]]' -- check by looking for files in library path
6415# which responds to the $file_magic_cmd with a given extended regex.
6416# If you have `file' or equivalent on your system and you're not sure
6417# whether `pass_all' will *always* work, you probably want this one.
6418
6419case $host_os in
6420aix[4-9]*)
6421 lt_cv_deplibs_check_method=pass_all
6422 ;;
6423
6424beos*)
6425 lt_cv_deplibs_check_method=pass_all
6426 ;;
6427
6428bsdi[45]*)
6429 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6430 lt_cv_file_magic_cmd='/usr/bin/file -L'
6431 lt_cv_file_magic_test_file=/shlib/libc.so
6432 ;;
6433
6434cygwin*)
6435 # func_win32_libid is a shell function defined in ltmain.sh
6436 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6437 lt_cv_file_magic_cmd='func_win32_libid'
6438 ;;
6439
6440mingw* | pw32*)
6441 # Base MSYS/MinGW do not provide the 'file' command needed by
6442 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6443 # unless we find 'file', for example because we are cross-compiling.
6444 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6445 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6446 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6447 lt_cv_file_magic_cmd='func_win32_libid'
6448 else
6449 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6450 lt_cv_file_magic_cmd='$OBJDUMP -f'
6451 fi
6452 ;;
6453
6454cegcc*)
6455 # use the weaker test based on 'objdump'. See mingw*.
6456 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6457 lt_cv_file_magic_cmd='$OBJDUMP -f'
6458 ;;
6459
6460darwin* | rhapsody*)
6461 lt_cv_deplibs_check_method=pass_all
6462 ;;
6463
6464freebsd* | dragonfly*)
6465 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6466 case $host_cpu in
6467 i*86 )
6468 # Not sure whether the presence of OpenBSD here was a mistake.
6469 # Let's accept both of them until this is cleared up.
6470 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6471 lt_cv_file_magic_cmd=/usr/bin/file
6472 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6473 ;;
6474 esac
6475 else
6476 lt_cv_deplibs_check_method=pass_all
6477 fi
6478 ;;
6479
6480gnu*)
6481 lt_cv_deplibs_check_method=pass_all
6482 ;;
6483
6484haiku*)
6485 lt_cv_deplibs_check_method=pass_all
6486 ;;
6487
6488hpux10.20* | hpux11*)
6489 lt_cv_file_magic_cmd=/usr/bin/file
6490 case $host_cpu in
6491 ia64*)
6492 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6493 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6494 ;;
6495 hppa*64*)
6496 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]'
6497 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6498 ;;
6499 *)
6500 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6501 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6502 ;;
6503 esac
6504 ;;
6505
6506interix[3-9]*)
6507 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6508 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6509 ;;
6510
6511irix5* | irix6* | nonstopux*)
6512 case $LD in
6513 *-32|*"-32 ") libmagic=32-bit;;
6514 *-n32|*"-n32 ") libmagic=N32;;
6515 *-64|*"-64 ") libmagic=64-bit;;
6516 *) libmagic=never-match;;
6517 esac
6518 lt_cv_deplibs_check_method=pass_all
6519 ;;
6520
6521# This must be Linux ELF.
6522linux* | k*bsd*-gnu | kopensolaris*-gnu)
6523 lt_cv_deplibs_check_method=pass_all
6524 ;;
6525
6526netbsd*)
6527 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6528 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6529 else
6530 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6531 fi
6532 ;;
6533
6534newos6*)
6535 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6536 lt_cv_file_magic_cmd=/usr/bin/file
6537 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6538 ;;
6539
6540*nto* | *qnx*)
6541 lt_cv_deplibs_check_method=pass_all
6542 ;;
6543
6544openbsd*)
6545 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6546 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6547 else
6548 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6549 fi
6550 ;;
6551
6552osf3* | osf4* | osf5*)
6553 lt_cv_deplibs_check_method=pass_all
6554 ;;
6555
6556rdos*)
6557 lt_cv_deplibs_check_method=pass_all
6558 ;;
6559
6560solaris*)
6561 lt_cv_deplibs_check_method=pass_all
6562 ;;
6563
6564sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6565 lt_cv_deplibs_check_method=pass_all
6566 ;;
6567
6568sysv4 | sysv4.3*)
6569 case $host_vendor in
6570 motorola)
6571 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]'
6572 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6573 ;;
6574 ncr)
6575 lt_cv_deplibs_check_method=pass_all
6576 ;;
6577 sequent)
6578 lt_cv_file_magic_cmd='/bin/file'
6579 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6580 ;;
6581 sni)
6582 lt_cv_file_magic_cmd='/bin/file'
6583 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6584 lt_cv_file_magic_test_file=/lib/libc.so
6585 ;;
6586 siemens)
6587 lt_cv_deplibs_check_method=pass_all
6588 ;;
6589 pc)
6590 lt_cv_deplibs_check_method=pass_all
6591 ;;
6592 esac
6593 ;;
6594
6595tpf*)
6596 lt_cv_deplibs_check_method=pass_all
6597 ;;
6598esac
6599
6600fi
6601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6602$as_echo "$lt_cv_deplibs_check_method" >&6; }
6603file_magic_cmd=$lt_cv_file_magic_cmd
6604deplibs_check_method=$lt_cv_deplibs_check_method
6605test -z "$deplibs_check_method" && deplibs_check_method=unknown
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
a4966cd9
L
6618plugin_option=
6619plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6620for plugin in $plugin_names; do
6621 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6622 if test x$plugin_so = x$plugin; then
6623 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6624 fi
6625 if test x$plugin_so != x$plugin; then
6626 plugin_option="--plugin $plugin_so"
6627 break
6628 fi
6629done
6630
87279e3c
NA
6631if test -n "$ac_tool_prefix"; then
6632 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6633set dummy ${ac_tool_prefix}ar; ac_word=$2
6634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6635$as_echo_n "checking for $ac_word... " >&6; }
6636if ${ac_cv_prog_AR+:} false; then :
6637 $as_echo_n "(cached) " >&6
6638else
6639 if test -n "$AR"; then
6640 ac_cv_prog_AR="$AR" # Let the user override the test.
6641else
6642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643for as_dir in $PATH
6644do
6645 IFS=$as_save_IFS
6646 test -z "$as_dir" && as_dir=.
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6649 ac_cv_prog_AR="${ac_tool_prefix}ar"
6650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 break 2
6652 fi
6653done
6654 done
6655IFS=$as_save_IFS
6656
6657fi
6658fi
6659AR=$ac_cv_prog_AR
6660if test -n "$AR"; then
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6662$as_echo "$AR" >&6; }
6663else
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665$as_echo "no" >&6; }
6666fi
6667
6668
6669fi
6670if test -z "$ac_cv_prog_AR"; then
6671 ac_ct_AR=$AR
6672 # Extract the first word of "ar", so it can be a program name with args.
6673set dummy ar; ac_word=$2
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675$as_echo_n "checking for $ac_word... " >&6; }
6676if ${ac_cv_prog_ac_ct_AR+:} false; then :
6677 $as_echo_n "(cached) " >&6
6678else
6679 if test -n "$ac_ct_AR"; then
6680 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6681else
6682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683for as_dir in $PATH
6684do
6685 IFS=$as_save_IFS
6686 test -z "$as_dir" && as_dir=.
6687 for ac_exec_ext in '' $ac_executable_extensions; do
6688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6689 ac_cv_prog_ac_ct_AR="ar"
6690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 break 2
6692 fi
6693done
6694 done
6695IFS=$as_save_IFS
6696
6697fi
6698fi
6699ac_ct_AR=$ac_cv_prog_ac_ct_AR
6700if test -n "$ac_ct_AR"; then
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6702$as_echo "$ac_ct_AR" >&6; }
6703else
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705$as_echo "no" >&6; }
6706fi
6707
6708 if test "x$ac_ct_AR" = x; then
6709 AR="false"
6710 else
6711 case $cross_compiling:$ac_tool_warned in
6712yes:)
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6715ac_tool_warned=yes ;;
6716esac
6717 AR=$ac_ct_AR
6718 fi
6719else
6720 AR="$ac_cv_prog_AR"
6721fi
6722
6723test -z "$AR" && AR=ar
a4966cd9
L
6724if test -n "$plugin_option"; then
6725 if $AR --help 2>&1 | grep -q "\--plugin"; then
83b33c6c
L
6726 touch conftest.c
6727 $AR $plugin_option rc conftest.a conftest.c
6728 if test "$?" != 0; then
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6730$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6731 else
6732 AR="$AR $plugin_option"
6733 fi
6734 rm -f conftest.*
a4966cd9
L
6735 fi
6736fi
87279e3c
NA
6737test -z "$AR_FLAGS" && AR_FLAGS=cru
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749if test -n "$ac_tool_prefix"; then
6750 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6751set dummy ${ac_tool_prefix}strip; ac_word=$2
6752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6753$as_echo_n "checking for $ac_word... " >&6; }
6754if ${ac_cv_prog_STRIP+:} false; then :
6755 $as_echo_n "(cached) " >&6
6756else
6757 if test -n "$STRIP"; then
6758 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6759else
6760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761for as_dir in $PATH
6762do
6763 IFS=$as_save_IFS
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6767 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6769 break 2
6770 fi
6771done
6772 done
6773IFS=$as_save_IFS
6774
6775fi
6776fi
6777STRIP=$ac_cv_prog_STRIP
6778if test -n "$STRIP"; then
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6780$as_echo "$STRIP" >&6; }
6781else
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6783$as_echo "no" >&6; }
6784fi
6785
6786
6787fi
6788if test -z "$ac_cv_prog_STRIP"; then
6789 ac_ct_STRIP=$STRIP
6790 # Extract the first word of "strip", so it can be a program name with args.
6791set dummy strip; ac_word=$2
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793$as_echo_n "checking for $ac_word... " >&6; }
6794if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6795 $as_echo_n "(cached) " >&6
6796else
6797 if test -n "$ac_ct_STRIP"; then
6798 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6799else
6800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801for as_dir in $PATH
6802do
6803 IFS=$as_save_IFS
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6807 ac_cv_prog_ac_ct_STRIP="strip"
6808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 break 2
6810 fi
6811done
6812 done
6813IFS=$as_save_IFS
6814
6815fi
6816fi
6817ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6818if test -n "$ac_ct_STRIP"; then
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6820$as_echo "$ac_ct_STRIP" >&6; }
6821else
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823$as_echo "no" >&6; }
6824fi
6825
6826 if test "x$ac_ct_STRIP" = x; then
6827 STRIP=":"
6828 else
6829 case $cross_compiling:$ac_tool_warned in
6830yes:)
6831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6833ac_tool_warned=yes ;;
6834esac
6835 STRIP=$ac_ct_STRIP
6836 fi
6837else
6838 STRIP="$ac_cv_prog_STRIP"
6839fi
6840
6841test -z "$STRIP" && STRIP=:
6842
6843
6844
6845
6846
6847
6848if test -n "$ac_tool_prefix"; then
6849 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6850set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852$as_echo_n "checking for $ac_word... " >&6; }
6853if ${ac_cv_prog_RANLIB+:} false; then :
6854 $as_echo_n "(cached) " >&6
6855else
6856 if test -n "$RANLIB"; then
6857 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6858else
6859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6866 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6869 fi
6870done
6871 done
6872IFS=$as_save_IFS
6873
6874fi
6875fi
6876RANLIB=$ac_cv_prog_RANLIB
6877if test -n "$RANLIB"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6879$as_echo "$RANLIB" >&6; }
6880else
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882$as_echo "no" >&6; }
6883fi
6884
6885
6886fi
6887if test -z "$ac_cv_prog_RANLIB"; then
6888 ac_ct_RANLIB=$RANLIB
6889 # Extract the first word of "ranlib", so it can be a program name with args.
6890set dummy ranlib; ac_word=$2
6891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892$as_echo_n "checking for $ac_word... " >&6; }
6893if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6894 $as_echo_n "(cached) " >&6
6895else
6896 if test -n "$ac_ct_RANLIB"; then
6897 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6898else
6899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900for as_dir in $PATH
6901do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6906 ac_cv_prog_ac_ct_RANLIB="ranlib"
6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 break 2
6909 fi
6910done
6911 done
6912IFS=$as_save_IFS
6913
6914fi
6915fi
6916ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6917if test -n "$ac_ct_RANLIB"; then
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6919$as_echo "$ac_ct_RANLIB" >&6; }
6920else
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922$as_echo "no" >&6; }
6923fi
6924
6925 if test "x$ac_ct_RANLIB" = x; then
6926 RANLIB=":"
6927 else
6928 case $cross_compiling:$ac_tool_warned in
6929yes:)
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6932ac_tool_warned=yes ;;
6933esac
6934 RANLIB=$ac_ct_RANLIB
6935 fi
6936else
6937 RANLIB="$ac_cv_prog_RANLIB"
6938fi
6939
6940test -z "$RANLIB" && RANLIB=:
a4966cd9
L
6941if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6942 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6943 RANLIB="$RANLIB $plugin_option"
6944 fi
6945fi
87279e3c
NA
6946
6947
6948
6949
6950
6951
6952# Determine commands to create old-style static archives.
6953old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6954old_postinstall_cmds='chmod 644 $oldlib'
6955old_postuninstall_cmds=
6956
6957if test -n "$RANLIB"; then
6958 case $host_os in
6959 openbsd*)
6960 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6961 ;;
6962 *)
6963 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6964 ;;
6965 esac
6966 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6967fi
6968
6969case $host_os in
6970 darwin*)
6971 lock_old_archive_extraction=yes ;;
6972 *)
6973 lock_old_archive_extraction=no ;;
6974esac
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014# If no C compiler was specified, use CC.
7015LTCC=${LTCC-"$CC"}
7016
7017# If no C compiler flags were specified, use CFLAGS.
7018LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7019
7020# Allow CC to be a program name with arguments.
7021compiler=$CC
7022
7023
7024# Check for command to grab the raw symbol name followed by C symbol from nm.
7025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7026$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7027if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7028 $as_echo_n "(cached) " >&6
7029else
7030
7031# These are sane defaults that work on at least a few old systems.
7032# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7033
7034# Character class describing NM global symbol codes.
7035symcode='[BCDEGRST]'
7036
7037# Regexp to match symbols that can be accessed directly from C.
7038sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7039
7040# Define system-specific variables.
7041case $host_os in
7042aix*)
7043 symcode='[BCDT]'
7044 ;;
7045cygwin* | mingw* | pw32* | cegcc*)
7046 symcode='[ABCDGISTW]'
7047 ;;
7048hpux*)
7049 if test "$host_cpu" = ia64; then
7050 symcode='[ABCDEGRST]'
7051 fi
7052 ;;
7053irix* | nonstopux*)
7054 symcode='[BCDEGRST]'
7055 ;;
7056osf*)
7057 symcode='[BCDEGQRST]'
7058 ;;
7059solaris*)
7060 symcode='[BDRT]'
7061 ;;
7062sco3.2v5*)
7063 symcode='[DT]'
7064 ;;
7065sysv4.2uw2*)
7066 symcode='[DT]'
7067 ;;
7068sysv5* | sco5v6* | unixware* | OpenUNIX*)
7069 symcode='[ABDT]'
7070 ;;
7071sysv4)
7072 symcode='[DFNSTU]'
7073 ;;
7074esac
7075
7076# If we're using GNU nm, then use its standard symbol codes.
7077case `$NM -V 2>&1` in
7078*GNU* | *'with BFD'*)
7079 symcode='[ABCDGIRSTW]' ;;
7080esac
7081
7082# Transform an extracted symbol line into a proper C declaration.
7083# Some systems (esp. on ia64) link data and code symbols differently,
7084# so use this general approach.
7085lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7086
7087# Transform an extracted symbol line into symbol name and symbol address
7088lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7089lt_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'"
7090
7091# Handle CRLF in mingw tool chain
7092opt_cr=
7093case $build_os in
7094mingw*)
7095 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7096 ;;
7097esac
7098
7099# Try without a prefix underscore, then with it.
7100for ac_symprfx in "" "_"; do
7101
7102 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7103 symxfrm="\\1 $ac_symprfx\\2 \\2"
7104
7105 # Write the raw and C identifiers.
7106 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7107 # Fake it for dumpbin and say T for any non-static function
7108 # and D for any global variable.
7109 # Also find C++ and __fastcall symbols from MSVC++,
7110 # which start with @ or ?.
7111 lt_cv_sys_global_symbol_pipe="$AWK '"\
7112" {last_section=section; section=\$ 3};"\
7113" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7114" \$ 0!~/External *\|/{next};"\
7115" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7116" {if(hide[section]) next};"\
7117" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7118" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7119" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7120" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7121" ' prfx=^$ac_symprfx"
7122 else
7123 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7124 fi
7125
7126 # Check to see that the pipe works correctly.
7127 pipe_works=no
7128
7129 rm -f conftest*
7130 cat > conftest.$ac_ext <<_LT_EOF
7131#ifdef __cplusplus
7132extern "C" {
7133#endif
7134char nm_test_var;
7135void nm_test_func(void);
7136void nm_test_func(void){}
7137#ifdef __cplusplus
7138}
7139#endif
7140int main(){nm_test_var='a';nm_test_func();return(0);}
7141_LT_EOF
7142
7143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7144 (eval $ac_compile) 2>&5
7145 ac_status=$?
7146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7147 test $ac_status = 0; }; then
7148 # Now try to grab the symbols.
7149 nlist=conftest.nm
7150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7151 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7152 ac_status=$?
7153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7154 test $ac_status = 0; } && test -s "$nlist"; then
7155 # Try sorting and uniquifying the output.
7156 if sort "$nlist" | uniq > "$nlist"T; then
7157 mv -f "$nlist"T "$nlist"
7158 else
7159 rm -f "$nlist"T
7160 fi
7161
7162 # Make sure that we snagged all the symbols we need.
7163 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7164 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7165 cat <<_LT_EOF > conftest.$ac_ext
7166#ifdef __cplusplus
7167extern "C" {
7168#endif
7169
7170_LT_EOF
7171 # Now generate the symbol file.
7172 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7173
7174 cat <<_LT_EOF >> conftest.$ac_ext
7175
7176/* The mapping between symbol names and symbols. */
7177const struct {
7178 const char *name;
7179 void *address;
7180}
7181lt__PROGRAM__LTX_preloaded_symbols[] =
7182{
7183 { "@PROGRAM@", (void *) 0 },
7184_LT_EOF
7185 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7186 cat <<\_LT_EOF >> conftest.$ac_ext
7187 {0, (void *) 0}
7188};
7189
7190/* This works around a problem in FreeBSD linker */
7191#ifdef FREEBSD_WORKAROUND
7192static const void *lt_preloaded_setup() {
7193 return lt__PROGRAM__LTX_preloaded_symbols;
7194}
7195#endif
7196
7197#ifdef __cplusplus
7198}
7199#endif
7200_LT_EOF
7201 # Now try linking the two files.
7202 mv conftest.$ac_objext conftstm.$ac_objext
7203 lt_save_LIBS="$LIBS"
7204 lt_save_CFLAGS="$CFLAGS"
7205 LIBS="conftstm.$ac_objext"
7206 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7208 (eval $ac_link) 2>&5
7209 ac_status=$?
7210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7211 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7212 pipe_works=yes
7213 fi
7214 LIBS="$lt_save_LIBS"
7215 CFLAGS="$lt_save_CFLAGS"
7216 else
7217 echo "cannot find nm_test_func in $nlist" >&5
7218 fi
7219 else
7220 echo "cannot find nm_test_var in $nlist" >&5
7221 fi
7222 else
7223 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7224 fi
7225 else
7226 echo "$progname: failed program was:" >&5
7227 cat conftest.$ac_ext >&5
7228 fi
7229 rm -rf conftest* conftst*
7230
7231 # Do not use the global_symbol_pipe unless it works.
7232 if test "$pipe_works" = yes; then
7233 break
7234 else
7235 lt_cv_sys_global_symbol_pipe=
7236 fi
7237done
7238
7239fi
7240
7241if test -z "$lt_cv_sys_global_symbol_pipe"; then
7242 lt_cv_sys_global_symbol_to_cdecl=
7243fi
7244if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7246$as_echo "failed" >&6; }
7247else
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7249$as_echo "ok" >&6; }
7250fi
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273# Check whether --enable-libtool-lock was given.
7274if test "${enable_libtool_lock+set}" = set; then :
7275 enableval=$enable_libtool_lock;
7276fi
7277
7278test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7279
7280# Some flags need to be propagated to the compiler or linker for good
7281# libtool support.
7282case $host in
7283ia64-*-hpux*)
7284 # Find out which ABI we are using.
7285 echo 'int i;' > conftest.$ac_ext
7286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7287 (eval $ac_compile) 2>&5
7288 ac_status=$?
7289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7290 test $ac_status = 0; }; then
7291 case `/usr/bin/file conftest.$ac_objext` in
7292 *ELF-32*)
7293 HPUX_IA64_MODE="32"
7294 ;;
7295 *ELF-64*)
7296 HPUX_IA64_MODE="64"
7297 ;;
7298 esac
7299 fi
7300 rm -rf conftest*
7301 ;;
7302*-*-irix6*)
7303 # Find out which ABI we are using.
7304 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7306 (eval $ac_compile) 2>&5
7307 ac_status=$?
7308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7309 test $ac_status = 0; }; then
7310 if test "$lt_cv_prog_gnu_ld" = yes; then
7311 case `/usr/bin/file conftest.$ac_objext` in
7312 *32-bit*)
7313 LD="${LD-ld} -melf32bsmip"
7314 ;;
7315 *N32*)
7316 LD="${LD-ld} -melf32bmipn32"
7317 ;;
7318 *64-bit*)
7319 LD="${LD-ld} -melf64bmip"
7320 ;;
7321 esac
7322 else
7323 case `/usr/bin/file conftest.$ac_objext` in
7324 *32-bit*)
7325 LD="${LD-ld} -32"
7326 ;;
7327 *N32*)
7328 LD="${LD-ld} -n32"
7329 ;;
7330 *64-bit*)
7331 LD="${LD-ld} -64"
7332 ;;
7333 esac
7334 fi
7335 fi
7336 rm -rf conftest*
7337 ;;
7338
7339x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7340s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7341 # Find out which ABI we are using.
7342 echo 'int i;' > conftest.$ac_ext
7343 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7344 (eval $ac_compile) 2>&5
7345 ac_status=$?
7346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7347 test $ac_status = 0; }; then
7348 case `/usr/bin/file conftest.o` in
7349 *32-bit*)
7350 case $host in
7351 x86_64-*kfreebsd*-gnu)
7352 LD="${LD-ld} -m elf_i386_fbsd"
7353 ;;
7354 x86_64-*linux*)
7355 case `/usr/bin/file conftest.o` in
7356 *x86-64*)
7357 LD="${LD-ld} -m elf32_x86_64"
7358 ;;
7359 *)
7360 LD="${LD-ld} -m elf_i386"
7361 ;;
7362 esac
7363 ;;
7364 powerpc64le-*linux*)
7365 LD="${LD-ld} -m elf32lppclinux"
7366 ;;
7367 powerpc64-*linux*)
7368 LD="${LD-ld} -m elf32ppclinux"
7369 ;;
7370 s390x-*linux*)
7371 LD="${LD-ld} -m elf_s390"
7372 ;;
7373 sparc64-*linux*)
7374 LD="${LD-ld} -m elf32_sparc"
7375 ;;
7376 esac
7377 ;;
7378 *64-bit*)
7379 case $host in
7380 x86_64-*kfreebsd*-gnu)
7381 LD="${LD-ld} -m elf_x86_64_fbsd"
7382 ;;
7383 x86_64-*linux*)
7384 LD="${LD-ld} -m elf_x86_64"
7385 ;;
7386 powerpcle-*linux*)
7387 LD="${LD-ld} -m elf64lppc"
7388 ;;
7389 powerpc-*linux*)
7390 LD="${LD-ld} -m elf64ppc"
7391 ;;
7392 s390*-*linux*|s390*-*tpf*)
7393 LD="${LD-ld} -m elf64_s390"
7394 ;;
7395 sparc*-*linux*)
7396 LD="${LD-ld} -m elf64_sparc"
7397 ;;
7398 esac
7399 ;;
7400 esac
7401 fi
7402 rm -rf conftest*
7403 ;;
7404
7405*-*-sco3.2v5*)
7406 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7407 SAVE_CFLAGS="$CFLAGS"
7408 CFLAGS="$CFLAGS -belf"
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7410$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7411if ${lt_cv_cc_needs_belf+:} false; then :
7412 $as_echo_n "(cached) " >&6
7413else
7414 ac_ext=c
7415ac_cpp='$CPP $CPPFLAGS'
7416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7418ac_compiler_gnu=$ac_cv_c_compiler_gnu
7419
7420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421/* end confdefs.h. */
7422
7423int
7424main ()
7425{
7426
7427 ;
7428 return 0;
7429}
7430_ACEOF
7431if ac_fn_c_try_link "$LINENO"; then :
7432 lt_cv_cc_needs_belf=yes
7433else
7434 lt_cv_cc_needs_belf=no
7435fi
7436rm -f core conftest.err conftest.$ac_objext \
7437 conftest$ac_exeext conftest.$ac_ext
7438 ac_ext=c
7439ac_cpp='$CPP $CPPFLAGS'
7440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7442ac_compiler_gnu=$ac_cv_c_compiler_gnu
7443
7444fi
7445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7446$as_echo "$lt_cv_cc_needs_belf" >&6; }
7447 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7448 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7449 CFLAGS="$SAVE_CFLAGS"
7450 fi
7451 ;;
7452sparc*-*solaris*)
7453 # Find out which ABI we are using.
7454 echo 'int i;' > conftest.$ac_ext
7455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7456 (eval $ac_compile) 2>&5
7457 ac_status=$?
7458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7459 test $ac_status = 0; }; then
7460 case `/usr/bin/file conftest.o` in
7461 *64-bit*)
7462 case $lt_cv_prog_gnu_ld in
7463 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7464 *)
7465 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7466 LD="${LD-ld} -64"
7467 fi
7468 ;;
7469 esac
7470 ;;
7471 esac
7472 fi
7473 rm -rf conftest*
7474 ;;
7475esac
7476
7477need_locks="$enable_libtool_lock"
7478
7479
7480 case $host_os in
7481 rhapsody* | darwin*)
7482 if test -n "$ac_tool_prefix"; then
7483 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7484set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7486$as_echo_n "checking for $ac_word... " >&6; }
7487if ${ac_cv_prog_DSYMUTIL+:} false; then :
7488 $as_echo_n "(cached) " >&6
7489else
7490 if test -n "$DSYMUTIL"; then
7491 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7492else
7493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494for as_dir in $PATH
7495do
7496 IFS=$as_save_IFS
7497 test -z "$as_dir" && as_dir=.
7498 for ac_exec_ext in '' $ac_executable_extensions; do
7499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7500 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7502 break 2
7503 fi
7504done
7505 done
7506IFS=$as_save_IFS
7507
7508fi
7509fi
7510DSYMUTIL=$ac_cv_prog_DSYMUTIL
7511if test -n "$DSYMUTIL"; then
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7513$as_echo "$DSYMUTIL" >&6; }
7514else
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7516$as_echo "no" >&6; }
7517fi
7518
7519
7520fi
7521if test -z "$ac_cv_prog_DSYMUTIL"; then
7522 ac_ct_DSYMUTIL=$DSYMUTIL
7523 # Extract the first word of "dsymutil", so it can be a program name with args.
7524set dummy dsymutil; ac_word=$2
7525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7526$as_echo_n "checking for $ac_word... " >&6; }
7527if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7528 $as_echo_n "(cached) " >&6
7529else
7530 if test -n "$ac_ct_DSYMUTIL"; then
7531 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7532else
7533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534for as_dir in $PATH
7535do
7536 IFS=$as_save_IFS
7537 test -z "$as_dir" && as_dir=.
7538 for ac_exec_ext in '' $ac_executable_extensions; do
7539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7540 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7542 break 2
7543 fi
7544done
7545 done
7546IFS=$as_save_IFS
7547
7548fi
7549fi
7550ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7551if test -n "$ac_ct_DSYMUTIL"; then
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7553$as_echo "$ac_ct_DSYMUTIL" >&6; }
7554else
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556$as_echo "no" >&6; }
7557fi
7558
7559 if test "x$ac_ct_DSYMUTIL" = x; then
7560 DSYMUTIL=":"
7561 else
7562 case $cross_compiling:$ac_tool_warned in
7563yes:)
7564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7566ac_tool_warned=yes ;;
7567esac
7568 DSYMUTIL=$ac_ct_DSYMUTIL
7569 fi
7570else
7571 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7572fi
7573
7574 if test -n "$ac_tool_prefix"; then
7575 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7576set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578$as_echo_n "checking for $ac_word... " >&6; }
7579if ${ac_cv_prog_NMEDIT+:} false; then :
7580 $as_echo_n "(cached) " >&6
7581else
7582 if test -n "$NMEDIT"; then
7583 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7584else
7585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586for as_dir in $PATH
7587do
7588 IFS=$as_save_IFS
7589 test -z "$as_dir" && as_dir=.
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7592 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7594 break 2
7595 fi
7596done
7597 done
7598IFS=$as_save_IFS
7599
7600fi
7601fi
7602NMEDIT=$ac_cv_prog_NMEDIT
7603if test -n "$NMEDIT"; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7605$as_echo "$NMEDIT" >&6; }
7606else
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608$as_echo "no" >&6; }
7609fi
7610
7611
7612fi
7613if test -z "$ac_cv_prog_NMEDIT"; then
7614 ac_ct_NMEDIT=$NMEDIT
7615 # Extract the first word of "nmedit", so it can be a program name with args.
7616set dummy nmedit; ac_word=$2
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7618$as_echo_n "checking for $ac_word... " >&6; }
7619if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7620 $as_echo_n "(cached) " >&6
7621else
7622 if test -n "$ac_ct_NMEDIT"; then
7623 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7624else
7625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626for as_dir in $PATH
7627do
7628 IFS=$as_save_IFS
7629 test -z "$as_dir" && as_dir=.
7630 for ac_exec_ext in '' $ac_executable_extensions; do
7631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7632 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 break 2
7635 fi
7636done
7637 done
7638IFS=$as_save_IFS
7639
7640fi
7641fi
7642ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7643if test -n "$ac_ct_NMEDIT"; then
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7645$as_echo "$ac_ct_NMEDIT" >&6; }
7646else
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648$as_echo "no" >&6; }
7649fi
7650
7651 if test "x$ac_ct_NMEDIT" = x; then
7652 NMEDIT=":"
7653 else
7654 case $cross_compiling:$ac_tool_warned in
7655yes:)
7656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7658ac_tool_warned=yes ;;
7659esac
7660 NMEDIT=$ac_ct_NMEDIT
7661 fi
7662else
7663 NMEDIT="$ac_cv_prog_NMEDIT"
7664fi
7665
7666 if test -n "$ac_tool_prefix"; then
7667 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7668set dummy ${ac_tool_prefix}lipo; ac_word=$2
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670$as_echo_n "checking for $ac_word... " >&6; }
7671if ${ac_cv_prog_LIPO+:} false; then :
7672 $as_echo_n "(cached) " >&6
7673else
7674 if test -n "$LIPO"; then
7675 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7676else
7677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678for as_dir in $PATH
7679do
7680 IFS=$as_save_IFS
7681 test -z "$as_dir" && as_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7684 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 break 2
7687 fi
7688done
7689 done
7690IFS=$as_save_IFS
7691
7692fi
7693fi
7694LIPO=$ac_cv_prog_LIPO
7695if test -n "$LIPO"; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7697$as_echo "$LIPO" >&6; }
7698else
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700$as_echo "no" >&6; }
7701fi
7702
7703
7704fi
7705if test -z "$ac_cv_prog_LIPO"; then
7706 ac_ct_LIPO=$LIPO
7707 # Extract the first word of "lipo", so it can be a program name with args.
7708set dummy lipo; ac_word=$2
7709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7710$as_echo_n "checking for $ac_word... " >&6; }
7711if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7712 $as_echo_n "(cached) " >&6
7713else
7714 if test -n "$ac_ct_LIPO"; then
7715 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7716else
7717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718for as_dir in $PATH
7719do
7720 IFS=$as_save_IFS
7721 test -z "$as_dir" && as_dir=.
7722 for ac_exec_ext in '' $ac_executable_extensions; do
7723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7724 ac_cv_prog_ac_ct_LIPO="lipo"
7725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7726 break 2
7727 fi
7728done
7729 done
7730IFS=$as_save_IFS
7731
7732fi
7733fi
7734ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7735if test -n "$ac_ct_LIPO"; then
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7737$as_echo "$ac_ct_LIPO" >&6; }
7738else
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740$as_echo "no" >&6; }
7741fi
7742
7743 if test "x$ac_ct_LIPO" = x; then
7744 LIPO=":"
7745 else
7746 case $cross_compiling:$ac_tool_warned in
7747yes:)
7748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7750ac_tool_warned=yes ;;
7751esac
7752 LIPO=$ac_ct_LIPO
7753 fi
7754else
7755 LIPO="$ac_cv_prog_LIPO"
7756fi
7757
7758 if test -n "$ac_tool_prefix"; then
7759 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7760set dummy ${ac_tool_prefix}otool; ac_word=$2
7761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762$as_echo_n "checking for $ac_word... " >&6; }
7763if ${ac_cv_prog_OTOOL+:} false; then :
7764 $as_echo_n "(cached) " >&6
7765else
7766 if test -n "$OTOOL"; then
7767 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7768else
7769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770for as_dir in $PATH
7771do
7772 IFS=$as_save_IFS
7773 test -z "$as_dir" && as_dir=.
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7776 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7778 break 2
7779 fi
7780done
7781 done
7782IFS=$as_save_IFS
7783
7784fi
7785fi
7786OTOOL=$ac_cv_prog_OTOOL
7787if test -n "$OTOOL"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7789$as_echo "$OTOOL" >&6; }
7790else
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792$as_echo "no" >&6; }
7793fi
7794
7795
7796fi
7797if test -z "$ac_cv_prog_OTOOL"; then
7798 ac_ct_OTOOL=$OTOOL
7799 # Extract the first word of "otool", so it can be a program name with args.
7800set dummy otool; ac_word=$2
7801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7802$as_echo_n "checking for $ac_word... " >&6; }
7803if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7804 $as_echo_n "(cached) " >&6
7805else
7806 if test -n "$ac_ct_OTOOL"; then
7807 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7808else
7809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810for as_dir in $PATH
7811do
7812 IFS=$as_save_IFS
7813 test -z "$as_dir" && as_dir=.
7814 for ac_exec_ext in '' $ac_executable_extensions; do
7815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7816 ac_cv_prog_ac_ct_OTOOL="otool"
7817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7818 break 2
7819 fi
7820done
7821 done
7822IFS=$as_save_IFS
7823
7824fi
7825fi
7826ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7827if test -n "$ac_ct_OTOOL"; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7829$as_echo "$ac_ct_OTOOL" >&6; }
7830else
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832$as_echo "no" >&6; }
7833fi
7834
7835 if test "x$ac_ct_OTOOL" = x; then
7836 OTOOL=":"
7837 else
7838 case $cross_compiling:$ac_tool_warned in
7839yes:)
7840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7842ac_tool_warned=yes ;;
7843esac
7844 OTOOL=$ac_ct_OTOOL
7845 fi
7846else
7847 OTOOL="$ac_cv_prog_OTOOL"
7848fi
7849
7850 if test -n "$ac_tool_prefix"; then
7851 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7852set dummy ${ac_tool_prefix}otool64; ac_word=$2
7853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854$as_echo_n "checking for $ac_word... " >&6; }
7855if ${ac_cv_prog_OTOOL64+:} false; then :
7856 $as_echo_n "(cached) " >&6
7857else
7858 if test -n "$OTOOL64"; then
7859 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7860else
7861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862for as_dir in $PATH
7863do
7864 IFS=$as_save_IFS
7865 test -z "$as_dir" && as_dir=.
7866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7868 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7870 break 2
7871 fi
7872done
7873 done
7874IFS=$as_save_IFS
7875
7876fi
7877fi
7878OTOOL64=$ac_cv_prog_OTOOL64
7879if test -n "$OTOOL64"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7881$as_echo "$OTOOL64" >&6; }
7882else
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884$as_echo "no" >&6; }
7885fi
7886
7887
7888fi
7889if test -z "$ac_cv_prog_OTOOL64"; then
7890 ac_ct_OTOOL64=$OTOOL64
7891 # Extract the first word of "otool64", so it can be a program name with args.
7892set dummy otool64; ac_word=$2
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7894$as_echo_n "checking for $ac_word... " >&6; }
7895if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7896 $as_echo_n "(cached) " >&6
7897else
7898 if test -n "$ac_ct_OTOOL64"; then
7899 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7900else
7901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902for as_dir in $PATH
7903do
7904 IFS=$as_save_IFS
7905 test -z "$as_dir" && as_dir=.
7906 for ac_exec_ext in '' $ac_executable_extensions; do
7907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7908 ac_cv_prog_ac_ct_OTOOL64="otool64"
7909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7910 break 2
7911 fi
7912done
7913 done
7914IFS=$as_save_IFS
7915
7916fi
7917fi
7918ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7919if test -n "$ac_ct_OTOOL64"; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7921$as_echo "$ac_ct_OTOOL64" >&6; }
7922else
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924$as_echo "no" >&6; }
7925fi
7926
7927 if test "x$ac_ct_OTOOL64" = x; then
7928 OTOOL64=":"
7929 else
7930 case $cross_compiling:$ac_tool_warned in
7931yes:)
7932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7934ac_tool_warned=yes ;;
7935esac
7936 OTOOL64=$ac_ct_OTOOL64
7937 fi
7938else
7939 OTOOL64="$ac_cv_prog_OTOOL64"
7940fi
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7969$as_echo_n "checking for -single_module linker flag... " >&6; }
7970if ${lt_cv_apple_cc_single_mod+:} false; then :
7971 $as_echo_n "(cached) " >&6
7972else
7973 lt_cv_apple_cc_single_mod=no
7974 if test -z "${LT_MULTI_MODULE}"; then
7975 # By default we will add the -single_module flag. You can override
7976 # by either setting the environment variable LT_MULTI_MODULE
7977 # non-empty at configure time, or by adding -multi_module to the
7978 # link flags.
7979 rm -rf libconftest.dylib*
7980 echo "int foo(void){return 1;}" > conftest.c
7981 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7982-dynamiclib -Wl,-single_module conftest.c" >&5
7983 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7984 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7985 _lt_result=$?
7986 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7987 lt_cv_apple_cc_single_mod=yes
7988 else
7989 cat conftest.err >&5
7990 fi
7991 rm -rf libconftest.dylib*
7992 rm -f conftest.*
7993 fi
7994fi
7995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7996$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7998$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7999if ${lt_cv_ld_exported_symbols_list+:} false; then :
8000 $as_echo_n "(cached) " >&6
8001else
8002 lt_cv_ld_exported_symbols_list=no
8003 save_LDFLAGS=$LDFLAGS
8004 echo "_main" > conftest.sym
8005 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007/* end confdefs.h. */
8008
8009int
8010main ()
8011{
8012
8013 ;
8014 return 0;
8015}
8016_ACEOF
8017if ac_fn_c_try_link "$LINENO"; then :
8018 lt_cv_ld_exported_symbols_list=yes
8019else
8020 lt_cv_ld_exported_symbols_list=no
8021fi
8022rm -f core conftest.err conftest.$ac_objext \
8023 conftest$ac_exeext conftest.$ac_ext
8024 LDFLAGS="$save_LDFLAGS"
8025
8026fi
8027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8028$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8030$as_echo_n "checking for -force_load linker flag... " >&6; }
8031if ${lt_cv_ld_force_load+:} false; then :
8032 $as_echo_n "(cached) " >&6
8033else
8034 lt_cv_ld_force_load=no
8035 cat > conftest.c << _LT_EOF
8036int forced_loaded() { return 2;}
8037_LT_EOF
8038 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8039 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8040 echo "$AR cru libconftest.a conftest.o" >&5
8041 $AR cru libconftest.a conftest.o 2>&5
8042 cat > conftest.c << _LT_EOF
8043int main() { return 0;}
8044_LT_EOF
8045 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8046 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8047 _lt_result=$?
8048 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8049 lt_cv_ld_force_load=yes
8050 else
8051 cat conftest.err >&5
8052 fi
8053 rm -f conftest.err libconftest.a conftest conftest.c
8054 rm -rf conftest.dSYM
8055
8056fi
8057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8058$as_echo "$lt_cv_ld_force_load" >&6; }
8059 case $host_os in
8060 rhapsody* | darwin1.[012])
8061 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8062 darwin1.*)
8063 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8064 darwin*) # darwin 5.x on
8065 # if running on 10.5 or later, the deployment target defaults
8066 # to the OS version, if on x86, and 10.4, the deployment
8067 # target defaults to 10.4. Don't you love it?
8068 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8069 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8070 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8071 10.[012][,.]*)
8072 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8073 10.*)
8074 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8075 esac
8076 ;;
8077 esac
8078 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8079 _lt_dar_single_mod='$single_module'
8080 fi
8081 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8082 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8083 else
8084 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8085 fi
8086 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8087 _lt_dsymutil='~$DSYMUTIL $lib || :'
8088 else
8089 _lt_dsymutil=
8090 fi
8091 ;;
8092 esac
8093
8094for ac_header in dlfcn.h
8095do :
8096 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8097"
8098if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8099 cat >>confdefs.h <<_ACEOF
8100#define HAVE_DLFCN_H 1
8101_ACEOF
8102
8103fi
8104
8105done
8106
8107
8108
8109
8110
8111# Set options
8112
8113
8114
8115 enable_dlopen=no
8116
8117
8118 enable_win32_dll=no
8119
8120
8121
8122 # Check whether --enable-static was given.
8123if test "${enable_static+set}" = set; then :
8124 enableval=$enable_static; p=${PACKAGE-default}
8125 case $enableval in
8126 yes) enable_static=yes ;;
8127 no) enable_static=no ;;
8128 *)
8129 enable_static=no
8130 # Look at the argument we got. We use all the common list separators.
8131 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8132 for pkg in $enableval; do
8133 IFS="$lt_save_ifs"
8134 if test "X$pkg" = "X$p"; then
8135 enable_static=yes
8136 fi
8137 done
8138 IFS="$lt_save_ifs"
8139 ;;
8140 esac
8141else
8142 enable_static=yes
8143fi
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154# Check whether --with-pic was given.
8155if test "${with_pic+set}" = set; then :
8156 withval=$with_pic; pic_mode="$withval"
8157else
8158 pic_mode=default
8159fi
8160
8161
8162test -z "$pic_mode" && pic_mode=default
8163
8164
8165
8166
8167
8168
8169
8170 # Check whether --enable-fast-install was given.
8171if test "${enable_fast_install+set}" = set; then :
8172 enableval=$enable_fast_install; p=${PACKAGE-default}
8173 case $enableval in
8174 yes) enable_fast_install=yes ;;
8175 no) enable_fast_install=no ;;
8176 *)
8177 enable_fast_install=no
8178 # Look at the argument we got. We use all the common list separators.
8179 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8180 for pkg in $enableval; do
8181 IFS="$lt_save_ifs"
8182 if test "X$pkg" = "X$p"; then
8183 enable_fast_install=yes
8184 fi
8185 done
8186 IFS="$lt_save_ifs"
8187 ;;
8188 esac
8189else
8190 enable_fast_install=yes
8191fi
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203# This can be used to rebuild libtool when needed
8204LIBTOOL_DEPS="$ltmain"
8205
8206# Always use our own libtool.
8207LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234test -z "$LN_S" && LN_S="ln -s"
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249if test -n "${ZSH_VERSION+set}" ; then
8250 setopt NO_GLOB_SUBST
8251fi
8252
8253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8254$as_echo_n "checking for objdir... " >&6; }
8255if ${lt_cv_objdir+:} false; then :
8256 $as_echo_n "(cached) " >&6
8257else
8258 rm -f .libs 2>/dev/null
8259mkdir .libs 2>/dev/null
8260if test -d .libs; then
8261 lt_cv_objdir=.libs
8262else
8263 # MS-DOS does not allow filenames that begin with a dot.
8264 lt_cv_objdir=_libs
8265fi
8266rmdir .libs 2>/dev/null
8267fi
8268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8269$as_echo "$lt_cv_objdir" >&6; }
8270objdir=$lt_cv_objdir
8271
8272
8273
8274
8275
8276cat >>confdefs.h <<_ACEOF
8277#define LT_OBJDIR "$lt_cv_objdir/"
8278_ACEOF
8279
8280
8281
8282
8283case $host_os in
8284aix3*)
8285 # AIX sometimes has problems with the GCC collect2 program. For some
8286 # reason, if we set the COLLECT_NAMES environment variable, the problems
8287 # vanish in a puff of smoke.
8288 if test "X${COLLECT_NAMES+set}" != Xset; then
8289 COLLECT_NAMES=
8290 export COLLECT_NAMES
8291 fi
8292 ;;
8293esac
8294
8295# Global variables:
8296ofile=libtool
8297can_build_shared=yes
8298
8299# All known linkers require a `.a' archive for static linking (except MSVC,
8300# which needs '.lib').
8301libext=a
8302
8303with_gnu_ld="$lt_cv_prog_gnu_ld"
8304
8305old_CC="$CC"
8306old_CFLAGS="$CFLAGS"
8307
8308# Set sane defaults for various variables
8309test -z "$CC" && CC=cc
8310test -z "$LTCC" && LTCC=$CC
8311test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8312test -z "$LD" && LD=ld
8313test -z "$ac_objext" && ac_objext=o
8314
8315for cc_temp in $compiler""; do
8316 case $cc_temp in
8317 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8318 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8319 \-*) ;;
8320 *) break;;
8321 esac
8322done
8323cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8324
8325
8326# Only perform the check for file, if the check method requires it
8327test -z "$MAGIC_CMD" && MAGIC_CMD=file
8328case $deplibs_check_method in
8329file_magic*)
8330 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8332$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8333if ${lt_cv_path_MAGIC_CMD+:} false; then :
8334 $as_echo_n "(cached) " >&6
8335else
8336 case $MAGIC_CMD in
8337[\\/*] | ?:[\\/]*)
8338 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8339 ;;
8340*)
8341 lt_save_MAGIC_CMD="$MAGIC_CMD"
8342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8343 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8344 for ac_dir in $ac_dummy; do
8345 IFS="$lt_save_ifs"
8346 test -z "$ac_dir" && ac_dir=.
8347 if test -f $ac_dir/${ac_tool_prefix}file; then
8348 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8349 if test -n "$file_magic_test_file"; then
8350 case $deplibs_check_method in
8351 "file_magic "*)
8352 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8353 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8354 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8355 $EGREP "$file_magic_regex" > /dev/null; then
8356 :
8357 else
8358 cat <<_LT_EOF 1>&2
8359
8360*** Warning: the command libtool uses to detect shared libraries,
8361*** $file_magic_cmd, produces output that libtool cannot recognize.
8362*** The result is that libtool may fail to recognize shared libraries
8363*** as such. This will affect the creation of libtool libraries that
8364*** depend on shared libraries, but programs linked with such libtool
8365*** libraries will work regardless of this problem. Nevertheless, you
8366*** may want to report the problem to your system manager and/or to
8367*** bug-libtool@gnu.org
8368
8369_LT_EOF
8370 fi ;;
8371 esac
8372 fi
8373 break
8374 fi
8375 done
8376 IFS="$lt_save_ifs"
8377 MAGIC_CMD="$lt_save_MAGIC_CMD"
8378 ;;
8379esac
8380fi
8381
8382MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8383if test -n "$MAGIC_CMD"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8385$as_echo "$MAGIC_CMD" >&6; }
8386else
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388$as_echo "no" >&6; }
8389fi
8390
8391
8392
8393
8394
8395if test -z "$lt_cv_path_MAGIC_CMD"; then
8396 if test -n "$ac_tool_prefix"; then
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8398$as_echo_n "checking for file... " >&6; }
8399if ${lt_cv_path_MAGIC_CMD+:} false; then :
8400 $as_echo_n "(cached) " >&6
8401else
8402 case $MAGIC_CMD in
8403[\\/*] | ?:[\\/]*)
8404 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8405 ;;
8406*)
8407 lt_save_MAGIC_CMD="$MAGIC_CMD"
8408 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8409 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8410 for ac_dir in $ac_dummy; do
8411 IFS="$lt_save_ifs"
8412 test -z "$ac_dir" && ac_dir=.
8413 if test -f $ac_dir/file; then
8414 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8415 if test -n "$file_magic_test_file"; then
8416 case $deplibs_check_method in
8417 "file_magic "*)
8418 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8419 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8420 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8421 $EGREP "$file_magic_regex" > /dev/null; then
8422 :
8423 else
8424 cat <<_LT_EOF 1>&2
8425
8426*** Warning: the command libtool uses to detect shared libraries,
8427*** $file_magic_cmd, produces output that libtool cannot recognize.
8428*** The result is that libtool may fail to recognize shared libraries
8429*** as such. This will affect the creation of libtool libraries that
8430*** depend on shared libraries, but programs linked with such libtool
8431*** libraries will work regardless of this problem. Nevertheless, you
8432*** may want to report the problem to your system manager and/or to
8433*** bug-libtool@gnu.org
8434
8435_LT_EOF
8436 fi ;;
8437 esac
8438 fi
8439 break
8440 fi
8441 done
8442 IFS="$lt_save_ifs"
8443 MAGIC_CMD="$lt_save_MAGIC_CMD"
8444 ;;
8445esac
8446fi
8447
8448MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8449if test -n "$MAGIC_CMD"; then
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8451$as_echo "$MAGIC_CMD" >&6; }
8452else
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8454$as_echo "no" >&6; }
8455fi
8456
8457
8458 else
8459 MAGIC_CMD=:
8460 fi
8461fi
8462
8463 fi
8464 ;;
8465esac
8466
8467# Use C for the default configuration in the libtool script
8468
8469lt_save_CC="$CC"
8470ac_ext=c
8471ac_cpp='$CPP $CPPFLAGS'
8472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8474ac_compiler_gnu=$ac_cv_c_compiler_gnu
8475
8476
8477# Source file extension for C test sources.
8478ac_ext=c
8479
8480# Object file extension for compiled C test sources.
8481objext=o
8482objext=$objext
8483
8484# Code to be used in simple compile tests
8485lt_simple_compile_test_code="int some_variable = 0;"
8486
8487# Code to be used in simple link tests
8488lt_simple_link_test_code='int main(){return(0);}'
8489
8490
8491
8492
8493
8494
8495
8496# If no C compiler was specified, use CC.
8497LTCC=${LTCC-"$CC"}
8498
8499# If no C compiler flags were specified, use CFLAGS.
8500LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8501
8502# Allow CC to be a program name with arguments.
8503compiler=$CC
8504
8505# Save the default compiler, since it gets overwritten when the other
8506# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8507compiler_DEFAULT=$CC
8508
8509# save warnings/boilerplate of simple test code
8510ac_outfile=conftest.$ac_objext
8511echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8512eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8513_lt_compiler_boilerplate=`cat conftest.err`
8514$RM conftest*
8515
8516ac_outfile=conftest.$ac_objext
8517echo "$lt_simple_link_test_code" >conftest.$ac_ext
8518eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8519_lt_linker_boilerplate=`cat conftest.err`
8520$RM -r conftest*
8521
8522
8523## CAVEAT EMPTOR:
8524## There is no encapsulation within the following macros, do not change
8525## the running order or otherwise move them around unless you know exactly
8526## what you are doing...
8527if test -n "$compiler"; then
8528
8529lt_prog_compiler_no_builtin_flag=
8530
8531if test "$GCC" = yes; then
8532 case $cc_basename in
8533 nvcc*)
8534 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8535 *)
8536 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8537 esac
8538
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8540$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8541if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8542 $as_echo_n "(cached) " >&6
8543else
8544 lt_cv_prog_compiler_rtti_exceptions=no
8545 ac_outfile=conftest.$ac_objext
8546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8547 lt_compiler_flag="-fno-rtti -fno-exceptions"
8548 # Insert the option either (1) after the last *FLAGS variable, or
8549 # (2) before a word containing "conftest.", or (3) at the end.
8550 # Note that $ac_compile itself does not contain backslashes and begins
8551 # with a dollar sign (not a hyphen), so the echo should work correctly.
8552 # The option is referenced via a variable to avoid confusing sed.
8553 lt_compile=`echo "$ac_compile" | $SED \
8554 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8556 -e 's:$: $lt_compiler_flag:'`
8557 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8558 (eval "$lt_compile" 2>conftest.err)
8559 ac_status=$?
8560 cat conftest.err >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 if (exit $ac_status) && test -s "$ac_outfile"; then
8563 # The compiler can only warn and ignore the option if not recognized
8564 # So say no if there are warnings other than the usual output.
8565 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8566 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8567 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8568 lt_cv_prog_compiler_rtti_exceptions=yes
8569 fi
8570 fi
8571 $RM conftest*
8572
8573fi
8574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8575$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8576
8577if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8578 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8579else
8580 :
8581fi
8582
8583fi
8584
8585
8586
8587
8588
8589
8590 lt_prog_compiler_wl=
8591lt_prog_compiler_pic=
8592lt_prog_compiler_static=
8593
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8595$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8596
8597 if test "$GCC" = yes; then
8598 lt_prog_compiler_wl='-Wl,'
8599 lt_prog_compiler_static='-static'
8600
8601 case $host_os in
8602 aix*)
8603 # All AIX code is PIC.
8604 if test "$host_cpu" = ia64; then
8605 # AIX 5 now supports IA64 processor
8606 lt_prog_compiler_static='-Bstatic'
8607 fi
8608 lt_prog_compiler_pic='-fPIC'
8609 ;;
8610
8611 amigaos*)
8612 case $host_cpu in
8613 powerpc)
8614 # see comment about AmigaOS4 .so support
8615 lt_prog_compiler_pic='-fPIC'
8616 ;;
8617 m68k)
8618 # FIXME: we need at least 68020 code to build shared libraries, but
8619 # adding the `-m68020' flag to GCC prevents building anything better,
8620 # like `-m68040'.
8621 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8622 ;;
8623 esac
8624 ;;
8625
8626 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8627 # PIC is the default for these OSes.
8628 ;;
8629
8630 mingw* | cygwin* | pw32* | os2* | cegcc*)
8631 # This hack is so that the source file can tell whether it is being
8632 # built for inclusion in a dll (and should export symbols for example).
8633 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8634 # (--disable-auto-import) libraries
8635 lt_prog_compiler_pic='-DDLL_EXPORT'
8636 ;;
8637
8638 darwin* | rhapsody*)
8639 # PIC is the default on this platform
8640 # Common symbols not allowed in MH_DYLIB files
8641 lt_prog_compiler_pic='-fno-common'
8642 ;;
8643
8644 haiku*)
8645 # PIC is the default for Haiku.
8646 # The "-static" flag exists, but is broken.
8647 lt_prog_compiler_static=
8648 ;;
8649
8650 hpux*)
8651 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8652 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8653 # sets the default TLS model and affects inlining.
8654 case $host_cpu in
8655 hppa*64*)
8656 # +Z the default
8657 ;;
8658 *)
8659 lt_prog_compiler_pic='-fPIC'
8660 ;;
8661 esac
8662 ;;
8663
8664 interix[3-9]*)
8665 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8666 # Instead, we relocate shared libraries at runtime.
8667 ;;
8668
8669 msdosdjgpp*)
8670 # Just because we use GCC doesn't mean we suddenly get shared libraries
8671 # on systems that don't support them.
8672 lt_prog_compiler_can_build_shared=no
8673 enable_shared=no
8674 ;;
8675
8676 *nto* | *qnx*)
8677 # QNX uses GNU C++, but need to define -shared option too, otherwise
8678 # it will coredump.
8679 lt_prog_compiler_pic='-fPIC -shared'
8680 ;;
8681
8682 sysv4*MP*)
8683 if test -d /usr/nec; then
8684 lt_prog_compiler_pic=-Kconform_pic
8685 fi
8686 ;;
8687
8688 *)
8689 lt_prog_compiler_pic='-fPIC'
8690 ;;
8691 esac
8692
8693 case $cc_basename in
8694 nvcc*) # Cuda Compiler Driver 2.2
8695 lt_prog_compiler_wl='-Xlinker '
8696 lt_prog_compiler_pic='-Xcompiler -fPIC'
8697 ;;
8698 esac
8699 else
8700 # PORTME Check for flag to pass linker flags through the system compiler.
8701 case $host_os in
8702 aix*)
8703 lt_prog_compiler_wl='-Wl,'
8704 if test "$host_cpu" = ia64; then
8705 # AIX 5 now supports IA64 processor
8706 lt_prog_compiler_static='-Bstatic'
8707 else
8708 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8709 fi
8710 ;;
8711
8712 mingw* | cygwin* | pw32* | os2* | cegcc*)
8713 # This hack is so that the source file can tell whether it is being
8714 # built for inclusion in a dll (and should export symbols for example).
8715 lt_prog_compiler_pic='-DDLL_EXPORT'
8716 ;;
8717
8718 hpux9* | hpux10* | hpux11*)
8719 lt_prog_compiler_wl='-Wl,'
8720 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8721 # not for PA HP-UX.
8722 case $host_cpu in
8723 hppa*64*|ia64*)
8724 # +Z the default
8725 ;;
8726 *)
8727 lt_prog_compiler_pic='+Z'
8728 ;;
8729 esac
8730 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8731 lt_prog_compiler_static='${wl}-a ${wl}archive'
8732 ;;
8733
8734 irix5* | irix6* | nonstopux*)
8735 lt_prog_compiler_wl='-Wl,'
8736 # PIC (with -KPIC) is the default.
8737 lt_prog_compiler_static='-non_shared'
8738 ;;
8739
8740 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8741 case $cc_basename in
8742 # old Intel for x86_64 which still supported -KPIC.
8743 ecc*)
8744 lt_prog_compiler_wl='-Wl,'
8745 lt_prog_compiler_pic='-KPIC'
8746 lt_prog_compiler_static='-static'
8747 ;;
8748 # icc used to be incompatible with GCC.
8749 # ICC 10 doesn't accept -KPIC any more.
8750 icc* | ifort*)
8751 lt_prog_compiler_wl='-Wl,'
8752 lt_prog_compiler_pic='-fPIC'
8753 lt_prog_compiler_static='-static'
8754 ;;
8755 # Lahey Fortran 8.1.
8756 lf95*)
8757 lt_prog_compiler_wl='-Wl,'
8758 lt_prog_compiler_pic='--shared'
8759 lt_prog_compiler_static='--static'
8760 ;;
8761 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8762 # Portland Group compilers (*not* the Pentium gcc compiler,
8763 # which looks to be a dead project)
8764 lt_prog_compiler_wl='-Wl,'
8765 lt_prog_compiler_pic='-fpic'
8766 lt_prog_compiler_static='-Bstatic'
8767 ;;
8768 ccc*)
8769 lt_prog_compiler_wl='-Wl,'
8770 # All Alpha code is PIC.
8771 lt_prog_compiler_static='-non_shared'
8772 ;;
8773 xl* | bgxl* | bgf* | mpixl*)
8774 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8775 lt_prog_compiler_wl='-Wl,'
8776 lt_prog_compiler_pic='-qpic'
8777 lt_prog_compiler_static='-qstaticlink'
8778 ;;
8779 *)
8780 case `$CC -V 2>&1 | sed 5q` in
8781 *Sun\ F* | *Sun*Fortran*)
8782 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8783 lt_prog_compiler_pic='-KPIC'
8784 lt_prog_compiler_static='-Bstatic'
8785 lt_prog_compiler_wl=''
8786 ;;
8787 *Sun\ C*)
8788 # Sun C 5.9
8789 lt_prog_compiler_pic='-KPIC'
8790 lt_prog_compiler_static='-Bstatic'
8791 lt_prog_compiler_wl='-Wl,'
8792 ;;
8793 esac
8794 ;;
8795 esac
8796 ;;
8797
8798 newsos6)
8799 lt_prog_compiler_pic='-KPIC'
8800 lt_prog_compiler_static='-Bstatic'
8801 ;;
8802
8803 *nto* | *qnx*)
8804 # QNX uses GNU C++, but need to define -shared option too, otherwise
8805 # it will coredump.
8806 lt_prog_compiler_pic='-fPIC -shared'
8807 ;;
8808
8809 osf3* | osf4* | osf5*)
8810 lt_prog_compiler_wl='-Wl,'
8811 # All OSF/1 code is PIC.
8812 lt_prog_compiler_static='-non_shared'
8813 ;;
8814
8815 rdos*)
8816 lt_prog_compiler_static='-non_shared'
8817 ;;
8818
8819 solaris*)
8820 lt_prog_compiler_pic='-KPIC'
8821 lt_prog_compiler_static='-Bstatic'
8822 case $cc_basename in
8823 f77* | f90* | f95*)
8824 lt_prog_compiler_wl='-Qoption ld ';;
8825 *)
8826 lt_prog_compiler_wl='-Wl,';;
8827 esac
8828 ;;
8829
8830 sunos4*)
8831 lt_prog_compiler_wl='-Qoption ld '
8832 lt_prog_compiler_pic='-PIC'
8833 lt_prog_compiler_static='-Bstatic'
8834 ;;
8835
8836 sysv4 | sysv4.2uw2* | sysv4.3*)
8837 lt_prog_compiler_wl='-Wl,'
8838 lt_prog_compiler_pic='-KPIC'
8839 lt_prog_compiler_static='-Bstatic'
8840 ;;
8841
8842 sysv4*MP*)
8843 if test -d /usr/nec ;then
8844 lt_prog_compiler_pic='-Kconform_pic'
8845 lt_prog_compiler_static='-Bstatic'
8846 fi
8847 ;;
8848
8849 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8850 lt_prog_compiler_wl='-Wl,'
8851 lt_prog_compiler_pic='-KPIC'
8852 lt_prog_compiler_static='-Bstatic'
8853 ;;
8854
8855 unicos*)
8856 lt_prog_compiler_wl='-Wl,'
8857 lt_prog_compiler_can_build_shared=no
8858 ;;
8859
8860 uts4*)
8861 lt_prog_compiler_pic='-pic'
8862 lt_prog_compiler_static='-Bstatic'
8863 ;;
8864
8865 *)
8866 lt_prog_compiler_can_build_shared=no
8867 ;;
8868 esac
8869 fi
8870
8871case $host_os in
8872 # For platforms which do not support PIC, -DPIC is meaningless:
8873 *djgpp*)
8874 lt_prog_compiler_pic=
8875 ;;
8876 *)
8877 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8878 ;;
8879esac
8880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8881$as_echo "$lt_prog_compiler_pic" >&6; }
8882
8883
8884
8885
8886
8887
8888#
8889# Check to make sure the PIC flag actually works.
8890#
8891if test -n "$lt_prog_compiler_pic"; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8893$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8894if ${lt_cv_prog_compiler_pic_works+:} false; then :
8895 $as_echo_n "(cached) " >&6
8896else
8897 lt_cv_prog_compiler_pic_works=no
8898 ac_outfile=conftest.$ac_objext
8899 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8900 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8901 # Insert the option either (1) after the last *FLAGS variable, or
8902 # (2) before a word containing "conftest.", or (3) at the end.
8903 # Note that $ac_compile itself does not contain backslashes and begins
8904 # with a dollar sign (not a hyphen), so the echo should work correctly.
8905 # The option is referenced via a variable to avoid confusing sed.
8906 lt_compile=`echo "$ac_compile" | $SED \
8907 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8908 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8909 -e 's:$: $lt_compiler_flag:'`
8910 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8911 (eval "$lt_compile" 2>conftest.err)
8912 ac_status=$?
8913 cat conftest.err >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 if (exit $ac_status) && test -s "$ac_outfile"; then
8916 # The compiler can only warn and ignore the option if not recognized
8917 # So say no if there are warnings other than the usual output.
8918 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8919 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8920 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8921 lt_cv_prog_compiler_pic_works=yes
8922 fi
8923 fi
8924 $RM conftest*
8925
8926fi
8927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8928$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8929
8930if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8931 case $lt_prog_compiler_pic in
8932 "" | " "*) ;;
8933 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8934 esac
8935else
8936 lt_prog_compiler_pic=
8937 lt_prog_compiler_can_build_shared=no
8938fi
8939
8940fi
8941
8942
8943
8944
8945
8946
8947#
8948# Check to make sure the static flag actually works.
8949#
8950wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8952$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8953if ${lt_cv_prog_compiler_static_works+:} false; then :
8954 $as_echo_n "(cached) " >&6
8955else
8956 lt_cv_prog_compiler_static_works=no
8957 save_LDFLAGS="$LDFLAGS"
8958 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8959 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8960 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8961 # The linker can only warn and ignore the option if not recognized
8962 # So say no if there are warnings
8963 if test -s conftest.err; then
8964 # Append any errors to the config.log.
8965 cat conftest.err 1>&5
8966 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8967 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8968 if diff conftest.exp conftest.er2 >/dev/null; then
8969 lt_cv_prog_compiler_static_works=yes
8970 fi
8971 else
8972 lt_cv_prog_compiler_static_works=yes
8973 fi
8974 fi
8975 $RM -r conftest*
8976 LDFLAGS="$save_LDFLAGS"
8977
8978fi
8979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8980$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8981
8982if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8983 :
8984else
8985 lt_prog_compiler_static=
8986fi
8987
8988
8989
8990
8991
8992
8993
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8995$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8996if ${lt_cv_prog_compiler_c_o+:} false; then :
8997 $as_echo_n "(cached) " >&6
8998else
8999 lt_cv_prog_compiler_c_o=no
9000 $RM -r conftest 2>/dev/null
9001 mkdir conftest
9002 cd conftest
9003 mkdir out
9004 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9005
9006 lt_compiler_flag="-o out/conftest2.$ac_objext"
9007 # Insert the option either (1) after the last *FLAGS variable, or
9008 # (2) before a word containing "conftest.", or (3) at the end.
9009 # Note that $ac_compile itself does not contain backslashes and begins
9010 # with a dollar sign (not a hyphen), so the echo should work correctly.
9011 lt_compile=`echo "$ac_compile" | $SED \
9012 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9014 -e 's:$: $lt_compiler_flag:'`
9015 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9016 (eval "$lt_compile" 2>out/conftest.err)
9017 ac_status=$?
9018 cat out/conftest.err >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9021 then
9022 # The compiler can only warn and ignore the option if not recognized
9023 # So say no if there are warnings
9024 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9025 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9026 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9027 lt_cv_prog_compiler_c_o=yes
9028 fi
9029 fi
9030 chmod u+w . 2>&5
9031 $RM conftest*
9032 # SGI C++ compiler will create directory out/ii_files/ for
9033 # template instantiation
9034 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9035 $RM out/* && rmdir out
9036 cd ..
9037 $RM -r conftest
9038 $RM conftest*
9039
9040fi
9041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9042$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9043
9044
9045
9046
9047
9048
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9050$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9051if ${lt_cv_prog_compiler_c_o+:} false; then :
9052 $as_echo_n "(cached) " >&6
9053else
9054 lt_cv_prog_compiler_c_o=no
9055 $RM -r conftest 2>/dev/null
9056 mkdir conftest
9057 cd conftest
9058 mkdir out
9059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9060
9061 lt_compiler_flag="-o out/conftest2.$ac_objext"
9062 # Insert the option either (1) after the last *FLAGS variable, or
9063 # (2) before a word containing "conftest.", or (3) at the end.
9064 # Note that $ac_compile itself does not contain backslashes and begins
9065 # with a dollar sign (not a hyphen), so the echo should work correctly.
9066 lt_compile=`echo "$ac_compile" | $SED \
9067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9069 -e 's:$: $lt_compiler_flag:'`
9070 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9071 (eval "$lt_compile" 2>out/conftest.err)
9072 ac_status=$?
9073 cat out/conftest.err >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9076 then
9077 # The compiler can only warn and ignore the option if not recognized
9078 # So say no if there are warnings
9079 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9080 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9081 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9082 lt_cv_prog_compiler_c_o=yes
9083 fi
9084 fi
9085 chmod u+w . 2>&5
9086 $RM conftest*
9087 # SGI C++ compiler will create directory out/ii_files/ for
9088 # template instantiation
9089 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9090 $RM out/* && rmdir out
9091 cd ..
9092 $RM -r conftest
9093 $RM conftest*
9094
9095fi
9096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9097$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9098
9099
9100
9101
9102hard_links="nottested"
9103if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9104 # do not overwrite the value of need_locks provided by the user
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9106$as_echo_n "checking if we can lock with hard links... " >&6; }
9107 hard_links=yes
9108 $RM conftest*
9109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9110 touch conftest.a
9111 ln conftest.a conftest.b 2>&5 || hard_links=no
9112 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9114$as_echo "$hard_links" >&6; }
9115 if test "$hard_links" = no; then
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9117$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9118 need_locks=warn
9119 fi
9120else
9121 need_locks=no
9122fi
9123
9124
9125
9126
9127
9128
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9130$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9131
9132 runpath_var=
9133 allow_undefined_flag=
9134 always_export_symbols=no
9135 archive_cmds=
9136 archive_expsym_cmds=
9137 compiler_needs_object=no
9138 enable_shared_with_static_runtimes=no
9139 export_dynamic_flag_spec=
9140 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9141 hardcode_automatic=no
9142 hardcode_direct=no
9143 hardcode_direct_absolute=no
9144 hardcode_libdir_flag_spec=
9145 hardcode_libdir_flag_spec_ld=
9146 hardcode_libdir_separator=
9147 hardcode_minus_L=no
9148 hardcode_shlibpath_var=unsupported
9149 inherit_rpath=no
9150 link_all_deplibs=unknown
9151 module_cmds=
9152 module_expsym_cmds=
9153 old_archive_from_new_cmds=
9154 old_archive_from_expsyms_cmds=
9155 thread_safe_flag_spec=
9156 whole_archive_flag_spec=
9157 # include_expsyms should be a list of space-separated symbols to be *always*
9158 # included in the symbol list
9159 include_expsyms=
9160 # exclude_expsyms can be an extended regexp of symbols to exclude
9161 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9162 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9163 # as well as any symbol that contains `d'.
9164 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9165 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9166 # platforms (ab)use it in PIC code, but their linkers get confused if
9167 # the symbol is explicitly referenced. Since portable code cannot
9168 # rely on this symbol name, it's probably fine to never include it in
9169 # preloaded symbol tables.
9170 # Exclude shared library initialization/finalization symbols.
9171 extract_expsyms_cmds=
9172
9173 case $host_os in
9174 cygwin* | mingw* | pw32* | cegcc*)
9175 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9176 # When not using gcc, we currently assume that we are using
9177 # Microsoft Visual C++.
9178 if test "$GCC" != yes; then
9179 with_gnu_ld=no
9180 fi
9181 ;;
9182 interix*)
9183 # we just hope/assume this is gcc and not c89 (= MSVC++)
9184 with_gnu_ld=yes
9185 ;;
9186 openbsd*)
9187 with_gnu_ld=no
9188 ;;
9189 esac
9190
9191 ld_shlibs=yes
9192
9193 # On some targets, GNU ld is compatible enough with the native linker
9194 # that we're better off using the native interface for both.
9195 lt_use_gnu_ld_interface=no
9196 if test "$with_gnu_ld" = yes; then
9197 case $host_os in
9198 aix*)
9199 # The AIX port of GNU ld has always aspired to compatibility
9200 # with the native linker. However, as the warning in the GNU ld
9201 # block says, versions before 2.19.5* couldn't really create working
9202 # shared libraries, regardless of the interface used.
9203 case `$LD -v 2>&1` in
9204 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9205 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9206 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9207 *)
9208 lt_use_gnu_ld_interface=yes
9209 ;;
9210 esac
9211 ;;
9212 *)
9213 lt_use_gnu_ld_interface=yes
9214 ;;
9215 esac
9216 fi
9217
9218 if test "$lt_use_gnu_ld_interface" = yes; then
9219 # If archive_cmds runs LD, not CC, wlarc should be empty
9220 wlarc='${wl}'
9221
9222 # Set some defaults for GNU ld with shared library support. These
9223 # are reset later if shared libraries are not supported. Putting them
9224 # here allows them to be overridden if necessary.
9225 runpath_var=LD_RUN_PATH
9226 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9227 export_dynamic_flag_spec='${wl}--export-dynamic'
9228 # ancient GNU ld didn't support --whole-archive et. al.
9229 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9230 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9231 else
9232 whole_archive_flag_spec=
9233 fi
9234 supports_anon_versioning=no
9235 case `$LD -v 2>&1` in
9236 *GNU\ gold*) supports_anon_versioning=yes ;;
9237 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9238 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9239 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9240 *\ 2.11.*) ;; # other 2.11 versions
9241 *) supports_anon_versioning=yes ;;
9242 esac
9243
9244 # See if GNU ld supports shared libraries.
9245 case $host_os in
9246 aix[3-9]*)
9247 # On AIX/PPC, the GNU linker is very broken
9248 if test "$host_cpu" != ia64; then
9249 ld_shlibs=no
9250 cat <<_LT_EOF 1>&2
9251
9252*** Warning: the GNU linker, at least up to release 2.19, is reported
9253*** to be unable to reliably create shared libraries on AIX.
9254*** Therefore, libtool is disabling shared libraries support. If you
9255*** really care for shared libraries, you may want to install binutils
9256*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9257*** You will then need to restart the configuration process.
9258
9259_LT_EOF
9260 fi
9261 ;;
9262
9263 amigaos*)
9264 case $host_cpu in
9265 powerpc)
9266 # see comment about AmigaOS4 .so support
9267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9268 archive_expsym_cmds=''
9269 ;;
9270 m68k)
9271 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)'
9272 hardcode_libdir_flag_spec='-L$libdir'
9273 hardcode_minus_L=yes
9274 ;;
9275 esac
9276 ;;
9277
9278 beos*)
9279 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9280 allow_undefined_flag=unsupported
9281 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9282 # support --undefined. This deserves some investigation. FIXME
9283 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9284 else
9285 ld_shlibs=no
9286 fi
9287 ;;
9288
9289 cygwin* | mingw* | pw32* | cegcc*)
9290 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9291 # as there is no search path for DLLs.
9292 hardcode_libdir_flag_spec='-L$libdir'
9293 export_dynamic_flag_spec='${wl}--export-all-symbols'
9294 allow_undefined_flag=unsupported
9295 always_export_symbols=no
9296 enable_shared_with_static_runtimes=yes
9297 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9298
9299 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9300 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9301 # If the export-symbols file already is a .def file (1st line
9302 # is EXPORTS), use it as is; otherwise, prepend...
9303 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9304 cp $export_symbols $output_objdir/$soname.def;
9305 else
9306 echo EXPORTS > $output_objdir/$soname.def;
9307 cat $export_symbols >> $output_objdir/$soname.def;
9308 fi~
9309 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9310 else
9311 ld_shlibs=no
9312 fi
9313 ;;
9314
9315 haiku*)
9316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9317 link_all_deplibs=yes
9318 ;;
9319
9320 interix[3-9]*)
9321 hardcode_direct=no
9322 hardcode_shlibpath_var=no
9323 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9324 export_dynamic_flag_spec='${wl}-E'
9325 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9326 # Instead, shared libraries are loaded at an image base (0x10000000 by
9327 # default) and relocated if they conflict, which is a slow very memory
9328 # consuming and fragmenting process. To avoid this, we pick a random,
9329 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9330 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9331 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9332 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'
9333 ;;
9334
9335 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9336 tmp_diet=no
9337 if test "$host_os" = linux-dietlibc; then
9338 case $cc_basename in
9339 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9340 esac
9341 fi
9342 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9343 && test "$tmp_diet" = no
9344 then
9345 tmp_addflag=' $pic_flag'
9346 tmp_sharedflag='-shared'
9347 case $cc_basename,$host_cpu in
9348 pgcc*) # Portland Group C compiler
9349 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'
9350 tmp_addflag=' $pic_flag'
9351 ;;
9352 pgf77* | pgf90* | pgf95* | pgfortran*)
9353 # Portland Group f77 and f90 compilers
9354 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'
9355 tmp_addflag=' $pic_flag -Mnomain' ;;
9356 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9357 tmp_addflag=' -i_dynamic' ;;
9358 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9359 tmp_addflag=' -i_dynamic -nofor_main' ;;
9360 ifc* | ifort*) # Intel Fortran compiler
9361 tmp_addflag=' -nofor_main' ;;
9362 lf95*) # Lahey Fortran 8.1
9363 whole_archive_flag_spec=
9364 tmp_sharedflag='--shared' ;;
9365 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9366 tmp_sharedflag='-qmkshrobj'
9367 tmp_addflag= ;;
9368 nvcc*) # Cuda Compiler Driver 2.2
9369 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'
9370 compiler_needs_object=yes
9371 ;;
9372 esac
9373 case `$CC -V 2>&1 | sed 5q` in
9374 *Sun\ C*) # Sun C 5.9
9375 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'
9376 compiler_needs_object=yes
9377 tmp_sharedflag='-G' ;;
9378 *Sun\ F*) # Sun Fortran 8.3
9379 tmp_sharedflag='-G' ;;
9380 esac
9381 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9382
9383 if test "x$supports_anon_versioning" = xyes; then
9384 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9385 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9386 echo "local: *; };" >> $output_objdir/$libname.ver~
9387 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9388 fi
9389
9390 case $cc_basename in
9391 xlf* | bgf* | bgxlf* | mpixlf*)
9392 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9393 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9394 hardcode_libdir_flag_spec=
9395 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9396 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9397 if test "x$supports_anon_versioning" = xyes; then
9398 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9399 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9400 echo "local: *; };" >> $output_objdir/$libname.ver~
9401 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9402 fi
9403 ;;
9404 esac
9405 else
9406 ld_shlibs=no
9407 fi
9408 ;;
9409
9410 netbsd*)
9411 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9412 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9413 wlarc=
9414 else
9415 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9416 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9417 fi
9418 ;;
9419
9420 solaris*)
9421 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9422 ld_shlibs=no
9423 cat <<_LT_EOF 1>&2
9424
9425*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9426*** create shared libraries on Solaris systems. Therefore, libtool
9427*** is disabling shared libraries support. We urge you to upgrade GNU
9428*** binutils to release 2.9.1 or newer. Another option is to modify
9429*** your PATH or compiler configuration so that the native linker is
9430*** used, and then restart.
9431
9432_LT_EOF
9433 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9434 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9435 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9436 else
9437 ld_shlibs=no
9438 fi
9439 ;;
9440
9441 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9442 case `$LD -v 2>&1` in
9443 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9444 ld_shlibs=no
9445 cat <<_LT_EOF 1>&2
9446
9447*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9448*** reliably create shared libraries on SCO systems. Therefore, libtool
9449*** is disabling shared libraries support. We urge you to upgrade GNU
9450*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9451*** your PATH or compiler configuration so that the native linker is
9452*** used, and then restart.
9453
9454_LT_EOF
9455 ;;
9456 *)
9457 # For security reasons, it is highly recommended that you always
9458 # use absolute paths for naming shared libraries, and exclude the
9459 # DT_RUNPATH tag from executables and libraries. But doing so
9460 # requires that you compile everything twice, which is a pain.
9461 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9462 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9464 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9465 else
9466 ld_shlibs=no
9467 fi
9468 ;;
9469 esac
9470 ;;
9471
9472 sunos4*)
9473 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9474 wlarc=
9475 hardcode_direct=yes
9476 hardcode_shlibpath_var=no
9477 ;;
9478
9479 *)
9480 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9482 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9483 else
9484 ld_shlibs=no
9485 fi
9486 ;;
9487 esac
9488
9489 if test "$ld_shlibs" = no; then
9490 runpath_var=
9491 hardcode_libdir_flag_spec=
9492 export_dynamic_flag_spec=
9493 whole_archive_flag_spec=
9494 fi
9495 else
9496 # PORTME fill in a description of your system's linker (not GNU ld)
9497 case $host_os in
9498 aix3*)
9499 allow_undefined_flag=unsupported
9500 always_export_symbols=yes
9501 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'
9502 # Note: this linker hardcodes the directories in LIBPATH if there
9503 # are no directories specified by -L.
9504 hardcode_minus_L=yes
9505 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9506 # Neither direct hardcoding nor static linking is supported with a
9507 # broken collect2.
9508 hardcode_direct=unsupported
9509 fi
9510 ;;
9511
9512 aix[4-9]*)
9513 if test "$host_cpu" = ia64; then
9514 # On IA64, the linker does run time linking by default, so we don't
9515 # have to do anything special.
9516 aix_use_runtimelinking=no
9517 exp_sym_flag='-Bexport'
9518 no_entry_flag=""
9519 else
9520 # If we're using GNU nm, then we don't want the "-C" option.
9521 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9522 # Also, AIX nm treats weak defined symbols like other global
9523 # defined symbols, whereas GNU nm marks them as "W".
9524 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9525 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'
9526 else
9527 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'
9528 fi
9529 aix_use_runtimelinking=no
9530
9531 # Test if we are trying to use run time linking or normal
9532 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9533 # need to do runtime linking.
9534 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9535 for ld_flag in $LDFLAGS; do
9536 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9537 aix_use_runtimelinking=yes
9538 break
9539 fi
9540 done
9541 ;;
9542 esac
9543
9544 exp_sym_flag='-bexport'
9545 no_entry_flag='-bnoentry'
9546 fi
9547
9548 # When large executables or shared objects are built, AIX ld can
9549 # have problems creating the table of contents. If linking a library
9550 # or program results in "error TOC overflow" add -mminimal-toc to
9551 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9552 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9553
9554 archive_cmds=''
9555 hardcode_direct=yes
9556 hardcode_direct_absolute=yes
9557 hardcode_libdir_separator=':'
9558 link_all_deplibs=yes
9559 file_list_spec='${wl}-f,'
9560
9561 if test "$GCC" = yes; then
9562 case $host_os in aix4.[012]|aix4.[012].*)
9563 # We only want to do this on AIX 4.2 and lower, the check
9564 # below for broken collect2 doesn't work under 4.3+
9565 collect2name=`${CC} -print-prog-name=collect2`
9566 if test -f "$collect2name" &&
9567 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9568 then
9569 # We have reworked collect2
9570 :
9571 else
9572 # We have old collect2
9573 hardcode_direct=unsupported
9574 # It fails to find uninstalled libraries when the uninstalled
9575 # path is not listed in the libpath. Setting hardcode_minus_L
9576 # to unsupported forces relinking
9577 hardcode_minus_L=yes
9578 hardcode_libdir_flag_spec='-L$libdir'
9579 hardcode_libdir_separator=
9580 fi
9581 ;;
9582 esac
9583 shared_flag='-shared'
9584 if test "$aix_use_runtimelinking" = yes; then
9585 shared_flag="$shared_flag "'${wl}-G'
9586 fi
9587 else
9588 # not using gcc
9589 if test "$host_cpu" = ia64; then
9590 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9591 # chokes on -Wl,-G. The following line is correct:
9592 shared_flag='-G'
9593 else
9594 if test "$aix_use_runtimelinking" = yes; then
9595 shared_flag='${wl}-G'
9596 else
9597 shared_flag='${wl}-bM:SRE'
9598 fi
9599 fi
9600 fi
9601
9602 export_dynamic_flag_spec='${wl}-bexpall'
9603 # It seems that -bexpall does not export symbols beginning with
9604 # underscore (_), so it is better to generate a list of symbols to export.
9605 always_export_symbols=yes
9606 if test "$aix_use_runtimelinking" = yes; then
9607 # Warning - without using the other runtime loading flags (-brtl),
9608 # -berok will link without error, but may produce a broken library.
9609 allow_undefined_flag='-berok'
9610 # Determine the default libpath from the value encoded in an
9611 # empty executable.
9612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613/* end confdefs.h. */
9614
9615int
9616main ()
9617{
9618
9619 ;
9620 return 0;
9621}
9622_ACEOF
9623if ac_fn_c_try_link "$LINENO"; then :
9624
9625lt_aix_libpath_sed='
9626 /Import File Strings/,/^$/ {
9627 /^0/ {
9628 s/^0 *\(.*\)$/\1/
9629 p
9630 }
9631 }'
9632aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9633# Check for a 64-bit object if we didn't find anything.
9634if test -z "$aix_libpath"; then
9635 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9636fi
9637fi
9638rm -f core conftest.err conftest.$ac_objext \
9639 conftest$ac_exeext conftest.$ac_ext
9640if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9641
9642 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9643 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"
9644 else
9645 if test "$host_cpu" = ia64; then
9646 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9647 allow_undefined_flag="-z nodefs"
9648 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"
9649 else
9650 # Determine the default libpath from the value encoded in an
9651 # empty executable.
9652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653/* end confdefs.h. */
9654
9655int
9656main ()
9657{
9658
9659 ;
9660 return 0;
9661}
9662_ACEOF
9663if ac_fn_c_try_link "$LINENO"; then :
9664
9665lt_aix_libpath_sed='
9666 /Import File Strings/,/^$/ {
9667 /^0/ {
9668 s/^0 *\(.*\)$/\1/
9669 p
9670 }
9671 }'
9672aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9673# Check for a 64-bit object if we didn't find anything.
9674if test -z "$aix_libpath"; then
9675 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9676fi
9677fi
9678rm -f core conftest.err conftest.$ac_objext \
9679 conftest$ac_exeext conftest.$ac_ext
9680if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9681
9682 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9683 # Warning - without using the other run time loading flags,
9684 # -berok will link without error, but may produce a broken library.
9685 no_undefined_flag=' ${wl}-bernotok'
9686 allow_undefined_flag=' ${wl}-berok'
9687 if test "$with_gnu_ld" = yes; then
9688 # We only use this code for GNU lds that support --whole-archive.
9689 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9690 else
9691 # Exported symbols can be pulled into shared objects from archives
9692 whole_archive_flag_spec='$convenience'
9693 fi
9694 archive_cmds_need_lc=yes
9695 # This is similar to how AIX traditionally builds its shared libraries.
9696 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'
9697 fi
9698 fi
9699 ;;
9700
9701 amigaos*)
9702 case $host_cpu in
9703 powerpc)
9704 # see comment about AmigaOS4 .so support
9705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9706 archive_expsym_cmds=''
9707 ;;
9708 m68k)
9709 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)'
9710 hardcode_libdir_flag_spec='-L$libdir'
9711 hardcode_minus_L=yes
9712 ;;
9713 esac
9714 ;;
9715
9716 bsdi[45]*)
9717 export_dynamic_flag_spec=-rdynamic
9718 ;;
9719
9720 cygwin* | mingw* | pw32* | cegcc*)
9721 # When not using gcc, we currently assume that we are using
9722 # Microsoft Visual C++.
9723 # hardcode_libdir_flag_spec is actually meaningless, as there is
9724 # no search path for DLLs.
9725 hardcode_libdir_flag_spec=' '
9726 allow_undefined_flag=unsupported
9727 # Tell ltmain to make .lib files, not .a files.
9728 libext=lib
9729 # Tell ltmain to make .dll files, not .so files.
9730 shrext_cmds=".dll"
9731 # FIXME: Setting linknames here is a bad hack.
9732 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9733 # The linker will automatically build a .lib file if we build a DLL.
9734 old_archive_from_new_cmds='true'
9735 # FIXME: Should let the user specify the lib program.
9736 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9737 fix_srcfile_path='`cygpath -w "$srcfile"`'
9738 enable_shared_with_static_runtimes=yes
9739 ;;
9740
9741 darwin* | rhapsody*)
9742
9743
9744 archive_cmds_need_lc=no
9745 hardcode_direct=no
9746 hardcode_automatic=yes
9747 hardcode_shlibpath_var=unsupported
9748 if test "$lt_cv_ld_force_load" = "yes"; then
9749 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\"`'
9750 else
9751 whole_archive_flag_spec=''
9752 fi
9753 link_all_deplibs=yes
9754 allow_undefined_flag="$_lt_dar_allow_undefined"
9755 case $cc_basename in
9756 ifort*) _lt_dar_can_shared=yes ;;
9757 *) _lt_dar_can_shared=$GCC ;;
9758 esac
9759 if test "$_lt_dar_can_shared" = "yes"; then
9760 output_verbose_link_cmd=func_echo_all
9761 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9762 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9763 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}"
9764 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}"
9765
9766 else
9767 ld_shlibs=no
9768 fi
9769
9770 ;;
9771
9772 dgux*)
9773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9774 hardcode_libdir_flag_spec='-L$libdir'
9775 hardcode_shlibpath_var=no
9776 ;;
9777
9778 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9779 # support. Future versions do this automatically, but an explicit c++rt0.o
9780 # does not break anything, and helps significantly (at the cost of a little
9781 # extra space).
9782 freebsd2.2*)
9783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9784 hardcode_libdir_flag_spec='-R$libdir'
9785 hardcode_direct=yes
9786 hardcode_shlibpath_var=no
9787 ;;
9788
9789 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9790 freebsd2.*)
9791 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9792 hardcode_direct=yes
9793 hardcode_minus_L=yes
9794 hardcode_shlibpath_var=no
9795 ;;
9796
9797 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9798 freebsd* | dragonfly*)
9799 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9800 hardcode_libdir_flag_spec='-R$libdir'
9801 hardcode_direct=yes
9802 hardcode_shlibpath_var=no
9803 ;;
9804
9805 hpux9*)
9806 if test "$GCC" = yes; then
9807 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'
9808 else
9809 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'
9810 fi
9811 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9812 hardcode_libdir_separator=:
9813 hardcode_direct=yes
9814
9815 # hardcode_minus_L: Not really in the search PATH,
9816 # but as the default location of the library.
9817 hardcode_minus_L=yes
9818 export_dynamic_flag_spec='${wl}-E'
9819 ;;
9820
9821 hpux10*)
9822 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9823 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9824 else
9825 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9826 fi
9827 if test "$with_gnu_ld" = no; then
9828 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9829 hardcode_libdir_flag_spec_ld='+b $libdir'
9830 hardcode_libdir_separator=:
9831 hardcode_direct=yes
9832 hardcode_direct_absolute=yes
9833 export_dynamic_flag_spec='${wl}-E'
9834 # hardcode_minus_L: Not really in the search PATH,
9835 # but as the default location of the library.
9836 hardcode_minus_L=yes
9837 fi
9838 ;;
9839
9840 hpux11*)
9841 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9842 case $host_cpu in
9843 hppa*64*)
9844 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9845 ;;
9846 ia64*)
9847 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9848 ;;
9849 *)
9850 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9851 ;;
9852 esac
9853 else
9854 case $host_cpu in
9855 hppa*64*)
9856 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9857 ;;
9858 ia64*)
9859 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9860 ;;
9861 *)
9862
9863 # Older versions of the 11.00 compiler do not understand -b yet
9864 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9866$as_echo_n "checking if $CC understands -b... " >&6; }
9867if ${lt_cv_prog_compiler__b+:} false; then :
9868 $as_echo_n "(cached) " >&6
9869else
9870 lt_cv_prog_compiler__b=no
9871 save_LDFLAGS="$LDFLAGS"
9872 LDFLAGS="$LDFLAGS -b"
9873 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9874 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9875 # The linker can only warn and ignore the option if not recognized
9876 # So say no if there are warnings
9877 if test -s conftest.err; then
9878 # Append any errors to the config.log.
9879 cat conftest.err 1>&5
9880 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9881 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9882 if diff conftest.exp conftest.er2 >/dev/null; then
9883 lt_cv_prog_compiler__b=yes
9884 fi
9885 else
9886 lt_cv_prog_compiler__b=yes
9887 fi
9888 fi
9889 $RM -r conftest*
9890 LDFLAGS="$save_LDFLAGS"
9891
9892fi
9893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9894$as_echo "$lt_cv_prog_compiler__b" >&6; }
9895
9896if test x"$lt_cv_prog_compiler__b" = xyes; then
9897 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9898else
9899 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9900fi
9901
9902 ;;
9903 esac
9904 fi
9905 if test "$with_gnu_ld" = no; then
9906 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9907 hardcode_libdir_separator=:
9908
9909 case $host_cpu in
9910 hppa*64*|ia64*)
9911 hardcode_direct=no
9912 hardcode_shlibpath_var=no
9913 ;;
9914 *)
9915 hardcode_direct=yes
9916 hardcode_direct_absolute=yes
9917 export_dynamic_flag_spec='${wl}-E'
9918
9919 # hardcode_minus_L: Not really in the search PATH,
9920 # but as the default location of the library.
9921 hardcode_minus_L=yes
9922 ;;
9923 esac
9924 fi
9925 ;;
9926
9927 irix5* | irix6* | nonstopux*)
9928 if test "$GCC" = yes; then
9929 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'
9930 # Try to use the -exported_symbol ld option, if it does not
9931 # work, assume that -exports_file does not work either and
9932 # implicitly export all symbols.
9933 save_LDFLAGS="$LDFLAGS"
9934 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936/* end confdefs.h. */
9937int foo(void) {}
9938_ACEOF
9939if ac_fn_c_try_link "$LINENO"; then :
9940 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'
9941
9942fi
9943rm -f core conftest.err conftest.$ac_objext \
9944 conftest$ac_exeext conftest.$ac_ext
9945 LDFLAGS="$save_LDFLAGS"
9946 else
9947 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'
9948 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'
9949 fi
9950 archive_cmds_need_lc='no'
9951 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9952 hardcode_libdir_separator=:
9953 inherit_rpath=yes
9954 link_all_deplibs=yes
9955 ;;
9956
9957 netbsd*)
9958 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9959 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9960 else
9961 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9962 fi
9963 hardcode_libdir_flag_spec='-R$libdir'
9964 hardcode_direct=yes
9965 hardcode_shlibpath_var=no
9966 ;;
9967
9968 newsos6)
9969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9970 hardcode_direct=yes
9971 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9972 hardcode_libdir_separator=:
9973 hardcode_shlibpath_var=no
9974 ;;
9975
9976 *nto* | *qnx*)
9977 ;;
9978
9979 openbsd*)
9980 if test -f /usr/libexec/ld.so; then
9981 hardcode_direct=yes
9982 hardcode_shlibpath_var=no
9983 hardcode_direct_absolute=yes
9984 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9985 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9986 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9987 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9988 export_dynamic_flag_spec='${wl}-E'
9989 else
9990 case $host_os in
9991 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9992 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9993 hardcode_libdir_flag_spec='-R$libdir'
9994 ;;
9995 *)
9996 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9997 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9998 ;;
9999 esac
10000 fi
10001 else
10002 ld_shlibs=no
10003 fi
10004 ;;
10005
10006 os2*)
10007 hardcode_libdir_flag_spec='-L$libdir'
10008 hardcode_minus_L=yes
10009 allow_undefined_flag=unsupported
10010 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'
10011 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10012 ;;
10013
10014 osf3*)
10015 if test "$GCC" = yes; then
10016 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10017 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'
10018 else
10019 allow_undefined_flag=' -expect_unresolved \*'
10020 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'
10021 fi
10022 archive_cmds_need_lc='no'
10023 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10024 hardcode_libdir_separator=:
10025 ;;
10026
10027 osf4* | osf5*) # as osf3* with the addition of -msym flag
10028 if test "$GCC" = yes; then
10029 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10030 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'
10031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10032 else
10033 allow_undefined_flag=' -expect_unresolved \*'
10034 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'
10035 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~
10036 $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'
10037
10038 # Both c and cxx compiler support -rpath directly
10039 hardcode_libdir_flag_spec='-rpath $libdir'
10040 fi
10041 archive_cmds_need_lc='no'
10042 hardcode_libdir_separator=:
10043 ;;
10044
10045 solaris*)
10046 no_undefined_flag=' -z defs'
10047 if test "$GCC" = yes; then
10048 wlarc='${wl}'
10049 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10050 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10051 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10052 else
10053 case `$CC -V 2>&1` in
10054 *"Compilers 5.0"*)
10055 wlarc=''
10056 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10057 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10058 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10059 ;;
10060 *)
10061 wlarc='${wl}'
10062 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10063 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10064 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10065 ;;
10066 esac
10067 fi
10068 hardcode_libdir_flag_spec='-R$libdir'
10069 hardcode_shlibpath_var=no
10070 case $host_os in
10071 solaris2.[0-5] | solaris2.[0-5].*) ;;
10072 *)
10073 # The compiler driver will combine and reorder linker options,
10074 # but understands `-z linker_flag'. GCC discards it without `$wl',
10075 # but is careful enough not to reorder.
10076 # Supported since Solaris 2.6 (maybe 2.5.1?)
10077 if test "$GCC" = yes; then
10078 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10079 else
10080 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10081 fi
10082 ;;
10083 esac
10084 link_all_deplibs=yes
10085 ;;
10086
10087 sunos4*)
10088 if test "x$host_vendor" = xsequent; then
10089 # Use $CC to link under sequent, because it throws in some extra .o
10090 # files that make .init and .fini sections work.
10091 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10092 else
10093 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10094 fi
10095 hardcode_libdir_flag_spec='-L$libdir'
10096 hardcode_direct=yes
10097 hardcode_minus_L=yes
10098 hardcode_shlibpath_var=no
10099 ;;
10100
10101 sysv4)
10102 case $host_vendor in
10103 sni)
10104 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10105 hardcode_direct=yes # is this really true???
10106 ;;
10107 siemens)
10108 ## LD is ld it makes a PLAMLIB
10109 ## CC just makes a GrossModule.
10110 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10111 reload_cmds='$CC -r -o $output$reload_objs'
10112 hardcode_direct=no
10113 ;;
10114 motorola)
10115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10116 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10117 ;;
10118 esac
10119 runpath_var='LD_RUN_PATH'
10120 hardcode_shlibpath_var=no
10121 ;;
10122
10123 sysv4.3*)
10124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10125 hardcode_shlibpath_var=no
10126 export_dynamic_flag_spec='-Bexport'
10127 ;;
10128
10129 sysv4*MP*)
10130 if test -d /usr/nec; then
10131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10132 hardcode_shlibpath_var=no
10133 runpath_var=LD_RUN_PATH
10134 hardcode_runpath_var=yes
10135 ld_shlibs=yes
10136 fi
10137 ;;
10138
10139 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10140 no_undefined_flag='${wl}-z,text'
10141 archive_cmds_need_lc=no
10142 hardcode_shlibpath_var=no
10143 runpath_var='LD_RUN_PATH'
10144
10145 if test "$GCC" = yes; then
10146 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10147 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10148 else
10149 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10150 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10151 fi
10152 ;;
10153
10154 sysv5* | sco3.2v5* | sco5v6*)
10155 # Note: We can NOT use -z defs as we might desire, because we do not
10156 # link with -lc, and that would cause any symbols used from libc to
10157 # always be unresolved, which means just about no library would
10158 # ever link correctly. If we're not using GNU ld we use -z text
10159 # though, which does catch some bad symbols but isn't as heavy-handed
10160 # as -z defs.
10161 no_undefined_flag='${wl}-z,text'
10162 allow_undefined_flag='${wl}-z,nodefs'
10163 archive_cmds_need_lc=no
10164 hardcode_shlibpath_var=no
10165 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10166 hardcode_libdir_separator=':'
10167 link_all_deplibs=yes
10168 export_dynamic_flag_spec='${wl}-Bexport'
10169 runpath_var='LD_RUN_PATH'
10170
10171 if test "$GCC" = yes; then
10172 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10173 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10174 else
10175 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10176 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10177 fi
10178 ;;
10179
10180 uts4*)
10181 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10182 hardcode_libdir_flag_spec='-L$libdir'
10183 hardcode_shlibpath_var=no
10184 ;;
10185
10186 *)
10187 ld_shlibs=no
10188 ;;
10189 esac
10190
10191 if test x$host_vendor = xsni; then
10192 case $host in
10193 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10194 export_dynamic_flag_spec='${wl}-Blargedynsym'
10195 ;;
10196 esac
10197 fi
10198 fi
10199
10200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10201$as_echo "$ld_shlibs" >&6; }
10202test "$ld_shlibs" = no && can_build_shared=no
10203
10204with_gnu_ld=$with_gnu_ld
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220#
10221# Do we need to explicitly link libc?
10222#
10223case "x$archive_cmds_need_lc" in
10224x|xyes)
10225 # Assume -lc should be added
10226 archive_cmds_need_lc=yes
10227
10228 if test "$enable_shared" = yes && test "$GCC" = yes; then
10229 case $archive_cmds in
10230 *'~'*)
10231 # FIXME: we may have to deal with multi-command sequences.
10232 ;;
10233 '$CC '*)
10234 # Test whether the compiler implicitly links with -lc since on some
10235 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10236 # to ld, don't add -lc before -lgcc.
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10238$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10239if ${lt_cv_archive_cmds_need_lc+:} false; then :
10240 $as_echo_n "(cached) " >&6
10241else
10242 $RM conftest*
10243 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10244
10245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10246 (eval $ac_compile) 2>&5
10247 ac_status=$?
10248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10249 test $ac_status = 0; } 2>conftest.err; then
10250 soname=conftest
10251 lib=conftest
10252 libobjs=conftest.$ac_objext
10253 deplibs=
10254 wl=$lt_prog_compiler_wl
10255 pic_flag=$lt_prog_compiler_pic
10256 compiler_flags=-v
10257 linker_flags=-v
10258 verstring=
10259 output_objdir=.
10260 libname=conftest
10261 lt_save_allow_undefined_flag=$allow_undefined_flag
10262 allow_undefined_flag=
10263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10264 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10265 ac_status=$?
10266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10267 test $ac_status = 0; }
10268 then
10269 lt_cv_archive_cmds_need_lc=no
10270 else
10271 lt_cv_archive_cmds_need_lc=yes
10272 fi
10273 allow_undefined_flag=$lt_save_allow_undefined_flag
10274 else
10275 cat conftest.err 1>&5
10276 fi
10277 $RM conftest*
10278
10279fi
10280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10281$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10282 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10283 ;;
10284 esac
10285 fi
10286 ;;
10287esac
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10446$as_echo_n "checking dynamic linker characteristics... " >&6; }
10447
10448if test "$GCC" = yes; then
10449 case $host_os in
10450 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10451 *) lt_awk_arg="/^libraries:/" ;;
10452 esac
10453 case $host_os in
10454 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10455 *) lt_sed_strip_eq="s,=/,/,g" ;;
10456 esac
10457 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10458 case $lt_search_path_spec in
10459 *\;*)
10460 # if the path contains ";" then we assume it to be the separator
10461 # otherwise default to the standard path separator (i.e. ":") - it is
10462 # assumed that no part of a normal pathname contains ";" but that should
10463 # okay in the real world where ";" in dirpaths is itself problematic.
10464 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10465 ;;
10466 *)
10467 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10468 ;;
10469 esac
10470 # Ok, now we have the path, separated by spaces, we can step through it
10471 # and add multilib dir if necessary.
10472 lt_tmp_lt_search_path_spec=
10473 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10474 for lt_sys_path in $lt_search_path_spec; do
10475 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10476 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10477 else
10478 test -d "$lt_sys_path" && \
10479 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10480 fi
10481 done
10482 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10483BEGIN {RS=" "; FS="/|\n";} {
10484 lt_foo="";
10485 lt_count=0;
10486 for (lt_i = NF; lt_i > 0; lt_i--) {
10487 if ($lt_i != "" && $lt_i != ".") {
10488 if ($lt_i == "..") {
10489 lt_count++;
10490 } else {
10491 if (lt_count == 0) {
10492 lt_foo="/" $lt_i lt_foo;
10493 } else {
10494 lt_count--;
10495 }
10496 }
10497 }
10498 }
10499 if (lt_foo != "") { lt_freq[lt_foo]++; }
10500 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10501}'`
10502 # AWK program above erroneously prepends '/' to C:/dos/paths
10503 # for these hosts.
10504 case $host_os in
10505 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10506 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10507 esac
10508 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10509else
10510 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10511fi
10512library_names_spec=
10513libname_spec='lib$name'
10514soname_spec=
10515shrext_cmds=".so"
10516postinstall_cmds=
10517postuninstall_cmds=
10518finish_cmds=
10519finish_eval=
10520shlibpath_var=
10521shlibpath_overrides_runpath=unknown
10522version_type=none
10523dynamic_linker="$host_os ld.so"
10524sys_lib_dlsearch_path_spec="/lib /usr/lib"
10525need_lib_prefix=unknown
10526hardcode_into_libs=no
10527
10528# when you set need_version to no, make sure it does not cause -set_version
10529# flags to be left without arguments
10530need_version=unknown
10531
10532case $host_os in
10533aix3*)
10534 version_type=linux
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10536 shlibpath_var=LIBPATH
10537
10538 # AIX 3 has no versioning support, so we append a major version to the name.
10539 soname_spec='${libname}${release}${shared_ext}$major'
10540 ;;
10541
10542aix[4-9]*)
10543 version_type=linux
10544 need_lib_prefix=no
10545 need_version=no
10546 hardcode_into_libs=yes
10547 if test "$host_cpu" = ia64; then
10548 # AIX 5 supports IA64
10549 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10550 shlibpath_var=LD_LIBRARY_PATH
10551 else
10552 # With GCC up to 2.95.x, collect2 would create an import file
10553 # for dependence libraries. The import file would start with
10554 # the line `#! .'. This would cause the generated library to
10555 # depend on `.', always an invalid library. This was fixed in
10556 # development snapshots of GCC prior to 3.0.
10557 case $host_os in
10558 aix4 | aix4.[01] | aix4.[01].*)
10559 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10560 echo ' yes '
10561 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10562 :
10563 else
10564 can_build_shared=no
10565 fi
10566 ;;
10567 esac
10568 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10569 # soname into executable. Probably we can add versioning support to
10570 # collect2, so additional links can be useful in future.
10571 if test "$aix_use_runtimelinking" = yes; then
10572 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10573 # instead of lib<name>.a to let people know that these are not
10574 # typical AIX shared libraries.
10575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10576 else
10577 # We preserve .a as extension for shared libraries through AIX4.2
10578 # and later when we are not doing run time linking.
10579 library_names_spec='${libname}${release}.a $libname.a'
10580 soname_spec='${libname}${release}${shared_ext}$major'
10581 fi
10582 shlibpath_var=LIBPATH
10583 fi
10584 ;;
10585
10586amigaos*)
10587 case $host_cpu in
10588 powerpc)
10589 # Since July 2007 AmigaOS4 officially supports .so libraries.
10590 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592 ;;
10593 m68k)
10594 library_names_spec='$libname.ixlibrary $libname.a'
10595 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10596 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'
10597 ;;
10598 esac
10599 ;;
10600
10601beos*)
10602 library_names_spec='${libname}${shared_ext}'
10603 dynamic_linker="$host_os ld.so"
10604 shlibpath_var=LIBRARY_PATH
10605 ;;
10606
10607bsdi[45]*)
10608 version_type=linux
10609 need_version=no
10610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10611 soname_spec='${libname}${release}${shared_ext}$major'
10612 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10613 shlibpath_var=LD_LIBRARY_PATH
10614 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10615 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10616 # the default ld.so.conf also contains /usr/contrib/lib and
10617 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10618 # libtool to hard-code these into programs
10619 ;;
10620
10621cygwin* | mingw* | pw32* | cegcc*)
10622 version_type=windows
10623 shrext_cmds=".dll"
10624 need_version=no
10625 need_lib_prefix=no
10626
10627 case $GCC,$host_os in
10628 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10629 library_names_spec='$libname.dll.a'
10630 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10631 postinstall_cmds='base_file=`basename \${file}`~
10632 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10633 dldir=$destdir/`dirname \$dlpath`~
10634 test -d \$dldir || mkdir -p \$dldir~
10635 $install_prog $dir/$dlname \$dldir/$dlname~
10636 chmod a+x \$dldir/$dlname~
10637 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10638 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10639 fi'
10640 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10641 dlpath=$dir/\$dldll~
10642 $RM \$dlpath'
10643 shlibpath_overrides_runpath=yes
10644
10645 case $host_os in
10646 cygwin*)
10647 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10648 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10649
10650 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10651 ;;
10652 mingw* | cegcc*)
10653 # MinGW DLLs use traditional 'lib' prefix
10654 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10655 ;;
10656 pw32*)
10657 # pw32 DLLs use 'pw' prefix rather than 'lib'
10658 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10659 ;;
10660 esac
10661 ;;
10662
10663 *)
10664 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10665 ;;
10666 esac
10667 dynamic_linker='Win32 ld.exe'
10668 # FIXME: first we should search . and the directory the executable is in
10669 shlibpath_var=PATH
10670 ;;
10671
10672darwin* | rhapsody*)
10673 dynamic_linker="$host_os dyld"
10674 version_type=darwin
10675 need_lib_prefix=no
10676 need_version=no
10677 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10678 soname_spec='${libname}${release}${major}$shared_ext'
10679 shlibpath_overrides_runpath=yes
10680 shlibpath_var=DYLD_LIBRARY_PATH
10681 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10682
10683 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10684 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10685 ;;
10686
10687dgux*)
10688 version_type=linux
10689 need_lib_prefix=no
10690 need_version=no
10691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10692 soname_spec='${libname}${release}${shared_ext}$major'
10693 shlibpath_var=LD_LIBRARY_PATH
10694 ;;
10695
10696freebsd* | dragonfly*)
10697 # DragonFly does not have aout. When/if they implement a new
10698 # versioning mechanism, adjust this.
10699 if test -x /usr/bin/objformat; then
10700 objformat=`/usr/bin/objformat`
10701 else
10702 case $host_os in
10703 freebsd[23].*) objformat=aout ;;
10704 *) objformat=elf ;;
10705 esac
10706 fi
10707 version_type=freebsd-$objformat
10708 case $version_type in
10709 freebsd-elf*)
10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10711 need_version=no
10712 need_lib_prefix=no
10713 ;;
10714 freebsd-*)
10715 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10716 need_version=yes
10717 ;;
10718 esac
10719 shlibpath_var=LD_LIBRARY_PATH
10720 case $host_os in
10721 freebsd2.*)
10722 shlibpath_overrides_runpath=yes
10723 ;;
10724 freebsd3.[01]* | freebsdelf3.[01]*)
10725 shlibpath_overrides_runpath=yes
10726 hardcode_into_libs=yes
10727 ;;
10728 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10729 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10730 shlibpath_overrides_runpath=no
10731 hardcode_into_libs=yes
10732 ;;
10733 *) # from 4.6 on, and DragonFly
10734 shlibpath_overrides_runpath=yes
10735 hardcode_into_libs=yes
10736 ;;
10737 esac
10738 ;;
10739
87279e3c
NA
10740haiku*)
10741 version_type=linux
10742 need_lib_prefix=no
10743 need_version=no
10744 dynamic_linker="$host_os runtime_loader"
10745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10746 soname_spec='${libname}${release}${shared_ext}$major'
10747 shlibpath_var=LIBRARY_PATH
10748 shlibpath_overrides_runpath=yes
10749 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10750 hardcode_into_libs=yes
10751 ;;
10752
10753hpux9* | hpux10* | hpux11*)
10754 # Give a soname corresponding to the major version so that dld.sl refuses to
10755 # link against other versions.
10756 version_type=sunos
10757 need_lib_prefix=no
10758 need_version=no
10759 case $host_cpu in
10760 ia64*)
10761 shrext_cmds='.so'
10762 hardcode_into_libs=yes
10763 dynamic_linker="$host_os dld.so"
10764 shlibpath_var=LD_LIBRARY_PATH
10765 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10767 soname_spec='${libname}${release}${shared_ext}$major'
10768 if test "X$HPUX_IA64_MODE" = X32; then
10769 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10770 else
10771 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10772 fi
10773 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10774 ;;
10775 hppa*64*)
10776 shrext_cmds='.sl'
10777 hardcode_into_libs=yes
10778 dynamic_linker="$host_os dld.sl"
10779 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10780 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10782 soname_spec='${libname}${release}${shared_ext}$major'
10783 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10784 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10785 ;;
10786 *)
10787 shrext_cmds='.sl'
10788 dynamic_linker="$host_os dld.sl"
10789 shlibpath_var=SHLIB_PATH
10790 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10792 soname_spec='${libname}${release}${shared_ext}$major'
10793 ;;
10794 esac
10795 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10796 postinstall_cmds='chmod 555 $lib'
10797 # or fails outright, so override atomically:
10798 install_override_mode=555
10799 ;;
10800
10801interix[3-9]*)
10802 version_type=linux
10803 need_lib_prefix=no
10804 need_version=no
10805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10806 soname_spec='${libname}${release}${shared_ext}$major'
10807 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10808 shlibpath_var=LD_LIBRARY_PATH
10809 shlibpath_overrides_runpath=no
10810 hardcode_into_libs=yes
10811 ;;
10812
10813irix5* | irix6* | nonstopux*)
10814 case $host_os in
10815 nonstopux*) version_type=nonstopux ;;
10816 *)
10817 if test "$lt_cv_prog_gnu_ld" = yes; then
10818 version_type=linux
10819 else
10820 version_type=irix
10821 fi ;;
10822 esac
10823 need_lib_prefix=no
10824 need_version=no
10825 soname_spec='${libname}${release}${shared_ext}$major'
10826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10827 case $host_os in
10828 irix5* | nonstopux*)
10829 libsuff= shlibsuff=
10830 ;;
10831 *)
10832 case $LD in # libtool.m4 will add one of these switches to LD
10833 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10834 libsuff= shlibsuff= libmagic=32-bit;;
10835 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10836 libsuff=32 shlibsuff=N32 libmagic=N32;;
10837 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10838 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10839 *) libsuff= shlibsuff= libmagic=never-match;;
10840 esac
10841 ;;
10842 esac
10843 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10844 shlibpath_overrides_runpath=no
10845 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10846 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10847 hardcode_into_libs=yes
10848 ;;
10849
10850# No shared lib support for Linux oldld, aout, or coff.
10851linux*oldld* | linux*aout* | linux*coff*)
10852 dynamic_linker=no
10853 ;;
10854
10855# This must be Linux ELF.
f4782128 10856linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
87279e3c
NA
10857 version_type=linux
10858 need_lib_prefix=no
10859 need_version=no
10860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10861 soname_spec='${libname}${release}${shared_ext}$major'
10862 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10863 shlibpath_var=LD_LIBRARY_PATH
10864 shlibpath_overrides_runpath=no
10865
10866 # Some binutils ld are patched to set DT_RUNPATH
10867 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10868 $as_echo_n "(cached) " >&6
10869else
10870 lt_cv_shlibpath_overrides_runpath=no
10871 save_LDFLAGS=$LDFLAGS
10872 save_libdir=$libdir
10873 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10874 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10876/* end confdefs.h. */
10877
10878int
10879main ()
10880{
10881
10882 ;
10883 return 0;
10884}
10885_ACEOF
10886if ac_fn_c_try_link "$LINENO"; then :
10887 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10888 lt_cv_shlibpath_overrides_runpath=yes
10889fi
10890fi
10891rm -f core conftest.err conftest.$ac_objext \
10892 conftest$ac_exeext conftest.$ac_ext
10893 LDFLAGS=$save_LDFLAGS
10894 libdir=$save_libdir
10895
10896fi
10897
10898 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10899
10900 # This implies no fast_install, which is unacceptable.
10901 # Some rework will be needed to allow for fast_install
10902 # before this can be enabled.
10903 hardcode_into_libs=yes
10904
10905 # Append ld.so.conf contents to the search path
10906 if test -f /etc/ld.so.conf; then
10907 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' ' '`
10908 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10909 fi
10910
10911 # We used to test for /lib/ld.so.1 and disable shared libraries on
10912 # powerpc, because MkLinux only supported shared libraries with the
10913 # GNU dynamic linker. Since this was broken with cross compilers,
10914 # most powerpc-linux boxes support dynamic linking these days and
10915 # people can always --disable-shared, the test was removed, and we
10916 # assume the GNU/Linux dynamic linker is in use.
10917 dynamic_linker='GNU/Linux ld.so'
10918 ;;
10919
10920netbsd*)
10921 version_type=sunos
10922 need_lib_prefix=no
10923 need_version=no
10924 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10927 dynamic_linker='NetBSD (a.out) ld.so'
10928 else
10929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10930 soname_spec='${libname}${release}${shared_ext}$major'
10931 dynamic_linker='NetBSD ld.elf_so'
10932 fi
10933 shlibpath_var=LD_LIBRARY_PATH
10934 shlibpath_overrides_runpath=yes
10935 hardcode_into_libs=yes
10936 ;;
10937
10938newsos6)
10939 version_type=linux
10940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10941 shlibpath_var=LD_LIBRARY_PATH
10942 shlibpath_overrides_runpath=yes
10943 ;;
10944
10945*nto* | *qnx*)
10946 version_type=qnx
10947 need_lib_prefix=no
10948 need_version=no
10949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10950 soname_spec='${libname}${release}${shared_ext}$major'
10951 shlibpath_var=LD_LIBRARY_PATH
10952 shlibpath_overrides_runpath=no
10953 hardcode_into_libs=yes
10954 dynamic_linker='ldqnx.so'
10955 ;;
10956
10957openbsd*)
10958 version_type=sunos
10959 sys_lib_dlsearch_path_spec="/usr/lib"
10960 need_lib_prefix=no
10961 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10962 case $host_os in
10963 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10964 *) need_version=no ;;
10965 esac
10966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10968 shlibpath_var=LD_LIBRARY_PATH
10969 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10970 case $host_os in
10971 openbsd2.[89] | openbsd2.[89].*)
10972 shlibpath_overrides_runpath=no
10973 ;;
10974 *)
10975 shlibpath_overrides_runpath=yes
10976 ;;
10977 esac
10978 else
10979 shlibpath_overrides_runpath=yes
10980 fi
10981 ;;
10982
10983os2*)
10984 libname_spec='$name'
10985 shrext_cmds=".dll"
10986 need_lib_prefix=no
10987 library_names_spec='$libname${shared_ext} $libname.a'
10988 dynamic_linker='OS/2 ld.exe'
10989 shlibpath_var=LIBPATH
10990 ;;
10991
10992osf3* | osf4* | osf5*)
10993 version_type=osf
10994 need_lib_prefix=no
10995 need_version=no
10996 soname_spec='${libname}${release}${shared_ext}$major'
10997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10998 shlibpath_var=LD_LIBRARY_PATH
10999 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11000 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11001 ;;
11002
11003rdos*)
11004 dynamic_linker=no
11005 ;;
11006
11007solaris*)
11008 version_type=linux
11009 need_lib_prefix=no
11010 need_version=no
11011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11012 soname_spec='${libname}${release}${shared_ext}$major'
11013 shlibpath_var=LD_LIBRARY_PATH
11014 shlibpath_overrides_runpath=yes
11015 hardcode_into_libs=yes
11016 # ldd complains unless libraries are executable
11017 postinstall_cmds='chmod +x $lib'
11018 ;;
11019
11020sunos4*)
11021 version_type=sunos
11022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11023 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11024 shlibpath_var=LD_LIBRARY_PATH
11025 shlibpath_overrides_runpath=yes
11026 if test "$with_gnu_ld" = yes; then
11027 need_lib_prefix=no
11028 fi
11029 need_version=yes
11030 ;;
11031
11032sysv4 | sysv4.3*)
11033 version_type=linux
11034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11035 soname_spec='${libname}${release}${shared_ext}$major'
11036 shlibpath_var=LD_LIBRARY_PATH
11037 case $host_vendor in
11038 sni)
11039 shlibpath_overrides_runpath=no
11040 need_lib_prefix=no
11041 runpath_var=LD_RUN_PATH
11042 ;;
11043 siemens)
11044 need_lib_prefix=no
11045 ;;
11046 motorola)
11047 need_lib_prefix=no
11048 need_version=no
11049 shlibpath_overrides_runpath=no
11050 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11051 ;;
11052 esac
11053 ;;
11054
11055sysv4*MP*)
11056 if test -d /usr/nec ;then
11057 version_type=linux
11058 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11059 soname_spec='$libname${shared_ext}.$major'
11060 shlibpath_var=LD_LIBRARY_PATH
11061 fi
11062 ;;
11063
11064sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11065 version_type=freebsd-elf
11066 need_lib_prefix=no
11067 need_version=no
11068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11069 soname_spec='${libname}${release}${shared_ext}$major'
11070 shlibpath_var=LD_LIBRARY_PATH
11071 shlibpath_overrides_runpath=yes
11072 hardcode_into_libs=yes
11073 if test "$with_gnu_ld" = yes; then
11074 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11075 else
11076 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11077 case $host_os in
11078 sco3.2v5*)
11079 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11080 ;;
11081 esac
11082 fi
11083 sys_lib_dlsearch_path_spec='/usr/lib'
11084 ;;
11085
11086tpf*)
11087 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11088 version_type=linux
11089 need_lib_prefix=no
11090 need_version=no
11091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11092 shlibpath_var=LD_LIBRARY_PATH
11093 shlibpath_overrides_runpath=no
11094 hardcode_into_libs=yes
11095 ;;
11096
11097uts4*)
11098 version_type=linux
11099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11100 soname_spec='${libname}${release}${shared_ext}$major'
11101 shlibpath_var=LD_LIBRARY_PATH
11102 ;;
11103
11104*)
11105 dynamic_linker=no
11106 ;;
11107esac
11108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11109$as_echo "$dynamic_linker" >&6; }
11110test "$dynamic_linker" = no && can_build_shared=no
11111
11112variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11113if test "$GCC" = yes; then
11114 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11115fi
11116
11117if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11118 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11119fi
11120if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11121 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11122fi
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11216$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11217hardcode_action=
11218if test -n "$hardcode_libdir_flag_spec" ||
11219 test -n "$runpath_var" ||
11220 test "X$hardcode_automatic" = "Xyes" ; then
11221
11222 # We can hardcode non-existent directories.
11223 if test "$hardcode_direct" != no &&
11224 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11225 # have to relink, otherwise we might link with an installed library
11226 # when we should be linking with a yet-to-be-installed one
11227 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11228 test "$hardcode_minus_L" != no; then
11229 # Linking always hardcodes the temporary library directory.
11230 hardcode_action=relink
11231 else
11232 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11233 hardcode_action=immediate
11234 fi
11235else
11236 # We cannot hardcode anything, or else we can only hardcode existing
11237 # directories.
11238 hardcode_action=unsupported
11239fi
11240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11241$as_echo "$hardcode_action" >&6; }
11242
11243if test "$hardcode_action" = relink ||
11244 test "$inherit_rpath" = yes; then
11245 # Fast installation is not supported
11246 enable_fast_install=no
11247elif test "$shlibpath_overrides_runpath" = yes ||
11248 test "$enable_shared" = no; then
11249 # Fast installation is not necessary
11250 enable_fast_install=needless
11251fi
11252
11253
11254
11255
11256
11257
11258 if test "x$enable_dlopen" != xyes; then
11259 enable_dlopen=unknown
11260 enable_dlopen_self=unknown
11261 enable_dlopen_self_static=unknown
11262else
11263 lt_cv_dlopen=no
11264 lt_cv_dlopen_libs=
11265
11266 case $host_os in
11267 beos*)
11268 lt_cv_dlopen="load_add_on"
11269 lt_cv_dlopen_libs=
11270 lt_cv_dlopen_self=yes
11271 ;;
11272
11273 mingw* | pw32* | cegcc*)
11274 lt_cv_dlopen="LoadLibrary"
11275 lt_cv_dlopen_libs=
11276 ;;
11277
11278 cygwin*)
11279 lt_cv_dlopen="dlopen"
11280 lt_cv_dlopen_libs=
11281 ;;
11282
11283 darwin*)
11284 # if libdl is installed we need to link against it
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11286$as_echo_n "checking for dlopen in -ldl... " >&6; }
11287if ${ac_cv_lib_dl_dlopen+:} false; then :
11288 $as_echo_n "(cached) " >&6
11289else
11290 ac_check_lib_save_LIBS=$LIBS
11291LIBS="-ldl $LIBS"
11292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293/* end confdefs.h. */
11294
11295/* Override any GCC internal prototype to avoid an error.
11296 Use char because int might match the return type of a GCC
11297 builtin and then its argument prototype would still apply. */
11298#ifdef __cplusplus
11299extern "C"
11300#endif
11301char dlopen ();
11302int
11303main ()
11304{
11305return dlopen ();
11306 ;
11307 return 0;
11308}
11309_ACEOF
11310if ac_fn_c_try_link "$LINENO"; then :
11311 ac_cv_lib_dl_dlopen=yes
11312else
11313 ac_cv_lib_dl_dlopen=no
11314fi
11315rm -f core conftest.err conftest.$ac_objext \
11316 conftest$ac_exeext conftest.$ac_ext
11317LIBS=$ac_check_lib_save_LIBS
11318fi
11319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11320$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11321if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11322 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11323else
11324
11325 lt_cv_dlopen="dyld"
11326 lt_cv_dlopen_libs=
11327 lt_cv_dlopen_self=yes
11328
11329fi
11330
11331 ;;
11332
11333 *)
11334 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11335if test "x$ac_cv_func_shl_load" = xyes; then :
11336 lt_cv_dlopen="shl_load"
11337else
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11339$as_echo_n "checking for shl_load in -ldld... " >&6; }
11340if ${ac_cv_lib_dld_shl_load+:} false; then :
11341 $as_echo_n "(cached) " >&6
11342else
11343 ac_check_lib_save_LIBS=$LIBS
11344LIBS="-ldld $LIBS"
11345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11346/* end confdefs.h. */
11347
11348/* Override any GCC internal prototype to avoid an error.
11349 Use char because int might match the return type of a GCC
11350 builtin and then its argument prototype would still apply. */
11351#ifdef __cplusplus
11352extern "C"
11353#endif
11354char shl_load ();
11355int
11356main ()
11357{
11358return shl_load ();
11359 ;
11360 return 0;
11361}
11362_ACEOF
11363if ac_fn_c_try_link "$LINENO"; then :
11364 ac_cv_lib_dld_shl_load=yes
11365else
11366 ac_cv_lib_dld_shl_load=no
11367fi
11368rm -f core conftest.err conftest.$ac_objext \
11369 conftest$ac_exeext conftest.$ac_ext
11370LIBS=$ac_check_lib_save_LIBS
11371fi
11372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11373$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11374if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11375 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11376else
11377 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11378if test "x$ac_cv_func_dlopen" = xyes; then :
11379 lt_cv_dlopen="dlopen"
11380else
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11382$as_echo_n "checking for dlopen in -ldl... " >&6; }
11383if ${ac_cv_lib_dl_dlopen+:} false; then :
11384 $as_echo_n "(cached) " >&6
11385else
11386 ac_check_lib_save_LIBS=$LIBS
11387LIBS="-ldl $LIBS"
11388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11389/* end confdefs.h. */
11390
11391/* Override any GCC internal prototype to avoid an error.
11392 Use char because int might match the return type of a GCC
11393 builtin and then its argument prototype would still apply. */
11394#ifdef __cplusplus
11395extern "C"
11396#endif
11397char dlopen ();
11398int
11399main ()
11400{
11401return dlopen ();
11402 ;
11403 return 0;
11404}
11405_ACEOF
11406if ac_fn_c_try_link "$LINENO"; then :
11407 ac_cv_lib_dl_dlopen=yes
11408else
11409 ac_cv_lib_dl_dlopen=no
11410fi
11411rm -f core conftest.err conftest.$ac_objext \
11412 conftest$ac_exeext conftest.$ac_ext
11413LIBS=$ac_check_lib_save_LIBS
11414fi
11415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11416$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11417if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11418 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11419else
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11421$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11422if ${ac_cv_lib_svld_dlopen+:} false; then :
11423 $as_echo_n "(cached) " >&6
11424else
11425 ac_check_lib_save_LIBS=$LIBS
11426LIBS="-lsvld $LIBS"
11427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11428/* end confdefs.h. */
11429
11430/* Override any GCC internal prototype to avoid an error.
11431 Use char because int might match the return type of a GCC
11432 builtin and then its argument prototype would still apply. */
11433#ifdef __cplusplus
11434extern "C"
11435#endif
11436char dlopen ();
11437int
11438main ()
11439{
11440return dlopen ();
11441 ;
11442 return 0;
11443}
11444_ACEOF
11445if ac_fn_c_try_link "$LINENO"; then :
11446 ac_cv_lib_svld_dlopen=yes
11447else
11448 ac_cv_lib_svld_dlopen=no
11449fi
11450rm -f core conftest.err conftest.$ac_objext \
11451 conftest$ac_exeext conftest.$ac_ext
11452LIBS=$ac_check_lib_save_LIBS
11453fi
11454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11455$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11456if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11457 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11458else
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11460$as_echo_n "checking for dld_link in -ldld... " >&6; }
11461if ${ac_cv_lib_dld_dld_link+:} false; then :
11462 $as_echo_n "(cached) " >&6
11463else
11464 ac_check_lib_save_LIBS=$LIBS
11465LIBS="-ldld $LIBS"
11466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467/* end confdefs.h. */
11468
11469/* Override any GCC internal prototype to avoid an error.
11470 Use char because int might match the return type of a GCC
11471 builtin and then its argument prototype would still apply. */
11472#ifdef __cplusplus
11473extern "C"
11474#endif
11475char dld_link ();
11476int
11477main ()
11478{
11479return dld_link ();
11480 ;
11481 return 0;
11482}
11483_ACEOF
11484if ac_fn_c_try_link "$LINENO"; then :
11485 ac_cv_lib_dld_dld_link=yes
11486else
11487 ac_cv_lib_dld_dld_link=no
11488fi
11489rm -f core conftest.err conftest.$ac_objext \
11490 conftest$ac_exeext conftest.$ac_ext
11491LIBS=$ac_check_lib_save_LIBS
11492fi
11493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11494$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11495if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11496 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11497fi
11498
11499
11500fi
11501
11502
11503fi
11504
11505
11506fi
11507
11508
11509fi
11510
11511
11512fi
11513
11514 ;;
11515 esac
11516
11517 if test "x$lt_cv_dlopen" != xno; then
11518 enable_dlopen=yes
11519 else
11520 enable_dlopen=no
11521 fi
11522
11523 case $lt_cv_dlopen in
11524 dlopen)
11525 save_CPPFLAGS="$CPPFLAGS"
11526 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11527
11528 save_LDFLAGS="$LDFLAGS"
11529 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11530
11531 save_LIBS="$LIBS"
11532 LIBS="$lt_cv_dlopen_libs $LIBS"
11533
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11535$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11536if ${lt_cv_dlopen_self+:} false; then :
11537 $as_echo_n "(cached) " >&6
11538else
11539 if test "$cross_compiling" = yes; then :
11540 lt_cv_dlopen_self=cross
11541else
11542 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11543 lt_status=$lt_dlunknown
11544 cat > conftest.$ac_ext <<_LT_EOF
cbd8f5bb 11545#line 11545 "configure"
87279e3c
NA
11546#include "confdefs.h"
11547
11548#if HAVE_DLFCN_H
11549#include <dlfcn.h>
11550#endif
11551
11552#include <stdio.h>
11553
11554#ifdef RTLD_GLOBAL
11555# define LT_DLGLOBAL RTLD_GLOBAL
11556#else
11557# ifdef DL_GLOBAL
11558# define LT_DLGLOBAL DL_GLOBAL
11559# else
11560# define LT_DLGLOBAL 0
11561# endif
11562#endif
11563
11564/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11565 find out it does not work in some platform. */
11566#ifndef LT_DLLAZY_OR_NOW
11567# ifdef RTLD_LAZY
11568# define LT_DLLAZY_OR_NOW RTLD_LAZY
11569# else
11570# ifdef DL_LAZY
11571# define LT_DLLAZY_OR_NOW DL_LAZY
11572# else
11573# ifdef RTLD_NOW
11574# define LT_DLLAZY_OR_NOW RTLD_NOW
11575# else
11576# ifdef DL_NOW
11577# define LT_DLLAZY_OR_NOW DL_NOW
11578# else
11579# define LT_DLLAZY_OR_NOW 0
11580# endif
11581# endif
11582# endif
11583# endif
11584#endif
11585
11586/* When -fvisbility=hidden is used, assume the code has been annotated
11587 correspondingly for the symbols needed. */
11588#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11589void fnord () __attribute__((visibility("default")));
11590#endif
11591
11592void fnord () { int i=42; }
11593int main ()
11594{
11595 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11596 int status = $lt_dlunknown;
11597
11598 if (self)
11599 {
11600 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11601 else
11602 {
11603 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11604 else puts (dlerror ());
11605 }
11606 /* dlclose (self); */
11607 }
11608 else
11609 puts (dlerror ());
11610
11611 return status;
11612}
11613_LT_EOF
11614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11615 (eval $ac_link) 2>&5
11616 ac_status=$?
11617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11618 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11619 (./conftest; exit; ) >&5 2>/dev/null
11620 lt_status=$?
11621 case x$lt_status in
11622 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11623 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11624 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11625 esac
11626 else :
11627 # compilation failed
11628 lt_cv_dlopen_self=no
11629 fi
11630fi
11631rm -fr conftest*
11632
11633
11634fi
11635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11636$as_echo "$lt_cv_dlopen_self" >&6; }
11637
11638 if test "x$lt_cv_dlopen_self" = xyes; then
11639 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11641$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11642if ${lt_cv_dlopen_self_static+:} false; then :
11643 $as_echo_n "(cached) " >&6
11644else
11645 if test "$cross_compiling" = yes; then :
11646 lt_cv_dlopen_self_static=cross
11647else
11648 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11649 lt_status=$lt_dlunknown
11650 cat > conftest.$ac_ext <<_LT_EOF
cbd8f5bb 11651#line 11651 "configure"
87279e3c
NA
11652#include "confdefs.h"
11653
11654#if HAVE_DLFCN_H
11655#include <dlfcn.h>
11656#endif
11657
11658#include <stdio.h>
11659
11660#ifdef RTLD_GLOBAL
11661# define LT_DLGLOBAL RTLD_GLOBAL
11662#else
11663# ifdef DL_GLOBAL
11664# define LT_DLGLOBAL DL_GLOBAL
11665# else
11666# define LT_DLGLOBAL 0
11667# endif
11668#endif
11669
11670/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11671 find out it does not work in some platform. */
11672#ifndef LT_DLLAZY_OR_NOW
11673# ifdef RTLD_LAZY
11674# define LT_DLLAZY_OR_NOW RTLD_LAZY
11675# else
11676# ifdef DL_LAZY
11677# define LT_DLLAZY_OR_NOW DL_LAZY
11678# else
11679# ifdef RTLD_NOW
11680# define LT_DLLAZY_OR_NOW RTLD_NOW
11681# else
11682# ifdef DL_NOW
11683# define LT_DLLAZY_OR_NOW DL_NOW
11684# else
11685# define LT_DLLAZY_OR_NOW 0
11686# endif
11687# endif
11688# endif
11689# endif
11690#endif
11691
11692/* When -fvisbility=hidden is used, assume the code has been annotated
11693 correspondingly for the symbols needed. */
11694#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11695void fnord () __attribute__((visibility("default")));
11696#endif
11697
11698void fnord () { int i=42; }
11699int main ()
11700{
11701 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11702 int status = $lt_dlunknown;
11703
11704 if (self)
11705 {
11706 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11707 else
11708 {
11709 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11710 else puts (dlerror ());
11711 }
11712 /* dlclose (self); */
11713 }
11714 else
11715 puts (dlerror ());
11716
11717 return status;
11718}
11719_LT_EOF
11720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11721 (eval $ac_link) 2>&5
11722 ac_status=$?
11723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11724 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11725 (./conftest; exit; ) >&5 2>/dev/null
11726 lt_status=$?
11727 case x$lt_status in
11728 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11729 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11730 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11731 esac
11732 else :
11733 # compilation failed
11734 lt_cv_dlopen_self_static=no
11735 fi
11736fi
11737rm -fr conftest*
11738
11739
11740fi
11741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11742$as_echo "$lt_cv_dlopen_self_static" >&6; }
11743 fi
11744
11745 CPPFLAGS="$save_CPPFLAGS"
11746 LDFLAGS="$save_LDFLAGS"
11747 LIBS="$save_LIBS"
11748 ;;
11749 esac
11750
11751 case $lt_cv_dlopen_self in
11752 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11753 *) enable_dlopen_self=unknown ;;
11754 esac
11755
11756 case $lt_cv_dlopen_self_static in
11757 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11758 *) enable_dlopen_self_static=unknown ;;
11759 esac
11760fi
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778striplib=
11779old_striplib=
11780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11781$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11782if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11783 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11784 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11786$as_echo "yes" >&6; }
11787else
11788# FIXME - insert some real tests, host_os isn't really good enough
11789 case $host_os in
11790 darwin*)
11791 if test -n "$STRIP" ; then
11792 striplib="$STRIP -x"
11793 old_striplib="$STRIP -S"
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11795$as_echo "yes" >&6; }
11796 else
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11798$as_echo "no" >&6; }
11799 fi
11800 ;;
11801 *)
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11803$as_echo "no" >&6; }
11804 ;;
11805 esac
11806fi
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819 # Report which library types will actually be built
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11821$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11823$as_echo "$can_build_shared" >&6; }
11824
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11826$as_echo_n "checking whether to build shared libraries... " >&6; }
11827 test "$can_build_shared" = "no" && enable_shared=no
11828
11829 # On AIX, shared libraries and static libraries use the same namespace, and
11830 # are all built from PIC.
11831 case $host_os in
11832 aix3*)
11833 test "$enable_shared" = yes && enable_static=no
11834 if test -n "$RANLIB"; then
11835 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11836 postinstall_cmds='$RANLIB $lib'
11837 fi
11838 ;;
11839
11840 aix[4-9]*)
11841 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11842 test "$enable_shared" = yes && enable_static=no
11843 fi
11844 ;;
11845 esac
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11847$as_echo "$enable_shared" >&6; }
11848
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11850$as_echo_n "checking whether to build static libraries... " >&6; }
11851 # Make sure either enable_shared or enable_static is yes.
11852 test "$enable_shared" = yes || enable_static=yes
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11854$as_echo "$enable_static" >&6; }
11855
11856
11857
11858
11859fi
11860ac_ext=c
11861ac_cpp='$CPP $CPPFLAGS'
11862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11864ac_compiler_gnu=$ac_cv_c_compiler_gnu
11865
11866CC="$lt_save_CC"
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880 ac_config_commands="$ac_config_commands libtool"
11881
11882
11883
11884
11885# Only expand once:
11886
11887
11888# Check whether --enable-largefile was given.
11889if test "${enable_largefile+set}" = set; then :
11890 enableval=$enable_largefile;
11891fi
11892
11893if test "$enable_largefile" != no; then
11894
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11896$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11897if ${ac_cv_sys_largefile_CC+:} false; then :
11898 $as_echo_n "(cached) " >&6
11899else
11900 ac_cv_sys_largefile_CC=no
11901 if test "$GCC" != yes; then
11902 ac_save_CC=$CC
11903 while :; do
11904 # IRIX 6.2 and later do not support large files by default,
11905 # so use the C compiler's -n32 option if that helps.
11906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907/* end confdefs.h. */
11908#include <sys/types.h>
11909 /* Check that off_t can represent 2**63 - 1 correctly.
11910 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11911 since some C++ compilers masquerading as C compilers
11912 incorrectly reject 9223372036854775807. */
11913#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11914 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11915 && LARGE_OFF_T % 2147483647 == 1)
11916 ? 1 : -1];
11917int
11918main ()
11919{
11920
11921 ;
11922 return 0;
11923}
11924_ACEOF
11925 if ac_fn_c_try_compile "$LINENO"; then :
11926 break
11927fi
11928rm -f core conftest.err conftest.$ac_objext
11929 CC="$CC -n32"
11930 if ac_fn_c_try_compile "$LINENO"; then :
11931 ac_cv_sys_largefile_CC=' -n32'; break
11932fi
11933rm -f core conftest.err conftest.$ac_objext
11934 break
11935 done
11936 CC=$ac_save_CC
11937 rm -f conftest.$ac_ext
11938 fi
11939fi
11940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11941$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11942 if test "$ac_cv_sys_largefile_CC" != no; then
11943 CC=$CC$ac_cv_sys_largefile_CC
11944 fi
11945
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11947$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11948if ${ac_cv_sys_file_offset_bits+:} false; then :
11949 $as_echo_n "(cached) " >&6
11950else
11951 while :; do
11952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11953/* end confdefs.h. */
11954#include <sys/types.h>
11955 /* Check that off_t can represent 2**63 - 1 correctly.
11956 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11957 since some C++ compilers masquerading as C compilers
11958 incorrectly reject 9223372036854775807. */
11959#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11960 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11961 && LARGE_OFF_T % 2147483647 == 1)
11962 ? 1 : -1];
11963int
11964main ()
11965{
11966
11967 ;
11968 return 0;
11969}
11970_ACEOF
11971if ac_fn_c_try_compile "$LINENO"; then :
11972 ac_cv_sys_file_offset_bits=no; break
11973fi
11974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11976/* end confdefs.h. */
11977#define _FILE_OFFSET_BITS 64
11978#include <sys/types.h>
11979 /* Check that off_t can represent 2**63 - 1 correctly.
11980 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11981 since some C++ compilers masquerading as C compilers
11982 incorrectly reject 9223372036854775807. */
11983#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11984 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11985 && LARGE_OFF_T % 2147483647 == 1)
11986 ? 1 : -1];
11987int
11988main ()
11989{
11990
11991 ;
11992 return 0;
11993}
11994_ACEOF
11995if ac_fn_c_try_compile "$LINENO"; then :
11996 ac_cv_sys_file_offset_bits=64; break
11997fi
11998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11999 ac_cv_sys_file_offset_bits=unknown
12000 break
12001done
12002fi
12003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12004$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12005case $ac_cv_sys_file_offset_bits in #(
12006 no | unknown) ;;
12007 *)
12008cat >>confdefs.h <<_ACEOF
12009#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12010_ACEOF
12011;;
12012esac
12013rm -rf conftest*
12014 if test $ac_cv_sys_file_offset_bits = unknown; then
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12016$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12017if ${ac_cv_sys_large_files+:} false; then :
12018 $as_echo_n "(cached) " >&6
12019else
12020 while :; do
12021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12022/* end confdefs.h. */
12023#include <sys/types.h>
12024 /* Check that off_t can represent 2**63 - 1 correctly.
12025 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12026 since some C++ compilers masquerading as C compilers
12027 incorrectly reject 9223372036854775807. */
12028#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12029 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12030 && LARGE_OFF_T % 2147483647 == 1)
12031 ? 1 : -1];
12032int
12033main ()
12034{
12035
12036 ;
12037 return 0;
12038}
12039_ACEOF
12040if ac_fn_c_try_compile "$LINENO"; then :
12041 ac_cv_sys_large_files=no; break
12042fi
12043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045/* end confdefs.h. */
12046#define _LARGE_FILES 1
12047#include <sys/types.h>
12048 /* Check that off_t can represent 2**63 - 1 correctly.
12049 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12050 since some C++ compilers masquerading as C compilers
12051 incorrectly reject 9223372036854775807. */
12052#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12053 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12054 && LARGE_OFF_T % 2147483647 == 1)
12055 ? 1 : -1];
12056int
12057main ()
12058{
12059
12060 ;
12061 return 0;
12062}
12063_ACEOF
12064if ac_fn_c_try_compile "$LINENO"; then :
12065 ac_cv_sys_large_files=1; break
12066fi
12067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12068 ac_cv_sys_large_files=unknown
12069 break
12070done
12071fi
12072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12073$as_echo "$ac_cv_sys_large_files" >&6; }
12074case $ac_cv_sys_large_files in #(
12075 no | unknown) ;;
12076 *)
12077cat >>confdefs.h <<_ACEOF
12078#define _LARGE_FILES $ac_cv_sys_large_files
12079_ACEOF
12080;;
12081esac
12082rm -rf conftest*
12083 fi
12084
12085
12086fi
12087
12088
12089MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
12090for ac_prog in aclocal
12091do
12092 # Extract the first word of "$ac_prog", so it can be a program name with args.
12093set dummy $ac_prog; ac_word=$2
12094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12095$as_echo_n "checking for $ac_word... " >&6; }
12096if ${ac_cv_prog_ACLOCAL+:} false; then :
12097 $as_echo_n "(cached) " >&6
12098else
12099 if test -n "$ACLOCAL"; then
12100 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
12101else
12102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12103for as_dir in $PATH
12104do
12105 IFS=$as_save_IFS
12106 test -z "$as_dir" && as_dir=.
12107 for ac_exec_ext in '' $ac_executable_extensions; do
12108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12109 ac_cv_prog_ACLOCAL="$ac_prog"
12110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12111 break 2
12112 fi
0e65dfba
NA
12113done
12114 done
12115IFS=$as_save_IFS
12116
12117fi
12118fi
12119ACLOCAL=$ac_cv_prog_ACLOCAL
12120if test -n "$ACLOCAL"; then
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
12122$as_echo "$ACLOCAL" >&6; }
12123else
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12125$as_echo "no" >&6; }
12126fi
12127
12128
12129 test -n "$ACLOCAL" && break
12130done
12131test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
12132
12133for ac_prog in autoconf
12134do
12135 # Extract the first word of "$ac_prog", so it can be a program name with args.
12136set dummy $ac_prog; ac_word=$2
12137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12138$as_echo_n "checking for $ac_word... " >&6; }
12139if ${ac_cv_prog_AUTOCONF+:} false; then :
12140 $as_echo_n "(cached) " >&6
12141else
12142 if test -n "$AUTOCONF"; then
12143 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
12144else
12145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12146for as_dir in $PATH
12147do
12148 IFS=$as_save_IFS
12149 test -z "$as_dir" && as_dir=.
12150 for ac_exec_ext in '' $ac_executable_extensions; do
12151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12152 ac_cv_prog_AUTOCONF="$ac_prog"
12153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12154 break 2
12155 fi
12156done
12157 done
12158IFS=$as_save_IFS
12159
12160fi
12161fi
12162AUTOCONF=$ac_cv_prog_AUTOCONF
12163if test -n "$AUTOCONF"; then
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
12165$as_echo "$AUTOCONF" >&6; }
12166else
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12168$as_echo "no" >&6; }
12169fi
12170
12171
12172 test -n "$AUTOCONF" && break
12173done
12174test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
12175
12176for ac_prog in autoheader
12177do
12178 # Extract the first word of "$ac_prog", so it can be a program name with args.
12179set dummy $ac_prog; ac_word=$2
12180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12181$as_echo_n "checking for $ac_word... " >&6; }
12182if ${ac_cv_prog_AUTOHEADER+:} false; then :
12183 $as_echo_n "(cached) " >&6
12184else
12185 if test -n "$AUTOHEADER"; then
12186 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
12187else
12188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12189for as_dir in $PATH
12190do
12191 IFS=$as_save_IFS
12192 test -z "$as_dir" && as_dir=.
12193 for ac_exec_ext in '' $ac_executable_extensions; do
12194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12195 ac_cv_prog_AUTOHEADER="$ac_prog"
12196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12197 break 2
12198 fi
12199done
12200 done
12201IFS=$as_save_IFS
12202
12203fi
12204fi
12205AUTOHEADER=$ac_cv_prog_AUTOHEADER
12206if test -n "$AUTOHEADER"; then
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
12208$as_echo "$AUTOHEADER" >&6; }
12209else
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211$as_echo "no" >&6; }
12212fi
12213
12214
12215 test -n "$AUTOHEADER" && break
12216done
12217test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
12218
12219
12220# Figure out what compiler warnings we can enable.
12221# See config/warnings.m4 for details.
12222
12223ac_ext=c
12224ac_cpp='$CPP $CPPFLAGS'
12225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12227ac_compiler_gnu=$ac_cv_c_compiler_gnu
12228
12229warn=
12230save_CFLAGS="$CFLAGS"
12231for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \
12232 -Wmissing-format-attribute; do
12233 # Do the check with the no- prefix removed since gcc silently
12234 # accepts any -Wno-* option on purpose
12235 case $real_option in
12236 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
12237 *) option=$real_option ;;
12238 esac
12239 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
12240
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
12242$as_echo_n "checking whether $CC supports $option... " >&6; }
12243if eval \${$as_acx_Woption+:} false; then :
12244 $as_echo_n "(cached) " >&6
12245else
12246 CFLAGS="$option"
12247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12248/* end confdefs.h. */
12249
12250int
12251main ()
12252{
12253
12254 ;
12255 return 0;
12256}
12257_ACEOF
12258if ac_fn_c_try_compile "$LINENO"; then :
12259 eval "$as_acx_Woption=yes"
12260else
12261 eval "$as_acx_Woption=no"
12262fi
12263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12264
12265fi
12266eval ac_res=\$$as_acx_Woption
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12268$as_echo "$ac_res" >&6; }
12269 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
12270 warn="$warn${warn:+ }$real_option"
12271fi
12272 done
12273CFLAGS="$save_CFLAGS"
12274ac_ext=c
12275ac_cpp='$CPP $CPPFLAGS'
12276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12278ac_compiler_gnu=$ac_cv_c_compiler_gnu
12279
12280
12281ac_ext=c
12282ac_cpp='$CPP $CPPFLAGS'
12283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12285ac_compiler_gnu=$ac_cv_c_compiler_gnu
12286
12287c_warn=
12288save_CFLAGS="$CFLAGS"
12289for real_option in -Wstrict-prototypes -Wmissing-prototypes \
12290 -Wold-style-definition; do
12291 # Do the check with the no- prefix removed since gcc silently
12292 # accepts any -Wno-* option on purpose
12293 case $real_option in
12294 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
12295 *) option=$real_option ;;
12296 esac
12297 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
12298
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
12300$as_echo_n "checking whether $CC supports $option... " >&6; }
12301if eval \${$as_acx_Woption+:} false; then :
12302 $as_echo_n "(cached) " >&6
12303else
12304 CFLAGS="$option"
12305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12306/* end confdefs.h. */
12307
12308int
12309main ()
12310{
12311
12312 ;
12313 return 0;
12314}
12315_ACEOF
12316if ac_fn_c_try_compile "$LINENO"; then :
12317 eval "$as_acx_Woption=yes"
12318else
12319 eval "$as_acx_Woption=no"
12320fi
12321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12322
12323fi
12324eval ac_res=\$$as_acx_Woption
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12326$as_echo "$ac_res" >&6; }
12327 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
12328 c_warn="$c_warn${c_warn:+ }$real_option"
12329fi
12330 done
12331CFLAGS="$save_CFLAGS"
12332ac_ext=c
12333ac_cpp='$CPP $CPPFLAGS'
12334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12336ac_compiler_gnu=$ac_cv_c_compiler_gnu
12337
12338
12339ac_ext=c
12340ac_cpp='$CPP $CPPFLAGS'
12341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12343ac_compiler_gnu=$ac_cv_c_compiler_gnu
12344
12345WARN_PEDANTIC=
12346# Do the check with the no- prefix removed from the warning options
12347# since gcc silently accepts any -Wno-* option on purpose
12348if test "$GCC" = yes; then :
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
12350$as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
12351if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false; then :
12352 $as_echo_n "(cached) " >&6
12353else
12354 save_CFLAGS="$CFLAGS"
12355CFLAGS="-pedantic -Wlong-long"
12356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12357/* end confdefs.h. */
12358
12359int
12360main ()
12361{
12362
12363 ;
12364 return 0;
12365}
12366_ACEOF
12367if ac_fn_c_try_compile "$LINENO"; then :
12368 acx_cv_prog_cc_pedantic__Wlong_long=yes
12369else
12370 acx_cv_prog_cc_pedantic__Wlong_long=no
12371fi
12372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373CFLAGS="$save_CFLAGS"
12374fi
12375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
12376$as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
12377if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
12378 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
12379fi
12380
12381fi
12382ac_ext=c
12383ac_cpp='$CPP $CPPFLAGS'
12384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12386ac_compiler_gnu=$ac_cv_c_compiler_gnu
12387
12388
12389
12390# Only enable with --enable-werror-always until existing warnings are
12391# corrected.
12392ac_ext=c
12393ac_cpp='$CPP $CPPFLAGS'
12394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12396ac_compiler_gnu=$ac_cv_c_compiler_gnu
12397
12398WERROR=
12399# Check whether --enable-werror-always was given.
12400if test "${enable_werror_always+set}" = set; then :
12401 enableval=$enable_werror_always;
12402else
12403 enable_werror_always=no
12404fi
12405
12406if test $enable_werror_always = yes; then :
12407 WERROR="$WERROR${WERROR:+ }-Werror"
12408fi
12409
12410ac_ext=c
12411ac_cpp='$CPP $CPPFLAGS'
12412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12414ac_compiler_gnu=$ac_cv_c_compiler_gnu
12415
12416
12417
12418
12419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12420$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12421 # Check whether --enable-maintainer-mode was given.
12422if test "${enable_maintainer_mode+set}" = set; then :
12423 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12424else
12425 USE_MAINTAINER_MODE=no
12426fi
12427
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12429$as_echo "$USE_MAINTAINER_MODE" >&6; }
12430 if test $USE_MAINTAINER_MODE = yes; then
12431 MAINTAINER_MODE_TRUE=
12432 MAINTAINER_MODE_FALSE='#'
12433else
12434 MAINTAINER_MODE_TRUE='#'
12435 MAINTAINER_MODE_FALSE=
12436fi
12437
12438 MAINT=$MAINTAINER_MODE_TRUE
12439
12440
87279e3c
NA
12441 case ${build_alias} in
12442 "") build_noncanonical=${build} ;;
12443 *) build_noncanonical=${build_alias} ;;
12444esac
12445
12446 case ${host_alias} in
12447 "") host_noncanonical=${build_noncanonical} ;;
12448 *) host_noncanonical=${host_alias} ;;
12449esac
12450
12451 case ${target_alias} in
12452 "") target_noncanonical=${host_noncanonical} ;;
12453 *) target_noncanonical=${target_alias} ;;
12454esac
12455
12456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
12457$as_echo_n "checking whether to install libbfd... " >&6; }
12458 # Check whether --enable-install-libbfd was given.
12459if test "${enable_install_libbfd+set}" = set; then :
12460 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
12461else
12462 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12463 install_libbfd_p=yes
12464 else
12465 install_libbfd_p=no
12466 fi
12467fi
12468
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
12470$as_echo "$install_libbfd_p" >&6; }
12471 if test $install_libbfd_p = yes; then
12472 INSTALL_LIBBFD_TRUE=
12473 INSTALL_LIBBFD_FALSE='#'
12474else
12475 INSTALL_LIBBFD_TRUE='#'
12476 INSTALL_LIBBFD_FALSE=
12477fi
12478
12479 # Need _noncanonical variables for this.
12480
12481
12482
12483
12484 # libbfd.a is a host library containing target dependent code
12485 bfdlibdir='$(libdir)'
12486 bfdincludedir='$(includedir)'
12487 if test "${host}" != "${target}"; then
12488 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12489 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
12490 fi
12491
12492
12493
12494
12495
12496
0e65dfba
NA
12497ac_ext=c
12498ac_cpp='$CPP $CPPFLAGS'
12499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12501ac_compiler_gnu=$ac_cv_c_compiler_gnu
12502
12503ac_libctf_warn_cflags=
12504save_CFLAGS="$CFLAGS"
12505for real_option in -Wall; do
12506 # Do the check with the no- prefix removed since gcc silently
12507 # accepts any -Wno-* option on purpose
12508 case $real_option in
12509 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
12510 *) option=$real_option ;;
12511 esac
12512 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
12513
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
12515$as_echo_n "checking whether $CC supports $option... " >&6; }
12516if eval \${$as_acx_Woption+:} false; then :
12517 $as_echo_n "(cached) " >&6
12518else
12519 CFLAGS="$option"
12520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12521/* end confdefs.h. */
12522
12523int
12524main ()
12525{
12526
12527 ;
12528 return 0;
12529}
12530_ACEOF
12531if ac_fn_c_try_compile "$LINENO"; then :
12532 eval "$as_acx_Woption=yes"
12533else
12534 eval "$as_acx_Woption=no"
12535fi
12536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12537
12538fi
12539eval ac_res=\$$as_acx_Woption
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12541$as_echo "$ac_res" >&6; }
12542 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
12543 ac_libctf_warn_cflags="$ac_libctf_warn_cflags${ac_libctf_warn_cflags:+ }$real_option"
12544fi
12545 done
12546CFLAGS="$save_CFLAGS"
12547ac_ext=c
12548ac_cpp='$CPP $CPPFLAGS'
12549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12551ac_compiler_gnu=$ac_cv_c_compiler_gnu
12552
12553
12554
12555
12556
12557
12558 for ac_header in $ac_header_list
12559do :
12560 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12561ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12562"
12563if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12564 cat >>confdefs.h <<_ACEOF
12565#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12566_ACEOF
12567
12568fi
12569
12570done
12571
12572
12573
12574
12575
12576
12577
12578
12579for ac_func in getpagesize
12580do :
12581 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12582if test "x$ac_cv_func_getpagesize" = xyes; then :
12583 cat >>confdefs.h <<_ACEOF
12584#define HAVE_GETPAGESIZE 1
12585_ACEOF
12586
12587fi
12588done
12589
12590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12591$as_echo_n "checking for working mmap... " >&6; }
12592if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
12593 $as_echo_n "(cached) " >&6
12594else
12595 if test "$cross_compiling" = yes; then :
12596 ac_cv_func_mmap_fixed_mapped=no
12597else
12598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12599/* end confdefs.h. */
12600$ac_includes_default
12601/* malloc might have been renamed as rpl_malloc. */
12602#undef malloc
12603
12604/* Thanks to Mike Haertel and Jim Avera for this test.
12605 Here is a matrix of mmap possibilities:
12606 mmap private not fixed
12607 mmap private fixed at somewhere currently unmapped
12608 mmap private fixed at somewhere already mapped
12609 mmap shared not fixed
12610 mmap shared fixed at somewhere currently unmapped
12611 mmap shared fixed at somewhere already mapped
12612 For private mappings, we should verify that changes cannot be read()
12613 back from the file, nor mmap's back from the file at a different
12614 address. (There have been systems where private was not correctly
12615 implemented like the infamous i386 svr4.0, and systems where the
12616 VM page cache was not coherent with the file system buffer cache
12617 like early versions of FreeBSD and possibly contemporary NetBSD.)
12618 For shared mappings, we should conversely verify that changes get
12619 propagated back to all the places they're supposed to be.
12620
12621 Grep wants private fixed already mapped.
12622 The main things grep needs to know about mmap are:
12623 * does it exist and is it safe to write into the mmap'd area
12624 * how to use it (BSD variants) */
12625
12626#include <fcntl.h>
12627#include <sys/mman.h>
12628
12629#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12630char *malloc ();
12631#endif
12632
12633/* This mess was copied from the GNU getpagesize.h. */
12634#ifndef HAVE_GETPAGESIZE
12635# ifdef _SC_PAGESIZE
12636# define getpagesize() sysconf(_SC_PAGESIZE)
12637# else /* no _SC_PAGESIZE */
12638# ifdef HAVE_SYS_PARAM_H
12639# include <sys/param.h>
12640# ifdef EXEC_PAGESIZE
12641# define getpagesize() EXEC_PAGESIZE
12642# else /* no EXEC_PAGESIZE */
12643# ifdef NBPG
12644# define getpagesize() NBPG * CLSIZE
12645# ifndef CLSIZE
12646# define CLSIZE 1
12647# endif /* no CLSIZE */
12648# else /* no NBPG */
12649# ifdef NBPC
12650# define getpagesize() NBPC
12651# else /* no NBPC */
12652# ifdef PAGESIZE
12653# define getpagesize() PAGESIZE
12654# endif /* PAGESIZE */
12655# endif /* no NBPC */
12656# endif /* no NBPG */
12657# endif /* no EXEC_PAGESIZE */
12658# else /* no HAVE_SYS_PARAM_H */
12659# define getpagesize() 8192 /* punt totally */
12660# endif /* no HAVE_SYS_PARAM_H */
12661# endif /* no _SC_PAGESIZE */
12662
12663#endif /* no HAVE_GETPAGESIZE */
12664
12665int
12666main ()
12667{
12668 char *data, *data2, *data3;
12669 const char *cdata2;
12670 int i, pagesize;
12671 int fd, fd2;
12672
12673 pagesize = getpagesize ();
12674
12675 /* First, make a file with some known garbage in it. */
12676 data = (char *) malloc (pagesize);
12677 if (!data)
12678 return 1;
12679 for (i = 0; i < pagesize; ++i)
12680 *(data + i) = rand ();
12681 umask (0);
12682 fd = creat ("conftest.mmap", 0600);
12683 if (fd < 0)
12684 return 2;
12685 if (write (fd, data, pagesize) != pagesize)
12686 return 3;
12687 close (fd);
12688
12689 /* Next, check that the tail of a page is zero-filled. File must have
12690 non-zero length, otherwise we risk SIGBUS for entire page. */
12691 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12692 if (fd2 < 0)
12693 return 4;
12694 cdata2 = "";
12695 if (write (fd2, cdata2, 1) != 1)
12696 return 5;
12697 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12698 if (data2 == MAP_FAILED)
12699 return 6;
12700 for (i = 0; i < pagesize; ++i)
12701 if (*(data2 + i))
12702 return 7;
12703 close (fd2);
12704 if (munmap (data2, pagesize))
12705 return 8;
12706
12707 /* Next, try to mmap the file at a fixed address which already has
12708 something else allocated at it. If we can, also make sure that
12709 we see the same garbage. */
12710 fd = open ("conftest.mmap", O_RDWR);
12711 if (fd < 0)
12712 return 9;
12713 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12714 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12715 return 10;
12716 for (i = 0; i < pagesize; ++i)
12717 if (*(data + i) != *(data2 + i))
12718 return 11;
12719
12720 /* Finally, make sure that changes to the mapped area do not
12721 percolate back to the file as seen by read(). (This is a bug on
12722 some variants of i386 svr4.0.) */
12723 for (i = 0; i < pagesize; ++i)
12724 *(data2 + i) = *(data2 + i) + 1;
12725 data3 = (char *) malloc (pagesize);
12726 if (!data3)
12727 return 12;
12728 if (read (fd, data3, pagesize) != pagesize)
12729 return 13;
12730 for (i = 0; i < pagesize; ++i)
12731 if (*(data + i) != *(data3 + i))
12732 return 14;
12733 close (fd);
12734 return 0;
12735}
12736_ACEOF
12737if ac_fn_c_try_run "$LINENO"; then :
12738 ac_cv_func_mmap_fixed_mapped=yes
12739else
12740 ac_cv_func_mmap_fixed_mapped=no
12741fi
12742rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12743 conftest.$ac_objext conftest.beam conftest.$ac_ext
12744fi
12745
12746fi
12747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12748$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12749if test $ac_cv_func_mmap_fixed_mapped = yes; then
12750
12751$as_echo "#define HAVE_MMAP 1" >>confdefs.h
12752
12753fi
12754rm -f conftest.mmap conftest.txt
12755
87279e3c 12756# Needed for BFD capability checks.
9698cf9b
NA
12757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12758$as_echo_n "checking for library containing dlopen... " >&6; }
12759if ${ac_cv_search_dlopen+:} false; then :
12760 $as_echo_n "(cached) " >&6
12761else
12762 ac_func_search_save_LIBS=$LIBS
12763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12764/* end confdefs.h. */
12765
12766/* Override any GCC internal prototype to avoid an error.
12767 Use char because int might match the return type of a GCC
12768 builtin and then its argument prototype would still apply. */
12769#ifdef __cplusplus
12770extern "C"
12771#endif
12772char dlopen ();
12773int
12774main ()
12775{
12776return dlopen ();
12777 ;
12778 return 0;
12779}
12780_ACEOF
12781for ac_lib in '' dl; do
12782 if test -z "$ac_lib"; then
12783 ac_res="none required"
12784 else
12785 ac_res=-l$ac_lib
12786 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12787 fi
12788 if ac_fn_c_try_link "$LINENO"; then :
12789 ac_cv_search_dlopen=$ac_res
12790fi
12791rm -f core conftest.err conftest.$ac_objext \
12792 conftest$ac_exeext
12793 if ${ac_cv_search_dlopen+:} false; then :
12794 break
12795fi
12796done
12797if ${ac_cv_search_dlopen+:} false; then :
12798
12799else
12800 ac_cv_search_dlopen=no
12801fi
12802rm conftest.$ac_ext
12803LIBS=$ac_func_search_save_LIBS
12804fi
12805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12806$as_echo "$ac_cv_search_dlopen" >&6; }
12807ac_res=$ac_cv_search_dlopen
12808if test "$ac_res" != no; then :
12809 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12810
12811fi
12812
12813
a0486bac
JM
12814 # Use the system's zlib library.
12815 zlibdir="-L\$(top_builddir)/../zlib"
12816 zlibinc="-I\$(top_srcdir)/../zlib"
12817
12818# Check whether --with-system-zlib was given.
12819if test "${with_system_zlib+set}" = set; then :
12820 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
12821 zlibdir=
12822 zlibinc=
12823 fi
12824
12825fi
12826
12827
12828
12829
12830
a9b98702
NA
12831 # Check whether --enable-libctf-hash-debugging was given.
12832if test "${enable_libctf_hash_debugging+set}" = set; then :
12833 enableval=$enable_libctf_hash_debugging;
12834 case "$enableval" in
12835 yes|no) ;;
12836 *) as_fn_error $? "Argument to enable/disable libctf-hash-debugging must be yes or no" "$LINENO" 5 ;;
12837 esac
12838
12839else
12840 enable_libctf_hash_debugging=no
12841fi
12842
12843
12844if test "${enable_libctf_hash_debugging}" = yes; then
12845
12846$as_echo "#define ENABLE_LIBCTF_HASH_DEBUGGING 1" >>confdefs.h
12847
12848fi
12849 if test "${enable_libctf_hash_debugging}" = yes; then
12850 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE=
12851 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE='#'
12852else
12853 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE='#'
12854 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE=
12855fi
12856
12857
9698cf9b
NA
12858# Similar to GDB_AC_CHECK_BFD.
12859OLD_CFLAGS=$CFLAGS
12860OLD_LDFLAGS=$LDFLAGS
12861OLD_LIBS=$LIBS
12862# Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
12863# points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
12864# always want our bfd.
12865CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
12866ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
12867LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
12868intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
12869LIBS="-lbfd -liberty -lz $intl $LIBS"
12870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
12871$as_echo_n "checking for ELF support in BFD... " >&6; }
12872if ${ac_cv_libctf_bfd_elf+:} false; then :
12873 $as_echo_n "(cached) " >&6
12874else
12875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876/* end confdefs.h. */
12877#include <stdlib.h>
758f5907 12878 #include <string.h>
9698cf9b
NA
12879 #include "bfd.h"
12880 #include "elf-bfd.h"
12881int
12882main ()
12883{
12884(void) bfd_section_from_elf_index (NULL, 0);
12885 return 0;
12886 ;
12887 return 0;
12888}
12889_ACEOF
12890if ac_fn_c_try_link "$LINENO"; then :
12891 ac_cv_libctf_bfd_elf=yes
12892else
12893 ac_cv_libctf_bfd_elf=no
12894fi
12895rm -f core conftest.err conftest.$ac_objext \
12896 conftest$ac_exeext conftest.$ac_ext
12897fi
12898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_bfd_elf" >&5
12899$as_echo "$ac_cv_libctf_bfd_elf" >&6; }
12900CFLAGS=$OLD_CFLAGS
12901LDFLAGS=$OLD_LDFLAGS
12902LIBS=$OLD_LIBS
12903
12904if test $ac_cv_libctf_bfd_elf = yes; then
12905
12906$as_echo "#define HAVE_BFD_ELF 1" >>confdefs.h
12907
12908fi
12909
a0486bac
JM
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12911$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12912if ${ac_cv_c_bigendian+:} false; then :
12913 $as_echo_n "(cached) " >&6
12914else
12915 ac_cv_c_bigendian=unknown
12916 # See if we're dealing with a universal compiler.
12917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12918/* end confdefs.h. */
12919#ifndef __APPLE_CC__
12920 not a universal capable compiler
12921 #endif
12922 typedef int dummy;
12923
12924_ACEOF
12925if ac_fn_c_try_compile "$LINENO"; then :
12926
12927 # Check for potential -arch flags. It is not universal unless
12928 # there are at least two -arch flags with different values.
12929 ac_arch=
12930 ac_prev=
12931 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12932 if test -n "$ac_prev"; then
12933 case $ac_word in
12934 i?86 | x86_64 | ppc | ppc64)
12935 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12936 ac_arch=$ac_word
12937 else
12938 ac_cv_c_bigendian=universal
12939 break
12940 fi
12941 ;;
12942 esac
12943 ac_prev=
12944 elif test "x$ac_word" = "x-arch"; then
12945 ac_prev=arch
12946 fi
12947 done
12948fi
12949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12950 if test $ac_cv_c_bigendian = unknown; then
12951 # See if sys/param.h defines the BYTE_ORDER macro.
12952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953/* end confdefs.h. */
12954#include <sys/types.h>
12955 #include <sys/param.h>
12956
12957int
12958main ()
12959{
12960#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12961 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12962 && LITTLE_ENDIAN)
12963 bogus endian macros
12964 #endif
12965
12966 ;
12967 return 0;
12968}
12969_ACEOF
12970if ac_fn_c_try_compile "$LINENO"; then :
12971 # It does; now see whether it defined to BIG_ENDIAN or not.
12972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12973/* end confdefs.h. */
12974#include <sys/types.h>
12975 #include <sys/param.h>
12976
12977int
12978main ()
12979{
12980#if BYTE_ORDER != BIG_ENDIAN
12981 not big endian
12982 #endif
12983
12984 ;
12985 return 0;
12986}
12987_ACEOF
12988if ac_fn_c_try_compile "$LINENO"; then :
12989 ac_cv_c_bigendian=yes
12990else
12991 ac_cv_c_bigendian=no
12992fi
12993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12994fi
12995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12996 fi
12997 if test $ac_cv_c_bigendian = unknown; then
12998 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000/* end confdefs.h. */
13001#include <limits.h>
13002
13003int
13004main ()
13005{
13006#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13007 bogus endian macros
13008 #endif
13009
13010 ;
13011 return 0;
13012}
13013_ACEOF
13014if 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 <limits.h>
13019
13020int
13021main ()
13022{
13023#ifndef _BIG_ENDIAN
13024 not big endian
13025 #endif
13026
13027 ;
13028 return 0;
13029}
13030_ACEOF
13031if ac_fn_c_try_compile "$LINENO"; then :
13032 ac_cv_c_bigendian=yes
13033else
13034 ac_cv_c_bigendian=no
13035fi
13036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13037fi
13038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13039 fi
13040 if test $ac_cv_c_bigendian = unknown; then
13041 # Compile a test program.
13042 if test "$cross_compiling" = yes; then :
13043 # Try to guess by grepping values from an object file.
13044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045/* end confdefs.h. */
13046short int ascii_mm[] =
13047 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13048 short int ascii_ii[] =
13049 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13050 int use_ascii (int i) {
13051 return ascii_mm[i] + ascii_ii[i];
13052 }
13053 short int ebcdic_ii[] =
13054 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13055 short int ebcdic_mm[] =
13056 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13057 int use_ebcdic (int i) {
13058 return ebcdic_mm[i] + ebcdic_ii[i];
13059 }
13060 extern int foo;
13061
13062int
13063main ()
13064{
13065return use_ascii (foo) == use_ebcdic (foo);
13066 ;
13067 return 0;
13068}
13069_ACEOF
13070if ac_fn_c_try_compile "$LINENO"; then :
13071 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13072 ac_cv_c_bigendian=yes
13073 fi
13074 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13075 if test "$ac_cv_c_bigendian" = unknown; then
13076 ac_cv_c_bigendian=no
13077 else
13078 # finding both strings is unlikely to happen, but who knows?
13079 ac_cv_c_bigendian=unknown
13080 fi
13081 fi
13082fi
13083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13084else
13085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13086/* end confdefs.h. */
13087$ac_includes_default
13088int
13089main ()
13090{
13091
13092 /* Are we little or big endian? From Harbison&Steele. */
13093 union
13094 {
13095 long int l;
13096 char c[sizeof (long int)];
13097 } u;
13098 u.l = 1;
13099 return u.c[sizeof (long int) - 1] == 1;
13100
13101 ;
13102 return 0;
13103}
13104_ACEOF
13105if ac_fn_c_try_run "$LINENO"; then :
13106 ac_cv_c_bigendian=no
13107else
13108 ac_cv_c_bigendian=yes
13109fi
13110rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13111 conftest.$ac_objext conftest.beam conftest.$ac_ext
13112fi
13113
13114 fi
13115fi
13116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13117$as_echo "$ac_cv_c_bigendian" >&6; }
13118 case $ac_cv_c_bigendian in #(
13119 yes)
13120 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13121;; #(
13122 no)
13123 ;; #(
13124 universal)
13125
13126$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13127
13128 ;; #(
13129 *)
13130 as_fn_error $? "unknown endianness
13131 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13132 esac
13133
13134for ac_header in byteswap.h endian.h
0e65dfba 13135do :
a0486bac
JM
13136 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13137ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13138if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
0e65dfba 13139 cat >>confdefs.h <<_ACEOF
a0486bac 13140#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
0e65dfba
NA
13141_ACEOF
13142
13143fi
13144
13145done
13146
13147for ac_func in pread
13148do :
13149 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
13150if test "x$ac_cv_func_pread" = xyes; then :
13151 cat >>confdefs.h <<_ACEOF
13152#define HAVE_PREAD 1
13153_ACEOF
13154
13155fi
13156done
13157
6b22174f 13158
e755667f
NA
13159ac_fn_c_check_decl "$LINENO" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h>
13160"
13161if test "x$ac_cv_have_decl_bswap_16" = xyes; then :
13162 ac_have_decl=1
13163else
13164 ac_have_decl=0
13165fi
13166
13167cat >>confdefs.h <<_ACEOF
13168#define HAVE_DECL_BSWAP_16 $ac_have_decl
13169_ACEOF
13170ac_fn_c_check_decl "$LINENO" "bswap_32" "ac_cv_have_decl_bswap_32" "#include <byteswap.h>
13171"
13172if test "x$ac_cv_have_decl_bswap_32" = xyes; then :
13173 ac_have_decl=1
13174else
13175 ac_have_decl=0
13176fi
13177
13178cat >>confdefs.h <<_ACEOF
13179#define HAVE_DECL_BSWAP_32 $ac_have_decl
13180_ACEOF
13181ac_fn_c_check_decl "$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "#include <byteswap.h>
13182"
13183if test "x$ac_cv_have_decl_bswap_64" = xyes; then :
13184 ac_have_decl=1
13185else
13186 ac_have_decl=0
13187fi
13188
13189cat >>confdefs.h <<_ACEOF
13190#define HAVE_DECL_BSWAP_64 $ac_have_decl
13191_ACEOF
13192
43a61d7d
NA
13193ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
13194if test "x$ac_cv_have_decl_asprintf" = xyes; then :
13195 ac_have_decl=1
13196else
13197 ac_have_decl=0
13198fi
13199
13200cat >>confdefs.h <<_ACEOF
13201#define HAVE_DECL_ASPRINTF $ac_have_decl
13202_ACEOF
13203ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
13204if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
13205 ac_have_decl=1
13206else
13207 ac_have_decl=0
13208fi
13209
13210cat >>confdefs.h <<_ACEOF
13211#define HAVE_DECL_VASPRINTF $ac_have_decl
13212_ACEOF
0f0c11f7
NA
13213ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13214if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
13215 ac_have_decl=1
13216else
13217 ac_have_decl=0
13218fi
13219
13220cat >>confdefs.h <<_ACEOF
13221#define HAVE_DECL_STPCPY $ac_have_decl
13222_ACEOF
43a61d7d 13223
3a657c60 13224
6b22174f
NA
13225
13226
13227
13228 for ac_func in $ac_func_list
13229do :
13230 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13231ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13232if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13233 cat >>confdefs.h <<_ACEOF
13234#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13235_ACEOF
13236
a0486bac 13237fi
6b22174f 13238done
a0486bac 13239
6b22174f
NA
13240
13241
13242
13243if test $ac_cv_func_qsort_r = yes; then
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qsort_r signature" >&5
13245$as_echo_n "checking for qsort_r signature... " >&6; }
13246if ${ac_cv_libctf_qsort_r_signature+:} false; then :
13247 $as_echo_n "(cached) " >&6
13248else
13249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250/* end confdefs.h. */
13251#undef qsort_r
13252 #include <stdlib.h>
13253 void qsort_r (void *, size_t, size_t,
13254 int (*) (void const *, void const *,
13255 void *),
13256 void *);
13257 void (*p) (void *, size_t, size_t,
13258 int (*) (void const *, void const *,
13259 void *),
13260 void *) = qsort_r;
13261
13262int
13263main ()
13264{
13265
13266 ;
13267 return 0;
13268}
a0486bac 13269_ACEOF
6b22174f
NA
13270if ac_fn_c_try_link "$LINENO"; then :
13271 ac_cv_libctf_qsort_r_signature=GNU
13272else
13273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13274/* end confdefs.h. */
13275#undef qsort_r
13276 #include <stdlib.h>
13277 void qsort_r (void *, size_t, size_t, void *,
13278 int (*) (void *,
13279 void const *,
13280 void const *));
13281 void (*p) (void *, size_t, size_t, void *,
13282 int (*) (void *, void const *,
13283 void const *)) = qsort_r;
13284
13285int
13286main ()
13287{
a0486bac 13288
6b22174f
NA
13289 ;
13290 return 0;
13291}
13292_ACEOF
13293if ac_fn_c_try_link "$LINENO"; then :
13294 ac_cv_libctf_qsort_r_signature=BSD
13295else
13296 ac_cv_libctf_qsort_r_signature=unknown
13297fi
13298rm -f core conftest.err conftest.$ac_objext \
13299 conftest$ac_exeext conftest.$ac_ext
13300fi
13301rm -f core conftest.err conftest.$ac_objext \
13302 conftest$ac_exeext conftest.$ac_ext
13303fi
13304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_qsort_r_signature" >&5
13305$as_echo "$ac_cv_libctf_qsort_r_signature" >&6; }
13306fi
13307
13308case x$ac_cv_libctf_qsort_r_signature in
13309 xGNU)
13310$as_echo "#define HAVE_QSORT_R_ARG_LAST 1" >>confdefs.h
13311;;
13312 xBSD)
13313$as_echo "#define HAVE_QSORT_R_COMPAR_LAST 1" >>confdefs.h
13314;;
13315 *) ac_cv_libctf_qsort_r_signature=unknown;;
a0486bac
JM
13316esac
13317
6b22174f
NA
13318 if test "${ac_cv_libctf_qsort_r_signature}" = unknown; then
13319 NEED_CTF_QSORT_R_TRUE=
13320 NEED_CTF_QSORT_R_FALSE='#'
13321else
13322 NEED_CTF_QSORT_R_TRUE='#'
13323 NEED_CTF_QSORT_R_FALSE=
13324fi
13325
0e65dfba 13326
ad118caa
NA
13327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
13328$as_echo_n "checking for O_CLOEXEC... " >&6; }
13329if ${ac_cv_libctf_macro_O_CLOEXEC+:} false; then :
13330 $as_echo_n "(cached) " >&6
13331else
13332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13333/* end confdefs.h. */
13334#include <fcntl.h>
13335 #ifndef O_CLOEXEC
13336 choke me;
13337 #endif
13338
13339int
13340main ()
13341{
13342return O_CLOEXEC;
13343 ;
13344 return 0;
13345}
13346_ACEOF
13347if ac_fn_c_try_link "$LINENO"; then :
13348 ac_cv_libctf_macro_O_CLOEXEC=yes
13349else
13350 ac_cv_libctf_macro_O_CLOEXEC=no
13351fi
13352rm -f core conftest.err conftest.$ac_objext \
13353 conftest$ac_exeext conftest.$ac_ext
13354fi
87279e3c
NA
13355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_macro_O_CLOEXEC" >&5
13356$as_echo "$ac_cv_libctf_macro_O_CLOEXEC" >&6; }
13357
13358if test $ac_cv_libctf_macro_O_CLOEXEC = yes; then
13359
13360$as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
13361
13362fi
13363
1038406a 13364CTF_LIBADD="-L`pwd`/../libiberty -liberty"
87279e3c 13365SHARED_LDFLAGS=
95148614
NA
13366
13367# Horrible hacks to build DLLs on Windows and a shared library elsewhere.
87279e3c
NA
13368if test "$enable_shared" = "yes"; then
13369# When building a shared libctf, link against the pic version of libiberty
13370# so that apps that use libctf won't need libiberty just to satisfy any
95148614
NA
13371# libctf references. We can't do that if a pic libiberty is unavailable
13372# since including non-pic # code would insert text relocations into libctf.
87279e3c
NA
13373# Note that linking against libbfd as we do here, which is itself linked
13374# against libiberty, may not satisfy all the libctf libiberty references
13375# since libbfd may not pull in the entirety of libiberty.
95148614
NA
13376# Also, jam libintl into the right place in all of this: after libiberty,
13377# which uses it, but before -lcygwin, which it uses.
87279e3c
NA
13378 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
13379 if test -n "$x"; then
1038406a 13380 CTF_LIBADD="-L`pwd`/../libiberty/pic -liberty"
87279e3c 13381 fi
95148614
NA
13382fi
13383
13384CTF_LIBADD="$CTF_LIBADD $LIBINTL"
87279e3c 13385
95148614 13386if test "$enable_shared" = "yes"; then
87279e3c
NA
13387 case "${host}" in
13388 # More hacks to build DLLs on Windows.
13389 *-*-cygwin*)
13390 SHARED_LDFLAGS="-no-undefined"
95148614 13391 CTF_LIBADD="$CTF_LIBADD -lcygwin"
87279e3c
NA
13392 ;;
13393 esac
13394fi
13395
13396
ad118caa 13397
cbd8f5bb
NA
13398# Extract the first word of "expect", so it can be a program name with args.
13399set dummy expect; ac_word=$2
13400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13401$as_echo_n "checking for $ac_word... " >&6; }
13402if ${ac_cv_path_EXPECT+:} false; then :
13403 $as_echo_n "(cached) " >&6
13404else
13405 case $EXPECT in
13406 [\\/]* | ?:[\\/]*)
13407 ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
13408 ;;
13409 *)
13410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13411for as_dir in $PATH
13412do
13413 IFS=$as_save_IFS
13414 test -z "$as_dir" && as_dir=.
13415 for ac_exec_ext in '' $ac_executable_extensions; do
13416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13417 ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
13418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13419 break 2
13420 fi
13421done
13422 done
13423IFS=$as_save_IFS
13424
13425 ;;
13426esac
13427fi
13428EXPECT=$ac_cv_path_EXPECT
13429if test -n "$EXPECT"; then
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
13431$as_echo "$EXPECT" >&6; }
13432else
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13434$as_echo "no" >&6; }
13435fi
13436
13437
13438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl supporting try/catch" >&5
13439$as_echo_n "checking for Tcl supporting try/catch... " >&6; }
13440if ${ac_cv_libctf_tcl_try+:} false; then :
13441 $as_echo_n "(cached) " >&6
13442else
13443 ac_cv_libctf_tcl_try=`if test -z $EXPECT; then echo no; else $EXPECT << EOF
13444if [llength [info commands try]] then { puts yes } else { puts no }
13445EOF
13446fi`
13447
13448fi
13449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_tcl_try" >&5
13450$as_echo "$ac_cv_libctf_tcl_try" >&6; }
13451 if test "${ac_cv_libctf_tcl_try}" = yes; then
13452 TCL_TRY_TRUE=
13453 TCL_TRY_FALSE='#'
13454else
13455 TCL_TRY_TRUE='#'
13456 TCL_TRY_FALSE=
13457fi
13458
13459
87279e3c
NA
13460# Use a version script, if possible, or an -export-symbols-regex otherwise.
13461VERSION_FLAGS='-export-symbols-regex ctf_.*'
13462if $LD --help 2>&1 | grep -- --version-script >/dev/null; then
13463 VERSION_FLAGS="-Wl,--version-script='$srcdir/libctf.ver'"
ad118caa
NA
13464fi
13465
87279e3c 13466
0e65dfba
NA
13467ac_config_files="$ac_config_files Makefile"
13468
13469ac_config_headers="$ac_config_headers config.h"
13470
13471cat >confcache <<\_ACEOF
13472# This file is a shell script that caches the results of configure
13473# tests run on this system so they can be shared between configure
13474# scripts and configure runs, see configure's option --config-cache.
13475# It is not useful on other systems. If it contains results you don't
13476# want to keep, you may remove or edit it.
13477#
13478# config.status only pays attention to the cache file if you give it
13479# the --recheck option to rerun configure.
13480#
13481# `ac_cv_env_foo' variables (set or unset) will be overridden when
13482# loading this file, other *unset* `ac_cv_foo' will be assigned the
13483# following values.
13484
13485_ACEOF
13486
13487# The following way of writing the cache mishandles newlines in values,
13488# but we know of no workaround that is simple, portable, and efficient.
13489# So, we kill variables containing newlines.
13490# Ultrix sh set writes to stderr and can't be redirected directly,
13491# and sets the high bit in the cache file unless we assign to the vars.
13492(
13493 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13494 eval ac_val=\$$ac_var
13495 case $ac_val in #(
13496 *${as_nl}*)
13497 case $ac_var in #(
13498 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13499$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13500 esac
13501 case $ac_var in #(
13502 _ | IFS | as_nl) ;; #(
13503 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13504 *) { eval $ac_var=; unset $ac_var;} ;;
13505 esac ;;
13506 esac
13507 done
13508
13509 (set) 2>&1 |
13510 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13511 *${as_nl}ac_space=\ *)
13512 # `set' does not quote correctly, so add quotes: double-quote
13513 # substitution turns \\\\ into \\, and sed turns \\ into \.
13514 sed -n \
13515 "s/'/'\\\\''/g;
13516 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13517 ;; #(
13518 *)
13519 # `set' quotes correctly as required by POSIX, so do not add quotes.
13520 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13521 ;;
13522 esac |
13523 sort
13524) |
13525 sed '
13526 /^ac_cv_env_/b end
13527 t clear
13528 :clear
13529 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13530 t end
13531 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13532 :end' >>confcache
13533if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13534 if test -w "$cache_file"; then
13535 if test "x$cache_file" != "x/dev/null"; then
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13537$as_echo "$as_me: updating cache $cache_file" >&6;}
13538 if test ! -f "$cache_file" || test -h "$cache_file"; then
13539 cat confcache >"$cache_file"
13540 else
13541 case $cache_file in #(
13542 */* | ?:*)
13543 mv -f confcache "$cache_file"$$ &&
13544 mv -f "$cache_file"$$ "$cache_file" ;; #(
13545 *)
13546 mv -f confcache "$cache_file" ;;
13547 esac
13548 fi
13549 fi
13550 else
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13552$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13553 fi
13554fi
13555rm -f confcache
13556
13557test "x$prefix" = xNONE && prefix=$ac_default_prefix
13558# Let make expand exec_prefix.
13559test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13560
13561DEFS=-DHAVE_CONFIG_H
13562
13563ac_libobjs=
13564ac_ltlibobjs=
13565U=
13566for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13567 # 1. Remove the extension, and $U if already installed.
13568 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13569 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13570 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13571 # will be set to the directory where LIBOBJS objects are built.
13572 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13573 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13574done
13575LIBOBJS=$ac_libobjs
13576
13577LTLIBOBJS=$ac_ltlibobjs
13578
13579
13580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13581$as_echo_n "checking that generated files are newer than configure... " >&6; }
13582 if test -n "$am_sleep_pid"; then
13583 # Hide warnings about reused PIDs.
13584 wait $am_sleep_pid 2>/dev/null
13585 fi
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13587$as_echo "done" >&6; }
13588if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13589 as_fn_error $? "conditional \"AMDEP\" was never defined.
13590Usually this means the macro was only invoked conditionally." "$LINENO" 5
13591fi
13592if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13593 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13594Usually this means the macro was only invoked conditionally." "$LINENO" 5
13595fi
13596 if test -n "$EXEEXT"; then
13597 am__EXEEXT_TRUE=
13598 am__EXEEXT_FALSE='#'
13599else
13600 am__EXEEXT_TRUE='#'
13601 am__EXEEXT_FALSE=
13602fi
13603
13604if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13605 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13606Usually this means the macro was only invoked conditionally." "$LINENO" 5
13607fi
87279e3c
NA
13608if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
13609 as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined.
13610Usually this means the macro was only invoked conditionally." "$LINENO" 5
13611fi
a9b98702
NA
13612if test -z "${ENABLE_LIBCTF_HASH_DEBUGGING_TRUE}" && test -z "${ENABLE_LIBCTF_HASH_DEBUGGING_FALSE}"; then
13613 as_fn_error $? "conditional \"ENABLE_LIBCTF_HASH_DEBUGGING\" was never defined.
13614Usually this means the macro was only invoked conditionally." "$LINENO" 5
13615fi
0e65dfba 13616
6b22174f
NA
13617if test -z "${NEED_CTF_QSORT_R_TRUE}" && test -z "${NEED_CTF_QSORT_R_FALSE}"; then
13618 as_fn_error $? "conditional \"NEED_CTF_QSORT_R\" was never defined.
13619Usually this means the macro was only invoked conditionally." "$LINENO" 5
13620fi
cbd8f5bb
NA
13621if test -z "${TCL_TRY_TRUE}" && test -z "${TCL_TRY_FALSE}"; then
13622 as_fn_error $? "conditional \"TCL_TRY\" was never defined.
13623Usually this means the macro was only invoked conditionally." "$LINENO" 5
13624fi
a0486bac 13625
0e65dfba
NA
13626: "${CONFIG_STATUS=./config.status}"
13627ac_write_fail=0
13628ac_clean_files_save=$ac_clean_files
13629ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13630{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13631$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13632as_write_fail=0
13633cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13634#! $SHELL
13635# Generated by $as_me.
13636# Run this file to recreate the current configuration.
13637# Compiler output produced by configure, useful for debugging
13638# configure, is in config.log if it exists.
13639
13640debug=false
13641ac_cs_recheck=false
13642ac_cs_silent=false
13643
13644SHELL=\${CONFIG_SHELL-$SHELL}
13645export SHELL
13646_ASEOF
13647cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13648## -------------------- ##
13649## M4sh Initialization. ##
13650## -------------------- ##
13651
13652# Be more Bourne compatible
13653DUALCASE=1; export DUALCASE # for MKS sh
13654if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13655 emulate sh
13656 NULLCMD=:
13657 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13658 # is contrary to our usage. Disable this feature.
13659 alias -g '${1+"$@"}'='"$@"'
13660 setopt NO_GLOB_SUBST
13661else
13662 case `(set -o) 2>/dev/null` in #(
13663 *posix*) :
13664 set -o posix ;; #(
13665 *) :
13666 ;;
13667esac
13668fi
13669
13670
13671as_nl='
13672'
13673export as_nl
13674# Printing a long string crashes Solaris 7 /usr/bin/printf.
13675as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13676as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13677as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13678# Prefer a ksh shell builtin over an external printf program on Solaris,
13679# but without wasting forks for bash or zsh.
13680if test -z "$BASH_VERSION$ZSH_VERSION" \
13681 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13682 as_echo='print -r --'
13683 as_echo_n='print -rn --'
13684elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13685 as_echo='printf %s\n'
13686 as_echo_n='printf %s'
13687else
13688 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13689 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13690 as_echo_n='/usr/ucb/echo -n'
13691 else
13692 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13693 as_echo_n_body='eval
13694 arg=$1;
13695 case $arg in #(
13696 *"$as_nl"*)
13697 expr "X$arg" : "X\\(.*\\)$as_nl";
13698 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13699 esac;
13700 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13701 '
13702 export as_echo_n_body
13703 as_echo_n='sh -c $as_echo_n_body as_echo'
13704 fi
13705 export as_echo_body
13706 as_echo='sh -c $as_echo_body as_echo'
13707fi
13708
13709# The user is always right.
13710if test "${PATH_SEPARATOR+set}" != set; then
13711 PATH_SEPARATOR=:
13712 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13713 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13714 PATH_SEPARATOR=';'
13715 }
13716fi
13717
13718
13719# IFS
13720# We need space, tab and new line, in precisely that order. Quoting is
13721# there to prevent editors from complaining about space-tab.
13722# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13723# splitting by setting IFS to empty value.)
13724IFS=" "" $as_nl"
13725
13726# Find who we are. Look in the path if we contain no directory separator.
13727as_myself=
13728case $0 in #((
13729 *[\\/]* ) as_myself=$0 ;;
13730 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13731for as_dir in $PATH
13732do
13733 IFS=$as_save_IFS
13734 test -z "$as_dir" && as_dir=.
13735 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13736 done
13737IFS=$as_save_IFS
13738
13739 ;;
13740esac
13741# We did not find ourselves, most probably we were run as `sh COMMAND'
13742# in which case we are not to be found in the path.
13743if test "x$as_myself" = x; then
13744 as_myself=$0
13745fi
13746if test ! -f "$as_myself"; then
13747 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13748 exit 1
13749fi
13750
13751# Unset variables that we do not need and which cause bugs (e.g. in
13752# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13753# suppresses any "Segmentation fault" message there. '((' could
13754# trigger a bug in pdksh 5.2.14.
13755for as_var in BASH_ENV ENV MAIL MAILPATH
13756do eval test x\${$as_var+set} = xset \
13757 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13758done
13759PS1='$ '
13760PS2='> '
13761PS4='+ '
13762
13763# NLS nuisances.
13764LC_ALL=C
13765export LC_ALL
13766LANGUAGE=C
13767export LANGUAGE
13768
13769# CDPATH.
13770(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13771
13772
13773# as_fn_error STATUS ERROR [LINENO LOG_FD]
13774# ----------------------------------------
13775# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13776# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13777# script with STATUS, using 1 if that was 0.
13778as_fn_error ()
13779{
13780 as_status=$1; test $as_status -eq 0 && as_status=1
13781 if test "$4"; then
13782 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13783 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13784 fi
13785 $as_echo "$as_me: error: $2" >&2
13786 as_fn_exit $as_status
13787} # as_fn_error
13788
13789
13790# as_fn_set_status STATUS
13791# -----------------------
13792# Set $? to STATUS, without forking.
13793as_fn_set_status ()
13794{
13795 return $1
13796} # as_fn_set_status
13797
13798# as_fn_exit STATUS
13799# -----------------
13800# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13801as_fn_exit ()
13802{
13803 set +e
13804 as_fn_set_status $1
13805 exit $1
13806} # as_fn_exit
13807
13808# as_fn_unset VAR
13809# ---------------
13810# Portably unset VAR.
13811as_fn_unset ()
13812{
13813 { eval $1=; unset $1;}
13814}
13815as_unset=as_fn_unset
13816# as_fn_append VAR VALUE
13817# ----------------------
13818# Append the text in VALUE to the end of the definition contained in VAR. Take
13819# advantage of any shell optimizations that allow amortized linear growth over
13820# repeated appends, instead of the typical quadratic growth present in naive
13821# implementations.
13822if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13823 eval 'as_fn_append ()
13824 {
13825 eval $1+=\$2
13826 }'
13827else
13828 as_fn_append ()
13829 {
13830 eval $1=\$$1\$2
13831 }
13832fi # as_fn_append
13833
13834# as_fn_arith ARG...
13835# ------------------
13836# Perform arithmetic evaluation on the ARGs, and store the result in the
13837# global $as_val. Take advantage of shells that can avoid forks. The arguments
13838# must be portable across $(()) and expr.
13839if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13840 eval 'as_fn_arith ()
13841 {
13842 as_val=$(( $* ))
13843 }'
13844else
13845 as_fn_arith ()
13846 {
13847 as_val=`expr "$@" || test $? -eq 1`
13848 }
13849fi # as_fn_arith
13850
13851
13852if expr a : '\(a\)' >/dev/null 2>&1 &&
13853 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13854 as_expr=expr
13855else
13856 as_expr=false
13857fi
13858
13859if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13860 as_basename=basename
13861else
13862 as_basename=false
13863fi
13864
13865if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13866 as_dirname=dirname
13867else
13868 as_dirname=false
13869fi
13870
13871as_me=`$as_basename -- "$0" ||
13872$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13873 X"$0" : 'X\(//\)$' \| \
13874 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13875$as_echo X/"$0" |
13876 sed '/^.*\/\([^/][^/]*\)\/*$/{
13877 s//\1/
13878 q
13879 }
13880 /^X\/\(\/\/\)$/{
13881 s//\1/
13882 q
13883 }
13884 /^X\/\(\/\).*/{
13885 s//\1/
13886 q
13887 }
13888 s/.*/./; q'`
13889
13890# Avoid depending upon Character Ranges.
13891as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13892as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13893as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13894as_cr_digits='0123456789'
13895as_cr_alnum=$as_cr_Letters$as_cr_digits
13896
13897ECHO_C= ECHO_N= ECHO_T=
13898case `echo -n x` in #(((((
13899-n*)
13900 case `echo 'xy\c'` in
13901 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13902 xy) ECHO_C='\c';;
13903 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13904 ECHO_T=' ';;
13905 esac;;
13906*)
13907 ECHO_N='-n';;
13908esac
13909
13910rm -f conf$$ conf$$.exe conf$$.file
13911if test -d conf$$.dir; then
13912 rm -f conf$$.dir/conf$$.file
13913else
13914 rm -f conf$$.dir
13915 mkdir conf$$.dir 2>/dev/null
13916fi
13917if (echo >conf$$.file) 2>/dev/null; then
13918 if ln -s conf$$.file conf$$ 2>/dev/null; then
13919 as_ln_s='ln -s'
13920 # ... but there are two gotchas:
13921 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13922 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13923 # In both cases, we have to default to `cp -pR'.
13924 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13925 as_ln_s='cp -pR'
13926 elif ln conf$$.file conf$$ 2>/dev/null; then
13927 as_ln_s=ln
13928 else
13929 as_ln_s='cp -pR'
13930 fi
13931else
13932 as_ln_s='cp -pR'
13933fi
13934rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13935rmdir conf$$.dir 2>/dev/null
13936
13937
13938# as_fn_mkdir_p
13939# -------------
13940# Create "$as_dir" as a directory, including parents if necessary.
13941as_fn_mkdir_p ()
13942{
13943
13944 case $as_dir in #(
13945 -*) as_dir=./$as_dir;;
13946 esac
13947 test -d "$as_dir" || eval $as_mkdir_p || {
13948 as_dirs=
13949 while :; do
13950 case $as_dir in #(
13951 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13952 *) as_qdir=$as_dir;;
13953 esac
13954 as_dirs="'$as_qdir' $as_dirs"
13955 as_dir=`$as_dirname -- "$as_dir" ||
13956$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13957 X"$as_dir" : 'X\(//\)[^/]' \| \
13958 X"$as_dir" : 'X\(//\)$' \| \
13959 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13960$as_echo X"$as_dir" |
13961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13962 s//\1/
13963 q
13964 }
13965 /^X\(\/\/\)[^/].*/{
13966 s//\1/
13967 q
13968 }
13969 /^X\(\/\/\)$/{
13970 s//\1/
13971 q
13972 }
13973 /^X\(\/\).*/{
13974 s//\1/
13975 q
13976 }
13977 s/.*/./; q'`
13978 test -d "$as_dir" && break
13979 done
13980 test -z "$as_dirs" || eval "mkdir $as_dirs"
13981 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13982
13983
13984} # as_fn_mkdir_p
13985if mkdir -p . 2>/dev/null; then
13986 as_mkdir_p='mkdir -p "$as_dir"'
13987else
13988 test -d ./-p && rmdir ./-p
13989 as_mkdir_p=false
13990fi
13991
13992
13993# as_fn_executable_p FILE
13994# -----------------------
13995# Test if FILE is an executable regular file.
13996as_fn_executable_p ()
13997{
13998 test -f "$1" && test -x "$1"
13999} # as_fn_executable_p
14000as_test_x='test -x'
14001as_executable_p=as_fn_executable_p
14002
14003# Sed expression to map a string onto a valid CPP name.
14004as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14005
14006# Sed expression to map a string onto a valid variable name.
14007as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14008
14009
14010exec 6>&1
14011## ----------------------------------- ##
14012## Main body of $CONFIG_STATUS script. ##
14013## ----------------------------------- ##
14014_ASEOF
14015test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14016
14017cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14018# Save the log message, to keep $0 and so on meaningful, and to
14019# report actual input values of CONFIG_FILES etc. instead of their
14020# values after options handling.
14021ac_log="
987cf30a 14022This file was extended by libctf $as_me 1.2.0, which was
0e65dfba
NA
14023generated by GNU Autoconf 2.69. Invocation command line was
14024
14025 CONFIG_FILES = $CONFIG_FILES
14026 CONFIG_HEADERS = $CONFIG_HEADERS
14027 CONFIG_LINKS = $CONFIG_LINKS
14028 CONFIG_COMMANDS = $CONFIG_COMMANDS
14029 $ $0 $@
14030
14031on `(hostname || uname -n) 2>/dev/null | sed 1q`
14032"
14033
14034_ACEOF
14035
14036case $ac_config_files in *"
14037"*) set x $ac_config_files; shift; ac_config_files=$*;;
14038esac
14039
14040case $ac_config_headers in *"
14041"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14042esac
14043
14044
14045cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14046# Files that config.status was made for.
14047config_files="$ac_config_files"
14048config_headers="$ac_config_headers"
14049config_commands="$ac_config_commands"
14050
14051_ACEOF
14052
14053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14054ac_cs_usage="\
14055\`$as_me' instantiates files and other configuration actions
14056from templates according to the current configuration. Unless the files
14057and actions are specified as TAGs, all are instantiated by default.
14058
14059Usage: $0 [OPTION]... [TAG]...
14060
14061 -h, --help print this help, then exit
14062 -V, --version print version number and configuration settings, then exit
14063 --config print configuration, then exit
14064 -q, --quiet, --silent
14065 do not print progress messages
14066 -d, --debug don't remove temporary files
14067 --recheck update $as_me by reconfiguring in the same conditions
14068 --file=FILE[:TEMPLATE]
14069 instantiate the configuration file FILE
14070 --header=FILE[:TEMPLATE]
14071 instantiate the configuration header FILE
14072
14073Configuration files:
14074$config_files
14075
14076Configuration headers:
14077$config_headers
14078
14079Configuration commands:
14080$config_commands
14081
14082Report bugs to the package provider."
14083
14084_ACEOF
14085cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14086ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14087ac_cs_version="\\
987cf30a 14088libctf config.status 1.2.0
0e65dfba
NA
14089configured by $0, generated by GNU Autoconf 2.69,
14090 with options \\"\$ac_cs_config\\"
14091
3a3a077c 14092Copyright (C) 2012 Free Software Foundation, Inc.
0e65dfba
NA
14093This config.status script is free software; the Free Software Foundation
14094gives unlimited permission to copy, distribute and modify it."
14095
14096ac_pwd='$ac_pwd'
14097srcdir='$srcdir'
14098INSTALL='$INSTALL'
14099MKDIR_P='$MKDIR_P'
14100AWK='$AWK'
14101test -n "\$AWK" || AWK=awk
14102_ACEOF
14103
14104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14105# The default lists apply if the user does not specify any file.
14106ac_need_defaults=:
14107while test $# != 0
14108do
14109 case $1 in
14110 --*=?*)
14111 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14112 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14113 ac_shift=:
14114 ;;
14115 --*=)
14116 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14117 ac_optarg=
14118 ac_shift=:
14119 ;;
14120 *)
14121 ac_option=$1
14122 ac_optarg=$2
14123 ac_shift=shift
14124 ;;
14125 esac
14126
14127 case $ac_option in
14128 # Handling of the options.
14129 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14130 ac_cs_recheck=: ;;
14131 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14132 $as_echo "$ac_cs_version"; exit ;;
14133 --config | --confi | --conf | --con | --co | --c )
14134 $as_echo "$ac_cs_config"; exit ;;
14135 --debug | --debu | --deb | --de | --d | -d )
14136 debug=: ;;
14137 --file | --fil | --fi | --f )
14138 $ac_shift
14139 case $ac_optarg in
14140 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14141 '') as_fn_error $? "missing file argument" ;;
14142 esac
14143 as_fn_append CONFIG_FILES " '$ac_optarg'"
14144 ac_need_defaults=false;;
14145 --header | --heade | --head | --hea )
14146 $ac_shift
14147 case $ac_optarg in
14148 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14149 esac
14150 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14151 ac_need_defaults=false;;
14152 --he | --h)
14153 # Conflict between --help and --header
14154 as_fn_error $? "ambiguous option: \`$1'
14155Try \`$0 --help' for more information.";;
14156 --help | --hel | -h )
14157 $as_echo "$ac_cs_usage"; exit ;;
14158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14159 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14160 ac_cs_silent=: ;;
14161
14162 # This is an error.
14163 -*) as_fn_error $? "unrecognized option: \`$1'
14164Try \`$0 --help' for more information." ;;
14165
14166 *) as_fn_append ac_config_targets " $1"
14167 ac_need_defaults=false ;;
14168
14169 esac
14170 shift
14171done
14172
14173ac_configure_extra_args=
14174
14175if $ac_cs_silent; then
14176 exec 6>/dev/null
14177 ac_configure_extra_args="$ac_configure_extra_args --silent"
14178fi
14179
14180_ACEOF
14181cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14182if \$ac_cs_recheck; then
14183 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14184 shift
14185 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14186 CONFIG_SHELL='$SHELL'
14187 export CONFIG_SHELL
14188 exec "\$@"
14189fi
14190
14191_ACEOF
14192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14193exec 5>>config.log
14194{
14195 echo
14196 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14197## Running $as_me. ##
14198_ASBOX
14199 $as_echo "$ac_log"
14200} >&5
14201
14202_ACEOF
14203cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14204#
14205# INIT-COMMANDS
14206#
14207AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14208
87279e3c
NA
14209
14210# The HP-UX ksh and POSIX shell print the target directory to stdout
14211# if CDPATH is set.
14212(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14213
14214sed_quote_subst='$sed_quote_subst'
14215double_quote_subst='$double_quote_subst'
14216delay_variable_subst='$delay_variable_subst'
14217enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14218macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14219macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14220enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14221pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14222enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14223SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14224ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14225host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14226host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14227host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14228build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14229build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14230build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14231SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14232Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14233GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14234EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14235FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14236LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14237NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14238LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14239max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14240ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14241exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14242lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14243lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14244lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14245reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14246reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14247OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14248deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14249file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14250AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14251AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14252STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14253RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14254old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14255old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14256old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14257lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14258CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14259CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14260compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14261GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14262lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14263lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14264lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14265lt_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"`'
14266objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14267MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14268lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14269lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14270lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14271lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14272lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14273need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14274DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14275NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14276LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14277OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14278OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14279libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14280shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14281extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14282archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14283enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14284export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14285whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14286compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14287old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14288old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14289archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14290archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14291module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14292module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14293with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14294allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14295no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14296hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14297hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14298hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14299hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14300hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14301hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14302hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14303hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14304inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14305link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14306fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14307always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14308export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14309exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14310include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14311prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14312file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14313variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14314need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14315need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14316version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14317runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14318shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14319shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14320libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14321library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14322soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14323install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14324postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14325postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14326finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14327finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14328hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14329sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14330sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14331hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14332enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14333enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14334enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14335old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14336striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14337
14338LTCC='$LTCC'
14339LTCFLAGS='$LTCFLAGS'
14340compiler='$compiler_DEFAULT'
14341
14342# A function that is used when there is no print builtin or printf.
14343func_fallback_echo ()
14344{
14345 eval 'cat <<_LTECHO_EOF
14346\$1
14347_LTECHO_EOF'
14348}
14349
14350# Quote evaled strings.
14351for var in SHELL \
14352ECHO \
14353SED \
14354GREP \
14355EGREP \
14356FGREP \
14357LD \
14358NM \
14359LN_S \
14360lt_SP2NL \
14361lt_NL2SP \
14362reload_flag \
14363OBJDUMP \
14364deplibs_check_method \
14365file_magic_cmd \
14366AR \
14367AR_FLAGS \
14368STRIP \
14369RANLIB \
14370CC \
14371CFLAGS \
14372compiler \
14373lt_cv_sys_global_symbol_pipe \
14374lt_cv_sys_global_symbol_to_cdecl \
14375lt_cv_sys_global_symbol_to_c_name_address \
14376lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14377lt_prog_compiler_no_builtin_flag \
14378lt_prog_compiler_wl \
14379lt_prog_compiler_pic \
14380lt_prog_compiler_static \
14381lt_cv_prog_compiler_c_o \
14382need_locks \
14383DSYMUTIL \
14384NMEDIT \
14385LIPO \
14386OTOOL \
14387OTOOL64 \
14388shrext_cmds \
14389export_dynamic_flag_spec \
14390whole_archive_flag_spec \
14391compiler_needs_object \
14392with_gnu_ld \
14393allow_undefined_flag \
14394no_undefined_flag \
14395hardcode_libdir_flag_spec \
14396hardcode_libdir_flag_spec_ld \
14397hardcode_libdir_separator \
14398fix_srcfile_path \
14399exclude_expsyms \
14400include_expsyms \
14401file_list_spec \
14402variables_saved_for_relink \
14403libname_spec \
14404library_names_spec \
14405soname_spec \
14406install_override_mode \
14407finish_eval \
14408old_striplib \
14409striplib; do
14410 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14411 *[\\\\\\\`\\"\\\$]*)
14412 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14413 ;;
14414 *)
14415 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14416 ;;
14417 esac
14418done
14419
14420# Double-quote double-evaled strings.
14421for var in reload_cmds \
14422old_postinstall_cmds \
14423old_postuninstall_cmds \
14424old_archive_cmds \
14425extract_expsyms_cmds \
14426old_archive_from_new_cmds \
14427old_archive_from_expsyms_cmds \
14428archive_cmds \
14429archive_expsym_cmds \
14430module_cmds \
14431module_expsym_cmds \
14432export_symbols_cmds \
14433prelink_cmds \
14434postinstall_cmds \
14435postuninstall_cmds \
14436finish_cmds \
14437sys_lib_search_path_spec \
14438sys_lib_dlsearch_path_spec; do
14439 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14440 *[\\\\\\\`\\"\\\$]*)
14441 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14442 ;;
14443 *)
14444 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14445 ;;
14446 esac
14447done
14448
14449ac_aux_dir='$ac_aux_dir'
14450xsi_shell='$xsi_shell'
14451lt_shell_append='$lt_shell_append'
14452
14453# See if we are running on zsh, and set the options which allow our
14454# commands through without removal of \ escapes INIT.
14455if test -n "\${ZSH_VERSION+set}" ; then
14456 setopt NO_GLOB_SUBST
14457fi
14458
14459
14460 PACKAGE='$PACKAGE'
14461 VERSION='$VERSION'
14462 TIMESTAMP='$TIMESTAMP'
14463 RM='$RM'
14464 ofile='$ofile'
14465
14466
14467
14468
0e65dfba
NA
14469_ACEOF
14470
14471cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14472
14473# Handling of arguments.
14474for ac_config_target in $ac_config_targets
14475do
14476 case $ac_config_target in
14477 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
87279e3c 14478 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
0e65dfba
NA
14479 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14480 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14481
14482 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14483 esac
14484done
14485
14486
14487# If the user did not use the arguments to specify the items to instantiate,
14488# then the envvar interface is used. Set only those that are not.
14489# We use the long form for the default assignment because of an extremely
14490# bizarre bug on SunOS 4.1.3.
14491if $ac_need_defaults; then
14492 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14493 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14494 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14495fi
14496
14497# Have a temporary directory for convenience. Make it in the build tree
14498# simply because there is no reason against having it here, and in addition,
14499# creating and moving files from /tmp can sometimes cause problems.
14500# Hook for its removal unless debugging.
14501# Note that there is a small window in which the directory will not be cleaned:
14502# after its creation but before its name has been assigned to `$tmp'.
14503$debug ||
14504{
14505 tmp= ac_tmp=
14506 trap 'exit_status=$?
14507 : "${ac_tmp:=$tmp}"
14508 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14509' 0
14510 trap 'as_fn_exit 1' 1 2 13 15
14511}
14512# Create a (secure) tmp directory for tmp files.
14513
14514{
14515 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14516 test -d "$tmp"
14517} ||
14518{
14519 tmp=./conf$$-$RANDOM
14520 (umask 077 && mkdir "$tmp")
14521} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14522ac_tmp=$tmp
14523
14524# Set up the scripts for CONFIG_FILES section.
14525# No need to generate them if there are no CONFIG_FILES.
14526# This happens for instance with `./config.status config.h'.
14527if test -n "$CONFIG_FILES"; then
14528
14529
14530ac_cr=`echo X | tr X '\015'`
14531# On cygwin, bash can eat \r inside `` if the user requested igncr.
14532# But we know of no other shell where ac_cr would be empty at this
14533# point, so we can use a bashism as a fallback.
14534if test "x$ac_cr" = x; then
14535 eval ac_cr=\$\'\\r\'
14536fi
14537ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14538if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14539 ac_cs_awk_cr='\\r'
14540else
14541 ac_cs_awk_cr=$ac_cr
14542fi
14543
14544echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14545_ACEOF
14546
14547
14548{
14549 echo "cat >conf$$subs.awk <<_ACEOF" &&
14550 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14551 echo "_ACEOF"
14552} >conf$$subs.sh ||
14553 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14554ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14555ac_delim='%!_!# '
14556for ac_last_try in false false false false false :; do
14557 . ./conf$$subs.sh ||
14558 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14559
14560 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14561 if test $ac_delim_n = $ac_delim_num; then
14562 break
14563 elif $ac_last_try; then
14564 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14565 else
14566 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14567 fi
14568done
14569rm -f conf$$subs.sh
14570
14571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14572cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14573_ACEOF
14574sed -n '
14575h
14576s/^/S["/; s/!.*/"]=/
14577p
14578g
14579s/^[^!]*!//
14580:repl
14581t repl
14582s/'"$ac_delim"'$//
14583t delim
14584:nl
14585h
14586s/\(.\{148\}\)..*/\1/
14587t more1
14588s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14589p
14590n
14591b repl
14592:more1
14593s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14594p
14595g
14596s/.\{148\}//
14597t nl
14598:delim
14599h
14600s/\(.\{148\}\)..*/\1/
14601t more2
14602s/["\\]/\\&/g; s/^/"/; s/$/"/
14603p
14604b
14605:more2
14606s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14607p
14608g
14609s/.\{148\}//
14610t delim
14611' <conf$$subs.awk | sed '
14612/^[^""]/{
14613 N
14614 s/\n//
14615}
14616' >>$CONFIG_STATUS || ac_write_fail=1
14617rm -f conf$$subs.awk
14618cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14619_ACAWK
14620cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14621 for (key in S) S_is_set[key] = 1
14622 FS = "\a"
14623
14624}
14625{
14626 line = $ 0
14627 nfields = split(line, field, "@")
14628 substed = 0
14629 len = length(field[1])
14630 for (i = 2; i < nfields; i++) {
14631 key = field[i]
14632 keylen = length(key)
14633 if (S_is_set[key]) {
14634 value = S[key]
14635 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14636 len += length(value) + length(field[++i])
14637 substed = 1
14638 } else
14639 len += 1 + keylen
14640 }
14641
14642 print line
14643}
14644
14645_ACAWK
14646_ACEOF
14647cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14648if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14649 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14650else
14651 cat
14652fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14653 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14654_ACEOF
14655
14656# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14657# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14658# trailing colons and then remove the whole line if VPATH becomes empty
14659# (actually we leave an empty line to preserve line numbers).
14660if test "x$srcdir" = x.; then
14661 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14662h
14663s///
14664s/^/:/
14665s/[ ]*$/:/
14666s/:\$(srcdir):/:/g
14667s/:\${srcdir}:/:/g
14668s/:@srcdir@:/:/g
14669s/^:*//
14670s/:*$//
14671x
14672s/\(=[ ]*\).*/\1/
14673G
14674s/\n//
14675s/^[^=]*=[ ]*$//
14676}'
14677fi
14678
14679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14680fi # test -n "$CONFIG_FILES"
14681
14682# Set up the scripts for CONFIG_HEADERS section.
14683# No need to generate them if there are no CONFIG_HEADERS.
14684# This happens for instance with `./config.status Makefile'.
14685if test -n "$CONFIG_HEADERS"; then
14686cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14687BEGIN {
14688_ACEOF
14689
14690# Transform confdefs.h into an awk script `defines.awk', embedded as
14691# here-document in config.status, that substitutes the proper values into
14692# config.h.in to produce config.h.
14693
14694# Create a delimiter string that does not exist in confdefs.h, to ease
14695# handling of long lines.
14696ac_delim='%!_!# '
14697for ac_last_try in false false :; do
14698 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14699 if test -z "$ac_tt"; then
14700 break
14701 elif $ac_last_try; then
14702 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14703 else
14704 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14705 fi
14706done
14707
14708# For the awk script, D is an array of macro values keyed by name,
14709# likewise P contains macro parameters if any. Preserve backslash
14710# newline sequences.
14711
14712ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14713sed -n '
14714s/.\{148\}/&'"$ac_delim"'/g
14715t rset
14716:rset
14717s/^[ ]*#[ ]*define[ ][ ]*/ /
14718t def
14719d
14720:def
14721s/\\$//
14722t bsnl
14723s/["\\]/\\&/g
14724s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14725D["\1"]=" \3"/p
14726s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14727d
14728:bsnl
14729s/["\\]/\\&/g
14730s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14731D["\1"]=" \3\\\\\\n"\\/p
14732t cont
14733s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14734t cont
14735d
14736:cont
14737n
14738s/.\{148\}/&'"$ac_delim"'/g
14739t clear
14740:clear
14741s/\\$//
14742t bsnlc
14743s/["\\]/\\&/g; s/^/"/; s/$/"/p
14744d
14745:bsnlc
14746s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14747b cont
14748' <confdefs.h | sed '
14749s/'"$ac_delim"'/"\\\
14750"/g' >>$CONFIG_STATUS || ac_write_fail=1
14751
14752cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14753 for (key in D) D_is_set[key] = 1
14754 FS = "\a"
14755}
14756/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14757 line = \$ 0
14758 split(line, arg, " ")
14759 if (arg[1] == "#") {
14760 defundef = arg[2]
14761 mac1 = arg[3]
14762 } else {
14763 defundef = substr(arg[1], 2)
14764 mac1 = arg[2]
14765 }
14766 split(mac1, mac2, "(") #)
14767 macro = mac2[1]
14768 prefix = substr(line, 1, index(line, defundef) - 1)
14769 if (D_is_set[macro]) {
14770 # Preserve the white space surrounding the "#".
14771 print prefix "define", macro P[macro] D[macro]
14772 next
14773 } else {
14774 # Replace #undef with comments. This is necessary, for example,
14775 # in the case of _POSIX_SOURCE, which is predefined and required
14776 # on some systems where configure will not decide to define it.
14777 if (defundef == "undef") {
14778 print "/*", prefix defundef, macro, "*/"
14779 next
14780 }
14781 }
14782}
14783{ print }
14784_ACAWK
14785_ACEOF
14786cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14787 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14788fi # test -n "$CONFIG_HEADERS"
14789
14790
14791eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14792shift
14793for ac_tag
14794do
14795 case $ac_tag in
14796 :[FHLC]) ac_mode=$ac_tag; continue;;
14797 esac
14798 case $ac_mode$ac_tag in
14799 :[FHL]*:*);;
14800 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14801 :[FH]-) ac_tag=-:-;;
14802 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14803 esac
14804 ac_save_IFS=$IFS
14805 IFS=:
14806 set x $ac_tag
14807 IFS=$ac_save_IFS
14808 shift
14809 ac_file=$1
14810 shift
14811
14812 case $ac_mode in
14813 :L) ac_source=$1;;
14814 :[FH])
14815 ac_file_inputs=
14816 for ac_f
14817 do
14818 case $ac_f in
14819 -) ac_f="$ac_tmp/stdin";;
14820 *) # Look for the file first in the build tree, then in the source tree
14821 # (if the path is not absolute). The absolute path cannot be DOS-style,
14822 # because $ac_f cannot contain `:'.
14823 test -f "$ac_f" ||
14824 case $ac_f in
14825 [\\/$]*) false;;
14826 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14827 esac ||
14828 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14829 esac
14830 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14831 as_fn_append ac_file_inputs " '$ac_f'"
14832 done
14833
14834 # Let's still pretend it is `configure' which instantiates (i.e., don't
14835 # use $as_me), people would be surprised to read:
14836 # /* config.h. Generated by config.status. */
14837 configure_input='Generated from '`
14838 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14839 `' by configure.'
14840 if test x"$ac_file" != x-; then
14841 configure_input="$ac_file. $configure_input"
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14843$as_echo "$as_me: creating $ac_file" >&6;}
14844 fi
14845 # Neutralize special characters interpreted by sed in replacement strings.
14846 case $configure_input in #(
14847 *\&* | *\|* | *\\* )
14848 ac_sed_conf_input=`$as_echo "$configure_input" |
14849 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14850 *) ac_sed_conf_input=$configure_input;;
14851 esac
14852
14853 case $ac_tag in
14854 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14855 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14856 esac
14857 ;;
14858 esac
14859
14860 ac_dir=`$as_dirname -- "$ac_file" ||
14861$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14862 X"$ac_file" : 'X\(//\)[^/]' \| \
14863 X"$ac_file" : 'X\(//\)$' \| \
14864 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14865$as_echo X"$ac_file" |
14866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14867 s//\1/
14868 q
14869 }
14870 /^X\(\/\/\)[^/].*/{
14871 s//\1/
14872 q
14873 }
14874 /^X\(\/\/\)$/{
14875 s//\1/
14876 q
14877 }
14878 /^X\(\/\).*/{
14879 s//\1/
14880 q
14881 }
14882 s/.*/./; q'`
14883 as_dir="$ac_dir"; as_fn_mkdir_p
14884 ac_builddir=.
14885
14886case "$ac_dir" in
14887.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14888*)
14889 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14890 # A ".." for each directory in $ac_dir_suffix.
14891 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14892 case $ac_top_builddir_sub in
14893 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14894 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14895 esac ;;
14896esac
14897ac_abs_top_builddir=$ac_pwd
14898ac_abs_builddir=$ac_pwd$ac_dir_suffix
14899# for backward compatibility:
14900ac_top_builddir=$ac_top_build_prefix
14901
14902case $srcdir in
14903 .) # We are building in place.
14904 ac_srcdir=.
14905 ac_top_srcdir=$ac_top_builddir_sub
14906 ac_abs_top_srcdir=$ac_pwd ;;
14907 [\\/]* | ?:[\\/]* ) # Absolute name.
14908 ac_srcdir=$srcdir$ac_dir_suffix;
14909 ac_top_srcdir=$srcdir
14910 ac_abs_top_srcdir=$srcdir ;;
14911 *) # Relative name.
14912 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14913 ac_top_srcdir=$ac_top_build_prefix$srcdir
14914 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14915esac
14916ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14917
14918
14919 case $ac_mode in
14920 :F)
14921 #
14922 # CONFIG_FILE
14923 #
14924
14925 case $INSTALL in
14926 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14927 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14928 esac
14929 ac_MKDIR_P=$MKDIR_P
14930 case $MKDIR_P in
14931 [\\/$]* | ?:[\\/]* ) ;;
14932 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14933 esac
14934_ACEOF
14935
14936cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14937# If the template does not know about datarootdir, expand it.
14938# FIXME: This hack should be removed a few years after 2.60.
14939ac_datarootdir_hack=; ac_datarootdir_seen=
14940ac_sed_dataroot='
14941/datarootdir/ {
14942 p
14943 q
14944}
14945/@datadir@/p
14946/@docdir@/p
14947/@infodir@/p
14948/@localedir@/p
14949/@mandir@/p'
14950case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14951*datarootdir*) ac_datarootdir_seen=yes;;
14952*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14954$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14955_ACEOF
14956cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14957 ac_datarootdir_hack='
14958 s&@datadir@&$datadir&g
14959 s&@docdir@&$docdir&g
14960 s&@infodir@&$infodir&g
14961 s&@localedir@&$localedir&g
14962 s&@mandir@&$mandir&g
14963 s&\\\${datarootdir}&$datarootdir&g' ;;
14964esac
14965_ACEOF
14966
14967# Neutralize VPATH when `$srcdir' = `.'.
14968# Shell code in configure.ac might set extrasub.
14969# FIXME: do we really want to maintain this feature?
14970cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14971ac_sed_extra="$ac_vpsub
14972$extrasub
14973_ACEOF
14974cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14975:t
14976/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14977s|@configure_input@|$ac_sed_conf_input|;t t
14978s&@top_builddir@&$ac_top_builddir_sub&;t t
14979s&@top_build_prefix@&$ac_top_build_prefix&;t t
14980s&@srcdir@&$ac_srcdir&;t t
14981s&@abs_srcdir@&$ac_abs_srcdir&;t t
14982s&@top_srcdir@&$ac_top_srcdir&;t t
14983s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14984s&@builddir@&$ac_builddir&;t t
14985s&@abs_builddir@&$ac_abs_builddir&;t t
14986s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14987s&@INSTALL@&$ac_INSTALL&;t t
14988s&@MKDIR_P@&$ac_MKDIR_P&;t t
14989$ac_datarootdir_hack
14990"
14991eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14992 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14993
14994test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14995 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14996 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14997 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14999which seems to be undefined. Please make sure it is defined" >&5
15000$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15001which seems to be undefined. Please make sure it is defined" >&2;}
15002
15003 rm -f "$ac_tmp/stdin"
15004 case $ac_file in
15005 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15006 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15007 esac \
15008 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15009 ;;
15010 :H)
15011 #
15012 # CONFIG_HEADER
15013 #
15014 if test x"$ac_file" != x-; then
15015 {
15016 $as_echo "/* $configure_input */" \
15017 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15018 } >"$ac_tmp/config.h" \
15019 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15020 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15022$as_echo "$as_me: $ac_file is unchanged" >&6;}
15023 else
15024 rm -f "$ac_file"
15025 mv "$ac_tmp/config.h" "$ac_file" \
15026 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15027 fi
15028 else
15029 $as_echo "/* $configure_input */" \
15030 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15031 || as_fn_error $? "could not create -" "$LINENO" 5
15032 fi
15033# Compute "$ac_file"'s index in $config_headers.
15034_am_arg="$ac_file"
15035_am_stamp_count=1
15036for _am_header in $config_headers :; do
15037 case $_am_header in
15038 $_am_arg | $_am_arg:* )
15039 break ;;
15040 * )
15041 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15042 esac
15043done
15044echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15045$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15046 X"$_am_arg" : 'X\(//\)[^/]' \| \
15047 X"$_am_arg" : 'X\(//\)$' \| \
15048 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15049$as_echo X"$_am_arg" |
15050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15051 s//\1/
15052 q
15053 }
15054 /^X\(\/\/\)[^/].*/{
15055 s//\1/
15056 q
15057 }
15058 /^X\(\/\/\)$/{
15059 s//\1/
15060 q
15061 }
15062 /^X\(\/\).*/{
15063 s//\1/
15064 q
15065 }
15066 s/.*/./; q'`/stamp-h$_am_stamp_count
15067 ;;
15068
15069 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15070$as_echo "$as_me: executing $ac_file commands" >&6;}
15071 ;;
15072 esac
15073
15074
15075 case $ac_file$ac_mode in
15076 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15077 # Older Autoconf quotes --file arguments for eval, but not when files
15078 # are listed without --file. Let's play safe and only enable the eval
15079 # if we detect the quoting.
15080 case $CONFIG_FILES in
15081 *\'*) eval set x "$CONFIG_FILES" ;;
15082 *) set x $CONFIG_FILES ;;
15083 esac
15084 shift
15085 for mf
15086 do
15087 # Strip MF so we end up with the name of the file.
15088 mf=`echo "$mf" | sed -e 's/:.*$//'`
15089 # Check whether this is an Automake generated Makefile or not.
15090 # We used to match only the files named 'Makefile.in', but
15091 # some people rename them; so instead we look at the file content.
15092 # Grep'ing the first line is not enough: some people post-process
15093 # each Makefile.in and add a new line on top of each file to say so.
15094 # Grep'ing the whole file is not good either: AIX grep has a line
15095 # limit of 2048, but all sed's we know have understand at least 4000.
15096 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15097 dirpart=`$as_dirname -- "$mf" ||
15098$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15099 X"$mf" : 'X\(//\)[^/]' \| \
15100 X"$mf" : 'X\(//\)$' \| \
15101 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15102$as_echo X"$mf" |
15103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15104 s//\1/
15105 q
15106 }
15107 /^X\(\/\/\)[^/].*/{
15108 s//\1/
15109 q
15110 }
15111 /^X\(\/\/\)$/{
15112 s//\1/
15113 q
15114 }
15115 /^X\(\/\).*/{
15116 s//\1/
15117 q
15118 }
15119 s/.*/./; q'`
15120 else
15121 continue
15122 fi
15123 # Extract the definition of DEPDIR, am__include, and am__quote
15124 # from the Makefile without running 'make'.
15125 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15126 test -z "$DEPDIR" && continue
15127 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15128 test -z "$am__include" && continue
15129 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15130 # Find all dependency output files, they are included files with
15131 # $(DEPDIR) in their names. We invoke sed twice because it is the
15132 # simplest approach to changing $(DEPDIR) to its actual value in the
15133 # expansion.
15134 for file in `sed -n "
15135 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15136 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15137 # Make sure the directory exists.
15138 test -f "$dirpart/$file" && continue
15139 fdir=`$as_dirname -- "$file" ||
15140$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15141 X"$file" : 'X\(//\)[^/]' \| \
15142 X"$file" : 'X\(//\)$' \| \
15143 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15144$as_echo X"$file" |
15145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15146 s//\1/
15147 q
15148 }
15149 /^X\(\/\/\)[^/].*/{
15150 s//\1/
15151 q
15152 }
15153 /^X\(\/\/\)$/{
15154 s//\1/
15155 q
15156 }
15157 /^X\(\/\).*/{
15158 s//\1/
15159 q
15160 }
15161 s/.*/./; q'`
15162 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15163 # echo "creating $dirpart/$file"
15164 echo '# dummy' > "$dirpart/$file"
15165 done
15166 done
15167}
87279e3c
NA
15168 ;;
15169 "libtool":C)
15170
15171 # See if we are running on zsh, and set the options which allow our
15172 # commands through without removal of \ escapes.
15173 if test -n "${ZSH_VERSION+set}" ; then
15174 setopt NO_GLOB_SUBST
15175 fi
15176
15177 cfgfile="${ofile}T"
15178 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15179 $RM "$cfgfile"
15180
15181 cat <<_LT_EOF >> "$cfgfile"
15182#! $SHELL
15183
15184# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15185# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15186# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15187# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15188#
15189# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15190# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15191# Written by Gordon Matzigkeit, 1996
15192#
15193# This file is part of GNU Libtool.
15194#
15195# GNU Libtool is free software; you can redistribute it and/or
15196# modify it under the terms of the GNU General Public License as
15197# published by the Free Software Foundation; either version 2 of
15198# the License, or (at your option) any later version.
15199#
15200# As a special exception to the GNU General Public License,
15201# if you distribute this file as part of a program or library that
15202# is built using GNU Libtool, you may include this file under the
15203# same distribution terms that you use for the rest of that program.
15204#
15205# GNU Libtool is distributed in the hope that it will be useful,
15206# but WITHOUT ANY WARRANTY; without even the implied warranty of
15207# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15208# GNU General Public License for more details.
15209#
15210# You should have received a copy of the GNU General Public License
15211# along with GNU Libtool; see the file COPYING. If not, a copy
15212# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15213# obtained by writing to the Free Software Foundation, Inc.,
15214# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15215
15216
15217# The names of the tagged configurations supported by this script.
15218available_tags=""
15219
15220# ### BEGIN LIBTOOL CONFIG
15221
15222# Whether or not to build shared libraries.
15223build_libtool_libs=$enable_shared
15224
15225# Which release of libtool.m4 was used?
15226macro_version=$macro_version
15227macro_revision=$macro_revision
15228
15229# Whether or not to build static libraries.
15230build_old_libs=$enable_static
15231
15232# What type of objects to build.
15233pic_mode=$pic_mode
15234
15235# Whether or not to optimize for fast installation.
15236fast_install=$enable_fast_install
15237
15238# Shell to use when invoking shell scripts.
15239SHELL=$lt_SHELL
15240
15241# An echo program that protects backslashes.
15242ECHO=$lt_ECHO
15243
15244# The host system.
15245host_alias=$host_alias
15246host=$host
15247host_os=$host_os
15248
15249# The build system.
15250build_alias=$build_alias
15251build=$build
15252build_os=$build_os
15253
15254# A sed program that does not truncate output.
15255SED=$lt_SED
15256
15257# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15258Xsed="\$SED -e 1s/^X//"
15259
15260# A grep program that handles long lines.
15261GREP=$lt_GREP
15262
15263# An ERE matcher.
15264EGREP=$lt_EGREP
15265
15266# A literal string matcher.
15267FGREP=$lt_FGREP
15268
15269# A BSD- or MS-compatible name lister.
15270NM=$lt_NM
15271
15272# Whether we need soft or hard links.
15273LN_S=$lt_LN_S
15274
15275# What is the maximum length of a command?
15276max_cmd_len=$max_cmd_len
15277
15278# Object file suffix (normally "o").
15279objext=$ac_objext
15280
15281# Executable file suffix (normally "").
15282exeext=$exeext
15283
15284# whether the shell understands "unset".
15285lt_unset=$lt_unset
15286
15287# turn spaces into newlines.
15288SP2NL=$lt_lt_SP2NL
15289
15290# turn newlines into spaces.
15291NL2SP=$lt_lt_NL2SP
15292
15293# An object symbol dumper.
15294OBJDUMP=$lt_OBJDUMP
15295
15296# Method to check whether dependent libraries are shared objects.
15297deplibs_check_method=$lt_deplibs_check_method
15298
15299# Command to use when deplibs_check_method == "file_magic".
15300file_magic_cmd=$lt_file_magic_cmd
15301
15302# The archiver.
15303AR=$lt_AR
15304AR_FLAGS=$lt_AR_FLAGS
15305
15306# A symbol stripping program.
15307STRIP=$lt_STRIP
15308
15309# Commands used to install an old-style archive.
15310RANLIB=$lt_RANLIB
15311old_postinstall_cmds=$lt_old_postinstall_cmds
15312old_postuninstall_cmds=$lt_old_postuninstall_cmds
15313
15314# Whether to use a lock for old archive extraction.
15315lock_old_archive_extraction=$lock_old_archive_extraction
15316
15317# A C compiler.
15318LTCC=$lt_CC
15319
15320# LTCC compiler flags.
15321LTCFLAGS=$lt_CFLAGS
15322
15323# Take the output of nm and produce a listing of raw symbols and C names.
15324global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15325
15326# Transform the output of nm in a proper C declaration.
15327global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15328
15329# Transform the output of nm in a C name address pair.
15330global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15331
15332# Transform the output of nm in a C name address pair when lib prefix is needed.
15333global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15334
15335# The name of the directory that contains temporary libtool files.
15336objdir=$objdir
15337
15338# Used to examine libraries when file_magic_cmd begins with "file".
15339MAGIC_CMD=$MAGIC_CMD
15340
15341# Must we lock files when doing compilation?
15342need_locks=$lt_need_locks
15343
15344# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15345DSYMUTIL=$lt_DSYMUTIL
15346
15347# Tool to change global to local symbols on Mac OS X.
15348NMEDIT=$lt_NMEDIT
15349
15350# Tool to manipulate fat objects and archives on Mac OS X.
15351LIPO=$lt_LIPO
15352
15353# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15354OTOOL=$lt_OTOOL
15355
15356# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15357OTOOL64=$lt_OTOOL64
15358
15359# Old archive suffix (normally "a").
15360libext=$libext
15361
15362# Shared library suffix (normally ".so").
15363shrext_cmds=$lt_shrext_cmds
15364
15365# The commands to extract the exported symbol list from a shared archive.
15366extract_expsyms_cmds=$lt_extract_expsyms_cmds
15367
15368# Variables whose values should be saved in libtool wrapper scripts and
15369# restored at link time.
15370variables_saved_for_relink=$lt_variables_saved_for_relink
15371
15372# Do we need the "lib" prefix for modules?
15373need_lib_prefix=$need_lib_prefix
15374
15375# Do we need a version for libraries?
15376need_version=$need_version
15377
15378# Library versioning type.
15379version_type=$version_type
15380
15381# Shared library runtime path variable.
15382runpath_var=$runpath_var
15383
15384# Shared library path variable.
15385shlibpath_var=$shlibpath_var
15386
15387# Is shlibpath searched before the hard-coded library search path?
15388shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15389
15390# Format of library name prefix.
15391libname_spec=$lt_libname_spec
15392
15393# List of archive names. First name is the real one, the rest are links.
15394# The last name is the one that the linker finds with -lNAME
15395library_names_spec=$lt_library_names_spec
15396
15397# The coded name of the library, if different from the real name.
15398soname_spec=$lt_soname_spec
15399
15400# Permission mode override for installation of shared libraries.
15401install_override_mode=$lt_install_override_mode
15402
15403# Command to use after installation of a shared archive.
15404postinstall_cmds=$lt_postinstall_cmds
15405
15406# Command to use after uninstallation of a shared archive.
15407postuninstall_cmds=$lt_postuninstall_cmds
15408
15409# Commands used to finish a libtool library installation in a directory.
15410finish_cmds=$lt_finish_cmds
15411
15412# As "finish_cmds", except a single script fragment to be evaled but
15413# not shown.
15414finish_eval=$lt_finish_eval
15415
15416# Whether we should hardcode library paths into libraries.
15417hardcode_into_libs=$hardcode_into_libs
15418
15419# Compile-time system search path for libraries.
15420sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15421
15422# Run-time system search path for libraries.
15423sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15424
15425# Whether dlopen is supported.
15426dlopen_support=$enable_dlopen
15427
15428# Whether dlopen of programs is supported.
15429dlopen_self=$enable_dlopen_self
15430
15431# Whether dlopen of statically linked programs is supported.
15432dlopen_self_static=$enable_dlopen_self_static
15433
15434# Commands to strip libraries.
15435old_striplib=$lt_old_striplib
15436striplib=$lt_striplib
15437
15438
15439# The linker used to build libraries.
15440LD=$lt_LD
15441
15442# How to create reloadable object files.
15443reload_flag=$lt_reload_flag
15444reload_cmds=$lt_reload_cmds
15445
15446# Commands used to build an old-style archive.
15447old_archive_cmds=$lt_old_archive_cmds
15448
15449# A language specific compiler.
15450CC=$lt_compiler
15451
15452# Is the compiler the GNU compiler?
15453with_gcc=$GCC
15454
15455# Compiler flag to turn off builtin functions.
15456no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15457
15458# How to pass a linker flag through the compiler.
15459wl=$lt_lt_prog_compiler_wl
15460
15461# Additional compiler flags for building library objects.
15462pic_flag=$lt_lt_prog_compiler_pic
15463
15464# Compiler flag to prevent dynamic linking.
15465link_static_flag=$lt_lt_prog_compiler_static
15466
15467# Does compiler simultaneously support -c and -o options?
15468compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15469
15470# Whether or not to add -lc for building shared libraries.
15471build_libtool_need_lc=$archive_cmds_need_lc
15472
15473# Whether or not to disallow shared libs when runtime libs are static.
15474allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15475
15476# Compiler flag to allow reflexive dlopens.
15477export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15478
15479# Compiler flag to generate shared objects directly from archives.
15480whole_archive_flag_spec=$lt_whole_archive_flag_spec
15481
15482# Whether the compiler copes with passing no objects directly.
15483compiler_needs_object=$lt_compiler_needs_object
15484
15485# Create an old-style archive from a shared archive.
15486old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15487
15488# Create a temporary old-style archive to link instead of a shared archive.
15489old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15490
15491# Commands used to build a shared archive.
15492archive_cmds=$lt_archive_cmds
15493archive_expsym_cmds=$lt_archive_expsym_cmds
15494
15495# Commands used to build a loadable module if different from building
15496# a shared archive.
15497module_cmds=$lt_module_cmds
15498module_expsym_cmds=$lt_module_expsym_cmds
15499
15500# Whether we are building with GNU ld or not.
15501with_gnu_ld=$lt_with_gnu_ld
15502
15503# Flag that allows shared libraries with undefined symbols to be built.
15504allow_undefined_flag=$lt_allow_undefined_flag
15505
15506# Flag that enforces no undefined symbols.
15507no_undefined_flag=$lt_no_undefined_flag
15508
15509# Flag to hardcode \$libdir into a binary during linking.
15510# This must work even if \$libdir does not exist
15511hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15512
15513# If ld is used when linking, flag to hardcode \$libdir into a binary
15514# during linking. This must work even if \$libdir does not exist.
15515hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15516
15517# Whether we need a single "-rpath" flag with a separated argument.
15518hardcode_libdir_separator=$lt_hardcode_libdir_separator
15519
15520# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15521# DIR into the resulting binary.
15522hardcode_direct=$hardcode_direct
15523
15524# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15525# DIR into the resulting binary and the resulting library dependency is
15526# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15527# library is relocated.
15528hardcode_direct_absolute=$hardcode_direct_absolute
15529
15530# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15531# into the resulting binary.
15532hardcode_minus_L=$hardcode_minus_L
15533
15534# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15535# into the resulting binary.
15536hardcode_shlibpath_var=$hardcode_shlibpath_var
15537
15538# Set to "yes" if building a shared library automatically hardcodes DIR
15539# into the library and all subsequent libraries and executables linked
15540# against it.
15541hardcode_automatic=$hardcode_automatic
15542
15543# Set to yes if linker adds runtime paths of dependent libraries
15544# to runtime path list.
15545inherit_rpath=$inherit_rpath
15546
15547# Whether libtool must link a program against all its dependency libraries.
15548link_all_deplibs=$link_all_deplibs
15549
15550# Fix the shell variable \$srcfile for the compiler.
15551fix_srcfile_path=$lt_fix_srcfile_path
15552
15553# Set to "yes" if exported symbols are required.
15554always_export_symbols=$always_export_symbols
15555
15556# The commands to list exported symbols.
15557export_symbols_cmds=$lt_export_symbols_cmds
15558
15559# Symbols that should not be listed in the preloaded symbols.
15560exclude_expsyms=$lt_exclude_expsyms
15561
15562# Symbols that must always be exported.
15563include_expsyms=$lt_include_expsyms
15564
15565# Commands necessary for linking programs (against libraries) with templates.
15566prelink_cmds=$lt_prelink_cmds
15567
15568# Specify filename containing input files.
15569file_list_spec=$lt_file_list_spec
15570
15571# How to hardcode a shared library path into an executable.
15572hardcode_action=$hardcode_action
15573
15574# ### END LIBTOOL CONFIG
15575
15576_LT_EOF
15577
15578 case $host_os in
15579 aix3*)
15580 cat <<\_LT_EOF >> "$cfgfile"
15581# AIX sometimes has problems with the GCC collect2 program. For some
15582# reason, if we set the COLLECT_NAMES environment variable, the problems
15583# vanish in a puff of smoke.
15584if test "X${COLLECT_NAMES+set}" != Xset; then
15585 COLLECT_NAMES=
15586 export COLLECT_NAMES
15587fi
15588_LT_EOF
15589 ;;
15590 esac
15591
15592
15593ltmain="$ac_aux_dir/ltmain.sh"
15594
15595
15596 # We use sed instead of cat because bash on DJGPP gets confused if
15597 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15598 # text mode, it properly converts lines to CR/LF. This bash problem
15599 # is reportedly fixed, but why not run on old versions too?
15600 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15601 || (rm -f "$cfgfile"; exit 1)
15602
15603 case $xsi_shell in
15604 yes)
15605 cat << \_LT_EOF >> "$cfgfile"
15606
15607# func_dirname file append nondir_replacement
15608# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15609# otherwise set result to NONDIR_REPLACEMENT.
15610func_dirname ()
15611{
15612 case ${1} in
15613 */*) func_dirname_result="${1%/*}${2}" ;;
15614 * ) func_dirname_result="${3}" ;;
15615 esac
15616}
15617
15618# func_basename file
15619func_basename ()
15620{
15621 func_basename_result="${1##*/}"
15622}
15623
15624# func_dirname_and_basename file append nondir_replacement
15625# perform func_basename and func_dirname in a single function
15626# call:
15627# dirname: Compute the dirname of FILE. If nonempty,
15628# add APPEND to the result, otherwise set result
15629# to NONDIR_REPLACEMENT.
15630# value returned in "$func_dirname_result"
15631# basename: Compute filename of FILE.
15632# value retuned in "$func_basename_result"
15633# Implementation must be kept synchronized with func_dirname
15634# and func_basename. For efficiency, we do not delegate to
15635# those functions but instead duplicate the functionality here.
15636func_dirname_and_basename ()
15637{
15638 case ${1} in
15639 */*) func_dirname_result="${1%/*}${2}" ;;
15640 * ) func_dirname_result="${3}" ;;
15641 esac
15642 func_basename_result="${1##*/}"
15643}
15644
15645# func_stripname prefix suffix name
15646# strip PREFIX and SUFFIX off of NAME.
15647# PREFIX and SUFFIX must not contain globbing or regex special
15648# characters, hashes, percent signs, but SUFFIX may contain a leading
15649# dot (in which case that matches only a dot).
15650func_stripname ()
15651{
15652 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15653 # positional parameters, so assign one to ordinary parameter first.
15654 func_stripname_result=${3}
15655 func_stripname_result=${func_stripname_result#"${1}"}
15656 func_stripname_result=${func_stripname_result%"${2}"}
15657}
15658
15659# func_opt_split
15660func_opt_split ()
15661{
15662 func_opt_split_opt=${1%%=*}
15663 func_opt_split_arg=${1#*=}
15664}
15665
15666# func_lo2o object
15667func_lo2o ()
15668{
15669 case ${1} in
15670 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15671 *) func_lo2o_result=${1} ;;
15672 esac
15673}
15674
15675# func_xform libobj-or-source
15676func_xform ()
15677{
15678 func_xform_result=${1%.*}.lo
15679}
15680
15681# func_arith arithmetic-term...
15682func_arith ()
15683{
15684 func_arith_result=$(( $* ))
15685}
15686
15687# func_len string
15688# STRING may not start with a hyphen.
15689func_len ()
15690{
15691 func_len_result=${#1}
15692}
15693
15694_LT_EOF
15695 ;;
15696 *) # Bourne compatible functions.
15697 cat << \_LT_EOF >> "$cfgfile"
15698
15699# func_dirname file append nondir_replacement
15700# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15701# otherwise set result to NONDIR_REPLACEMENT.
15702func_dirname ()
15703{
15704 # Extract subdirectory from the argument.
15705 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15706 if test "X$func_dirname_result" = "X${1}"; then
15707 func_dirname_result="${3}"
15708 else
15709 func_dirname_result="$func_dirname_result${2}"
15710 fi
15711}
15712
15713# func_basename file
15714func_basename ()
15715{
15716 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15717}
15718
15719
15720# func_stripname prefix suffix name
15721# strip PREFIX and SUFFIX off of NAME.
15722# PREFIX and SUFFIX must not contain globbing or regex special
15723# characters, hashes, percent signs, but SUFFIX may contain a leading
15724# dot (in which case that matches only a dot).
15725# func_strip_suffix prefix name
15726func_stripname ()
15727{
15728 case ${2} in
15729 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15730 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15731 esac
15732}
15733
15734# sed scripts:
15735my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15736my_sed_long_arg='1s/^-[^=]*=//'
15737
15738# func_opt_split
15739func_opt_split ()
15740{
15741 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15742 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15743}
15744
15745# func_lo2o object
15746func_lo2o ()
15747{
15748 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15749}
15750
15751# func_xform libobj-or-source
15752func_xform ()
15753{
15754 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15755}
15756
15757# func_arith arithmetic-term...
15758func_arith ()
15759{
15760 func_arith_result=`expr "$@"`
15761}
15762
15763# func_len string
15764# STRING may not start with a hyphen.
15765func_len ()
15766{
15767 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15768}
15769
15770_LT_EOF
15771esac
15772
15773case $lt_shell_append in
15774 yes)
15775 cat << \_LT_EOF >> "$cfgfile"
15776
15777# func_append var value
15778# Append VALUE to the end of shell variable VAR.
15779func_append ()
15780{
15781 eval "$1+=\$2"
15782}
15783_LT_EOF
15784 ;;
15785 *)
15786 cat << \_LT_EOF >> "$cfgfile"
15787
15788# func_append var value
15789# Append VALUE to the end of shell variable VAR.
15790func_append ()
15791{
15792 eval "$1=\$$1\$2"
15793}
15794
15795_LT_EOF
15796 ;;
15797 esac
15798
15799
15800 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15801 || (rm -f "$cfgfile"; exit 1)
15802
15803 mv -f "$cfgfile" "$ofile" ||
15804 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15805 chmod +x "$ofile"
15806
0e65dfba
NA
15807 ;;
15808
15809 esac
15810done # for ac_tag
15811
15812
15813as_fn_exit 0
15814_ACEOF
15815ac_clean_files=$ac_clean_files_save
15816
15817test $ac_write_fail = 0 ||
15818 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15819
15820
15821# configure is writing to config.log, and then calls config.status.
15822# config.status does its own redirection, appending to config.log.
15823# Unfortunately, on DOS this fails, as config.log is still kept open
15824# by configure, so config.status won't be able to write to it; its
15825# output is simply discarded. So we exec the FD to /dev/null,
15826# effectively closing config.log, so it can be properly (re)opened and
15827# appended to by config.status. When coming back to configure, we
15828# need to make the FD available again.
15829if test "$no_create" != yes; then
15830 ac_cs_success=:
15831 ac_config_status_args=
15832 test "$silent" = yes &&
15833 ac_config_status_args="$ac_config_status_args --quiet"
15834 exec 5>/dev/null
15835 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15836 exec 5>>config.log
15837 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15838 # would make configure fail if this is the last instruction.
15839 $ac_cs_success || as_fn_exit 1
15840fi
15841if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15843$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15844fi
15845
d546b610
L
15846
15847
15848touch config.status.tmp
15849if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
15850 sed '/as_fn_exit 0/i \
15851sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
15852touch --reference=Makefile Makefile.tmp \
15853mv Makefile.tmp Makefile \
15854' config.status > config.status.tmp
15855 touch --reference=config.status config.status.tmp
15856 mv config.status.tmp config.status
15857 chmod +x config.status
15858 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
15859 touch --reference=Makefile Makefile.tmp
15860 mv Makefile.tmp Makefile
15861else
15862 rm -f config.status.tmp
15863fi
This page took 0.750457 seconds and 4 git commands to generate.