daily update
[deliverable/binutils-gdb.git] / gprof / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
252b5132
RH
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
6bf9431b 14
81ecdfbb
RW
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 :
6bf9431b
BE
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6bf9431b
BE
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
6bf9431b 31fi
6bf9431b 32
81ecdfbb
RW
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 }
6bf9431b
BE
79fi
80
81
81ecdfbb
RW
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.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
6bf9431b
BE
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
3725885a
RW
172test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
81ecdfbb
RW
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6bf9431b 192do
81ecdfbb
RW
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
6bf9431b 236 else
81ecdfbb
RW
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
6bf9431b 241 fi
81ecdfbb
RW
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
6bf9431b 380
81ecdfbb
RW
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6bf9431b
BE
383 as_expr=expr
384else
385 as_expr=false
386fi
387
81ecdfbb 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6bf9431b
BE
389 as_basename=basename
390else
391 as_basename=false
392fi
393
81ecdfbb
RW
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
6bf9431b 399
81ecdfbb 400as_me=`$as_basename -- "$0" ||
6bf9431b
BE
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
6bf9431b 418
0ab6f085
AM
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
1b9750d6 425
6bf9431b 426
81ecdfbb
RW
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
6bf9431b 436 sed '
81ecdfbb
RW
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
6bf9431b 441 N
81ecdfbb
RW
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6bf9431b 444 t loop
81ecdfbb 445 s/-\n.*//
6bf9431b 446 ' >$as_me.lineno &&
81ecdfbb
RW
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
6bf9431b
BE
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
6bf9431b
BE
454 # Exit status is that of the last command.
455 exit
456}
457
81ecdfbb
RW
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
6bf9431b
BE
469esac
470
81ecdfbb
RW
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
6bf9431b 474else
81ecdfbb
RW
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
6bf9431b 477fi
81ecdfbb
RW
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
0ab6f085 480 as_ln_s='ln -s'
81ecdfbb
RW
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
0ab6f085 491 fi
6bf9431b
BE
492else
493 as_ln_s='cp -p'
494fi
81ecdfbb
RW
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
6bf9431b
BE
497
498if mkdir -p . 2>/dev/null; then
81ecdfbb 499 as_mkdir_p='mkdir -p "$as_dir"'
6bf9431b
BE
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
81ecdfbb
RW
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
6bf9431b
BE
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
d7040cdb
SE
534SHELL=${CONFIG_SHELL-/bin/sh}
535
d7040cdb 536
81ecdfbb
RW
537exec 7<&0 </dev/null 6>&1
538
6bf9431b
BE
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 543
6bf9431b
BE
544#
545# Initializations.
546#
252b5132 547ac_default_prefix=/usr/local
81ecdfbb 548ac_clean_files=
6bf9431b 549ac_config_libobj_dir=.
81ecdfbb 550LIBOBJS=
6bf9431b
BE
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
0ab6f085 555
6bf9431b
BE
556# Identity of this package.
557PACKAGE_NAME=
558PACKAGE_TARNAME=
559PACKAGE_VERSION=
560PACKAGE_STRING=
561PACKAGE_BUGREPORT=
81ecdfbb 562PACKAGE_URL=
6bf9431b
BE
563
564ac_unique_file="gprof.c"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
81ecdfbb 568#ifdef HAVE_SYS_TYPES_H
6bf9431b
BE
569# include <sys/types.h>
570#endif
81ecdfbb 571#ifdef HAVE_SYS_STAT_H
6bf9431b
BE
572# include <sys/stat.h>
573#endif
81ecdfbb 574#ifdef STDC_HEADERS
6bf9431b
BE
575# include <stdlib.h>
576# include <stddef.h>
577#else
81ecdfbb 578# ifdef HAVE_STDLIB_H
6bf9431b
BE
579# include <stdlib.h>
580# endif
581#endif
81ecdfbb
RW
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
6bf9431b
BE
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
81ecdfbb 588#ifdef HAVE_STRINGS_H
6bf9431b
BE
589# include <strings.h>
590#endif
81ecdfbb 591#ifdef HAVE_INTTYPES_H
6bf9431b 592# include <inttypes.h>
6bf9431b 593#endif
81ecdfbb
RW
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
6bf9431b
BE
598# include <unistd.h>
599#endif"
600
81ecdfbb
RW
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
605NO_WERROR
606WARN_CFLAGS
607GENINSRC_NEVER_FALSE
608GENINSRC_NEVER_TRUE
609MAINT
610MAINTAINER_MODE_FALSE
611MAINTAINER_MODE_TRUE
612MSGMERGE
613MSGFMT
614MKINSTALLDIRS
615CATOBJEXT
616GENCAT
617INSTOBJEXT
618DATADIRNAME
619CATALOGS
620POSUB
621GMSGFMT
622XGETTEXT
623INCINTL
624LIBINTL_DEP
625LIBINTL
626USE_NLS
627OTOOL64
628OTOOL
629LIPO
630NMEDIT
631DSYMUTIL
81ecdfbb
RW
632RANLIB
633AR
634OBJDUMP
635LN_S
636NM
637ac_ct_DUMPBIN
638DUMPBIN
639LD
640FGREP
641SED
642LIBTOOL
643EGREP
644GREP
645CPP
646am__fastdepCC_FALSE
647am__fastdepCC_TRUE
648CCDEPMODE
649AMDEPBACKSLASH
650AMDEP_FALSE
651AMDEP_TRUE
652am__quote
653am__include
654DEPDIR
655am__untar
656am__tar
657AMTAR
658am__leading_dot
659SET_MAKE
660AWK
661mkdir_p
662MKDIR_P
663INSTALL_STRIP_PROGRAM
664STRIP
665install_sh
666MAKEINFO
667AUTOHEADER
668AUTOMAKE
669AUTOCONF
670ACLOCAL
671VERSION
672PACKAGE
673CYGPATH_W
674am__isrc
675INSTALL_DATA
676INSTALL_SCRIPT
677INSTALL_PROGRAM
678OBJEXT
679EXEEXT
680ac_ct_CC
681CPPFLAGS
682LDFLAGS
683CFLAGS
684CC
685target_os
686target_vendor
687target_cpu
688target
689host_os
690host_vendor
691host_cpu
692host
693build_os
694build_vendor
695build_cpu
696build
697target_alias
698host_alias
699build_alias
700LIBS
701ECHO_T
702ECHO_N
703ECHO_C
704DEFS
705mandir
706localedir
707libdir
708psdir
709pdfdir
710dvidir
711htmldir
712infodir
713docdir
714oldincludedir
715includedir
716localstatedir
717sharedstatedir
718sysconfdir
719datadir
720datarootdir
721libexecdir
722sbindir
723bindir
724program_transform_name
725prefix
726exec_prefix
727PACKAGE_URL
728PACKAGE_BUGREPORT
729PACKAGE_STRING
730PACKAGE_VERSION
731PACKAGE_TARNAME
732PACKAGE_NAME
733PATH_SEPARATOR
734SHELL'
6bf9431b 735ac_subst_files=''
81ecdfbb
RW
736ac_user_opts='
737enable_option_checking
738enable_dependency_tracking
da2f07f1 739enable_plugins
81ecdfbb
RW
740enable_largefile
741enable_shared
742enable_static
743with_pic
744enable_fast_install
745with_gnu_ld
746enable_libtool_lock
747enable_nls
748enable_maintainer_mode
749enable_werror
750enable_build_warnings
751'
752 ac_precious_vars='build_alias
753host_alias
754target_alias
755CC
756CFLAGS
757LDFLAGS
758LIBS
759CPPFLAGS
760CPP'
761
252b5132
RH
762
763# Initialize some variables set by options.
6bf9431b
BE
764ac_init_help=
765ac_init_version=false
81ecdfbb
RW
766ac_unrecognized_opts=
767ac_unrecognized_sep=
252b5132
RH
768# The variables have the same names as the options, with
769# dashes changed to underlines.
6bf9431b 770cache_file=/dev/null
252b5132 771exec_prefix=NONE
252b5132 772no_create=
252b5132
RH
773no_recursion=
774prefix=NONE
775program_prefix=NONE
776program_suffix=NONE
777program_transform_name=s,x,x,
778silent=
779site=
780srcdir=
252b5132
RH
781verbose=
782x_includes=NONE
783x_libraries=NONE
6bf9431b
BE
784
785# Installation directory options.
786# These are left unexpanded so users can "make install exec_prefix=/foo"
787# and all the variables that are supposed to be based on exec_prefix
788# by default will actually change.
789# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 790# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
791bindir='${exec_prefix}/bin'
792sbindir='${exec_prefix}/sbin'
793libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
794datarootdir='${prefix}/share'
795datadir='${datarootdir}'
252b5132
RH
796sysconfdir='${prefix}/etc'
797sharedstatedir='${prefix}/com'
798localstatedir='${prefix}/var'
252b5132
RH
799includedir='${prefix}/include'
800oldincludedir='/usr/include'
81ecdfbb
RW
801docdir='${datarootdir}/doc/${PACKAGE}'
802infodir='${datarootdir}/info'
803htmldir='${docdir}'
804dvidir='${docdir}'
805pdfdir='${docdir}'
806psdir='${docdir}'
807libdir='${exec_prefix}/lib'
808localedir='${datarootdir}/locale'
809mandir='${datarootdir}/man'
252b5132 810
252b5132 811ac_prev=
81ecdfbb 812ac_dashdash=
252b5132
RH
813for ac_option
814do
252b5132
RH
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
81ecdfbb 817 eval $ac_prev=\$ac_option
252b5132
RH
818 ac_prev=
819 continue
820 fi
821
81ecdfbb
RW
822 case $ac_option in
823 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824 *) ac_optarg=yes ;;
825 esac
252b5132
RH
826
827 # Accept the important Cygnus configure options, so we can diagnose typos.
828
81ecdfbb
RW
829 case $ac_dashdash$ac_option in
830 --)
831 ac_dashdash=yes ;;
252b5132
RH
832
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
834 ac_prev=bindir ;;
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
6bf9431b 836 bindir=$ac_optarg ;;
252b5132
RH
837
838 -build | --build | --buil | --bui | --bu)
6bf9431b 839 ac_prev=build_alias ;;
252b5132 840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
6bf9431b 841 build_alias=$ac_optarg ;;
252b5132
RH
842
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6bf9431b
BE
848 cache_file=$ac_optarg ;;
849
850 --config-cache | -C)
851 cache_file=config.cache ;;
252b5132 852
81ecdfbb 853 -datadir | --datadir | --datadi | --datad)
252b5132 854 ac_prev=datadir ;;
81ecdfbb 855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
6bf9431b 856 datadir=$ac_optarg ;;
252b5132 857
81ecdfbb
RW
858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
864
252b5132 865 -disable-* | --disable-*)
81ecdfbb 866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 867 # Reject names that are not valid shell variable names.
81ecdfbb
RW
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 as_fn_error "invalid feature name: $ac_useropt"
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
873 *"
874"enable_$ac_useropt"
875"*) ;;
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
878 esac
879 eval enable_$ac_useropt=no ;;
880
881 -docdir | --docdir | --docdi | --doc | --do)
882 ac_prev=docdir ;;
883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
884 docdir=$ac_optarg ;;
885
886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
887 ac_prev=dvidir ;;
888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
889 dvidir=$ac_optarg ;;
252b5132
RH
890
891 -enable-* | --enable-*)
81ecdfbb 892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 893 # Reject names that are not valid shell variable names.
81ecdfbb
RW
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
899 *"
900"enable_$ac_useropt"
901"*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
0ab6f085 904 esac
81ecdfbb 905 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
906
907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909 | --exec | --exe | --ex)
910 ac_prev=exec_prefix ;;
911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913 | --exec=* | --exe=* | --ex=*)
6bf9431b 914 exec_prefix=$ac_optarg ;;
252b5132
RH
915
916 -gas | --gas | --ga | --g)
917 # Obsolete; use --with-gas.
918 with_gas=yes ;;
919
6bf9431b
BE
920 -help | --help | --hel | --he | -h)
921 ac_init_help=long ;;
922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923 ac_init_help=recursive ;;
924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925 ac_init_help=short ;;
252b5132
RH
926
927 -host | --host | --hos | --ho)
6bf9431b 928 ac_prev=host_alias ;;
252b5132 929 -host=* | --host=* | --hos=* | --ho=*)
6bf9431b 930 host_alias=$ac_optarg ;;
252b5132 931
81ecdfbb
RW
932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933 ac_prev=htmldir ;;
934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935 | --ht=*)
936 htmldir=$ac_optarg ;;
937
252b5132
RH
938 -includedir | --includedir | --includedi | --included | --include \
939 | --includ | --inclu | --incl | --inc)
940 ac_prev=includedir ;;
941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942 | --includ=* | --inclu=* | --incl=* | --inc=*)
6bf9431b 943 includedir=$ac_optarg ;;
252b5132
RH
944
945 -infodir | --infodir | --infodi | --infod | --info | --inf)
946 ac_prev=infodir ;;
947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
6bf9431b 948 infodir=$ac_optarg ;;
252b5132
RH
949
950 -libdir | --libdir | --libdi | --libd)
951 ac_prev=libdir ;;
952 -libdir=* | --libdir=* | --libdi=* | --libd=*)
6bf9431b 953 libdir=$ac_optarg ;;
252b5132
RH
954
955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956 | --libexe | --libex | --libe)
957 ac_prev=libexecdir ;;
958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959 | --libexe=* | --libex=* | --libe=*)
6bf9431b 960 libexecdir=$ac_optarg ;;
252b5132 961
81ecdfbb
RW
962 -localedir | --localedir | --localedi | --localed | --locale)
963 ac_prev=localedir ;;
964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965 localedir=$ac_optarg ;;
966
252b5132 967 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 968 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
969 ac_prev=localstatedir ;;
970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
6bf9431b 972 localstatedir=$ac_optarg ;;
252b5132
RH
973
974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975 ac_prev=mandir ;;
976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
6bf9431b 977 mandir=$ac_optarg ;;
252b5132
RH
978
979 -nfp | --nfp | --nf)
980 # Obsolete; use --without-fp.
981 with_fp=no ;;
982
983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
6bf9431b 984 | --no-cr | --no-c | -n)
252b5132
RH
985 no_create=yes ;;
986
987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989 no_recursion=yes ;;
990
991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993 | --oldin | --oldi | --old | --ol | --o)
994 ac_prev=oldincludedir ;;
995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
6bf9431b 998 oldincludedir=$ac_optarg ;;
252b5132
RH
999
1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001 ac_prev=prefix ;;
1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6bf9431b 1003 prefix=$ac_optarg ;;
252b5132
RH
1004
1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006 | --program-pre | --program-pr | --program-p)
1007 ac_prev=program_prefix ;;
1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
6bf9431b 1010 program_prefix=$ac_optarg ;;
252b5132
RH
1011
1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013 | --program-suf | --program-su | --program-s)
1014 ac_prev=program_suffix ;;
1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
6bf9431b 1017 program_suffix=$ac_optarg ;;
252b5132
RH
1018
1019 -program-transform-name | --program-transform-name \
1020 | --program-transform-nam | --program-transform-na \
1021 | --program-transform-n | --program-transform- \
1022 | --program-transform | --program-transfor \
1023 | --program-transfo | --program-transf \
1024 | --program-trans | --program-tran \
1025 | --progr-tra | --program-tr | --program-t)
1026 ac_prev=program_transform_name ;;
1027 -program-transform-name=* | --program-transform-name=* \
1028 | --program-transform-nam=* | --program-transform-na=* \
1029 | --program-transform-n=* | --program-transform-=* \
1030 | --program-transform=* | --program-transfor=* \
1031 | --program-transfo=* | --program-transf=* \
1032 | --program-trans=* | --program-tran=* \
1033 | --progr-tra=* | --program-tr=* | --program-t=*)
6bf9431b 1034 program_transform_name=$ac_optarg ;;
252b5132 1035
81ecdfbb
RW
1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037 ac_prev=pdfdir ;;
1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039 pdfdir=$ac_optarg ;;
1040
1041 -psdir | --psdir | --psdi | --psd | --ps)
1042 ac_prev=psdir ;;
1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044 psdir=$ac_optarg ;;
1045
252b5132
RH
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1048 silent=yes ;;
1049
1050 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1051 ac_prev=sbindir ;;
1052 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1053 | --sbi=* | --sb=*)
6bf9431b 1054 sbindir=$ac_optarg ;;
252b5132
RH
1055
1056 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058 | --sharedst | --shareds | --shared | --share | --shar \
1059 | --sha | --sh)
1060 ac_prev=sharedstatedir ;;
1061 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1064 | --sha=* | --sh=*)
6bf9431b 1065 sharedstatedir=$ac_optarg ;;
252b5132
RH
1066
1067 -site | --site | --sit)
1068 ac_prev=site ;;
1069 -site=* | --site=* | --sit=*)
6bf9431b 1070 site=$ac_optarg ;;
093872ec 1071
252b5132
RH
1072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1073 ac_prev=srcdir ;;
1074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6bf9431b 1075 srcdir=$ac_optarg ;;
252b5132
RH
1076
1077 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078 | --syscon | --sysco | --sysc | --sys | --sy)
1079 ac_prev=sysconfdir ;;
1080 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
6bf9431b 1082 sysconfdir=$ac_optarg ;;
252b5132
RH
1083
1084 -target | --target | --targe | --targ | --tar | --ta | --t)
6bf9431b 1085 ac_prev=target_alias ;;
252b5132 1086 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
6bf9431b 1087 target_alias=$ac_optarg ;;
252b5132
RH
1088
1089 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090 verbose=yes ;;
1091
6bf9431b
BE
1092 -version | --version | --versio | --versi | --vers | -V)
1093 ac_init_version=: ;;
252b5132
RH
1094
1095 -with-* | --with-*)
81ecdfbb 1096 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1097 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error "invalid package name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1103 *"
1104"with_$ac_useropt"
1105"*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
0ab6f085 1108 esac
81ecdfbb 1109 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1110
1111 -without-* | --without-*)
81ecdfbb 1112 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1113 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1119 *"
1120"with_$ac_useropt"
1121"*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval with_$ac_useropt=no ;;
252b5132
RH
1126
1127 --x)
1128 # Obsolete; use --with-x.
1129 with_x=yes ;;
1130
1131 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1132 | --x-incl | --x-inc | --x-in | --x-i)
1133 ac_prev=x_includes ;;
1134 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1135 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
6bf9431b 1136 x_includes=$ac_optarg ;;
252b5132
RH
1137
1138 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1139 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1140 ac_prev=x_libraries ;;
1141 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1142 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
6bf9431b 1143 x_libraries=$ac_optarg ;;
252b5132 1144
81ecdfbb
RW
1145 -*) as_fn_error "unrecognized option: \`$ac_option'
1146Try \`$0 --help' for more information."
252b5132
RH
1147 ;;
1148
6bf9431b
BE
1149 *=*)
1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1152 case $ac_envvar in #(
1153 '' | [0-9]* | *[!_$as_cr_alnum]* )
1154 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1155 esac
1156 eval $ac_envvar=\$ac_optarg
6bf9431b
BE
1157 export $ac_envvar ;;
1158
252b5132 1159 *)
6bf9431b 1160 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1161 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
6bf9431b 1162 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1163 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
6bf9431b 1164 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1165 ;;
1166
1167 esac
1168done
1169
1170if test -n "$ac_prev"; then
6bf9431b 1171 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1172 as_fn_error "missing argument to $ac_option"
252b5132
RH
1173fi
1174
81ecdfbb
RW
1175if test -n "$ac_unrecognized_opts"; then
1176 case $enable_option_checking in
1177 no) ;;
1178 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1179 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
0ab6f085 1180 esac
81ecdfbb 1181fi
0ab6f085 1182
81ecdfbb
RW
1183# Check all directory arguments for consistency.
1184for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1185 datadir sysconfdir sharedstatedir localstatedir includedir \
1186 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187 libdir localedir mandir
0ab6f085 1188do
81ecdfbb
RW
1189 eval ac_val=\$$ac_var
1190 # Remove trailing slashes.
0ab6f085 1191 case $ac_val in
81ecdfbb
RW
1192 */ )
1193 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1194 eval $ac_var=\$ac_val;;
252b5132 1195 esac
81ecdfbb
RW
1196 # Be sure to have absolute directory names.
1197 case $ac_val in
1198 [\\/$]* | ?:[\\/]* ) continue;;
1199 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1200 esac
1201 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1202done
1203
6bf9431b
BE
1204# There might be people who depend on the old broken behavior: `$host'
1205# used to hold the argument of --host etc.
1206# FIXME: To remove some day.
1207build=$build_alias
1208host=$host_alias
1209target=$target_alias
1210
1211# FIXME: To remove some day.
1212if test "x$host_alias" != x; then
1213 if test "x$build_alias" = x; then
1214 cross_compiling=maybe
81ecdfbb 1215 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
6bf9431b
BE
1216 If a cross compiler is detected then cross compile mode will be used." >&2
1217 elif test "x$build_alias" != "x$host_alias"; then
1218 cross_compiling=yes
1219 fi
1220fi
252b5132 1221
6bf9431b
BE
1222ac_tool_prefix=
1223test -n "$host_alias" && ac_tool_prefix=$host_alias-
1224
1225test "$silent" = yes && exec 6>/dev/null
252b5132 1226
252b5132 1227
81ecdfbb
RW
1228ac_pwd=`pwd` && test -n "$ac_pwd" &&
1229ac_ls_di=`ls -di .` &&
1230ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1231 as_fn_error "working directory cannot be determined"
1232test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233 as_fn_error "pwd does not report name of working directory"
1234
1235
252b5132
RH
1236# Find the source files, if location was not specified.
1237if test -z "$srcdir"; then
1238 ac_srcdir_defaulted=yes
81ecdfbb
RW
1239 # Try the directory containing this script, then the parent directory.
1240 ac_confdir=`$as_dirname -- "$as_myself" ||
1241$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242 X"$as_myself" : 'X\(//\)[^/]' \| \
1243 X"$as_myself" : 'X\(//\)$' \| \
1244 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1245$as_echo X"$as_myself" |
1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247 s//\1/
1248 q
1249 }
1250 /^X\(\/\/\)[^/].*/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\/\)$/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\).*/{
1259 s//\1/
1260 q
1261 }
1262 s/.*/./; q'`
252b5132 1263 srcdir=$ac_confdir
81ecdfbb 1264 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1265 srcdir=..
1266 fi
1267else
1268 ac_srcdir_defaulted=no
1269fi
81ecdfbb
RW
1270if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1273fi
1274ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275ac_abs_confdir=`(
1276 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1277 pwd)`
1278# When building in place, set srcdir=.
1279if test "$ac_abs_confdir" = "$ac_pwd"; then
1280 srcdir=.
1281fi
1282# Remove unnecessary trailing slashes from srcdir.
1283# Double slashes in file names in object file debugging info
1284# mess up M-x gdb in Emacs.
1285case $srcdir in
1286*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1287esac
1288for ac_var in $ac_precious_vars; do
1289 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_env_${ac_var}_value=\$${ac_var}
1291 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1293done
252b5132 1294
6bf9431b
BE
1295#
1296# Report the --help message.
1297#
1298if test "$ac_init_help" = "long"; then
1299 # Omit some internal or obsolete options to make the list less imposing.
1300 # This message is too long to be a string in the A/UX 3.1 sh.
1301 cat <<_ACEOF
1302\`configure' configures this package to adapt to many kinds of systems.
252b5132 1303
6bf9431b 1304Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1305
6bf9431b
BE
1306To assign environment variables (e.g., CC, CFLAGS...), specify them as
1307VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1308
6bf9431b 1309Defaults for the options are specified in brackets.
ac48eca1 1310
6bf9431b
BE
1311Configuration:
1312 -h, --help display this help and exit
1313 --help=short display options specific to this package
1314 --help=recursive display the short help of all the included packages
1315 -V, --version display version information and exit
1316 -q, --quiet, --silent do not print \`checking...' messages
1317 --cache-file=FILE cache test results in FILE [disabled]
1318 -C, --config-cache alias for \`--cache-file=config.cache'
1319 -n, --no-create do not create output files
1320 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1321
6bf9431b
BE
1322Installation directories:
1323 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1324 [$ac_default_prefix]
6bf9431b 1325 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1326 [PREFIX]
ac48eca1 1327
6bf9431b
BE
1328By default, \`make install' will install all the files in
1329\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1330an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1331for instance \`--prefix=\$HOME'.
ac48eca1 1332
6bf9431b 1333For better control, use the options below.
ac48eca1 1334
6bf9431b 1335Fine tuning of the installation directories:
81ecdfbb
RW
1336 --bindir=DIR user executables [EPREFIX/bin]
1337 --sbindir=DIR system admin executables [EPREFIX/sbin]
1338 --libexecdir=DIR program executables [EPREFIX/libexec]
1339 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1340 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1341 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1342 --libdir=DIR object code libraries [EPREFIX/lib]
1343 --includedir=DIR C header files [PREFIX/include]
1344 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1345 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1346 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1347 --infodir=DIR info documentation [DATAROOTDIR/info]
1348 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1349 --mandir=DIR man documentation [DATAROOTDIR/man]
1350 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1351 --htmldir=DIR html documentation [DOCDIR]
1352 --dvidir=DIR dvi documentation [DOCDIR]
1353 --pdfdir=DIR pdf documentation [DOCDIR]
1354 --psdir=DIR ps documentation [DOCDIR]
6bf9431b 1355_ACEOF
ac48eca1 1356
6bf9431b 1357 cat <<\_ACEOF
252b5132 1358
6bf9431b
BE
1359Program names:
1360 --program-prefix=PREFIX prepend PREFIX to installed program names
1361 --program-suffix=SUFFIX append SUFFIX to installed program names
1362 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1363
6bf9431b
BE
1364System types:
1365 --build=BUILD configure for building on BUILD [guessed]
1366 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1367 --target=TARGET configure for building compilers for TARGET [HOST]
1368_ACEOF
252b5132 1369fi
252b5132 1370
6bf9431b 1371if test -n "$ac_init_help"; then
252b5132 1372
6bf9431b 1373 cat <<\_ACEOF
252b5132 1374
6bf9431b 1375Optional Features:
81ecdfbb 1376 --disable-option-checking ignore unrecognized --enable/--with options
6bf9431b
BE
1377 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1378 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1379 --disable-dependency-tracking speeds up one-time build
1380 --enable-dependency-tracking do not reject slow dependency extractors
da2f07f1 1381 --enable-plugins Enable support for plugins (defaults no)
d053aef8 1382 --disable-largefile omit support for large files
81ecdfbb
RW
1383 --enable-shared[=PKGS] build shared libraries [default=yes]
1384 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1385 --enable-fast-install[=PKGS]
1386 optimize for fast installation [default=yes]
6bf9431b
BE
1387 --disable-libtool-lock avoid locking (might break parallel builds)
1388 --disable-nls do not use Native Language Support
1389 --enable-maintainer-mode enable make rules and dependencies not useful
1390 (and sometimes confusing) to the casual installer
241a6c40
AM
1391 --enable-werror treat compile warnings as errors
1392 --enable-build-warnings enable build-time compiler warnings
6bf9431b
BE
1393
1394Optional Packages:
1395 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1396 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1397 --with-pic try to use only PIC/non-PIC objects [default=use
1398 both]
1399 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
252b5132 1400
6bf9431b
BE
1401Some influential environment variables:
1402 CC C compiler command
1403 CFLAGS C compiler flags
1404 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1405 nonstandard directory <lib dir>
81ecdfbb
RW
1406 LIBS libraries to pass to the linker, e.g. -l<library>
1407 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1408 you have headers in a nonstandard directory <include dir>
6bf9431b 1409 CPP C preprocessor
252b5132 1410
6bf9431b
BE
1411Use these variables to override the choices made by `configure' or to help
1412it to find libraries and programs with nonstandard names/locations.
1413
81ecdfbb 1414Report bugs to the package provider.
6bf9431b 1415_ACEOF
81ecdfbb 1416ac_status=$?
252b5132
RH
1417fi
1418
6bf9431b
BE
1419if test "$ac_init_help" = "recursive"; then
1420 # If there are subdirs, report their specific --help.
6bf9431b 1421 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1422 test -d "$ac_dir" ||
1423 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1424 continue
6bf9431b 1425 ac_builddir=.
252b5132 1426
81ecdfbb
RW
1427case "$ac_dir" in
1428.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429*)
1430 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1431 # A ".." for each directory in $ac_dir_suffix.
1432 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1433 case $ac_top_builddir_sub in
1434 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1436 esac ;;
1437esac
1438ac_abs_top_builddir=$ac_pwd
1439ac_abs_builddir=$ac_pwd$ac_dir_suffix
1440# for backward compatibility:
1441ac_top_builddir=$ac_top_build_prefix
6bf9431b
BE
1442
1443case $srcdir in
81ecdfbb 1444 .) # We are building in place.
6bf9431b 1445 ac_srcdir=.
81ecdfbb
RW
1446 ac_top_srcdir=$ac_top_builddir_sub
1447 ac_abs_top_srcdir=$ac_pwd ;;
1448 [\\/]* | ?:[\\/]* ) # Absolute name.
6bf9431b 1449 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1450 ac_top_srcdir=$srcdir
1451 ac_abs_top_srcdir=$srcdir ;;
1452 *) # Relative name.
1453 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1454 ac_top_srcdir=$ac_top_build_prefix$srcdir
1455 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
0ab6f085 1456esac
81ecdfbb
RW
1457ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1458
1459 cd "$ac_dir" || { ac_status=$?; continue; }
1460 # Check for guested configure.
1461 if test -f "$ac_srcdir/configure.gnu"; then
1462 echo &&
1463 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1464 elif test -f "$ac_srcdir/configure"; then
1465 echo &&
1466 $SHELL "$ac_srcdir/configure" --help=recursive
6bf9431b 1467 else
81ecdfbb
RW
1468 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1469 fi || ac_status=$?
1470 cd "$ac_pwd" || { ac_status=$?; break; }
6bf9431b
BE
1471 done
1472fi
252b5132 1473
81ecdfbb 1474test -n "$ac_init_help" && exit $ac_status
6bf9431b
BE
1475if $ac_init_version; then
1476 cat <<\_ACEOF
81ecdfbb
RW
1477configure
1478generated by GNU Autoconf 2.64
252b5132 1479
81ecdfbb 1480Copyright (C) 2009 Free Software Foundation, Inc.
6bf9431b
BE
1481This configure script is free software; the Free Software Foundation
1482gives unlimited permission to copy, distribute and modify it.
1483_ACEOF
81ecdfbb 1484 exit
6bf9431b 1485fi
5d64ca4e 1486
81ecdfbb
RW
1487## ------------------------ ##
1488## Autoconf initialization. ##
1489## ------------------------ ##
5d64ca4e 1490
81ecdfbb
RW
1491# ac_fn_c_try_compile LINENO
1492# --------------------------
1493# Try to compile conftest.$ac_ext, and return whether this succeeded.
1494ac_fn_c_try_compile ()
6bf9431b 1495{
81ecdfbb
RW
1496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497 rm -f conftest.$ac_objext
1498 if { { ac_try="$ac_compile"
1499case "(($ac_try" in
1500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1501 *) ac_try_echo=$ac_try;;
1502esac
1503eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1504$as_echo "$ac_try_echo"; } >&5
1505 (eval "$ac_compile") 2>conftest.err
1506 ac_status=$?
1507 if test -s conftest.err; then
1508 grep -v '^ *+' conftest.err >conftest.er1
1509 cat conftest.er1 >&5
1510 mv -f conftest.er1 conftest.err
1511 fi
1512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1513 test $ac_status = 0; } && {
1514 test -z "$ac_c_werror_flag" ||
1515 test ! -s conftest.err
1516 } && test -s conftest.$ac_objext; then :
1517 ac_retval=0
1518else
1519 $as_echo "$as_me: failed program was:" >&5
1520sed 's/^/| /' conftest.$ac_ext >&5
6bf9431b 1521
81ecdfbb
RW
1522 ac_retval=1
1523fi
1524 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1525 return $ac_retval
6bf9431b 1526
81ecdfbb 1527} # ac_fn_c_try_compile
6bf9431b 1528
81ecdfbb
RW
1529# ac_fn_c_try_link LINENO
1530# -----------------------
1531# Try to link conftest.$ac_ext, and return whether this succeeded.
1532ac_fn_c_try_link ()
1533{
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 rm -f conftest.$ac_objext conftest$ac_exeext
1536 if { { ac_try="$ac_link"
1537case "(($ac_try" in
1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1540esac
1541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542$as_echo "$ac_try_echo"; } >&5
1543 (eval "$ac_link") 2>conftest.err
1544 ac_status=$?
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1549 fi
1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } && {
1552 test -z "$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1554 } && test -s conftest$ac_exeext && {
1555 test "$cross_compiling" = yes ||
1556 $as_test_x conftest$ac_exeext
1557 }; then :
1558 ac_retval=0
1559else
1560 $as_echo "$as_me: failed program was:" >&5
1561sed 's/^/| /' conftest.$ac_ext >&5
6bf9431b 1562
81ecdfbb
RW
1563 ac_retval=1
1564fi
1565 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1566 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1567 # interfere with the next link command; also delete a directory that is
1568 # left behind by Apple's compiler. We do this before executing the actions.
1569 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1570 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1571 return $ac_retval
6bf9431b 1572
81ecdfbb
RW
1573} # ac_fn_c_try_link
1574
1575# ac_fn_c_try_cpp LINENO
1576# ----------------------
1577# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1578ac_fn_c_try_cpp ()
1579{
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 if { { ac_try="$ac_cpp conftest.$ac_ext"
1582case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585esac
1586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587$as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1594 fi
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } >/dev/null && {
1597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 }; then :
1600 ac_retval=0
1601else
1602 $as_echo "$as_me: failed program was:" >&5
1603sed 's/^/| /' conftest.$ac_ext >&5
1604
1605 ac_retval=1
1606fi
1607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1608 return $ac_retval
1609
1610} # ac_fn_c_try_cpp
1611
1612# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1613# -------------------------------------------------------
1614# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1615# the include files in INCLUDES and setting the cache variable VAR
1616# accordingly.
1617ac_fn_c_check_header_mongrel ()
1618{
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1622$as_echo_n "checking for $2... " >&6; }
1623if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1624 $as_echo_n "(cached) " >&6
1625fi
1626eval ac_res=\$$3
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1628$as_echo "$ac_res" >&6; }
1629else
1630 # Is the header compilable?
1631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1632$as_echo_n "checking $2 usability... " >&6; }
1633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1634/* end confdefs.h. */
1635$4
1636#include <$2>
1637_ACEOF
1638if ac_fn_c_try_compile "$LINENO"; then :
1639 ac_header_compiler=yes
1640else
1641 ac_header_compiler=no
1642fi
1643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1645$as_echo "$ac_header_compiler" >&6; }
1646
1647# Is the header present?
1648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1649$as_echo_n "checking $2 presence... " >&6; }
1650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651/* end confdefs.h. */
1652#include <$2>
1653_ACEOF
1654if ac_fn_c_try_cpp "$LINENO"; then :
1655 ac_header_preproc=yes
1656else
1657 ac_header_preproc=no
1658fi
1659rm -f conftest.err conftest.$ac_ext
1660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1661$as_echo "$ac_header_preproc" >&6; }
1662
1663# So? What about this header?
1664case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1665 yes:no: )
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1667$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1669$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1670 ;;
1671 no:yes:* )
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1673$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1675$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1677$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1679$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1681$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1682 ;;
1683esac
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685$as_echo_n "checking for $2... " >&6; }
1686if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1687 $as_echo_n "(cached) " >&6
1688else
1689 eval "$3=\$ac_header_compiler"
1690fi
1691eval ac_res=\$$3
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1693$as_echo "$ac_res" >&6; }
1694fi
1695 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1696
1697} # ac_fn_c_check_header_mongrel
1698
1699# ac_fn_c_try_run LINENO
1700# ----------------------
1701# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1702# that executables *can* be run.
1703ac_fn_c_try_run ()
1704{
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 if { { ac_try="$ac_link"
1707case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_link") 2>&5
1714 ac_status=$?
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1717 { { case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_try") 2>&5
1724 ac_status=$?
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; }; }; then :
1727 ac_retval=0
1728else
1729 $as_echo "$as_me: program exited with status $ac_status" >&5
1730 $as_echo "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=$ac_status
1734fi
1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1737 return $ac_retval
1738
1739} # ac_fn_c_try_run
1740
1741# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1742# -------------------------------------------------------
1743# Tests whether HEADER exists and can be compiled using the include files in
1744# INCLUDES, setting the cache variable VAR accordingly.
1745ac_fn_c_check_header_compile ()
1746{
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749$as_echo_n "checking for $2... " >&6; }
1750if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1751 $as_echo_n "(cached) " >&6
1752else
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754/* end confdefs.h. */
1755$4
1756#include <$2>
1757_ACEOF
1758if ac_fn_c_try_compile "$LINENO"; then :
1759 eval "$3=yes"
1760else
1761 eval "$3=no"
1762fi
1763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764fi
1765eval ac_res=\$$3
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767$as_echo "$ac_res" >&6; }
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769
1770} # ac_fn_c_check_header_compile
1771
1772# ac_fn_c_check_func LINENO FUNC VAR
1773# ----------------------------------
1774# Tests whether FUNC exists, setting the cache variable VAR accordingly
1775ac_fn_c_check_func ()
1776{
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779$as_echo_n "checking for $2... " >&6; }
1780if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1781 $as_echo_n "(cached) " >&6
1782else
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784/* end confdefs.h. */
1785/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1787#define $2 innocuous_$2
1788
1789/* System header to define __stub macros and hopefully few prototypes,
1790 which can conflict with char $2 (); below.
1791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1792 <limits.h> exists even on freestanding compilers. */
1793
1794#ifdef __STDC__
1795# include <limits.h>
1796#else
1797# include <assert.h>
1798#endif
1799
1800#undef $2
1801
1802/* Override any GCC internal prototype to avoid an error.
1803 Use char because int might match the return type of a GCC
1804 builtin and then its argument prototype would still apply. */
1805#ifdef __cplusplus
1806extern "C"
1807#endif
1808char $2 ();
1809/* The GNU C library defines this for functions which it implements
1810 to always fail with ENOSYS. Some functions are actually named
1811 something starting with __ and the normal name is an alias. */
1812#if defined __stub_$2 || defined __stub___$2
1813choke me
1814#endif
1815
1816int
1817main ()
1818{
1819return $2 ();
1820 ;
1821 return 0;
1822}
1823_ACEOF
1824if ac_fn_c_try_link "$LINENO"; then :
1825 eval "$3=yes"
1826else
1827 eval "$3=no"
1828fi
1829rm -f core conftest.err conftest.$ac_objext \
1830 conftest$ac_exeext conftest.$ac_ext
1831fi
1832eval ac_res=\$$3
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834$as_echo "$ac_res" >&6; }
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836
1837} # ac_fn_c_check_func
1838cat >config.log <<_ACEOF
1839This file contains any messages produced by compilers while
1840running configure, to aid debugging if configure makes a mistake.
1841
1842It was created by $as_me, which was
1843generated by GNU Autoconf 2.64. Invocation command line was
1844
1845 $ $0 $@
1846
1847_ACEOF
1848exec 5>>config.log
1849{
1850cat <<_ASUNAME
1851## --------- ##
1852## Platform. ##
1853## --------- ##
1854
1855hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1856uname -m = `(uname -m) 2>/dev/null || echo unknown`
1857uname -r = `(uname -r) 2>/dev/null || echo unknown`
1858uname -s = `(uname -s) 2>/dev/null || echo unknown`
1859uname -v = `(uname -v) 2>/dev/null || echo unknown`
1860
1861/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1862/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1863
1864/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1865/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1866/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1867/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1868/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1869/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1870/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1871
1872_ASUNAME
1873
1874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6bf9431b
BE
1875for as_dir in $PATH
1876do
1877 IFS=$as_save_IFS
1878 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1879 $as_echo "PATH: $as_dir"
1880 done
1881IFS=$as_save_IFS
5d64ca4e 1882
6bf9431b 1883} >&5
093872ec 1884
6bf9431b 1885cat >&5 <<_ACEOF
252b5132 1886
6bf9431b
BE
1887
1888## ----------- ##
1889## Core tests. ##
1890## ----------- ##
1891
1892_ACEOF
1893
1894
1895# Keep a trace of the command line.
1896# Strip out --no-create and --no-recursion so they do not pile up.
1897# Strip out --silent because we don't want to record it for future runs.
1898# Also quote any args containing shell meta-characters.
1899# Make two passes to allow for proper duplicate-argument suppression.
1900ac_configure_args=
1901ac_configure_args0=
1902ac_configure_args1=
6bf9431b
BE
1903ac_must_keep_next=false
1904for ac_pass in 1 2
1905do
1906 for ac_arg
1907 do
1908 case $ac_arg in
1909 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1910 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1911 | -silent | --silent | --silen | --sile | --sil)
1912 continue ;;
81ecdfbb
RW
1913 *\'*)
1914 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6bf9431b
BE
1915 esac
1916 case $ac_pass in
81ecdfbb 1917 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
6bf9431b 1918 2)
81ecdfbb 1919 as_fn_append ac_configure_args1 " '$ac_arg'"
6bf9431b
BE
1920 if test $ac_must_keep_next = true; then
1921 ac_must_keep_next=false # Got value, back to normal.
1922 else
1923 case $ac_arg in
1924 *=* | --config-cache | -C | -disable-* | --disable-* \
1925 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1926 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1927 | -with-* | --with-* | -without-* | --without-* | --x)
1928 case "$ac_configure_args0 " in
1929 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1930 esac
1931 ;;
1932 -* ) ac_must_keep_next=true ;;
1933 esac
1934 fi
81ecdfbb 1935 as_fn_append ac_configure_args " '$ac_arg'"
6bf9431b
BE
1936 ;;
1937 esac
1938 done
1939done
81ecdfbb
RW
1940{ ac_configure_args0=; unset ac_configure_args0;}
1941{ ac_configure_args1=; unset ac_configure_args1;}
6bf9431b
BE
1942
1943# When interrupted or exit'd, cleanup temporary files, and complete
1944# config.log. We remove comments because anyway the quotes in there
1945# would cause problems or look ugly.
81ecdfbb
RW
1946# WARNING: Use '\'' to represent an apostrophe within the trap.
1947# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
6bf9431b
BE
1948trap 'exit_status=$?
1949 # Save into config.log some information that might help in debugging.
1950 {
1951 echo
1952
1953 cat <<\_ASBOX
1954## ---------------- ##
1955## Cache variables. ##
1956## ---------------- ##
1957_ASBOX
1958 echo
1959 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1960(
1961 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1962 eval ac_val=\$$ac_var
1963 case $ac_val in #(
1964 *${as_nl}*)
1965 case $ac_var in #(
1966 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1967$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1968 esac
1969 case $ac_var in #(
1970 _ | IFS | as_nl) ;; #(
1971 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1972 *) { eval $ac_var=; unset $ac_var;} ;;
1973 esac ;;
1974 esac
1975 done
6bf9431b 1976 (set) 2>&1 |
81ecdfbb
RW
1977 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1978 *${as_nl}ac_space=\ *)
6bf9431b 1979 sed -n \
81ecdfbb
RW
1980 "s/'\''/'\''\\\\'\'''\''/g;
1981 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1982 ;; #(
6bf9431b 1983 *)
81ecdfbb 1984 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6bf9431b 1985 ;;
81ecdfbb
RW
1986 esac |
1987 sort
1988)
6bf9431b
BE
1989 echo
1990
1991 cat <<\_ASBOX
1992## ----------------- ##
1993## Output variables. ##
1994## ----------------- ##
1995_ASBOX
1996 echo
1997 for ac_var in $ac_subst_vars
1998 do
81ecdfbb
RW
1999 eval ac_val=\$$ac_var
2000 case $ac_val in
2001 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2002 esac
2003 $as_echo "$ac_var='\''$ac_val'\''"
6bf9431b
BE
2004 done | sort
2005 echo
2006
2007 if test -n "$ac_subst_files"; then
2008 cat <<\_ASBOX
81ecdfbb
RW
2009## ------------------- ##
2010## File substitutions. ##
2011## ------------------- ##
6bf9431b
BE
2012_ASBOX
2013 echo
2014 for ac_var in $ac_subst_files
2015 do
81ecdfbb
RW
2016 eval ac_val=\$$ac_var
2017 case $ac_val in
2018 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2019 esac
2020 $as_echo "$ac_var='\''$ac_val'\''"
6bf9431b
BE
2021 done | sort
2022 echo
2023 fi
2024
2025 if test -s confdefs.h; then
2026 cat <<\_ASBOX
2027## ----------- ##
2028## confdefs.h. ##
2029## ----------- ##
2030_ASBOX
2031 echo
81ecdfbb 2032 cat confdefs.h
6bf9431b
BE
2033 echo
2034 fi
2035 test "$ac_signal" != 0 &&
81ecdfbb
RW
2036 $as_echo "$as_me: caught signal $ac_signal"
2037 $as_echo "$as_me: exit $exit_status"
6bf9431b 2038 } >&5
81ecdfbb
RW
2039 rm -f core *.core core.conftest.* &&
2040 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
6bf9431b 2041 exit $exit_status
81ecdfbb 2042' 0
6bf9431b 2043for ac_signal in 1 2 13 15; do
81ecdfbb 2044 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
6bf9431b
BE
2045done
2046ac_signal=0
2047
2048# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2049rm -f -r conftest* confdefs.h
2050
2051$as_echo "/* confdefs.h */" > confdefs.h
6bf9431b
BE
2052
2053# Predefined preprocessor variables.
2054
2055cat >>confdefs.h <<_ACEOF
2056#define PACKAGE_NAME "$PACKAGE_NAME"
2057_ACEOF
2058
6bf9431b
BE
2059cat >>confdefs.h <<_ACEOF
2060#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2061_ACEOF
2062
6bf9431b
BE
2063cat >>confdefs.h <<_ACEOF
2064#define PACKAGE_VERSION "$PACKAGE_VERSION"
2065_ACEOF
2066
6bf9431b
BE
2067cat >>confdefs.h <<_ACEOF
2068#define PACKAGE_STRING "$PACKAGE_STRING"
2069_ACEOF
2070
6bf9431b
BE
2071cat >>confdefs.h <<_ACEOF
2072#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2073_ACEOF
2074
81ecdfbb
RW
2075cat >>confdefs.h <<_ACEOF
2076#define PACKAGE_URL "$PACKAGE_URL"
2077_ACEOF
2078
6bf9431b
BE
2079
2080# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2081# Prefer an explicitly selected file to automatically selected ones.
2082ac_site_file1=NONE
2083ac_site_file2=NONE
2084if test -n "$CONFIG_SITE"; then
2085 ac_site_file1=$CONFIG_SITE
2086elif test "x$prefix" != xNONE; then
2087 ac_site_file1=$prefix/share/config.site
2088 ac_site_file2=$prefix/etc/config.site
2089else
2090 ac_site_file1=$ac_default_prefix/share/config.site
2091 ac_site_file2=$ac_default_prefix/etc/config.site
2092fi
2093for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2094do
2095 test "x$ac_site_file" = xNONE && continue
6bf9431b 2096 if test -r "$ac_site_file"; then
81ecdfbb
RW
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2098$as_echo "$as_me: loading site script $ac_site_file" >&6;}
6bf9431b
BE
2099 sed 's/^/| /' "$ac_site_file" >&5
2100 . "$ac_site_file"
2101 fi
2102done
2103
2104if test -r "$cache_file"; then
2105 # Some versions of bash will fail to source /dev/null (special
2106 # files actually), so we avoid doing that.
2107 if test -f "$cache_file"; then
81ecdfbb
RW
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2109$as_echo "$as_me: loading cache $cache_file" >&6;}
6bf9431b 2110 case $cache_file in
81ecdfbb
RW
2111 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2112 *) . "./$cache_file";;
6bf9431b
BE
2113 esac
2114 fi
2115else
81ecdfbb
RW
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2117$as_echo "$as_me: creating cache $cache_file" >&6;}
6bf9431b
BE
2118 >$cache_file
2119fi
2120
2121# Check that the precious variables saved in the cache have kept the same
2122# value.
2123ac_cache_corrupted=false
81ecdfbb 2124for ac_var in $ac_precious_vars; do
6bf9431b
BE
2125 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2126 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2127 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2128 eval ac_new_val=\$ac_env_${ac_var}_value
6bf9431b
BE
2129 case $ac_old_set,$ac_new_set in
2130 set,)
81ecdfbb
RW
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2132$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
6bf9431b
BE
2133 ac_cache_corrupted=: ;;
2134 ,set)
81ecdfbb
RW
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2136$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
6bf9431b
BE
2137 ac_cache_corrupted=: ;;
2138 ,);;
2139 *)
2140 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2141 # differences in whitespace do not lead to failure.
2142 ac_old_val_w=`echo x $ac_old_val`
2143 ac_new_val_w=`echo x $ac_new_val`
2144 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2146$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2147 ac_cache_corrupted=:
2148 else
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2150$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2151 eval $ac_var=\$ac_old_val
2152 fi
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2154$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2156$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
6bf9431b
BE
2157 fi;;
2158 esac
2159 # Pass precious variables to config.status.
2160 if test "$ac_new_set" = set; then
2161 case $ac_new_val in
81ecdfbb 2162 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
6bf9431b
BE
2163 *) ac_arg=$ac_var=$ac_new_val ;;
2164 esac
2165 case " $ac_configure_args " in
2166 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2167 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
6bf9431b
BE
2168 esac
2169 fi
2170done
2171if $ac_cache_corrupted; then
81ecdfbb
RW
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2175$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2176 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
6bf9431b 2177fi
81ecdfbb
RW
2178## -------------------- ##
2179## Main body of script. ##
2180## -------------------- ##
6bf9431b 2181
0ab6f085
AM
2182ac_ext=c
2183ac_cpp='$CPP $CPPFLAGS'
2184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2186ac_compiler_gnu=$ac_cv_c_compiler_gnu
2187
6bf9431b
BE
2188
2189
6bf9431b
BE
2190
2191
2192
2193
2194ac_aux_dir=
81ecdfbb
RW
2195for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2196 for ac_t in install-sh install.sh shtool; do
2197 if test -f "$ac_dir/$ac_t"; then
2198 ac_aux_dir=$ac_dir
2199 ac_install_sh="$ac_aux_dir/$ac_t -c"
2200 break 2
2201 fi
2202 done
6bf9431b
BE
2203done
2204if test -z "$ac_aux_dir"; then
81ecdfbb 2205 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6bf9431b 2206fi
81ecdfbb
RW
2207
2208# These three variables are undocumented and unsupported,
2209# and are intended to be withdrawn in a future Autoconf release.
2210# They can cause serious problems if a builder's source tree is in a directory
2211# whose full name contains unusual characters.
2212ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2213ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2214ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2215
6bf9431b
BE
2216
2217# Make sure we can run config.sub.
81ecdfbb
RW
2218$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2219 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2220
2221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2222$as_echo_n "checking build system type... " >&6; }
2223if test "${ac_cv_build+set}" = set; then :
2224 $as_echo_n "(cached) " >&6
2225else
2226 ac_build_alias=$build_alias
2227test "x$ac_build_alias" = x &&
2228 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2229test "x$ac_build_alias" = x &&
2230 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2231ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2232 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2233
2234fi
2235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2236$as_echo "$ac_cv_build" >&6; }
2237case $ac_cv_build in
2238*-*-*) ;;
2239*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2240esac
6bf9431b 2241build=$ac_cv_build
81ecdfbb
RW
2242ac_save_IFS=$IFS; IFS='-'
2243set x $ac_cv_build
2244shift
2245build_cpu=$1
2246build_vendor=$2
2247shift; shift
2248# Remember, the first character of IFS is used to create $*,
2249# except with old shells:
2250build_os=$*
2251IFS=$ac_save_IFS
2252case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
0ab6f085
AM
2253
2254
81ecdfbb
RW
2255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2256$as_echo_n "checking host system type... " >&6; }
2257if test "${ac_cv_host+set}" = set; then :
2258 $as_echo_n "(cached) " >&6
6bf9431b 2259else
81ecdfbb
RW
2260 if test "x$host_alias" = x; then
2261 ac_cv_host=$ac_cv_build
2262else
2263 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2264 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2265fi
6bf9431b
BE
2266
2267fi
81ecdfbb
RW
2268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2269$as_echo "$ac_cv_host" >&6; }
2270case $ac_cv_host in
2271*-*-*) ;;
2272*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2273esac
6bf9431b 2274host=$ac_cv_host
81ecdfbb
RW
2275ac_save_IFS=$IFS; IFS='-'
2276set x $ac_cv_host
2277shift
2278host_cpu=$1
2279host_vendor=$2
2280shift; shift
2281# Remember, the first character of IFS is used to create $*,
2282# except with old shells:
2283host_os=$*
2284IFS=$ac_save_IFS
2285case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
0ab6f085
AM
2286
2287
81ecdfbb
RW
2288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2289$as_echo_n "checking target system type... " >&6; }
2290if test "${ac_cv_target+set}" = set; then :
2291 $as_echo_n "(cached) " >&6
2292else
2293 if test "x$target_alias" = x; then
2294 ac_cv_target=$ac_cv_host
6bf9431b 2295else
81ecdfbb
RW
2296 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2297 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2298fi
6bf9431b
BE
2299
2300fi
81ecdfbb
RW
2301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2302$as_echo "$ac_cv_target" >&6; }
2303case $ac_cv_target in
2304*-*-*) ;;
2305*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2306esac
6bf9431b 2307target=$ac_cv_target
81ecdfbb
RW
2308ac_save_IFS=$IFS; IFS='-'
2309set x $ac_cv_target
2310shift
2311target_cpu=$1
2312target_vendor=$2
2313shift; shift
2314# Remember, the first character of IFS is used to create $*,
2315# except with old shells:
2316target_os=$*
2317IFS=$ac_save_IFS
2318case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6bf9431b
BE
2319
2320
2321# The aliases save the names the user supplied, while $host etc.
2322# will get canonicalized.
2323test -n "$target_alias" &&
2324 test "$program_prefix$program_suffix$program_transform_name" = \
2325 NONENONEs,x,x, &&
2326 program_prefix=${target_alias}-
2327ac_ext=c
2328ac_cpp='$CPP $CPPFLAGS'
2329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331ac_compiler_gnu=$ac_cv_c_compiler_gnu
2332if test -n "$ac_tool_prefix"; then
2333 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2334set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2336$as_echo_n "checking for $ac_word... " >&6; }
2337if test "${ac_cv_prog_CC+set}" = set; then :
2338 $as_echo_n "(cached) " >&6
6bf9431b
BE
2339else
2340 if test -n "$CC"; then
2341 ac_cv_prog_CC="$CC" # Let the user override the test.
2342else
2343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344for as_dir in $PATH
2345do
2346 IFS=$as_save_IFS
2347 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2350 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2352 break 2
2353 fi
2354done
81ecdfbb
RW
2355 done
2356IFS=$as_save_IFS
6bf9431b
BE
2357
2358fi
2359fi
2360CC=$ac_cv_prog_CC
2361if test -n "$CC"; then
81ecdfbb
RW
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2363$as_echo "$CC" >&6; }
6bf9431b 2364else
81ecdfbb
RW
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2366$as_echo "no" >&6; }
6bf9431b
BE
2367fi
2368
81ecdfbb 2369
6bf9431b
BE
2370fi
2371if test -z "$ac_cv_prog_CC"; then
2372 ac_ct_CC=$CC
2373 # Extract the first word of "gcc", so it can be a program name with args.
2374set dummy gcc; ac_word=$2
81ecdfbb
RW
2375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2376$as_echo_n "checking for $ac_word... " >&6; }
2377if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2378 $as_echo_n "(cached) " >&6
6bf9431b
BE
2379else
2380 if test -n "$ac_ct_CC"; then
2381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2382else
2383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384for as_dir in $PATH
2385do
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2390 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2392 break 2
2393 fi
2394done
81ecdfbb
RW
2395 done
2396IFS=$as_save_IFS
6bf9431b
BE
2397
2398fi
2399fi
2400ac_ct_CC=$ac_cv_prog_ac_ct_CC
2401if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2403$as_echo "$ac_ct_CC" >&6; }
6bf9431b 2404else
81ecdfbb
RW
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2406$as_echo "no" >&6; }
6bf9431b
BE
2407fi
2408
81ecdfbb
RW
2409 if test "x$ac_ct_CC" = x; then
2410 CC=""
2411 else
2412 case $cross_compiling:$ac_tool_warned in
2413yes:)
2414{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2416ac_tool_warned=yes ;;
2417esac
2418 CC=$ac_ct_CC
2419 fi
6bf9431b
BE
2420else
2421 CC="$ac_cv_prog_CC"
2422fi
2423
2424if test -z "$CC"; then
81ecdfbb
RW
2425 if test -n "$ac_tool_prefix"; then
2426 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6bf9431b 2427set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2429$as_echo_n "checking for $ac_word... " >&6; }
2430if test "${ac_cv_prog_CC+set}" = set; then :
2431 $as_echo_n "(cached) " >&6
6bf9431b
BE
2432else
2433 if test -n "$CC"; then
2434 ac_cv_prog_CC="$CC" # Let the user override the test.
2435else
2436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437for as_dir in $PATH
2438do
2439 IFS=$as_save_IFS
2440 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2443 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2445 break 2
2446 fi
2447done
81ecdfbb
RW
2448 done
2449IFS=$as_save_IFS
6bf9431b
BE
2450
2451fi
2452fi
2453CC=$ac_cv_prog_CC
2454if test -n "$CC"; then
81ecdfbb
RW
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2456$as_echo "$CC" >&6; }
0ab6f085 2457else
81ecdfbb
RW
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2459$as_echo "no" >&6; }
0ab6f085
AM
2460fi
2461
0ab6f085 2462
81ecdfbb 2463 fi
6bf9431b
BE
2464fi
2465if test -z "$CC"; then
2466 # Extract the first word of "cc", so it can be a program name with args.
2467set dummy cc; ac_word=$2
81ecdfbb
RW
2468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2469$as_echo_n "checking for $ac_word... " >&6; }
2470if test "${ac_cv_prog_CC+set}" = set; then :
2471 $as_echo_n "(cached) " >&6
6bf9431b
BE
2472else
2473 if test -n "$CC"; then
2474 ac_cv_prog_CC="$CC" # Let the user override the test.
2475else
2476 ac_prog_rejected=no
2477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478for as_dir in $PATH
2479do
2480 IFS=$as_save_IFS
2481 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b
BE
2484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2485 ac_prog_rejected=yes
2486 continue
2487 fi
2488 ac_cv_prog_CC="cc"
81ecdfbb 2489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2490 break 2
2491 fi
2492done
81ecdfbb
RW
2493 done
2494IFS=$as_save_IFS
6bf9431b
BE
2495
2496if test $ac_prog_rejected = yes; then
2497 # We found a bogon in the path, so make sure we never use it.
2498 set dummy $ac_cv_prog_CC
2499 shift
2500 if test $# != 0; then
2501 # We chose a different compiler from the bogus one.
2502 # However, it has the same basename, so the bogon will be chosen
2503 # first if we set CC to just the basename; use the full file name.
2504 shift
2505 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2506 fi
2507fi
2508fi
2509fi
2510CC=$ac_cv_prog_CC
2511if test -n "$CC"; then
81ecdfbb
RW
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2513$as_echo "$CC" >&6; }
6bf9431b 2514else
81ecdfbb
RW
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2516$as_echo "no" >&6; }
6bf9431b
BE
2517fi
2518
81ecdfbb 2519
6bf9431b
BE
2520fi
2521if test -z "$CC"; then
2522 if test -n "$ac_tool_prefix"; then
81ecdfbb 2523 for ac_prog in cl.exe
6bf9431b
BE
2524 do
2525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2526set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2528$as_echo_n "checking for $ac_word... " >&6; }
2529if test "${ac_cv_prog_CC+set}" = set; then :
2530 $as_echo_n "(cached) " >&6
6bf9431b
BE
2531else
2532 if test -n "$CC"; then
2533 ac_cv_prog_CC="$CC" # Let the user override the test.
2534else
2535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536for as_dir in $PATH
2537do
2538 IFS=$as_save_IFS
2539 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2542 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2544 break 2
2545 fi
2546done
81ecdfbb
RW
2547 done
2548IFS=$as_save_IFS
6bf9431b
BE
2549
2550fi
2551fi
2552CC=$ac_cv_prog_CC
2553if test -n "$CC"; then
81ecdfbb
RW
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2555$as_echo "$CC" >&6; }
6bf9431b 2556else
81ecdfbb
RW
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2558$as_echo "no" >&6; }
6bf9431b
BE
2559fi
2560
81ecdfbb 2561
6bf9431b
BE
2562 test -n "$CC" && break
2563 done
2564fi
2565if test -z "$CC"; then
2566 ac_ct_CC=$CC
81ecdfbb 2567 for ac_prog in cl.exe
6bf9431b
BE
2568do
2569 # Extract the first word of "$ac_prog", so it can be a program name with args.
2570set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572$as_echo_n "checking for $ac_word... " >&6; }
2573if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2574 $as_echo_n "(cached) " >&6
6bf9431b
BE
2575else
2576 if test -n "$ac_ct_CC"; then
2577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2578else
2579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580for as_dir in $PATH
2581do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2586 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2588 break 2
2589 fi
2590done
81ecdfbb
RW
2591 done
2592IFS=$as_save_IFS
6bf9431b
BE
2593
2594fi
2595fi
2596ac_ct_CC=$ac_cv_prog_ac_ct_CC
2597if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2599$as_echo "$ac_ct_CC" >&6; }
6bf9431b 2600else
81ecdfbb
RW
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602$as_echo "no" >&6; }
6bf9431b
BE
2603fi
2604
81ecdfbb 2605
6bf9431b
BE
2606 test -n "$ac_ct_CC" && break
2607done
2608
81ecdfbb
RW
2609 if test "x$ac_ct_CC" = x; then
2610 CC=""
2611 else
2612 case $cross_compiling:$ac_tool_warned in
2613yes:)
2614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2616ac_tool_warned=yes ;;
2617esac
2618 CC=$ac_ct_CC
2619 fi
6bf9431b
BE
2620fi
2621
2622fi
2623
2624
81ecdfbb
RW
2625test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2627as_fn_error "no acceptable C compiler found in \$PATH
2628See \`config.log' for more details." "$LINENO" 5; }
6bf9431b
BE
2629
2630# Provide some information about the compiler.
81ecdfbb
RW
2631$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2632set X $ac_compile
2633ac_compiler=$2
2634for ac_option in --version -v -V -qversion; do
2635 { { ac_try="$ac_compiler $ac_option >&5"
2636case "(($ac_try" in
2637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638 *) ac_try_echo=$ac_try;;
2639esac
2640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2641$as_echo "$ac_try_echo"; } >&5
2642 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6bf9431b 2643 ac_status=$?
81ecdfbb
RW
2644 if test -s conftest.err; then
2645 sed '10a\
2646... rest of stderr output deleted ...
2647 10q' conftest.err >conftest.er1
2648 cat conftest.er1 >&5
2649 rm -f conftest.er1 conftest.err
2650 fi
2651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2652 test $ac_status = 0; }
2653done
6bf9431b 2654
81ecdfbb 2655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
2656/* end confdefs.h. */
2657
2658int
2659main ()
2660{
2661
2662 ;
2663 return 0;
2664}
2665_ACEOF
2666ac_clean_files_save=$ac_clean_files
81ecdfbb 2667ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
6bf9431b
BE
2668# Try to create an executable without -o first, disregard a.out.
2669# It will help us diagnose broken compilers, and finding out an intuition
2670# of exeext.
81ecdfbb
RW
2671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2672$as_echo_n "checking for C compiler default output file name... " >&6; }
2673ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2674
2675# The possible output files:
2676ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2677
2678ac_rmfiles=
2679for ac_file in $ac_files
2680do
2681 case $ac_file in
2682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2683 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2684 esac
2685done
2686rm -f $ac_rmfiles
2687
2688if { { ac_try="$ac_link_default"
2689case "(($ac_try" in
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2692esac
2693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2694$as_echo "$ac_try_echo"; } >&5
2695 (eval "$ac_link_default") 2>&5
2696 ac_status=$?
2697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2698 test $ac_status = 0; }; then :
2699 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2700# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2701# in a Makefile. We should not override ac_cv_exeext if it was cached,
2702# so that the user can short-circuit this test for compilers unknown to
2703# Autoconf.
2704for ac_file in $ac_files ''
6bf9431b
BE
2705do
2706 test -f "$ac_file" || continue
2707 case $ac_file in
81ecdfbb 2708 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
6bf9431b
BE
2709 ;;
2710 [ab].out )
2711 # We found the default executable, but exeext='' is most
2712 # certainly right.
2713 break;;
2714 *.* )
81ecdfbb
RW
2715 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2716 then :; else
2717 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2718 fi
2719 # We set ac_cv_exeext here because the later test for it is not
2720 # safe: cross compilers may not add the suffix if given an `-o'
2721 # argument, so we may need to know it at that point already.
2722 # Even if this section looks crufty: it has the advantage of
2723 # actually working.
6bf9431b
BE
2724 break;;
2725 * )
2726 break;;
2727 esac
2728done
81ecdfbb
RW
2729test "$ac_cv_exeext" = no && ac_cv_exeext=
2730
6bf9431b 2731else
81ecdfbb
RW
2732 ac_file=''
2733fi
2734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2735$as_echo "$ac_file" >&6; }
2736if test -z "$ac_file"; then :
2737 $as_echo "$as_me: failed program was:" >&5
6bf9431b
BE
2738sed 's/^/| /' conftest.$ac_ext >&5
2739
81ecdfbb
RW
2740{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2742{ as_fn_set_status 77
2743as_fn_error "C compiler cannot create executables
2744See \`config.log' for more details." "$LINENO" 5; }; }
6bf9431b 2745fi
6bf9431b 2746ac_exeext=$ac_cv_exeext
6bf9431b 2747
81ecdfbb 2748# Check that the compiler produces executables we can run. If not, either
6bf9431b 2749# the compiler is broken, or we cross compile.
81ecdfbb
RW
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2751$as_echo_n "checking whether the C compiler works... " >&6; }
6bf9431b
BE
2752# If not cross compiling, check that we can run a simple program.
2753if test "$cross_compiling" != yes; then
2754 if { ac_try='./$ac_file'
81ecdfbb
RW
2755 { { case "(($ac_try" in
2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757 *) ac_try_echo=$ac_try;;
2758esac
2759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2760$as_echo "$ac_try_echo"; } >&5
2761 (eval "$ac_try") 2>&5
6bf9431b 2762 ac_status=$?
81ecdfbb
RW
2763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2764 test $ac_status = 0; }; }; then
6bf9431b
BE
2765 cross_compiling=no
2766 else
2767 if test "$cross_compiling" = maybe; then
2768 cross_compiling=yes
2769 else
81ecdfbb
RW
2770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2771$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2772as_fn_error "cannot run C compiled programs.
6bf9431b 2773If you meant to cross compile, use \`--host'.
81ecdfbb 2774See \`config.log' for more details." "$LINENO" 5; }
6bf9431b
BE
2775 fi
2776 fi
2777fi
81ecdfbb
RW
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2779$as_echo "yes" >&6; }
6bf9431b 2780
81ecdfbb 2781rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
6bf9431b 2782ac_clean_files=$ac_clean_files_save
81ecdfbb 2783# Check that the compiler produces executables we can run. If not, either
6bf9431b 2784# the compiler is broken, or we cross compile.
81ecdfbb
RW
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2786$as_echo_n "checking whether we are cross compiling... " >&6; }
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2788$as_echo "$cross_compiling" >&6; }
2789
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2791$as_echo_n "checking for suffix of executables... " >&6; }
2792if { { ac_try="$ac_link"
2793case "(($ac_try" in
2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795 *) ac_try_echo=$ac_try;;
2796esac
2797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2798$as_echo "$ac_try_echo"; } >&5
2799 (eval "$ac_link") 2>&5
6bf9431b 2800 ac_status=$?
81ecdfbb
RW
2801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2802 test $ac_status = 0; }; then :
6bf9431b
BE
2803 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2804# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2805# work properly (i.e., refer to `conftest.exe'), while it won't with
2806# `rm'.
2807for ac_file in conftest.exe conftest conftest.*; do
2808 test -f "$ac_file" || continue
2809 case $ac_file in
81ecdfbb 2810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6bf9431b 2811 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6bf9431b
BE
2812 break;;
2813 * ) break;;
2814 esac
2815done
2816else
81ecdfbb
RW
2817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2818$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2819as_fn_error "cannot compute suffix of executables: cannot compile and link
2820See \`config.log' for more details." "$LINENO" 5; }
6bf9431b 2821fi
6bf9431b 2822rm -f conftest$ac_cv_exeext
81ecdfbb
RW
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2824$as_echo "$ac_cv_exeext" >&6; }
6bf9431b
BE
2825
2826rm -f conftest.$ac_ext
2827EXEEXT=$ac_cv_exeext
2828ac_exeext=$EXEEXT
81ecdfbb
RW
2829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2830$as_echo_n "checking for suffix of object files... " >&6; }
2831if test "${ac_cv_objext+set}" = set; then :
2832 $as_echo_n "(cached) " >&6
6bf9431b 2833else
81ecdfbb 2834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
2835/* end confdefs.h. */
2836
2837int
2838main ()
2839{
2840
2841 ;
2842 return 0;
2843}
2844_ACEOF
2845rm -f conftest.o conftest.obj
81ecdfbb
RW
2846if { { ac_try="$ac_compile"
2847case "(($ac_try" in
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2850esac
2851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2852$as_echo "$ac_try_echo"; } >&5
2853 (eval "$ac_compile") 2>&5
2854 ac_status=$?
2855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2856 test $ac_status = 0; }; then :
2857 for ac_file in conftest.o conftest.obj conftest.*; do
2858 test -f "$ac_file" || continue;
6bf9431b 2859 case $ac_file in
81ecdfbb 2860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6bf9431b
BE
2861 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2862 break;;
2863 esac
2864done
2865else
81ecdfbb 2866 $as_echo "$as_me: failed program was:" >&5
6bf9431b
BE
2867sed 's/^/| /' conftest.$ac_ext >&5
2868
81ecdfbb
RW
2869{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2871as_fn_error "cannot compute suffix of object files: cannot compile
2872See \`config.log' for more details." "$LINENO" 5; }
6bf9431b 2873fi
6bf9431b
BE
2874rm -f conftest.$ac_cv_objext conftest.$ac_ext
2875fi
81ecdfbb
RW
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2877$as_echo "$ac_cv_objext" >&6; }
6bf9431b
BE
2878OBJEXT=$ac_cv_objext
2879ac_objext=$OBJEXT
81ecdfbb
RW
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2881$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2882if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2883 $as_echo_n "(cached) " >&6
6bf9431b 2884else
81ecdfbb 2885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
2886/* end confdefs.h. */
2887
2888int
2889main ()
2890{
2891#ifndef __GNUC__
2892 choke me
2893#endif
2894
2895 ;
2896 return 0;
2897}
2898_ACEOF
81ecdfbb 2899if ac_fn_c_try_compile "$LINENO"; then :
6bf9431b
BE
2900 ac_compiler_gnu=yes
2901else
81ecdfbb 2902 ac_compiler_gnu=no
6bf9431b 2903fi
81ecdfbb 2904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b
BE
2905ac_cv_c_compiler_gnu=$ac_compiler_gnu
2906
2907fi
81ecdfbb
RW
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2909$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2910if test $ac_compiler_gnu = yes; then
2911 GCC=yes
2912else
2913 GCC=
2914fi
6bf9431b
BE
2915ac_test_CFLAGS=${CFLAGS+set}
2916ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2918$as_echo_n "checking whether $CC accepts -g... " >&6; }
2919if test "${ac_cv_prog_cc_g+set}" = set; then :
2920 $as_echo_n "(cached) " >&6
2921else
2922 ac_save_c_werror_flag=$ac_c_werror_flag
2923 ac_c_werror_flag=yes
2924 ac_cv_prog_cc_g=no
2925 CFLAGS="-g"
2926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
2927/* end confdefs.h. */
2928
2929int
2930main ()
2931{
2932
2933 ;
2934 return 0;
2935}
2936_ACEOF
81ecdfbb 2937if ac_fn_c_try_compile "$LINENO"; then :
6bf9431b
BE
2938 ac_cv_prog_cc_g=yes
2939else
81ecdfbb
RW
2940 CFLAGS=""
2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942/* end confdefs.h. */
2943
2944int
2945main ()
2946{
2947
2948 ;
2949 return 0;
2950}
2951_ACEOF
2952if ac_fn_c_try_compile "$LINENO"; then :
2953
2954else
2955 ac_c_werror_flag=$ac_save_c_werror_flag
2956 CFLAGS="-g"
2957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2958/* end confdefs.h. */
2959
2960int
2961main ()
2962{
6bf9431b 2963
81ecdfbb
RW
2964 ;
2965 return 0;
2966}
2967_ACEOF
2968if ac_fn_c_try_compile "$LINENO"; then :
2969 ac_cv_prog_cc_g=yes
2970fi
2971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b 2972fi
81ecdfbb 2973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b 2974fi
81ecdfbb
RW
2975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976 ac_c_werror_flag=$ac_save_c_werror_flag
2977fi
2978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2979$as_echo "$ac_cv_prog_cc_g" >&6; }
6bf9431b
BE
2980if test "$ac_test_CFLAGS" = set; then
2981 CFLAGS=$ac_save_CFLAGS
2982elif test $ac_cv_prog_cc_g = yes; then
2983 if test "$GCC" = yes; then
2984 CFLAGS="-g -O2"
2985 else
2986 CFLAGS="-g"
2987 fi
2988else
2989 if test "$GCC" = yes; then
2990 CFLAGS="-O2"
2991 else
2992 CFLAGS=
2993 fi
2994fi
81ecdfbb
RW
2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2996$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2997if test "${ac_cv_prog_cc_c89+set}" = set; then :
2998 $as_echo_n "(cached) " >&6
6bf9431b 2999else
81ecdfbb 3000 ac_cv_prog_cc_c89=no
6bf9431b 3001ac_save_CC=$CC
81ecdfbb 3002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
3003/* end confdefs.h. */
3004#include <stdarg.h>
3005#include <stdio.h>
3006#include <sys/types.h>
3007#include <sys/stat.h>
3008/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3009struct buf { int x; };
3010FILE * (*rcsopen) (struct buf *, struct stat *, int);
3011static char *e (p, i)
3012 char **p;
3013 int i;
3014{
3015 return p[i];
3016}
3017static char *f (char * (*g) (char **, int), char **p, ...)
3018{
3019 char *s;
3020 va_list v;
3021 va_start (v,p);
3022 s = g (p, va_arg (v,int));
3023 va_end (v);
3024 return s;
3025}
3026
3027/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3028 function prototypes and stuff, but not '\xHH' hex character constants.
3029 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3030 as 'x'. The following induces an error, until -std is added to get
6bf9431b
BE
3031 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3032 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3033 that's true only with -std. */
6bf9431b
BE
3034int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3035
81ecdfbb
RW
3036/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3037 inside strings and character constants. */
3038#define FOO(x) 'x'
3039int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3040
6bf9431b
BE
3041int test (int i, double x);
3042struct s1 {int (*f) (int a);};
3043struct s2 {int (*f) (double a);};
3044int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3045int argc;
3046char **argv;
3047int
3048main ()
3049{
3050return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3051 ;
3052 return 0;
3053}
3054_ACEOF
81ecdfbb
RW
3055for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3056 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6bf9431b
BE
3057do
3058 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3059 if ac_fn_c_try_compile "$LINENO"; then :
3060 ac_cv_prog_cc_c89=$ac_arg
6bf9431b 3061fi
81ecdfbb
RW
3062rm -f core conftest.err conftest.$ac_objext
3063 test "x$ac_cv_prog_cc_c89" != "xno" && break
6bf9431b 3064done
81ecdfbb 3065rm -f conftest.$ac_ext
6bf9431b
BE
3066CC=$ac_save_CC
3067
3068fi
81ecdfbb
RW
3069# AC_CACHE_VAL
3070case "x$ac_cv_prog_cc_c89" in
3071 x)
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3073$as_echo "none needed" >&6; } ;;
3074 xno)
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3076$as_echo "unsupported" >&6; } ;;
6bf9431b 3077 *)
81ecdfbb
RW
3078 CC="$CC $ac_cv_prog_cc_c89"
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3080$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6bf9431b 3081esac
81ecdfbb 3082if test "x$ac_cv_prog_cc_c89" != xno; then :
6bf9431b 3083
0ab6f085
AM
3084fi
3085
6bf9431b
BE
3086ac_ext=c
3087ac_cpp='$CPP $CPPFLAGS'
3088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3090ac_compiler_gnu=$ac_cv_c_compiler_gnu
3091
3092
81ecdfbb
RW
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3094$as_echo_n "checking for library containing strerror... " >&6; }
3095if test "${ac_cv_search_strerror+set}" = set; then :
3096 $as_echo_n "(cached) " >&6
6bf9431b
BE
3097else
3098 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
3100/* end confdefs.h. */
3101
81ecdfbb
RW
3102/* Override any GCC internal prototype to avoid an error.
3103 Use char because int might match the return type of a GCC
3104 builtin and then its argument prototype would still apply. */
6bf9431b
BE
3105#ifdef __cplusplus
3106extern "C"
3107#endif
6bf9431b
BE
3108char strerror ();
3109int
3110main ()
3111{
81ecdfbb 3112return strerror ();
6bf9431b
BE
3113 ;
3114 return 0;
3115}
3116_ACEOF
81ecdfbb
RW
3117for ac_lib in '' cposix; do
3118 if test -z "$ac_lib"; then
3119 ac_res="none required"
3120 else
3121 ac_res=-l$ac_lib
0ab6f085 3122 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3123 fi
3124 if ac_fn_c_try_link "$LINENO"; then :
3125 ac_cv_search_strerror=$ac_res
3126fi
3127rm -f core conftest.err conftest.$ac_objext \
3128 conftest$ac_exeext
3129 if test "${ac_cv_search_strerror+set}" = set; then :
3130 break
3131fi
3132done
3133if test "${ac_cv_search_strerror+set}" = set; then :
6bf9431b 3134
1b9750d6 3135else
81ecdfbb 3136 ac_cv_search_strerror=no
6bf9431b 3137fi
81ecdfbb 3138rm conftest.$ac_ext
6bf9431b
BE
3139LIBS=$ac_func_search_save_LIBS
3140fi
81ecdfbb
RW
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3142$as_echo "$ac_cv_search_strerror" >&6; }
3143ac_res=$ac_cv_search_strerror
3144if test "$ac_res" != no; then :
3145 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6bf9431b
BE
3146
3147fi
3148
3149
c4dd807e 3150BFD_VERSION=`${srcdir}/../bfd/configure --version | sed -n -e '1s,.* ,,p'`
81ecdfbb
RW
3151am__api_version='1.11'
3152
6bf9431b
BE
3153# Find a good install program. We prefer a C program (faster),
3154# so one script is as good as another. But avoid the broken or
3155# incompatible versions:
3156# SysV /etc/install, /usr/sbin/install
3157# SunOS /usr/etc/install
3158# IRIX /sbin/install
3159# AIX /bin/install
3160# AmigaOS /C/install, which installs bootblocks on floppy discs
3161# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3162# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3163# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3164# OS/2's system install, which has a completely different semantic
3165# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3166# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3168$as_echo_n "checking for a BSD-compatible install... " >&6; }
6bf9431b 3169if test -z "$INSTALL"; then
81ecdfbb
RW
3170if test "${ac_cv_path_install+set}" = set; then :
3171 $as_echo_n "(cached) " >&6
6bf9431b
BE
3172else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174for as_dir in $PATH
3175do
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3178 # Account for people who put trailing slashes in PATH elements.
3179case $as_dir/ in #((
3180 ./ | .// | /[cC]/* | \
6bf9431b 3181 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3182 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6bf9431b
BE
3183 /usr/ucb/* ) ;;
3184 *)
3185 # OSF1 and SCO ODT 3.0 have their own names for install.
3186 # Don't use installbsd from OSF since it installs stuff as root
3187 # by default.
3188 for ac_prog in ginstall scoinst install; do
3189 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3190 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6bf9431b
BE
3191 if test $ac_prog = install &&
3192 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3193 # AIX install. It has an incompatible calling convention.
3194 :
3195 elif test $ac_prog = install &&
3196 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3197 # program-specific install script used by HP pwplus--don't use.
3198 :
252b5132 3199 else
58c85be7
RW
3200 rm -rf conftest.one conftest.two conftest.dir
3201 echo one > conftest.one
3202 echo two > conftest.two
3203 mkdir conftest.dir
3204 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3205 test -s conftest.one && test -s conftest.two &&
3206 test -s conftest.dir/conftest.one &&
3207 test -s conftest.dir/conftest.two
3208 then
3209 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3210 break 3
3211 fi
252b5132
RH
3212 fi
3213 fi
3214 done
6bf9431b
BE
3215 done
3216 ;;
3217esac
81ecdfbb
RW
3218
3219 done
3220IFS=$as_save_IFS
6bf9431b 3221
58c85be7 3222rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3223
3224fi
3225 if test "${ac_cv_path_install+set}" = set; then
6bf9431b 3226 INSTALL=$ac_cv_path_install
252b5132 3227 else
58c85be7
RW
3228 # As a last resort, use the slow shell script. Don't cache a
3229 # value for INSTALL within a source directory, because that will
252b5132 3230 # break other packages using the cache if that directory is
58c85be7 3231 # removed, or if the value is a relative name.
6bf9431b 3232 INSTALL=$ac_install_sh
252b5132
RH
3233 fi
3234fi
81ecdfbb
RW
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3236$as_echo "$INSTALL" >&6; }
252b5132
RH
3237
3238# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3239# It thinks the first close brace ends the variable substitution.
3240test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3241
6bf9431b 3242test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3243
3244test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3245
81ecdfbb
RW
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3247$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3248# Just in case
3249sleep 1
6bf9431b 3250echo timestamp > conftest.file
81ecdfbb
RW
3251# Reject unsafe characters in $srcdir or the absolute working directory
3252# name. Accept space and tab only in the latter.
3253am_lf='
3254'
3255case `pwd` in
3256 *[\\\"\#\$\&\'\`$am_lf]*)
3257 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3258esac
3259case $srcdir in
3260 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3261 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3262esac
3263
252b5132
RH
3264# Do `set' in a subshell so we don't clobber the current shell's
3265# arguments. Must try -L first in case configure is actually a
3266# symlink; some systems play weird games with the mod time of symlinks
3267# (eg FreeBSD returns the mod time of the symlink's containing
3268# directory).
3269if (
81ecdfbb 3270 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3271 if test "$*" = "X"; then
3272 # -L didn't work.
81ecdfbb 3273 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3274 fi
6bf9431b
BE
3275 rm -f conftest.file
3276 if test "$*" != "X $srcdir/configure conftest.file" \
3277 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3278
3279 # If neither matched, then we have a broken ls. This can happen
3280 # if, for instance, CONFIG_SHELL is bash and it inherits a
3281 # broken ls alias from the environment. This has actually
3282 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3283 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3284alias in your environment" "$LINENO" 5
252b5132
RH
3285 fi
3286
6bf9431b 3287 test "$2" = conftest.file
252b5132
RH
3288 )
3289then
3290 # Ok.
3291 :
3292else
81ecdfbb
RW
3293 as_fn_error "newly created file is older than distributed files!
3294Check your system clock" "$LINENO" 5
252b5132 3295fi
81ecdfbb
RW
3296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297$as_echo "yes" >&6; }
252b5132 3298test "$program_prefix" != NONE &&
81ecdfbb 3299 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3300# Use a double $ so make ignores it.
3301test "$program_suffix" != NONE &&
81ecdfbb
RW
3302 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3303# Double any \ or $.
6bf9431b 3304# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3305ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3306program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
6bf9431b
BE
3307
3308# expand $ac_aux_dir to an absolute path
3309am_aux_dir=`cd $ac_aux_dir && pwd`
3310
81ecdfbb
RW
3311if test x"${MISSING+set}" != xset; then
3312 case $am_aux_dir in
3313 *\ * | *\ *)
3314 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3315 *)
3316 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3317 esac
3318fi
6bf9431b
BE
3319# Use eval to expand $SHELL
3320if eval "$MISSING --run true"; then
3321 am_missing_run="$MISSING --run "
3322else
3323 am_missing_run=
81ecdfbb
RW
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3325$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6bf9431b 3326fi
252b5132 3327
81ecdfbb
RW
3328if test x"${install_sh}" != xset; then
3329 case $am_aux_dir in
3330 *\ * | *\ *)
3331 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3332 *)
3333 install_sh="\${SHELL} $am_aux_dir/install-sh"
3334 esac
3335fi
3336
3337# Installed binaries are usually stripped using `strip' when the user
3338# run `make install-strip'. However `strip' might not be the right
3339# tool to use in cross-compilation environments, therefore Automake
3340# will honor the `STRIP' environment variable to overrule this program.
3341if test "$cross_compiling" != no; then
3342 if test -n "$ac_tool_prefix"; then
3343 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3344set dummy ${ac_tool_prefix}strip; ac_word=$2
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346$as_echo_n "checking for $ac_word... " >&6; }
3347if test "${ac_cv_prog_STRIP+set}" = set; then :
3348 $as_echo_n "(cached) " >&6
6bf9431b 3349else
81ecdfbb
RW
3350 if test -n "$STRIP"; then
3351 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6bf9431b
BE
3352else
3353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354for as_dir in $PATH
3355do
3356 IFS=$as_save_IFS
3357 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3360 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
3362 break 2
3363 fi
3364done
81ecdfbb
RW
3365 done
3366IFS=$as_save_IFS
6bf9431b
BE
3367
3368fi
3369fi
81ecdfbb
RW
3370STRIP=$ac_cv_prog_STRIP
3371if test -n "$STRIP"; then
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3373$as_echo "$STRIP" >&6; }
6bf9431b 3374else
81ecdfbb
RW
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376$as_echo "no" >&6; }
6bf9431b
BE
3377fi
3378
252b5132 3379
81ecdfbb
RW
3380fi
3381if test -z "$ac_cv_prog_STRIP"; then
3382 ac_ct_STRIP=$STRIP
3383 # Extract the first word of "strip", so it can be a program name with args.
3384set dummy strip; ac_word=$2
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386$as_echo_n "checking for $ac_word... " >&6; }
3387if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3388 $as_echo_n "(cached) " >&6
252b5132 3389else
81ecdfbb
RW
3390 if test -n "$ac_ct_STRIP"; then
3391 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
0ab6f085 3392else
81ecdfbb
RW
3393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394for as_dir in $PATH
3395do
3396 IFS=$as_save_IFS
3397 test -z "$as_dir" && as_dir=.
3398 for ac_exec_ext in '' $ac_executable_extensions; do
3399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3400 ac_cv_prog_ac_ct_STRIP="strip"
3401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 break 2
3403 fi
3404done
3405 done
3406IFS=$as_save_IFS
3407
0ab6f085 3408fi
252b5132 3409fi
81ecdfbb
RW
3410ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3411if test -n "$ac_ct_STRIP"; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3413$as_echo "$ac_ct_STRIP" >&6; }
252b5132 3414else
81ecdfbb
RW
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416$as_echo "no" >&6; }
252b5132
RH
3417fi
3418
81ecdfbb
RW
3419 if test "x$ac_ct_STRIP" = x; then
3420 STRIP=":"
3421 else
3422 case $cross_compiling:$ac_tool_warned in
3423yes:)
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3426ac_tool_warned=yes ;;
3427esac
3428 STRIP=$ac_ct_STRIP
3429 fi
3430else
3431 STRIP="$ac_cv_prog_STRIP"
3432fi
3433
3434fi
3435INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3436
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3438$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3439if test -z "$MKDIR_P"; then
3440 if test "${ac_cv_path_mkdir+set}" = set; then :
3441 $as_echo_n "(cached) " >&6
3442else
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3445do
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
3448 for ac_prog in mkdir gmkdir; do
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3451 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3452 'mkdir (GNU coreutils) '* | \
3453 'mkdir (coreutils) '* | \
3454 'mkdir (fileutils) '4.1*)
3455 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3456 break 3;;
3457 esac
3458 done
3459 done
3460 done
3461IFS=$as_save_IFS
3462
3463fi
3464
3465 if test "${ac_cv_path_mkdir+set}" = set; then
3466 MKDIR_P="$ac_cv_path_mkdir -p"
3467 else
3468 # As a last resort, use the slow shell script. Don't cache a
3469 # value for MKDIR_P within a source directory, because that will
3470 # break other packages using the cache if that directory is
3471 # removed, or if the value is a relative name.
3472 test -d ./--version && rmdir ./--version
3473 MKDIR_P="$ac_install_sh -d"
3474 fi
3475fi
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3477$as_echo "$MKDIR_P" >&6; }
3478
3479mkdir_p="$MKDIR_P"
3480case $mkdir_p in
3481 [\\/$]* | ?:[\\/]*) ;;
3482 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3483esac
3484
3485for ac_prog in gawk mawk nawk awk
3486do
3487 # Extract the first word of "$ac_prog", so it can be a program name with args.
3488set dummy $ac_prog; ac_word=$2
3489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3490$as_echo_n "checking for $ac_word... " >&6; }
3491if test "${ac_cv_prog_AWK+set}" = set; then :
3492 $as_echo_n "(cached) " >&6
3493else
3494 if test -n "$AWK"; then
3495 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3496else
3497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498for as_dir in $PATH
3499do
3500 IFS=$as_save_IFS
3501 test -z "$as_dir" && as_dir=.
3502 for ac_exec_ext in '' $ac_executable_extensions; do
3503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3504 ac_cv_prog_AWK="$ac_prog"
3505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3506 break 2
3507 fi
3508done
3509 done
3510IFS=$as_save_IFS
3511
3512fi
3513fi
3514AWK=$ac_cv_prog_AWK
3515if test -n "$AWK"; then
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3517$as_echo "$AWK" >&6; }
3518else
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520$as_echo "no" >&6; }
3521fi
3522
3523
3524 test -n "$AWK" && break
3525done
3526
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3528$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3529set x ${MAKE-make}
3530ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3531if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3532 $as_echo_n "(cached) " >&6
3533else
3534 cat >conftest.make <<\_ACEOF
3535SHELL = /bin/sh
3536all:
3537 @echo '@@@%%%=$(MAKE)=@@@%%%'
3538_ACEOF
3539# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3540case `${MAKE-make} -f conftest.make 2>/dev/null` in
3541 *@@@%%%=?*=@@@%%%*)
3542 eval ac_cv_prog_make_${ac_make}_set=yes;;
3543 *)
3544 eval ac_cv_prog_make_${ac_make}_set=no;;
3545esac
3546rm -f conftest.make
3547fi
3548if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3550$as_echo "yes" >&6; }
3551 SET_MAKE=
3552else
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554$as_echo "no" >&6; }
3555 SET_MAKE="MAKE=${MAKE-make}"
3556fi
3557
3558rm -rf .tst 2>/dev/null
6bf9431b
BE
3559mkdir .tst 2>/dev/null
3560if test -d .tst; then
3561 am__leading_dot=.
3562else
3563 am__leading_dot=_
3564fi
3565rmdir .tst 2>/dev/null
3566
3567DEPDIR="${am__leading_dot}deps"
3568
81ecdfbb 3569ac_config_commands="$ac_config_commands depfiles"
6bf9431b
BE
3570
3571
3572am_make=${MAKE-make}
3573cat > confinc << 'END'
3574am__doit:
81ecdfbb 3575 @echo this is the am__doit target
6bf9431b
BE
3576.PHONY: am__doit
3577END
3578# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3580$as_echo_n "checking for style of include used by $am_make... " >&6; }
6bf9431b
BE
3581am__include="#"
3582am__quote=
3583_am_result=none
3584# First try GNU make style include.
3585echo "include confinc" > confmf
81ecdfbb
RW
3586# Ignore all kinds of additional output from `make'.
3587case `$am_make -s -f confmf 2> /dev/null` in #(
3588*the\ am__doit\ target*)
3589 am__include=include
3590 am__quote=
3591 _am_result=GNU
3592 ;;
3593esac
6bf9431b
BE
3594# Now try BSD make style include.
3595if test "$am__include" = "#"; then
3596 echo '.include "confinc"' > confmf
81ecdfbb
RW
3597 case `$am_make -s -f confmf 2> /dev/null` in #(
3598 *the\ am__doit\ target*)
3599 am__include=.include
3600 am__quote="\""
3601 _am_result=BSD
3602 ;;
3603 esac
6bf9431b
BE
3604fi
3605
252b5132 3606
81ecdfbb
RW
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3608$as_echo "$_am_result" >&6; }
6bf9431b 3609rm -f confinc confmf
252b5132 3610
81ecdfbb
RW
3611# Check whether --enable-dependency-tracking was given.
3612if test "${enable_dependency_tracking+set}" = set; then :
3613 enableval=$enable_dependency_tracking;
3614fi
252b5132 3615
6bf9431b
BE
3616if test "x$enable_dependency_tracking" != xno; then
3617 am_depcomp="$ac_aux_dir/depcomp"
3618 AMDEPBACKSLASH='\'
252b5132 3619fi
81ecdfbb 3620 if test "x$enable_dependency_tracking" != xno; then
6bf9431b
BE
3621 AMDEP_TRUE=
3622 AMDEP_FALSE='#'
3623else
3624 AMDEP_TRUE='#'
3625 AMDEP_FALSE=
3626fi
3627
3628
81ecdfbb
RW
3629if test "`cd $srcdir && pwd`" != "`pwd`"; then
3630 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3631 # is not polluted with repeated "-I."
3632 am__isrc=' -I$(srcdir)'
3633 # test to see if srcdir already configured
3634 if test -f $srcdir/config.status; then
3635 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3636 fi
6bf9431b
BE
3637fi
3638
3639# test whether we have cygpath
3640if test -z "$CYGPATH_W"; then
3641 if (cygpath --version) >/dev/null 2>/dev/null; then
3642 CYGPATH_W='cygpath -w'
3643 else
3644 CYGPATH_W=echo
3645 fi
3646fi
3647
3648
3649# Define the identity of the package.
3650 PACKAGE=gprof
3651 VERSION=${BFD_VERSION}
3652
3653
3654cat >>confdefs.h <<_ACEOF
252b5132 3655#define PACKAGE "$PACKAGE"
6bf9431b
BE
3656_ACEOF
3657
252b5132 3658
6bf9431b 3659cat >>confdefs.h <<_ACEOF
252b5132 3660#define VERSION "$VERSION"
6bf9431b
BE
3661_ACEOF
3662
3663# Some tools Automake needs.
3664
3665ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3666
3667
3668AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3669
3670
3671AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3672
3673
3674AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3675
3676
3677MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3678
6bf9431b
BE
3679# We need awk for the "check" target. The system "awk" is bad on
3680# some platforms.
df76639a
AM
3681# Always define AMTAR for backward compatibility.
3682
3683AMTAR=${AMTAR-"${am_missing_run}tar"}
3684
3685am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3686
3687
6bf9431b
BE
3688
3689
3690depcc="$CC" am_compiler_list=
3691
81ecdfbb
RW
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3693$as_echo_n "checking dependency style of $depcc... " >&6; }
3694if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3695 $as_echo_n "(cached) " >&6
6bf9431b
BE
3696else
3697 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3698 # We make a subdir and do the tests there. Otherwise we can end up
3699 # making bogus files that we don't know about and never remove. For
3700 # instance it was reported that on HP-UX the gcc test will end up
3701 # making a dummy file named `D' -- because `-MD' means `put the output
3702 # in D'.
3703 mkdir conftest.dir
3704 # Copy depcomp to subdir because otherwise we won't find it if we're
3705 # using a relative directory.
3706 cp "$am_depcomp" conftest.dir
3707 cd conftest.dir
3708 # We will build objects and dependencies in a subdirectory because
3709 # it helps to detect inapplicable dependency modes. For instance
3710 # both Tru64's cc and ICC support -MD to output dependencies as a
3711 # side effect of compilation, but ICC will put the dependencies in
3712 # the current directory while Tru64 will put them in the object
3713 # directory.
3714 mkdir sub
3715
3716 am_cv_CC_dependencies_compiler_type=none
3717 if test "$am_compiler_list" = ""; then
3718 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3719 fi
81ecdfbb
RW
3720 am__universal=false
3721 case " $depcc " in #(
3722 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3723 esac
3724
6bf9431b
BE
3725 for depmode in $am_compiler_list; do
3726 # Setup a source with many dependencies, because some compilers
3727 # like to wrap large dependency lists on column 80 (with \), and
3728 # we should not choose a depcomp mode which is confused by this.
3729 #
3730 # We need to recreate these files for each test, as the compiler may
3731 # overwrite some of them when testing with obscure command lines.
3732 # This happens at least with the AIX C compiler.
3733 : > sub/conftest.c
3734 for i in 1 2 3 4 5 6; do
3735 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3736 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3737 # Solaris 8's {/usr,}/bin/sh.
3738 touch sub/conftst$i.h
3739 done
3740 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3741
81ecdfbb
RW
3742 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3743 # mode. It turns out that the SunPro C++ compiler does not properly
3744 # handle `-M -o', and we need to detect this. Also, some Intel
3745 # versions had trouble with output in subdirs
3746 am__obj=sub/conftest.${OBJEXT-o}
3747 am__minus_obj="-o $am__obj"
6bf9431b 3748 case $depmode in
81ecdfbb
RW
3749 gcc)
3750 # This depmode causes a compiler race in universal mode.
3751 test "$am__universal" = false || continue
3752 ;;
6bf9431b
BE
3753 nosideeffect)
3754 # after this tag, mechanisms are not by side-effect, so they'll
3755 # only be used when explicitly requested
3756 if test "x$enable_dependency_tracking" = xyes; then
3757 continue
3758 else
3759 break
3760 fi
3761 ;;
81ecdfbb
RW
3762 msvisualcpp | msvcmsys)
3763 # This compiler won't grok `-c -o', but also, the minuso test has
3764 # not run yet. These depmodes are late enough in the game, and
3765 # so weak that their functioning should not be impacted.
3766 am__obj=conftest.${OBJEXT-o}
3767 am__minus_obj=
3768 ;;
6bf9431b
BE
3769 none) break ;;
3770 esac
6bf9431b 3771 if depmode=$depmode \
81ecdfbb 3772 source=sub/conftest.c object=$am__obj \
6bf9431b 3773 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 3774 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6bf9431b 3775 >/dev/null 2>conftest.err &&
81ecdfbb 3776 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6bf9431b 3777 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 3778 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6bf9431b
BE
3779 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3780 # icc doesn't choke on unknown options, it will just issue warnings
3781 # or remarks (even with -Werror). So we grep stderr for any message
3782 # that says an option was ignored or not supported.
3783 # When given -MP, icc 7.0 and 7.1 complain thusly:
3784 # icc: Command line warning: ignoring option '-M'; no argument required
3785 # The diagnosis changed in icc 8.0:
3786 # icc: Command line remark: option '-MP' not supported
3787 if (grep 'ignoring option' conftest.err ||
3788 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3789 am_cv_CC_dependencies_compiler_type=$depmode
3790 break
3791 fi
3792 fi
3793 done
3794
3795 cd ..
3796 rm -rf conftest.dir
252b5132 3797else
6bf9431b 3798 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3799fi
3800
252b5132 3801fi
81ecdfbb
RW
3802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3803$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6bf9431b
BE
3804CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3805
81ecdfbb 3806 if
6bf9431b
BE
3807 test "x$enable_dependency_tracking" != xno \
3808 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3809 am__fastdepCC_TRUE=
3810 am__fastdepCC_FALSE='#'
252b5132 3811else
6bf9431b
BE
3812 am__fastdepCC_TRUE='#'
3813 am__fastdepCC_FALSE=
252b5132
RH
3814fi
3815
3816
3817
6bf9431b 3818
81ecdfbb 3819ac_config_headers="$ac_config_headers gconfig.h:gconfig.in"
d7040cdb
SE
3820
3821
ce2cded5
L
3822ac_ext=c
3823ac_cpp='$CPP $CPPFLAGS'
3824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3826ac_compiler_gnu=$ac_cv_c_compiler_gnu
3827if test -n "$ac_tool_prefix"; then
3828 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3829set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3831$as_echo_n "checking for $ac_word... " >&6; }
3832if test "${ac_cv_prog_CC+set}" = set; then :
3833 $as_echo_n "(cached) " >&6
1b9750d6 3834else
ce2cded5
L
3835 if test -n "$CC"; then
3836 ac_cv_prog_CC="$CC" # Let the user override the test.
0ab6f085 3837else
ce2cded5
L
3838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839for as_dir in $PATH
3840do
3841 IFS=$as_save_IFS
3842 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3845 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
3847 break 2
3848 fi
3849done
81ecdfbb
RW
3850 done
3851IFS=$as_save_IFS
0ab6f085 3852
ce2cded5
L
3853fi
3854fi
3855CC=$ac_cv_prog_CC
3856if test -n "$CC"; then
81ecdfbb
RW
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3858$as_echo "$CC" >&6; }
0ab6f085 3859else
81ecdfbb
RW
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3861$as_echo "no" >&6; }
ce2cded5 3862fi
d7040cdb 3863
81ecdfbb 3864
ce2cded5
L
3865fi
3866if test -z "$ac_cv_prog_CC"; then
3867 ac_ct_CC=$CC
3868 # Extract the first word of "gcc", so it can be a program name with args.
3869set dummy gcc; ac_word=$2
81ecdfbb
RW
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3871$as_echo_n "checking for $ac_word... " >&6; }
3872if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3873 $as_echo_n "(cached) " >&6
1b9750d6 3874else
ce2cded5
L
3875 if test -n "$ac_ct_CC"; then
3876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3877else
d7040cdb 3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
0ab6f085 3879for as_dir in $PATH
d7040cdb
SE
3880do
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3885 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 3887 break 2
0ab6f085 3888 fi
ce2cded5 3889done
81ecdfbb
RW
3890 done
3891IFS=$as_save_IFS
d7040cdb 3892
ce2cded5
L
3893fi
3894fi
3895ac_ct_CC=$ac_cv_prog_ac_ct_CC
3896if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3898$as_echo "$ac_ct_CC" >&6; }
ce2cded5 3899else
81ecdfbb
RW
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901$as_echo "no" >&6; }
1b9750d6 3902fi
d7040cdb 3903
81ecdfbb
RW
3904 if test "x$ac_ct_CC" = x; then
3905 CC=""
3906 else
3907 case $cross_compiling:$ac_tool_warned in
3908yes:)
3909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3911ac_tool_warned=yes ;;
3912esac
3913 CC=$ac_ct_CC
3914 fi
ce2cded5
L
3915else
3916 CC="$ac_cv_prog_CC"
3917fi
d7040cdb 3918
ce2cded5 3919if test -z "$CC"; then
81ecdfbb
RW
3920 if test -n "$ac_tool_prefix"; then
3921 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ce2cded5 3922set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3924$as_echo_n "checking for $ac_word... " >&6; }
3925if test "${ac_cv_prog_CC+set}" = set; then :
3926 $as_echo_n "(cached) " >&6
d7040cdb 3927else
ce2cded5
L
3928 if test -n "$CC"; then
3929 ac_cv_prog_CC="$CC" # Let the user override the test.
0ab6f085 3930else
ce2cded5
L
3931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932for as_dir in $PATH
3933do
3934 IFS=$as_save_IFS
3935 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3938 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
3940 break 2
3941 fi
3942done
81ecdfbb
RW
3943 done
3944IFS=$as_save_IFS
d7040cdb 3945
252b5132
RH
3946fi
3947fi
ce2cded5
L
3948CC=$ac_cv_prog_CC
3949if test -n "$CC"; then
81ecdfbb
RW
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3951$as_echo "$CC" >&6; }
ce2cded5 3952else
81ecdfbb
RW
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954$as_echo "no" >&6; }
d7040cdb 3955fi
6be7c12c 3956
ce2cded5 3957
81ecdfbb 3958 fi
ce2cded5
L
3959fi
3960if test -z "$CC"; then
3961 # Extract the first word of "cc", so it can be a program name with args.
3962set dummy cc; ac_word=$2
81ecdfbb
RW
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3964$as_echo_n "checking for $ac_word... " >&6; }
3965if test "${ac_cv_prog_CC+set}" = set; then :
3966 $as_echo_n "(cached) " >&6
ce2cded5
L
3967else
3968 if test -n "$CC"; then
3969 ac_cv_prog_CC="$CC" # Let the user override the test.
3970else
3971 ac_prog_rejected=no
3972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973for as_dir in $PATH
3974do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5
L
3979 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3980 ac_prog_rejected=yes
3981 continue
3982 fi
3983 ac_cv_prog_CC="cc"
81ecdfbb 3984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
3985 break 2
3986 fi
3987done
81ecdfbb
RW
3988 done
3989IFS=$as_save_IFS
ce2cded5
L
3990
3991if test $ac_prog_rejected = yes; then
3992 # We found a bogon in the path, so make sure we never use it.
3993 set dummy $ac_cv_prog_CC
3994 shift
3995 if test $# != 0; then
3996 # We chose a different compiler from the bogus one.
3997 # However, it has the same basename, so the bogon will be chosen
3998 # first if we set CC to just the basename; use the full file name.
3999 shift
4000 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4001 fi
4002fi
4003fi
4004fi
4005CC=$ac_cv_prog_CC
4006if test -n "$CC"; then
81ecdfbb
RW
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4008$as_echo "$CC" >&6; }
ce2cded5 4009else
81ecdfbb
RW
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011$as_echo "no" >&6; }
ce2cded5
L
4012fi
4013
81ecdfbb 4014
ce2cded5
L
4015fi
4016if test -z "$CC"; then
4017 if test -n "$ac_tool_prefix"; then
81ecdfbb 4018 for ac_prog in cl.exe
ce2cded5
L
4019 do
4020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4021set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023$as_echo_n "checking for $ac_word... " >&6; }
4024if test "${ac_cv_prog_CC+set}" = set; then :
4025 $as_echo_n "(cached) " >&6
ce2cded5
L
4026else
4027 if test -n "$CC"; then
4028 ac_cv_prog_CC="$CC" # Let the user override the test.
4029else
4030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031for as_dir in $PATH
4032do
4033 IFS=$as_save_IFS
4034 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4035 for ac_exec_ext in '' $ac_executable_extensions; do
4036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4037 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4039 break 2
4040 fi
4041done
81ecdfbb
RW
4042 done
4043IFS=$as_save_IFS
ce2cded5
L
4044
4045fi
4046fi
4047CC=$ac_cv_prog_CC
4048if test -n "$CC"; then
81ecdfbb
RW
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4050$as_echo "$CC" >&6; }
ce2cded5 4051else
81ecdfbb
RW
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053$as_echo "no" >&6; }
ce2cded5
L
4054fi
4055
81ecdfbb 4056
ce2cded5 4057 test -n "$CC" && break
d7040cdb
SE
4058 done
4059fi
ce2cded5
L
4060if test -z "$CC"; then
4061 ac_ct_CC=$CC
81ecdfbb 4062 for ac_prog in cl.exe
d7040cdb
SE
4063do
4064 # Extract the first word of "$ac_prog", so it can be a program name with args.
4065set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4067$as_echo_n "checking for $ac_word... " >&6; }
4068if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4069 $as_echo_n "(cached) " >&6
d7040cdb 4070else
ce2cded5
L
4071 if test -n "$ac_ct_CC"; then
4072 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
4073else
4074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075for as_dir in $PATH
4076do
4077 IFS=$as_save_IFS
4078 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4079 for ac_exec_ext in '' $ac_executable_extensions; do
4080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4081 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 4083 break 2
ac48eca1 4084 fi
d7040cdb 4085done
81ecdfbb
RW
4086 done
4087IFS=$as_save_IFS
ac48eca1 4088
d7040cdb
SE
4089fi
4090fi
ce2cded5
L
4091ac_ct_CC=$ac_cv_prog_ac_ct_CC
4092if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4094$as_echo "$ac_ct_CC" >&6; }
d7040cdb 4095else
81ecdfbb
RW
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4097$as_echo "no" >&6; }
d7040cdb 4098fi
ac48eca1 4099
81ecdfbb 4100
ce2cded5 4101 test -n "$ac_ct_CC" && break
d7040cdb 4102done
ac48eca1 4103
81ecdfbb
RW
4104 if test "x$ac_ct_CC" = x; then
4105 CC=""
4106 else
4107 case $cross_compiling:$ac_tool_warned in
4108yes:)
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4111ac_tool_warned=yes ;;
4112esac
4113 CC=$ac_ct_CC
4114 fi
d7040cdb 4115fi
ac48eca1 4116
d7040cdb 4117fi
ac48eca1 4118
ac48eca1 4119
81ecdfbb
RW
4120test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4122as_fn_error "no acceptable C compiler found in \$PATH
4123See \`config.log' for more details." "$LINENO" 5; }
6be7c12c 4124
ce2cded5 4125# Provide some information about the compiler.
81ecdfbb
RW
4126$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4127set X $ac_compile
4128ac_compiler=$2
4129for ac_option in --version -v -V -qversion; do
4130 { { ac_try="$ac_compiler $ac_option >&5"
4131case "(($ac_try" in
4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4134esac
4135eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4136$as_echo "$ac_try_echo"; } >&5
4137 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4138 ac_status=$?
81ecdfbb
RW
4139 if test -s conftest.err; then
4140 sed '10a\
4141... rest of stderr output deleted ...
4142 10q' conftest.err >conftest.er1
4143 cat conftest.er1 >&5
4144 rm -f conftest.er1 conftest.err
4145 fi
4146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4147 test $ac_status = 0; }
4148done
ac48eca1 4149
81ecdfbb
RW
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4151$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4152if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4153 $as_echo_n "(cached) " >&6
d7040cdb 4154else
81ecdfbb 4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4156/* end confdefs.h. */
ac48eca1 4157
ce2cded5
L
4158int
4159main ()
4160{
4161#ifndef __GNUC__
4162 choke me
4163#endif
4164
4165 ;
4166 return 0;
4167}
4168_ACEOF
81ecdfbb 4169if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 4170 ac_compiler_gnu=yes
d7040cdb 4171else
81ecdfbb 4172 ac_compiler_gnu=no
d7040cdb 4173fi
81ecdfbb 4174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4175ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 4176
ce2cded5 4177fi
81ecdfbb
RW
4178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4179$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4180if test $ac_compiler_gnu = yes; then
4181 GCC=yes
4182else
4183 GCC=
4184fi
ce2cded5
L
4185ac_test_CFLAGS=${CFLAGS+set}
4186ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4188$as_echo_n "checking whether $CC accepts -g... " >&6; }
4189if test "${ac_cv_prog_cc_g+set}" = set; then :
4190 $as_echo_n "(cached) " >&6
4191else
4192 ac_save_c_werror_flag=$ac_c_werror_flag
4193 ac_c_werror_flag=yes
4194 ac_cv_prog_cc_g=no
4195 CFLAGS="-g"
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4197/* end confdefs.h. */
d7040cdb 4198
ce2cded5
L
4199int
4200main ()
4201{
d7040cdb 4202
ce2cded5
L
4203 ;
4204 return 0;
4205}
4206_ACEOF
81ecdfbb 4207if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
4208 ac_cv_prog_cc_g=yes
4209else
81ecdfbb
RW
4210 CFLAGS=""
4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212/* end confdefs.h. */
108a6f8e 4213
81ecdfbb
RW
4214int
4215main ()
4216{
4217
4218 ;
4219 return 0;
4220}
4221_ACEOF
4222if ac_fn_c_try_compile "$LINENO"; then :
4223
4224else
4225 ac_c_werror_flag=$ac_save_c_werror_flag
4226 CFLAGS="-g"
4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228/* end confdefs.h. */
4229
4230int
4231main ()
4232{
4233
4234 ;
4235 return 0;
4236}
4237_ACEOF
4238if ac_fn_c_try_compile "$LINENO"; then :
4239 ac_cv_prog_cc_g=yes
4240fi
4241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4242fi
4243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244fi
4245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246 ac_c_werror_flag=$ac_save_c_werror_flag
4247fi
4248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4249$as_echo "$ac_cv_prog_cc_g" >&6; }
4250if test "$ac_test_CFLAGS" = set; then
4251 CFLAGS=$ac_save_CFLAGS
4252elif test $ac_cv_prog_cc_g = yes; then
4253 if test "$GCC" = yes; then
4254 CFLAGS="-g -O2"
4255 else
ce2cded5
L
4256 CFLAGS="-g"
4257 fi
ac48eca1 4258else
ce2cded5
L
4259 if test "$GCC" = yes; then
4260 CFLAGS="-O2"
4261 else
4262 CFLAGS=
4263 fi
ac48eca1 4264fi
81ecdfbb
RW
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4266$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4267if test "${ac_cv_prog_cc_c89+set}" = set; then :
4268 $as_echo_n "(cached) " >&6
ac48eca1 4269else
81ecdfbb 4270 ac_cv_prog_cc_c89=no
ce2cded5 4271ac_save_CC=$CC
81ecdfbb 4272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
4273/* end confdefs.h. */
4274#include <stdarg.h>
4275#include <stdio.h>
4276#include <sys/types.h>
4277#include <sys/stat.h>
4278/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4279struct buf { int x; };
4280FILE * (*rcsopen) (struct buf *, struct stat *, int);
4281static char *e (p, i)
4282 char **p;
4283 int i;
4284{
4285 return p[i];
4286}
4287static char *f (char * (*g) (char **, int), char **p, ...)
4288{
4289 char *s;
4290 va_list v;
4291 va_start (v,p);
4292 s = g (p, va_arg (v,int));
4293 va_end (v);
4294 return s;
4295}
d7040cdb 4296
ce2cded5
L
4297/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4298 function prototypes and stuff, but not '\xHH' hex character constants.
4299 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4300 as 'x'. The following induces an error, until -std is added to get
ce2cded5
L
4301 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4302 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4303 that's true only with -std. */
ce2cded5 4304int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 4305
81ecdfbb
RW
4306/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4307 inside strings and character constants. */
4308#define FOO(x) 'x'
4309int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4310
ce2cded5
L
4311int test (int i, double x);
4312struct s1 {int (*f) (int a);};
4313struct s2 {int (*f) (double a);};
4314int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4315int argc;
4316char **argv;
4317int
4318main ()
4319{
4320return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4321 ;
4322 return 0;
4323}
4324_ACEOF
81ecdfbb
RW
4325for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4326 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ce2cded5
L
4327do
4328 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4329 if ac_fn_c_try_compile "$LINENO"; then :
4330 ac_cv_prog_cc_c89=$ac_arg
ce2cded5 4331fi
81ecdfbb
RW
4332rm -f core conftest.err conftest.$ac_objext
4333 test "x$ac_cv_prog_cc_c89" != "xno" && break
ce2cded5 4334done
81ecdfbb 4335rm -f conftest.$ac_ext
ce2cded5 4336CC=$ac_save_CC
d7040cdb 4337
ce2cded5 4338fi
81ecdfbb
RW
4339# AC_CACHE_VAL
4340case "x$ac_cv_prog_cc_c89" in
4341 x)
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4343$as_echo "none needed" >&6; } ;;
4344 xno)
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4346$as_echo "unsupported" >&6; } ;;
ce2cded5 4347 *)
81ecdfbb
RW
4348 CC="$CC $ac_cv_prog_cc_c89"
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4350$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ce2cded5 4351esac
81ecdfbb 4352if test "x$ac_cv_prog_cc_c89" != xno; then :
d7040cdb 4353
ce2cded5 4354fi
d7040cdb 4355
ce2cded5
L
4356ac_ext=c
4357ac_cpp='$CPP $CPPFLAGS'
4358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4360ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4361
7357c5b6
AM
4362ac_ext=c
4363ac_cpp='$CPP $CPPFLAGS'
4364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4366ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4368$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4369# On Suns, sometimes $CPP names a directory.
4370if test -n "$CPP" && test -d "$CPP"; then
4371 CPP=
4372fi
4373if test -z "$CPP"; then
81ecdfbb
RW
4374 if test "${ac_cv_prog_CPP+set}" = set; then :
4375 $as_echo_n "(cached) " >&6
ce2cded5 4376else
7357c5b6
AM
4377 # Double quotes because CPP needs to be expanded
4378 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4379 do
4380 ac_preproc_ok=false
4381for ac_c_preproc_warn_flag in '' yes
ce2cded5 4382do
7357c5b6
AM
4383 # Use a header file that comes with gcc, so configuring glibc
4384 # with a fresh cross-compiler works.
4385 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4386 # <limits.h> exists even on freestanding compilers.
4387 # On the NeXT, cc -E runs the code through the compiler's parser,
4388 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4390/* end confdefs.h. */
4391#ifdef __STDC__
4392# include <limits.h>
4393#else
4394# include <assert.h>
4395#endif
4396 Syntax error
4397_ACEOF
81ecdfbb 4398if ac_fn_c_try_cpp "$LINENO"; then :
6bf9431b 4399
81ecdfbb 4400else
7357c5b6
AM
4401 # Broken: fails on valid input.
4402continue
4403fi
4404rm -f conftest.err conftest.$ac_ext
ce2cded5 4405
81ecdfbb 4406 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4407 # can be detected and how.
81ecdfbb 4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4409/* end confdefs.h. */
4410#include <ac_nonexistent.h>
4411_ACEOF
81ecdfbb 4412if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4413 # Broken: success on invalid input.
4414continue
4415else
7357c5b6
AM
4416 # Passes both tests.
4417ac_preproc_ok=:
4418break
4419fi
4420rm -f conftest.err conftest.$ac_ext
6bf9431b 4421
7357c5b6
AM
4422done
4423# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4424rm -f conftest.err conftest.$ac_ext
81ecdfbb 4425if $ac_preproc_ok; then :
7357c5b6
AM
4426 break
4427fi
6bf9431b 4428
7357c5b6
AM
4429 done
4430 ac_cv_prog_CPP=$CPP
252b5132 4431
7357c5b6
AM
4432fi
4433 CPP=$ac_cv_prog_CPP
4434else
4435 ac_cv_prog_CPP=$CPP
4436fi
81ecdfbb
RW
4437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4438$as_echo "$CPP" >&6; }
7357c5b6
AM
4439ac_preproc_ok=false
4440for ac_c_preproc_warn_flag in '' yes
4441do
4442 # Use a header file that comes with gcc, so configuring glibc
4443 # with a fresh cross-compiler works.
4444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4445 # <limits.h> exists even on freestanding compilers.
4446 # On the NeXT, cc -E runs the code through the compiler's parser,
4447 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4449/* end confdefs.h. */
4450#ifdef __STDC__
4451# include <limits.h>
4452#else
4453# include <assert.h>
4454#endif
4455 Syntax error
4456_ACEOF
81ecdfbb 4457if ac_fn_c_try_cpp "$LINENO"; then :
6bf9431b 4458
81ecdfbb 4459else
7357c5b6
AM
4460 # Broken: fails on valid input.
4461continue
4462fi
4463rm -f conftest.err conftest.$ac_ext
252b5132 4464
81ecdfbb 4465 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4466 # can be detected and how.
81ecdfbb 4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4468/* end confdefs.h. */
4469#include <ac_nonexistent.h>
4470_ACEOF
81ecdfbb 4471if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4472 # Broken: success on invalid input.
4473continue
4474else
7357c5b6
AM
4475 # Passes both tests.
4476ac_preproc_ok=:
4477break
4478fi
4479rm -f conftest.err conftest.$ac_ext
252b5132 4480
7357c5b6
AM
4481done
4482# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4483rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
4484if $ac_preproc_ok; then :
4485
7357c5b6 4486else
81ecdfbb
RW
4487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4489as_fn_error "C preprocessor \"$CPP\" fails sanity check
4490See \`config.log' for more details." "$LINENO" 5; }
7357c5b6 4491fi
6bf9431b 4492
7357c5b6
AM
4493ac_ext=c
4494ac_cpp='$CPP $CPPFLAGS'
4495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497ac_compiler_gnu=$ac_cv_c_compiler_gnu
252b5132 4498
252b5132 4499
81ecdfbb
RW
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4501$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4502if test "${ac_cv_path_GREP+set}" = set; then :
4503 $as_echo_n "(cached) " >&6
ce2cded5 4504else
81ecdfbb
RW
4505 if test -z "$GREP"; then
4506 ac_path_GREP_found=false
4507 # Loop through the user's path and test for each of PROGNAME-LIST
4508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4510do
4511 IFS=$as_save_IFS
4512 test -z "$as_dir" && as_dir=.
4513 for ac_prog in grep ggrep; do
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4516 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4517# Check for GNU ac_path_GREP and select it if it is found.
4518 # Check for GNU $ac_path_GREP
4519case `"$ac_path_GREP" --version 2>&1` in
4520*GNU*)
4521 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4522*)
4523 ac_count=0
4524 $as_echo_n 0123456789 >"conftest.in"
4525 while :
4526 do
4527 cat "conftest.in" "conftest.in" >"conftest.tmp"
4528 mv "conftest.tmp" "conftest.in"
4529 cp "conftest.in" "conftest.nl"
4530 $as_echo 'GREP' >> "conftest.nl"
4531 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4532 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4533 as_fn_arith $ac_count + 1 && ac_count=$as_val
4534 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4535 # Best one so far, save it but keep looking for a better one
4536 ac_cv_path_GREP="$ac_path_GREP"
4537 ac_path_GREP_max=$ac_count
ce2cded5 4538 fi
81ecdfbb
RW
4539 # 10*(2^10) chars as input seems more than enough
4540 test $ac_count -gt 10 && break
4541 done
4542 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4543esac
4544
4545 $ac_path_GREP_found && break 3
4546 done
4547 done
4548 done
4549IFS=$as_save_IFS
4550 if test -z "$ac_cv_path_GREP"; then
4551 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4552 fi
4553else
4554 ac_cv_path_GREP=$GREP
4555fi
4556
ce2cded5 4557fi
81ecdfbb
RW
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4559$as_echo "$ac_cv_path_GREP" >&6; }
4560 GREP="$ac_cv_path_GREP"
ce2cded5 4561
6bf9431b 4562
81ecdfbb
RW
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4564$as_echo_n "checking for egrep... " >&6; }
4565if test "${ac_cv_path_EGREP+set}" = set; then :
4566 $as_echo_n "(cached) " >&6
7357c5b6 4567else
81ecdfbb
RW
4568 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4569 then ac_cv_path_EGREP="$GREP -E"
4570 else
4571 if test -z "$EGREP"; then
4572 ac_path_EGREP_found=false
4573 # Loop through the user's path and test for each of PROGNAME-LIST
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4576do
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_prog in egrep; do
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4582 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4583# Check for GNU ac_path_EGREP and select it if it is found.
4584 # Check for GNU $ac_path_EGREP
4585case `"$ac_path_EGREP" --version 2>&1` in
4586*GNU*)
4587 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4588*)
4589 ac_count=0
4590 $as_echo_n 0123456789 >"conftest.in"
4591 while :
4592 do
4593 cat "conftest.in" "conftest.in" >"conftest.tmp"
4594 mv "conftest.tmp" "conftest.in"
4595 cp "conftest.in" "conftest.nl"
4596 $as_echo 'EGREP' >> "conftest.nl"
4597 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4598 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4599 as_fn_arith $ac_count + 1 && ac_count=$as_val
4600 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4601 # Best one so far, save it but keep looking for a better one
4602 ac_cv_path_EGREP="$ac_path_EGREP"
4603 ac_path_EGREP_max=$ac_count
4604 fi
4605 # 10*(2^10) chars as input seems more than enough
4606 test $ac_count -gt 10 && break
4607 done
4608 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4609esac
4610
4611 $ac_path_EGREP_found && break 3
4612 done
4613 done
4614 done
4615IFS=$as_save_IFS
4616 if test -z "$ac_cv_path_EGREP"; then
4617 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4618 fi
4619else
4620 ac_cv_path_EGREP=$EGREP
4621fi
4622
4623 fi
4624fi
4625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4626$as_echo "$ac_cv_path_EGREP" >&6; }
4627 EGREP="$ac_cv_path_EGREP"
4628
4629
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4631$as_echo_n "checking for ANSI C header files... " >&6; }
4632if test "${ac_cv_header_stdc+set}" = set; then :
4633 $as_echo_n "(cached) " >&6
4634else
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4636/* end confdefs.h. */
4637#include <stdlib.h>
4638#include <stdarg.h>
4639#include <string.h>
4640#include <float.h>
4641
4642int
4643main ()
4644{
4645
4646 ;
4647 return 0;
4648}
4649_ACEOF
81ecdfbb 4650if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4651 ac_cv_header_stdc=yes
4652else
81ecdfbb 4653 ac_cv_header_stdc=no
7357c5b6 4654fi
81ecdfbb 4655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6
AM
4656
4657if test $ac_cv_header_stdc = yes; then
4658 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4660/* end confdefs.h. */
4661#include <string.h>
4662
4663_ACEOF
4664if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4665 $EGREP "memchr" >/dev/null 2>&1; then :
4666
7357c5b6
AM
4667else
4668 ac_cv_header_stdc=no
4669fi
4670rm -f conftest*
4671
4672fi
4673
4674if test $ac_cv_header_stdc = yes; then
4675 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4677/* end confdefs.h. */
4678#include <stdlib.h>
4679
4680_ACEOF
4681if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4682 $EGREP "free" >/dev/null 2>&1; then :
4683
7357c5b6
AM
4684else
4685 ac_cv_header_stdc=no
4686fi
4687rm -f conftest*
4688
4689fi
4690
4691if test $ac_cv_header_stdc = yes; then
4692 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4693 if test "$cross_compiling" = yes; then :
7357c5b6 4694 :
ce2cded5 4695else
81ecdfbb 4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4697/* end confdefs.h. */
4698#include <ctype.h>
81ecdfbb 4699#include <stdlib.h>
7357c5b6
AM
4700#if ((' ' & 0x0FF) == 0x020)
4701# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4702# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4703#else
4704# define ISLOWER(c) \
4705 (('a' <= (c) && (c) <= 'i') \
4706 || ('j' <= (c) && (c) <= 'r') \
4707 || ('s' <= (c) && (c) <= 'z'))
4708# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4709#endif
6bf9431b 4710
7357c5b6
AM
4711#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4712int
4713main ()
4714{
4715 int i;
4716 for (i = 0; i < 256; i++)
4717 if (XOR (islower (i), ISLOWER (i))
4718 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4719 return 2;
4720 return 0;
7357c5b6
AM
4721}
4722_ACEOF
81ecdfbb 4723if ac_fn_c_try_run "$LINENO"; then :
6bf9431b 4724
81ecdfbb
RW
4725else
4726 ac_cv_header_stdc=no
7357c5b6 4727fi
81ecdfbb
RW
4728rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4729 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4730fi
81ecdfbb 4731
7357c5b6
AM
4732fi
4733fi
81ecdfbb
RW
4734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4735$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4736if test $ac_cv_header_stdc = yes; then
6bf9431b 4737
81ecdfbb 4738$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4739
7357c5b6 4740fi
d7040cdb 4741
7357c5b6 4742# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
4743for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4744 inttypes.h stdint.h unistd.h
81ecdfbb
RW
4745do :
4746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4747ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4748"
4749eval as_val=\$$as_ac_Header
4750 if test "x$as_val" = x""yes; then :
7357c5b6 4751 cat >>confdefs.h <<_ACEOF
81ecdfbb 4752#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 4753_ACEOF
d7040cdb 4754
7357c5b6 4755fi
d7040cdb 4756
7357c5b6 4757done
d7040cdb
SE
4758
4759
4760
81ecdfbb
RW
4761 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4762if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6
AM
4763 MINIX=yes
4764else
4765 MINIX=
4766fi
d7040cdb
SE
4767
4768
7357c5b6 4769 if test "$MINIX" = yes; then
d7040cdb 4770
81ecdfbb 4771$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb 4772
d7040cdb 4773
81ecdfbb 4774$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb 4775
d7040cdb 4776
81ecdfbb 4777$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4778
ce2cded5 4779 fi
d7040cdb 4780
d7040cdb 4781
81ecdfbb
RW
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4783$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4784if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4785 $as_echo_n "(cached) " >&6
ce2cded5 4786else
81ecdfbb 4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 4788/* end confdefs.h. */
d7040cdb 4789
7357c5b6
AM
4790# define __EXTENSIONS__ 1
4791 $ac_includes_default
4792int
4793main ()
4794{
d7040cdb 4795
7357c5b6
AM
4796 ;
4797 return 0;
4798}
4799_ACEOF
81ecdfbb 4800if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4801 ac_cv_safe_to_define___extensions__=yes
4802else
81ecdfbb 4803 ac_cv_safe_to_define___extensions__=no
ce2cded5 4804fi
81ecdfbb 4805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4806fi
81ecdfbb
RW
4807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4808$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 4809 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 4810 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d7040cdb 4811
81ecdfbb 4812 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d7040cdb 4813
81ecdfbb 4814 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
d7040cdb 4815
81ecdfbb 4816 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
d7040cdb 4817
81ecdfbb 4818 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d7040cdb 4819
d7040cdb 4820
d053aef8 4821
81ecdfbb 4822
da2f07f1 4823
3388710e
JM
4824# The tests for host and target for $enable_largefile require
4825# canonical names.
4826
4827
4828
da2f07f1
JK
4829# As the $enable_largefile decision depends on --enable-plugins we must set it
4830# even in directories otherwise not depending on the $plugins option.
4831
4832
4833# Check whether --enable-plugins was given.
4834if test "${enable_plugins+set}" = set; then :
4835 enableval=$enable_plugins; case "${enableval}" in
4836 yes | "") plugins=yes ;;
4837 no) plugins=no ;;
4838 *) plugins=yes ;;
4839 esac
4840else
4841 plugins=no
4842fi
4843
4844
4845
4846case "${host}" in
4847 sparc-*-solaris*|i[3-7]86-*-solaris*)
4848 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4849 # are mutually exclusive; and without procfs support, the bfd/ elf module
4850 # cannot provide certain routines such as elfcore_write_prpsinfo
4851 # or elfcore_write_prstatus. So unless the user explicitly requested
4852 # large-file support through the --enable-largefile switch, disable
4853 # large-file support in favor of procfs support.
4854 test "${target}" = "${host}" -a "x$plugins" = xno \
4855 && : ${enable_largefile="no"}
4856 ;;
4857esac
4858
81ecdfbb
RW
4859# Check whether --enable-largefile was given.
4860if test "${enable_largefile+set}" = set; then :
4861 enableval=$enable_largefile;
4862fi
4863
d053aef8
JK
4864if test "$enable_largefile" != no; then
4865
81ecdfbb
RW
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4867$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4868if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4869 $as_echo_n "(cached) " >&6
d053aef8
JK
4870else
4871 ac_cv_sys_largefile_CC=no
4872 if test "$GCC" != yes; then
4873 ac_save_CC=$CC
4874 while :; do
81ecdfbb
RW
4875 # IRIX 6.2 and later do not support large files by default,
4876 # so use the C compiler's -n32 option if that helps.
4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
4878/* end confdefs.h. */
4879#include <sys/types.h>
4880 /* Check that off_t can represent 2**63 - 1 correctly.
4881 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4882 since some C++ compilers masquerading as C compilers
4883 incorrectly reject 9223372036854775807. */
4884#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4885 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4886 && LARGE_OFF_T % 2147483647 == 1)
4887 ? 1 : -1];
4888int
4889main ()
4890{
4891
4892 ;
4893 return 0;
4894}
4895_ACEOF
81ecdfbb 4896 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 4897 break
d053aef8 4898fi
81ecdfbb
RW
4899rm -f core conftest.err conftest.$ac_objext
4900 CC="$CC -n32"
4901 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 4902 ac_cv_sys_largefile_CC=' -n32'; break
d053aef8 4903fi
81ecdfbb 4904rm -f core conftest.err conftest.$ac_objext
d053aef8
JK
4905 break
4906 done
4907 CC=$ac_save_CC
4908 rm -f conftest.$ac_ext
4909 fi
4910fi
81ecdfbb
RW
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4912$as_echo "$ac_cv_sys_largefile_CC" >&6; }
d053aef8
JK
4913 if test "$ac_cv_sys_largefile_CC" != no; then
4914 CC=$CC$ac_cv_sys_largefile_CC
4915 fi
4916
81ecdfbb
RW
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4918$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4919if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
d053aef8
JK
4921else
4922 while :; do
81ecdfbb 4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
4924/* end confdefs.h. */
4925#include <sys/types.h>
4926 /* Check that off_t can represent 2**63 - 1 correctly.
4927 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4928 since some C++ compilers masquerading as C compilers
4929 incorrectly reject 9223372036854775807. */
4930#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4931 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4932 && LARGE_OFF_T % 2147483647 == 1)
4933 ? 1 : -1];
4934int
4935main ()
4936{
4937
4938 ;
4939 return 0;
4940}
4941_ACEOF
81ecdfbb
RW
4942if ac_fn_c_try_compile "$LINENO"; then :
4943 ac_cv_sys_file_offset_bits=no; break
d053aef8 4944fi
81ecdfbb
RW
4945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
4947/* end confdefs.h. */
4948#define _FILE_OFFSET_BITS 64
4949#include <sys/types.h>
4950 /* Check that off_t can represent 2**63 - 1 correctly.
4951 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4952 since some C++ compilers masquerading as C compilers
4953 incorrectly reject 9223372036854775807. */
4954#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4955 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4956 && LARGE_OFF_T % 2147483647 == 1)
4957 ? 1 : -1];
4958int
4959main ()
4960{
4961
4962 ;
4963 return 0;
4964}
4965_ACEOF
81ecdfbb 4966if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 4967 ac_cv_sys_file_offset_bits=64; break
d053aef8 4968fi
81ecdfbb
RW
4969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4970 ac_cv_sys_file_offset_bits=unknown
d053aef8
JK
4971 break
4972done
4973fi
81ecdfbb
RW
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4975$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4976case $ac_cv_sys_file_offset_bits in #(
4977 no | unknown) ;;
4978 *)
d053aef8
JK
4979cat >>confdefs.h <<_ACEOF
4980#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4981_ACEOF
81ecdfbb
RW
4982;;
4983esac
4984rm -rf conftest*
4985 if test $ac_cv_sys_file_offset_bits = unknown; then
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4987$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4988if test "${ac_cv_sys_large_files+set}" = set; then :
4989 $as_echo_n "(cached) " >&6
d053aef8
JK
4990else
4991 while :; do
81ecdfbb 4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
4993/* end confdefs.h. */
4994#include <sys/types.h>
4995 /* Check that off_t can represent 2**63 - 1 correctly.
4996 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4997 since some C++ compilers masquerading as C compilers
4998 incorrectly reject 9223372036854775807. */
4999#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5000 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5001 && LARGE_OFF_T % 2147483647 == 1)
5002 ? 1 : -1];
5003int
5004main ()
5005{
5006
5007 ;
5008 return 0;
5009}
5010_ACEOF
81ecdfbb
RW
5011if ac_fn_c_try_compile "$LINENO"; then :
5012 ac_cv_sys_large_files=no; break
d053aef8 5013fi
81ecdfbb
RW
5014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5016/* end confdefs.h. */
5017#define _LARGE_FILES 1
5018#include <sys/types.h>
5019 /* Check that off_t can represent 2**63 - 1 correctly.
5020 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5021 since some C++ compilers masquerading as C compilers
5022 incorrectly reject 9223372036854775807. */
5023#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5024 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5025 && LARGE_OFF_T % 2147483647 == 1)
5026 ? 1 : -1];
5027int
5028main ()
5029{
5030
5031 ;
5032 return 0;
5033}
81ecdfbb
RW
5034_ACEOF
5035if ac_fn_c_try_compile "$LINENO"; then :
5036 ac_cv_sys_large_files=1; break
d053aef8 5037fi
81ecdfbb
RW
5038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5039 ac_cv_sys_large_files=unknown
d053aef8
JK
5040 break
5041done
5042fi
81ecdfbb
RW
5043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5044$as_echo "$ac_cv_sys_large_files" >&6; }
5045case $ac_cv_sys_large_files in #(
5046 no | unknown) ;;
5047 *)
d053aef8
JK
5048cat >>confdefs.h <<_ACEOF
5049#define _LARGE_FILES $ac_cv_sys_large_files
5050_ACEOF
81ecdfbb 5051;;
7357c5b6 5052esac
81ecdfbb 5053rm -rf conftest*
7357c5b6
AM
5054 fi
5055fi
d7040cdb 5056
d7040cdb 5057
ce2cded5 5058
da2f07f1 5059
b214d478
SE
5060case `pwd` in
5061 *\ * | *\ *)
81ecdfbb
RW
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5063$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
b214d478 5064esac
d7040cdb
SE
5065
5066
6bf9431b 5067
3725885a
RW
5068macro_version='2.2.7a'
5069macro_revision='1.3134'
ce2cded5 5070
d7040cdb 5071
d7040cdb 5072
d7040cdb 5073
d7040cdb 5074
7357c5b6 5075
6bf9431b 5076
6bf9431b 5077
6bf9431b 5078
6bf9431b 5079
d7040cdb 5080
d7040cdb 5081
6bf9431b 5082
b214d478 5083ltmain="$ac_aux_dir/ltmain.sh"
d7040cdb 5084
3725885a
RW
5085# Backslashify metacharacters that are still active within
5086# double-quoted strings.
5087sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5088
5089# Same as above, but do not quote variable references.
5090double_quote_subst='s/\(["`\\]\)/\\\1/g'
5091
5092# Sed substitution to delay expansion of an escaped shell variable in a
5093# double_quote_subst'ed string.
5094delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5095
5096# Sed substitution to delay expansion of an escaped single quote.
5097delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5098
5099# Sed substitution to avoid accidental globbing in evaled expressions
5100no_glob_subst='s/\*/\\\*/g'
5101
5102ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5103ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5104ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5105
5106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5107$as_echo_n "checking how to print strings... " >&6; }
5108# Test print first, because it will be a builtin if present.
5109if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5110 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5111 ECHO='print -r --'
5112elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5113 ECHO='printf %s\n'
5114else
5115 # Use this function as a fallback that always works.
5116 func_fallback_echo ()
5117 {
5118 eval 'cat <<_LTECHO_EOF
5119$1
5120_LTECHO_EOF'
5121 }
5122 ECHO='func_fallback_echo'
5123fi
5124
5125# func_echo_all arg...
5126# Invoke $ECHO with all args, space-separated.
5127func_echo_all ()
5128{
5129 $ECHO ""
5130}
5131
5132case "$ECHO" in
5133 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5134$as_echo "printf" >&6; } ;;
5135 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5136$as_echo "print -r" >&6; } ;;
5137 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5138$as_echo "cat" >&6; } ;;
5139esac
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
81ecdfbb
RW
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5155$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5156if test "${ac_cv_path_SED+set}" = set; then :
5157 $as_echo_n "(cached) " >&6
5158else
5159 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5160 for ac_i in 1 2 3 4 5 6 7; do
5161 ac_script="$ac_script$as_nl$ac_script"
5162 done
5163 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5164 { ac_script=; unset ac_script;}
5165 if test -z "$SED"; then
5166 ac_path_SED_found=false
5167 # Loop through the user's path and test for each of PROGNAME-LIST
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5169for as_dir in $PATH
5170do
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
81ecdfbb 5173 for ac_prog in sed gsed; do
7357c5b6 5174 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5175 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5176 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5177# Check for GNU ac_path_SED and select it if it is found.
5178 # Check for GNU $ac_path_SED
5179case `"$ac_path_SED" --version 2>&1` in
5180*GNU*)
5181 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5182*)
5183 ac_count=0
5184 $as_echo_n 0123456789 >"conftest.in"
5185 while :
5186 do
5187 cat "conftest.in" "conftest.in" >"conftest.tmp"
5188 mv "conftest.tmp" "conftest.in"
5189 cp "conftest.in" "conftest.nl"
5190 $as_echo '' >> "conftest.nl"
5191 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5192 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5193 as_fn_arith $ac_count + 1 && ac_count=$as_val
5194 if test $ac_count -gt ${ac_path_SED_max-0}; then
5195 # Best one so far, save it but keep looking for a better one
5196 ac_cv_path_SED="$ac_path_SED"
5197 ac_path_SED_max=$ac_count
5198 fi
5199 # 10*(2^10) chars as input seems more than enough
5200 test $ac_count -gt 10 && break
5201 done
5202 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5203esac
5204
5205 $ac_path_SED_found && break 3
7357c5b6
AM
5206 done
5207 done
81ecdfbb 5208 done
7357c5b6 5209IFS=$as_save_IFS
81ecdfbb
RW
5210 if test -z "$ac_cv_path_SED"; then
5211 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5212 fi
81ecdfbb
RW
5213else
5214 ac_cv_path_SED=$SED
7357c5b6
AM
5215fi
5216
81ecdfbb
RW
5217fi
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5219$as_echo "$ac_cv_path_SED" >&6; }
5220 SED="$ac_cv_path_SED"
5221 rm -f conftest.sed
7357c5b6
AM
5222
5223test -z "$SED" && SED=sed
5224Xsed="$SED -e 1s/^X//"
5225
5226
5227
d7040cdb 5228
d7040cdb 5229
d7040cdb 5230
d7040cdb 5231
d7040cdb 5232
d7040cdb 5233
d7040cdb 5234
6bf9431b 5235
81ecdfbb
RW
5236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5237$as_echo_n "checking for fgrep... " >&6; }
5238if test "${ac_cv_path_FGREP+set}" = set; then :
5239 $as_echo_n "(cached) " >&6
7357c5b6 5240else
81ecdfbb
RW
5241 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5242 then ac_cv_path_FGREP="$GREP -F"
5243 else
5244 if test -z "$FGREP"; then
5245 ac_path_FGREP_found=false
5246 # Loop through the user's path and test for each of PROGNAME-LIST
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5249do
5250 IFS=$as_save_IFS
5251 test -z "$as_dir" && as_dir=.
5252 for ac_prog in fgrep; do
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5255 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5256# Check for GNU ac_path_FGREP and select it if it is found.
5257 # Check for GNU $ac_path_FGREP
5258case `"$ac_path_FGREP" --version 2>&1` in
5259*GNU*)
5260 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5261*)
5262 ac_count=0
5263 $as_echo_n 0123456789 >"conftest.in"
5264 while :
5265 do
5266 cat "conftest.in" "conftest.in" >"conftest.tmp"
5267 mv "conftest.tmp" "conftest.in"
5268 cp "conftest.in" "conftest.nl"
5269 $as_echo 'FGREP' >> "conftest.nl"
5270 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5271 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5272 as_fn_arith $ac_count + 1 && ac_count=$as_val
5273 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5274 # Best one so far, save it but keep looking for a better one
5275 ac_cv_path_FGREP="$ac_path_FGREP"
5276 ac_path_FGREP_max=$ac_count
7357c5b6 5277 fi
81ecdfbb
RW
5278 # 10*(2^10) chars as input seems more than enough
5279 test $ac_count -gt 10 && break
5280 done
5281 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5282esac
5283
5284 $ac_path_FGREP_found && break 3
5285 done
5286 done
5287 done
5288IFS=$as_save_IFS
5289 if test -z "$ac_cv_path_FGREP"; then
5290 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5291 fi
5292else
5293 ac_cv_path_FGREP=$FGREP
5294fi
5295
5296 fi
6bf9431b 5297fi
81ecdfbb
RW
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5299$as_echo "$ac_cv_path_FGREP" >&6; }
5300 FGREP="$ac_cv_path_FGREP"
d7040cdb 5301
6bf9431b 5302
7357c5b6 5303test -z "$GREP" && GREP=grep
252b5132 5304
6bf9431b 5305
252b5132 5306
252b5132 5307
252b5132 5308
252b5132 5309
252b5132
RH
5310
5311
6bf9431b 5312
d7040cdb 5313
6bf9431b 5314
6bf9431b 5315
7357c5b6
AM
5316
5317
5318
5319
5320
5321
5322
81ecdfbb
RW
5323# Check whether --with-gnu-ld was given.
5324if test "${with_gnu_ld+set}" = set; then :
5325 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5326else
5327 with_gnu_ld=no
81ecdfbb
RW
5328fi
5329
7357c5b6
AM
5330ac_prog=ld
5331if test "$GCC" = yes; then
5332 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5334$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5335 case $host in
5336 *-*-mingw*)
5337 # gcc leaves a trailing carriage return which upsets mingw
5338 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5339 *)
5340 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5341 esac
5342 case $ac_prog in
5343 # Accept absolute paths.
5344 [\\/]* | ?:[\\/]*)
5345 re_direlt='/[^/][^/]*/\.\./'
5346 # Canonicalize the pathname of ld
5347 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5348 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5349 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5350 done
5351 test -z "$LD" && LD="$ac_prog"
5352 ;;
5353 "")
5354 # If it fails, then pretend we aren't using GCC.
5355 ac_prog=ld
5356 ;;
5357 *)
5358 # If it is relative, then search for the first ld in PATH.
5359 with_gnu_ld=unknown
5360 ;;
5361 esac
5362elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5364$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 5365else
81ecdfbb
RW
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5367$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5368fi
81ecdfbb
RW
5369if test "${lt_cv_path_LD+set}" = set; then :
5370 $as_echo_n "(cached) " >&6
d7040cdb 5371else
7357c5b6
AM
5372 if test -z "$LD"; then
5373 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5374 for ac_dir in $PATH; do
5375 IFS="$lt_save_ifs"
5376 test -z "$ac_dir" && ac_dir=.
5377 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5378 lt_cv_path_LD="$ac_dir/$ac_prog"
5379 # Check to see if the program is GNU ld. I'd rather use --version,
5380 # but apparently some variants of GNU ld only accept -v.
5381 # Break only if it was the GNU/non-GNU ld that we prefer.
5382 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5383 *GNU* | *'with BFD'*)
5384 test "$with_gnu_ld" != no && break
5385 ;;
5386 *)
5387 test "$with_gnu_ld" != yes && break
5388 ;;
5389 esac
5390 fi
5391 done
5392 IFS="$lt_save_ifs"
6bf9431b 5393else
7357c5b6 5394 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6bf9431b 5395fi
6bf9431b 5396fi
7357c5b6
AM
5397
5398LD="$lt_cv_path_LD"
5399if test -n "$LD"; then
81ecdfbb
RW
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5401$as_echo "$LD" >&6; }
ce2cded5 5402else
81ecdfbb
RW
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404$as_echo "no" >&6; }
6bf9431b 5405fi
81ecdfbb
RW
5406test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5408$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5409if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5410 $as_echo_n "(cached) " >&6
ce2cded5 5411else
7357c5b6
AM
5412 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5413case `$LD -v 2>&1 </dev/null` in
5414*GNU* | *'with BFD'*)
5415 lt_cv_prog_gnu_ld=yes
5416 ;;
5417*)
5418 lt_cv_prog_gnu_ld=no
5419 ;;
5420esac
ce2cded5 5421fi
81ecdfbb
RW
5422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5423$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 5424with_gnu_ld=$lt_cv_prog_gnu_ld
20e95c23
DJ
5425
5426
5427
20e95c23 5428
d7040cdb
SE
5429
5430
5431
5432
5433
81ecdfbb
RW
5434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5435$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5436if test "${lt_cv_path_NM+set}" = set; then :
5437 $as_echo_n "(cached) " >&6
ce2cded5 5438else
7357c5b6
AM
5439 if test -n "$NM"; then
5440 # Let the user override the test.
5441 lt_cv_path_NM="$NM"
ce2cded5 5442else
7357c5b6
AM
5443 lt_nm_to_check="${ac_tool_prefix}nm"
5444 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5445 lt_nm_to_check="$lt_nm_to_check nm"
ce2cded5 5446 fi
7357c5b6
AM
5447 for lt_tmp_nm in $lt_nm_to_check; do
5448 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5449 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5450 IFS="$lt_save_ifs"
5451 test -z "$ac_dir" && ac_dir=.
5452 tmp_nm="$ac_dir/$lt_tmp_nm"
5453 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5454 # Check to see if the nm accepts a BSD-compat flag.
5455 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5456 # nm: unknown option "B" ignored
5457 # Tru64's nm complains that /dev/null is an invalid object file
5458 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5459 */dev/null* | *'Invalid file or object type'*)
5460 lt_cv_path_NM="$tmp_nm -B"
5461 break
5462 ;;
5463 *)
5464 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5465 */dev/null*)
5466 lt_cv_path_NM="$tmp_nm -p"
5467 break
5468 ;;
5469 *)
5470 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5471 continue # so that we can try to find one that supports BSD flags
5472 ;;
5473 esac
5474 ;;
5475 esac
5476 fi
5477 done
5478 IFS="$lt_save_ifs"
5479 done
5480 : ${lt_cv_path_NM=no}
ce2cded5
L
5481fi
5482fi
81ecdfbb
RW
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5484$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
5485if test "$lt_cv_path_NM" != "no"; then
5486 NM="$lt_cv_path_NM"
ce2cded5 5487else
7357c5b6 5488 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5489 if test -n "$DUMPBIN"; then :
5490 # Let the user override the test.
5491 else
5492 if test -n "$ac_tool_prefix"; then
5493 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
5494 do
5495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5496set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498$as_echo_n "checking for $ac_word... " >&6; }
5499if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5500 $as_echo_n "(cached) " >&6
ce2cded5 5501else
7357c5b6
AM
5502 if test -n "$DUMPBIN"; then
5503 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
5504else
5505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506for as_dir in $PATH
5507do
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 5512 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5514 break 2
5515 fi
5516done
81ecdfbb
RW
5517 done
5518IFS=$as_save_IFS
d7040cdb 5519
ce2cded5
L
5520fi
5521fi
7357c5b6
AM
5522DUMPBIN=$ac_cv_prog_DUMPBIN
5523if test -n "$DUMPBIN"; then
81ecdfbb
RW
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5525$as_echo "$DUMPBIN" >&6; }
ce2cded5 5526else
81ecdfbb
RW
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528$as_echo "no" >&6; }
ce2cded5 5529fi
d7040cdb 5530
81ecdfbb 5531
7357c5b6
AM
5532 test -n "$DUMPBIN" && break
5533 done
ce2cded5 5534fi
7357c5b6
AM
5535if test -z "$DUMPBIN"; then
5536 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5537 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
5538do
5539 # Extract the first word of "$ac_prog", so it can be a program name with args.
5540set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542$as_echo_n "checking for $ac_word... " >&6; }
5543if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5544 $as_echo_n "(cached) " >&6
ce2cded5 5545else
7357c5b6
AM
5546 if test -n "$ac_ct_DUMPBIN"; then
5547 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
5548else
5549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550for as_dir in $PATH
5551do
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 5556 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5558 break 2
5559 fi
5560done
81ecdfbb
RW
5561 done
5562IFS=$as_save_IFS
d7040cdb 5563
ce2cded5
L
5564fi
5565fi
7357c5b6
AM
5566ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5567if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5569$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 5570else
81ecdfbb
RW
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572$as_echo "no" >&6; }
20e95c23 5573fi
20e95c23 5574
81ecdfbb 5575
7357c5b6 5576 test -n "$ac_ct_DUMPBIN" && break
ce2cded5
L
5577done
5578
81ecdfbb
RW
5579 if test "x$ac_ct_DUMPBIN" = x; then
5580 DUMPBIN=":"
5581 else
5582 case $cross_compiling:$ac_tool_warned in
5583yes:)
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5586ac_tool_warned=yes ;;
5587esac
5588 DUMPBIN=$ac_ct_DUMPBIN
5589 fi
d7040cdb 5590fi
7357c5b6 5591
3725885a
RW
5592 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5593 *COFF*)
5594 DUMPBIN="$DUMPBIN -symbols"
5595 ;;
5596 *)
5597 DUMPBIN=:
5598 ;;
5599 esac
5600 fi
7357c5b6
AM
5601
5602 if test "$DUMPBIN" != ":"; then
5603 NM="$DUMPBIN"
5604 fi
20e95c23 5605fi
7357c5b6
AM
5606test -z "$NM" && NM=nm
5607
5608
5609
5610
5611
5612
81ecdfbb
RW
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5614$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5615if test "${lt_cv_nm_interface+set}" = set; then :
5616 $as_echo_n "(cached) " >&6
ce2cded5 5617else
7357c5b6
AM
5618 lt_cv_nm_interface="BSD nm"
5619 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5620 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7357c5b6
AM
5621 (eval "$ac_compile" 2>conftest.err)
5622 cat conftest.err >&5
3725885a 5623 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
5624 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5625 cat conftest.err >&5
3725885a 5626 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7357c5b6
AM
5627 cat conftest.out >&5
5628 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5629 lt_cv_nm_interface="MS dumpbin"
5630 fi
5631 rm -f conftest*
ce2cded5 5632fi
81ecdfbb
RW
5633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5634$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 5635
81ecdfbb
RW
5636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5637$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
5638LN_S=$as_ln_s
5639if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5641$as_echo "yes" >&6; }
ce2cded5 5642else
81ecdfbb
RW
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5644$as_echo "no, using $LN_S" >&6; }
ce2cded5 5645fi
d7040cdb 5646
7357c5b6 5647# find the maximum length of command line arguments
81ecdfbb
RW
5648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5649$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5650if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5651 $as_echo_n "(cached) " >&6
7357c5b6
AM
5652else
5653 i=0
5654 teststring="ABCD"
d7040cdb 5655
7357c5b6
AM
5656 case $build_os in
5657 msdosdjgpp*)
5658 # On DJGPP, this test can blow up pretty badly due to problems in libc
5659 # (any single argument exceeding 2000 bytes causes a buffer overrun
5660 # during glob expansion). Even if it were fixed, the result of this
5661 # check would be larger than it should be.
5662 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5663 ;;
d7040cdb 5664
7357c5b6
AM
5665 gnu*)
5666 # Under GNU Hurd, this test is not required because there is
5667 # no limit to the length of command line arguments.
5668 # Libtool will interpret -1 as no limit whatsoever
5669 lt_cv_sys_max_cmd_len=-1;
5670 ;;
d7040cdb 5671
b214d478 5672 cygwin* | mingw* | cegcc*)
7357c5b6
AM
5673 # On Win9x/ME, this test blows up -- it succeeds, but takes
5674 # about 5 minutes as the teststring grows exponentially.
5675 # Worse, since 9x/ME are not pre-emptively multitasking,
5676 # you end up with a "frozen" computer, even though with patience
5677 # the test eventually succeeds (with a max line length of 256k).
5678 # Instead, let's just punt: use the minimum linelength reported by
5679 # all of the supported platforms: 8192 (on NT/2K/XP).
5680 lt_cv_sys_max_cmd_len=8192;
5681 ;;
d7040cdb 5682
3725885a
RW
5683 mint*)
5684 # On MiNT this can take a long time and run out of memory.
5685 lt_cv_sys_max_cmd_len=8192;
5686 ;;
5687
7357c5b6
AM
5688 amigaos*)
5689 # On AmigaOS with pdksh, this test takes hours, literally.
5690 # So we just punt and use a minimum line length of 8192.
5691 lt_cv_sys_max_cmd_len=8192;
5692 ;;
d7040cdb 5693
7357c5b6
AM
5694 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5695 # This has been around since 386BSD, at least. Likely further.
5696 if test -x /sbin/sysctl; then
5697 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5698 elif test -x /usr/sbin/sysctl; then
5699 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5700 else
5701 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5702 fi
5703 # And add a safety zone
5704 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5706 ;;
d7040cdb 5707
7357c5b6
AM
5708 interix*)
5709 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5710 lt_cv_sys_max_cmd_len=196608
5711 ;;
d7040cdb 5712
7357c5b6
AM
5713 osf*)
5714 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5715 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5716 # nice to cause kernel panics so lets avoid the loop below.
5717 # First set a reasonable default.
5718 lt_cv_sys_max_cmd_len=16384
5719 #
5720 if test -x /sbin/sysconfig; then
5721 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5722 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5723 esac
5724 fi
5725 ;;
5726 sco3.2v5*)
5727 lt_cv_sys_max_cmd_len=102400
5728 ;;
5729 sysv5* | sco5v6* | sysv4.2uw2*)
5730 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5731 if test -n "$kargmax"; then
5732 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5733 else
5734 lt_cv_sys_max_cmd_len=32768
5735 fi
ce2cded5
L
5736 ;;
5737 *)
b214d478
SE
5738 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5739 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
5740 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5742 else
5743 # Make teststring a little bigger before we do anything with it.
5744 # a 1K string should be a reasonable start.
5745 for i in 1 2 3 4 5 6 7 8 ; do
5746 teststring=$teststring$teststring
5747 done
5748 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5749 # If test is not a shell built-in, we'll probably end up computing a
5750 # maximum length that is only half of the actual maximum length, but
5751 # we can't tell.
3725885a
RW
5752 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5753 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7357c5b6
AM
5754 test $i != 17 # 1/2 MB should be enough
5755 do
5756 i=`expr $i + 1`
5757 teststring=$teststring$teststring
5758 done
5759 # Only check the string length outside the loop.
5760 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5761 teststring=
5762 # Add a significant safety factor because C++ compilers can tack on
5763 # massive amounts of additional arguments before passing them to the
5764 # linker. It appears as though 1/2 is a usable value.
5765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5766 fi
ce2cded5
L
5767 ;;
5768 esac
d7040cdb 5769
7357c5b6 5770fi
d7040cdb 5771
7357c5b6 5772if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5774$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 5775else
81ecdfbb
RW
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5777$as_echo "none" >&6; }
7357c5b6
AM
5778fi
5779max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
5780
5781
5782
5783
5784
5785
7357c5b6
AM
5786: ${CP="cp -f"}
5787: ${MV="mv -f"}
5788: ${RM="rm -f"}
d7040cdb 5789
81ecdfbb
RW
5790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5791$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
5792# Try some XSI features
5793xsi_shell=no
5794( _lt_dummy="a/b/c"
5795 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
5796 = c,a/b,, \
5797 && eval 'test $(( 1 + 1 )) -eq 2 \
5798 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 5799 && xsi_shell=yes
81ecdfbb
RW
5800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5801$as_echo "$xsi_shell" >&6; }
d7040cdb
SE
5802
5803
81ecdfbb
RW
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5805$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
5806lt_shell_append=no
5807( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5808 >/dev/null 2>&1 \
5809 && lt_shell_append=yes
81ecdfbb
RW
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5811$as_echo "$lt_shell_append" >&6; }
d7040cdb 5812
d7040cdb 5813
7357c5b6
AM
5814if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5815 lt_unset=unset
5816else
5817 lt_unset=false
5818fi
d7040cdb 5819
d7040cdb 5820
d7040cdb 5821
d7040cdb 5822
d7040cdb 5823
7357c5b6
AM
5824# test EBCDIC or ASCII
5825case `echo X|tr X '\101'` in
5826 A) # ASCII based system
5827 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5828 lt_SP2NL='tr \040 \012'
5829 lt_NL2SP='tr \015\012 \040\040'
5830 ;;
5831 *) # EBCDIC based system
5832 lt_SP2NL='tr \100 \n'
5833 lt_NL2SP='tr \r\n \100\100'
5834 ;;
5835esac
d7040cdb 5836
d7040cdb 5837
d7040cdb 5838
d7040cdb 5839
d7040cdb 5840
d7040cdb
SE
5841
5842
5af11cab 5843
d7040cdb 5844
81ecdfbb
RW
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5846$as_echo_n "checking for $LD option to reload object files... " >&6; }
5847if test "${lt_cv_ld_reload_flag+set}" = set; then :
5848 $as_echo_n "(cached) " >&6
7357c5b6
AM
5849else
5850 lt_cv_ld_reload_flag='-r'
5851fi
81ecdfbb
RW
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5853$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
5854reload_flag=$lt_cv_ld_reload_flag
5855case $reload_flag in
5856"" | " "*) ;;
5857*) reload_flag=" $reload_flag" ;;
5858esac
5859reload_cmds='$LD$reload_flag -o $output$reload_objs'
5860case $host_os in
5861 darwin*)
5862 if test "$GCC" = yes; then
5863 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5864 else
5865 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5866 fi
5867 ;;
5868esac
20e95c23 5869
6bf9431b 5870
20e95c23
DJ
5871
5872
20e95c23 5873
20e95c23 5874
ce2cded5 5875
ce2cded5 5876
ce2cded5 5877
b214d478
SE
5878if test -n "$ac_tool_prefix"; then
5879 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5880set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5882$as_echo_n "checking for $ac_word... " >&6; }
5883if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5884 $as_echo_n "(cached) " >&6
b214d478
SE
5885else
5886 if test -n "$OBJDUMP"; then
5887 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5888else
5889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890for as_dir in $PATH
5891do
5892 IFS=$as_save_IFS
5893 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5894 for ac_exec_ext in '' $ac_executable_extensions; do
5895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 5896 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 5897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
5898 break 2
5899 fi
5900done
81ecdfbb
RW
5901 done
5902IFS=$as_save_IFS
b214d478
SE
5903
5904fi
5905fi
5906OBJDUMP=$ac_cv_prog_OBJDUMP
5907if test -n "$OBJDUMP"; then
81ecdfbb
RW
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5909$as_echo "$OBJDUMP" >&6; }
b214d478 5910else
81ecdfbb
RW
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912$as_echo "no" >&6; }
b214d478
SE
5913fi
5914
81ecdfbb 5915
b214d478
SE
5916fi
5917if test -z "$ac_cv_prog_OBJDUMP"; then
5918 ac_ct_OBJDUMP=$OBJDUMP
5919 # Extract the first word of "objdump", so it can be a program name with args.
5920set dummy objdump; ac_word=$2
81ecdfbb
RW
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922$as_echo_n "checking for $ac_word... " >&6; }
5923if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5924 $as_echo_n "(cached) " >&6
b214d478
SE
5925else
5926 if test -n "$ac_ct_OBJDUMP"; then
5927 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5928else
5929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930for as_dir in $PATH
5931do
5932 IFS=$as_save_IFS
5933 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 5936 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 5937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
5938 break 2
5939 fi
5940done
81ecdfbb
RW
5941 done
5942IFS=$as_save_IFS
b214d478 5943
b214d478
SE
5944fi
5945fi
5946ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5947if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5949$as_echo "$ac_ct_OBJDUMP" >&6; }
b214d478 5950else
81ecdfbb
RW
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952$as_echo "no" >&6; }
b214d478
SE
5953fi
5954
81ecdfbb
RW
5955 if test "x$ac_ct_OBJDUMP" = x; then
5956 OBJDUMP="false"
5957 else
5958 case $cross_compiling:$ac_tool_warned in
5959yes:)
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5962ac_tool_warned=yes ;;
5963esac
5964 OBJDUMP=$ac_ct_OBJDUMP
5965 fi
b214d478
SE
5966else
5967 OBJDUMP="$ac_cv_prog_OBJDUMP"
5968fi
5969
5970test -z "$OBJDUMP" && OBJDUMP=objdump
5971
5972
5973
5974
5975
5976
5977
5978
ce2cded5 5979
81ecdfbb
RW
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5981$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5982if test "${lt_cv_deplibs_check_method+set}" = set; then :
5983 $as_echo_n "(cached) " >&6
6bf9431b 5984else
7357c5b6
AM
5985 lt_cv_file_magic_cmd='$MAGIC_CMD'
5986lt_cv_file_magic_test_file=
5987lt_cv_deplibs_check_method='unknown'
5988# Need to set the preceding variable on all platforms that support
5989# interlibrary dependencies.
5990# 'none' -- dependencies not supported.
5991# `unknown' -- same as none, but documents that we really don't know.
5992# 'pass_all' -- all dependencies passed with no checks.
5993# 'test_compile' -- check by making test program.
5994# 'file_magic [[regex]]' -- check by looking for files in library path
5995# which responds to the $file_magic_cmd with a given extended regex.
5996# If you have `file' or equivalent on your system and you're not sure
5997# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 5998
ce2cded5 5999case $host_os in
7357c5b6
AM
6000aix[4-9]*)
6001 lt_cv_deplibs_check_method=pass_all
ce2cded5 6002 ;;
7357c5b6
AM
6003
6004beos*)
6005 lt_cv_deplibs_check_method=pass_all
ce2cded5 6006 ;;
7357c5b6
AM
6007
6008bsdi[45]*)
6009 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6010 lt_cv_file_magic_cmd='/usr/bin/file -L'
6011 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 6012 ;;
7357c5b6
AM
6013
6014cygwin*)
6015 # func_win32_libid is a shell function defined in ltmain.sh
6016 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6017 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 6018 ;;
7357c5b6
AM
6019
6020mingw* | pw32*)
6021 # Base MSYS/MinGW do not provide the 'file' command needed by
6022 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6023 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6024 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6025 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7357c5b6
AM
6026 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6027 lt_cv_file_magic_cmd='func_win32_libid'
6028 else
6029 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6030 lt_cv_file_magic_cmd='$OBJDUMP -f'
6031 fi
ce2cded5 6032 ;;
7357c5b6 6033
3725885a 6034cegcc*)
b214d478
SE
6035 # use the weaker test based on 'objdump'. See mingw*.
6036 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6037 lt_cv_file_magic_cmd='$OBJDUMP -f'
6038 ;;
6039
7357c5b6
AM
6040darwin* | rhapsody*)
6041 lt_cv_deplibs_check_method=pass_all
d7040cdb 6042 ;;
d7040cdb 6043
7357c5b6
AM
6044freebsd* | dragonfly*)
6045 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6046 case $host_cpu in
6047 i*86 )
6048 # Not sure whether the presence of OpenBSD here was a mistake.
6049 # Let's accept both of them until this is cleared up.
6050 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6051 lt_cv_file_magic_cmd=/usr/bin/file
6052 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6053 ;;
6054 esac
6055 else
6056 lt_cv_deplibs_check_method=pass_all
6057 fi
6058 ;;
20e95c23 6059
7357c5b6
AM
6060gnu*)
6061 lt_cv_deplibs_check_method=pass_all
6062 ;;
20e95c23 6063
3725885a
RW
6064haiku*)
6065 lt_cv_deplibs_check_method=pass_all
6066 ;;
6067
7357c5b6
AM
6068hpux10.20* | hpux11*)
6069 lt_cv_file_magic_cmd=/usr/bin/file
6070 case $host_cpu in
6071 ia64*)
6072 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6073 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6074 ;;
6075 hppa*64*)
3725885a 6076 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]'
7357c5b6
AM
6077 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6078 ;;
6079 *)
3725885a 6080 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7357c5b6
AM
6081 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6082 ;;
6083 esac
6084 ;;
5af11cab 6085
7357c5b6
AM
6086interix[3-9]*)
6087 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d7040cdb 6089 ;;
20e95c23 6090
7357c5b6
AM
6091irix5* | irix6* | nonstopux*)
6092 case $LD in
6093 *-32|*"-32 ") libmagic=32-bit;;
6094 *-n32|*"-n32 ") libmagic=N32;;
6095 *-64|*"-64 ") libmagic=64-bit;;
6096 *) libmagic=never-match;;
6097 esac
6098 lt_cv_deplibs_check_method=pass_all
6099 ;;
d7040cdb 6100
7357c5b6 6101# This must be Linux ELF.
58e24671 6102linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
6103 lt_cv_deplibs_check_method=pass_all
6104 ;;
d7040cdb 6105
7357c5b6
AM
6106netbsd*)
6107 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6108 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 6109 else
7357c5b6 6110 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
ce2cded5 6111 fi
7357c5b6 6112 ;;
d7040cdb 6113
7357c5b6
AM
6114newos6*)
6115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6116 lt_cv_file_magic_cmd=/usr/bin/file
6117 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6118 ;;
d7040cdb 6119
7357c5b6
AM
6120*nto* | *qnx*)
6121 lt_cv_deplibs_check_method=pass_all
6122 ;;
d7040cdb 6123
7357c5b6
AM
6124openbsd*)
6125 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6126 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6127 else
6128 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6129 fi
6130 ;;
d7040cdb 6131
7357c5b6
AM
6132osf3* | osf4* | osf5*)
6133 lt_cv_deplibs_check_method=pass_all
6134 ;;
d7040cdb 6135
7357c5b6
AM
6136rdos*)
6137 lt_cv_deplibs_check_method=pass_all
6138 ;;
d7040cdb 6139
7357c5b6
AM
6140solaris*)
6141 lt_cv_deplibs_check_method=pass_all
6142 ;;
d7040cdb 6143
7357c5b6
AM
6144sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6145 lt_cv_deplibs_check_method=pass_all
6146 ;;
d7040cdb 6147
7357c5b6
AM
6148sysv4 | sysv4.3*)
6149 case $host_vendor in
6150 motorola)
6151 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]'
6152 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6153 ;;
6154 ncr)
6155 lt_cv_deplibs_check_method=pass_all
6156 ;;
6157 sequent)
6158 lt_cv_file_magic_cmd='/bin/file'
6159 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6160 ;;
6161 sni)
6162 lt_cv_file_magic_cmd='/bin/file'
6163 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6164 lt_cv_file_magic_test_file=/lib/libc.so
6165 ;;
6166 siemens)
6167 lt_cv_deplibs_check_method=pass_all
6168 ;;
6169 pc)
6170 lt_cv_deplibs_check_method=pass_all
6171 ;;
6172 esac
6173 ;;
d7040cdb 6174
7357c5b6
AM
6175tpf*)
6176 lt_cv_deplibs_check_method=pass_all
6177 ;;
6178esac
d7040cdb 6179
ce2cded5 6180fi
81ecdfbb
RW
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6182$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
6183file_magic_cmd=$lt_cv_file_magic_cmd
6184deplibs_check_method=$lt_cv_deplibs_check_method
6185test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 6186
d7040cdb 6187
d7040cdb 6188
d7040cdb 6189
5af11cab 6190
20e95c23 6191
20e95c23 6192
20e95c23 6193
20e95c23
DJ
6194
6195
6196
20e95c23 6197
7357c5b6
AM
6198if test -n "$ac_tool_prefix"; then
6199 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6200set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202$as_echo_n "checking for $ac_word... " >&6; }
6203if test "${ac_cv_prog_AR+set}" = set; then :
6204 $as_echo_n "(cached) " >&6
7357c5b6
AM
6205else
6206 if test -n "$AR"; then
6207 ac_cv_prog_AR="$AR" # Let the user override the test.
6208else
6209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210for as_dir in $PATH
6211do
6212 IFS=$as_save_IFS
6213 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6214 for ac_exec_ext in '' $ac_executable_extensions; do
6215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6216 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6218 break 2
ce2cded5 6219 fi
7357c5b6 6220done
81ecdfbb
RW
6221 done
6222IFS=$as_save_IFS
d5fbea21 6223
7357c5b6
AM
6224fi
6225fi
6226AR=$ac_cv_prog_AR
6227if test -n "$AR"; then
81ecdfbb
RW
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6229$as_echo "$AR" >&6; }
7357c5b6 6230else
81ecdfbb
RW
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232$as_echo "no" >&6; }
7357c5b6 6233fi
d5fbea21 6234
81ecdfbb 6235
7357c5b6
AM
6236fi
6237if test -z "$ac_cv_prog_AR"; then
6238 ac_ct_AR=$AR
6239 # Extract the first word of "ar", so it can be a program name with args.
6240set dummy ar; ac_word=$2
81ecdfbb
RW
6241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6242$as_echo_n "checking for $ac_word... " >&6; }
6243if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6244 $as_echo_n "(cached) " >&6
ce2cded5 6245else
7357c5b6
AM
6246 if test -n "$ac_ct_AR"; then
6247 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6248else
6249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250for as_dir in $PATH
6251do
6252 IFS=$as_save_IFS
6253 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6254 for ac_exec_ext in '' $ac_executable_extensions; do
6255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6256 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6258 break 2
6259 fi
6260done
81ecdfbb
RW
6261 done
6262IFS=$as_save_IFS
d7040cdb 6263
7357c5b6
AM
6264fi
6265fi
6266ac_ct_AR=$ac_cv_prog_ac_ct_AR
6267if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6269$as_echo "$ac_ct_AR" >&6; }
ce2cded5 6270else
81ecdfbb
RW
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272$as_echo "no" >&6; }
ce2cded5 6273fi
d7040cdb 6274
81ecdfbb
RW
6275 if test "x$ac_ct_AR" = x; then
6276 AR="false"
6277 else
6278 case $cross_compiling:$ac_tool_warned in
6279yes:)
6280{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6281$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6282ac_tool_warned=yes ;;
6283esac
6284 AR=$ac_ct_AR
6285 fi
7357c5b6
AM
6286else
6287 AR="$ac_cv_prog_AR"
ce2cded5 6288fi
d7040cdb 6289
7357c5b6
AM
6290test -z "$AR" && AR=ar
6291test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb 6292
7357c5b6
AM
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303if test -n "$ac_tool_prefix"; then
6304 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6305set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307$as_echo_n "checking for $ac_word... " >&6; }
6308if test "${ac_cv_prog_STRIP+set}" = set; then :
6309 $as_echo_n "(cached) " >&6
252b5132 6310else
7357c5b6
AM
6311 if test -n "$STRIP"; then
6312 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6313else
6314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315for as_dir in $PATH
ce2cded5 6316do
7357c5b6
AM
6317 IFS=$as_save_IFS
6318 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6321 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6323 break 2
ce2cded5 6324 fi
7357c5b6 6325done
81ecdfbb
RW
6326 done
6327IFS=$as_save_IFS
7357c5b6 6328
252b5132 6329fi
7357c5b6
AM
6330fi
6331STRIP=$ac_cv_prog_STRIP
6332if test -n "$STRIP"; then
81ecdfbb
RW
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6334$as_echo "$STRIP" >&6; }
252b5132 6335else
81ecdfbb
RW
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337$as_echo "no" >&6; }
252b5132 6338fi
d7040cdb 6339
81ecdfbb 6340
6bf9431b 6341fi
7357c5b6
AM
6342if test -z "$ac_cv_prog_STRIP"; then
6343 ac_ct_STRIP=$STRIP
6344 # Extract the first word of "strip", so it can be a program name with args.
6345set dummy strip; ac_word=$2
81ecdfbb
RW
6346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347$as_echo_n "checking for $ac_word... " >&6; }
6348if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6349 $as_echo_n "(cached) " >&6
ac48eca1 6350else
7357c5b6
AM
6351 if test -n "$ac_ct_STRIP"; then
6352 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6353else
6354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355for as_dir in $PATH
6356do
6357 IFS=$as_save_IFS
6358 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6361 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6363 break 2
6364 fi
6365done
81ecdfbb
RW
6366 done
6367IFS=$as_save_IFS
6bf9431b 6368
7357c5b6
AM
6369fi
6370fi
6371ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6372if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6374$as_echo "$ac_ct_STRIP" >&6; }
7357c5b6 6375else
81ecdfbb
RW
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377$as_echo "no" >&6; }
6bf9431b 6378fi
6bf9431b 6379
81ecdfbb
RW
6380 if test "x$ac_ct_STRIP" = x; then
6381 STRIP=":"
6382 else
6383 case $cross_compiling:$ac_tool_warned in
6384yes:)
6385{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6386$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6387ac_tool_warned=yes ;;
6388esac
6389 STRIP=$ac_ct_STRIP
6390 fi
7357c5b6
AM
6391else
6392 STRIP="$ac_cv_prog_STRIP"
ce2cded5 6393fi
6bf9431b 6394
7357c5b6
AM
6395test -z "$STRIP" && STRIP=:
6396
6397
6398
6399
6400
6401
6402if test -n "$ac_tool_prefix"; then
6403 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6404set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406$as_echo_n "checking for $ac_word... " >&6; }
6407if test "${ac_cv_prog_RANLIB+set}" = set; then :
6408 $as_echo_n "(cached) " >&6
7357c5b6
AM
6409else
6410 if test -n "$RANLIB"; then
6411 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6412else
6413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414for as_dir in $PATH
6415do
6416 IFS=$as_save_IFS
6417 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6418 for ac_exec_ext in '' $ac_executable_extensions; do
6419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6420 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6422 break 2
6423 fi
6424done
81ecdfbb
RW
6425 done
6426IFS=$as_save_IFS
6bf9431b 6427
ce2cded5 6428fi
7357c5b6
AM
6429fi
6430RANLIB=$ac_cv_prog_RANLIB
6431if test -n "$RANLIB"; then
81ecdfbb
RW
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6433$as_echo "$RANLIB" >&6; }
ac48eca1 6434else
81ecdfbb
RW
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436$as_echo "no" >&6; }
d7040cdb 6437fi
7357c5b6 6438
81ecdfbb 6439
7357c5b6
AM
6440fi
6441if test -z "$ac_cv_prog_RANLIB"; then
6442 ac_ct_RANLIB=$RANLIB
6443 # Extract the first word of "ranlib", so it can be a program name with args.
6444set dummy ranlib; ac_word=$2
81ecdfbb
RW
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446$as_echo_n "checking for $ac_word... " >&6; }
6447if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6448 $as_echo_n "(cached) " >&6
7357c5b6
AM
6449else
6450 if test -n "$ac_ct_RANLIB"; then
6451 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6452else
6453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454for as_dir in $PATH
ce2cded5 6455do
7357c5b6
AM
6456 IFS=$as_save_IFS
6457 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6460 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6462 break 2
ce2cded5 6463 fi
7357c5b6 6464done
81ecdfbb
RW
6465 done
6466IFS=$as_save_IFS
7357c5b6 6467
ce2cded5 6468fi
7357c5b6
AM
6469fi
6470ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6471if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6473$as_echo "$ac_ct_RANLIB" >&6; }
ce2cded5 6474else
81ecdfbb
RW
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476$as_echo "no" >&6; }
ce2cded5 6477fi
d7040cdb 6478
81ecdfbb
RW
6479 if test "x$ac_ct_RANLIB" = x; then
6480 RANLIB=":"
6481 else
6482 case $cross_compiling:$ac_tool_warned in
6483yes:)
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6486ac_tool_warned=yes ;;
6487esac
6488 RANLIB=$ac_ct_RANLIB
6489 fi
d7040cdb 6490else
7357c5b6 6491 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb
SE
6492fi
6493
7357c5b6
AM
6494test -z "$RANLIB" && RANLIB=:
6495
6496
6497
6498
6499
6500
6501# Determine commands to create old-style static archives.
b214d478 6502old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
6503old_postinstall_cmds='chmod 644 $oldlib'
6504old_postuninstall_cmds=
6505
6506if test -n "$RANLIB"; then
6507 case $host_os in
6508 openbsd*)
6509 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6510 ;;
6511 *)
6512 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6513 ;;
6514 esac
6515 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 6516fi
d7040cdb 6517
3725885a
RW
6518case $host_os in
6519 darwin*)
6520 lock_old_archive_extraction=yes ;;
6521 *)
6522 lock_old_archive_extraction=no ;;
6523esac
6524
6525
6526
6527
6528
6529
d7040cdb
SE
6530
6531
6532
6533
d7040cdb 6534
7357c5b6
AM
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563# If no C compiler was specified, use CC.
6564LTCC=${LTCC-"$CC"}
6565
6566# If no C compiler flags were specified, use CFLAGS.
6567LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6568
6569# Allow CC to be a program name with arguments.
6570compiler=$CC
6571
6572
6573# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6575$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6576if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6577 $as_echo_n "(cached) " >&6
7357c5b6
AM
6578else
6579
6580# These are sane defaults that work on at least a few old systems.
6581# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6582
6583# Character class describing NM global symbol codes.
6584symcode='[BCDEGRST]'
6585
6586# Regexp to match symbols that can be accessed directly from C.
6587sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6588
6589# Define system-specific variables.
6590case $host_os in
6591aix*)
6592 symcode='[BCDT]'
6593 ;;
b214d478 6594cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
6595 symcode='[ABCDGISTW]'
6596 ;;
6597hpux*)
6598 if test "$host_cpu" = ia64; then
6599 symcode='[ABCDEGRST]'
6600 fi
6601 ;;
6602irix* | nonstopux*)
6603 symcode='[BCDEGRST]'
6604 ;;
6605osf*)
6606 symcode='[BCDEGQRST]'
6607 ;;
6608solaris*)
6609 symcode='[BDRT]'
6610 ;;
6611sco3.2v5*)
6612 symcode='[DT]'
6613 ;;
6614sysv4.2uw2*)
6615 symcode='[DT]'
6616 ;;
6617sysv5* | sco5v6* | unixware* | OpenUNIX*)
6618 symcode='[ABDT]'
6619 ;;
6620sysv4)
6621 symcode='[DFNSTU]'
6622 ;;
6623esac
6624
6625# If we're using GNU nm, then use its standard symbol codes.
6626case `$NM -V 2>&1` in
6627*GNU* | *'with BFD'*)
6628 symcode='[ABCDGIRSTW]' ;;
6629esac
6630
6631# Transform an extracted symbol line into a proper C declaration.
6632# Some systems (esp. on ia64) link data and code symbols differently,
6633# so use this general approach.
6634lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6635
6636# Transform an extracted symbol line into symbol name and symbol address
6637lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 6638lt_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'"
7357c5b6
AM
6639
6640# Handle CRLF in mingw tool chain
6641opt_cr=
6642case $build_os in
6643mingw*)
6644 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6645 ;;
6646esac
6647
6648# Try without a prefix underscore, then with it.
6649for ac_symprfx in "" "_"; do
6650
6651 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6652 symxfrm="\\1 $ac_symprfx\\2 \\2"
6653
6654 # Write the raw and C identifiers.
6655 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6656 # Fake it for dumpbin and say T for any non-static function
6657 # and D for any global variable.
6658 # Also find C++ and __fastcall symbols from MSVC++,
6659 # which start with @ or ?.
6660 lt_cv_sys_global_symbol_pipe="$AWK '"\
6661" {last_section=section; section=\$ 3};"\
6662" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6663" \$ 0!~/External *\|/{next};"\
6664" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6665" {if(hide[section]) next};"\
6666" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6667" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6668" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6669" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6670" ' prfx=^$ac_symprfx"
6671 else
6672 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6673 fi
6674
6675 # Check to see that the pipe works correctly.
6676 pipe_works=no
6677
6678 rm -f conftest*
6679 cat > conftest.$ac_ext <<_LT_EOF
6680#ifdef __cplusplus
6681extern "C" {
6682#endif
6683char nm_test_var;
6684void nm_test_func(void);
6685void nm_test_func(void){}
6686#ifdef __cplusplus
ce2cded5 6687}
7357c5b6
AM
6688#endif
6689int main(){nm_test_var='a';nm_test_func();return(0);}
6690_LT_EOF
6691
81ecdfbb 6692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6693 (eval $ac_compile) 2>&5
ce2cded5 6694 ac_status=$?
81ecdfbb
RW
6695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6696 test $ac_status = 0; }; then
7357c5b6
AM
6697 # Now try to grab the symbols.
6698 nlist=conftest.nm
3725885a
RW
6699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6700 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
ce2cded5 6701 ac_status=$?
81ecdfbb
RW
6702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6703 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6704 # Try sorting and uniquifying the output.
6705 if sort "$nlist" | uniq > "$nlist"T; then
6706 mv -f "$nlist"T "$nlist"
6707 else
6708 rm -f "$nlist"T
6709 fi
6bf9431b 6710
7357c5b6
AM
6711 # Make sure that we snagged all the symbols we need.
6712 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6713 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6714 cat <<_LT_EOF > conftest.$ac_ext
6715#ifdef __cplusplus
6716extern "C" {
6717#endif
d7040cdb 6718
7357c5b6
AM
6719_LT_EOF
6720 # Now generate the symbol file.
6721 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d7040cdb 6722
7357c5b6 6723 cat <<_LT_EOF >> conftest.$ac_ext
ac48eca1 6724
7357c5b6
AM
6725/* The mapping between symbol names and symbols. */
6726const struct {
6727 const char *name;
6728 void *address;
6729}
6730lt__PROGRAM__LTX_preloaded_symbols[] =
6731{
6732 { "@PROGRAM@", (void *) 0 },
6733_LT_EOF
6734 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6735 cat <<\_LT_EOF >> conftest.$ac_ext
6736 {0, (void *) 0}
6737};
d7040cdb 6738
7357c5b6
AM
6739/* This works around a problem in FreeBSD linker */
6740#ifdef FREEBSD_WORKAROUND
6741static const void *lt_preloaded_setup() {
6742 return lt__PROGRAM__LTX_preloaded_symbols;
6743}
ce2cded5 6744#endif
d7040cdb 6745
7357c5b6 6746#ifdef __cplusplus
ce2cded5 6747}
7357c5b6
AM
6748#endif
6749_LT_EOF
6750 # Now try linking the two files.
6751 mv conftest.$ac_objext conftstm.$ac_objext
6752 lt_save_LIBS="$LIBS"
6753 lt_save_CFLAGS="$CFLAGS"
6754 LIBS="conftstm.$ac_objext"
6755 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
6757 (eval $ac_link) 2>&5
6758 ac_status=$?
81ecdfbb
RW
6759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6760 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6761 pipe_works=yes
6762 fi
6763 LIBS="$lt_save_LIBS"
6764 CFLAGS="$lt_save_CFLAGS"
6765 else
6766 echo "cannot find nm_test_func in $nlist" >&5
6767 fi
6768 else
6769 echo "cannot find nm_test_var in $nlist" >&5
6770 fi
6771 else
6772 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6773 fi
6774 else
6775 echo "$progname: failed program was:" >&5
6776 cat conftest.$ac_ext >&5
6777 fi
b214d478 6778 rm -rf conftest* conftst*
7357c5b6
AM
6779
6780 # Do not use the global_symbol_pipe unless it works.
6781 if test "$pipe_works" = yes; then
6782 break
6783 else
6784 lt_cv_sys_global_symbol_pipe=
6785 fi
6786done
d7040cdb 6787
ce2cded5 6788fi
7357c5b6
AM
6789
6790if test -z "$lt_cv_sys_global_symbol_pipe"; then
6791 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 6792fi
7357c5b6 6793if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6795$as_echo "failed" >&6; }
7357c5b6 6796else
81ecdfbb
RW
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6798$as_echo "ok" >&6; }
ce2cded5 6799fi
d7040cdb 6800
d7040cdb 6801
d7040cdb 6802
d7040cdb 6803
d7040cdb 6804
d7040cdb 6805
d7040cdb 6806
d7040cdb 6807
d7040cdb 6808
d7040cdb 6809
d7040cdb 6810
d7040cdb 6811
7357c5b6
AM
6812
6813
6814
b214d478
SE
6815
6816
6817
6818
6819
7357c5b6
AM
6820
6821
81ecdfbb
RW
6822# Check whether --enable-libtool-lock was given.
6823if test "${enable_libtool_lock+set}" = set; then :
6824 enableval=$enable_libtool_lock;
6825fi
7357c5b6 6826
7357c5b6
AM
6827test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6828
6829# Some flags need to be propagated to the compiler or linker for good
6830# libtool support.
6831case $host in
6832ia64-*-hpux*)
6833 # Find out which ABI we are using.
6834 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6836 (eval $ac_compile) 2>&5
6837 ac_status=$?
81ecdfbb
RW
6838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6839 test $ac_status = 0; }; then
7357c5b6
AM
6840 case `/usr/bin/file conftest.$ac_objext` in
6841 *ELF-32*)
6842 HPUX_IA64_MODE="32"
6843 ;;
6844 *ELF-64*)
6845 HPUX_IA64_MODE="64"
6846 ;;
6847 esac
6848 fi
6849 rm -rf conftest*
6850 ;;
6851*-*-irix6*)
6852 # Find out which ABI we are using.
3725885a 6853 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 6854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6855 (eval $ac_compile) 2>&5
6856 ac_status=$?
81ecdfbb
RW
6857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6858 test $ac_status = 0; }; then
7357c5b6
AM
6859 if test "$lt_cv_prog_gnu_ld" = yes; then
6860 case `/usr/bin/file conftest.$ac_objext` in
6861 *32-bit*)
6862 LD="${LD-ld} -melf32bsmip"
6863 ;;
6864 *N32*)
6865 LD="${LD-ld} -melf32bmipn32"
6866 ;;
6867 *64-bit*)
6868 LD="${LD-ld} -melf64bmip"
6869 ;;
6870 esac
6871 else
6872 case `/usr/bin/file conftest.$ac_objext` in
6873 *32-bit*)
6874 LD="${LD-ld} -32"
6875 ;;
6876 *N32*)
6877 LD="${LD-ld} -n32"
6878 ;;
6879 *64-bit*)
6880 LD="${LD-ld} -64"
6881 ;;
6882 esac
6883 fi
6884 fi
6885 rm -rf conftest*
6886 ;;
6887
6888x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6889s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6890 # Find out which ABI we are using.
6891 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6893 (eval $ac_compile) 2>&5
6894 ac_status=$?
81ecdfbb
RW
6895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6896 test $ac_status = 0; }; then
7357c5b6
AM
6897 case `/usr/bin/file conftest.o` in
6898 *32-bit*)
6899 case $host in
6900 x86_64-*kfreebsd*-gnu)
6901 LD="${LD-ld} -m elf_i386_fbsd"
6902 ;;
6903 x86_64-*linux*)
6d2920c8
L
6904 case `/usr/bin/file conftest.o` in
6905 *x86-64*)
6906 LD="${LD-ld} -m elf32_x86_64"
6907 ;;
6908 *)
6909 LD="${LD-ld} -m elf_i386"
6910 ;;
6911 esac
7357c5b6
AM
6912 ;;
6913 ppc64-*linux*|powerpc64-*linux*)
6914 LD="${LD-ld} -m elf32ppclinux"
6915 ;;
6916 s390x-*linux*)
6917 LD="${LD-ld} -m elf_s390"
6918 ;;
6919 sparc64-*linux*)
6920 LD="${LD-ld} -m elf32_sparc"
6921 ;;
6922 esac
6923 ;;
6924 *64-bit*)
6925 case $host in
6926 x86_64-*kfreebsd*-gnu)
6927 LD="${LD-ld} -m elf_x86_64_fbsd"
6928 ;;
6929 x86_64-*linux*)
6930 LD="${LD-ld} -m elf_x86_64"
6931 ;;
6932 ppc*-*linux*|powerpc*-*linux*)
6933 LD="${LD-ld} -m elf64ppc"
6934 ;;
6935 s390*-*linux*|s390*-*tpf*)
6936 LD="${LD-ld} -m elf64_s390"
6937 ;;
6938 sparc*-*linux*)
6939 LD="${LD-ld} -m elf64_sparc"
6940 ;;
6941 esac
6942 ;;
6943 esac
6944 fi
6945 rm -rf conftest*
6946 ;;
6947
6948*-*-sco3.2v5*)
6949 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6950 SAVE_CFLAGS="$CFLAGS"
6951 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6953$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6954if test "${lt_cv_cc_needs_belf+set}" = set; then :
6955 $as_echo_n "(cached) " >&6
ce2cded5 6956else
7357c5b6
AM
6957 ac_ext=c
6958ac_cpp='$CPP $CPPFLAGS'
6959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6961ac_compiler_gnu=$ac_cv_c_compiler_gnu
6962
81ecdfbb 6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b 6964/* end confdefs.h. */
20e95c23 6965
7357c5b6
AM
6966int
6967main ()
6968{
6969
6970 ;
6971 return 0;
6972}
6bf9431b 6973_ACEOF
81ecdfbb 6974if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 6975 lt_cv_cc_needs_belf=yes
6bf9431b 6976else
81ecdfbb 6977 lt_cv_cc_needs_belf=no
ce2cded5 6978fi
81ecdfbb
RW
6979rm -f core conftest.err conftest.$ac_objext \
6980 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
6981 ac_ext=c
6982ac_cpp='$CPP $CPPFLAGS'
6983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6985ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 6986
b214d478 6987fi
81ecdfbb
RW
6988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6989$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
6990 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6991 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6992 CFLAGS="$SAVE_CFLAGS"
6993 fi
6994 ;;
6995sparc*-*solaris*)
6996 # Find out which ABI we are using.
6997 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
6999 (eval $ac_compile) 2>&5
7000 ac_status=$?
81ecdfbb
RW
7001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7002 test $ac_status = 0; }; then
b214d478
SE
7003 case `/usr/bin/file conftest.o` in
7004 *64-bit*)
7005 case $lt_cv_prog_gnu_ld in
7006 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7007 *)
7008 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7009 LD="${LD-ld} -64"
7010 fi
7011 ;;
7012 esac
7013 ;;
7014 esac
7015 fi
7016 rm -rf conftest*
7017 ;;
7018esac
7019
7020need_locks="$enable_libtool_lock"
7021
7022
7023 case $host_os in
7024 rhapsody* | darwin*)
7025 if test -n "$ac_tool_prefix"; then
7026 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7027set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029$as_echo_n "checking for $ac_word... " >&6; }
7030if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7031 $as_echo_n "(cached) " >&6
b214d478
SE
7032else
7033 if test -n "$DSYMUTIL"; then
7034 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7035else
7036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037for as_dir in $PATH
7038do
7039 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7043 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7045 break 2
7046 fi
7047done
81ecdfbb
RW
7048 done
7049IFS=$as_save_IFS
b214d478
SE
7050
7051fi
7052fi
7053DSYMUTIL=$ac_cv_prog_DSYMUTIL
7054if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7056$as_echo "$DSYMUTIL" >&6; }
b214d478 7057else
81ecdfbb
RW
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059$as_echo "no" >&6; }
b214d478
SE
7060fi
7061
81ecdfbb 7062
b214d478
SE
7063fi
7064if test -z "$ac_cv_prog_DSYMUTIL"; then
7065 ac_ct_DSYMUTIL=$DSYMUTIL
7066 # Extract the first word of "dsymutil", so it can be a program name with args.
7067set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069$as_echo_n "checking for $ac_word... " >&6; }
7070if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7071 $as_echo_n "(cached) " >&6
b214d478
SE
7072else
7073 if test -n "$ac_ct_DSYMUTIL"; then
7074 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7075else
7076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077for as_dir in $PATH
7078do
7079 IFS=$as_save_IFS
7080 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7083 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7085 break 2
7086 fi
7087done
81ecdfbb
RW
7088 done
7089IFS=$as_save_IFS
b214d478 7090
b214d478
SE
7091fi
7092fi
7093ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7094if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7096$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 7097else
81ecdfbb
RW
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099$as_echo "no" >&6; }
b214d478
SE
7100fi
7101
81ecdfbb
RW
7102 if test "x$ac_ct_DSYMUTIL" = x; then
7103 DSYMUTIL=":"
7104 else
7105 case $cross_compiling:$ac_tool_warned in
7106yes:)
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7109ac_tool_warned=yes ;;
7110esac
7111 DSYMUTIL=$ac_ct_DSYMUTIL
7112 fi
b214d478
SE
7113else
7114 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7115fi
7116
7117 if test -n "$ac_tool_prefix"; then
7118 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7119set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121$as_echo_n "checking for $ac_word... " >&6; }
7122if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7123 $as_echo_n "(cached) " >&6
b214d478
SE
7124else
7125 if test -n "$NMEDIT"; then
7126 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7127else
7128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129for as_dir in $PATH
7130do
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7135 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7137 break 2
7138 fi
7139done
81ecdfbb
RW
7140 done
7141IFS=$as_save_IFS
b214d478
SE
7142
7143fi
7144fi
7145NMEDIT=$ac_cv_prog_NMEDIT
7146if test -n "$NMEDIT"; then
81ecdfbb
RW
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7148$as_echo "$NMEDIT" >&6; }
b214d478 7149else
81ecdfbb
RW
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151$as_echo "no" >&6; }
b214d478
SE
7152fi
7153
81ecdfbb 7154
b214d478
SE
7155fi
7156if test -z "$ac_cv_prog_NMEDIT"; then
7157 ac_ct_NMEDIT=$NMEDIT
7158 # Extract the first word of "nmedit", so it can be a program name with args.
7159set dummy nmedit; ac_word=$2
81ecdfbb
RW
7160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161$as_echo_n "checking for $ac_word... " >&6; }
7162if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7163 $as_echo_n "(cached) " >&6
b214d478
SE
7164else
7165 if test -n "$ac_ct_NMEDIT"; then
7166 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7167else
7168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169for as_dir in $PATH
7170do
7171 IFS=$as_save_IFS
7172 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7173 for ac_exec_ext in '' $ac_executable_extensions; do
7174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7175 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7177 break 2
7178 fi
7179done
81ecdfbb
RW
7180 done
7181IFS=$as_save_IFS
b214d478 7182
b214d478
SE
7183fi
7184fi
7185ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7186if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7188$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 7189else
81ecdfbb
RW
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191$as_echo "no" >&6; }
b214d478
SE
7192fi
7193
81ecdfbb
RW
7194 if test "x$ac_ct_NMEDIT" = x; then
7195 NMEDIT=":"
7196 else
7197 case $cross_compiling:$ac_tool_warned in
7198yes:)
7199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7201ac_tool_warned=yes ;;
7202esac
7203 NMEDIT=$ac_ct_NMEDIT
7204 fi
b214d478
SE
7205else
7206 NMEDIT="$ac_cv_prog_NMEDIT"
7207fi
7208
7209 if test -n "$ac_tool_prefix"; then
7210 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7211set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213$as_echo_n "checking for $ac_word... " >&6; }
7214if test "${ac_cv_prog_LIPO+set}" = set; then :
7215 $as_echo_n "(cached) " >&6
b214d478
SE
7216else
7217 if test -n "$LIPO"; then
7218 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7219else
7220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221for as_dir in $PATH
7222do
7223 IFS=$as_save_IFS
7224 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7225 for ac_exec_ext in '' $ac_executable_extensions; do
7226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7227 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7229 break 2
7230 fi
7231done
81ecdfbb
RW
7232 done
7233IFS=$as_save_IFS
b214d478
SE
7234
7235fi
7236fi
7237LIPO=$ac_cv_prog_LIPO
7238if test -n "$LIPO"; then
81ecdfbb
RW
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7240$as_echo "$LIPO" >&6; }
b214d478 7241else
81ecdfbb
RW
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243$as_echo "no" >&6; }
b214d478
SE
7244fi
7245
81ecdfbb 7246
b214d478
SE
7247fi
7248if test -z "$ac_cv_prog_LIPO"; then
7249 ac_ct_LIPO=$LIPO
7250 # Extract the first word of "lipo", so it can be a program name with args.
7251set dummy lipo; ac_word=$2
81ecdfbb
RW
7252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7253$as_echo_n "checking for $ac_word... " >&6; }
7254if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7255 $as_echo_n "(cached) " >&6
b214d478
SE
7256else
7257 if test -n "$ac_ct_LIPO"; then
7258 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7259else
7260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261for as_dir in $PATH
7262do
7263 IFS=$as_save_IFS
7264 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7267 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7269 break 2
7270 fi
7271done
81ecdfbb
RW
7272 done
7273IFS=$as_save_IFS
b214d478 7274
b214d478
SE
7275fi
7276fi
7277ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7278if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7280$as_echo "$ac_ct_LIPO" >&6; }
b214d478 7281else
81ecdfbb
RW
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283$as_echo "no" >&6; }
b214d478
SE
7284fi
7285
81ecdfbb
RW
7286 if test "x$ac_ct_LIPO" = x; then
7287 LIPO=":"
7288 else
7289 case $cross_compiling:$ac_tool_warned in
7290yes:)
7291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7293ac_tool_warned=yes ;;
7294esac
7295 LIPO=$ac_ct_LIPO
7296 fi
b214d478
SE
7297else
7298 LIPO="$ac_cv_prog_LIPO"
7299fi
7300
7301 if test -n "$ac_tool_prefix"; then
7302 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7303set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305$as_echo_n "checking for $ac_word... " >&6; }
7306if test "${ac_cv_prog_OTOOL+set}" = set; then :
7307 $as_echo_n "(cached) " >&6
b214d478
SE
7308else
7309 if test -n "$OTOOL"; then
7310 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7311else
7312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313for as_dir in $PATH
7314do
7315 IFS=$as_save_IFS
7316 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7319 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7321 break 2
7322 fi
7323done
81ecdfbb
RW
7324 done
7325IFS=$as_save_IFS
b214d478
SE
7326
7327fi
7328fi
7329OTOOL=$ac_cv_prog_OTOOL
7330if test -n "$OTOOL"; then
81ecdfbb
RW
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7332$as_echo "$OTOOL" >&6; }
b214d478 7333else
81ecdfbb
RW
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335$as_echo "no" >&6; }
b214d478
SE
7336fi
7337
81ecdfbb 7338
b214d478
SE
7339fi
7340if test -z "$ac_cv_prog_OTOOL"; then
7341 ac_ct_OTOOL=$OTOOL
7342 # Extract the first word of "otool", so it can be a program name with args.
7343set dummy otool; ac_word=$2
81ecdfbb
RW
7344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345$as_echo_n "checking for $ac_word... " >&6; }
7346if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7347 $as_echo_n "(cached) " >&6
b214d478
SE
7348else
7349 if test -n "$ac_ct_OTOOL"; then
7350 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7351else
7352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353for as_dir in $PATH
7354do
7355 IFS=$as_save_IFS
7356 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7359 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7361 break 2
7362 fi
7363done
81ecdfbb
RW
7364 done
7365IFS=$as_save_IFS
b214d478 7366
b214d478
SE
7367fi
7368fi
7369ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7370if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7372$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 7373else
81ecdfbb
RW
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375$as_echo "no" >&6; }
b214d478
SE
7376fi
7377
81ecdfbb
RW
7378 if test "x$ac_ct_OTOOL" = x; then
7379 OTOOL=":"
7380 else
7381 case $cross_compiling:$ac_tool_warned in
7382yes:)
7383{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7385ac_tool_warned=yes ;;
7386esac
7387 OTOOL=$ac_ct_OTOOL
7388 fi
b214d478
SE
7389else
7390 OTOOL="$ac_cv_prog_OTOOL"
7391fi
7392
7393 if test -n "$ac_tool_prefix"; then
7394 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7395set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397$as_echo_n "checking for $ac_word... " >&6; }
7398if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7399 $as_echo_n "(cached) " >&6
b214d478
SE
7400else
7401 if test -n "$OTOOL64"; then
7402 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7403else
7404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405for as_dir in $PATH
7406do
7407 IFS=$as_save_IFS
7408 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7411 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7413 break 2
7414 fi
7415done
81ecdfbb
RW
7416 done
7417IFS=$as_save_IFS
b214d478
SE
7418
7419fi
7420fi
7421OTOOL64=$ac_cv_prog_OTOOL64
7422if test -n "$OTOOL64"; then
81ecdfbb
RW
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7424$as_echo "$OTOOL64" >&6; }
b214d478 7425else
81ecdfbb
RW
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427$as_echo "no" >&6; }
b214d478
SE
7428fi
7429
81ecdfbb 7430
b214d478
SE
7431fi
7432if test -z "$ac_cv_prog_OTOOL64"; then
7433 ac_ct_OTOOL64=$OTOOL64
7434 # Extract the first word of "otool64", so it can be a program name with args.
7435set dummy otool64; ac_word=$2
81ecdfbb
RW
7436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437$as_echo_n "checking for $ac_word... " >&6; }
7438if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7439 $as_echo_n "(cached) " >&6
b214d478
SE
7440else
7441 if test -n "$ac_ct_OTOOL64"; then
7442 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7443else
7444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445for as_dir in $PATH
7446do
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7451 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7453 break 2
7454 fi
7455done
81ecdfbb
RW
7456 done
7457IFS=$as_save_IFS
b214d478 7458
b214d478
SE
7459fi
7460fi
7461ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7462if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7464$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 7465else
81ecdfbb
RW
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467$as_echo "no" >&6; }
b214d478
SE
7468fi
7469
81ecdfbb
RW
7470 if test "x$ac_ct_OTOOL64" = x; then
7471 OTOOL64=":"
7472 else
7473 case $cross_compiling:$ac_tool_warned in
7474yes:)
7475{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7477ac_tool_warned=yes ;;
7478esac
7479 OTOOL64=$ac_ct_OTOOL64
7480 fi
b214d478
SE
7481else
7482 OTOOL64="$ac_cv_prog_OTOOL64"
7483fi
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
81ecdfbb
RW
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7512$as_echo_n "checking for -single_module linker flag... " >&6; }
7513if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7514 $as_echo_n "(cached) " >&6
b214d478
SE
7515else
7516 lt_cv_apple_cc_single_mod=no
7517 if test -z "${LT_MULTI_MODULE}"; then
7518 # By default we will add the -single_module flag. You can override
7519 # by either setting the environment variable LT_MULTI_MODULE
7520 # non-empty at configure time, or by adding -multi_module to the
7521 # link flags.
7522 rm -rf libconftest.dylib*
7523 echo "int foo(void){return 1;}" > conftest.c
7524 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7525-dynamiclib -Wl,-single_module conftest.c" >&5
7526 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7527 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7528 _lt_result=$?
7529 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7530 lt_cv_apple_cc_single_mod=yes
7531 else
7532 cat conftest.err >&5
7533 fi
7534 rm -rf libconftest.dylib*
7535 rm -f conftest.*
7536 fi
7537fi
81ecdfbb
RW
7538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7539$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7541$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7542if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7543 $as_echo_n "(cached) " >&6
b214d478
SE
7544else
7545 lt_cv_ld_exported_symbols_list=no
7546 save_LDFLAGS=$LDFLAGS
7547 echo "_main" > conftest.sym
7548 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
7550/* end confdefs.h. */
7551
7552int
7553main ()
7554{
7555
7556 ;
7557 return 0;
7558}
7559_ACEOF
81ecdfbb 7560if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
7561 lt_cv_ld_exported_symbols_list=yes
7562else
81ecdfbb 7563 lt_cv_ld_exported_symbols_list=no
b214d478 7564fi
81ecdfbb
RW
7565rm -f core conftest.err conftest.$ac_objext \
7566 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
7567 LDFLAGS="$save_LDFLAGS"
7568
7569fi
81ecdfbb
RW
7570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7571$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7573$as_echo_n "checking for -force_load linker flag... " >&6; }
7574if test "${lt_cv_ld_force_load+set}" = set; then :
7575 $as_echo_n "(cached) " >&6
7576else
7577 lt_cv_ld_force_load=no
7578 cat > conftest.c << _LT_EOF
7579int forced_loaded() { return 2;}
7580_LT_EOF
7581 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7582 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7583 echo "$AR cru libconftest.a conftest.o" >&5
7584 $AR cru libconftest.a conftest.o 2>&5
7585 cat > conftest.c << _LT_EOF
7586int main() { return 0;}
7587_LT_EOF
7588 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7589 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7590 _lt_result=$?
7591 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7592 lt_cv_ld_force_load=yes
7593 else
7594 cat conftest.err >&5
7595 fi
7596 rm -f conftest.err libconftest.a conftest conftest.c
7597 rm -rf conftest.dSYM
7598
7599fi
7600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7601$as_echo "$lt_cv_ld_force_load" >&6; }
b214d478
SE
7602 case $host_os in
7603 rhapsody* | darwin1.[012])
7604 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7605 darwin1.*)
7606 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7607 darwin*) # darwin 5.x on
7608 # if running on 10.5 or later, the deployment target defaults
7609 # to the OS version, if on x86, and 10.4, the deployment
7610 # target defaults to 10.4. Don't you love it?
7611 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7612 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7613 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7614 10.[012]*)
7615 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7616 10.*)
7617 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7618 esac
7619 ;;
7620 esac
7621 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7622 _lt_dar_single_mod='$single_module'
7623 fi
7624 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7625 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7626 else
7627 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7628 fi
3725885a 7629 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
b214d478
SE
7630 _lt_dsymutil='~$DSYMUTIL $lib || :'
7631 else
7632 _lt_dsymutil=
7633 fi
7634 ;;
7635 esac
7636
b214d478 7637for ac_header in dlfcn.h
81ecdfbb
RW
7638do :
7639 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7640"
7641if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
b214d478 7642 cat >>confdefs.h <<_ACEOF
81ecdfbb 7643#define HAVE_DLFCN_H 1
b214d478
SE
7644_ACEOF
7645
7646fi
7647
7648done
7649
7650
7651
3725885a
RW
7652
7653
b214d478
SE
7654# Set options
7655
7656
7657
7658 enable_dlopen=no
7659
7660
7661 enable_win32_dll=no
7662
7663
81ecdfbb
RW
7664 # Check whether --enable-shared was given.
7665if test "${enable_shared+set}" = set; then :
7666 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
7667 case $enableval in
7668 yes) enable_shared=yes ;;
7669 no) enable_shared=no ;;
7670 *)
7671 enable_shared=no
7672 # Look at the argument we got. We use all the common list separators.
7673 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7674 for pkg in $enableval; do
7675 IFS="$lt_save_ifs"
7676 if test "X$pkg" = "X$p"; then
7677 enable_shared=yes
7678 fi
7679 done
7680 IFS="$lt_save_ifs"
7681 ;;
7682 esac
7683else
7684 enable_shared=yes
81ecdfbb
RW
7685fi
7686
b214d478
SE
7687
7688
7689
7690
7691
7692
7693
7694
81ecdfbb
RW
7695 # Check whether --enable-static was given.
7696if test "${enable_static+set}" = set; then :
7697 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
7698 case $enableval in
7699 yes) enable_static=yes ;;
7700 no) enable_static=no ;;
7701 *)
7702 enable_static=no
7703 # Look at the argument we got. We use all the common list separators.
7704 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7705 for pkg in $enableval; do
7706 IFS="$lt_save_ifs"
7707 if test "X$pkg" = "X$p"; then
7708 enable_static=yes
7709 fi
7710 done
7711 IFS="$lt_save_ifs"
7712 ;;
7713 esac
7714else
7715 enable_static=yes
81ecdfbb
RW
7716fi
7717
b214d478
SE
7718
7719
7720
7721
7722
7723
7724
7725
7726
81ecdfbb
RW
7727# Check whether --with-pic was given.
7728if test "${with_pic+set}" = set; then :
7729 withval=$with_pic; pic_mode="$withval"
b214d478
SE
7730else
7731 pic_mode=default
81ecdfbb
RW
7732fi
7733
b214d478
SE
7734
7735test -z "$pic_mode" && pic_mode=default
7736
7737
7738
7739
7740
7741
7742
81ecdfbb
RW
7743 # Check whether --enable-fast-install was given.
7744if test "${enable_fast_install+set}" = set; then :
7745 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
7746 case $enableval in
7747 yes) enable_fast_install=yes ;;
7748 no) enable_fast_install=no ;;
7749 *)
7750 enable_fast_install=no
7751 # Look at the argument we got. We use all the common list separators.
7752 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7753 for pkg in $enableval; do
7754 IFS="$lt_save_ifs"
7755 if test "X$pkg" = "X$p"; then
7756 enable_fast_install=yes
7757 fi
7758 done
7759 IFS="$lt_save_ifs"
7357c5b6
AM
7760 ;;
7761 esac
b214d478
SE
7762else
7763 enable_fast_install=yes
81ecdfbb
RW
7764fi
7765
d7040cdb 7766
ce2cded5
L
7767
7768
ce2cded5 7769
252b5132 7770
d7040cdb 7771
252b5132 7772
6bf9431b 7773
252b5132 7774
6bf9431b 7775
ce2cded5
L
7776# This can be used to rebuild libtool when needed
7777LIBTOOL_DEPS="$ltmain"
6bf9431b 7778
ce2cded5
L
7779# Always use our own libtool.
7780LIBTOOL='$(SHELL) $(top_builddir)/libtool'
252b5132 7781
6bf9431b 7782
252b5132 7783
6bf9431b 7784
252b5132 7785
252b5132 7786
d7040cdb 7787
6bf9431b 7788
252b5132 7789
d7040cdb 7790
d7040cdb 7791
d7040cdb 7792
d7040cdb 7793
d7040cdb 7794
d7040cdb 7795
d7040cdb 7796
d7040cdb 7797
d7040cdb 7798
d7040cdb 7799
d7040cdb 7800
d7040cdb
SE
7801
7802
7803
3725885a 7804
d7040cdb
SE
7805
7806
ce2cded5 7807test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
ce2cded5
L
7822if test -n "${ZSH_VERSION+set}" ; then
7823 setopt NO_GLOB_SUBST
7824fi
d7040cdb 7825
81ecdfbb
RW
7826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7827$as_echo_n "checking for objdir... " >&6; }
7828if test "${lt_cv_objdir+set}" = set; then :
7829 $as_echo_n "(cached) " >&6
ce2cded5
L
7830else
7831 rm -f .libs 2>/dev/null
7832mkdir .libs 2>/dev/null
7833if test -d .libs; then
7834 lt_cv_objdir=.libs
7835else
7836 # MS-DOS does not allow filenames that begin with a dot.
7837 lt_cv_objdir=_libs
7838fi
7839rmdir .libs 2>/dev/null
7840fi
81ecdfbb
RW
7841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7842$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 7843objdir=$lt_cv_objdir
d7040cdb
SE
7844
7845
7846
7847
7848
ce2cded5
L
7849cat >>confdefs.h <<_ACEOF
7850#define LT_OBJDIR "$lt_cv_objdir/"
7851_ACEOF
d7040cdb
SE
7852
7853
7854
7855
ce2cded5
L
7856case $host_os in
7857aix3*)
7858 # AIX sometimes has problems with the GCC collect2 program. For some
7859 # reason, if we set the COLLECT_NAMES environment variable, the problems
7860 # vanish in a puff of smoke.
7861 if test "X${COLLECT_NAMES+set}" != Xset; then
7862 COLLECT_NAMES=
7863 export COLLECT_NAMES
7864 fi
7865 ;;
7866esac
d7040cdb 7867
ce2cded5
L
7868# Global variables:
7869ofile=libtool
7870can_build_shared=yes
d7040cdb 7871
ce2cded5
L
7872# All known linkers require a `.a' archive for static linking (except MSVC,
7873# which needs '.lib').
7874libext=a
d7040cdb 7875
ce2cded5 7876with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 7877
ce2cded5
L
7878old_CC="$CC"
7879old_CFLAGS="$CFLAGS"
d7040cdb 7880
ce2cded5
L
7881# Set sane defaults for various variables
7882test -z "$CC" && CC=cc
7883test -z "$LTCC" && LTCC=$CC
7884test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7885test -z "$LD" && LD=ld
7886test -z "$ac_objext" && ac_objext=o
d7040cdb 7887
ce2cded5
L
7888for cc_temp in $compiler""; do
7889 case $cc_temp in
7890 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7891 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7892 \-*) ;;
7893 *) break;;
7894 esac
7895done
3725885a 7896cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
7897
7898
ce2cded5
L
7899# Only perform the check for file, if the check method requires it
7900test -z "$MAGIC_CMD" && MAGIC_CMD=file
7901case $deplibs_check_method in
7902file_magic*)
7903 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7905$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7906if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7907 $as_echo_n "(cached) " >&6
ce2cded5
L
7908else
7909 case $MAGIC_CMD in
7910[\\/*] | ?:[\\/]*)
7911 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7912 ;;
7913*)
7914 lt_save_MAGIC_CMD="$MAGIC_CMD"
7915 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7916 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7917 for ac_dir in $ac_dummy; do
7918 IFS="$lt_save_ifs"
7919 test -z "$ac_dir" && ac_dir=.
7920 if test -f $ac_dir/${ac_tool_prefix}file; then
7921 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7922 if test -n "$file_magic_test_file"; then
7923 case $deplibs_check_method in
7924 "file_magic "*)
7925 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7926 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7927 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7928 $EGREP "$file_magic_regex" > /dev/null; then
7929 :
7930 else
7931 cat <<_LT_EOF 1>&2
d7040cdb 7932
ce2cded5
L
7933*** Warning: the command libtool uses to detect shared libraries,
7934*** $file_magic_cmd, produces output that libtool cannot recognize.
7935*** The result is that libtool may fail to recognize shared libraries
7936*** as such. This will affect the creation of libtool libraries that
7937*** depend on shared libraries, but programs linked with such libtool
7938*** libraries will work regardless of this problem. Nevertheless, you
7939*** may want to report the problem to your system manager and/or to
7940*** bug-libtool@gnu.org
d7040cdb 7941
ce2cded5
L
7942_LT_EOF
7943 fi ;;
7944 esac
7945 fi
7946 break
7947 fi
7948 done
7949 IFS="$lt_save_ifs"
7950 MAGIC_CMD="$lt_save_MAGIC_CMD"
7951 ;;
7952esac
7953fi
d7040cdb 7954
ce2cded5
L
7955MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7956if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7958$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 7959else
81ecdfbb
RW
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961$as_echo "no" >&6; }
ce2cded5 7962fi
d7040cdb
SE
7963
7964
7965
7966
7967
ce2cded5
L
7968if test -z "$lt_cv_path_MAGIC_CMD"; then
7969 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7971$as_echo_n "checking for file... " >&6; }
7972if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7973 $as_echo_n "(cached) " >&6
ce2cded5
L
7974else
7975 case $MAGIC_CMD in
7976[\\/*] | ?:[\\/]*)
7977 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7978 ;;
7979*)
7980 lt_save_MAGIC_CMD="$MAGIC_CMD"
7981 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7982 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7983 for ac_dir in $ac_dummy; do
7984 IFS="$lt_save_ifs"
7985 test -z "$ac_dir" && ac_dir=.
7986 if test -f $ac_dir/file; then
7987 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7988 if test -n "$file_magic_test_file"; then
7989 case $deplibs_check_method in
7990 "file_magic "*)
7991 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7992 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7993 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7994 $EGREP "$file_magic_regex" > /dev/null; then
7995 :
7996 else
7997 cat <<_LT_EOF 1>&2
d7040cdb 7998
ce2cded5
L
7999*** Warning: the command libtool uses to detect shared libraries,
8000*** $file_magic_cmd, produces output that libtool cannot recognize.
8001*** The result is that libtool may fail to recognize shared libraries
8002*** as such. This will affect the creation of libtool libraries that
8003*** depend on shared libraries, but programs linked with such libtool
8004*** libraries will work regardless of this problem. Nevertheless, you
8005*** may want to report the problem to your system manager and/or to
8006*** bug-libtool@gnu.org
d7040cdb 8007
ce2cded5
L
8008_LT_EOF
8009 fi ;;
8010 esac
8011 fi
8012 break
8013 fi
8014 done
8015 IFS="$lt_save_ifs"
8016 MAGIC_CMD="$lt_save_MAGIC_CMD"
8017 ;;
8018esac
8019fi
d7040cdb 8020
ce2cded5
L
8021MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8022if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8024$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8025else
81ecdfbb
RW
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8027$as_echo "no" >&6; }
ce2cded5 8028fi
d7040cdb
SE
8029
8030
ce2cded5
L
8031 else
8032 MAGIC_CMD=:
8033 fi
8034fi
d7040cdb 8035
ce2cded5
L
8036 fi
8037 ;;
8038esac
d7040cdb 8039
ce2cded5 8040# Use C for the default configuration in the libtool script
d7040cdb 8041
ce2cded5
L
8042lt_save_CC="$CC"
8043ac_ext=c
8044ac_cpp='$CPP $CPPFLAGS'
8045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8047ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
8048
8049
ce2cded5
L
8050# Source file extension for C test sources.
8051ac_ext=c
d7040cdb 8052
ce2cded5
L
8053# Object file extension for compiled C test sources.
8054objext=o
8055objext=$objext
d7040cdb 8056
ce2cded5
L
8057# Code to be used in simple compile tests
8058lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 8059
ce2cded5
L
8060# Code to be used in simple link tests
8061lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
8062
8063
8064
8065
8066
8067
8068
ce2cded5
L
8069# If no C compiler was specified, use CC.
8070LTCC=${LTCC-"$CC"}
d7040cdb 8071
ce2cded5
L
8072# If no C compiler flags were specified, use CFLAGS.
8073LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 8074
ce2cded5
L
8075# Allow CC to be a program name with arguments.
8076compiler=$CC
d7040cdb 8077
ce2cded5
L
8078# Save the default compiler, since it gets overwritten when the other
8079# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8080compiler_DEFAULT=$CC
d7040cdb 8081
ce2cded5
L
8082# save warnings/boilerplate of simple test code
8083ac_outfile=conftest.$ac_objext
8084echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8085eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8086_lt_compiler_boilerplate=`cat conftest.err`
8087$RM conftest*
d7040cdb 8088
ce2cded5
L
8089ac_outfile=conftest.$ac_objext
8090echo "$lt_simple_link_test_code" >conftest.$ac_ext
8091eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8092_lt_linker_boilerplate=`cat conftest.err`
b214d478 8093$RM -r conftest*
d7040cdb
SE
8094
8095
ce2cded5
L
8096## CAVEAT EMPTOR:
8097## There is no encapsulation within the following macros, do not change
8098## the running order or otherwise move them around unless you know exactly
8099## what you are doing...
8100if test -n "$compiler"; then
d7040cdb 8101
ce2cded5 8102lt_prog_compiler_no_builtin_flag=
d7040cdb 8103
ce2cded5 8104if test "$GCC" = yes; then
3725885a
RW
8105 case $cc_basename in
8106 nvcc*)
8107 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8108 *)
8109 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8110 esac
d7040cdb 8111
81ecdfbb
RW
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8113$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8114if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8115 $as_echo_n "(cached) " >&6
ce2cded5
L
8116else
8117 lt_cv_prog_compiler_rtti_exceptions=no
8118 ac_outfile=conftest.$ac_objext
8119 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8120 lt_compiler_flag="-fno-rtti -fno-exceptions"
8121 # Insert the option either (1) after the last *FLAGS variable, or
8122 # (2) before a word containing "conftest.", or (3) at the end.
8123 # Note that $ac_compile itself does not contain backslashes and begins
8124 # with a dollar sign (not a hyphen), so the echo should work correctly.
8125 # The option is referenced via a variable to avoid confusing sed.
8126 lt_compile=`echo "$ac_compile" | $SED \
8127 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8129 -e 's:$: $lt_compiler_flag:'`
3725885a 8130 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8131 (eval "$lt_compile" 2>conftest.err)
8132 ac_status=$?
8133 cat conftest.err >&5
3725885a 8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8135 if (exit $ac_status) && test -s "$ac_outfile"; then
8136 # The compiler can only warn and ignore the option if not recognized
8137 # So say no if there are warnings other than the usual output.
3725885a 8138 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8139 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8140 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8141 lt_cv_prog_compiler_rtti_exceptions=yes
8142 fi
8143 fi
8144 $RM conftest*
d7040cdb 8145
ce2cded5 8146fi
81ecdfbb
RW
8147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8148$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 8149
ce2cded5
L
8150if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8151 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8152else
8153 :
8154fi
d7040cdb 8155
ce2cded5 8156fi
d7040cdb
SE
8157
8158
8159
8160
8161
8162
ce2cded5
L
8163 lt_prog_compiler_wl=
8164lt_prog_compiler_pic=
8165lt_prog_compiler_static=
d7040cdb 8166
81ecdfbb
RW
8167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8168$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 8169
ce2cded5
L
8170 if test "$GCC" = yes; then
8171 lt_prog_compiler_wl='-Wl,'
8172 lt_prog_compiler_static='-static'
d7040cdb 8173
ce2cded5
L
8174 case $host_os in
8175 aix*)
8176 # All AIX code is PIC.
8177 if test "$host_cpu" = ia64; then
8178 # AIX 5 now supports IA64 processor
8179 lt_prog_compiler_static='-Bstatic'
8180 fi
8181 ;;
d7040cdb 8182
ce2cded5 8183 amigaos*)
b214d478
SE
8184 case $host_cpu in
8185 powerpc)
8186 # see comment about AmigaOS4 .so support
8187 lt_prog_compiler_pic='-fPIC'
8188 ;;
8189 m68k)
8190 # FIXME: we need at least 68020 code to build shared libraries, but
8191 # adding the `-m68020' flag to GCC prevents building anything better,
8192 # like `-m68040'.
8193 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8194 ;;
8195 esac
ce2cded5 8196 ;;
d7040cdb 8197
ce2cded5
L
8198 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8199 # PIC is the default for these OSes.
8200 ;;
d7040cdb 8201
b214d478 8202 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8203 # This hack is so that the source file can tell whether it is being
8204 # built for inclusion in a dll (and should export symbols for example).
8205 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8206 # (--disable-auto-import) libraries
8207 lt_prog_compiler_pic='-DDLL_EXPORT'
8208 ;;
d7040cdb 8209
ce2cded5
L
8210 darwin* | rhapsody*)
8211 # PIC is the default on this platform
8212 # Common symbols not allowed in MH_DYLIB files
8213 lt_prog_compiler_pic='-fno-common'
8214 ;;
d7040cdb 8215
3725885a
RW
8216 haiku*)
8217 # PIC is the default for Haiku.
8218 # The "-static" flag exists, but is broken.
8219 lt_prog_compiler_static=
8220 ;;
8221
ce2cded5 8222 hpux*)
b214d478
SE
8223 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8224 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8225 # sets the default TLS model and affects inlining.
ce2cded5 8226 case $host_cpu in
b214d478 8227 hppa*64*)
ce2cded5
L
8228 # +Z the default
8229 ;;
8230 *)
8231 lt_prog_compiler_pic='-fPIC'
8232 ;;
8233 esac
8234 ;;
d7040cdb 8235
ce2cded5
L
8236 interix[3-9]*)
8237 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8238 # Instead, we relocate shared libraries at runtime.
8239 ;;
d7040cdb 8240
ce2cded5
L
8241 msdosdjgpp*)
8242 # Just because we use GCC doesn't mean we suddenly get shared libraries
8243 # on systems that don't support them.
8244 lt_prog_compiler_can_build_shared=no
8245 enable_shared=no
8246 ;;
d7040cdb 8247
ce2cded5
L
8248 *nto* | *qnx*)
8249 # QNX uses GNU C++, but need to define -shared option too, otherwise
8250 # it will coredump.
8251 lt_prog_compiler_pic='-fPIC -shared'
8252 ;;
d7040cdb 8253
ce2cded5
L
8254 sysv4*MP*)
8255 if test -d /usr/nec; then
8256 lt_prog_compiler_pic=-Kconform_pic
8257 fi
8258 ;;
d7040cdb 8259
ce2cded5
L
8260 *)
8261 lt_prog_compiler_pic='-fPIC'
8262 ;;
8263 esac
3725885a
RW
8264
8265 case $cc_basename in
8266 nvcc*) # Cuda Compiler Driver 2.2
8267 lt_prog_compiler_wl='-Xlinker '
8268 lt_prog_compiler_pic='-Xcompiler -fPIC'
8269 ;;
8270 esac
ce2cded5
L
8271 else
8272 # PORTME Check for flag to pass linker flags through the system compiler.
8273 case $host_os in
8274 aix*)
8275 lt_prog_compiler_wl='-Wl,'
8276 if test "$host_cpu" = ia64; then
8277 # AIX 5 now supports IA64 processor
8278 lt_prog_compiler_static='-Bstatic'
8279 else
8280 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8281 fi
8282 ;;
d7040cdb 8283
b214d478 8284 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8285 # This hack is so that the source file can tell whether it is being
8286 # built for inclusion in a dll (and should export symbols for example).
8287 lt_prog_compiler_pic='-DDLL_EXPORT'
8288 ;;
d7040cdb 8289
ce2cded5
L
8290 hpux9* | hpux10* | hpux11*)
8291 lt_prog_compiler_wl='-Wl,'
8292 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8293 # not for PA HP-UX.
8294 case $host_cpu in
8295 hppa*64*|ia64*)
8296 # +Z the default
8297 ;;
8298 *)
8299 lt_prog_compiler_pic='+Z'
8300 ;;
8301 esac
8302 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8303 lt_prog_compiler_static='${wl}-a ${wl}archive'
8304 ;;
d7040cdb 8305
ce2cded5
L
8306 irix5* | irix6* | nonstopux*)
8307 lt_prog_compiler_wl='-Wl,'
8308 # PIC (with -KPIC) is the default.
8309 lt_prog_compiler_static='-non_shared'
8310 ;;
d7040cdb 8311
58e24671 8312 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8313 case $cc_basename in
b214d478
SE
8314 # old Intel for x86_64 which still supported -KPIC.
8315 ecc*)
ce2cded5
L
8316 lt_prog_compiler_wl='-Wl,'
8317 lt_prog_compiler_pic='-KPIC'
8318 lt_prog_compiler_static='-static'
8319 ;;
b214d478
SE
8320 # icc used to be incompatible with GCC.
8321 # ICC 10 doesn't accept -KPIC any more.
8322 icc* | ifort*)
8323 lt_prog_compiler_wl='-Wl,'
8324 lt_prog_compiler_pic='-fPIC'
8325 lt_prog_compiler_static='-static'
8326 ;;
8327 # Lahey Fortran 8.1.
8328 lf95*)
8329 lt_prog_compiler_wl='-Wl,'
8330 lt_prog_compiler_pic='--shared'
8331 lt_prog_compiler_static='--static'
8332 ;;
3725885a 8333 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
8334 # Portland Group compilers (*not* the Pentium gcc compiler,
8335 # which looks to be a dead project)
8336 lt_prog_compiler_wl='-Wl,'
8337 lt_prog_compiler_pic='-fpic'
8338 lt_prog_compiler_static='-Bstatic'
8339 ;;
8340 ccc*)
8341 lt_prog_compiler_wl='-Wl,'
8342 # All Alpha code is PIC.
8343 lt_prog_compiler_static='-non_shared'
8344 ;;
3725885a
RW
8345 xl* | bgxl* | bgf* | mpixl*)
8346 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
b214d478
SE
8347 lt_prog_compiler_wl='-Wl,'
8348 lt_prog_compiler_pic='-qpic'
8349 lt_prog_compiler_static='-qstaticlink'
8350 ;;
ce2cded5
L
8351 *)
8352 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8353 *Sun\ F* | *Sun*Fortran*)
8354 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
8355 lt_prog_compiler_pic='-KPIC'
8356 lt_prog_compiler_static='-Bstatic'
3725885a 8357 lt_prog_compiler_wl=''
ce2cded5 8358 ;;
3725885a
RW
8359 *Sun\ C*)
8360 # Sun C 5.9
ce2cded5
L
8361 lt_prog_compiler_pic='-KPIC'
8362 lt_prog_compiler_static='-Bstatic'
3725885a 8363 lt_prog_compiler_wl='-Wl,'
ce2cded5
L
8364 ;;
8365 esac
8366 ;;
8367 esac
8368 ;;
d7040cdb 8369
ce2cded5
L
8370 newsos6)
8371 lt_prog_compiler_pic='-KPIC'
8372 lt_prog_compiler_static='-Bstatic'
8373 ;;
d7040cdb 8374
ce2cded5
L
8375 *nto* | *qnx*)
8376 # QNX uses GNU C++, but need to define -shared option too, otherwise
8377 # it will coredump.
8378 lt_prog_compiler_pic='-fPIC -shared'
8379 ;;
d7040cdb 8380
ce2cded5
L
8381 osf3* | osf4* | osf5*)
8382 lt_prog_compiler_wl='-Wl,'
8383 # All OSF/1 code is PIC.
8384 lt_prog_compiler_static='-non_shared'
8385 ;;
d7040cdb 8386
ce2cded5
L
8387 rdos*)
8388 lt_prog_compiler_static='-non_shared'
8389 ;;
d7040cdb 8390
ce2cded5
L
8391 solaris*)
8392 lt_prog_compiler_pic='-KPIC'
8393 lt_prog_compiler_static='-Bstatic'
8394 case $cc_basename in
8395 f77* | f90* | f95*)
8396 lt_prog_compiler_wl='-Qoption ld ';;
8397 *)
8398 lt_prog_compiler_wl='-Wl,';;
8399 esac
8400 ;;
d7040cdb 8401
ce2cded5
L
8402 sunos4*)
8403 lt_prog_compiler_wl='-Qoption ld '
8404 lt_prog_compiler_pic='-PIC'
8405 lt_prog_compiler_static='-Bstatic'
8406 ;;
d7040cdb 8407
ce2cded5
L
8408 sysv4 | sysv4.2uw2* | sysv4.3*)
8409 lt_prog_compiler_wl='-Wl,'
8410 lt_prog_compiler_pic='-KPIC'
8411 lt_prog_compiler_static='-Bstatic'
8412 ;;
d7040cdb 8413
ce2cded5
L
8414 sysv4*MP*)
8415 if test -d /usr/nec ;then
8416 lt_prog_compiler_pic='-Kconform_pic'
8417 lt_prog_compiler_static='-Bstatic'
8418 fi
8419 ;;
d7040cdb 8420
ce2cded5
L
8421 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8422 lt_prog_compiler_wl='-Wl,'
8423 lt_prog_compiler_pic='-KPIC'
8424 lt_prog_compiler_static='-Bstatic'
8425 ;;
d7040cdb 8426
ce2cded5
L
8427 unicos*)
8428 lt_prog_compiler_wl='-Wl,'
8429 lt_prog_compiler_can_build_shared=no
8430 ;;
d7040cdb 8431
ce2cded5
L
8432 uts4*)
8433 lt_prog_compiler_pic='-pic'
8434 lt_prog_compiler_static='-Bstatic'
8435 ;;
d7040cdb 8436
ce2cded5
L
8437 *)
8438 lt_prog_compiler_can_build_shared=no
8439 ;;
8440 esac
8441 fi
d7040cdb 8442
ce2cded5
L
8443case $host_os in
8444 # For platforms which do not support PIC, -DPIC is meaningless:
8445 *djgpp*)
8446 lt_prog_compiler_pic=
8447 ;;
8448 *)
8449 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8450 ;;
8451esac
81ecdfbb
RW
8452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8453$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8454
8455
8456
8457
8458
8459
ce2cded5
L
8460#
8461# Check to make sure the PIC flag actually works.
8462#
8463if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8465$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8466if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8467 $as_echo_n "(cached) " >&6
ce2cded5 8468else
b214d478 8469 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
8470 ac_outfile=conftest.$ac_objext
8471 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8472 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8473 # Insert the option either (1) after the last *FLAGS variable, or
8474 # (2) before a word containing "conftest.", or (3) at the end.
8475 # Note that $ac_compile itself does not contain backslashes and begins
8476 # with a dollar sign (not a hyphen), so the echo should work correctly.
8477 # The option is referenced via a variable to avoid confusing sed.
8478 lt_compile=`echo "$ac_compile" | $SED \
8479 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8480 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8481 -e 's:$: $lt_compiler_flag:'`
3725885a 8482 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8483 (eval "$lt_compile" 2>conftest.err)
8484 ac_status=$?
8485 cat conftest.err >&5
3725885a 8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8487 if (exit $ac_status) && test -s "$ac_outfile"; then
8488 # The compiler can only warn and ignore the option if not recognized
8489 # So say no if there are warnings other than the usual output.
3725885a 8490 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8491 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8492 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 8493 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
8494 fi
8495 fi
8496 $RM conftest*
d7040cdb 8497
ce2cded5 8498fi
81ecdfbb
RW
8499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8500$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8501
b214d478 8502if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
8503 case $lt_prog_compiler_pic in
8504 "" | " "*) ;;
8505 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8506 esac
8507else
8508 lt_prog_compiler_pic=
8509 lt_prog_compiler_can_build_shared=no
8510fi
d7040cdb 8511
ce2cded5 8512fi
d7040cdb
SE
8513
8514
8515
8516
8517
8518
ce2cded5
L
8519#
8520# Check to make sure the static flag actually works.
8521#
8522wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8524$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8525if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8526 $as_echo_n "(cached) " >&6
ce2cded5 8527else
b214d478 8528 lt_cv_prog_compiler_static_works=no
ce2cded5
L
8529 save_LDFLAGS="$LDFLAGS"
8530 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8531 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8532 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8533 # The linker can only warn and ignore the option if not recognized
8534 # So say no if there are warnings
8535 if test -s conftest.err; then
8536 # Append any errors to the config.log.
8537 cat conftest.err 1>&5
3725885a 8538 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
8539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8540 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 8541 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8542 fi
8543 else
b214d478 8544 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8545 fi
8546 fi
b214d478 8547 $RM -r conftest*
ce2cded5 8548 LDFLAGS="$save_LDFLAGS"
d7040cdb 8549
ce2cded5 8550fi
81ecdfbb
RW
8551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8552$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8553
b214d478 8554if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
8555 :
8556else
8557 lt_prog_compiler_static=
8558fi
d7040cdb
SE
8559
8560
8561
8562
8563
8564
8565
81ecdfbb
RW
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8567$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8568if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8569 $as_echo_n "(cached) " >&6
ce2cded5
L
8570else
8571 lt_cv_prog_compiler_c_o=no
8572 $RM -r conftest 2>/dev/null
8573 mkdir conftest
8574 cd conftest
8575 mkdir out
8576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8577
ce2cded5
L
8578 lt_compiler_flag="-o out/conftest2.$ac_objext"
8579 # Insert the option either (1) after the last *FLAGS variable, or
8580 # (2) before a word containing "conftest.", or (3) at the end.
8581 # Note that $ac_compile itself does not contain backslashes and begins
8582 # with a dollar sign (not a hyphen), so the echo should work correctly.
8583 lt_compile=`echo "$ac_compile" | $SED \
8584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8586 -e 's:$: $lt_compiler_flag:'`
3725885a 8587 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8588 (eval "$lt_compile" 2>out/conftest.err)
8589 ac_status=$?
8590 cat out/conftest.err >&5
3725885a 8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8592 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8593 then
8594 # The compiler can only warn and ignore the option if not recognized
8595 # So say no if there are warnings
3725885a 8596 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
8597 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8598 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8599 lt_cv_prog_compiler_c_o=yes
8600 fi
8601 fi
8602 chmod u+w . 2>&5
8603 $RM conftest*
8604 # SGI C++ compiler will create directory out/ii_files/ for
8605 # template instantiation
8606 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8607 $RM out/* && rmdir out
8608 cd ..
8609 $RM -r conftest
8610 $RM conftest*
8611
8612fi
81ecdfbb
RW
8613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8614$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
8615
8616
8617
8618
8619
8620
81ecdfbb
RW
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8622$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8623if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8624 $as_echo_n "(cached) " >&6
d7040cdb 8625else
ce2cded5
L
8626 lt_cv_prog_compiler_c_o=no
8627 $RM -r conftest 2>/dev/null
8628 mkdir conftest
8629 cd conftest
8630 mkdir out
8631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8632
8633 lt_compiler_flag="-o out/conftest2.$ac_objext"
8634 # Insert the option either (1) after the last *FLAGS variable, or
8635 # (2) before a word containing "conftest.", or (3) at the end.
8636 # Note that $ac_compile itself does not contain backslashes and begins
8637 # with a dollar sign (not a hyphen), so the echo should work correctly.
8638 lt_compile=`echo "$ac_compile" | $SED \
8639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8641 -e 's:$: $lt_compiler_flag:'`
3725885a 8642 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8643 (eval "$lt_compile" 2>out/conftest.err)
8644 ac_status=$?
8645 cat out/conftest.err >&5
3725885a 8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8647 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8648 then
8649 # The compiler can only warn and ignore the option if not recognized
8650 # So say no if there are warnings
3725885a 8651 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
8652 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8653 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8654 lt_cv_prog_compiler_c_o=yes
8655 fi
8656 fi
8657 chmod u+w . 2>&5
8658 $RM conftest*
8659 # SGI C++ compiler will create directory out/ii_files/ for
8660 # template instantiation
8661 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8662 $RM out/* && rmdir out
8663 cd ..
8664 $RM -r conftest
8665 $RM conftest*
8666
d7040cdb 8667fi
81ecdfbb
RW
8668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8669$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb 8670
d7040cdb 8671
d7040cdb 8672
d7040cdb 8673
ce2cded5
L
8674hard_links="nottested"
8675if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8676 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8678$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
8679 hard_links=yes
8680 $RM conftest*
8681 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8682 touch conftest.a
8683 ln conftest.a conftest.b 2>&5 || hard_links=no
8684 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8686$as_echo "$hard_links" >&6; }
ce2cded5 8687 if test "$hard_links" = no; then
81ecdfbb
RW
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8689$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 8690 need_locks=warn
d7040cdb 8691 fi
ce2cded5
L
8692else
8693 need_locks=no
8694fi
d7040cdb 8695
d7040cdb 8696
d7040cdb 8697
d7040cdb 8698
d7040cdb 8699
d7040cdb 8700
81ecdfbb
RW
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8702$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 8703
ce2cded5
L
8704 runpath_var=
8705 allow_undefined_flag=
8706 always_export_symbols=no
8707 archive_cmds=
8708 archive_expsym_cmds=
8709 compiler_needs_object=no
8710 enable_shared_with_static_runtimes=no
8711 export_dynamic_flag_spec=
8712 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8713 hardcode_automatic=no
8714 hardcode_direct=no
8715 hardcode_direct_absolute=no
8716 hardcode_libdir_flag_spec=
8717 hardcode_libdir_flag_spec_ld=
8718 hardcode_libdir_separator=
8719 hardcode_minus_L=no
8720 hardcode_shlibpath_var=unsupported
8721 inherit_rpath=no
8722 link_all_deplibs=unknown
8723 module_cmds=
8724 module_expsym_cmds=
8725 old_archive_from_new_cmds=
8726 old_archive_from_expsyms_cmds=
8727 thread_safe_flag_spec=
8728 whole_archive_flag_spec=
8729 # include_expsyms should be a list of space-separated symbols to be *always*
8730 # included in the symbol list
8731 include_expsyms=
8732 # exclude_expsyms can be an extended regexp of symbols to exclude
8733 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8734 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8735 # as well as any symbol that contains `d'.
b214d478 8736 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
8737 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8738 # platforms (ab)use it in PIC code, but their linkers get confused if
8739 # the symbol is explicitly referenced. Since portable code cannot
8740 # rely on this symbol name, it's probably fine to never include it in
8741 # preloaded symbol tables.
b214d478 8742 # Exclude shared library initialization/finalization symbols.
ce2cded5 8743 extract_expsyms_cmds=
d7040cdb 8744
d7040cdb 8745 case $host_os in
b214d478 8746 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8747 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8748 # When not using gcc, we currently assume that we are using
8749 # Microsoft Visual C++.
8750 if test "$GCC" != yes; then
8751 with_gnu_ld=no
8752 fi
d7040cdb 8753 ;;
ce2cded5
L
8754 interix*)
8755 # we just hope/assume this is gcc and not c89 (= MSVC++)
8756 with_gnu_ld=yes
d7040cdb 8757 ;;
ce2cded5
L
8758 openbsd*)
8759 with_gnu_ld=no
d7040cdb
SE
8760 ;;
8761 esac
d7040cdb 8762
ce2cded5 8763 ld_shlibs=yes
3725885a
RW
8764
8765 # On some targets, GNU ld is compatible enough with the native linker
8766 # that we're better off using the native interface for both.
8767 lt_use_gnu_ld_interface=no
ce2cded5 8768 if test "$with_gnu_ld" = yes; then
3725885a
RW
8769 case $host_os in
8770 aix*)
8771 # The AIX port of GNU ld has always aspired to compatibility
8772 # with the native linker. However, as the warning in the GNU ld
8773 # block says, versions before 2.19.5* couldn't really create working
8774 # shared libraries, regardless of the interface used.
8775 case `$LD -v 2>&1` in
8776 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8777 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8778 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8779 *)
8780 lt_use_gnu_ld_interface=yes
8781 ;;
8782 esac
8783 ;;
8784 *)
8785 lt_use_gnu_ld_interface=yes
8786 ;;
8787 esac
8788 fi
8789
8790 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
8791 # If archive_cmds runs LD, not CC, wlarc should be empty
8792 wlarc='${wl}'
d7040cdb 8793
ce2cded5
L
8794 # Set some defaults for GNU ld with shared library support. These
8795 # are reset later if shared libraries are not supported. Putting them
8796 # here allows them to be overridden if necessary.
8797 runpath_var=LD_RUN_PATH
8798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8799 export_dynamic_flag_spec='${wl}--export-dynamic'
8800 # ancient GNU ld didn't support --whole-archive et. al.
8801 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8802 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
d7040cdb 8803 else
ce2cded5 8804 whole_archive_flag_spec=
d7040cdb 8805 fi
ce2cded5
L
8806 supports_anon_versioning=no
8807 case `$LD -v 2>&1` in
3725885a 8808 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
8809 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8810 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8811 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8812 *\ 2.11.*) ;; # other 2.11 versions
8813 *) supports_anon_versioning=yes ;;
8814 esac
d7040cdb 8815
ce2cded5
L
8816 # See if GNU ld supports shared libraries.
8817 case $host_os in
50e7d84b 8818 aix[3-9]*)
ce2cded5
L
8819 # On AIX/PPC, the GNU linker is very broken
8820 if test "$host_cpu" != ia64; then
8821 ld_shlibs=no
8822 cat <<_LT_EOF 1>&2
d7040cdb 8823
3725885a 8824*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
8825*** to be unable to reliably create shared libraries on AIX.
8826*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
8827*** really care for shared libraries, you may want to install binutils
8828*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8829*** You will then need to restart the configuration process.
d7040cdb 8830
ce2cded5
L
8831_LT_EOF
8832 fi
8833 ;;
d7040cdb 8834
ce2cded5 8835 amigaos*)
b214d478
SE
8836 case $host_cpu in
8837 powerpc)
8838 # see comment about AmigaOS4 .so support
8839 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8840 archive_expsym_cmds=''
8841 ;;
8842 m68k)
8843 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)'
8844 hardcode_libdir_flag_spec='-L$libdir'
8845 hardcode_minus_L=yes
8846 ;;
8847 esac
ce2cded5 8848 ;;
d7040cdb 8849
ce2cded5
L
8850 beos*)
8851 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8852 allow_undefined_flag=unsupported
8853 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8854 # support --undefined. This deserves some investigation. FIXME
8855 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8856 else
8857 ld_shlibs=no
8858 fi
8859 ;;
d7040cdb 8860
b214d478 8861 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8862 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8863 # as there is no search path for DLLs.
8864 hardcode_libdir_flag_spec='-L$libdir'
3725885a 8865 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
8866 allow_undefined_flag=unsupported
8867 always_export_symbols=no
8868 enable_shared_with_static_runtimes=yes
8869 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 8870
ce2cded5
L
8871 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8873 # If the export-symbols file already is a .def file (1st line
8874 # is EXPORTS), use it as is; otherwise, prepend...
8875 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8876 cp $export_symbols $output_objdir/$soname.def;
8877 else
8878 echo EXPORTS > $output_objdir/$soname.def;
8879 cat $export_symbols >> $output_objdir/$soname.def;
8880 fi~
8881 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8882 else
8883 ld_shlibs=no
8884 fi
8885 ;;
d7040cdb 8886
3725885a
RW
8887 haiku*)
8888 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8889 link_all_deplibs=yes
8890 ;;
8891
ce2cded5
L
8892 interix[3-9]*)
8893 hardcode_direct=no
8894 hardcode_shlibpath_var=no
8895 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8896 export_dynamic_flag_spec='${wl}-E'
8897 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8898 # Instead, shared libraries are loaded at an image base (0x10000000 by
8899 # default) and relocated if they conflict, which is a slow very memory
8900 # consuming and fragmenting process. To avoid this, we pick a random,
8901 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8902 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8903 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8904 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'
8905 ;;
d7040cdb 8906
58e24671 8907 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
8908 tmp_diet=no
8909 if test "$host_os" = linux-dietlibc; then
8910 case $cc_basename in
8911 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8912 esac
8913 fi
8914 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8915 && test "$tmp_diet" = no
8916 then
8917 tmp_addflag=
b214d478 8918 tmp_sharedflag='-shared'
ce2cded5
L
8919 case $cc_basename,$host_cpu in
8920 pgcc*) # Portland Group C compiler
3725885a 8921 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'
ce2cded5
L
8922 tmp_addflag=' $pic_flag'
8923 ;;
3725885a
RW
8924 pgf77* | pgf90* | pgf95* | pgfortran*)
8925 # Portland Group f77 and f90 compilers
8926 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'
ce2cded5
L
8927 tmp_addflag=' $pic_flag -Mnomain' ;;
8928 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8929 tmp_addflag=' -i_dynamic' ;;
8930 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8931 tmp_addflag=' -i_dynamic -nofor_main' ;;
8932 ifc* | ifort*) # Intel Fortran compiler
8933 tmp_addflag=' -nofor_main' ;;
b214d478
SE
8934 lf95*) # Lahey Fortran 8.1
8935 whole_archive_flag_spec=
8936 tmp_sharedflag='--shared' ;;
3725885a 8937 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
b214d478
SE
8938 tmp_sharedflag='-qmkshrobj'
8939 tmp_addflag= ;;
3725885a
RW
8940 nvcc*) # Cuda Compiler Driver 2.2
8941 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'
8942 compiler_needs_object=yes
8943 ;;
ce2cded5
L
8944 esac
8945 case `$CC -V 2>&1 | sed 5q` in
8946 *Sun\ C*) # Sun C 5.9
3725885a 8947 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'
ce2cded5
L
8948 compiler_needs_object=yes
8949 tmp_sharedflag='-G' ;;
8950 *Sun\ F*) # Sun Fortran 8.3
8951 tmp_sharedflag='-G' ;;
ce2cded5
L
8952 esac
8953 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 8954
ce2cded5
L
8955 if test "x$supports_anon_versioning" = xyes; then
8956 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8957 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8958 echo "local: *; };" >> $output_objdir/$libname.ver~
8959 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8960 fi
b214d478
SE
8961
8962 case $cc_basename in
3725885a 8963 xlf* | bgf* | bgxlf* | mpixlf*)
b214d478
SE
8964 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8965 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8966 hardcode_libdir_flag_spec=
8967 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8968 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8969 if test "x$supports_anon_versioning" = xyes; then
8970 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8971 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8972 echo "local: *; };" >> $output_objdir/$libname.ver~
8973 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8974 fi
8975 ;;
8976 esac
ce2cded5
L
8977 else
8978 ld_shlibs=no
8979 fi
8980 ;;
d7040cdb 8981
ce2cded5
L
8982 netbsd*)
8983 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8984 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8985 wlarc=
8986 else
8987 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8988 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8989 fi
8990 ;;
d7040cdb 8991
ce2cded5
L
8992 solaris*)
8993 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8994 ld_shlibs=no
8995 cat <<_LT_EOF 1>&2
d7040cdb 8996
ce2cded5
L
8997*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8998*** create shared libraries on Solaris systems. Therefore, libtool
8999*** is disabling shared libraries support. We urge you to upgrade GNU
9000*** binutils to release 2.9.1 or newer. Another option is to modify
9001*** your PATH or compiler configuration so that the native linker is
9002*** used, and then restart.
d7040cdb 9003
ce2cded5
L
9004_LT_EOF
9005 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9006 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9007 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9008 else
9009 ld_shlibs=no
9010 fi
9011 ;;
d7040cdb 9012
ce2cded5
L
9013 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9014 case `$LD -v 2>&1` in
9015 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9016 ld_shlibs=no
9017 cat <<_LT_EOF 1>&2
d7040cdb 9018
ce2cded5
L
9019*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9020*** reliably create shared libraries on SCO systems. Therefore, libtool
9021*** is disabling shared libraries support. We urge you to upgrade GNU
9022*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9023*** your PATH or compiler configuration so that the native linker is
9024*** used, and then restart.
d7040cdb 9025
ce2cded5
L
9026_LT_EOF
9027 ;;
9028 *)
9029 # For security reasons, it is highly recommended that you always
9030 # use absolute paths for naming shared libraries, and exclude the
9031 # DT_RUNPATH tag from executables and libraries. But doing so
9032 # requires that you compile everything twice, which is a pain.
9033 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9034 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9036 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9037 else
9038 ld_shlibs=no
9039 fi
9040 ;;
9041 esac
d7040cdb 9042 ;;
ce2cded5
L
9043
9044 sunos4*)
9045 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9046 wlarc=
9047 hardcode_direct=yes
9048 hardcode_shlibpath_var=no
d7040cdb 9049 ;;
d7040cdb 9050
ce2cded5
L
9051 *)
9052 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9054 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9055 else
9056 ld_shlibs=no
9057 fi
9058 ;;
9059 esac
d7040cdb 9060
ce2cded5
L
9061 if test "$ld_shlibs" = no; then
9062 runpath_var=
9063 hardcode_libdir_flag_spec=
9064 export_dynamic_flag_spec=
9065 whole_archive_flag_spec=
9066 fi
d7040cdb 9067 else
ce2cded5 9068 # PORTME fill in a description of your system's linker (not GNU ld)
d7040cdb 9069 case $host_os in
ce2cded5
L
9070 aix3*)
9071 allow_undefined_flag=unsupported
9072 always_export_symbols=yes
9073 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'
9074 # Note: this linker hardcodes the directories in LIBPATH if there
9075 # are no directories specified by -L.
9076 hardcode_minus_L=yes
9077 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9078 # Neither direct hardcoding nor static linking is supported with a
9079 # broken collect2.
9080 hardcode_direct=unsupported
9081 fi
9082 ;;
d7040cdb 9083
50e7d84b 9084 aix[4-9]*)
ce2cded5
L
9085 if test "$host_cpu" = ia64; then
9086 # On IA64, the linker does run time linking by default, so we don't
9087 # have to do anything special.
9088 aix_use_runtimelinking=no
9089 exp_sym_flag='-Bexport'
9090 no_entry_flag=""
9091 else
9092 # If we're using GNU nm, then we don't want the "-C" option.
9093 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9094 # Also, AIX nm treats weak defined symbols like other global
9095 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 9096 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9097 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'
ce2cded5
L
9098 else
9099 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9100 fi
9101 aix_use_runtimelinking=no
d7040cdb 9102
ce2cded5
L
9103 # Test if we are trying to use run time linking or normal
9104 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9105 # need to do runtime linking.
50e7d84b 9106 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
9107 for ld_flag in $LDFLAGS; do
9108 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9109 aix_use_runtimelinking=yes
9110 break
9111 fi
9112 done
9113 ;;
9114 esac
d7040cdb 9115
ce2cded5
L
9116 exp_sym_flag='-bexport'
9117 no_entry_flag='-bnoentry'
9118 fi
d7040cdb 9119
ce2cded5
L
9120 # When large executables or shared objects are built, AIX ld can
9121 # have problems creating the table of contents. If linking a library
9122 # or program results in "error TOC overflow" add -mminimal-toc to
9123 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9124 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 9125
ce2cded5
L
9126 archive_cmds=''
9127 hardcode_direct=yes
9128 hardcode_direct_absolute=yes
9129 hardcode_libdir_separator=':'
9130 link_all_deplibs=yes
9131 file_list_spec='${wl}-f,'
d7040cdb 9132
ce2cded5
L
9133 if test "$GCC" = yes; then
9134 case $host_os in aix4.[012]|aix4.[012].*)
9135 # We only want to do this on AIX 4.2 and lower, the check
9136 # below for broken collect2 doesn't work under 4.3+
9137 collect2name=`${CC} -print-prog-name=collect2`
9138 if test -f "$collect2name" &&
9139 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9140 then
9141 # We have reworked collect2
9142 :
9143 else
9144 # We have old collect2
9145 hardcode_direct=unsupported
9146 # It fails to find uninstalled libraries when the uninstalled
9147 # path is not listed in the libpath. Setting hardcode_minus_L
9148 # to unsupported forces relinking
9149 hardcode_minus_L=yes
9150 hardcode_libdir_flag_spec='-L$libdir'
9151 hardcode_libdir_separator=
9152 fi
9153 ;;
9154 esac
9155 shared_flag='-shared'
9156 if test "$aix_use_runtimelinking" = yes; then
9157 shared_flag="$shared_flag "'${wl}-G'
9158 fi
9159 else
9160 # not using gcc
9161 if test "$host_cpu" = ia64; then
9162 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9163 # chokes on -Wl,-G. The following line is correct:
9164 shared_flag='-G'
9165 else
9166 if test "$aix_use_runtimelinking" = yes; then
9167 shared_flag='${wl}-G'
9168 else
9169 shared_flag='${wl}-bM:SRE'
9170 fi
9171 fi
9172 fi
d7040cdb 9173
b214d478 9174 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9175 # It seems that -bexpall does not export symbols beginning with
9176 # underscore (_), so it is better to generate a list of symbols to export.
9177 always_export_symbols=yes
9178 if test "$aix_use_runtimelinking" = yes; then
9179 # Warning - without using the other runtime loading flags (-brtl),
9180 # -berok will link without error, but may produce a broken library.
9181 allow_undefined_flag='-berok'
9182 # Determine the default libpath from the value encoded in an
9183 # empty executable.
81ecdfbb 9184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
9185/* end confdefs.h. */
9186
d7040cdb
SE
9187int
9188main ()
9189{
ce2cded5 9190
d7040cdb
SE
9191 ;
9192 return 0;
9193}
9194_ACEOF
81ecdfbb 9195if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9196
ce2cded5
L
9197lt_aix_libpath_sed='
9198 /Import File Strings/,/^$/ {
9199 /^0/ {
9200 s/^0 *\(.*\)$/\1/
9201 p
9202 }
9203 }'
9204aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9205# Check for a 64-bit object if we didn't find anything.
9206if test -z "$aix_libpath"; then
9207 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d7040cdb 9208fi
d7040cdb 9209fi
81ecdfbb
RW
9210rm -f core conftest.err conftest.$ac_objext \
9211 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
9212if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9213
9214 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9215 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"
ce2cded5
L
9216 else
9217 if test "$host_cpu" = ia64; then
9218 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9219 allow_undefined_flag="-z nodefs"
9220 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"
9221 else
9222 # Determine the default libpath from the value encoded in an
9223 # empty executable.
81ecdfbb 9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
9225/* end confdefs.h. */
9226
d7040cdb
SE
9227int
9228main ()
9229{
ce2cded5 9230
d7040cdb
SE
9231 ;
9232 return 0;
9233}
9234_ACEOF
81ecdfbb 9235if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
9236
9237lt_aix_libpath_sed='
9238 /Import File Strings/,/^$/ {
9239 /^0/ {
9240 s/^0 *\(.*\)$/\1/
9241 p
9242 }
9243 }'
9244aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9245# Check for a 64-bit object if we didn't find anything.
9246if test -z "$aix_libpath"; then
9247 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9248fi
d7040cdb 9249fi
81ecdfbb
RW
9250rm -f core conftest.err conftest.$ac_objext \
9251 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9252if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9253
ce2cded5
L
9254 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9255 # Warning - without using the other run time loading flags,
9256 # -berok will link without error, but may produce a broken library.
9257 no_undefined_flag=' ${wl}-bernotok'
9258 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9259 if test "$with_gnu_ld" = yes; then
9260 # We only use this code for GNU lds that support --whole-archive.
9261 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9262 else
9263 # Exported symbols can be pulled into shared objects from archives
9264 whole_archive_flag_spec='$convenience'
9265 fi
ce2cded5
L
9266 archive_cmds_need_lc=yes
9267 # This is similar to how AIX traditionally builds its shared libraries.
9268 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'
9269 fi
9270 fi
9271 ;;
d7040cdb 9272
ce2cded5 9273 amigaos*)
b214d478
SE
9274 case $host_cpu in
9275 powerpc)
9276 # see comment about AmigaOS4 .so support
9277 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9278 archive_expsym_cmds=''
9279 ;;
9280 m68k)
9281 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)'
9282 hardcode_libdir_flag_spec='-L$libdir'
9283 hardcode_minus_L=yes
9284 ;;
9285 esac
ce2cded5 9286 ;;
d7040cdb 9287
ce2cded5
L
9288 bsdi[45]*)
9289 export_dynamic_flag_spec=-rdynamic
9290 ;;
d7040cdb 9291
b214d478 9292 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9293 # When not using gcc, we currently assume that we are using
9294 # Microsoft Visual C++.
9295 # hardcode_libdir_flag_spec is actually meaningless, as there is
9296 # no search path for DLLs.
9297 hardcode_libdir_flag_spec=' '
9298 allow_undefined_flag=unsupported
9299 # Tell ltmain to make .lib files, not .a files.
9300 libext=lib
9301 # Tell ltmain to make .dll files, not .so files.
9302 shrext_cmds=".dll"
9303 # FIXME: Setting linknames here is a bad hack.
3725885a 9304 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
ce2cded5
L
9305 # The linker will automatically build a .lib file if we build a DLL.
9306 old_archive_from_new_cmds='true'
9307 # FIXME: Should let the user specify the lib program.
9308 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9309 fix_srcfile_path='`cygpath -w "$srcfile"`'
9310 enable_shared_with_static_runtimes=yes
9311 ;;
d7040cdb 9312
ce2cded5 9313 darwin* | rhapsody*)
ce2cded5 9314
b214d478
SE
9315
9316 archive_cmds_need_lc=no
9317 hardcode_direct=no
9318 hardcode_automatic=yes
9319 hardcode_shlibpath_var=unsupported
3725885a
RW
9320 if test "$lt_cv_ld_force_load" = "yes"; then
9321 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\"`'
9322 else
9323 whole_archive_flag_spec=''
9324 fi
b214d478
SE
9325 link_all_deplibs=yes
9326 allow_undefined_flag="$_lt_dar_allow_undefined"
9327 case $cc_basename in
9328 ifort*) _lt_dar_can_shared=yes ;;
9329 *) _lt_dar_can_shared=$GCC ;;
9330 esac
9331 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9332 output_verbose_link_cmd=func_echo_all
b214d478
SE
9333 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9334 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9335 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}"
9336 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}"
9337
9338 else
9339 ld_shlibs=no
9340 fi
9341
ce2cded5
L
9342 ;;
9343
9344 dgux*)
9345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9346 hardcode_libdir_flag_spec='-L$libdir'
9347 hardcode_shlibpath_var=no
9348 ;;
9349
ce2cded5
L
9350 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9351 # support. Future versions do this automatically, but an explicit c++rt0.o
9352 # does not break anything, and helps significantly (at the cost of a little
9353 # extra space).
9354 freebsd2.2*)
9355 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9356 hardcode_libdir_flag_spec='-R$libdir'
9357 hardcode_direct=yes
9358 hardcode_shlibpath_var=no
9359 ;;
9360
9361 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9362 freebsd2.*)
ce2cded5
L
9363 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9364 hardcode_direct=yes
9365 hardcode_minus_L=yes
9366 hardcode_shlibpath_var=no
9367 ;;
9368
9369 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9370 freebsd* | dragonfly*)
9371 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9372 hardcode_libdir_flag_spec='-R$libdir'
9373 hardcode_direct=yes
9374 hardcode_shlibpath_var=no
9375 ;;
9376
9377 hpux9*)
9378 if test "$GCC" = yes; then
9379 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'
9380 else
9381 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'
9382 fi
9383 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9384 hardcode_libdir_separator=:
9385 hardcode_direct=yes
9386
9387 # hardcode_minus_L: Not really in the search PATH,
9388 # but as the default location of the library.
9389 hardcode_minus_L=yes
9390 export_dynamic_flag_spec='${wl}-E'
9391 ;;
9392
9393 hpux10*)
3725885a 9394 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9395 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9396 else
9397 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9398 fi
9399 if test "$with_gnu_ld" = no; then
9400 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9401 hardcode_libdir_flag_spec_ld='+b $libdir'
9402 hardcode_libdir_separator=:
9403 hardcode_direct=yes
9404 hardcode_direct_absolute=yes
9405 export_dynamic_flag_spec='${wl}-E'
9406 # hardcode_minus_L: Not really in the search PATH,
9407 # but as the default location of the library.
9408 hardcode_minus_L=yes
9409 fi
9410 ;;
9411
9412 hpux11*)
3725885a 9413 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9414 case $host_cpu in
9415 hppa*64*)
9416 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9417 ;;
9418 ia64*)
b214d478 9419 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9420 ;;
9421 *)
9422 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9423 ;;
9424 esac
9425 else
9426 case $host_cpu in
9427 hppa*64*)
9428 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9429 ;;
9430 ia64*)
9431 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9432 ;;
9433 *)
3725885a
RW
9434
9435 # Older versions of the 11.00 compiler do not understand -b yet
9436 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9438$as_echo_n "checking if $CC understands -b... " >&6; }
9439if test "${lt_cv_prog_compiler__b+set}" = set; then :
9440 $as_echo_n "(cached) " >&6
9441else
9442 lt_cv_prog_compiler__b=no
9443 save_LDFLAGS="$LDFLAGS"
9444 LDFLAGS="$LDFLAGS -b"
9445 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9446 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9447 # The linker can only warn and ignore the option if not recognized
9448 # So say no if there are warnings
9449 if test -s conftest.err; then
9450 # Append any errors to the config.log.
9451 cat conftest.err 1>&5
9452 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9453 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9454 if diff conftest.exp conftest.er2 >/dev/null; then
9455 lt_cv_prog_compiler__b=yes
9456 fi
9457 else
9458 lt_cv_prog_compiler__b=yes
9459 fi
9460 fi
9461 $RM -r conftest*
9462 LDFLAGS="$save_LDFLAGS"
9463
9464fi
9465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9466$as_echo "$lt_cv_prog_compiler__b" >&6; }
9467
9468if test x"$lt_cv_prog_compiler__b" = xyes; then
9469 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9470else
9471 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9472fi
9473
ce2cded5
L
9474 ;;
9475 esac
9476 fi
9477 if test "$with_gnu_ld" = no; then
9478 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9479 hardcode_libdir_separator=:
9480
9481 case $host_cpu in
9482 hppa*64*|ia64*)
9483 hardcode_direct=no
9484 hardcode_shlibpath_var=no
9485 ;;
9486 *)
9487 hardcode_direct=yes
9488 hardcode_direct_absolute=yes
9489 export_dynamic_flag_spec='${wl}-E'
9490
9491 # hardcode_minus_L: Not really in the search PATH,
9492 # but as the default location of the library.
9493 hardcode_minus_L=yes
9494 ;;
9495 esac
9496 fi
9497 ;;
9498
9499 irix5* | irix6* | nonstopux*)
9500 if test "$GCC" = yes; then
3725885a 9501 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'
ce2cded5
L
9502 # Try to use the -exported_symbol ld option, if it does not
9503 # work, assume that -exports_file does not work either and
9504 # implicitly export all symbols.
9505 save_LDFLAGS="$LDFLAGS"
9506 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
9507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9508/* end confdefs.h. */
ce2cded5 9509int foo(void) {}
d7040cdb 9510_ACEOF
81ecdfbb 9511if ac_fn_c_try_link "$LINENO"; then :
3725885a 9512 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'
ce2cded5 9513
d7040cdb 9514fi
81ecdfbb
RW
9515rm -f core conftest.err conftest.$ac_objext \
9516 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
9517 LDFLAGS="$save_LDFLAGS"
9518 else
3725885a
RW
9519 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'
9520 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'
ce2cded5
L
9521 fi
9522 archive_cmds_need_lc='no'
9523 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9524 hardcode_libdir_separator=:
9525 inherit_rpath=yes
9526 link_all_deplibs=yes
9527 ;;
9528
9529 netbsd*)
9530 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9531 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9532 else
9533 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9534 fi
9535 hardcode_libdir_flag_spec='-R$libdir'
9536 hardcode_direct=yes
9537 hardcode_shlibpath_var=no
9538 ;;
9539
9540 newsos6)
9541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9542 hardcode_direct=yes
9543 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9544 hardcode_libdir_separator=:
9545 hardcode_shlibpath_var=no
9546 ;;
9547
9548 *nto* | *qnx*)
9549 ;;
9550
9551 openbsd*)
b214d478
SE
9552 if test -f /usr/libexec/ld.so; then
9553 hardcode_direct=yes
9554 hardcode_shlibpath_var=no
9555 hardcode_direct_absolute=yes
9556 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 9557 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 9558 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 9559 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
9560 export_dynamic_flag_spec='${wl}-E'
9561 else
9562 case $host_os in
9563 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9564 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9565 hardcode_libdir_flag_spec='-R$libdir'
9566 ;;
9567 *)
9568 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9569 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9570 ;;
9571 esac
9572 fi
9573 else
9574 ld_shlibs=no
ce2cded5
L
9575 fi
9576 ;;
9577
9578 os2*)
9579 hardcode_libdir_flag_spec='-L$libdir'
9580 hardcode_minus_L=yes
9581 allow_undefined_flag=unsupported
3725885a 9582 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'
ce2cded5
L
9583 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9584 ;;
9585
9586 osf3*)
9587 if test "$GCC" = yes; then
9588 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9589 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'
ce2cded5
L
9590 else
9591 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9592 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'
ce2cded5
L
9593 fi
9594 archive_cmds_need_lc='no'
9595 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9596 hardcode_libdir_separator=:
9597 ;;
9598
9599 osf4* | osf5*) # as osf3* with the addition of -msym flag
9600 if test "$GCC" = yes; then
9601 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9602 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'
ce2cded5
L
9603 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9604 else
9605 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9606 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'
ce2cded5 9607 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~
3725885a 9608 $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'
ce2cded5
L
9609
9610 # Both c and cxx compiler support -rpath directly
9611 hardcode_libdir_flag_spec='-rpath $libdir'
9612 fi
9613 archive_cmds_need_lc='no'
9614 hardcode_libdir_separator=:
9615 ;;
9616
9617 solaris*)
9618 no_undefined_flag=' -z defs'
9619 if test "$GCC" = yes; then
9620 wlarc='${wl}'
9621 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9622 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9623 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9624 else
9625 case `$CC -V 2>&1` in
9626 *"Compilers 5.0"*)
9627 wlarc=''
9628 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9629 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9630 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9631 ;;
9632 *)
9633 wlarc='${wl}'
9634 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9635 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9636 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9637 ;;
9638 esac
9639 fi
9640 hardcode_libdir_flag_spec='-R$libdir'
9641 hardcode_shlibpath_var=no
9642 case $host_os in
9643 solaris2.[0-5] | solaris2.[0-5].*) ;;
9644 *)
9645 # The compiler driver will combine and reorder linker options,
9646 # but understands `-z linker_flag'. GCC discards it without `$wl',
9647 # but is careful enough not to reorder.
9648 # Supported since Solaris 2.6 (maybe 2.5.1?)
9649 if test "$GCC" = yes; then
9650 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9651 else
9652 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9653 fi
9654 ;;
9655 esac
9656 link_all_deplibs=yes
9657 ;;
9658
9659 sunos4*)
9660 if test "x$host_vendor" = xsequent; then
9661 # Use $CC to link under sequent, because it throws in some extra .o
9662 # files that make .init and .fini sections work.
9663 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9664 else
9665 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9666 fi
9667 hardcode_libdir_flag_spec='-L$libdir'
9668 hardcode_direct=yes
9669 hardcode_minus_L=yes
9670 hardcode_shlibpath_var=no
9671 ;;
9672
9673 sysv4)
9674 case $host_vendor in
9675 sni)
9676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9677 hardcode_direct=yes # is this really true???
9678 ;;
9679 siemens)
9680 ## LD is ld it makes a PLAMLIB
9681 ## CC just makes a GrossModule.
9682 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9683 reload_cmds='$CC -r -o $output$reload_objs'
9684 hardcode_direct=no
9685 ;;
9686 motorola)
9687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9688 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9689 ;;
9690 esac
9691 runpath_var='LD_RUN_PATH'
9692 hardcode_shlibpath_var=no
9693 ;;
9694
9695 sysv4.3*)
9696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9697 hardcode_shlibpath_var=no
9698 export_dynamic_flag_spec='-Bexport'
9699 ;;
9700
9701 sysv4*MP*)
9702 if test -d /usr/nec; then
9703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9704 hardcode_shlibpath_var=no
9705 runpath_var=LD_RUN_PATH
9706 hardcode_runpath_var=yes
9707 ld_shlibs=yes
9708 fi
9709 ;;
9710
9711 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9712 no_undefined_flag='${wl}-z,text'
9713 archive_cmds_need_lc=no
9714 hardcode_shlibpath_var=no
9715 runpath_var='LD_RUN_PATH'
9716
9717 if test "$GCC" = yes; then
9718 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9719 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9720 else
9721 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9723 fi
9724 ;;
9725
9726 sysv5* | sco3.2v5* | sco5v6*)
9727 # Note: We can NOT use -z defs as we might desire, because we do not
9728 # link with -lc, and that would cause any symbols used from libc to
9729 # always be unresolved, which means just about no library would
9730 # ever link correctly. If we're not using GNU ld we use -z text
9731 # though, which does catch some bad symbols but isn't as heavy-handed
9732 # as -z defs.
9733 no_undefined_flag='${wl}-z,text'
9734 allow_undefined_flag='${wl}-z,nodefs'
9735 archive_cmds_need_lc=no
9736 hardcode_shlibpath_var=no
9737 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9738 hardcode_libdir_separator=':'
9739 link_all_deplibs=yes
9740 export_dynamic_flag_spec='${wl}-Bexport'
9741 runpath_var='LD_RUN_PATH'
9742
9743 if test "$GCC" = yes; then
9744 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9745 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9746 else
9747 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9748 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9749 fi
9750 ;;
9751
9752 uts4*)
9753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9754 hardcode_libdir_flag_spec='-L$libdir'
9755 hardcode_shlibpath_var=no
9756 ;;
9757
9758 *)
9759 ld_shlibs=no
9760 ;;
9761 esac
9762
9763 if test x$host_vendor = xsni; then
9764 case $host in
9765 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9766 export_dynamic_flag_spec='${wl}-Blargedynsym'
9767 ;;
9768 esac
9769 fi
9770 fi
9771
81ecdfbb
RW
9772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9773$as_echo "$ld_shlibs" >&6; }
ce2cded5
L
9774test "$ld_shlibs" = no && can_build_shared=no
9775
9776with_gnu_ld=$with_gnu_ld
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792#
9793# Do we need to explicitly link libc?
9794#
9795case "x$archive_cmds_need_lc" in
9796x|xyes)
9797 # Assume -lc should be added
9798 archive_cmds_need_lc=yes
9799
9800 if test "$enable_shared" = yes && test "$GCC" = yes; then
9801 case $archive_cmds in
9802 *'~'*)
9803 # FIXME: we may have to deal with multi-command sequences.
9804 ;;
9805 '$CC '*)
9806 # Test whether the compiler implicitly links with -lc since on some
9807 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9808 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9810$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9811if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9812 $as_echo_n "(cached) " >&6
39144654
RW
9813else
9814 $RM conftest*
9815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
ce2cded5 9816
81ecdfbb 9817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
9818 (eval $ac_compile) 2>&5
9819 ac_status=$?
81ecdfbb
RW
9820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9821 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
9822 soname=conftest
9823 lib=conftest
9824 libobjs=conftest.$ac_objext
9825 deplibs=
9826 wl=$lt_prog_compiler_wl
9827 pic_flag=$lt_prog_compiler_pic
9828 compiler_flags=-v
9829 linker_flags=-v
9830 verstring=
9831 output_objdir=.
9832 libname=conftest
9833 lt_save_allow_undefined_flag=$allow_undefined_flag
9834 allow_undefined_flag=
81ecdfbb 9835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
9836 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9837 ac_status=$?
81ecdfbb
RW
9838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9839 test $ac_status = 0; }
39144654
RW
9840 then
9841 lt_cv_archive_cmds_need_lc=no
9842 else
9843 lt_cv_archive_cmds_need_lc=yes
9844 fi
9845 allow_undefined_flag=$lt_save_allow_undefined_flag
9846 else
9847 cat conftest.err 1>&5
9848 fi
9849 $RM conftest*
9850
9851fi
81ecdfbb
RW
9852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9853$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 9854 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
9855 ;;
9856 esac
9857 fi
9858 ;;
9859esac
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
81ecdfbb
RW
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10018$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
10019
10020if test "$GCC" = yes; then
ce2cded5
L
10021 case $host_os in
10022 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10023 *) lt_awk_arg="/^libraries:/" ;;
10024 esac
3725885a
RW
10025 case $host_os in
10026 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10027 *) lt_sed_strip_eq="s,=/,/,g" ;;
10028 esac
10029 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10030 case $lt_search_path_spec in
10031 *\;*)
ce2cded5
L
10032 # if the path contains ";" then we assume it to be the separator
10033 # otherwise default to the standard path separator (i.e. ":") - it is
10034 # assumed that no part of a normal pathname contains ";" but that should
10035 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10036 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10037 ;;
10038 *)
10039 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10040 ;;
10041 esac
ce2cded5
L
10042 # Ok, now we have the path, separated by spaces, we can step through it
10043 # and add multilib dir if necessary.
10044 lt_tmp_lt_search_path_spec=
10045 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10046 for lt_sys_path in $lt_search_path_spec; do
10047 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10048 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10049 else
10050 test -d "$lt_sys_path" && \
10051 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10052 fi
10053 done
3725885a 10054 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
10055BEGIN {RS=" "; FS="/|\n";} {
10056 lt_foo="";
10057 lt_count=0;
10058 for (lt_i = NF; lt_i > 0; lt_i--) {
10059 if ($lt_i != "" && $lt_i != ".") {
10060 if ($lt_i == "..") {
10061 lt_count++;
10062 } else {
10063 if (lt_count == 0) {
10064 lt_foo="/" $lt_i lt_foo;
10065 } else {
10066 lt_count--;
10067 }
10068 }
10069 }
10070 }
10071 if (lt_foo != "") { lt_freq[lt_foo]++; }
10072 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10073}'`
3725885a
RW
10074 # AWK program above erroneously prepends '/' to C:/dos/paths
10075 # for these hosts.
10076 case $host_os in
10077 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10078 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10079 esac
10080 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
ce2cded5
L
10081else
10082 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10083fi
10084library_names_spec=
10085libname_spec='lib$name'
10086soname_spec=
10087shrext_cmds=".so"
10088postinstall_cmds=
10089postuninstall_cmds=
10090finish_cmds=
10091finish_eval=
10092shlibpath_var=
10093shlibpath_overrides_runpath=unknown
10094version_type=none
10095dynamic_linker="$host_os ld.so"
10096sys_lib_dlsearch_path_spec="/lib /usr/lib"
10097need_lib_prefix=unknown
10098hardcode_into_libs=no
10099
10100# when you set need_version to no, make sure it does not cause -set_version
10101# flags to be left without arguments
10102need_version=unknown
10103
10104case $host_os in
10105aix3*)
10106 version_type=linux
10107 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10108 shlibpath_var=LIBPATH
10109
10110 # AIX 3 has no versioning support, so we append a major version to the name.
10111 soname_spec='${libname}${release}${shared_ext}$major'
10112 ;;
10113
50e7d84b 10114aix[4-9]*)
ce2cded5
L
10115 version_type=linux
10116 need_lib_prefix=no
10117 need_version=no
10118 hardcode_into_libs=yes
10119 if test "$host_cpu" = ia64; then
10120 # AIX 5 supports IA64
10121 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10122 shlibpath_var=LD_LIBRARY_PATH
10123 else
10124 # With GCC up to 2.95.x, collect2 would create an import file
10125 # for dependence libraries. The import file would start with
10126 # the line `#! .'. This would cause the generated library to
10127 # depend on `.', always an invalid library. This was fixed in
10128 # development snapshots of GCC prior to 3.0.
10129 case $host_os in
10130 aix4 | aix4.[01] | aix4.[01].*)
10131 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10132 echo ' yes '
10133 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10134 :
10135 else
10136 can_build_shared=no
10137 fi
10138 ;;
10139 esac
10140 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10141 # soname into executable. Probably we can add versioning support to
10142 # collect2, so additional links can be useful in future.
10143 if test "$aix_use_runtimelinking" = yes; then
10144 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10145 # instead of lib<name>.a to let people know that these are not
10146 # typical AIX shared libraries.
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10148 else
10149 # We preserve .a as extension for shared libraries through AIX4.2
10150 # and later when we are not doing run time linking.
10151 library_names_spec='${libname}${release}.a $libname.a'
10152 soname_spec='${libname}${release}${shared_ext}$major'
10153 fi
10154 shlibpath_var=LIBPATH
10155 fi
10156 ;;
10157
10158amigaos*)
b214d478
SE
10159 case $host_cpu in
10160 powerpc)
10161 # Since July 2007 AmigaOS4 officially supports .so libraries.
10162 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10164 ;;
10165 m68k)
ce2cded5
L
10166 library_names_spec='$libname.ixlibrary $libname.a'
10167 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10168 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'
b214d478
SE
10169 ;;
10170 esac
ce2cded5
L
10171 ;;
10172
10173beos*)
10174 library_names_spec='${libname}${shared_ext}'
10175 dynamic_linker="$host_os ld.so"
10176 shlibpath_var=LIBRARY_PATH
10177 ;;
10178
10179bsdi[45]*)
10180 version_type=linux
10181 need_version=no
10182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10183 soname_spec='${libname}${release}${shared_ext}$major'
10184 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10185 shlibpath_var=LD_LIBRARY_PATH
10186 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10187 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10188 # the default ld.so.conf also contains /usr/contrib/lib and
10189 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10190 # libtool to hard-code these into programs
10191 ;;
10192
b214d478 10193cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10194 version_type=windows
10195 shrext_cmds=".dll"
10196 need_version=no
10197 need_lib_prefix=no
10198
b214d478
SE
10199 case $GCC,$host_os in
10200 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10201 library_names_spec='$libname.dll.a'
10202 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10203 postinstall_cmds='base_file=`basename \${file}`~
10204 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10205 dldir=$destdir/`dirname \$dlpath`~
10206 test -d \$dldir || mkdir -p \$dldir~
10207 $install_prog $dir/$dlname \$dldir/$dlname~
10208 chmod a+x \$dldir/$dlname~
10209 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10210 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10211 fi'
10212 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10213 dlpath=$dir/\$dldll~
10214 $RM \$dlpath'
10215 shlibpath_overrides_runpath=yes
10216
10217 case $host_os in
10218 cygwin*)
10219 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10220 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10221
10222 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 10223 ;;
b214d478 10224 mingw* | cegcc*)
ce2cded5
L
10225 # MinGW DLLs use traditional 'lib' prefix
10226 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
10227 ;;
10228 pw32*)
10229 # pw32 DLLs use 'pw' prefix rather than 'lib'
10230 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10231 ;;
10232 esac
10233 ;;
10234
10235 *)
10236 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10237 ;;
10238 esac
10239 dynamic_linker='Win32 ld.exe'
10240 # FIXME: first we should search . and the directory the executable is in
10241 shlibpath_var=PATH
10242 ;;
10243
10244darwin* | rhapsody*)
10245 dynamic_linker="$host_os dyld"
10246 version_type=darwin
10247 need_lib_prefix=no
10248 need_version=no
10249 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10250 soname_spec='${libname}${release}${major}$shared_ext'
10251 shlibpath_overrides_runpath=yes
10252 shlibpath_var=DYLD_LIBRARY_PATH
10253 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10254
10255 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10256 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10257 ;;
10258
10259dgux*)
10260 version_type=linux
10261 need_lib_prefix=no
10262 need_version=no
10263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10264 soname_spec='${libname}${release}${shared_ext}$major'
10265 shlibpath_var=LD_LIBRARY_PATH
10266 ;;
10267
ce2cded5
L
10268freebsd* | dragonfly*)
10269 # DragonFly does not have aout. When/if they implement a new
10270 # versioning mechanism, adjust this.
10271 if test -x /usr/bin/objformat; then
10272 objformat=`/usr/bin/objformat`
10273 else
10274 case $host_os in
6d2920c8 10275 freebsd[23].*) objformat=aout ;;
ce2cded5
L
10276 *) objformat=elf ;;
10277 esac
10278 fi
10279 version_type=freebsd-$objformat
10280 case $version_type in
10281 freebsd-elf*)
10282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10283 need_version=no
10284 need_lib_prefix=no
10285 ;;
10286 freebsd-*)
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10288 need_version=yes
10289 ;;
10290 esac
10291 shlibpath_var=LD_LIBRARY_PATH
10292 case $host_os in
6d2920c8 10293 freebsd2.*)
ce2cded5
L
10294 shlibpath_overrides_runpath=yes
10295 ;;
10296 freebsd3.[01]* | freebsdelf3.[01]*)
10297 shlibpath_overrides_runpath=yes
10298 hardcode_into_libs=yes
10299 ;;
10300 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10301 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10302 shlibpath_overrides_runpath=no
10303 hardcode_into_libs=yes
10304 ;;
10305 *) # from 4.6 on, and DragonFly
10306 shlibpath_overrides_runpath=yes
10307 hardcode_into_libs=yes
10308 ;;
10309 esac
10310 ;;
10311
10312gnu*)
10313 version_type=linux
10314 need_lib_prefix=no
10315 need_version=no
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10317 soname_spec='${libname}${release}${shared_ext}$major'
10318 shlibpath_var=LD_LIBRARY_PATH
10319 hardcode_into_libs=yes
10320 ;;
10321
3725885a
RW
10322haiku*)
10323 version_type=linux
10324 need_lib_prefix=no
10325 need_version=no
10326 dynamic_linker="$host_os runtime_loader"
10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10328 soname_spec='${libname}${release}${shared_ext}$major'
10329 shlibpath_var=LIBRARY_PATH
10330 shlibpath_overrides_runpath=yes
10331 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10332 hardcode_into_libs=yes
10333 ;;
10334
ce2cded5
L
10335hpux9* | hpux10* | hpux11*)
10336 # Give a soname corresponding to the major version so that dld.sl refuses to
10337 # link against other versions.
10338 version_type=sunos
10339 need_lib_prefix=no
10340 need_version=no
10341 case $host_cpu in
10342 ia64*)
10343 shrext_cmds='.so'
10344 hardcode_into_libs=yes
10345 dynamic_linker="$host_os dld.so"
10346 shlibpath_var=LD_LIBRARY_PATH
10347 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10349 soname_spec='${libname}${release}${shared_ext}$major'
10350 if test "X$HPUX_IA64_MODE" = X32; then
10351 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10352 else
10353 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10354 fi
10355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10356 ;;
10357 hppa*64*)
10358 shrext_cmds='.sl'
10359 hardcode_into_libs=yes
10360 dynamic_linker="$host_os dld.sl"
10361 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364 soname_spec='${libname}${release}${shared_ext}$major'
10365 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10366 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10367 ;;
10368 *)
10369 shrext_cmds='.sl'
10370 dynamic_linker="$host_os dld.sl"
10371 shlibpath_var=SHLIB_PATH
10372 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10374 soname_spec='${libname}${release}${shared_ext}$major'
10375 ;;
10376 esac
3725885a 10377 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 10378 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10379 # or fails outright, so override atomically:
10380 install_override_mode=555
ce2cded5
L
10381 ;;
10382
10383interix[3-9]*)
10384 version_type=linux
10385 need_lib_prefix=no
10386 need_version=no
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10388 soname_spec='${libname}${release}${shared_ext}$major'
10389 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10390 shlibpath_var=LD_LIBRARY_PATH
10391 shlibpath_overrides_runpath=no
10392 hardcode_into_libs=yes
10393 ;;
d7040cdb 10394
ce2cded5
L
10395irix5* | irix6* | nonstopux*)
10396 case $host_os in
10397 nonstopux*) version_type=nonstopux ;;
10398 *)
10399 if test "$lt_cv_prog_gnu_ld" = yes; then
10400 version_type=linux
10401 else
10402 version_type=irix
10403 fi ;;
10404 esac
10405 need_lib_prefix=no
10406 need_version=no
10407 soname_spec='${libname}${release}${shared_ext}$major'
10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10409 case $host_os in
10410 irix5* | nonstopux*)
10411 libsuff= shlibsuff=
10412 ;;
10413 *)
10414 case $LD in # libtool.m4 will add one of these switches to LD
10415 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10416 libsuff= shlibsuff= libmagic=32-bit;;
10417 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10418 libsuff=32 shlibsuff=N32 libmagic=N32;;
10419 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10420 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10421 *) libsuff= shlibsuff= libmagic=never-match;;
10422 esac
10423 ;;
10424 esac
10425 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10426 shlibpath_overrides_runpath=no
10427 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10428 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10429 hardcode_into_libs=yes
10430 ;;
d7040cdb 10431
ce2cded5
L
10432# No shared lib support for Linux oldld, aout, or coff.
10433linux*oldld* | linux*aout* | linux*coff*)
10434 dynamic_linker=no
10435 ;;
10436
10437# This must be Linux ELF.
58e24671 10438linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
10439 version_type=linux
10440 need_lib_prefix=no
10441 need_version=no
10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10443 soname_spec='${libname}${release}${shared_ext}$major'
10444 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10445 shlibpath_var=LD_LIBRARY_PATH
10446 shlibpath_overrides_runpath=no
39144654 10447
ce2cded5 10448 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10449 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10450 $as_echo_n "(cached) " >&6
39144654
RW
10451else
10452 lt_cv_shlibpath_overrides_runpath=no
10453 save_LDFLAGS=$LDFLAGS
10454 save_libdir=$libdir
10455 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10456 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10458/* end confdefs.h. */
10459
d7040cdb
SE
10460int
10461main ()
10462{
ce2cded5 10463
d7040cdb
SE
10464 ;
10465 return 0;
10466}
10467_ACEOF
81ecdfbb
RW
10468if ac_fn_c_try_link "$LINENO"; then :
10469 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10470 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10471fi
d7040cdb 10472fi
81ecdfbb
RW
10473rm -f core conftest.err conftest.$ac_objext \
10474 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10475 LDFLAGS=$save_LDFLAGS
10476 libdir=$save_libdir
10477
10478fi
10479
10480 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 10481
ce2cded5
L
10482 # This implies no fast_install, which is unacceptable.
10483 # Some rework will be needed to allow for fast_install
10484 # before this can be enabled.
10485 hardcode_into_libs=yes
d7040cdb 10486
ce2cded5
L
10487 # Append ld.so.conf contents to the search path
10488 if test -f /etc/ld.so.conf; then
3725885a 10489 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' ' '`
ce2cded5
L
10490 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10491 fi
d7040cdb 10492
ce2cded5
L
10493 # We used to test for /lib/ld.so.1 and disable shared libraries on
10494 # powerpc, because MkLinux only supported shared libraries with the
10495 # GNU dynamic linker. Since this was broken with cross compilers,
10496 # most powerpc-linux boxes support dynamic linking these days and
10497 # people can always --disable-shared, the test was removed, and we
10498 # assume the GNU/Linux dynamic linker is in use.
10499 dynamic_linker='GNU/Linux ld.so'
10500 ;;
d7040cdb 10501
ce2cded5
L
10502netbsd*)
10503 version_type=sunos
10504 need_lib_prefix=no
10505 need_version=no
10506 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10509 dynamic_linker='NetBSD (a.out) ld.so'
10510 else
10511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10512 soname_spec='${libname}${release}${shared_ext}$major'
10513 dynamic_linker='NetBSD ld.elf_so'
10514 fi
10515 shlibpath_var=LD_LIBRARY_PATH
10516 shlibpath_overrides_runpath=yes
10517 hardcode_into_libs=yes
10518 ;;
d7040cdb 10519
ce2cded5
L
10520newsos6)
10521 version_type=linux
10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10523 shlibpath_var=LD_LIBRARY_PATH
10524 shlibpath_overrides_runpath=yes
10525 ;;
d7040cdb 10526
ce2cded5
L
10527*nto* | *qnx*)
10528 version_type=qnx
10529 need_lib_prefix=no
10530 need_version=no
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10532 soname_spec='${libname}${release}${shared_ext}$major'
10533 shlibpath_var=LD_LIBRARY_PATH
10534 shlibpath_overrides_runpath=no
10535 hardcode_into_libs=yes
10536 dynamic_linker='ldqnx.so'
10537 ;;
d7040cdb 10538
ce2cded5
L
10539openbsd*)
10540 version_type=sunos
10541 sys_lib_dlsearch_path_spec="/usr/lib"
10542 need_lib_prefix=no
10543 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10544 case $host_os in
10545 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10546 *) need_version=no ;;
d7040cdb 10547 esac
ce2cded5
L
10548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10550 shlibpath_var=LD_LIBRARY_PATH
10551 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10552 case $host_os in
10553 openbsd2.[89] | openbsd2.[89].*)
10554 shlibpath_overrides_runpath=no
10555 ;;
10556 *)
10557 shlibpath_overrides_runpath=yes
10558 ;;
10559 esac
d7040cdb 10560 else
ce2cded5 10561 shlibpath_overrides_runpath=yes
d7040cdb 10562 fi
ce2cded5 10563 ;;
d7040cdb 10564
ce2cded5
L
10565os2*)
10566 libname_spec='$name'
10567 shrext_cmds=".dll"
10568 need_lib_prefix=no
10569 library_names_spec='$libname${shared_ext} $libname.a'
10570 dynamic_linker='OS/2 ld.exe'
10571 shlibpath_var=LIBPATH
10572 ;;
d7040cdb 10573
ce2cded5
L
10574osf3* | osf4* | osf5*)
10575 version_type=osf
10576 need_lib_prefix=no
10577 need_version=no
10578 soname_spec='${libname}${release}${shared_ext}$major'
10579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10580 shlibpath_var=LD_LIBRARY_PATH
10581 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10582 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10583 ;;
d7040cdb 10584
ce2cded5
L
10585rdos*)
10586 dynamic_linker=no
10587 ;;
d7040cdb 10588
ce2cded5
L
10589solaris*)
10590 version_type=linux
10591 need_lib_prefix=no
10592 need_version=no
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10594 soname_spec='${libname}${release}${shared_ext}$major'
10595 shlibpath_var=LD_LIBRARY_PATH
10596 shlibpath_overrides_runpath=yes
10597 hardcode_into_libs=yes
10598 # ldd complains unless libraries are executable
10599 postinstall_cmds='chmod +x $lib'
10600 ;;
d7040cdb 10601
ce2cded5
L
10602sunos4*)
10603 version_type=sunos
10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10605 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10606 shlibpath_var=LD_LIBRARY_PATH
10607 shlibpath_overrides_runpath=yes
10608 if test "$with_gnu_ld" = yes; then
10609 need_lib_prefix=no
10610 fi
10611 need_version=yes
10612 ;;
d7040cdb 10613
ce2cded5
L
10614sysv4 | sysv4.3*)
10615 version_type=linux
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617 soname_spec='${libname}${release}${shared_ext}$major'
10618 shlibpath_var=LD_LIBRARY_PATH
10619 case $host_vendor in
10620 sni)
10621 shlibpath_overrides_runpath=no
10622 need_lib_prefix=no
10623 runpath_var=LD_RUN_PATH
10624 ;;
10625 siemens)
10626 need_lib_prefix=no
10627 ;;
10628 motorola)
10629 need_lib_prefix=no
10630 need_version=no
10631 shlibpath_overrides_runpath=no
10632 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10633 ;;
10634 esac
10635 ;;
d7040cdb 10636
ce2cded5
L
10637sysv4*MP*)
10638 if test -d /usr/nec ;then
10639 version_type=linux
10640 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10641 soname_spec='$libname${shared_ext}.$major'
10642 shlibpath_var=LD_LIBRARY_PATH
10643 fi
10644 ;;
d7040cdb 10645
ce2cded5
L
10646sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10647 version_type=freebsd-elf
10648 need_lib_prefix=no
10649 need_version=no
10650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10651 soname_spec='${libname}${release}${shared_ext}$major'
10652 shlibpath_var=LD_LIBRARY_PATH
10653 shlibpath_overrides_runpath=yes
10654 hardcode_into_libs=yes
10655 if test "$with_gnu_ld" = yes; then
10656 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10657 else
10658 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10659 case $host_os in
10660 sco3.2v5*)
10661 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10662 ;;
10663 esac
10664 fi
10665 sys_lib_dlsearch_path_spec='/usr/lib'
10666 ;;
d7040cdb 10667
ce2cded5
L
10668tpf*)
10669 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10670 version_type=linux
10671 need_lib_prefix=no
10672 need_version=no
b214d478 10673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
10674 shlibpath_var=LD_LIBRARY_PATH
10675 shlibpath_overrides_runpath=no
10676 hardcode_into_libs=yes
10677 ;;
d7040cdb 10678
ce2cded5
L
10679uts4*)
10680 version_type=linux
10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682 soname_spec='${libname}${release}${shared_ext}$major'
10683 shlibpath_var=LD_LIBRARY_PATH
10684 ;;
d7040cdb 10685
ce2cded5
L
10686*)
10687 dynamic_linker=no
10688 ;;
10689esac
81ecdfbb
RW
10690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10691$as_echo "$dynamic_linker" >&6; }
ce2cded5 10692test "$dynamic_linker" = no && can_build_shared=no
d7040cdb 10693
ce2cded5
L
10694variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10695if test "$GCC" = yes; then
10696 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 10697fi
d7040cdb 10698
b214d478
SE
10699if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10700 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10701fi
10702if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10703 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10704fi
10705
d7040cdb 10706
d7040cdb 10707
d7040cdb 10708
d7040cdb 10709
d7040cdb 10710
d7040cdb 10711
d7040cdb 10712
d7040cdb 10713
d7040cdb 10714
d7040cdb 10715
d7040cdb
SE
10716
10717
d7040cdb 10718
d7040cdb 10719
d7040cdb 10720
d7040cdb
SE
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
d7040cdb
SE
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
d7040cdb 10750
d7040cdb 10751
d7040cdb 10752
d7040cdb 10753
d7040cdb
SE
10754
10755
10756
10757
d7040cdb 10758
d7040cdb
SE
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
d7040cdb
SE
10772
10773
10774
10775
d7040cdb
SE
10776
10777
10778
d7040cdb
SE
10779
10780
d7040cdb 10781
d7040cdb 10782
d7040cdb 10783
ce2cded5
L
10784
10785
3725885a
RW
10786
10787
10788
10789
10790
ce2cded5
L
10791
10792
10793
10794
10795
10796
81ecdfbb
RW
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10798$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
10799hardcode_action=
10800if test -n "$hardcode_libdir_flag_spec" ||
10801 test -n "$runpath_var" ||
10802 test "X$hardcode_automatic" = "Xyes" ; then
10803
10804 # We can hardcode non-existent directories.
10805 if test "$hardcode_direct" != no &&
10806 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10807 # have to relink, otherwise we might link with an installed library
10808 # when we should be linking with a yet-to-be-installed one
10809 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10810 test "$hardcode_minus_L" != no; then
10811 # Linking always hardcodes the temporary library directory.
10812 hardcode_action=relink
10813 else
10814 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10815 hardcode_action=immediate
10816 fi
d7040cdb 10817else
ce2cded5
L
10818 # We cannot hardcode anything, or else we can only hardcode existing
10819 # directories.
10820 hardcode_action=unsupported
d7040cdb 10821fi
81ecdfbb
RW
10822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10823$as_echo "$hardcode_action" >&6; }
d7040cdb 10824
ce2cded5
L
10825if test "$hardcode_action" = relink ||
10826 test "$inherit_rpath" = yes; then
10827 # Fast installation is not supported
10828 enable_fast_install=no
10829elif test "$shlibpath_overrides_runpath" = yes ||
10830 test "$enable_shared" = no; then
10831 # Fast installation is not necessary
10832 enable_fast_install=needless
d7040cdb
SE
10833fi
10834
d7040cdb 10835
d7040cdb 10836
0ab6f085 10837
0ab6f085 10838
0ab6f085 10839
ce2cded5
L
10840 if test "x$enable_dlopen" != xyes; then
10841 enable_dlopen=unknown
10842 enable_dlopen_self=unknown
10843 enable_dlopen_self_static=unknown
d7040cdb 10844else
ce2cded5
L
10845 lt_cv_dlopen=no
10846 lt_cv_dlopen_libs=
d7040cdb 10847
ce2cded5
L
10848 case $host_os in
10849 beos*)
10850 lt_cv_dlopen="load_add_on"
10851 lt_cv_dlopen_libs=
10852 lt_cv_dlopen_self=yes
10853 ;;
d7040cdb 10854
b214d478 10855 mingw* | pw32* | cegcc*)
ce2cded5
L
10856 lt_cv_dlopen="LoadLibrary"
10857 lt_cv_dlopen_libs=
10858 ;;
10859
10860 cygwin*)
10861 lt_cv_dlopen="dlopen"
10862 lt_cv_dlopen_libs=
10863 ;;
10864
10865 darwin*)
10866 # if libdl is installed we need to link against it
81ecdfbb
RW
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10868$as_echo_n "checking for dlopen in -ldl... " >&6; }
10869if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10870 $as_echo_n "(cached) " >&6
d7040cdb 10871else
ce2cded5
L
10872 ac_check_lib_save_LIBS=$LIBS
10873LIBS="-ldl $LIBS"
81ecdfbb 10874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
10875/* end confdefs.h. */
10876
81ecdfbb
RW
10877/* Override any GCC internal prototype to avoid an error.
10878 Use char because int might match the return type of a GCC
10879 builtin and then its argument prototype would still apply. */
ce2cded5
L
10880#ifdef __cplusplus
10881extern "C"
10882#endif
ce2cded5
L
10883char dlopen ();
10884int
10885main ()
10886{
81ecdfbb 10887return dlopen ();
ce2cded5
L
10888 ;
10889 return 0;
10890}
10891_ACEOF
81ecdfbb 10892if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10893 ac_cv_lib_dl_dlopen=yes
10894else
81ecdfbb 10895 ac_cv_lib_dl_dlopen=no
d7040cdb 10896fi
81ecdfbb
RW
10897rm -f core conftest.err conftest.$ac_objext \
10898 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10899LIBS=$ac_check_lib_save_LIBS
d7040cdb 10900fi
81ecdfbb
RW
10901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10902$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10903if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 10904 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 10905else
d7040cdb 10906
ce2cded5
L
10907 lt_cv_dlopen="dyld"
10908 lt_cv_dlopen_libs=
10909 lt_cv_dlopen_self=yes
10910
d7040cdb 10911fi
ce2cded5
L
10912
10913 ;;
10914
10915 *)
81ecdfbb
RW
10916 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10917if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
10918 lt_cv_dlopen="shl_load"
10919else
81ecdfbb
RW
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10921$as_echo_n "checking for shl_load in -ldld... " >&6; }
10922if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10923 $as_echo_n "(cached) " >&6
ce2cded5
L
10924else
10925 ac_check_lib_save_LIBS=$LIBS
10926LIBS="-ldld $LIBS"
81ecdfbb 10927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10928/* end confdefs.h. */
d7040cdb 10929
81ecdfbb
RW
10930/* Override any GCC internal prototype to avoid an error.
10931 Use char because int might match the return type of a GCC
10932 builtin and then its argument prototype would still apply. */
ce2cded5
L
10933#ifdef __cplusplus
10934extern "C"
10935#endif
ce2cded5
L
10936char shl_load ();
10937int
10938main ()
10939{
81ecdfbb 10940return shl_load ();
ce2cded5
L
10941 ;
10942 return 0;
10943}
10944_ACEOF
81ecdfbb 10945if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10946 ac_cv_lib_dld_shl_load=yes
10947else
81ecdfbb 10948 ac_cv_lib_dld_shl_load=no
ce2cded5 10949fi
81ecdfbb
RW
10950rm -f core conftest.err conftest.$ac_objext \
10951 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10952LIBS=$ac_check_lib_save_LIBS
10953fi
81ecdfbb
RW
10954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10955$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10956if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
b214d478 10957 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 10958else
81ecdfbb
RW
10959 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10960if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
10961 lt_cv_dlopen="dlopen"
10962else
81ecdfbb
RW
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10964$as_echo_n "checking for dlopen in -ldl... " >&6; }
10965if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10966 $as_echo_n "(cached) " >&6
d7040cdb 10967else
ce2cded5
L
10968 ac_check_lib_save_LIBS=$LIBS
10969LIBS="-ldl $LIBS"
81ecdfbb 10970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10971/* end confdefs.h. */
10972
81ecdfbb
RW
10973/* Override any GCC internal prototype to avoid an error.
10974 Use char because int might match the return type of a GCC
10975 builtin and then its argument prototype would still apply. */
ce2cded5
L
10976#ifdef __cplusplus
10977extern "C"
10978#endif
ce2cded5 10979char dlopen ();
d7040cdb
SE
10980int
10981main ()
10982{
81ecdfbb 10983return dlopen ();
d7040cdb
SE
10984 ;
10985 return 0;
10986}
10987_ACEOF
81ecdfbb 10988if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 10989 ac_cv_lib_dl_dlopen=yes
d7040cdb 10990else
81ecdfbb 10991 ac_cv_lib_dl_dlopen=no
1b9750d6 10992fi
81ecdfbb
RW
10993rm -f core conftest.err conftest.$ac_objext \
10994 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10995LIBS=$ac_check_lib_save_LIBS
d7040cdb 10996fi
81ecdfbb
RW
10997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10998$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10999if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11000 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11001else
81ecdfbb
RW
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11003$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11004if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11005 $as_echo_n "(cached) " >&6
d7040cdb 11006else
ce2cded5
L
11007 ac_check_lib_save_LIBS=$LIBS
11008LIBS="-lsvld $LIBS"
81ecdfbb 11009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11010/* end confdefs.h. */
d7040cdb 11011
81ecdfbb
RW
11012/* Override any GCC internal prototype to avoid an error.
11013 Use char because int might match the return type of a GCC
11014 builtin and then its argument prototype would still apply. */
ce2cded5
L
11015#ifdef __cplusplus
11016extern "C"
11017#endif
ce2cded5 11018char dlopen ();
d7040cdb
SE
11019int
11020main ()
11021{
81ecdfbb 11022return dlopen ();
d7040cdb
SE
11023 ;
11024 return 0;
11025}
11026_ACEOF
81ecdfbb 11027if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11028 ac_cv_lib_svld_dlopen=yes
0ab6f085 11029else
81ecdfbb 11030 ac_cv_lib_svld_dlopen=no
0ab6f085 11031fi
81ecdfbb
RW
11032rm -f core conftest.err conftest.$ac_objext \
11033 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11034LIBS=$ac_check_lib_save_LIBS
0ab6f085 11035fi
81ecdfbb
RW
11036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11037$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11038if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
11039 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11040else
81ecdfbb
RW
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11042$as_echo_n "checking for dld_link in -ldld... " >&6; }
11043if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11044 $as_echo_n "(cached) " >&6
ce2cded5
L
11045else
11046 ac_check_lib_save_LIBS=$LIBS
11047LIBS="-ldld $LIBS"
81ecdfbb 11048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0ab6f085 11049/* end confdefs.h. */
ce2cded5 11050
81ecdfbb
RW
11051/* Override any GCC internal prototype to avoid an error.
11052 Use char because int might match the return type of a GCC
11053 builtin and then its argument prototype would still apply. */
ce2cded5
L
11054#ifdef __cplusplus
11055extern "C"
11056#endif
ce2cded5 11057char dld_link ();
0ab6f085
AM
11058int
11059main ()
11060{
81ecdfbb 11061return dld_link ();
0ab6f085
AM
11062 ;
11063 return 0;
11064}
11065_ACEOF
81ecdfbb 11066if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11067 ac_cv_lib_dld_dld_link=yes
0ab6f085 11068else
81ecdfbb 11069 ac_cv_lib_dld_dld_link=no
0ab6f085 11070fi
81ecdfbb
RW
11071rm -f core conftest.err conftest.$ac_objext \
11072 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11073LIBS=$ac_check_lib_save_LIBS
11074fi
81ecdfbb
RW
11075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11076$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11077if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
b214d478 11078 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
11079fi
11080
11081
11082fi
11083
11084
11085fi
11086
11087
11088fi
11089
11090
11091fi
11092
11093
11094fi
11095
11096 ;;
11097 esac
11098
11099 if test "x$lt_cv_dlopen" != xno; then
11100 enable_dlopen=yes
11101 else
11102 enable_dlopen=no
11103 fi
11104
11105 case $lt_cv_dlopen in
11106 dlopen)
11107 save_CPPFLAGS="$CPPFLAGS"
11108 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11109
11110 save_LDFLAGS="$LDFLAGS"
11111 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11112
11113 save_LIBS="$LIBS"
11114 LIBS="$lt_cv_dlopen_libs $LIBS"
11115
81ecdfbb
RW
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11117$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11118if test "${lt_cv_dlopen_self+set}" = set; then :
11119 $as_echo_n "(cached) " >&6
ce2cded5
L
11120else
11121 if test "$cross_compiling" = yes; then :
11122 lt_cv_dlopen_self=cross
11123else
11124 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11125 lt_status=$lt_dlunknown
11126 cat > conftest.$ac_ext <<_LT_EOF
6d2920c8 11127#line 11127 "configure"
ce2cded5
L
11128#include "confdefs.h"
11129
11130#if HAVE_DLFCN_H
11131#include <dlfcn.h>
11132#endif
11133
11134#include <stdio.h>
11135
11136#ifdef RTLD_GLOBAL
11137# define LT_DLGLOBAL RTLD_GLOBAL
11138#else
11139# ifdef DL_GLOBAL
11140# define LT_DLGLOBAL DL_GLOBAL
11141# else
11142# define LT_DLGLOBAL 0
11143# endif
11144#endif
11145
11146/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11147 find out it does not work in some platform. */
11148#ifndef LT_DLLAZY_OR_NOW
11149# ifdef RTLD_LAZY
11150# define LT_DLLAZY_OR_NOW RTLD_LAZY
11151# else
11152# ifdef DL_LAZY
11153# define LT_DLLAZY_OR_NOW DL_LAZY
11154# else
11155# ifdef RTLD_NOW
11156# define LT_DLLAZY_OR_NOW RTLD_NOW
11157# else
11158# ifdef DL_NOW
11159# define LT_DLLAZY_OR_NOW DL_NOW
11160# else
11161# define LT_DLLAZY_OR_NOW 0
11162# endif
11163# endif
11164# endif
11165# endif
11166#endif
11167
3725885a
RW
11168/* When -fvisbility=hidden is used, assume the code has been annotated
11169 correspondingly for the symbols needed. */
11170#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11171void fnord () __attribute__((visibility("default")));
11172#endif
11173
11174void fnord () { int i=42; }
ce2cded5 11175int main ()
0ab6f085 11176{
ce2cded5
L
11177 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11178 int status = $lt_dlunknown;
11179
11180 if (self)
11181 {
11182 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11183 else
11184 {
11185 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11186 else puts (dlerror ());
11187 }
ce2cded5
L
11188 /* dlclose (self); */
11189 }
11190 else
11191 puts (dlerror ());
11192
b214d478 11193 return status;
ce2cded5
L
11194}
11195_LT_EOF
81ecdfbb 11196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
11197 (eval $ac_link) 2>&5
11198 ac_status=$?
81ecdfbb
RW
11199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11200 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11201 (./conftest; exit; ) >&5 2>/dev/null
11202 lt_status=$?
11203 case x$lt_status in
11204 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11205 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11206 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11207 esac
11208 else :
11209 # compilation failed
11210 lt_cv_dlopen_self=no
11211 fi
11212fi
11213rm -fr conftest*
11214
11215
11216fi
81ecdfbb
RW
11217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11218$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11219
11220 if test "x$lt_cv_dlopen_self" = xyes; then
11221 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11223$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11224if test "${lt_cv_dlopen_self_static+set}" = set; then :
11225 $as_echo_n "(cached) " >&6
ce2cded5
L
11226else
11227 if test "$cross_compiling" = yes; then :
11228 lt_cv_dlopen_self_static=cross
11229else
11230 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11231 lt_status=$lt_dlunknown
11232 cat > conftest.$ac_ext <<_LT_EOF
6d2920c8 11233#line 11233 "configure"
ce2cded5
L
11234#include "confdefs.h"
11235
11236#if HAVE_DLFCN_H
11237#include <dlfcn.h>
11238#endif
11239
11240#include <stdio.h>
11241
11242#ifdef RTLD_GLOBAL
11243# define LT_DLGLOBAL RTLD_GLOBAL
11244#else
11245# ifdef DL_GLOBAL
11246# define LT_DLGLOBAL DL_GLOBAL
11247# else
11248# define LT_DLGLOBAL 0
11249# endif
11250#endif
11251
11252/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11253 find out it does not work in some platform. */
11254#ifndef LT_DLLAZY_OR_NOW
11255# ifdef RTLD_LAZY
11256# define LT_DLLAZY_OR_NOW RTLD_LAZY
11257# else
11258# ifdef DL_LAZY
11259# define LT_DLLAZY_OR_NOW DL_LAZY
11260# else
11261# ifdef RTLD_NOW
11262# define LT_DLLAZY_OR_NOW RTLD_NOW
11263# else
11264# ifdef DL_NOW
11265# define LT_DLLAZY_OR_NOW DL_NOW
11266# else
11267# define LT_DLLAZY_OR_NOW 0
11268# endif
11269# endif
11270# endif
11271# endif
11272#endif
11273
3725885a
RW
11274/* When -fvisbility=hidden is used, assume the code has been annotated
11275 correspondingly for the symbols needed. */
11276#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11277void fnord () __attribute__((visibility("default")));
11278#endif
11279
11280void fnord () { int i=42; }
ce2cded5
L
11281int main ()
11282{
11283 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11284 int status = $lt_dlunknown;
11285
11286 if (self)
11287 {
11288 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11289 else
11290 {
11291 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11292 else puts (dlerror ());
11293 }
ce2cded5
L
11294 /* dlclose (self); */
11295 }
11296 else
11297 puts (dlerror ());
11298
b214d478 11299 return status;
0ab6f085 11300}
ce2cded5 11301_LT_EOF
81ecdfbb 11302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 11303 (eval $ac_link) 2>&5
0ab6f085 11304 ac_status=$?
81ecdfbb
RW
11305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11306 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11307 (./conftest; exit; ) >&5 2>/dev/null
11308 lt_status=$?
11309 case x$lt_status in
11310 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11311 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11312 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11313 esac
11314 else :
11315 # compilation failed
11316 lt_cv_dlopen_self_static=no
11317 fi
11318fi
11319rm -fr conftest*
11320
d7040cdb
SE
11321
11322fi
81ecdfbb
RW
11323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11324$as_echo "$lt_cv_dlopen_self_static" >&6; }
ce2cded5
L
11325 fi
11326
11327 CPPFLAGS="$save_CPPFLAGS"
11328 LDFLAGS="$save_LDFLAGS"
11329 LIBS="$save_LIBS"
11330 ;;
11331 esac
11332
11333 case $lt_cv_dlopen_self in
11334 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11335 *) enable_dlopen_self=unknown ;;
11336 esac
11337
11338 case $lt_cv_dlopen_self_static in
11339 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11340 *) enable_dlopen_self_static=unknown ;;
11341 esac
d7040cdb
SE
11342fi
11343
ce2cded5
L
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360striplib=
11361old_striplib=
81ecdfbb
RW
11362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11363$as_echo_n "checking whether stripping libraries is possible... " >&6; }
ce2cded5
L
11364if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11365 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11366 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11368$as_echo "yes" >&6; }
0ab6f085 11369else
ce2cded5
L
11370# FIXME - insert some real tests, host_os isn't really good enough
11371 case $host_os in
11372 darwin*)
11373 if test -n "$STRIP" ; then
11374 striplib="$STRIP -x"
11375 old_striplib="$STRIP -S"
81ecdfbb
RW
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11377$as_echo "yes" >&6; }
ce2cded5 11378 else
81ecdfbb
RW
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11380$as_echo "no" >&6; }
ce2cded5
L
11381 fi
11382 ;;
11383 *)
81ecdfbb
RW
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11385$as_echo "no" >&6; }
ce2cded5
L
11386 ;;
11387 esac
11388fi
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401 # Report which library types will actually be built
81ecdfbb
RW
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11403$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11405$as_echo "$can_build_shared" >&6; }
ce2cded5 11406
81ecdfbb
RW
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11408$as_echo_n "checking whether to build shared libraries... " >&6; }
ce2cded5
L
11409 test "$can_build_shared" = "no" && enable_shared=no
11410
11411 # On AIX, shared libraries and static libraries use the same namespace, and
11412 # are all built from PIC.
11413 case $host_os in
11414 aix3*)
11415 test "$enable_shared" = yes && enable_static=no
11416 if test -n "$RANLIB"; then
11417 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11418 postinstall_cmds='$RANLIB $lib'
11419 fi
11420 ;;
11421
50e7d84b 11422 aix[4-9]*)
ce2cded5
L
11423 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11424 test "$enable_shared" = yes && enable_static=no
11425 fi
11426 ;;
11427 esac
81ecdfbb
RW
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11429$as_echo "$enable_shared" >&6; }
ce2cded5 11430
81ecdfbb
RW
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11432$as_echo_n "checking whether to build static libraries... " >&6; }
ce2cded5
L
11433 # Make sure either enable_shared or enable_static is yes.
11434 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11436$as_echo "$enable_static" >&6; }
ce2cded5
L
11437
11438
11439
d7040cdb 11440
0ab6f085 11441fi
d7040cdb
SE
11442ac_ext=c
11443ac_cpp='$CPP $CPPFLAGS'
11444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11446ac_compiler_gnu=$ac_cv_c_compiler_gnu
11447
ce2cded5 11448CC="$lt_save_CC"
0ab6f085 11449
0ab6f085
AM
11450
11451
d7040cdb
SE
11452
11453
d7040cdb 11454
d7040cdb 11455
d7040cdb 11456
ce2cded5
L
11457
11458
11459
11460
11461
81ecdfbb 11462 ac_config_commands="$ac_config_commands libtool"
ce2cded5
L
11463
11464
11465
11466
11467# Only expand once:
11468
d7040cdb
SE
11469
11470
d7040cdb 11471for ac_func in setmode
81ecdfbb
RW
11472do :
11473 ac_fn_c_check_func "$LINENO" "setmode" "ac_cv_func_setmode"
11474if test "x$ac_cv_func_setmode" = x""yes; then :
d7040cdb 11475 cat >>confdefs.h <<_ACEOF
81ecdfbb 11476#define HAVE_SETMODE 1
d7040cdb
SE
11477_ACEOF
11478
11479fi
11480done
11481
11482
f4b2f7c2 11483ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi nl bg eo ja sr"
d7040cdb
SE
11484# If we haven't got the data from the intl directory,
11485# assume NLS is disabled.
11486USE_NLS=no
11487LIBINTL=
11488LIBINTL_DEP=
11489INCINTL=
11490XGETTEXT=
11491GMSGFMT=
11492POSUB=
11493
11494if test -f ../intl/config.intl; then
11495 . ../intl/config.intl
11496fi
81ecdfbb
RW
11497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11498$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 11499if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501$as_echo "no" >&6; }
d7040cdb 11502else
81ecdfbb
RW
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11504$as_echo "yes" >&6; }
d7040cdb 11505
81ecdfbb 11506$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
11507
11508
81ecdfbb
RW
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11510$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
11511 # Look for .po and .gmo files in the source directory.
11512 CATALOGS=
11513 XLINGUAS=
11514 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11515 # If there aren't any .gmo files the shell will give us the
11516 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11517 # weeded out.
11518 case "$cat" in *\**)
11519 continue;;
11520 esac
11521 # The quadruple backslash is collapsed to a double backslash
11522 # by the backticks, then collapsed again by the double quotes,
11523 # leaving us with one backslash in the sed expression (right
11524 # before the dot that mustn't act as a wildcard).
11525 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11526 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11527 # The user is allowed to set LINGUAS to a list of languages to
11528 # install catalogs for. If it's empty that means "all of them."
11529 if test "x$LINGUAS" = x; then
11530 CATALOGS="$CATALOGS $cat"
11531 XLINGUAS="$XLINGUAS $lang"
11532 else
11533 case "$LINGUAS" in *$lang*)
11534 CATALOGS="$CATALOGS $cat"
11535 XLINGUAS="$XLINGUAS $lang"
11536 ;;
11537 esac
11538 fi
11539 done
11540 LINGUAS="$XLINGUAS"
81ecdfbb
RW
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11542$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
11543
11544
11545 DATADIRNAME=share
11546
11547 INSTOBJEXT=.mo
11548
11549 GENCAT=gencat
11550
11551 CATOBJEXT=.gmo
11552
11553fi
11554
11555 MKINSTALLDIRS=
11556 if test -n "$ac_aux_dir"; then
11557 case "$ac_aux_dir" in
11558 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11559 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11560 esac
11561 fi
11562 if test -z "$MKINSTALLDIRS"; then
11563 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11564 fi
11565
11566
11567
81ecdfbb
RW
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11569$as_echo_n "checking whether NLS is requested... " >&6; }
11570 # Check whether --enable-nls was given.
11571if test "${enable_nls+set}" = set; then :
11572 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
11573else
11574 USE_NLS=yes
81ecdfbb
RW
11575fi
11576
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11578$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
11579
11580
11581
11582
11583
11584
11585# Prepare PATH_SEPARATOR.
11586# The user is always right.
11587if test "${PATH_SEPARATOR+set}" != set; then
11588 echo "#! /bin/sh" >conf$$.sh
11589 echo "exit 0" >>conf$$.sh
11590 chmod +x conf$$.sh
11591 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11592 PATH_SEPARATOR=';'
11593 else
11594 PATH_SEPARATOR=:
11595 fi
11596 rm -f conf$$.sh
11597fi
11598
11599# Find out how to test for executable files. Don't use a zero-byte file,
11600# as systems may use methods other than mode bits to determine executability.
11601cat >conf$$.file <<_ASEOF
11602#! /bin/sh
11603exit 0
11604_ASEOF
11605chmod +x conf$$.file
11606if test -x conf$$.file >/dev/null 2>&1; then
11607 ac_executable_p="test -x"
11608else
11609 ac_executable_p="test -f"
11610fi
11611rm -f conf$$.file
11612
11613# Extract the first word of "msgfmt", so it can be a program name with args.
11614set dummy msgfmt; ac_word=$2
81ecdfbb
RW
11615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11616$as_echo_n "checking for $ac_word... " >&6; }
11617if test "${ac_cv_path_MSGFMT+set}" = set; then :
11618 $as_echo_n "(cached) " >&6
d7040cdb
SE
11619else
11620 case "$MSGFMT" in
11621 [\\/]* | ?:[\\/]*)
11622 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11623 ;;
11624 *)
11625 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11626 for ac_dir in $PATH; do
11627 IFS="$ac_save_IFS"
11628 test -z "$ac_dir" && ac_dir=.
11629 for ac_exec_ext in '' $ac_executable_extensions; do
11630 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11631 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11632 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11633 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11634 break 2
11635 fi
11636 fi
11637 done
11638 done
11639 IFS="$ac_save_IFS"
11640 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11641 ;;
11642esac
11643fi
11644MSGFMT="$ac_cv_path_MSGFMT"
11645if test "$MSGFMT" != ":"; then
81ecdfbb
RW
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11647$as_echo "$MSGFMT" >&6; }
d7040cdb 11648else
81ecdfbb
RW
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650$as_echo "no" >&6; }
d7040cdb
SE
11651fi
11652
11653 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11654set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
11655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11656$as_echo_n "checking for $ac_word... " >&6; }
11657if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11658 $as_echo_n "(cached) " >&6
d7040cdb
SE
11659else
11660 case $GMSGFMT in
11661 [\\/]* | ?:[\\/]*)
11662 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11663 ;;
11664 *)
11665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11666for as_dir in $PATH
11667do
11668 IFS=$as_save_IFS
11669 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11670 for ac_exec_ext in '' $ac_executable_extensions; do
11671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 11672 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
11674 break 2
11675 fi
11676done
81ecdfbb
RW
11677 done
11678IFS=$as_save_IFS
d7040cdb
SE
11679
11680 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11681 ;;
11682esac
11683fi
11684GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 11685if test -n "$GMSGFMT"; then
81ecdfbb
RW
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11687$as_echo "$GMSGFMT" >&6; }
d7040cdb 11688else
81ecdfbb
RW
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690$as_echo "no" >&6; }
d7040cdb
SE
11691fi
11692
11693
11694
81ecdfbb 11695
d7040cdb
SE
11696# Prepare PATH_SEPARATOR.
11697# The user is always right.
11698if test "${PATH_SEPARATOR+set}" != set; then
11699 echo "#! /bin/sh" >conf$$.sh
11700 echo "exit 0" >>conf$$.sh
11701 chmod +x conf$$.sh
11702 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11703 PATH_SEPARATOR=';'
11704 else
11705 PATH_SEPARATOR=:
11706 fi
11707 rm -f conf$$.sh
11708fi
11709
11710# Find out how to test for executable files. Don't use a zero-byte file,
11711# as systems may use methods other than mode bits to determine executability.
11712cat >conf$$.file <<_ASEOF
11713#! /bin/sh
11714exit 0
11715_ASEOF
11716chmod +x conf$$.file
11717if test -x conf$$.file >/dev/null 2>&1; then
11718 ac_executable_p="test -x"
11719else
11720 ac_executable_p="test -f"
11721fi
11722rm -f conf$$.file
11723
11724# Extract the first word of "xgettext", so it can be a program name with args.
11725set dummy xgettext; ac_word=$2
81ecdfbb
RW
11726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11727$as_echo_n "checking for $ac_word... " >&6; }
11728if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11729 $as_echo_n "(cached) " >&6
d7040cdb
SE
11730else
11731 case "$XGETTEXT" in
11732 [\\/]* | ?:[\\/]*)
11733 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11734 ;;
11735 *)
11736 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11737 for ac_dir in $PATH; do
11738 IFS="$ac_save_IFS"
11739 test -z "$ac_dir" && ac_dir=.
11740 for ac_exec_ext in '' $ac_executable_extensions; do
11741 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11742 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11743 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11744 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11745 break 2
11746 fi
11747 fi
11748 done
11749 done
11750 IFS="$ac_save_IFS"
11751 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11752 ;;
11753esac
11754fi
11755XGETTEXT="$ac_cv_path_XGETTEXT"
11756if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11758$as_echo "$XGETTEXT" >&6; }
d7040cdb 11759else
81ecdfbb
RW
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11761$as_echo "no" >&6; }
d7040cdb
SE
11762fi
11763
11764 rm -f messages.po
11765
11766
11767# Prepare PATH_SEPARATOR.
11768# The user is always right.
11769if test "${PATH_SEPARATOR+set}" != set; then
11770 echo "#! /bin/sh" >conf$$.sh
11771 echo "exit 0" >>conf$$.sh
11772 chmod +x conf$$.sh
11773 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11774 PATH_SEPARATOR=';'
11775 else
11776 PATH_SEPARATOR=:
11777 fi
11778 rm -f conf$$.sh
11779fi
11780
11781# Find out how to test for executable files. Don't use a zero-byte file,
11782# as systems may use methods other than mode bits to determine executability.
11783cat >conf$$.file <<_ASEOF
11784#! /bin/sh
11785exit 0
11786_ASEOF
11787chmod +x conf$$.file
11788if test -x conf$$.file >/dev/null 2>&1; then
11789 ac_executable_p="test -x"
11790else
11791 ac_executable_p="test -f"
11792fi
11793rm -f conf$$.file
11794
11795# Extract the first word of "msgmerge", so it can be a program name with args.
11796set dummy msgmerge; ac_word=$2
81ecdfbb
RW
11797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11798$as_echo_n "checking for $ac_word... " >&6; }
11799if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11800 $as_echo_n "(cached) " >&6
d7040cdb
SE
11801else
11802 case "$MSGMERGE" in
11803 [\\/]* | ?:[\\/]*)
11804 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11805 ;;
11806 *)
11807 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11808 for ac_dir in $PATH; do
11809 IFS="$ac_save_IFS"
11810 test -z "$ac_dir" && ac_dir=.
11811 for ac_exec_ext in '' $ac_executable_extensions; do
11812 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11813 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11814 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11815 break 2
11816 fi
11817 fi
11818 done
11819 done
11820 IFS="$ac_save_IFS"
11821 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11822 ;;
11823esac
11824fi
11825MSGMERGE="$ac_cv_path_MSGMERGE"
11826if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11828$as_echo "$MSGMERGE" >&6; }
d7040cdb 11829else
81ecdfbb
RW
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11831$as_echo "no" >&6; }
d7040cdb
SE
11832fi
11833
11834
11835 if test "$GMSGFMT" != ":"; then
11836 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11837 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11838 : ;
11839 else
11840 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11842$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
11843 GMSGFMT=":"
11844 fi
11845 fi
11846
11847 if test "$XGETTEXT" != ":"; then
11848 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11849 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11850 : ;
11851 else
81ecdfbb
RW
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11853$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
11854 XGETTEXT=":"
11855 fi
11856 rm -f messages.po
11857 fi
11858
81ecdfbb
RW
11859 ac_config_commands="$ac_config_commands default-1"
11860
d7040cdb
SE
11861
11862
11863
81ecdfbb
RW
11864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11865$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11866 # Check whether --enable-maintainer-mode was given.
11867if test "${enable_maintainer_mode+set}" = set; then :
11868 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 11869else
d7040cdb 11870 USE_MAINTAINER_MODE=no
81ecdfbb 11871fi
d7040cdb 11872
81ecdfbb
RW
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11874$as_echo "$USE_MAINTAINER_MODE" >&6; }
11875 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
11876 MAINTAINER_MODE_TRUE=
11877 MAINTAINER_MODE_FALSE='#'
11878else
11879 MAINTAINER_MODE_TRUE='#'
11880 MAINTAINER_MODE_FALSE=
20e95c23 11881fi
6bf9431b 11882
d7040cdb
SE
11883 MAINT=$MAINTAINER_MODE_TRUE
11884
11885
81ecdfbb 11886 if false; then
d7040cdb
SE
11887 GENINSRC_NEVER_TRUE=
11888 GENINSRC_NEVER_FALSE='#'
11889else
11890 GENINSRC_NEVER_TRUE='#'
11891 GENINSRC_NEVER_FALSE=
20e95c23 11892fi
6bf9431b
BE
11893
11894
11895
6bf9431b 11896for ac_header in sys/gmon_out.h
81ecdfbb
RW
11897do :
11898 ac_fn_c_check_header_mongrel "$LINENO" "sys/gmon_out.h" "ac_cv_header_sys_gmon_out_h" "$ac_includes_default"
11899if test "x$ac_cv_header_sys_gmon_out_h" = x""yes; then :
6bf9431b 11900 cat >>confdefs.h <<_ACEOF
81ecdfbb 11901#define HAVE_SYS_GMON_OUT_H 1
6bf9431b
BE
11902_ACEOF
11903
11904fi
11905
11906done
11907
11908
81ecdfbb
RW
11909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
11910$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
11911if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then :
11912 $as_echo_n "(cached) " >&6
34875e64 11913else
81ecdfbb 11914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34875e64
NC
11915/* end confdefs.h. */
11916#include <unistd.h>
11917int
11918main ()
11919{
11920extern int getopt (int, char *const*, const char *);
11921 ;
11922 return 0;
11923}
11924_ACEOF
81ecdfbb 11925if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
11926 gprof_cv_decl_getopt_unistd_h=yes
11927else
81ecdfbb 11928 gprof_cv_decl_getopt_unistd_h=no
34875e64 11929fi
81ecdfbb 11930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
11931fi
11932
81ecdfbb
RW
11933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gprof_cv_decl_getopt_unistd_h" >&5
11934$as_echo "$gprof_cv_decl_getopt_unistd_h" >&6; }
34875e64
NC
11935if test $gprof_cv_decl_getopt_unistd_h = yes; then
11936
81ecdfbb 11937$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
11938
11939fi
11940
1b9750d6 11941# Some systems have fabs only in -lm, not in -lc.
81ecdfbb
RW
11942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
11943$as_echo_n "checking for library containing fabs... " >&6; }
11944if test "${ac_cv_search_fabs+set}" = set; then :
11945 $as_echo_n "(cached) " >&6
1b9750d6
NC
11946else
11947 ac_func_search_save_LIBS=$LIBS
81ecdfbb 11948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1b9750d6
NC
11949/* end confdefs.h. */
11950
81ecdfbb
RW
11951/* Override any GCC internal prototype to avoid an error.
11952 Use char because int might match the return type of a GCC
11953 builtin and then its argument prototype would still apply. */
1b9750d6
NC
11954#ifdef __cplusplus
11955extern "C"
11956#endif
11957char fabs ();
11958int
11959main ()
11960{
81ecdfbb 11961return fabs ();
1b9750d6
NC
11962 ;
11963 return 0;
11964}
11965_ACEOF
81ecdfbb
RW
11966for ac_lib in '' m; do
11967 if test -z "$ac_lib"; then
11968 ac_res="none required"
11969 else
11970 ac_res=-l$ac_lib
0ab6f085 11971 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
11972 fi
11973 if ac_fn_c_try_link "$LINENO"; then :
11974 ac_cv_search_fabs=$ac_res
11975fi
11976rm -f core conftest.err conftest.$ac_objext \
11977 conftest$ac_exeext
11978 if test "${ac_cv_search_fabs+set}" = set; then :
11979 break
11980fi
11981done
11982if test "${ac_cv_search_fabs+set}" = set; then :
1b9750d6 11983
1b9750d6 11984else
81ecdfbb 11985 ac_cv_search_fabs=no
1b9750d6 11986fi
81ecdfbb 11987rm conftest.$ac_ext
1b9750d6
NC
11988LIBS=$ac_func_search_save_LIBS
11989fi
81ecdfbb
RW
11990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
11991$as_echo "$ac_cv_search_fabs" >&6; }
11992ac_res=$ac_cv_search_fabs
11993if test "$ac_res" != no; then :
11994 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1b9750d6
NC
11995
11996fi
11997
11998
9e9b66a9 11999
397841b5
AM
12000GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12002/* end confdefs.h. */
12003__GNUC__
12004_ACEOF
12005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12006 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12007
12008else
12009 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12010fi
12011rm -f conftest*
12012
1ad12f97 12013
81ecdfbb
RW
12014# Check whether --enable-werror was given.
12015if test "${enable_werror+set}" = set; then :
12016 enableval=$enable_werror; case "${enableval}" in
1ad12f97
NC
12017 yes | y) ERROR_ON_WARNING="yes" ;;
12018 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 12019 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
1ad12f97 12020 esac
81ecdfbb
RW
12021fi
12022
1ad12f97 12023
397841b5 12024# Disable -Wformat by default when using gcc on mingw
32b1cf22
L
12025case "${host}" in
12026 *-*-mingw32*)
12027 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12028 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12029 fi
12030 ;;
12031 *) ;;
12032esac
12033
9e9b66a9
AM
12034# Enable -Werror by default when using gcc
12035if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12036 ERROR_ON_WARNING=yes
12037fi
12038
12039NO_WERROR=
12040if test "${ERROR_ON_WARNING}" = yes ; then
a541e3ce 12041 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9e9b66a9 12042 NO_WERROR="-Wno-error"
1ad12f97
NC
12043fi
12044
a541e3ce
SE
12045if test "${GCC}" = yes ; then
12046 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12047fi
12048
81ecdfbb
RW
12049# Check whether --enable-build-warnings was given.
12050if test "${enable_build_warnings+set}" = set; then :
12051 enableval=$enable_build_warnings; case "${enableval}" in
a541e3ce
SE
12052 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
12053 no) if test "${GCC}" = yes ; then
12054 WARN_CFLAGS="-w"
12055 fi;;
6bf9431b 12056 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 12057 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
6bf9431b 12058 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 12059 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9e9b66a9 12060 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6bf9431b 12061esac
81ecdfbb
RW
12062fi
12063
9e9b66a9
AM
12064
12065if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12066 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
6bf9431b
BE
12067fi
12068
12069
9e9b66a9
AM
12070
12071
12072
108a6f8e
CD
12073
12074
12075
12076
31dd3154 12077
81ecdfbb 12078ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
6bf9431b 12079
6bf9431b
BE
12080cat >confcache <<\_ACEOF
12081# This file is a shell script that caches the results of configure
12082# tests run on this system so they can be shared between configure
12083# scripts and configure runs, see configure's option --config-cache.
12084# It is not useful on other systems. If it contains results you don't
12085# want to keep, you may remove or edit it.
12086#
12087# config.status only pays attention to the cache file if you give it
12088# the --recheck option to rerun configure.
12089#
12090# `ac_cv_env_foo' variables (set or unset) will be overridden when
12091# loading this file, other *unset* `ac_cv_foo' will be assigned the
12092# following values.
12093
12094_ACEOF
12095
12096# The following way of writing the cache mishandles newlines in values,
12097# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 12098# So, we kill variables containing newlines.
6bf9431b
BE
12099# Ultrix sh set writes to stderr and can't be redirected directly,
12100# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
12101(
12102 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12103 eval ac_val=\$$ac_var
12104 case $ac_val in #(
12105 *${as_nl}*)
12106 case $ac_var in #(
12107 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12108$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12109 esac
12110 case $ac_var in #(
12111 _ | IFS | as_nl) ;; #(
12112 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12113 *) { eval $ac_var=; unset $ac_var;} ;;
12114 esac ;;
12115 esac
12116 done
12117
6bf9431b 12118 (set) 2>&1 |
81ecdfbb
RW
12119 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12120 *${as_nl}ac_space=\ *)
12121 # `set' does not quote correctly, so add quotes: double-quote
12122 # substitution turns \\\\ into \\, and sed turns \\ into \.
6bf9431b
BE
12123 sed -n \
12124 "s/'/'\\\\''/g;
12125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 12126 ;; #(
6bf9431b
BE
12127 *)
12128 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 12129 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6bf9431b 12130 ;;
81ecdfbb
RW
12131 esac |
12132 sort
12133) |
6bf9431b 12134 sed '
81ecdfbb 12135 /^ac_cv_env_/b end
6bf9431b 12136 t clear
81ecdfbb 12137 :clear
6bf9431b
BE
12138 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12139 t end
81ecdfbb
RW
12140 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12141 :end' >>confcache
12142if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12143 if test -w "$cache_file"; then
12144 test "x$cache_file" != "x/dev/null" &&
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12146$as_echo "$as_me: updating cache $cache_file" >&6;}
6bf9431b
BE
12147 cat confcache >$cache_file
12148 else
81ecdfbb
RW
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12150$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6bf9431b
BE
12151 fi
12152fi
12153rm -f confcache
12154
12155test "x$prefix" = xNONE && prefix=$ac_default_prefix
12156# Let make expand exec_prefix.
12157test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12158
6bf9431b
BE
12159DEFS=-DHAVE_CONFIG_H
12160
12161ac_libobjs=
12162ac_ltlibobjs=
12163for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12164 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
12165 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12166 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12167 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12168 # will be set to the directory where LIBOBJS objects are built.
12169 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12170 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6bf9431b
BE
12171done
12172LIBOBJS=$ac_libobjs
12173
12174LTLIBOBJS=$ac_ltlibobjs
12175
12176
12177if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
12178 as_fn_error "conditional \"AMDEP\" was never defined.
12179Usually this means the macro was only invoked conditionally." "$LINENO" 5
6bf9431b
BE
12180fi
12181if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
12182 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12183Usually this means the macro was only invoked conditionally." "$LINENO" 5
12184fi
12185 if test -n "$EXEEXT"; then
12186 am__EXEEXT_TRUE=
12187 am__EXEEXT_FALSE='#'
12188else
12189 am__EXEEXT_TRUE='#'
12190 am__EXEEXT_FALSE=
6bf9431b 12191fi
81ecdfbb 12192
6bf9431b 12193if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
12194 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12195Usually this means the macro was only invoked conditionally." "$LINENO" 5
6bf9431b 12196fi
d5fbea21 12197if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
12198 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
12199Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 12200fi
6bf9431b
BE
12201
12202: ${CONFIG_STATUS=./config.status}
81ecdfbb 12203ac_write_fail=0
6bf9431b
BE
12204ac_clean_files_save=$ac_clean_files
12205ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
12206{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12207$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12208as_write_fail=0
12209cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6bf9431b
BE
12210#! $SHELL
12211# Generated by $as_me.
12212# Run this file to recreate the current configuration.
12213# Compiler output produced by configure, useful for debugging
12214# configure, is in config.log if it exists.
12215
12216debug=false
12217ac_cs_recheck=false
12218ac_cs_silent=false
6bf9431b 12219
81ecdfbb
RW
12220SHELL=\${CONFIG_SHELL-$SHELL}
12221export SHELL
12222_ASEOF
12223cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12224## -------------------- ##
12225## M4sh Initialization. ##
12226## -------------------- ##
6bf9431b 12227
81ecdfbb
RW
12228# Be more Bourne compatible
12229DUALCASE=1; export DUALCASE # for MKS sh
12230if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6bf9431b
BE
12231 emulate sh
12232 NULLCMD=:
81ecdfbb 12233 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6bf9431b
BE
12234 # is contrary to our usage. Disable this feature.
12235 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
12236 setopt NO_GLOB_SUBST
12237else
12238 case `(set -o) 2>/dev/null` in #(
12239 *posix*) :
12240 set -o posix ;; #(
12241 *) :
12242 ;;
12243esac
6bf9431b 12244fi
6bf9431b 12245
81ecdfbb
RW
12246
12247as_nl='
12248'
12249export as_nl
12250# Printing a long string crashes Solaris 7 /usr/bin/printf.
12251as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12252as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12253as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12254# Prefer a ksh shell builtin over an external printf program on Solaris,
12255# but without wasting forks for bash or zsh.
12256if test -z "$BASH_VERSION$ZSH_VERSION" \
12257 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12258 as_echo='print -r --'
12259 as_echo_n='print -rn --'
12260elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12261 as_echo='printf %s\n'
12262 as_echo_n='printf %s'
12263else
12264 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12265 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12266 as_echo_n='/usr/ucb/echo -n'
12267 else
12268 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12269 as_echo_n_body='eval
12270 arg=$1;
12271 case $arg in #(
12272 *"$as_nl"*)
12273 expr "X$arg" : "X\\(.*\\)$as_nl";
12274 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12275 esac;
12276 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12277 '
12278 export as_echo_n_body
12279 as_echo_n='sh -c $as_echo_n_body as_echo'
12280 fi
12281 export as_echo_body
12282 as_echo='sh -c $as_echo_body as_echo'
12283fi
12284
12285# The user is always right.
12286if test "${PATH_SEPARATOR+set}" != set; then
12287 PATH_SEPARATOR=:
12288 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12289 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12290 PATH_SEPARATOR=';'
12291 }
6bf9431b
BE
12292fi
12293
12294
81ecdfbb
RW
12295# IFS
12296# We need space, tab and new line, in precisely that order. Quoting is
12297# there to prevent editors from complaining about space-tab.
12298# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12299# splitting by setting IFS to empty value.)
12300IFS=" "" $as_nl"
12301
12302# Find who we are. Look in the path if we contain no directory separator.
12303case $0 in #((
12304 *[\\/]* ) as_myself=$0 ;;
12305 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306for as_dir in $PATH
12307do
12308 IFS=$as_save_IFS
12309 test -z "$as_dir" && as_dir=.
12310 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12311 done
12312IFS=$as_save_IFS
12313
12314 ;;
12315esac
12316# We did not find ourselves, most probably we were run as `sh COMMAND'
12317# in which case we are not to be found in the path.
12318if test "x$as_myself" = x; then
12319 as_myself=$0
12320fi
12321if test ! -f "$as_myself"; then
12322 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12323 exit 1
12324fi
12325
12326# Unset variables that we do not need and which cause bugs (e.g. in
12327# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12328# suppresses any "Segmentation fault" message there. '((' could
12329# trigger a bug in pdksh 5.2.14.
12330for as_var in BASH_ENV ENV MAIL MAILPATH
12331do eval test x\${$as_var+set} = xset \
12332 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12333done
6bf9431b
BE
12334PS1='$ '
12335PS2='> '
12336PS4='+ '
12337
12338# NLS nuisances.
81ecdfbb
RW
12339LC_ALL=C
12340export LC_ALL
12341LANGUAGE=C
12342export LANGUAGE
12343
12344# CDPATH.
12345(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12346
12347
12348# as_fn_error ERROR [LINENO LOG_FD]
12349# ---------------------------------
12350# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12351# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12352# script with status $?, using 1 if that was 0.
12353as_fn_error ()
12354{
12355 as_status=$?; test $as_status -eq 0 && as_status=1
12356 if test "$3"; then
12357 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12358 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6bf9431b 12359 fi
81ecdfbb
RW
12360 $as_echo "$as_me: error: $1" >&2
12361 as_fn_exit $as_status
12362} # as_fn_error
12363
12364
12365# as_fn_set_status STATUS
12366# -----------------------
12367# Set $? to STATUS, without forking.
12368as_fn_set_status ()
12369{
12370 return $1
12371} # as_fn_set_status
6bf9431b 12372
81ecdfbb
RW
12373# as_fn_exit STATUS
12374# -----------------
12375# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12376as_fn_exit ()
12377{
12378 set +e
12379 as_fn_set_status $1
12380 exit $1
12381} # as_fn_exit
12382
12383# as_fn_unset VAR
12384# ---------------
12385# Portably unset VAR.
12386as_fn_unset ()
12387{
12388 { eval $1=; unset $1;}
12389}
12390as_unset=as_fn_unset
12391# as_fn_append VAR VALUE
12392# ----------------------
12393# Append the text in VALUE to the end of the definition contained in VAR. Take
12394# advantage of any shell optimizations that allow amortized linear growth over
12395# repeated appends, instead of the typical quadratic growth present in naive
12396# implementations.
12397if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12398 eval 'as_fn_append ()
12399 {
12400 eval $1+=\$2
12401 }'
12402else
12403 as_fn_append ()
12404 {
12405 eval $1=\$$1\$2
12406 }
12407fi # as_fn_append
12408
12409# as_fn_arith ARG...
12410# ------------------
12411# Perform arithmetic evaluation on the ARGs, and store the result in the
12412# global $as_val. Take advantage of shells that can avoid forks. The arguments
12413# must be portable across $(()) and expr.
12414if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12415 eval 'as_fn_arith ()
12416 {
12417 as_val=$(( $* ))
12418 }'
12419else
12420 as_fn_arith ()
12421 {
12422 as_val=`expr "$@" || test $? -eq 1`
12423 }
12424fi # as_fn_arith
12425
12426
12427if expr a : '\(a\)' >/dev/null 2>&1 &&
12428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6bf9431b
BE
12429 as_expr=expr
12430else
12431 as_expr=false
12432fi
12433
81ecdfbb 12434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6bf9431b
BE
12435 as_basename=basename
12436else
12437 as_basename=false
252b5132 12438fi
252b5132 12439
81ecdfbb
RW
12440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12441 as_dirname=dirname
12442else
12443 as_dirname=false
12444fi
252b5132 12445
81ecdfbb 12446as_me=`$as_basename -- "$0" ||
6bf9431b
BE
12447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12448 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
12449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12450$as_echo X/"$0" |
12451 sed '/^.*\/\([^/][^/]*\)\/*$/{
12452 s//\1/
12453 q
12454 }
12455 /^X\/\(\/\/\)$/{
12456 s//\1/
12457 q
12458 }
12459 /^X\/\(\/\).*/{
12460 s//\1/
12461 q
12462 }
12463 s/.*/./; q'`
0ab6f085 12464
0ab6f085
AM
12465# Avoid depending upon Character Ranges.
12466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12469as_cr_digits='0123456789'
12470as_cr_alnum=$as_cr_Letters$as_cr_digits
12471
81ecdfbb
RW
12472ECHO_C= ECHO_N= ECHO_T=
12473case `echo -n x` in #(((((
12474-n*)
12475 case `echo 'xy\c'` in
12476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12477 xy) ECHO_C='\c';;
12478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12479 ECHO_T=' ';;
12480 esac;;
12481*)
12482 ECHO_N='-n';;
6bf9431b
BE
12483esac
12484
81ecdfbb
RW
12485rm -f conf$$ conf$$.exe conf$$.file
12486if test -d conf$$.dir; then
12487 rm -f conf$$.dir/conf$$.file
0eee5820 12488else
81ecdfbb
RW
12489 rm -f conf$$.dir
12490 mkdir conf$$.dir 2>/dev/null
0eee5820 12491fi
81ecdfbb
RW
12492if (echo >conf$$.file) 2>/dev/null; then
12493 if ln -s conf$$.file conf$$ 2>/dev/null; then
0ab6f085 12494 as_ln_s='ln -s'
81ecdfbb
RW
12495 # ... but there are two gotchas:
12496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12498 # In both cases, we have to default to `cp -p'.
12499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12500 as_ln_s='cp -p'
12501 elif ln conf$$.file conf$$ 2>/dev/null; then
12502 as_ln_s=ln
12503 else
12504 as_ln_s='cp -p'
0ab6f085 12505 fi
6bf9431b
BE
12506else
12507 as_ln_s='cp -p'
0eee5820 12508fi
81ecdfbb
RW
12509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12510rmdir conf$$.dir 2>/dev/null
12511
12512
12513# as_fn_mkdir_p
12514# -------------
12515# Create "$as_dir" as a directory, including parents if necessary.
12516as_fn_mkdir_p ()
12517{
12518
12519 case $as_dir in #(
12520 -*) as_dir=./$as_dir;;
12521 esac
12522 test -d "$as_dir" || eval $as_mkdir_p || {
12523 as_dirs=
12524 while :; do
12525 case $as_dir in #(
12526 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12527 *) as_qdir=$as_dir;;
12528 esac
12529 as_dirs="'$as_qdir' $as_dirs"
12530 as_dir=`$as_dirname -- "$as_dir" ||
12531$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12532 X"$as_dir" : 'X\(//\)[^/]' \| \
12533 X"$as_dir" : 'X\(//\)$' \| \
12534 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12535$as_echo X"$as_dir" |
12536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12537 s//\1/
12538 q
12539 }
12540 /^X\(\/\/\)[^/].*/{
12541 s//\1/
12542 q
12543 }
12544 /^X\(\/\/\)$/{
12545 s//\1/
12546 q
12547 }
12548 /^X\(\/\).*/{
12549 s//\1/
12550 q
12551 }
12552 s/.*/./; q'`
12553 test -d "$as_dir" && break
12554 done
12555 test -z "$as_dirs" || eval "mkdir $as_dirs"
12556 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6bf9431b 12557
81ecdfbb
RW
12558
12559} # as_fn_mkdir_p
6bf9431b 12560if mkdir -p . 2>/dev/null; then
81ecdfbb 12561 as_mkdir_p='mkdir -p "$as_dir"'
0ab6f085
AM
12562else
12563 test -d ./-p && rmdir ./-p
12564 as_mkdir_p=false
1b9750d6 12565fi
0ab6f085 12566
81ecdfbb
RW
12567if test -x / >/dev/null 2>&1; then
12568 as_test_x='test -x'
12569else
12570 if ls -dL / >/dev/null 2>&1; then
12571 as_ls_L_option=L
12572 else
12573 as_ls_L_option=
12574 fi
12575 as_test_x='
12576 eval sh -c '\''
12577 if test -d "$1"; then
12578 test -d "$1/.";
12579 else
12580 case $1 in #(
12581 -*)set "./$1";;
12582 esac;
12583 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12584 ???[sx]*):;;*)false;;esac;fi
12585 '\'' sh
12586 '
12587fi
12588as_executable_p=$as_test_x
0eee5820 12589
6bf9431b
BE
12590# Sed expression to map a string onto a valid CPP name.
12591as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12592
12593# Sed expression to map a string onto a valid variable name.
12594as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12595
1b9750d6 12596
6bf9431b 12597exec 6>&1
81ecdfbb
RW
12598## ----------------------------------- ##
12599## Main body of $CONFIG_STATUS script. ##
12600## ----------------------------------- ##
12601_ASEOF
12602test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6bf9431b 12603
81ecdfbb
RW
12604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12605# Save the log message, to keep $0 and so on meaningful, and to
6bf9431b 12606# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
12607# values after options handling.
12608ac_log="
6bf9431b 12609This file was extended by $as_me, which was
81ecdfbb 12610generated by GNU Autoconf 2.64. Invocation command line was
6bf9431b
BE
12611
12612 CONFIG_FILES = $CONFIG_FILES
12613 CONFIG_HEADERS = $CONFIG_HEADERS
12614 CONFIG_LINKS = $CONFIG_LINKS
12615 CONFIG_COMMANDS = $CONFIG_COMMANDS
12616 $ $0 $@
12617
81ecdfbb
RW
12618on `(hostname || uname -n) 2>/dev/null | sed 1q`
12619"
12620
6bf9431b
BE
12621_ACEOF
12622
81ecdfbb
RW
12623case $ac_config_files in *"
12624"*) set x $ac_config_files; shift; ac_config_files=$*;;
12625esac
a2d91340 12626
81ecdfbb
RW
12627case $ac_config_headers in *"
12628"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12629esac
0ab6f085 12630
0ab6f085 12631
81ecdfbb
RW
12632cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12633# Files that config.status was made for.
12634config_files="$ac_config_files"
12635config_headers="$ac_config_headers"
12636config_commands="$ac_config_commands"
a2d91340 12637
81ecdfbb 12638_ACEOF
0ab6f085 12639
81ecdfbb 12640cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6bf9431b 12641ac_cs_usage="\
81ecdfbb
RW
12642\`$as_me' instantiates files and other configuration actions
12643from templates according to the current configuration. Unless the files
12644and actions are specified as TAGs, all are instantiated by default.
6bf9431b 12645
81ecdfbb 12646Usage: $0 [OPTION]... [TAG]...
6bf9431b
BE
12647
12648 -h, --help print this help, then exit
81ecdfbb
RW
12649 -V, --version print version number and configuration settings, then exit
12650 -q, --quiet, --silent
12651 do not print progress messages
6bf9431b
BE
12652 -d, --debug don't remove temporary files
12653 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
12654 --file=FILE[:TEMPLATE]
12655 instantiate the configuration file FILE
12656 --header=FILE[:TEMPLATE]
12657 instantiate the configuration header FILE
6bf9431b
BE
12658
12659Configuration files:
12660$config_files
12661
12662Configuration headers:
12663$config_headers
12664
12665Configuration commands:
12666$config_commands
12667
81ecdfbb 12668Report bugs to the package provider."
0ab6f085 12669
81ecdfbb
RW
12670_ACEOF
12671cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6bf9431b
BE
12672ac_cs_version="\\
12673config.status
81ecdfbb
RW
12674configured by $0, generated by GNU Autoconf 2.64,
12675 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6bf9431b 12676
81ecdfbb 12677Copyright (C) 2009 Free Software Foundation, Inc.
6bf9431b
BE
12678This config.status script is free software; the Free Software Foundation
12679gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
12680
12681ac_pwd='$ac_pwd'
12682srcdir='$srcdir'
12683INSTALL='$INSTALL'
12684MKDIR_P='$MKDIR_P'
12685AWK='$AWK'
12686test -n "\$AWK" || AWK=awk
6bf9431b
BE
12687_ACEOF
12688
81ecdfbb
RW
12689cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12690# The default lists apply if the user does not specify any file.
6bf9431b
BE
12691ac_need_defaults=:
12692while test $# != 0
12693do
12694 case $1 in
12695 --*=*)
81ecdfbb
RW
12696 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12697 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6bf9431b 12698 ac_shift=:
252b5132 12699 ;;
81ecdfbb 12700 *)
6bf9431b
BE
12701 ac_option=$1
12702 ac_optarg=$2
12703 ac_shift=shift
252b5132 12704 ;;
6bf9431b 12705 esac
252b5132 12706
6bf9431b
BE
12707 case $ac_option in
12708 # Handling of the options.
6bf9431b
BE
12709 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12710 ac_cs_recheck=: ;;
81ecdfbb
RW
12711 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12712 $as_echo "$ac_cs_version"; exit ;;
12713 --debug | --debu | --deb | --de | --d | -d )
6bf9431b
BE
12714 debug=: ;;
12715 --file | --fil | --fi | --f )
12716 $ac_shift
81ecdfbb
RW
12717 case $ac_optarg in
12718 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12719 esac
12720 as_fn_append CONFIG_FILES " '$ac_optarg'"
6bf9431b
BE
12721 ac_need_defaults=false;;
12722 --header | --heade | --head | --hea )
12723 $ac_shift
81ecdfbb
RW
12724 case $ac_optarg in
12725 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12726 esac
12727 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6bf9431b 12728 ac_need_defaults=false;;
81ecdfbb
RW
12729 --he | --h)
12730 # Conflict between --help and --header
12731 as_fn_error "ambiguous option: \`$1'
12732Try \`$0 --help' for more information.";;
12733 --help | --hel | -h )
12734 $as_echo "$ac_cs_usage"; exit ;;
6bf9431b
BE
12735 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12736 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12737 ac_cs_silent=: ;;
252b5132 12738
6bf9431b 12739 # This is an error.
81ecdfbb
RW
12740 -*) as_fn_error "unrecognized option: \`$1'
12741Try \`$0 --help' for more information." ;;
252b5132 12742
81ecdfbb
RW
12743 *) as_fn_append ac_config_targets " $1"
12744 ac_need_defaults=false ;;
252b5132 12745
6bf9431b
BE
12746 esac
12747 shift
12748done
252b5132 12749
6bf9431b 12750ac_configure_extra_args=
252b5132 12751
6bf9431b
BE
12752if $ac_cs_silent; then
12753 exec 6>/dev/null
12754 ac_configure_extra_args="$ac_configure_extra_args --silent"
12755fi
252b5132 12756
6bf9431b 12757_ACEOF
81ecdfbb 12758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6bf9431b 12759if \$ac_cs_recheck; then
81ecdfbb
RW
12760 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12761 shift
12762 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12763 CONFIG_SHELL='$SHELL'
12764 export CONFIG_SHELL
12765 exec "\$@"
6bf9431b
BE
12766fi
12767
12768_ACEOF
81ecdfbb
RW
12769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12770exec 5>>config.log
12771{
12772 echo
12773 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12774## Running $as_me. ##
12775_ASBOX
12776 $as_echo "$ac_log"
12777} >&5
6bf9431b 12778
81ecdfbb
RW
12779_ACEOF
12780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 12781#
81ecdfbb 12782# INIT-COMMANDS
252b5132 12783#
6bf9431b 12784AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
12785
12786
12787# The HP-UX ksh and POSIX shell print the target directory to stdout
12788# if CDPATH is set.
12789(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12790
12791sed_quote_subst='$sed_quote_subst'
12792double_quote_subst='$double_quote_subst'
12793delay_variable_subst='$delay_variable_subst'
3725885a
RW
12794macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12795macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12796enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12797enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12798pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12799enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12800SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12801ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12802host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12803host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12804host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12805build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12806build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12807build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12808SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12809Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12810GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12811EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12812FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12813LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12814NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12815LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12816max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12817ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12818exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12819lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12820lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12821lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12822reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12823reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12824OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12825deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12826file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12827AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12828AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12829STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12830RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12831old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12832old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12833old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12834lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12835CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12836CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12837compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12838GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12839lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12840lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12841lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12842lt_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"`'
12843objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12844MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12845lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12846lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12847lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12848lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12849lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12850need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12851DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12852NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12853LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12854OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12855OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12856libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12857shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12858extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12859archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12860enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12861export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12862whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12863compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12864old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12865old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12866archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12867archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12868module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12869module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12870with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12871allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12872no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12873hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12874hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12875hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12876hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12877hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12878hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12879hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12880hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12881inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12882link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12883fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12884always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12885export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12886exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12887include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12888prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12889file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12890variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12891need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12892need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12893version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12894runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12895shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12896shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12897libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12898library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12899soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12900install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12901postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12902postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12903finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12904finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12905hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12906sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12907sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12908hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12909enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12910enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12911enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12912old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12913striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
12914
12915LTCC='$LTCC'
12916LTCFLAGS='$LTCFLAGS'
12917compiler='$compiler_DEFAULT'
12918
3725885a
RW
12919# A function that is used when there is no print builtin or printf.
12920func_fallback_echo ()
12921{
12922 eval 'cat <<_LTECHO_EOF
12923\$1
12924_LTECHO_EOF'
12925}
12926
d7040cdb 12927# Quote evaled strings.
3725885a
RW
12928for var in SHELL \
12929ECHO \
12930SED \
d7040cdb
SE
12931GREP \
12932EGREP \
12933FGREP \
12934LD \
12935NM \
12936LN_S \
12937lt_SP2NL \
12938lt_NL2SP \
12939reload_flag \
b214d478 12940OBJDUMP \
d7040cdb
SE
12941deplibs_check_method \
12942file_magic_cmd \
12943AR \
12944AR_FLAGS \
12945STRIP \
12946RANLIB \
12947CC \
12948CFLAGS \
12949compiler \
12950lt_cv_sys_global_symbol_pipe \
12951lt_cv_sys_global_symbol_to_cdecl \
12952lt_cv_sys_global_symbol_to_c_name_address \
b214d478 12953lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
12954lt_prog_compiler_no_builtin_flag \
12955lt_prog_compiler_wl \
12956lt_prog_compiler_pic \
12957lt_prog_compiler_static \
12958lt_cv_prog_compiler_c_o \
12959need_locks \
b214d478
SE
12960DSYMUTIL \
12961NMEDIT \
12962LIPO \
12963OTOOL \
12964OTOOL64 \
d7040cdb
SE
12965shrext_cmds \
12966export_dynamic_flag_spec \
12967whole_archive_flag_spec \
12968compiler_needs_object \
12969with_gnu_ld \
12970allow_undefined_flag \
12971no_undefined_flag \
12972hardcode_libdir_flag_spec \
12973hardcode_libdir_flag_spec_ld \
12974hardcode_libdir_separator \
12975fix_srcfile_path \
12976exclude_expsyms \
12977include_expsyms \
12978file_list_spec \
12979variables_saved_for_relink \
12980libname_spec \
12981library_names_spec \
12982soname_spec \
3725885a 12983install_override_mode \
d7040cdb
SE
12984finish_eval \
12985old_striplib \
12986striplib; do
3725885a 12987 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 12988 *[\\\\\\\`\\"\\\$]*)
3725885a 12989 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
12990 ;;
12991 *)
12992 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12993 ;;
12994 esac
12995done
12996
12997# Double-quote double-evaled strings.
12998for var in reload_cmds \
12999old_postinstall_cmds \
13000old_postuninstall_cmds \
13001old_archive_cmds \
13002extract_expsyms_cmds \
13003old_archive_from_new_cmds \
13004old_archive_from_expsyms_cmds \
13005archive_cmds \
13006archive_expsym_cmds \
13007module_cmds \
13008module_expsym_cmds \
13009export_symbols_cmds \
13010prelink_cmds \
13011postinstall_cmds \
13012postuninstall_cmds \
13013finish_cmds \
13014sys_lib_search_path_spec \
13015sys_lib_dlsearch_path_spec; do
3725885a 13016 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 13017 *[\\\\\\\`\\"\\\$]*)
3725885a 13018 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
13019 ;;
13020 *)
13021 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13022 ;;
13023 esac
13024done
13025
d7040cdb
SE
13026ac_aux_dir='$ac_aux_dir'
13027xsi_shell='$xsi_shell'
13028lt_shell_append='$lt_shell_append'
13029
13030# See if we are running on zsh, and set the options which allow our
13031# commands through without removal of \ escapes INIT.
13032if test -n "\${ZSH_VERSION+set}" ; then
13033 setopt NO_GLOB_SUBST
13034fi
13035
13036
13037 PACKAGE='$PACKAGE'
13038 VERSION='$VERSION'
13039 TIMESTAMP='$TIMESTAMP'
13040 RM='$RM'
13041 ofile='$ofile'
13042
13043
13044
20e95c23
DJ
13045# Capture the value of obsolete ALL_LINGUAS because we need it to compute
13046 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13047 # from automake.
13048 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13049 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13050 LINGUAS="${LINGUAS-%UNSET%}"
6bf9431b
BE
13051
13052
13053_ACEOF
13054
81ecdfbb 13055cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1b9750d6 13056
81ecdfbb 13057# Handling of arguments.
6bf9431b 13058for ac_config_target in $ac_config_targets
252b5132 13059do
81ecdfbb
RW
13060 case $ac_config_target in
13061 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13062 "gconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
13063 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13064 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13065 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13066 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13067
13068 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
13069 esac
13070done
13071
81ecdfbb 13072
6bf9431b
BE
13073# If the user did not use the arguments to specify the items to instantiate,
13074# then the envvar interface is used. Set only those that are not.
13075# We use the long form for the default assignment because of an extremely
13076# bizarre bug on SunOS 4.1.3.
13077if $ac_need_defaults; then
13078 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13079 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13080 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13081fi
13082
13083# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 13084# simply because there is no reason against having it here, and in addition,
6bf9431b 13085# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
13086# Hook for its removal unless debugging.
13087# Note that there is a small window in which the directory will not be cleaned:
13088# after its creation but before its name has been assigned to `$tmp'.
6bf9431b
BE
13089$debug ||
13090{
81ecdfbb
RW
13091 tmp=
13092 trap 'exit_status=$?
13093 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13094' 0
13095 trap 'as_fn_exit 1' 1 2 13 15
6bf9431b 13096}
6bf9431b 13097# Create a (secure) tmp directory for tmp files.
252b5132 13098
6bf9431b 13099{
81ecdfbb 13100 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6bf9431b
BE
13101 test -n "$tmp" && test -d "$tmp"
13102} ||
13103{
81ecdfbb
RW
13104 tmp=./conf$$-$RANDOM
13105 (umask 077 && mkdir "$tmp")
13106} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13107
13108# Set up the scripts for CONFIG_FILES section.
13109# No need to generate them if there are no CONFIG_FILES.
13110# This happens for instance with `./config.status config.h'.
13111if test -n "$CONFIG_FILES"; then
13112
13113
13114ac_cr=`echo X | tr X '\015'`
13115# On cygwin, bash can eat \r inside `` if the user requested igncr.
13116# But we know of no other shell where ac_cr would be empty at this
13117# point, so we can use a bashism as a fallback.
13118if test "x$ac_cr" = x; then
13119 eval ac_cr=\$\'\\r\'
13120fi
13121ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13122if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13123 ac_cs_awk_cr='\r'
13124else
13125 ac_cs_awk_cr=$ac_cr
13126fi
13127
13128echo 'BEGIN {' >"$tmp/subs1.awk" &&
13129_ACEOF
13130
13131
13132{
13133 echo "cat >conf$$subs.awk <<_ACEOF" &&
13134 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13135 echo "_ACEOF"
13136} >conf$$subs.sh ||
13137 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13138ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13139ac_delim='%!_!# '
13140for ac_last_try in false false false false false :; do
13141 . ./conf$$subs.sh ||
13142 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13143
13144 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13145 if test $ac_delim_n = $ac_delim_num; then
13146 break
13147 elif $ac_last_try; then
13148 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13149 else
13150 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13151 fi
13152done
13153rm -f conf$$subs.sh
13154
13155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13156cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13157_ACEOF
13158sed -n '
13159h
13160s/^/S["/; s/!.*/"]=/
13161p
13162g
13163s/^[^!]*!//
13164:repl
13165t repl
13166s/'"$ac_delim"'$//
13167t delim
13168:nl
13169h
13170s/\(.\{148\}\).*/\1/
13171t more1
13172s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13173p
13174n
13175b repl
13176:more1
13177s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13178p
13179g
13180s/.\{148\}//
13181t nl
13182:delim
13183h
13184s/\(.\{148\}\).*/\1/
13185t more2
13186s/["\\]/\\&/g; s/^/"/; s/$/"/
13187p
13188b
13189:more2
13190s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13191p
13192g
13193s/.\{148\}//
13194t delim
13195' <conf$$subs.awk | sed '
13196/^[^""]/{
13197 N
13198 s/\n//
13199}
13200' >>$CONFIG_STATUS || ac_write_fail=1
13201rm -f conf$$subs.awk
13202cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13203_ACAWK
13204cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13205 for (key in S) S_is_set[key] = 1
13206 FS = "\a"
13207
13208}
6bf9431b 13209{
81ecdfbb
RW
13210 line = $ 0
13211 nfields = split(line, field, "@")
13212 substed = 0
13213 len = length(field[1])
13214 for (i = 2; i < nfields; i++) {
13215 key = field[i]
13216 keylen = length(key)
13217 if (S_is_set[key]) {
13218 value = S[key]
13219 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13220 len += length(value) + length(field[++i])
13221 substed = 1
13222 } else
13223 len += 1 + keylen
13224 }
13225
13226 print line
6bf9431b 13227}
252b5132 13228
81ecdfbb
RW
13229_ACAWK
13230_ACEOF
13231cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13232if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13233 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13234else
13235 cat
13236fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13237 || as_fn_error "could not setup config files machinery" "$LINENO" 5
0ab6f085
AM
13238_ACEOF
13239
81ecdfbb
RW
13240# VPATH may cause trouble with some makes, so we remove $(srcdir),
13241# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13242# trailing colons and then remove the whole line if VPATH becomes empty
13243# (actually we leave an empty line to preserve line numbers).
13244if test "x$srcdir" = x.; then
13245 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13246s/:*\$(srcdir):*/:/
13247s/:*\${srcdir}:*/:/
13248s/:*@srcdir@:*/:/
13249s/^\([^=]*=[ ]*\):*/\1/
13250s/:*$//
13251s/^[^=]*=[ ]*$//
13252}'
13253fi
13254
13255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13256fi # test -n "$CONFIG_FILES"
0ab6f085 13257
81ecdfbb
RW
13258# Set up the scripts for CONFIG_HEADERS section.
13259# No need to generate them if there are no CONFIG_HEADERS.
13260# This happens for instance with `./config.status Makefile'.
13261if test -n "$CONFIG_HEADERS"; then
13262cat >"$tmp/defines.awk" <<\_ACAWK ||
13263BEGIN {
13264_ACEOF
6bf9431b 13265
81ecdfbb
RW
13266# Transform confdefs.h into an awk script `defines.awk', embedded as
13267# here-document in config.status, that substitutes the proper values into
13268# config.h.in to produce config.h.
1b9750d6 13269
81ecdfbb
RW
13270# Create a delimiter string that does not exist in confdefs.h, to ease
13271# handling of long lines.
13272ac_delim='%!_!# '
13273for ac_last_try in false false :; do
13274 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13275 if test -z "$ac_t"; then
13276 break
13277 elif $ac_last_try; then
13278 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13279 else
13280 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13281 fi
13282done
13283
13284# For the awk script, D is an array of macro values keyed by name,
13285# likewise P contains macro parameters if any. Preserve backslash
13286# newline sequences.
13287
13288ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13289sed -n '
13290s/.\{148\}/&'"$ac_delim"'/g
13291t rset
13292:rset
13293s/^[ ]*#[ ]*define[ ][ ]*/ /
13294t def
13295d
13296:def
13297s/\\$//
13298t bsnl
13299s/["\\]/\\&/g
13300s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13301D["\1"]=" \3"/p
13302s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13303d
13304:bsnl
13305s/["\\]/\\&/g
13306s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13307D["\1"]=" \3\\\\\\n"\\/p
13308t cont
13309s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13310t cont
13311d
13312:cont
13313n
13314s/.\{148\}/&'"$ac_delim"'/g
13315t clear
13316:clear
13317s/\\$//
13318t bsnlc
13319s/["\\]/\\&/g; s/^/"/; s/$/"/p
13320d
13321:bsnlc
13322s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13323b cont
13324' <confdefs.h | sed '
13325s/'"$ac_delim"'/"\\\
13326"/g' >>$CONFIG_STATUS || ac_write_fail=1
13327
13328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13329 for (key in D) D_is_set[key] = 1
13330 FS = "\a"
13331}
13332/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13333 line = \$ 0
13334 split(line, arg, " ")
13335 if (arg[1] == "#") {
13336 defundef = arg[2]
13337 mac1 = arg[3]
13338 } else {
13339 defundef = substr(arg[1], 2)
13340 mac1 = arg[2]
13341 }
13342 split(mac1, mac2, "(") #)
13343 macro = mac2[1]
13344 prefix = substr(line, 1, index(line, defundef) - 1)
13345 if (D_is_set[macro]) {
13346 # Preserve the white space surrounding the "#".
13347 print prefix "define", macro P[macro] D[macro]
13348 next
13349 } else {
13350 # Replace #undef with comments. This is necessary, for example,
13351 # in the case of _POSIX_SOURCE, which is predefined and required
13352 # on some systems where configure will not decide to define it.
13353 if (defundef == "undef") {
13354 print "/*", prefix defundef, macro, "*/"
13355 next
13356 }
13357 }
13358}
13359{ print }
13360_ACAWK
1b9750d6 13361_ACEOF
81ecdfbb
RW
13362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13363 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13364fi # test -n "$CONFIG_HEADERS"
1b9750d6 13365
81ecdfbb
RW
13366
13367eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13368shift
13369for ac_tag
13370do
13371 case $ac_tag in
13372 :[FHLC]) ac_mode=$ac_tag; continue;;
13373 esac
13374 case $ac_mode$ac_tag in
13375 :[FHL]*:*);;
13376 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13377 :[FH]-) ac_tag=-:-;;
13378 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13379 esac
13380 ac_save_IFS=$IFS
13381 IFS=:
13382 set x $ac_tag
13383 IFS=$ac_save_IFS
13384 shift
13385 ac_file=$1
13386 shift
13387
13388 case $ac_mode in
13389 :L) ac_source=$1;;
13390 :[FH])
13391 ac_file_inputs=
13392 for ac_f
13393 do
13394 case $ac_f in
13395 -) ac_f="$tmp/stdin";;
13396 *) # Look for the file first in the build tree, then in the source tree
13397 # (if the path is not absolute). The absolute path cannot be DOS-style,
13398 # because $ac_f cannot contain `:'.
13399 test -f "$ac_f" ||
13400 case $ac_f in
13401 [\\/$]*) false;;
13402 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13403 esac ||
13404 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13405 esac
13406 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13407 as_fn_append ac_file_inputs " '$ac_f'"
13408 done
13409
13410 # Let's still pretend it is `configure' which instantiates (i.e., don't
13411 # use $as_me), people would be surprised to read:
13412 # /* config.h. Generated by config.status. */
13413 configure_input='Generated from '`
13414 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13415 `' by configure.'
13416 if test x"$ac_file" != x-; then
13417 configure_input="$ac_file. $configure_input"
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13419$as_echo "$as_me: creating $ac_file" >&6;}
0ab6f085 13420 fi
81ecdfbb
RW
13421 # Neutralize special characters interpreted by sed in replacement strings.
13422 case $configure_input in #(
13423 *\&* | *\|* | *\\* )
13424 ac_sed_conf_input=`$as_echo "$configure_input" |
13425 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13426 *) ac_sed_conf_input=$configure_input;;
13427 esac
1b9750d6 13428
81ecdfbb
RW
13429 case $ac_tag in
13430 *:-:* | *:-) cat >"$tmp/stdin" \
13431 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13432 esac
13433 ;;
252b5132
RH
13434 esac
13435
81ecdfbb 13436 ac_dir=`$as_dirname -- "$ac_file" ||
6bf9431b
BE
13437$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13438 X"$ac_file" : 'X\(//\)[^/]' \| \
13439 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
13440 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13441$as_echo X"$ac_file" |
13442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13443 s//\1/
13444 q
13445 }
13446 /^X\(\/\/\)[^/].*/{
13447 s//\1/
13448 q
13449 }
13450 /^X\(\/\/\)$/{
13451 s//\1/
13452 q
13453 }
13454 /^X\(\/\).*/{
13455 s//\1/
13456 q
13457 }
13458 s/.*/./; q'`
13459 as_dir="$ac_dir"; as_fn_mkdir_p
6bf9431b
BE
13460 ac_builddir=.
13461
81ecdfbb
RW
13462case "$ac_dir" in
13463.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13464*)
13465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13466 # A ".." for each directory in $ac_dir_suffix.
13467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13468 case $ac_top_builddir_sub in
13469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13471 esac ;;
13472esac
13473ac_abs_top_builddir=$ac_pwd
13474ac_abs_builddir=$ac_pwd$ac_dir_suffix
13475# for backward compatibility:
13476ac_top_builddir=$ac_top_build_prefix
252b5132 13477
6bf9431b 13478case $srcdir in
81ecdfbb 13479 .) # We are building in place.
6bf9431b 13480 ac_srcdir=.
81ecdfbb
RW
13481 ac_top_srcdir=$ac_top_builddir_sub
13482 ac_abs_top_srcdir=$ac_pwd ;;
13483 [\\/]* | ?:[\\/]* ) # Absolute name.
6bf9431b 13484 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
13485 ac_top_srcdir=$srcdir
13486 ac_abs_top_srcdir=$srcdir ;;
13487 *) # Relative name.
13488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13489 ac_top_srcdir=$ac_top_build_prefix$srcdir
13490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6bf9431b 13491esac
81ecdfbb 13492ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 13493
252b5132 13494
81ecdfbb
RW
13495 case $ac_mode in
13496 :F)
13497 #
13498 # CONFIG_FILE
13499 #
6bf9431b
BE
13500
13501 case $INSTALL in
13502 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
13503 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13504 esac
13505 ac_MKDIR_P=$MKDIR_P
13506 case $MKDIR_P in
13507 [\\/$]* | ?:[\\/]* ) ;;
13508 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
252b5132 13509 esac
81ecdfbb 13510_ACEOF
1b9750d6 13511
81ecdfbb
RW
13512cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13513# If the template does not know about datarootdir, expand it.
13514# FIXME: This hack should be removed a few years after 2.60.
13515ac_datarootdir_hack=; ac_datarootdir_seen=
13516ac_sed_dataroot='
13517/datarootdir/ {
13518 p
13519 q
13520}
13521/@datadir@/p
13522/@docdir@/p
13523/@infodir@/p
13524/@localedir@/p
13525/@mandir@/p'
13526case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13527*datarootdir*) ac_datarootdir_seen=yes;;
13528*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13530$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13531_ACEOF
13532cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13533 ac_datarootdir_hack='
13534 s&@datadir@&$datadir&g
13535 s&@docdir@&$docdir&g
13536 s&@infodir@&$infodir&g
13537 s&@localedir@&$localedir&g
13538 s&@mandir@&$mandir&g
13539 s&\\\${datarootdir}&$datarootdir&g' ;;
13540esac
6bf9431b 13541_ACEOF
81ecdfbb
RW
13542
13543# Neutralize VPATH when `$srcdir' = `.'.
13544# Shell code in configure.ac might set extrasub.
13545# FIXME: do we really want to maintain this feature?
13546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13547ac_sed_extra="$ac_vpsub
6bf9431b
BE
13548$extrasub
13549_ACEOF
81ecdfbb 13550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6bf9431b
BE
13551:t
13552/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
13553s|@configure_input@|$ac_sed_conf_input|;t t
13554s&@top_builddir@&$ac_top_builddir_sub&;t t
13555s&@top_build_prefix@&$ac_top_build_prefix&;t t
13556s&@srcdir@&$ac_srcdir&;t t
13557s&@abs_srcdir@&$ac_abs_srcdir&;t t
13558s&@top_srcdir@&$ac_top_srcdir&;t t
13559s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13560s&@builddir@&$ac_builddir&;t t
13561s&@abs_builddir@&$ac_abs_builddir&;t t
13562s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13563s&@INSTALL@&$ac_INSTALL&;t t
13564s&@MKDIR_P@&$ac_MKDIR_P&;t t
13565$ac_datarootdir_hack
13566"
13567eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13568 || as_fn_error "could not create $ac_file" "$LINENO" 5
13569
13570test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13571 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13572 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13574which seems to be undefined. Please make sure it is defined." >&5
13575$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13576which seems to be undefined. Please make sure it is defined." >&2;}
13577
13578 rm -f "$tmp/stdin"
6bf9431b 13579 case $ac_file in
81ecdfbb
RW
13580 -) cat "$tmp/out" && rm -f "$tmp/out";;
13581 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13582 esac \
13583 || as_fn_error "could not create $ac_file" "$LINENO" 5
13584 ;;
13585 :H)
13586 #
13587 # CONFIG_HEADER
13588 #
6bf9431b 13589 if test x"$ac_file" != x-; then
81ecdfbb
RW
13590 {
13591 $as_echo "/* $configure_input */" \
13592 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13593 } >"$tmp/config.h" \
13594 || as_fn_error "could not create $ac_file" "$LINENO" 5
13595 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13597$as_echo "$as_me: $ac_file is unchanged" >&6;}
6bf9431b 13598 else
81ecdfbb
RW
13599 rm -f "$ac_file"
13600 mv "$tmp/config.h" "$ac_file" \
13601 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 13602 fi
6bf9431b 13603 else
81ecdfbb
RW
13604 $as_echo "/* $configure_input */" \
13605 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13606 || as_fn_error "could not create -" "$LINENO" 5
252b5132 13607 fi
81ecdfbb
RW
13608# Compute "$ac_file"'s index in $config_headers.
13609_am_arg="$ac_file"
6bf9431b
BE
13610_am_stamp_count=1
13611for _am_header in $config_headers :; do
13612 case $_am_header in
81ecdfbb 13613 $_am_arg | $_am_arg:* )
6bf9431b
BE
13614 break ;;
13615 * )
13616 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13617 esac
13618done
81ecdfbb
RW
13619echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13620$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13621 X"$_am_arg" : 'X\(//\)[^/]' \| \
13622 X"$_am_arg" : 'X\(//\)$' \| \
13623 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13624$as_echo X"$_am_arg" |
13625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13626 s//\1/
13627 q
13628 }
13629 /^X\(\/\/\)[^/].*/{
13630 s//\1/
13631 q
13632 }
13633 /^X\(\/\/\)$/{
13634 s//\1/
13635 q
13636 }
13637 /^X\(\/\).*/{
13638 s//\1/
13639 q
13640 }
13641 s/.*/./; q'`/stamp-h$_am_stamp_count
13642 ;;
0ab6f085 13643
81ecdfbb
RW
13644 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13645$as_echo "$as_me: executing $ac_file commands" >&6;}
13646 ;;
13647 esac
6bf9431b
BE
13648
13649
81ecdfbb
RW
13650 case $ac_file$ac_mode in
13651 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13652 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13653 # are listed without --file. Let's play safe and only enable the eval
13654 # if we detect the quoting.
13655 case $CONFIG_FILES in
13656 *\'*) eval set x "$CONFIG_FILES" ;;
13657 *) set x $CONFIG_FILES ;;
13658 esac
13659 shift
13660 for mf
13661 do
13662 # Strip MF so we end up with the name of the file.
13663 mf=`echo "$mf" | sed -e 's/:.*$//'`
13664 # Check whether this is an Automake generated Makefile or not.
13665 # We used to match only the files named `Makefile.in', but
13666 # some people rename them; so instead we look at the file content.
13667 # Grep'ing the first line is not enough: some people post-process
13668 # each Makefile.in and add a new line on top of each file to say so.
13669 # Grep'ing the whole file is not good either: AIX grep has a line
13670 # limit of 2048, but all sed's we know have understand at least 4000.
13671 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13672 dirpart=`$as_dirname -- "$mf" ||
6bf9431b
BE
13673$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13674 X"$mf" : 'X\(//\)[^/]' \| \
13675 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
13676 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13677$as_echo X"$mf" |
13678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13679 s//\1/
13680 q
13681 }
13682 /^X\(\/\/\)[^/].*/{
13683 s//\1/
13684 q
13685 }
13686 /^X\(\/\/\)$/{
13687 s//\1/
13688 q
13689 }
13690 /^X\(\/\).*/{
13691 s//\1/
13692 q
13693 }
13694 s/.*/./; q'`
13695 else
13696 continue
13697 fi
13698 # Extract the definition of DEPDIR, am__include, and am__quote
13699 # from the Makefile without running `make'.
13700 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13701 test -z "$DEPDIR" && continue
13702 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13703 test -z "am__include" && continue
13704 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13705 # When using ansi2knr, U may be empty or an underscore; expand it
13706 U=`sed -n 's/^U = //p' < "$mf"`
13707 # Find all dependency output files, they are included files with
13708 # $(DEPDIR) in their names. We invoke sed twice because it is the
13709 # simplest approach to changing $(DEPDIR) to its actual value in the
13710 # expansion.
13711 for file in `sed -n "
13712 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13713 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13714 # Make sure the directory exists.
13715 test -f "$dirpart/$file" && continue
13716 fdir=`$as_dirname -- "$file" ||
6bf9431b
BE
13717$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13718 X"$file" : 'X\(//\)[^/]' \| \
13719 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
13720 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13721$as_echo X"$file" |
13722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13723 s//\1/
13724 q
13725 }
13726 /^X\(\/\/\)[^/].*/{
13727 s//\1/
13728 q
13729 }
13730 /^X\(\/\/\)$/{
13731 s//\1/
13732 q
13733 }
13734 /^X\(\/\).*/{
13735 s//\1/
13736 q
13737 }
13738 s/.*/./; q'`
13739 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13740 # echo "creating $dirpart/$file"
13741 echo '# dummy' > "$dirpart/$file"
6bf9431b 13742 done
6bf9431b 13743 done
81ecdfbb 13744}
d7040cdb 13745 ;;
81ecdfbb 13746 "libtool":C)
d7040cdb
SE
13747
13748 # See if we are running on zsh, and set the options which allow our
13749 # commands through without removal of \ escapes.
13750 if test -n "${ZSH_VERSION+set}" ; then
13751 setopt NO_GLOB_SUBST
13752 fi
13753
13754 cfgfile="${ofile}T"
13755 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13756 $RM "$cfgfile"
13757
13758 cat <<_LT_EOF >> "$cfgfile"
13759#! $SHELL
13760
13761# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 13762# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
13763# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13764# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13765#
b214d478 13766# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 13767# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b214d478 13768# Written by Gordon Matzigkeit, 1996
d7040cdb 13769#
b214d478 13770# This file is part of GNU Libtool.
d7040cdb 13771#
b214d478
SE
13772# GNU Libtool is free software; you can redistribute it and/or
13773# modify it under the terms of the GNU General Public License as
13774# published by the Free Software Foundation; either version 2 of
13775# the License, or (at your option) any later version.
d7040cdb 13776#
b214d478
SE
13777# As a special exception to the GNU General Public License,
13778# if you distribute this file as part of a program or library that
13779# is built using GNU Libtool, you may include this file under the
13780# same distribution terms that you use for the rest of that program.
d7040cdb 13781#
b214d478
SE
13782# GNU Libtool is distributed in the hope that it will be useful,
13783# but WITHOUT ANY WARRANTY; without even the implied warranty of
13784# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13785# GNU General Public License for more details.
d7040cdb 13786#
b214d478
SE
13787# You should have received a copy of the GNU General Public License
13788# along with GNU Libtool; see the file COPYING. If not, a copy
13789# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13790# obtained by writing to the Free Software Foundation, Inc.,
13791# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
13792
13793
13794# The names of the tagged configurations supported by this script.
13795available_tags=""
13796
13797# ### BEGIN LIBTOOL CONFIG
13798
13799# Which release of libtool.m4 was used?
13800macro_version=$macro_version
13801macro_revision=$macro_revision
13802
13803# Whether or not to build shared libraries.
13804build_libtool_libs=$enable_shared
13805
13806# Whether or not to build static libraries.
13807build_old_libs=$enable_static
13808
13809# What type of objects to build.
13810pic_mode=$pic_mode
13811
13812# Whether or not to optimize for fast installation.
13813fast_install=$enable_fast_install
13814
3725885a
RW
13815# Shell to use when invoking shell scripts.
13816SHELL=$lt_SHELL
13817
13818# An echo program that protects backslashes.
13819ECHO=$lt_ECHO
13820
d7040cdb
SE
13821# The host system.
13822host_alias=$host_alias
13823host=$host
13824host_os=$host_os
13825
13826# The build system.
13827build_alias=$build_alias
13828build=$build
13829build_os=$build_os
13830
13831# A sed program that does not truncate output.
13832SED=$lt_SED
13833
13834# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13835Xsed="\$SED -e 1s/^X//"
13836
13837# A grep program that handles long lines.
13838GREP=$lt_GREP
13839
13840# An ERE matcher.
13841EGREP=$lt_EGREP
13842
13843# A literal string matcher.
13844FGREP=$lt_FGREP
13845
13846# A BSD- or MS-compatible name lister.
13847NM=$lt_NM
13848
13849# Whether we need soft or hard links.
13850LN_S=$lt_LN_S
13851
13852# What is the maximum length of a command?
13853max_cmd_len=$max_cmd_len
13854
13855# Object file suffix (normally "o").
13856objext=$ac_objext
13857
13858# Executable file suffix (normally "").
13859exeext=$exeext
13860
13861# whether the shell understands "unset".
13862lt_unset=$lt_unset
13863
13864# turn spaces into newlines.
13865SP2NL=$lt_lt_SP2NL
13866
13867# turn newlines into spaces.
13868NL2SP=$lt_lt_NL2SP
13869
b214d478
SE
13870# An object symbol dumper.
13871OBJDUMP=$lt_OBJDUMP
13872
d7040cdb
SE
13873# Method to check whether dependent libraries are shared objects.
13874deplibs_check_method=$lt_deplibs_check_method
13875
13876# Command to use when deplibs_check_method == "file_magic".
13877file_magic_cmd=$lt_file_magic_cmd
13878
13879# The archiver.
13880AR=$lt_AR
13881AR_FLAGS=$lt_AR_FLAGS
13882
13883# A symbol stripping program.
13884STRIP=$lt_STRIP
13885
13886# Commands used to install an old-style archive.
13887RANLIB=$lt_RANLIB
13888old_postinstall_cmds=$lt_old_postinstall_cmds
13889old_postuninstall_cmds=$lt_old_postuninstall_cmds
13890
3725885a
RW
13891# Whether to use a lock for old archive extraction.
13892lock_old_archive_extraction=$lock_old_archive_extraction
13893
d7040cdb
SE
13894# A C compiler.
13895LTCC=$lt_CC
13896
13897# LTCC compiler flags.
13898LTCFLAGS=$lt_CFLAGS
13899
13900# Take the output of nm and produce a listing of raw symbols and C names.
13901global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13902
13903# Transform the output of nm in a proper C declaration.
13904global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13905
13906# Transform the output of nm in a C name address pair.
13907global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13908
b214d478
SE
13909# Transform the output of nm in a C name address pair when lib prefix is needed.
13910global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13911
d7040cdb
SE
13912# The name of the directory that contains temporary libtool files.
13913objdir=$objdir
13914
d7040cdb
SE
13915# Used to examine libraries when file_magic_cmd begins with "file".
13916MAGIC_CMD=$MAGIC_CMD
13917
13918# Must we lock files when doing compilation?
13919need_locks=$lt_need_locks
13920
b214d478
SE
13921# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13922DSYMUTIL=$lt_DSYMUTIL
13923
13924# Tool to change global to local symbols on Mac OS X.
13925NMEDIT=$lt_NMEDIT
13926
13927# Tool to manipulate fat objects and archives on Mac OS X.
13928LIPO=$lt_LIPO
13929
13930# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13931OTOOL=$lt_OTOOL
13932
13933# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13934OTOOL64=$lt_OTOOL64
13935
d7040cdb
SE
13936# Old archive suffix (normally "a").
13937libext=$libext
13938
13939# Shared library suffix (normally ".so").
13940shrext_cmds=$lt_shrext_cmds
13941
13942# The commands to extract the exported symbol list from a shared archive.
13943extract_expsyms_cmds=$lt_extract_expsyms_cmds
13944
13945# Variables whose values should be saved in libtool wrapper scripts and
13946# restored at link time.
13947variables_saved_for_relink=$lt_variables_saved_for_relink
13948
13949# Do we need the "lib" prefix for modules?
13950need_lib_prefix=$need_lib_prefix
13951
13952# Do we need a version for libraries?
13953need_version=$need_version
13954
13955# Library versioning type.
13956version_type=$version_type
13957
13958# Shared library runtime path variable.
13959runpath_var=$runpath_var
13960
13961# Shared library path variable.
13962shlibpath_var=$shlibpath_var
13963
13964# Is shlibpath searched before the hard-coded library search path?
13965shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13966
13967# Format of library name prefix.
13968libname_spec=$lt_libname_spec
13969
13970# List of archive names. First name is the real one, the rest are links.
13971# The last name is the one that the linker finds with -lNAME
13972library_names_spec=$lt_library_names_spec
13973
13974# The coded name of the library, if different from the real name.
13975soname_spec=$lt_soname_spec
13976
3725885a
RW
13977# Permission mode override for installation of shared libraries.
13978install_override_mode=$lt_install_override_mode
13979
d7040cdb
SE
13980# Command to use after installation of a shared archive.
13981postinstall_cmds=$lt_postinstall_cmds
13982
13983# Command to use after uninstallation of a shared archive.
13984postuninstall_cmds=$lt_postuninstall_cmds
13985
13986# Commands used to finish a libtool library installation in a directory.
13987finish_cmds=$lt_finish_cmds
13988
13989# As "finish_cmds", except a single script fragment to be evaled but
13990# not shown.
13991finish_eval=$lt_finish_eval
13992
13993# Whether we should hardcode library paths into libraries.
13994hardcode_into_libs=$hardcode_into_libs
13995
13996# Compile-time system search path for libraries.
13997sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13998
13999# Run-time system search path for libraries.
14000sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14001
14002# Whether dlopen is supported.
14003dlopen_support=$enable_dlopen
14004
14005# Whether dlopen of programs is supported.
14006dlopen_self=$enable_dlopen_self
14007
14008# Whether dlopen of statically linked programs is supported.
14009dlopen_self_static=$enable_dlopen_self_static
14010
14011# Commands to strip libraries.
14012old_striplib=$lt_old_striplib
14013striplib=$lt_striplib
14014
14015
14016# The linker used to build libraries.
14017LD=$lt_LD
14018
3725885a
RW
14019# How to create reloadable object files.
14020reload_flag=$lt_reload_flag
14021reload_cmds=$lt_reload_cmds
14022
d7040cdb
SE
14023# Commands used to build an old-style archive.
14024old_archive_cmds=$lt_old_archive_cmds
14025
14026# A language specific compiler.
14027CC=$lt_compiler
14028
14029# Is the compiler the GNU compiler?
14030with_gcc=$GCC
14031
14032# Compiler flag to turn off builtin functions.
14033no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14034
14035# How to pass a linker flag through the compiler.
14036wl=$lt_lt_prog_compiler_wl
14037
14038# Additional compiler flags for building library objects.
14039pic_flag=$lt_lt_prog_compiler_pic
14040
14041# Compiler flag to prevent dynamic linking.
14042link_static_flag=$lt_lt_prog_compiler_static
14043
14044# Does compiler simultaneously support -c and -o options?
14045compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14046
14047# Whether or not to add -lc for building shared libraries.
14048build_libtool_need_lc=$archive_cmds_need_lc
14049
14050# Whether or not to disallow shared libs when runtime libs are static.
14051allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14052
14053# Compiler flag to allow reflexive dlopens.
14054export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14055
14056# Compiler flag to generate shared objects directly from archives.
14057whole_archive_flag_spec=$lt_whole_archive_flag_spec
14058
14059# Whether the compiler copes with passing no objects directly.
14060compiler_needs_object=$lt_compiler_needs_object
14061
14062# Create an old-style archive from a shared archive.
14063old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14064
14065# Create a temporary old-style archive to link instead of a shared archive.
14066old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14067
14068# Commands used to build a shared archive.
14069archive_cmds=$lt_archive_cmds
14070archive_expsym_cmds=$lt_archive_expsym_cmds
14071
14072# Commands used to build a loadable module if different from building
14073# a shared archive.
14074module_cmds=$lt_module_cmds
14075module_expsym_cmds=$lt_module_expsym_cmds
14076
14077# Whether we are building with GNU ld or not.
14078with_gnu_ld=$lt_with_gnu_ld
14079
14080# Flag that allows shared libraries with undefined symbols to be built.
14081allow_undefined_flag=$lt_allow_undefined_flag
14082
14083# Flag that enforces no undefined symbols.
14084no_undefined_flag=$lt_no_undefined_flag
14085
14086# Flag to hardcode \$libdir into a binary during linking.
14087# This must work even if \$libdir does not exist
14088hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14089
14090# If ld is used when linking, flag to hardcode \$libdir into a binary
14091# during linking. This must work even if \$libdir does not exist.
14092hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14093
14094# Whether we need a single "-rpath" flag with a separated argument.
14095hardcode_libdir_separator=$lt_hardcode_libdir_separator
14096
14097# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14098# DIR into the resulting binary.
14099hardcode_direct=$hardcode_direct
14100
14101# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14102# DIR into the resulting binary and the resulting library dependency is
14103# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14104# library is relocated.
14105hardcode_direct_absolute=$hardcode_direct_absolute
14106
14107# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14108# into the resulting binary.
14109hardcode_minus_L=$hardcode_minus_L
14110
14111# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14112# into the resulting binary.
14113hardcode_shlibpath_var=$hardcode_shlibpath_var
14114
14115# Set to "yes" if building a shared library automatically hardcodes DIR
14116# into the library and all subsequent libraries and executables linked
14117# against it.
14118hardcode_automatic=$hardcode_automatic
14119
14120# Set to yes if linker adds runtime paths of dependent libraries
14121# to runtime path list.
14122inherit_rpath=$inherit_rpath
14123
14124# Whether libtool must link a program against all its dependency libraries.
14125link_all_deplibs=$link_all_deplibs
14126
14127# Fix the shell variable \$srcfile for the compiler.
14128fix_srcfile_path=$lt_fix_srcfile_path
14129
14130# Set to "yes" if exported symbols are required.
14131always_export_symbols=$always_export_symbols
14132
14133# The commands to list exported symbols.
14134export_symbols_cmds=$lt_export_symbols_cmds
14135
14136# Symbols that should not be listed in the preloaded symbols.
14137exclude_expsyms=$lt_exclude_expsyms
14138
14139# Symbols that must always be exported.
14140include_expsyms=$lt_include_expsyms
14141
14142# Commands necessary for linking programs (against libraries) with templates.
14143prelink_cmds=$lt_prelink_cmds
14144
14145# Specify filename containing input files.
14146file_list_spec=$lt_file_list_spec
14147
14148# How to hardcode a shared library path into an executable.
14149hardcode_action=$hardcode_action
14150
14151# ### END LIBTOOL CONFIG
14152
14153_LT_EOF
14154
14155 case $host_os in
14156 aix3*)
14157 cat <<\_LT_EOF >> "$cfgfile"
14158# AIX sometimes has problems with the GCC collect2 program. For some
14159# reason, if we set the COLLECT_NAMES environment variable, the problems
14160# vanish in a puff of smoke.
14161if test "X${COLLECT_NAMES+set}" != Xset; then
14162 COLLECT_NAMES=
14163 export COLLECT_NAMES
14164fi
14165_LT_EOF
14166 ;;
14167 esac
14168
14169
14170ltmain="$ac_aux_dir/ltmain.sh"
14171
14172
14173 # We use sed instead of cat because bash on DJGPP gets confused if
14174 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14175 # text mode, it properly converts lines to CR/LF. This bash problem
14176 # is reportedly fixed, but why not run on old versions too?
14177 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14178 || (rm -f "$cfgfile"; exit 1)
14179
14180 case $xsi_shell in
14181 yes)
14182 cat << \_LT_EOF >> "$cfgfile"
b214d478 14183
d7040cdb
SE
14184# func_dirname file append nondir_replacement
14185# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14186# otherwise set result to NONDIR_REPLACEMENT.
14187func_dirname ()
14188{
14189 case ${1} in
14190 */*) func_dirname_result="${1%/*}${2}" ;;
14191 * ) func_dirname_result="${3}" ;;
14192 esac
14193}
14194
14195# func_basename file
14196func_basename ()
14197{
14198 func_basename_result="${1##*/}"
14199}
14200
b214d478
SE
14201# func_dirname_and_basename file append nondir_replacement
14202# perform func_basename and func_dirname in a single function
14203# call:
14204# dirname: Compute the dirname of FILE. If nonempty,
14205# add APPEND to the result, otherwise set result
14206# to NONDIR_REPLACEMENT.
14207# value returned in "$func_dirname_result"
14208# basename: Compute filename of FILE.
14209# value retuned in "$func_basename_result"
14210# Implementation must be kept synchronized with func_dirname
14211# and func_basename. For efficiency, we do not delegate to
14212# those functions but instead duplicate the functionality here.
14213func_dirname_and_basename ()
14214{
14215 case ${1} in
14216 */*) func_dirname_result="${1%/*}${2}" ;;
14217 * ) func_dirname_result="${3}" ;;
14218 esac
14219 func_basename_result="${1##*/}"
14220}
14221
d7040cdb
SE
14222# func_stripname prefix suffix name
14223# strip PREFIX and SUFFIX off of NAME.
14224# PREFIX and SUFFIX must not contain globbing or regex special
14225# characters, hashes, percent signs, but SUFFIX may contain a leading
14226# dot (in which case that matches only a dot).
14227func_stripname ()
14228{
14229 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14230 # positional parameters, so assign one to ordinary parameter first.
14231 func_stripname_result=${3}
14232 func_stripname_result=${func_stripname_result#"${1}"}
14233 func_stripname_result=${func_stripname_result%"${2}"}
14234}
14235
14236# func_opt_split
14237func_opt_split ()
14238{
14239 func_opt_split_opt=${1%%=*}
14240 func_opt_split_arg=${1#*=}
14241}
14242
14243# func_lo2o object
14244func_lo2o ()
14245{
14246 case ${1} in
14247 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14248 *) func_lo2o_result=${1} ;;
14249 esac
14250}
b214d478
SE
14251
14252# func_xform libobj-or-source
14253func_xform ()
14254{
14255 func_xform_result=${1%.*}.lo
14256}
14257
14258# func_arith arithmetic-term...
14259func_arith ()
14260{
14261 func_arith_result=$(( $* ))
14262}
14263
14264# func_len string
14265# STRING may not start with a hyphen.
14266func_len ()
14267{
14268 func_len_result=${#1}
14269}
14270
d7040cdb
SE
14271_LT_EOF
14272 ;;
14273 *) # Bourne compatible functions.
14274 cat << \_LT_EOF >> "$cfgfile"
b214d478 14275
d7040cdb
SE
14276# func_dirname file append nondir_replacement
14277# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14278# otherwise set result to NONDIR_REPLACEMENT.
14279func_dirname ()
14280{
14281 # Extract subdirectory from the argument.
3725885a 14282 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
14283 if test "X$func_dirname_result" = "X${1}"; then
14284 func_dirname_result="${3}"
14285 else
14286 func_dirname_result="$func_dirname_result${2}"
14287 fi
14288}
14289
14290# func_basename file
14291func_basename ()
14292{
3725885a 14293 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
14294}
14295
b214d478 14296
d7040cdb
SE
14297# func_stripname prefix suffix name
14298# strip PREFIX and SUFFIX off of NAME.
14299# PREFIX and SUFFIX must not contain globbing or regex special
14300# characters, hashes, percent signs, but SUFFIX may contain a leading
14301# dot (in which case that matches only a dot).
14302# func_strip_suffix prefix name
14303func_stripname ()
14304{
14305 case ${2} in
3725885a
RW
14306 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14307 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
14308 esac
14309}
14310
14311# sed scripts:
14312my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14313my_sed_long_arg='1s/^-[^=]*=//'
14314
14315# func_opt_split
14316func_opt_split ()
14317{
3725885a
RW
14318 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14319 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
14320}
14321
14322# func_lo2o object
14323func_lo2o ()
14324{
3725885a 14325 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 14326}
b214d478
SE
14327
14328# func_xform libobj-or-source
14329func_xform ()
14330{
3725885a 14331 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
b214d478
SE
14332}
14333
14334# func_arith arithmetic-term...
14335func_arith ()
14336{
14337 func_arith_result=`expr "$@"`
14338}
14339
14340# func_len string
14341# STRING may not start with a hyphen.
14342func_len ()
14343{
14344 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14345}
14346
d7040cdb
SE
14347_LT_EOF
14348esac
14349
14350case $lt_shell_append in
14351 yes)
14352 cat << \_LT_EOF >> "$cfgfile"
14353
14354# func_append var value
14355# Append VALUE to the end of shell variable VAR.
14356func_append ()
14357{
14358 eval "$1+=\$2"
14359}
14360_LT_EOF
14361 ;;
14362 *)
14363 cat << \_LT_EOF >> "$cfgfile"
14364
14365# func_append var value
14366# Append VALUE to the end of shell variable VAR.
14367func_append ()
14368{
14369 eval "$1=\$$1\$2"
14370}
b214d478 14371
d7040cdb
SE
14372_LT_EOF
14373 ;;
14374 esac
14375
14376
14377 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14378 || (rm -f "$cfgfile"; exit 1)
14379
14380 mv -f "$cfgfile" "$ofile" ||
14381 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14382 chmod +x "$ofile"
14383
6bf9431b 14384 ;;
81ecdfbb 14385 "default-1":C)
20e95c23
DJ
14386 for ac_file in $CONFIG_FILES; do
14387 # Support "outfile[:infile[:infile...]]"
14388 case "$ac_file" in
14389 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14390 esac
14391 # PO directories have a Makefile.in generated from Makefile.in.in.
14392 case "$ac_file" in */Makefile.in)
14393 # Adjust a relative srcdir.
14394 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 14395 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
14396 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14397 # In autoconf-2.13 it is called $ac_given_srcdir.
14398 # In autoconf-2.50 it is called $srcdir.
14399 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14400 case "$ac_given_srcdir" in
14401 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14402 /*) top_srcdir="$ac_given_srcdir" ;;
14403 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14404 esac
14405 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14406 rm -f "$ac_dir/POTFILES"
14407 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14408 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14409 POMAKEFILEDEPS="POTFILES.in"
14410 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
14411 # on $ac_dir but don't depend on user-specified configuration
14412 # parameters.
14413 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14414 # The LINGUAS file contains the set of available languages.
14415 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14416 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14417 fi
14418 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14419 # Hide the ALL_LINGUAS assigment from automake.
14420 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14421 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14422 else
14423 # The set of available languages was given in configure.in.
14424 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14425 fi
14426 case "$ac_given_srcdir" in
14427 .) srcdirpre= ;;
14428 *) srcdirpre='$(srcdir)/' ;;
14429 esac
14430 POFILES=
14431 GMOFILES=
14432 UPDATEPOFILES=
14433 DUMMYPOFILES=
14434 for lang in $ALL_LINGUAS; do
14435 POFILES="$POFILES $srcdirpre$lang.po"
14436 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14437 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14438 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14439 done
14440 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14441 # environment variable.
14442 INST_LINGUAS=
14443 if test -n "$ALL_LINGUAS"; then
14444 for presentlang in $ALL_LINGUAS; do
14445 useit=no
14446 if test "%UNSET%" != "$LINGUAS"; then
14447 desiredlanguages="$LINGUAS"
14448 else
14449 desiredlanguages="$ALL_LINGUAS"
14450 fi
14451 for desiredlang in $desiredlanguages; do
14452 # Use the presentlang catalog if desiredlang is
14453 # a. equal to presentlang, or
14454 # b. a variant of presentlang (because in this case,
14455 # presentlang can be used as a fallback for messages
14456 # which are not translated in the desiredlang catalog).
14457 case "$desiredlang" in
14458 "$presentlang"*) useit=yes;;
14459 esac
14460 done
14461 if test $useit = yes; then
14462 INST_LINGUAS="$INST_LINGUAS $presentlang"
14463 fi
14464 done
14465 fi
14466 CATALOGS=
14467 if test -n "$INST_LINGUAS"; then
14468 for lang in $INST_LINGUAS; do
14469 CATALOGS="$CATALOGS $lang.gmo"
14470 done
14471 fi
14472 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14473 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
14474 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14475 if test -f "$f"; then
14476 case "$f" in
14477 *.orig | *.bak | *~) ;;
14478 *) cat "$f" >> "$ac_dir/Makefile" ;;
14479 esac
14480 fi
14481 done
14482 fi
14483 ;;
14484 esac
14485 done ;;
81ecdfbb 14486
6bf9431b 14487 esac
81ecdfbb 14488done # for ac_tag
6bf9431b 14489
6bf9431b 14490
81ecdfbb 14491as_fn_exit 0
6bf9431b 14492_ACEOF
6bf9431b
BE
14493ac_clean_files=$ac_clean_files_save
14494
81ecdfbb
RW
14495test $ac_write_fail = 0 ||
14496 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14497
6bf9431b
BE
14498
14499# configure is writing to config.log, and then calls config.status.
14500# config.status does its own redirection, appending to config.log.
14501# Unfortunately, on DOS this fails, as config.log is still kept open
14502# by configure, so config.status won't be able to write to it; its
14503# output is simply discarded. So we exec the FD to /dev/null,
14504# effectively closing config.log, so it can be properly (re)opened and
14505# appended to by config.status. When coming back to configure, we
14506# need to make the FD available again.
14507if test "$no_create" != yes; then
14508 ac_cs_success=:
14509 ac_config_status_args=
14510 test "$silent" = yes &&
14511 ac_config_status_args="$ac_config_status_args --quiet"
14512 exec 5>/dev/null
14513 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14514 exec 5>>config.log
14515 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14516 # would make configure fail if this is the last instruction.
81ecdfbb
RW
14517 $ac_cs_success || as_fn_exit $?
14518fi
14519if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14521$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6bf9431b 14522fi
252b5132 14523
This page took 1.311166 seconds and 4 git commands to generate.