aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/jpeglib/configure
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-01-13 17:24:39 +1000
committerDavid Walter Seikel2013-01-13 17:24:39 +1000
commit393b5cd1dc438872af89d334ef6e5fcc59f27d47 (patch)
tree6a14521219942a08a1b95cb2f5a923a9edd60f63 /libraries/irrlicht-1.8/source/Irrlicht/jpeglib/configure
parentAdd a note about rasters suggested start up code. (diff)
downloadSledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.zip
SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.gz
SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.bz2
SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.xz
Added Irrlicht 1.8, but without all the Windows binaries.
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/jpeglib/configure')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/jpeglib/configure15928
1 files changed, 15928 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/jpeglib/configure b/libraries/irrlicht-1.8/source/Irrlicht/jpeglib/configure
new file mode 100644
index 0000000..bb5f694
--- /dev/null
+++ b/libraries/irrlicht-1.8/source/Irrlicht/jpeglib/configure
@@ -0,0 +1,15928 @@
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for libjpeg 8.4.0.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151esac
152fi
153"
154 as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168 exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175test \$(( 1 + 1 )) = 2 || exit 1
176
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
185 as_have_required=yes
186else
187 as_have_required=no
188fi
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191else
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193as_found=false
194for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195do
196 IFS=$as_save_IFS
197 test -z "$as_dir" && as_dir=.
198 as_found=:
199 case $as_dir in #(
200 /*)
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 break 2
209fi
210fi
211 done;;
212 esac
213 as_found=false
214done
215$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
218fi; }
219IFS=$as_save_IFS
220
221
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 case $- in # ((((
232 *v*x* | *x*v* ) as_opts=-vx ;;
233 *v* ) as_opts=-v ;;
234 *x* ) as_opts=-x ;;
235 * ) as_opts= ;;
236 esac
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238fi
239
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246 else
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248$0: including any error possibly output before this
249$0: message. Then install a modern shell, or manually run
250$0: the script under such a shell if you do have one."
251 fi
252 exit 1
253fi
254fi
255fi
256SHELL=${CONFIG_SHELL-/bin/sh}
257export SHELL
258# Unset more variables known to interfere with behavior of common tools.
259CLICOLOR_FORCE= GREP_OPTIONS=
260unset CLICOLOR_FORCE GREP_OPTIONS
261
262## --------------------- ##
263## M4sh Shell Functions. ##
264## --------------------- ##
265# as_fn_unset VAR
266# ---------------
267# Portably unset VAR.
268as_fn_unset ()
269{
270 { eval $1=; unset $1;}
271}
272as_unset=as_fn_unset
273
274# as_fn_set_status STATUS
275# -----------------------
276# Set $? to STATUS, without forking.
277as_fn_set_status ()
278{
279 return $1
280} # as_fn_set_status
281
282# as_fn_exit STATUS
283# -----------------
284# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285as_fn_exit ()
286{
287 set +e
288 as_fn_set_status $1
289 exit $1
290} # as_fn_exit
291
292# as_fn_mkdir_p
293# -------------
294# Create "$as_dir" as a directory, including parents if necessary.
295as_fn_mkdir_p ()
296{
297
298 case $as_dir in #(
299 -*) as_dir=./$as_dir;;
300 esac
301 test -d "$as_dir" || eval $as_mkdir_p || {
302 as_dirs=
303 while :; do
304 case $as_dir in #(
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306 *) as_qdir=$as_dir;;
307 esac
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314$as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)[^/].*/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)$/{
324 s//\1/
325 q
326 }
327 /^X\(\/\).*/{
328 s//\1/
329 q
330 }
331 s/.*/./; q'`
332 test -d "$as_dir" && break
333 done
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338} # as_fn_mkdir_p
339# as_fn_append VAR VALUE
340# ----------------------
341# Append the text in VALUE to the end of the definition contained in VAR. Take
342# advantage of any shell optimizations that allow amortized linear growth over
343# repeated appends, instead of the typical quadratic growth present in naive
344# implementations.
345if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
347 {
348 eval $1+=\$2
349 }'
350else
351 as_fn_append ()
352 {
353 eval $1=\$$1\$2
354 }
355fi # as_fn_append
356
357# as_fn_arith ARG...
358# ------------------
359# Perform arithmetic evaluation on the ARGs, and store the result in the
360# global $as_val. Take advantage of shells that can avoid forks. The arguments
361# must be portable across $(()) and expr.
362if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363 eval 'as_fn_arith ()
364 {
365 as_val=$(( $* ))
366 }'
367else
368 as_fn_arith ()
369 {
370 as_val=`expr "$@" || test $? -eq 1`
371 }
372fi # as_fn_arith
373
374
375# as_fn_error STATUS ERROR [LINENO LOG_FD]
376# ----------------------------------------
377# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379# script with STATUS, using 1 if that was 0.
380as_fn_error ()
381{
382 as_status=$1; test $as_status -eq 0 && as_status=1
383 if test "$4"; then
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386 fi
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
389} # as_fn_error
390
391if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 as_expr=expr
394else
395 as_expr=false
396fi
397
398if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 as_basename=basename
400else
401 as_basename=false
402fi
403
404if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_dirname=dirname
406else
407 as_dirname=false
408fi
409
410as_me=`$as_basename -- "$0" ||
411$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414$as_echo X/"$0" |
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\/\)$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\).*/{
424 s//\1/
425 q
426 }
427 s/.*/./; q'`
428
429# Avoid depending upon Character Ranges.
430as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433as_cr_digits='0123456789'
434as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
443 p
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
449 b
450 :lineno
451 N
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
466}
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in #(((((
470-n*)
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 xy) ECHO_C='\c';;
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
475 ECHO_T=' ';;
476 esac;;
477*)
478 ECHO_N='-n';;
479esac
480
481rm -f conf$$ conf$$.exe conf$$.file
482if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
484else
485 rm -f conf$$.dir
486 mkdir conf$$.dir 2>/dev/null
487fi
488if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s='ln -s'
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496 as_ln_s='cp -p'
497 elif ln conf$$.file conf$$ 2>/dev/null; then
498 as_ln_s=ln
499 else
500 as_ln_s='cp -p'
501 fi
502else
503 as_ln_s='cp -p'
504fi
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
507
508if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
510else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513fi
514
515if test -x / >/dev/null 2>&1; then
516 as_test_x='test -x'
517else
518 if ls -dL / >/dev/null 2>&1; then
519 as_ls_L_option=L
520 else
521 as_ls_L_option=
522 fi
523 as_test_x='
524 eval sh -c '\''
525 if test -d "$1"; then
526 test -d "$1/.";
527 else
528 case $1 in #(
529 -*)set "./$1";;
530 esac;
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
533 '\'' sh
534 '
535fi
536as_executable_p=$as_test_x
537
538# Sed expression to map a string onto a valid CPP name.
539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541# Sed expression to map a string onto a valid variable name.
542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547test -n "$DJDIR" || exec 7<&0 </dev/null
548exec 6>&1
549
550# Name of the host.
551# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552# so uname gets run too.
553ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555#
556# Initializations.
557#
558ac_default_prefix=/usr/local
559ac_clean_files=
560ac_config_libobj_dir=.
561LIBOBJS=
562cross_compiling=no
563subdirs=
564MFLAGS=
565MAKEFLAGS=
566
567# Identity of this package.
568PACKAGE_NAME='libjpeg'
569PACKAGE_TARNAME='libjpeg'
570PACKAGE_VERSION='8.4.0'
571PACKAGE_STRING='libjpeg 8.4.0'
572PACKAGE_BUGREPORT=''
573PACKAGE_URL=''
574
575# Factoring default headers for most tests.
576ac_includes_default="\
577#include <stdio.h>
578#ifdef HAVE_SYS_TYPES_H
579# include <sys/types.h>
580#endif
581#ifdef HAVE_SYS_STAT_H
582# include <sys/stat.h>
583#endif
584#ifdef STDC_HEADERS
585# include <stdlib.h>
586# include <stddef.h>
587#else
588# ifdef HAVE_STDLIB_H
589# include <stdlib.h>
590# endif
591#endif
592#ifdef HAVE_STRING_H
593# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594# include <memory.h>
595# endif
596# include <string.h>
597#endif
598#ifdef HAVE_STRINGS_H
599# include <strings.h>
600#endif
601#ifdef HAVE_INTTYPES_H
602# include <inttypes.h>
603#endif
604#ifdef HAVE_STDINT_H
605# include <stdint.h>
606#endif
607#ifdef HAVE_UNISTD_H
608# include <unistd.h>
609#endif"
610
611ac_subst_vars='am__EXEEXT_FALSE
612am__EXEEXT_TRUE
613LTLIBOBJS
614LIBOBJS
615JPEG_LIB_VERSION
616MEMORYMGR
617OTOOL64
618OTOOL
619LIPO
620NMEDIT
621DSYMUTIL
622MANIFEST_TOOL
623RANLIB
624ac_ct_AR
625AR
626NM
627ac_ct_DUMPBIN
628DUMPBIN
629LD
630FGREP
631SED
632LIBTOOL
633OBJDUMP
634DLLTOOL
635AS
636HAVE_LD_VERSION_SCRIPT_FALSE
637HAVE_LD_VERSION_SCRIPT_TRUE
638LN_S
639MAINT
640MAINTAINER_MODE_FALSE
641MAINTAINER_MODE_TRUE
642ANSI2KNR
643U
644EGREP
645GREP
646CPP
647am__fastdepCC_FALSE
648am__fastdepCC_TRUE
649CCDEPMODE
650am__nodep
651AMDEPBACKSLASH
652AMDEP_FALSE
653AMDEP_TRUE
654am__quote
655am__include
656DEPDIR
657OBJEXT
658EXEEXT
659ac_ct_CC
660CPPFLAGS
661LDFLAGS
662CFLAGS
663CC
664AM_BACKSLASH
665AM_DEFAULT_VERBOSITY
666am__untar
667am__tar
668AMTAR
669am__leading_dot
670SET_MAKE
671AWK
672mkdir_p
673MKDIR_P
674INSTALL_STRIP_PROGRAM
675STRIP
676install_sh
677MAKEINFO
678AUTOHEADER
679AUTOMAKE
680AUTOCONF
681ACLOCAL
682VERSION
683PACKAGE
684CYGPATH_W
685am__isrc
686INSTALL_DATA
687INSTALL_SCRIPT
688INSTALL_PROGRAM
689target_os
690target_vendor
691target_cpu
692target
693host_os
694host_vendor
695host_cpu
696host
697build_os
698build_vendor
699build_cpu
700build
701target_alias
702host_alias
703build_alias
704LIBS
705ECHO_T
706ECHO_N
707ECHO_C
708DEFS
709mandir
710localedir
711libdir
712psdir
713pdfdir
714dvidir
715htmldir
716infodir
717docdir
718oldincludedir
719includedir
720localstatedir
721sharedstatedir
722sysconfdir
723datadir
724datarootdir
725libexecdir
726sbindir
727bindir
728program_transform_name
729prefix
730exec_prefix
731PACKAGE_URL
732PACKAGE_BUGREPORT
733PACKAGE_STRING
734PACKAGE_VERSION
735PACKAGE_TARNAME
736PACKAGE_NAME
737PATH_SEPARATOR
738SHELL'
739ac_subst_files=''
740ac_user_opts='
741enable_option_checking
742enable_silent_rules
743enable_dependency_tracking
744enable_maintainer_mode
745enable_ld_version_script
746enable_shared
747enable_static
748with_pic
749enable_fast_install
750with_gnu_ld
751with_sysroot
752enable_libtool_lock
753enable_maxmem
754'
755 ac_precious_vars='build_alias
756host_alias
757target_alias
758CC
759CFLAGS
760LDFLAGS
761LIBS
762CPPFLAGS
763CPP'
764
765
766# Initialize some variables set by options.
767ac_init_help=
768ac_init_version=false
769ac_unrecognized_opts=
770ac_unrecognized_sep=
771# The variables have the same names as the options, with
772# dashes changed to underlines.
773cache_file=/dev/null
774exec_prefix=NONE
775no_create=
776no_recursion=
777prefix=NONE
778program_prefix=NONE
779program_suffix=NONE
780program_transform_name=s,x,x,
781silent=
782site=
783srcdir=
784verbose=
785x_includes=NONE
786x_libraries=NONE
787
788# Installation directory options.
789# These are left unexpanded so users can "make install exec_prefix=/foo"
790# and all the variables that are supposed to be based on exec_prefix
791# by default will actually change.
792# Use braces instead of parens because sh, perl, etc. also accept them.
793# (The list follows the same order as the GNU Coding Standards.)
794bindir='${exec_prefix}/bin'
795sbindir='${exec_prefix}/sbin'
796libexecdir='${exec_prefix}/libexec'
797datarootdir='${prefix}/share'
798datadir='${datarootdir}'
799sysconfdir='${prefix}/etc'
800sharedstatedir='${prefix}/com'
801localstatedir='${prefix}/var'
802includedir='${prefix}/include'
803oldincludedir='/usr/include'
804docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
805infodir='${datarootdir}/info'
806htmldir='${docdir}'
807dvidir='${docdir}'
808pdfdir='${docdir}'
809psdir='${docdir}'
810libdir='${exec_prefix}/lib'
811localedir='${datarootdir}/locale'
812mandir='${datarootdir}/man'
813
814ac_prev=
815ac_dashdash=
816for ac_option
817do
818 # If the previous option needs an argument, assign it.
819 if test -n "$ac_prev"; then
820 eval $ac_prev=\$ac_option
821 ac_prev=
822 continue
823 fi
824
825 case $ac_option in
826 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
827 *=) ac_optarg= ;;
828 *) ac_optarg=yes ;;
829 esac
830
831 # Accept the important Cygnus configure options, so we can diagnose typos.
832
833 case $ac_dashdash$ac_option in
834 --)
835 ac_dashdash=yes ;;
836
837 -bindir | --bindir | --bindi | --bind | --bin | --bi)
838 ac_prev=bindir ;;
839 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
840 bindir=$ac_optarg ;;
841
842 -build | --build | --buil | --bui | --bu)
843 ac_prev=build_alias ;;
844 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
845 build_alias=$ac_optarg ;;
846
847 -cache-file | --cache-file | --cache-fil | --cache-fi \
848 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
849 ac_prev=cache_file ;;
850 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
851 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
852 cache_file=$ac_optarg ;;
853
854 --config-cache | -C)
855 cache_file=config.cache ;;
856
857 -datadir | --datadir | --datadi | --datad)
858 ac_prev=datadir ;;
859 -datadir=* | --datadir=* | --datadi=* | --datad=*)
860 datadir=$ac_optarg ;;
861
862 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
863 | --dataroo | --dataro | --datar)
864 ac_prev=datarootdir ;;
865 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
866 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
867 datarootdir=$ac_optarg ;;
868
869 -disable-* | --disable-*)
870 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
873 as_fn_error $? "invalid feature name: $ac_useropt"
874 ac_useropt_orig=$ac_useropt
875 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
876 case $ac_user_opts in
877 *"
878"enable_$ac_useropt"
879"*) ;;
880 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
881 ac_unrecognized_sep=', ';;
882 esac
883 eval enable_$ac_useropt=no ;;
884
885 -docdir | --docdir | --docdi | --doc | --do)
886 ac_prev=docdir ;;
887 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
888 docdir=$ac_optarg ;;
889
890 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
891 ac_prev=dvidir ;;
892 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
893 dvidir=$ac_optarg ;;
894
895 -enable-* | --enable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904"enable_$ac_useropt"
905"*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=\$ac_optarg ;;
910
911 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
912 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
913 | --exec | --exe | --ex)
914 ac_prev=exec_prefix ;;
915 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
916 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
917 | --exec=* | --exe=* | --ex=*)
918 exec_prefix=$ac_optarg ;;
919
920 -gas | --gas | --ga | --g)
921 # Obsolete; use --with-gas.
922 with_gas=yes ;;
923
924 -help | --help | --hel | --he | -h)
925 ac_init_help=long ;;
926 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
927 ac_init_help=recursive ;;
928 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
929 ac_init_help=short ;;
930
931 -host | --host | --hos | --ho)
932 ac_prev=host_alias ;;
933 -host=* | --host=* | --hos=* | --ho=*)
934 host_alias=$ac_optarg ;;
935
936 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
937 ac_prev=htmldir ;;
938 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
939 | --ht=*)
940 htmldir=$ac_optarg ;;
941
942 -includedir | --includedir | --includedi | --included | --include \
943 | --includ | --inclu | --incl | --inc)
944 ac_prev=includedir ;;
945 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
946 | --includ=* | --inclu=* | --incl=* | --inc=*)
947 includedir=$ac_optarg ;;
948
949 -infodir | --infodir | --infodi | --infod | --info | --inf)
950 ac_prev=infodir ;;
951 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
952 infodir=$ac_optarg ;;
953
954 -libdir | --libdir | --libdi | --libd)
955 ac_prev=libdir ;;
956 -libdir=* | --libdir=* | --libdi=* | --libd=*)
957 libdir=$ac_optarg ;;
958
959 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
960 | --libexe | --libex | --libe)
961 ac_prev=libexecdir ;;
962 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
963 | --libexe=* | --libex=* | --libe=*)
964 libexecdir=$ac_optarg ;;
965
966 -localedir | --localedir | --localedi | --localed | --locale)
967 ac_prev=localedir ;;
968 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
969 localedir=$ac_optarg ;;
970
971 -localstatedir | --localstatedir | --localstatedi | --localstated \
972 | --localstate | --localstat | --localsta | --localst | --locals)
973 ac_prev=localstatedir ;;
974 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
975 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
976 localstatedir=$ac_optarg ;;
977
978 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
979 ac_prev=mandir ;;
980 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
981 mandir=$ac_optarg ;;
982
983 -nfp | --nfp | --nf)
984 # Obsolete; use --without-fp.
985 with_fp=no ;;
986
987 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
988 | --no-cr | --no-c | -n)
989 no_create=yes ;;
990
991 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
993 no_recursion=yes ;;
994
995 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
996 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
997 | --oldin | --oldi | --old | --ol | --o)
998 ac_prev=oldincludedir ;;
999 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1000 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1001 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1002 oldincludedir=$ac_optarg ;;
1003
1004 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1005 ac_prev=prefix ;;
1006 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1007 prefix=$ac_optarg ;;
1008
1009 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1010 | --program-pre | --program-pr | --program-p)
1011 ac_prev=program_prefix ;;
1012 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1013 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1014 program_prefix=$ac_optarg ;;
1015
1016 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1017 | --program-suf | --program-su | --program-s)
1018 ac_prev=program_suffix ;;
1019 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1020 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1021 program_suffix=$ac_optarg ;;
1022
1023 -program-transform-name | --program-transform-name \
1024 | --program-transform-nam | --program-transform-na \
1025 | --program-transform-n | --program-transform- \
1026 | --program-transform | --program-transfor \
1027 | --program-transfo | --program-transf \
1028 | --program-trans | --program-tran \
1029 | --progr-tra | --program-tr | --program-t)
1030 ac_prev=program_transform_name ;;
1031 -program-transform-name=* | --program-transform-name=* \
1032 | --program-transform-nam=* | --program-transform-na=* \
1033 | --program-transform-n=* | --program-transform-=* \
1034 | --program-transform=* | --program-transfor=* \
1035 | --program-transfo=* | --program-transf=* \
1036 | --program-trans=* | --program-tran=* \
1037 | --progr-tra=* | --program-tr=* | --program-t=*)
1038 program_transform_name=$ac_optarg ;;
1039
1040 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1041 ac_prev=pdfdir ;;
1042 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1043 pdfdir=$ac_optarg ;;
1044
1045 -psdir | --psdir | --psdi | --psd | --ps)
1046 ac_prev=psdir ;;
1047 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1048 psdir=$ac_optarg ;;
1049
1050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051 | -silent | --silent | --silen | --sile | --sil)
1052 silent=yes ;;
1053
1054 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1055 ac_prev=sbindir ;;
1056 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1057 | --sbi=* | --sb=*)
1058 sbindir=$ac_optarg ;;
1059
1060 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1061 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1062 | --sharedst | --shareds | --shared | --share | --shar \
1063 | --sha | --sh)
1064 ac_prev=sharedstatedir ;;
1065 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1066 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1067 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1068 | --sha=* | --sh=*)
1069 sharedstatedir=$ac_optarg ;;
1070
1071 -site | --site | --sit)
1072 ac_prev=site ;;
1073 -site=* | --site=* | --sit=*)
1074 site=$ac_optarg ;;
1075
1076 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1077 ac_prev=srcdir ;;
1078 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1079 srcdir=$ac_optarg ;;
1080
1081 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1082 | --syscon | --sysco | --sysc | --sys | --sy)
1083 ac_prev=sysconfdir ;;
1084 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1085 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1086 sysconfdir=$ac_optarg ;;
1087
1088 -target | --target | --targe | --targ | --tar | --ta | --t)
1089 ac_prev=target_alias ;;
1090 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1091 target_alias=$ac_optarg ;;
1092
1093 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1094 verbose=yes ;;
1095
1096 -version | --version | --versio | --versi | --vers | -V)
1097 ac_init_version=: ;;
1098
1099 -with-* | --with-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error $? "invalid package name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1107 *"
1108"with_$ac_useropt"
1109"*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval with_$ac_useropt=\$ac_optarg ;;
1114
1115 -without-* | --without-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error $? "invalid package name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1123 *"
1124"with_$ac_useropt"
1125"*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval with_$ac_useropt=no ;;
1130
1131 --x)
1132 # Obsolete; use --with-x.
1133 with_x=yes ;;
1134
1135 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1136 | --x-incl | --x-inc | --x-in | --x-i)
1137 ac_prev=x_includes ;;
1138 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1139 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1140 x_includes=$ac_optarg ;;
1141
1142 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1143 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1144 ac_prev=x_libraries ;;
1145 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1146 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1147 x_libraries=$ac_optarg ;;
1148
1149 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1150Try \`$0 --help' for more information"
1151 ;;
1152
1153 *=*)
1154 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1155 # Reject names that are not valid shell variable names.
1156 case $ac_envvar in #(
1157 '' | [0-9]* | *[!_$as_cr_alnum]* )
1158 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1159 esac
1160 eval $ac_envvar=\$ac_optarg
1161 export $ac_envvar ;;
1162
1163 *)
1164 # FIXME: should be removed in autoconf 3.0.
1165 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1166 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1167 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1168 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1169 ;;
1170
1171 esac
1172done
1173
1174if test -n "$ac_prev"; then
1175 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1176 as_fn_error $? "missing argument to $ac_option"
1177fi
1178
1179if test -n "$ac_unrecognized_opts"; then
1180 case $enable_option_checking in
1181 no) ;;
1182 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1183 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1184 esac
1185fi
1186
1187# Check all directory arguments for consistency.
1188for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189 datadir sysconfdir sharedstatedir localstatedir includedir \
1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191 libdir localedir mandir
1192do
1193 eval ac_val=\$$ac_var
1194 # Remove trailing slashes.
1195 case $ac_val in
1196 */ )
1197 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1198 eval $ac_var=\$ac_val;;
1199 esac
1200 # Be sure to have absolute directory names.
1201 case $ac_val in
1202 [\\/$]* | ?:[\\/]* ) continue;;
1203 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1204 esac
1205 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1206done
1207
1208# There might be people who depend on the old broken behavior: `$host'
1209# used to hold the argument of --host etc.
1210# FIXME: To remove some day.
1211build=$build_alias
1212host=$host_alias
1213target=$target_alias
1214
1215# FIXME: To remove some day.
1216if test "x$host_alias" != x; then
1217 if test "x$build_alias" = x; then
1218 cross_compiling=maybe
1219 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1220 If a cross compiler is detected then cross compile mode will be used" >&2
1221 elif test "x$build_alias" != "x$host_alias"; then
1222 cross_compiling=yes
1223 fi
1224fi
1225
1226ac_tool_prefix=
1227test -n "$host_alias" && ac_tool_prefix=$host_alias-
1228
1229test "$silent" = yes && exec 6>/dev/null
1230
1231
1232ac_pwd=`pwd` && test -n "$ac_pwd" &&
1233ac_ls_di=`ls -di .` &&
1234ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1235 as_fn_error $? "working directory cannot be determined"
1236test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1237 as_fn_error $? "pwd does not report name of working directory"
1238
1239
1240# Find the source files, if location was not specified.
1241if test -z "$srcdir"; then
1242 ac_srcdir_defaulted=yes
1243 # Try the directory containing this script, then the parent directory.
1244 ac_confdir=`$as_dirname -- "$as_myself" ||
1245$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1246 X"$as_myself" : 'X\(//\)[^/]' \| \
1247 X"$as_myself" : 'X\(//\)$' \| \
1248 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1249$as_echo X"$as_myself" |
1250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\/\)[^/].*/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\/\)$/{
1259 s//\1/
1260 q
1261 }
1262 /^X\(\/\).*/{
1263 s//\1/
1264 q
1265 }
1266 s/.*/./; q'`
1267 srcdir=$ac_confdir
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1269 srcdir=..
1270 fi
1271else
1272 ac_srcdir_defaulted=no
1273fi
1274if test ! -r "$srcdir/$ac_unique_file"; then
1275 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1276 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1277fi
1278ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1279ac_abs_confdir=`(
1280 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1281 pwd)`
1282# When building in place, set srcdir=.
1283if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 srcdir=.
1285fi
1286# Remove unnecessary trailing slashes from srcdir.
1287# Double slashes in file names in object file debugging info
1288# mess up M-x gdb in Emacs.
1289case $srcdir in
1290*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291esac
1292for ac_var in $ac_precious_vars; do
1293 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_env_${ac_var}_value=\$${ac_var}
1295 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297done
1298
1299#
1300# Report the --help message.
1301#
1302if test "$ac_init_help" = "long"; then
1303 # Omit some internal or obsolete options to make the list less imposing.
1304 # This message is too long to be a string in the A/UX 3.1 sh.
1305 cat <<_ACEOF
1306\`configure' configures libjpeg 8.4.0 to adapt to many kinds of systems.
1307
1308Usage: $0 [OPTION]... [VAR=VALUE]...
1309
1310To assign environment variables (e.g., CC, CFLAGS...), specify them as
1311VAR=VALUE. See below for descriptions of some of the useful variables.
1312
1313Defaults for the options are specified in brackets.
1314
1315Configuration:
1316 -h, --help display this help and exit
1317 --help=short display options specific to this package
1318 --help=recursive display the short help of all the included packages
1319 -V, --version display version information and exit
1320 -q, --quiet, --silent do not print \`checking ...' messages
1321 --cache-file=FILE cache test results in FILE [disabled]
1322 -C, --config-cache alias for \`--cache-file=config.cache'
1323 -n, --no-create do not create output files
1324 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1325
1326Installation directories:
1327 --prefix=PREFIX install architecture-independent files in PREFIX
1328 [$ac_default_prefix]
1329 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 [PREFIX]
1331
1332By default, \`make install' will install all the files in
1333\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1334an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1335for instance \`--prefix=\$HOME'.
1336
1337For better control, use the options below.
1338
1339Fine tuning of the installation directories:
1340 --bindir=DIR user executables [EPREFIX/bin]
1341 --sbindir=DIR system admin executables [EPREFIX/sbin]
1342 --libexecdir=DIR program executables [EPREFIX/libexec]
1343 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1344 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1345 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1346 --libdir=DIR object code libraries [EPREFIX/lib]
1347 --includedir=DIR C header files [PREFIX/include]
1348 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1349 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1350 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1351 --infodir=DIR info documentation [DATAROOTDIR/info]
1352 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1353 --mandir=DIR man documentation [DATAROOTDIR/man]
1354 --docdir=DIR documentation root [DATAROOTDIR/doc/libjpeg]
1355 --htmldir=DIR html documentation [DOCDIR]
1356 --dvidir=DIR dvi documentation [DOCDIR]
1357 --pdfdir=DIR pdf documentation [DOCDIR]
1358 --psdir=DIR ps documentation [DOCDIR]
1359_ACEOF
1360
1361 cat <<\_ACEOF
1362
1363Program names:
1364 --program-prefix=PREFIX prepend PREFIX to installed program names
1365 --program-suffix=SUFFIX append SUFFIX to installed program names
1366 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1367
1368System types:
1369 --build=BUILD configure for building on BUILD [guessed]
1370 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1371 --target=TARGET configure for building compilers for TARGET [HOST]
1372_ACEOF
1373fi
1374
1375if test -n "$ac_init_help"; then
1376 case $ac_init_help in
1377 short | recursive ) echo "Configuration of libjpeg 8.4.0:";;
1378 esac
1379 cat <<\_ACEOF
1380
1381Optional Features:
1382 --disable-option-checking ignore unrecognized --enable/--with options
1383 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1384 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1385 --enable-silent-rules less verbose build output (undo: `make V=1')
1386 --disable-silent-rules verbose build output (undo: `make V=0')
1387 --disable-dependency-tracking speeds up one-time build
1388 --enable-dependency-tracking do not reject slow dependency extractors
1389 --enable-maintainer-mode enable make rules and dependencies not useful
1390 (and sometimes confusing) to the casual installer
1391 --enable-ld-version-script
1392 enable linker version script (default is enabled
1393 when possible)
1394 --enable-shared[=PKGS] build shared libraries [default=yes]
1395 --enable-static[=PKGS] build static libraries [default=yes]
1396 --enable-fast-install[=PKGS]
1397 optimize for fast installation [default=yes]
1398 --disable-libtool-lock avoid locking (might break parallel builds)
1399 --enable-maxmem=N enable use of temp files, set max mem usage to N MB
1400
1401Optional Packages:
1402 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1403 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1404 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1405 both]
1406 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1407 --with-sysroot=DIR Search for dependent libraries within DIR
1408 (or the compiler's sysroot if not specified).
1409
1410Some influential environment variables:
1411 CC C compiler command
1412 CFLAGS C compiler flags
1413 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1414 nonstandard directory <lib dir>
1415 LIBS libraries to pass to the linker, e.g. -l<library>
1416 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1417 you have headers in a nonstandard directory <include dir>
1418 CPP C preprocessor
1419
1420Use these variables to override the choices made by `configure' or to help
1421it to find libraries and programs with nonstandard names/locations.
1422
1423Report bugs to the package provider.
1424_ACEOF
1425ac_status=$?
1426fi
1427
1428if test "$ac_init_help" = "recursive"; then
1429 # If there are subdirs, report their specific --help.
1430 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1431 test -d "$ac_dir" ||
1432 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1433 continue
1434 ac_builddir=.
1435
1436case "$ac_dir" in
1437.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438*)
1439 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1440 # A ".." for each directory in $ac_dir_suffix.
1441 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1442 case $ac_top_builddir_sub in
1443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445 esac ;;
1446esac
1447ac_abs_top_builddir=$ac_pwd
1448ac_abs_builddir=$ac_pwd$ac_dir_suffix
1449# for backward compatibility:
1450ac_top_builddir=$ac_top_build_prefix
1451
1452case $srcdir in
1453 .) # We are building in place.
1454 ac_srcdir=.
1455 ac_top_srcdir=$ac_top_builddir_sub
1456 ac_abs_top_srcdir=$ac_pwd ;;
1457 [\\/]* | ?:[\\/]* ) # Absolute name.
1458 ac_srcdir=$srcdir$ac_dir_suffix;
1459 ac_top_srcdir=$srcdir
1460 ac_abs_top_srcdir=$srcdir ;;
1461 *) # Relative name.
1462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463 ac_top_srcdir=$ac_top_build_prefix$srcdir
1464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1465esac
1466ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1467
1468 cd "$ac_dir" || { ac_status=$?; continue; }
1469 # Check for guested configure.
1470 if test -f "$ac_srcdir/configure.gnu"; then
1471 echo &&
1472 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473 elif test -f "$ac_srcdir/configure"; then
1474 echo &&
1475 $SHELL "$ac_srcdir/configure" --help=recursive
1476 else
1477 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1478 fi || ac_status=$?
1479 cd "$ac_pwd" || { ac_status=$?; break; }
1480 done
1481fi
1482
1483test -n "$ac_init_help" && exit $ac_status
1484if $ac_init_version; then
1485 cat <<\_ACEOF
1486libjpeg configure 8.4.0
1487generated by GNU Autoconf 2.68
1488
1489Copyright (C) 2010 Free Software Foundation, Inc.
1490This configure script is free software; the Free Software Foundation
1491gives unlimited permission to copy, distribute and modify it.
1492_ACEOF
1493 exit
1494fi
1495
1496## ------------------------ ##
1497## Autoconf initialization. ##
1498## ------------------------ ##
1499
1500# ac_fn_c_try_compile LINENO
1501# --------------------------
1502# Try to compile conftest.$ac_ext, and return whether this succeeded.
1503ac_fn_c_try_compile ()
1504{
1505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506 rm -f conftest.$ac_objext
1507 if { { ac_try="$ac_compile"
1508case "(($ac_try" in
1509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510 *) ac_try_echo=$ac_try;;
1511esac
1512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513$as_echo "$ac_try_echo"; } >&5
1514 (eval "$ac_compile") 2>conftest.err
1515 ac_status=$?
1516 if test -s conftest.err; then
1517 grep -v '^ *+' conftest.err >conftest.er1
1518 cat conftest.er1 >&5
1519 mv -f conftest.er1 conftest.err
1520 fi
1521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522 test $ac_status = 0; } && {
1523 test -z "$ac_c_werror_flag" ||
1524 test ! -s conftest.err
1525 } && test -s conftest.$ac_objext; then :
1526 ac_retval=0
1527else
1528 $as_echo "$as_me: failed program was:" >&5
1529sed 's/^/| /' conftest.$ac_ext >&5
1530
1531 ac_retval=1
1532fi
1533 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1534 as_fn_set_status $ac_retval
1535
1536} # ac_fn_c_try_compile
1537
1538# ac_fn_c_try_cpp LINENO
1539# ----------------------
1540# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1541ac_fn_c_try_cpp ()
1542{
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 if { { ac_try="$ac_cpp conftest.$ac_ext"
1545case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548esac
1549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550$as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1552 ac_status=$?
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1557 fi
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } > conftest.i && {
1560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 }; then :
1563 ac_retval=0
1564else
1565 $as_echo "$as_me: failed program was:" >&5
1566sed 's/^/| /' conftest.$ac_ext >&5
1567
1568 ac_retval=1
1569fi
1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571 as_fn_set_status $ac_retval
1572
1573} # ac_fn_c_try_cpp
1574
1575# ac_fn_c_try_run LINENO
1576# ----------------------
1577# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1578# that executables *can* be run.
1579ac_fn_c_try_run ()
1580{
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 if { { ac_try="$ac_link"
1583case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586esac
1587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588$as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_link") 2>&5
1590 ac_status=$?
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1593 { { case "(($ac_try" in
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1596esac
1597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598$as_echo "$ac_try_echo"; } >&5
1599 (eval "$ac_try") 2>&5
1600 ac_status=$?
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; }; }; then :
1603 ac_retval=0
1604else
1605 $as_echo "$as_me: program exited with status $ac_status" >&5
1606 $as_echo "$as_me: failed program was:" >&5
1607sed 's/^/| /' conftest.$ac_ext >&5
1608
1609 ac_retval=$ac_status
1610fi
1611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1614
1615} # ac_fn_c_try_run
1616
1617# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1618# -------------------------------------------------------
1619# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1620# the include files in INCLUDES and setting the cache variable VAR
1621# accordingly.
1622ac_fn_c_check_header_mongrel ()
1623{
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 if eval \${$3+:} false; then :
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1627$as_echo_n "checking for $2... " >&6; }
1628if eval \${$3+:} false; then :
1629 $as_echo_n "(cached) " >&6
1630fi
1631eval ac_res=\$$3
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633$as_echo "$ac_res" >&6; }
1634else
1635 # Is the header compilable?
1636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1637$as_echo_n "checking $2 usability... " >&6; }
1638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639/* end confdefs.h. */
1640$4
1641#include <$2>
1642_ACEOF
1643if ac_fn_c_try_compile "$LINENO"; then :
1644 ac_header_compiler=yes
1645else
1646 ac_header_compiler=no
1647fi
1648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1650$as_echo "$ac_header_compiler" >&6; }
1651
1652# Is the header present?
1653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1654$as_echo_n "checking $2 presence... " >&6; }
1655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656/* end confdefs.h. */
1657#include <$2>
1658_ACEOF
1659if ac_fn_c_try_cpp "$LINENO"; then :
1660 ac_header_preproc=yes
1661else
1662 ac_header_preproc=no
1663fi
1664rm -f conftest.err conftest.i conftest.$ac_ext
1665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1666$as_echo "$ac_header_preproc" >&6; }
1667
1668# So? What about this header?
1669case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1670 yes:no: )
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1672$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1674$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1675 ;;
1676 no:yes:* )
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1678$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1680$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1682$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1684$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1686$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1687 ;;
1688esac
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1690$as_echo_n "checking for $2... " >&6; }
1691if eval \${$3+:} false; then :
1692 $as_echo_n "(cached) " >&6
1693else
1694 eval "$3=\$ac_header_compiler"
1695fi
1696eval ac_res=\$$3
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698$as_echo "$ac_res" >&6; }
1699fi
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701
1702} # ac_fn_c_check_header_mongrel
1703
1704# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1705# -------------------------------------------------------
1706# Tests whether HEADER exists and can be compiled using the include files in
1707# INCLUDES, setting the cache variable VAR accordingly.
1708ac_fn_c_check_header_compile ()
1709{
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712$as_echo_n "checking for $2... " >&6; }
1713if eval \${$3+:} false; then :
1714 $as_echo_n "(cached) " >&6
1715else
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717/* end confdefs.h. */
1718$4
1719#include <$2>
1720_ACEOF
1721if ac_fn_c_try_compile "$LINENO"; then :
1722 eval "$3=yes"
1723else
1724 eval "$3=no"
1725fi
1726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1727fi
1728eval ac_res=\$$3
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730$as_echo "$ac_res" >&6; }
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732
1733} # ac_fn_c_check_header_compile
1734
1735# ac_fn_c_try_link LINENO
1736# -----------------------
1737# Try to link conftest.$ac_ext, and return whether this succeeded.
1738ac_fn_c_try_link ()
1739{
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext conftest$ac_exeext
1742 if { { ac_try="$ac_link"
1743case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746esac
1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748$as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1755 fi
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest$ac_exeext && {
1761 test "$cross_compiling" = yes ||
1762 $as_test_x conftest$ac_exeext
1763 }; then :
1764 ac_retval=0
1765else
1766 $as_echo "$as_me: failed program was:" >&5
1767sed 's/^/| /' conftest.$ac_ext >&5
1768
1769 ac_retval=1
1770fi
1771 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1772 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1773 # interfere with the next link command; also delete a directory that is
1774 # left behind by Apple's compiler. We do this before executing the actions.
1775 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777 as_fn_set_status $ac_retval
1778
1779} # ac_fn_c_try_link
1780
1781# ac_fn_c_check_func LINENO FUNC VAR
1782# ----------------------------------
1783# Tests whether FUNC exists, setting the cache variable VAR accordingly
1784ac_fn_c_check_func ()
1785{
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788$as_echo_n "checking for $2... " >&6; }
1789if eval \${$3+:} false; then :
1790 $as_echo_n "(cached) " >&6
1791else
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793/* end confdefs.h. */
1794/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1796#define $2 innocuous_$2
1797
1798/* System header to define __stub macros and hopefully few prototypes,
1799 which can conflict with char $2 (); below.
1800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1801 <limits.h> exists even on freestanding compilers. */
1802
1803#ifdef __STDC__
1804# include <limits.h>
1805#else
1806# include <assert.h>
1807#endif
1808
1809#undef $2
1810
1811/* Override any GCC internal prototype to avoid an error.
1812 Use char because int might match the return type of a GCC
1813 builtin and then its argument prototype would still apply. */
1814#ifdef __cplusplus
1815extern "C"
1816#endif
1817char $2 ();
1818/* The GNU C library defines this for functions which it implements
1819 to always fail with ENOSYS. Some functions are actually named
1820 something starting with __ and the normal name is an alias. */
1821#if defined __stub_$2 || defined __stub___$2
1822choke me
1823#endif
1824
1825int
1826main ()
1827{
1828return $2 ();
1829 ;
1830 return 0;
1831}
1832_ACEOF
1833if ac_fn_c_try_link "$LINENO"; then :
1834 eval "$3=yes"
1835else
1836 eval "$3=no"
1837fi
1838rm -f core conftest.err conftest.$ac_objext \
1839 conftest$ac_exeext conftest.$ac_ext
1840fi
1841eval ac_res=\$$3
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843$as_echo "$ac_res" >&6; }
1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845
1846} # ac_fn_c_check_func
1847cat >config.log <<_ACEOF
1848This file contains any messages produced by compilers while
1849running configure, to aid debugging if configure makes a mistake.
1850
1851It was created by libjpeg $as_me 8.4.0, which was
1852generated by GNU Autoconf 2.68. Invocation command line was
1853
1854 $ $0 $@
1855
1856_ACEOF
1857exec 5>>config.log
1858{
1859cat <<_ASUNAME
1860## --------- ##
1861## Platform. ##
1862## --------- ##
1863
1864hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1865uname -m = `(uname -m) 2>/dev/null || echo unknown`
1866uname -r = `(uname -r) 2>/dev/null || echo unknown`
1867uname -s = `(uname -s) 2>/dev/null || echo unknown`
1868uname -v = `(uname -v) 2>/dev/null || echo unknown`
1869
1870/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1871/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1872
1873/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1874/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1875/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1876/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1877/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1878/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1879/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1880
1881_ASUNAME
1882
1883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884for as_dir in $PATH
1885do
1886 IFS=$as_save_IFS
1887 test -z "$as_dir" && as_dir=.
1888 $as_echo "PATH: $as_dir"
1889 done
1890IFS=$as_save_IFS
1891
1892} >&5
1893
1894cat >&5 <<_ACEOF
1895
1896
1897## ----------- ##
1898## Core tests. ##
1899## ----------- ##
1900
1901_ACEOF
1902
1903
1904# Keep a trace of the command line.
1905# Strip out --no-create and --no-recursion so they do not pile up.
1906# Strip out --silent because we don't want to record it for future runs.
1907# Also quote any args containing shell meta-characters.
1908# Make two passes to allow for proper duplicate-argument suppression.
1909ac_configure_args=
1910ac_configure_args0=
1911ac_configure_args1=
1912ac_must_keep_next=false
1913for ac_pass in 1 2
1914do
1915 for ac_arg
1916 do
1917 case $ac_arg in
1918 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1919 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1920 | -silent | --silent | --silen | --sile | --sil)
1921 continue ;;
1922 *\'*)
1923 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1924 esac
1925 case $ac_pass in
1926 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1927 2)
1928 as_fn_append ac_configure_args1 " '$ac_arg'"
1929 if test $ac_must_keep_next = true; then
1930 ac_must_keep_next=false # Got value, back to normal.
1931 else
1932 case $ac_arg in
1933 *=* | --config-cache | -C | -disable-* | --disable-* \
1934 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1935 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1936 | -with-* | --with-* | -without-* | --without-* | --x)
1937 case "$ac_configure_args0 " in
1938 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1939 esac
1940 ;;
1941 -* ) ac_must_keep_next=true ;;
1942 esac
1943 fi
1944 as_fn_append ac_configure_args " '$ac_arg'"
1945 ;;
1946 esac
1947 done
1948done
1949{ ac_configure_args0=; unset ac_configure_args0;}
1950{ ac_configure_args1=; unset ac_configure_args1;}
1951
1952# When interrupted or exit'd, cleanup temporary files, and complete
1953# config.log. We remove comments because anyway the quotes in there
1954# would cause problems or look ugly.
1955# WARNING: Use '\'' to represent an apostrophe within the trap.
1956# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1957trap 'exit_status=$?
1958 # Save into config.log some information that might help in debugging.
1959 {
1960 echo
1961
1962 $as_echo "## ---------------- ##
1963## Cache variables. ##
1964## ---------------- ##"
1965 echo
1966 # The following way of writing the cache mishandles newlines in values,
1967(
1968 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1969 eval ac_val=\$$ac_var
1970 case $ac_val in #(
1971 *${as_nl}*)
1972 case $ac_var in #(
1973 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1974$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1975 esac
1976 case $ac_var in #(
1977 _ | IFS | as_nl) ;; #(
1978 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1979 *) { eval $ac_var=; unset $ac_var;} ;;
1980 esac ;;
1981 esac
1982 done
1983 (set) 2>&1 |
1984 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1985 *${as_nl}ac_space=\ *)
1986 sed -n \
1987 "s/'\''/'\''\\\\'\'''\''/g;
1988 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1989 ;; #(
1990 *)
1991 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1992 ;;
1993 esac |
1994 sort
1995)
1996 echo
1997
1998 $as_echo "## ----------------- ##
1999## Output variables. ##
2000## ----------------- ##"
2001 echo
2002 for ac_var in $ac_subst_vars
2003 do
2004 eval ac_val=\$$ac_var
2005 case $ac_val in
2006 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2007 esac
2008 $as_echo "$ac_var='\''$ac_val'\''"
2009 done | sort
2010 echo
2011
2012 if test -n "$ac_subst_files"; then
2013 $as_echo "## ------------------- ##
2014## File substitutions. ##
2015## ------------------- ##"
2016 echo
2017 for ac_var in $ac_subst_files
2018 do
2019 eval ac_val=\$$ac_var
2020 case $ac_val in
2021 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2022 esac
2023 $as_echo "$ac_var='\''$ac_val'\''"
2024 done | sort
2025 echo
2026 fi
2027
2028 if test -s confdefs.h; then
2029 $as_echo "## ----------- ##
2030## confdefs.h. ##
2031## ----------- ##"
2032 echo
2033 cat confdefs.h
2034 echo
2035 fi
2036 test "$ac_signal" != 0 &&
2037 $as_echo "$as_me: caught signal $ac_signal"
2038 $as_echo "$as_me: exit $exit_status"
2039 } >&5
2040 rm -f core *.core core.conftest.* &&
2041 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2042 exit $exit_status
2043' 0
2044for ac_signal in 1 2 13 15; do
2045 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2046done
2047ac_signal=0
2048
2049# confdefs.h avoids OS command line length limits that DEFS can exceed.
2050rm -f -r conftest* confdefs.h
2051
2052$as_echo "/* confdefs.h */" > confdefs.h
2053
2054# Predefined preprocessor variables.
2055
2056cat >>confdefs.h <<_ACEOF
2057#define PACKAGE_NAME "$PACKAGE_NAME"
2058_ACEOF
2059
2060cat >>confdefs.h <<_ACEOF
2061#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2062_ACEOF
2063
2064cat >>confdefs.h <<_ACEOF
2065#define PACKAGE_VERSION "$PACKAGE_VERSION"
2066_ACEOF
2067
2068cat >>confdefs.h <<_ACEOF
2069#define PACKAGE_STRING "$PACKAGE_STRING"
2070_ACEOF
2071
2072cat >>confdefs.h <<_ACEOF
2073#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2074_ACEOF
2075
2076cat >>confdefs.h <<_ACEOF
2077#define PACKAGE_URL "$PACKAGE_URL"
2078_ACEOF
2079
2080
2081# Let the site file select an alternate cache file if it wants to.
2082# Prefer an explicitly selected file to automatically selected ones.
2083ac_site_file1=NONE
2084ac_site_file2=NONE
2085if test -n "$CONFIG_SITE"; then
2086 # We do not want a PATH search for config.site.
2087 case $CONFIG_SITE in #((
2088 -*) ac_site_file1=./$CONFIG_SITE;;
2089 */*) ac_site_file1=$CONFIG_SITE;;
2090 *) ac_site_file1=./$CONFIG_SITE;;
2091 esac
2092elif test "x$prefix" != xNONE; then
2093 ac_site_file1=$prefix/share/config.site
2094 ac_site_file2=$prefix/etc/config.site
2095else
2096 ac_site_file1=$ac_default_prefix/share/config.site
2097 ac_site_file2=$ac_default_prefix/etc/config.site
2098fi
2099for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2100do
2101 test "x$ac_site_file" = xNONE && continue
2102 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2104$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2105 sed 's/^/| /' "$ac_site_file" >&5
2106 . "$ac_site_file" \
2107 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2109as_fn_error $? "failed to load site script $ac_site_file
2110See \`config.log' for more details" "$LINENO" 5; }
2111 fi
2112done
2113
2114if test -r "$cache_file"; then
2115 # Some versions of bash will fail to source /dev/null (special files
2116 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2117 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2119$as_echo "$as_me: loading cache $cache_file" >&6;}
2120 case $cache_file in
2121 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2122 *) . "./$cache_file";;
2123 esac
2124 fi
2125else
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2127$as_echo "$as_me: creating cache $cache_file" >&6;}
2128 >$cache_file
2129fi
2130
2131# Check that the precious variables saved in the cache have kept the same
2132# value.
2133ac_cache_corrupted=false
2134for ac_var in $ac_precious_vars; do
2135 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2136 eval ac_new_set=\$ac_env_${ac_var}_set
2137 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2138 eval ac_new_val=\$ac_env_${ac_var}_value
2139 case $ac_old_set,$ac_new_set in
2140 set,)
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2142$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2143 ac_cache_corrupted=: ;;
2144 ,set)
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2146$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2147 ac_cache_corrupted=: ;;
2148 ,);;
2149 *)
2150 if test "x$ac_old_val" != "x$ac_new_val"; then
2151 # differences in whitespace do not lead to failure.
2152 ac_old_val_w=`echo x $ac_old_val`
2153 ac_new_val_w=`echo x $ac_new_val`
2154 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2156$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2157 ac_cache_corrupted=:
2158 else
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2160$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2161 eval $ac_var=\$ac_old_val
2162 fi
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2164$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2166$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2167 fi;;
2168 esac
2169 # Pass precious variables to config.status.
2170 if test "$ac_new_set" = set; then
2171 case $ac_new_val in
2172 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2173 *) ac_arg=$ac_var=$ac_new_val ;;
2174 esac
2175 case " $ac_configure_args " in
2176 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2177 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2178 esac
2179 fi
2180done
2181if $ac_cache_corrupted; then
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2185$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2186 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2187fi
2188## -------------------- ##
2189## Main body of script. ##
2190## -------------------- ##
2191
2192ac_ext=c
2193ac_cpp='$CPP $CPPFLAGS'
2194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2196ac_compiler_gnu=$ac_cv_c_compiler_gnu
2197
2198
2199
2200# Directory where autotools helper scripts lives.
2201ac_aux_dir=
2202for ac_dir in . "$srcdir"/.; do
2203 if test -f "$ac_dir/install-sh"; then
2204 ac_aux_dir=$ac_dir
2205 ac_install_sh="$ac_aux_dir/install-sh -c"
2206 break
2207 elif test -f "$ac_dir/install.sh"; then
2208 ac_aux_dir=$ac_dir
2209 ac_install_sh="$ac_aux_dir/install.sh -c"
2210 break
2211 elif test -f "$ac_dir/shtool"; then
2212 ac_aux_dir=$ac_dir
2213 ac_install_sh="$ac_aux_dir/shtool install -c"
2214 break
2215 fi
2216done
2217if test -z "$ac_aux_dir"; then
2218 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2219fi
2220
2221# These three variables are undocumented and unsupported,
2222# and are intended to be withdrawn in a future Autoconf release.
2223# They can cause serious problems if a builder's source tree is in a directory
2224# whose full name contains unusual characters.
2225ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2226ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2227ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2228
2229
2230
2231# Generate configuration headers.
2232ac_config_headers="$ac_config_headers jconfig.h:jconfig.cfg"
2233
2234
2235# Hack: disable autoheader so that it doesn't overwrite our cfg template.
2236AUTOHEADER="echo autoheader ignored"
2237
2238# Check system type
2239# Make sure we can run config.sub.
2240$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2241 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2242
2243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2244$as_echo_n "checking build system type... " >&6; }
2245if ${ac_cv_build+:} false; then :
2246 $as_echo_n "(cached) " >&6
2247else
2248 ac_build_alias=$build_alias
2249test "x$ac_build_alias" = x &&
2250 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2251test "x$ac_build_alias" = x &&
2252 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2253ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2254 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2255
2256fi
2257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2258$as_echo "$ac_cv_build" >&6; }
2259case $ac_cv_build in
2260*-*-*) ;;
2261*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2262esac
2263build=$ac_cv_build
2264ac_save_IFS=$IFS; IFS='-'
2265set x $ac_cv_build
2266shift
2267build_cpu=$1
2268build_vendor=$2
2269shift; shift
2270# Remember, the first character of IFS is used to create $*,
2271# except with old shells:
2272build_os=$*
2273IFS=$ac_save_IFS
2274case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2275
2276
2277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2278$as_echo_n "checking host system type... " >&6; }
2279if ${ac_cv_host+:} false; then :
2280 $as_echo_n "(cached) " >&6
2281else
2282 if test "x$host_alias" = x; then
2283 ac_cv_host=$ac_cv_build
2284else
2285 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2286 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2287fi
2288
2289fi
2290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2291$as_echo "$ac_cv_host" >&6; }
2292case $ac_cv_host in
2293*-*-*) ;;
2294*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2295esac
2296host=$ac_cv_host
2297ac_save_IFS=$IFS; IFS='-'
2298set x $ac_cv_host
2299shift
2300host_cpu=$1
2301host_vendor=$2
2302shift; shift
2303# Remember, the first character of IFS is used to create $*,
2304# except with old shells:
2305host_os=$*
2306IFS=$ac_save_IFS
2307case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2308
2309
2310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2311$as_echo_n "checking target system type... " >&6; }
2312if ${ac_cv_target+:} false; then :
2313 $as_echo_n "(cached) " >&6
2314else
2315 if test "x$target_alias" = x; then
2316 ac_cv_target=$ac_cv_host
2317else
2318 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2319 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2320fi
2321
2322fi
2323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2324$as_echo "$ac_cv_target" >&6; }
2325case $ac_cv_target in
2326*-*-*) ;;
2327*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2328esac
2329target=$ac_cv_target
2330ac_save_IFS=$IFS; IFS='-'
2331set x $ac_cv_target
2332shift
2333target_cpu=$1
2334target_vendor=$2
2335shift; shift
2336# Remember, the first character of IFS is used to create $*,
2337# except with old shells:
2338target_os=$*
2339IFS=$ac_save_IFS
2340case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2341
2342
2343# The aliases save the names the user supplied, while $host etc.
2344# will get canonicalized.
2345test -n "$target_alias" &&
2346 test "$program_prefix$program_suffix$program_transform_name" = \
2347 NONENONEs,x,x, &&
2348 program_prefix=${target_alias}-
2349
2350# Initialize Automake
2351# Don't require all the GNU mandated files
2352am__api_version='1.11'
2353
2354# Find a good install program. We prefer a C program (faster),
2355# so one script is as good as another. But avoid the broken or
2356# incompatible versions:
2357# SysV /etc/install, /usr/sbin/install
2358# SunOS /usr/etc/install
2359# IRIX /sbin/install
2360# AIX /bin/install
2361# AmigaOS /C/install, which installs bootblocks on floppy discs
2362# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2363# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2364# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2365# OS/2's system install, which has a completely different semantic
2366# ./install, which can be erroneously created by make from ./install.sh.
2367# Reject install programs that cannot install multiple files.
2368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2369$as_echo_n "checking for a BSD-compatible install... " >&6; }
2370if test -z "$INSTALL"; then
2371if ${ac_cv_path_install+:} false; then :
2372 $as_echo_n "(cached) " >&6
2373else
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375for as_dir in $PATH
2376do
2377 IFS=$as_save_IFS
2378 test -z "$as_dir" && as_dir=.
2379 # Account for people who put trailing slashes in PATH elements.
2380case $as_dir/ in #((
2381 ./ | .// | /[cC]/* | \
2382 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2383 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2384 /usr/ucb/* ) ;;
2385 *)
2386 # OSF1 and SCO ODT 3.0 have their own names for install.
2387 # Don't use installbsd from OSF since it installs stuff as root
2388 # by default.
2389 for ac_prog in ginstall scoinst install; do
2390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2392 if test $ac_prog = install &&
2393 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2394 # AIX install. It has an incompatible calling convention.
2395 :
2396 elif test $ac_prog = install &&
2397 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2398 # program-specific install script used by HP pwplus--don't use.
2399 :
2400 else
2401 rm -rf conftest.one conftest.two conftest.dir
2402 echo one > conftest.one
2403 echo two > conftest.two
2404 mkdir conftest.dir
2405 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2406 test -s conftest.one && test -s conftest.two &&
2407 test -s conftest.dir/conftest.one &&
2408 test -s conftest.dir/conftest.two
2409 then
2410 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2411 break 3
2412 fi
2413 fi
2414 fi
2415 done
2416 done
2417 ;;
2418esac
2419
2420 done
2421IFS=$as_save_IFS
2422
2423rm -rf conftest.one conftest.two conftest.dir
2424
2425fi
2426 if test "${ac_cv_path_install+set}" = set; then
2427 INSTALL=$ac_cv_path_install
2428 else
2429 # As a last resort, use the slow shell script. Don't cache a
2430 # value for INSTALL within a source directory, because that will
2431 # break other packages using the cache if that directory is
2432 # removed, or if the value is a relative name.
2433 INSTALL=$ac_install_sh
2434 fi
2435fi
2436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2437$as_echo "$INSTALL" >&6; }
2438
2439# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2440# It thinks the first close brace ends the variable substitution.
2441test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2442
2443test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2444
2445test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2446
2447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2448$as_echo_n "checking whether build environment is sane... " >&6; }
2449# Just in case
2450sleep 1
2451echo timestamp > conftest.file
2452# Reject unsafe characters in $srcdir or the absolute working directory
2453# name. Accept space and tab only in the latter.
2454am_lf='
2455'
2456case `pwd` in
2457 *[\\\"\#\$\&\'\`$am_lf]*)
2458 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2459esac
2460case $srcdir in
2461 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2462 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2463esac
2464
2465# Do `set' in a subshell so we don't clobber the current shell's
2466# arguments. Must try -L first in case configure is actually a
2467# symlink; some systems play weird games with the mod time of symlinks
2468# (eg FreeBSD returns the mod time of the symlink's containing
2469# directory).
2470if (
2471 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2472 if test "$*" = "X"; then
2473 # -L didn't work.
2474 set X `ls -t "$srcdir/configure" conftest.file`
2475 fi
2476 rm -f conftest.file
2477 if test "$*" != "X $srcdir/configure conftest.file" \
2478 && test "$*" != "X conftest.file $srcdir/configure"; then
2479
2480 # If neither matched, then we have a broken ls. This can happen
2481 # if, for instance, CONFIG_SHELL is bash and it inherits a
2482 # broken ls alias from the environment. This has actually
2483 # happened. Such a system could not be considered "sane".
2484 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2485alias in your environment" "$LINENO" 5
2486 fi
2487
2488 test "$2" = conftest.file
2489 )
2490then
2491 # Ok.
2492 :
2493else
2494 as_fn_error $? "newly created file is older than distributed files!
2495Check your system clock" "$LINENO" 5
2496fi
2497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2498$as_echo "yes" >&6; }
2499test "$program_prefix" != NONE &&
2500 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2501# Use a double $ so make ignores it.
2502test "$program_suffix" != NONE &&
2503 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2504# Double any \ or $.
2505# By default was `s,x,x', remove it if useless.
2506ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2507program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2508
2509# expand $ac_aux_dir to an absolute path
2510am_aux_dir=`cd $ac_aux_dir && pwd`
2511
2512if test x"${MISSING+set}" != xset; then
2513 case $am_aux_dir in
2514 *\ * | *\ *)
2515 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2516 *)
2517 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2518 esac
2519fi
2520# Use eval to expand $SHELL
2521if eval "$MISSING --run true"; then
2522 am_missing_run="$MISSING --run "
2523else
2524 am_missing_run=
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2526$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2527fi
2528
2529if test x"${install_sh}" != xset; then
2530 case $am_aux_dir in
2531 *\ * | *\ *)
2532 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2533 *)
2534 install_sh="\${SHELL} $am_aux_dir/install-sh"
2535 esac
2536fi
2537
2538# Installed binaries are usually stripped using `strip' when the user
2539# run `make install-strip'. However `strip' might not be the right
2540# tool to use in cross-compilation environments, therefore Automake
2541# will honor the `STRIP' environment variable to overrule this program.
2542if test "$cross_compiling" != no; then
2543 if test -n "$ac_tool_prefix"; then
2544 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2545set dummy ${ac_tool_prefix}strip; ac_word=$2
2546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2547$as_echo_n "checking for $ac_word... " >&6; }
2548if ${ac_cv_prog_STRIP+:} false; then :
2549 $as_echo_n "(cached) " >&6
2550else
2551 if test -n "$STRIP"; then
2552 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2553else
2554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555for as_dir in $PATH
2556do
2557 IFS=$as_save_IFS
2558 test -z "$as_dir" && as_dir=.
2559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2561 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 break 2
2564 fi
2565done
2566 done
2567IFS=$as_save_IFS
2568
2569fi
2570fi
2571STRIP=$ac_cv_prog_STRIP
2572if test -n "$STRIP"; then
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2574$as_echo "$STRIP" >&6; }
2575else
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2577$as_echo "no" >&6; }
2578fi
2579
2580
2581fi
2582if test -z "$ac_cv_prog_STRIP"; then
2583 ac_ct_STRIP=$STRIP
2584 # Extract the first word of "strip", so it can be a program name with args.
2585set dummy strip; ac_word=$2
2586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2587$as_echo_n "checking for $ac_word... " >&6; }
2588if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2589 $as_echo_n "(cached) " >&6
2590else
2591 if test -n "$ac_ct_STRIP"; then
2592 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2593else
2594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595for as_dir in $PATH
2596do
2597 IFS=$as_save_IFS
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601 ac_cv_prog_ac_ct_STRIP="strip"
2602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 break 2
2604 fi
2605done
2606 done
2607IFS=$as_save_IFS
2608
2609fi
2610fi
2611ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2612if test -n "$ac_ct_STRIP"; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2614$as_echo "$ac_ct_STRIP" >&6; }
2615else
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617$as_echo "no" >&6; }
2618fi
2619
2620 if test "x$ac_ct_STRIP" = x; then
2621 STRIP=":"
2622 else
2623 case $cross_compiling:$ac_tool_warned in
2624yes:)
2625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2627ac_tool_warned=yes ;;
2628esac
2629 STRIP=$ac_ct_STRIP
2630 fi
2631else
2632 STRIP="$ac_cv_prog_STRIP"
2633fi
2634
2635fi
2636INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2637
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2639$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2640if test -z "$MKDIR_P"; then
2641 if ${ac_cv_path_mkdir+:} false; then :
2642 $as_echo_n "(cached) " >&6
2643else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2646do
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 for ac_prog in mkdir gmkdir; do
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2652 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2653 'mkdir (GNU coreutils) '* | \
2654 'mkdir (coreutils) '* | \
2655 'mkdir (fileutils) '4.1*)
2656 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2657 break 3;;
2658 esac
2659 done
2660 done
2661 done
2662IFS=$as_save_IFS
2663
2664fi
2665
2666 test -d ./--version && rmdir ./--version
2667 if test "${ac_cv_path_mkdir+set}" = set; then
2668 MKDIR_P="$ac_cv_path_mkdir -p"
2669 else
2670 # As a last resort, use the slow shell script. Don't cache a
2671 # value for MKDIR_P within a source directory, because that will
2672 # break other packages using the cache if that directory is
2673 # removed, or if the value is a relative name.
2674 MKDIR_P="$ac_install_sh -d"
2675 fi
2676fi
2677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2678$as_echo "$MKDIR_P" >&6; }
2679
2680mkdir_p="$MKDIR_P"
2681case $mkdir_p in
2682 [\\/$]* | ?:[\\/]*) ;;
2683 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2684esac
2685
2686for ac_prog in gawk mawk nawk awk
2687do
2688 # Extract the first word of "$ac_prog", so it can be a program name with args.
2689set dummy $ac_prog; ac_word=$2
2690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691$as_echo_n "checking for $ac_word... " >&6; }
2692if ${ac_cv_prog_AWK+:} false; then :
2693 $as_echo_n "(cached) " >&6
2694else
2695 if test -n "$AWK"; then
2696 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2697else
2698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699for as_dir in $PATH
2700do
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2705 ac_cv_prog_AWK="$ac_prog"
2706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 break 2
2708 fi
2709done
2710 done
2711IFS=$as_save_IFS
2712
2713fi
2714fi
2715AWK=$ac_cv_prog_AWK
2716if test -n "$AWK"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2718$as_echo "$AWK" >&6; }
2719else
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721$as_echo "no" >&6; }
2722fi
2723
2724
2725 test -n "$AWK" && break
2726done
2727
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2729$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2730set x ${MAKE-make}
2731ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2732if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2733 $as_echo_n "(cached) " >&6
2734else
2735 cat >conftest.make <<\_ACEOF
2736SHELL = /bin/sh
2737all:
2738 @echo '@@@%%%=$(MAKE)=@@@%%%'
2739_ACEOF
2740# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2741case `${MAKE-make} -f conftest.make 2>/dev/null` in
2742 *@@@%%%=?*=@@@%%%*)
2743 eval ac_cv_prog_make_${ac_make}_set=yes;;
2744 *)
2745 eval ac_cv_prog_make_${ac_make}_set=no;;
2746esac
2747rm -f conftest.make
2748fi
2749if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2751$as_echo "yes" >&6; }
2752 SET_MAKE=
2753else
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755$as_echo "no" >&6; }
2756 SET_MAKE="MAKE=${MAKE-make}"
2757fi
2758
2759rm -rf .tst 2>/dev/null
2760mkdir .tst 2>/dev/null
2761if test -d .tst; then
2762 am__leading_dot=.
2763else
2764 am__leading_dot=_
2765fi
2766rmdir .tst 2>/dev/null
2767
2768if test "`cd $srcdir && pwd`" != "`pwd`"; then
2769 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2770 # is not polluted with repeated "-I."
2771 am__isrc=' -I$(srcdir)'
2772 # test to see if srcdir already configured
2773 if test -f $srcdir/config.status; then
2774 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2775 fi
2776fi
2777
2778# test whether we have cygpath
2779if test -z "$CYGPATH_W"; then
2780 if (cygpath --version) >/dev/null 2>/dev/null; then
2781 CYGPATH_W='cygpath -w'
2782 else
2783 CYGPATH_W=echo
2784 fi
2785fi
2786
2787
2788# Define the identity of the package.
2789 PACKAGE='libjpeg'
2790 VERSION='8.4.0'
2791
2792
2793cat >>confdefs.h <<_ACEOF
2794#define PACKAGE "$PACKAGE"
2795_ACEOF
2796
2797
2798cat >>confdefs.h <<_ACEOF
2799#define VERSION "$VERSION"
2800_ACEOF
2801
2802# Some tools Automake needs.
2803
2804ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2805
2806
2807AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2808
2809
2810AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2811
2812
2813AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2814
2815
2816MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2817
2818# We need awk for the "check" target. The system "awk" is bad on
2819# some platforms.
2820# Always define AMTAR for backward compatibility.
2821
2822AMTAR=${AMTAR-"${am_missing_run}tar"}
2823
2824am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2825
2826
2827
2828
2829
2830
2831# Make --enable-silent-rules the default.
2832# To get verbose build output you may configure
2833# with --disable-silent-rules or use "make V=1".
2834# Check whether --enable-silent-rules was given.
2835if test "${enable_silent_rules+set}" = set; then :
2836 enableval=$enable_silent_rules;
2837fi
2838
2839case $enable_silent_rules in
2840yes) AM_DEFAULT_VERBOSITY=0;;
2841no) AM_DEFAULT_VERBOSITY=1;;
2842*) AM_DEFAULT_VERBOSITY=0;;
2843esac
2844AM_BACKSLASH='\'
2845
2846
2847# This is required when using the de-ANSI-fication feature.
2848DEPDIR="${am__leading_dot}deps"
2849
2850ac_config_commands="$ac_config_commands depfiles"
2851
2852
2853am_make=${MAKE-make}
2854cat > confinc << 'END'
2855am__doit:
2856 @echo this is the am__doit target
2857.PHONY: am__doit
2858END
2859# If we don't find an include directive, just comment out the code.
2860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2861$as_echo_n "checking for style of include used by $am_make... " >&6; }
2862am__include="#"
2863am__quote=
2864_am_result=none
2865# First try GNU make style include.
2866echo "include confinc" > confmf
2867# Ignore all kinds of additional output from `make'.
2868case `$am_make -s -f confmf 2> /dev/null` in #(
2869*the\ am__doit\ target*)
2870 am__include=include
2871 am__quote=
2872 _am_result=GNU
2873 ;;
2874esac
2875# Now try BSD make style include.
2876if test "$am__include" = "#"; then
2877 echo '.include "confinc"' > confmf
2878 case `$am_make -s -f confmf 2> /dev/null` in #(
2879 *the\ am__doit\ target*)
2880 am__include=.include
2881 am__quote="\""
2882 _am_result=BSD
2883 ;;
2884 esac
2885fi
2886
2887
2888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2889$as_echo "$_am_result" >&6; }
2890rm -f confinc confmf
2891
2892# Check whether --enable-dependency-tracking was given.
2893if test "${enable_dependency_tracking+set}" = set; then :
2894 enableval=$enable_dependency_tracking;
2895fi
2896
2897if test "x$enable_dependency_tracking" != xno; then
2898 am_depcomp="$ac_aux_dir/depcomp"
2899 AMDEPBACKSLASH='\'
2900 am__nodep='_no'
2901fi
2902 if test "x$enable_dependency_tracking" != xno; then
2903 AMDEP_TRUE=
2904 AMDEP_FALSE='#'
2905else
2906 AMDEP_TRUE='#'
2907 AMDEP_FALSE=
2908fi
2909
2910
2911ac_ext=c
2912ac_cpp='$CPP $CPPFLAGS'
2913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2915ac_compiler_gnu=$ac_cv_c_compiler_gnu
2916if test -n "$ac_tool_prefix"; then
2917 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2918set dummy ${ac_tool_prefix}gcc; ac_word=$2
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920$as_echo_n "checking for $ac_word... " >&6; }
2921if ${ac_cv_prog_CC+:} false; then :
2922 $as_echo_n "(cached) " >&6
2923else
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC="$CC" # Let the user override the test.
2926else
2927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928for as_dir in $PATH
2929do
2930 IFS=$as_save_IFS
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2934 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 break 2
2937 fi
2938done
2939 done
2940IFS=$as_save_IFS
2941
2942fi
2943fi
2944CC=$ac_cv_prog_CC
2945if test -n "$CC"; then
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2947$as_echo "$CC" >&6; }
2948else
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2950$as_echo "no" >&6; }
2951fi
2952
2953
2954fi
2955if test -z "$ac_cv_prog_CC"; then
2956 ac_ct_CC=$CC
2957 # Extract the first word of "gcc", so it can be a program name with args.
2958set dummy gcc; ac_word=$2
2959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960$as_echo_n "checking for $ac_word... " >&6; }
2961if ${ac_cv_prog_ac_ct_CC+:} false; then :
2962 $as_echo_n "(cached) " >&6
2963else
2964 if test -n "$ac_ct_CC"; then
2965 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2966else
2967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968for as_dir in $PATH
2969do
2970 IFS=$as_save_IFS
2971 test -z "$as_dir" && as_dir=.
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2974 ac_cv_prog_ac_ct_CC="gcc"
2975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 break 2
2977 fi
2978done
2979 done
2980IFS=$as_save_IFS
2981
2982fi
2983fi
2984ac_ct_CC=$ac_cv_prog_ac_ct_CC
2985if test -n "$ac_ct_CC"; then
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2987$as_echo "$ac_ct_CC" >&6; }
2988else
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990$as_echo "no" >&6; }
2991fi
2992
2993 if test "x$ac_ct_CC" = x; then
2994 CC=""
2995 else
2996 case $cross_compiling:$ac_tool_warned in
2997yes:)
2998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3000ac_tool_warned=yes ;;
3001esac
3002 CC=$ac_ct_CC
3003 fi
3004else
3005 CC="$ac_cv_prog_CC"
3006fi
3007
3008if test -z "$CC"; then
3009 if test -n "$ac_tool_prefix"; then
3010 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3011set dummy ${ac_tool_prefix}cc; ac_word=$2
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3013$as_echo_n "checking for $ac_word... " >&6; }
3014if ${ac_cv_prog_CC+:} false; then :
3015 $as_echo_n "(cached) " >&6
3016else
3017 if test -n "$CC"; then
3018 ac_cv_prog_CC="$CC" # Let the user override the test.
3019else
3020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021for as_dir in $PATH
3022do
3023 IFS=$as_save_IFS
3024 test -z "$as_dir" && as_dir=.
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3027 ac_cv_prog_CC="${ac_tool_prefix}cc"
3028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 break 2
3030 fi
3031done
3032 done
3033IFS=$as_save_IFS
3034
3035fi
3036fi
3037CC=$ac_cv_prog_CC
3038if test -n "$CC"; then
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3040$as_echo "$CC" >&6; }
3041else
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043$as_echo "no" >&6; }
3044fi
3045
3046
3047 fi
3048fi
3049if test -z "$CC"; then
3050 # Extract the first word of "cc", so it can be a program name with args.
3051set dummy cc; ac_word=$2
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3053$as_echo_n "checking for $ac_word... " >&6; }
3054if ${ac_cv_prog_CC+:} false; then :
3055 $as_echo_n "(cached) " >&6
3056else
3057 if test -n "$CC"; then
3058 ac_cv_prog_CC="$CC" # Let the user override the test.
3059else
3060 ac_prog_rejected=no
3061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062for as_dir in $PATH
3063do
3064 IFS=$as_save_IFS
3065 test -z "$as_dir" && as_dir=.
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3068 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3069 ac_prog_rejected=yes
3070 continue
3071 fi
3072 ac_cv_prog_CC="cc"
3073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074 break 2
3075 fi
3076done
3077 done
3078IFS=$as_save_IFS
3079
3080if test $ac_prog_rejected = yes; then
3081 # We found a bogon in the path, so make sure we never use it.
3082 set dummy $ac_cv_prog_CC
3083 shift
3084 if test $# != 0; then
3085 # We chose a different compiler from the bogus one.
3086 # However, it has the same basename, so the bogon will be chosen
3087 # first if we set CC to just the basename; use the full file name.
3088 shift
3089 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3090 fi
3091fi
3092fi
3093fi
3094CC=$ac_cv_prog_CC
3095if test -n "$CC"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3097$as_echo "$CC" >&6; }
3098else
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100$as_echo "no" >&6; }
3101fi
3102
3103
3104fi
3105if test -z "$CC"; then
3106 if test -n "$ac_tool_prefix"; then
3107 for ac_prog in cl.exe
3108 do
3109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3110set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112$as_echo_n "checking for $ac_word... " >&6; }
3113if ${ac_cv_prog_CC+:} false; then :
3114 $as_echo_n "(cached) " >&6
3115else
3116 if test -n "$CC"; then
3117 ac_cv_prog_CC="$CC" # Let the user override the test.
3118else
3119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120for as_dir in $PATH
3121do
3122 IFS=$as_save_IFS
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3126 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 break 2
3129 fi
3130done
3131 done
3132IFS=$as_save_IFS
3133
3134fi
3135fi
3136CC=$ac_cv_prog_CC
3137if test -n "$CC"; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3139$as_echo "$CC" >&6; }
3140else
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142$as_echo "no" >&6; }
3143fi
3144
3145
3146 test -n "$CC" && break
3147 done
3148fi
3149if test -z "$CC"; then
3150 ac_ct_CC=$CC
3151 for ac_prog in cl.exe
3152do
3153 # Extract the first word of "$ac_prog", so it can be a program name with args.
3154set dummy $ac_prog; ac_word=$2
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3156$as_echo_n "checking for $ac_word... " >&6; }
3157if ${ac_cv_prog_ac_ct_CC+:} false; then :
3158 $as_echo_n "(cached) " >&6
3159else
3160 if test -n "$ac_ct_CC"; then
3161 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3162else
3163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164for as_dir in $PATH
3165do
3166 IFS=$as_save_IFS
3167 test -z "$as_dir" && as_dir=.
3168 for ac_exec_ext in '' $ac_executable_extensions; do
3169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3170 ac_cv_prog_ac_ct_CC="$ac_prog"
3171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3172 break 2
3173 fi
3174done
3175 done
3176IFS=$as_save_IFS
3177
3178fi
3179fi
3180ac_ct_CC=$ac_cv_prog_ac_ct_CC
3181if test -n "$ac_ct_CC"; then
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3183$as_echo "$ac_ct_CC" >&6; }
3184else
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186$as_echo "no" >&6; }
3187fi
3188
3189
3190 test -n "$ac_ct_CC" && break
3191done
3192
3193 if test "x$ac_ct_CC" = x; then
3194 CC=""
3195 else
3196 case $cross_compiling:$ac_tool_warned in
3197yes:)
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3200ac_tool_warned=yes ;;
3201esac
3202 CC=$ac_ct_CC
3203 fi
3204fi
3205
3206fi
3207
3208
3209test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3211as_fn_error $? "no acceptable C compiler found in \$PATH
3212See \`config.log' for more details" "$LINENO" 5; }
3213
3214# Provide some information about the compiler.
3215$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3216set X $ac_compile
3217ac_compiler=$2
3218for ac_option in --version -v -V -qversion; do
3219 { { ac_try="$ac_compiler $ac_option >&5"
3220case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223esac
3224eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3225$as_echo "$ac_try_echo"; } >&5
3226 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3227 ac_status=$?
3228 if test -s conftest.err; then
3229 sed '10a\
3230... rest of stderr output deleted ...
3231 10q' conftest.err >conftest.er1
3232 cat conftest.er1 >&5
3233 fi
3234 rm -f conftest.er1 conftest.err
3235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3236 test $ac_status = 0; }
3237done
3238
3239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240/* end confdefs.h. */
3241
3242int
3243main ()
3244{
3245
3246 ;
3247 return 0;
3248}
3249_ACEOF
3250ac_clean_files_save=$ac_clean_files
3251ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3252# Try to create an executable without -o first, disregard a.out.
3253# It will help us diagnose broken compilers, and finding out an intuition
3254# of exeext.
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3256$as_echo_n "checking whether the C compiler works... " >&6; }
3257ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3258
3259# The possible output files:
3260ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3261
3262ac_rmfiles=
3263for ac_file in $ac_files
3264do
3265 case $ac_file in
3266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3267 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3268 esac
3269done
3270rm -f $ac_rmfiles
3271
3272if { { ac_try="$ac_link_default"
3273case "(($ac_try" in
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3276esac
3277eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3278$as_echo "$ac_try_echo"; } >&5
3279 (eval "$ac_link_default") 2>&5
3280 ac_status=$?
3281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3282 test $ac_status = 0; }; then :
3283 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3284# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3285# in a Makefile. We should not override ac_cv_exeext if it was cached,
3286# so that the user can short-circuit this test for compilers unknown to
3287# Autoconf.
3288for ac_file in $ac_files ''
3289do
3290 test -f "$ac_file" || continue
3291 case $ac_file in
3292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3293 ;;
3294 [ab].out )
3295 # We found the default executable, but exeext='' is most
3296 # certainly right.
3297 break;;
3298 *.* )
3299 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3300 then :; else
3301 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3302 fi
3303 # We set ac_cv_exeext here because the later test for it is not
3304 # safe: cross compilers may not add the suffix if given an `-o'
3305 # argument, so we may need to know it at that point already.
3306 # Even if this section looks crufty: it has the advantage of
3307 # actually working.
3308 break;;
3309 * )
3310 break;;
3311 esac
3312done
3313test "$ac_cv_exeext" = no && ac_cv_exeext=
3314
3315else
3316 ac_file=''
3317fi
3318if test -z "$ac_file"; then :
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320$as_echo "no" >&6; }
3321$as_echo "$as_me: failed program was:" >&5
3322sed 's/^/| /' conftest.$ac_ext >&5
3323
3324{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3326as_fn_error 77 "C compiler cannot create executables
3327See \`config.log' for more details" "$LINENO" 5; }
3328else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3330$as_echo "yes" >&6; }
3331fi
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3333$as_echo_n "checking for C compiler default output file name... " >&6; }
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3335$as_echo "$ac_file" >&6; }
3336ac_exeext=$ac_cv_exeext
3337
3338rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3339ac_clean_files=$ac_clean_files_save
3340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3341$as_echo_n "checking for suffix of executables... " >&6; }
3342if { { ac_try="$ac_link"
3343case "(($ac_try" in
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3346esac
3347eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3348$as_echo "$ac_try_echo"; } >&5
3349 (eval "$ac_link") 2>&5
3350 ac_status=$?
3351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3352 test $ac_status = 0; }; then :
3353 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3354# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3355# work properly (i.e., refer to `conftest.exe'), while it won't with
3356# `rm'.
3357for ac_file in conftest.exe conftest conftest.*; do
3358 test -f "$ac_file" || continue
3359 case $ac_file in
3360 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3361 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3362 break;;
3363 * ) break;;
3364 esac
3365done
3366else
3367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3370See \`config.log' for more details" "$LINENO" 5; }
3371fi
3372rm -f conftest conftest$ac_cv_exeext
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3374$as_echo "$ac_cv_exeext" >&6; }
3375
3376rm -f conftest.$ac_ext
3377EXEEXT=$ac_cv_exeext
3378ac_exeext=$EXEEXT
3379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380/* end confdefs.h. */
3381#include <stdio.h>
3382int
3383main ()
3384{
3385FILE *f = fopen ("conftest.out", "w");
3386 return ferror (f) || fclose (f) != 0;
3387
3388 ;
3389 return 0;
3390}
3391_ACEOF
3392ac_clean_files="$ac_clean_files conftest.out"
3393# Check that the compiler produces executables we can run. If not, either
3394# the compiler is broken, or we cross compile.
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3396$as_echo_n "checking whether we are cross compiling... " >&6; }
3397if test "$cross_compiling" != yes; then
3398 { { ac_try="$ac_link"
3399case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402esac
3403eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3404$as_echo "$ac_try_echo"; } >&5
3405 (eval "$ac_link") 2>&5
3406 ac_status=$?
3407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3408 test $ac_status = 0; }
3409 if { ac_try='./conftest$ac_cv_exeext'
3410 { { case "(($ac_try" in
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3413esac
3414eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3415$as_echo "$ac_try_echo"; } >&5
3416 (eval "$ac_try") 2>&5
3417 ac_status=$?
3418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419 test $ac_status = 0; }; }; then
3420 cross_compiling=no
3421 else
3422 if test "$cross_compiling" = maybe; then
3423 cross_compiling=yes
3424 else
3425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3427as_fn_error $? "cannot run C compiled programs.
3428If you meant to cross compile, use \`--host'.
3429See \`config.log' for more details" "$LINENO" 5; }
3430 fi
3431 fi
3432fi
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3434$as_echo "$cross_compiling" >&6; }
3435
3436rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3437ac_clean_files=$ac_clean_files_save
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3439$as_echo_n "checking for suffix of object files... " >&6; }
3440if ${ac_cv_objext+:} false; then :
3441 $as_echo_n "(cached) " >&6
3442else
3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444/* end confdefs.h. */
3445
3446int
3447main ()
3448{
3449
3450 ;
3451 return 0;
3452}
3453_ACEOF
3454rm -f conftest.o conftest.obj
3455if { { ac_try="$ac_compile"
3456case "(($ac_try" in
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3459esac
3460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461$as_echo "$ac_try_echo"; } >&5
3462 (eval "$ac_compile") 2>&5
3463 ac_status=$?
3464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465 test $ac_status = 0; }; then :
3466 for ac_file in conftest.o conftest.obj conftest.*; do
3467 test -f "$ac_file" || continue;
3468 case $ac_file in
3469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3470 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3471 break;;
3472 esac
3473done
3474else
3475 $as_echo "$as_me: failed program was:" >&5
3476sed 's/^/| /' conftest.$ac_ext >&5
3477
3478{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3480as_fn_error $? "cannot compute suffix of object files: cannot compile
3481See \`config.log' for more details" "$LINENO" 5; }
3482fi
3483rm -f conftest.$ac_cv_objext conftest.$ac_ext
3484fi
3485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3486$as_echo "$ac_cv_objext" >&6; }
3487OBJEXT=$ac_cv_objext
3488ac_objext=$OBJEXT
3489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3490$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3491if ${ac_cv_c_compiler_gnu+:} false; then :
3492 $as_echo_n "(cached) " >&6
3493else
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495/* end confdefs.h. */
3496
3497int
3498main ()
3499{
3500#ifndef __GNUC__
3501 choke me
3502#endif
3503
3504 ;
3505 return 0;
3506}
3507_ACEOF
3508if ac_fn_c_try_compile "$LINENO"; then :
3509 ac_compiler_gnu=yes
3510else
3511 ac_compiler_gnu=no
3512fi
3513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514ac_cv_c_compiler_gnu=$ac_compiler_gnu
3515
3516fi
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3518$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3519if test $ac_compiler_gnu = yes; then
3520 GCC=yes
3521else
3522 GCC=
3523fi
3524ac_test_CFLAGS=${CFLAGS+set}
3525ac_save_CFLAGS=$CFLAGS
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3527$as_echo_n "checking whether $CC accepts -g... " >&6; }
3528if ${ac_cv_prog_cc_g+:} false; then :
3529 $as_echo_n "(cached) " >&6
3530else
3531 ac_save_c_werror_flag=$ac_c_werror_flag
3532 ac_c_werror_flag=yes
3533 ac_cv_prog_cc_g=no
3534 CFLAGS="-g"
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536/* end confdefs.h. */
3537
3538int
3539main ()
3540{
3541
3542 ;
3543 return 0;
3544}
3545_ACEOF
3546if ac_fn_c_try_compile "$LINENO"; then :
3547 ac_cv_prog_cc_g=yes
3548else
3549 CFLAGS=""
3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551/* end confdefs.h. */
3552
3553int
3554main ()
3555{
3556
3557 ;
3558 return 0;
3559}
3560_ACEOF
3561if ac_fn_c_try_compile "$LINENO"; then :
3562
3563else
3564 ac_c_werror_flag=$ac_save_c_werror_flag
3565 CFLAGS="-g"
3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567/* end confdefs.h. */
3568
3569int
3570main ()
3571{
3572
3573 ;
3574 return 0;
3575}
3576_ACEOF
3577if ac_fn_c_try_compile "$LINENO"; then :
3578 ac_cv_prog_cc_g=yes
3579fi
3580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581fi
3582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583fi
3584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 ac_c_werror_flag=$ac_save_c_werror_flag
3586fi
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3588$as_echo "$ac_cv_prog_cc_g" >&6; }
3589if test "$ac_test_CFLAGS" = set; then
3590 CFLAGS=$ac_save_CFLAGS
3591elif test $ac_cv_prog_cc_g = yes; then
3592 if test "$GCC" = yes; then
3593 CFLAGS="-g -O2"
3594 else
3595 CFLAGS="-g"
3596 fi
3597else
3598 if test "$GCC" = yes; then
3599 CFLAGS="-O2"
3600 else
3601 CFLAGS=
3602 fi
3603fi
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3605$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3606if ${ac_cv_prog_cc_c89+:} false; then :
3607 $as_echo_n "(cached) " >&6
3608else
3609 ac_cv_prog_cc_c89=no
3610ac_save_CC=$CC
3611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612/* end confdefs.h. */
3613#include <stdarg.h>
3614#include <stdio.h>
3615#include <sys/types.h>
3616#include <sys/stat.h>
3617/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3618struct buf { int x; };
3619FILE * (*rcsopen) (struct buf *, struct stat *, int);
3620static char *e (p, i)
3621 char **p;
3622 int i;
3623{
3624 return p[i];
3625}
3626static char *f (char * (*g) (char **, int), char **p, ...)
3627{
3628 char *s;
3629 va_list v;
3630 va_start (v,p);
3631 s = g (p, va_arg (v,int));
3632 va_end (v);
3633 return s;
3634}
3635
3636/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3637 function prototypes and stuff, but not '\xHH' hex character constants.
3638 These don't provoke an error unfortunately, instead are silently treated
3639 as 'x'. The following induces an error, until -std is added to get
3640 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3641 array size at least. It's necessary to write '\x00'==0 to get something
3642 that's true only with -std. */
3643int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3644
3645/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3646 inside strings and character constants. */
3647#define FOO(x) 'x'
3648int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3649
3650int test (int i, double x);
3651struct s1 {int (*f) (int a);};
3652struct s2 {int (*f) (double a);};
3653int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3654int argc;
3655char **argv;
3656int
3657main ()
3658{
3659return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3660 ;
3661 return 0;
3662}
3663_ACEOF
3664for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3665 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3666do
3667 CC="$ac_save_CC $ac_arg"
3668 if ac_fn_c_try_compile "$LINENO"; then :
3669 ac_cv_prog_cc_c89=$ac_arg
3670fi
3671rm -f core conftest.err conftest.$ac_objext
3672 test "x$ac_cv_prog_cc_c89" != "xno" && break
3673done
3674rm -f conftest.$ac_ext
3675CC=$ac_save_CC
3676
3677fi
3678# AC_CACHE_VAL
3679case "x$ac_cv_prog_cc_c89" in
3680 x)
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3682$as_echo "none needed" >&6; } ;;
3683 xno)
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3685$as_echo "unsupported" >&6; } ;;
3686 *)
3687 CC="$CC $ac_cv_prog_cc_c89"
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3689$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3690esac
3691if test "x$ac_cv_prog_cc_c89" != xno; then :
3692
3693fi
3694
3695ac_ext=c
3696ac_cpp='$CPP $CPPFLAGS'
3697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3699ac_compiler_gnu=$ac_cv_c_compiler_gnu
3700
3701depcc="$CC" am_compiler_list=
3702
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3704$as_echo_n "checking dependency style of $depcc... " >&6; }
3705if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3706 $as_echo_n "(cached) " >&6
3707else
3708 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3709 # We make a subdir and do the tests there. Otherwise we can end up
3710 # making bogus files that we don't know about and never remove. For
3711 # instance it was reported that on HP-UX the gcc test will end up
3712 # making a dummy file named `D' -- because `-MD' means `put the output
3713 # in D'.
3714 rm -rf conftest.dir
3715 mkdir conftest.dir
3716 # Copy depcomp to subdir because otherwise we won't find it if we're
3717 # using a relative directory.
3718 cp "$am_depcomp" conftest.dir
3719 cd conftest.dir
3720 # We will build objects and dependencies in a subdirectory because
3721 # it helps to detect inapplicable dependency modes. For instance
3722 # both Tru64's cc and ICC support -MD to output dependencies as a
3723 # side effect of compilation, but ICC will put the dependencies in
3724 # the current directory while Tru64 will put them in the object
3725 # directory.
3726 mkdir sub
3727
3728 am_cv_CC_dependencies_compiler_type=none
3729 if test "$am_compiler_list" = ""; then
3730 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3731 fi
3732 am__universal=false
3733 case " $depcc " in #(
3734 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3735 esac
3736
3737 for depmode in $am_compiler_list; do
3738 # Setup a source with many dependencies, because some compilers
3739 # like to wrap large dependency lists on column 80 (with \), and
3740 # we should not choose a depcomp mode which is confused by this.
3741 #
3742 # We need to recreate these files for each test, as the compiler may
3743 # overwrite some of them when testing with obscure command lines.
3744 # This happens at least with the AIX C compiler.
3745 : > sub/conftest.c
3746 for i in 1 2 3 4 5 6; do
3747 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3748 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3749 # Solaris 8's {/usr,}/bin/sh.
3750 touch sub/conftst$i.h
3751 done
3752 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3753
3754 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3755 # mode. It turns out that the SunPro C++ compiler does not properly
3756 # handle `-M -o', and we need to detect this. Also, some Intel
3757 # versions had trouble with output in subdirs
3758 am__obj=sub/conftest.${OBJEXT-o}
3759 am__minus_obj="-o $am__obj"
3760 case $depmode in
3761 gcc)
3762 # This depmode causes a compiler race in universal mode.
3763 test "$am__universal" = false || continue
3764 ;;
3765 nosideeffect)
3766 # after this tag, mechanisms are not by side-effect, so they'll
3767 # only be used when explicitly requested
3768 if test "x$enable_dependency_tracking" = xyes; then
3769 continue
3770 else
3771 break
3772 fi
3773 ;;
3774 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3775 # This compiler won't grok `-c -o', but also, the minuso test has
3776 # not run yet. These depmodes are late enough in the game, and
3777 # so weak that their functioning should not be impacted.
3778 am__obj=conftest.${OBJEXT-o}
3779 am__minus_obj=
3780 ;;
3781 none) break ;;
3782 esac
3783 if depmode=$depmode \
3784 source=sub/conftest.c object=$am__obj \
3785 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3786 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3787 >/dev/null 2>conftest.err &&
3788 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3789 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3790 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3791 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3792 # icc doesn't choke on unknown options, it will just issue warnings
3793 # or remarks (even with -Werror). So we grep stderr for any message
3794 # that says an option was ignored or not supported.
3795 # When given -MP, icc 7.0 and 7.1 complain thusly:
3796 # icc: Command line warning: ignoring option '-M'; no argument required
3797 # The diagnosis changed in icc 8.0:
3798 # icc: Command line remark: option '-MP' not supported
3799 if (grep 'ignoring option' conftest.err ||
3800 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3801 am_cv_CC_dependencies_compiler_type=$depmode
3802 break
3803 fi
3804 fi
3805 done
3806
3807 cd ..
3808 rm -rf conftest.dir
3809else
3810 am_cv_CC_dependencies_compiler_type=none
3811fi
3812
3813fi
3814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3815$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3816CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3817
3818 if
3819 test "x$enable_dependency_tracking" != xno \
3820 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3821 am__fastdepCC_TRUE=
3822 am__fastdepCC_FALSE='#'
3823else
3824 am__fastdepCC_TRUE='#'
3825 am__fastdepCC_FALSE=
3826fi
3827
3828
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
3830$as_echo_n "checking for function prototypes... " >&6; }
3831if test "$ac_cv_prog_cc_c89" != no; then
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3833$as_echo "yes" >&6; }
3834
3835$as_echo "#define PROTOTYPES 1" >>confdefs.h
3836
3837
3838$as_echo "#define __PROTOTYPES 1" >>confdefs.h
3839
3840else
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3842$as_echo "no" >&6; }
3843fi
3844
3845
3846ac_ext=c
3847ac_cpp='$CPP $CPPFLAGS'
3848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850ac_compiler_gnu=$ac_cv_c_compiler_gnu
3851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3852$as_echo_n "checking how to run the C preprocessor... " >&6; }
3853# On Suns, sometimes $CPP names a directory.
3854if test -n "$CPP" && test -d "$CPP"; then
3855 CPP=
3856fi
3857if test -z "$CPP"; then
3858 if ${ac_cv_prog_CPP+:} false; then :
3859 $as_echo_n "(cached) " >&6
3860else
3861 # Double quotes because CPP needs to be expanded
3862 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3863 do
3864 ac_preproc_ok=false
3865for ac_c_preproc_warn_flag in '' yes
3866do
3867 # Use a header file that comes with gcc, so configuring glibc
3868 # with a fresh cross-compiler works.
3869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3870 # <limits.h> exists even on freestanding compilers.
3871 # On the NeXT, cc -E runs the code through the compiler's parser,
3872 # not just through cpp. "Syntax error" is here to catch this case.
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874/* end confdefs.h. */
3875#ifdef __STDC__
3876# include <limits.h>
3877#else
3878# include <assert.h>
3879#endif
3880 Syntax error
3881_ACEOF
3882if ac_fn_c_try_cpp "$LINENO"; then :
3883
3884else
3885 # Broken: fails on valid input.
3886continue
3887fi
3888rm -f conftest.err conftest.i conftest.$ac_ext
3889
3890 # OK, works on sane cases. Now check whether nonexistent headers
3891 # can be detected and how.
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893/* end confdefs.h. */
3894#include <ac_nonexistent.h>
3895_ACEOF
3896if ac_fn_c_try_cpp "$LINENO"; then :
3897 # Broken: success on invalid input.
3898continue
3899else
3900 # Passes both tests.
3901ac_preproc_ok=:
3902break
3903fi
3904rm -f conftest.err conftest.i conftest.$ac_ext
3905
3906done
3907# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3908rm -f conftest.i conftest.err conftest.$ac_ext
3909if $ac_preproc_ok; then :
3910 break
3911fi
3912
3913 done
3914 ac_cv_prog_CPP=$CPP
3915
3916fi
3917 CPP=$ac_cv_prog_CPP
3918else
3919 ac_cv_prog_CPP=$CPP
3920fi
3921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3922$as_echo "$CPP" >&6; }
3923ac_preproc_ok=false
3924for ac_c_preproc_warn_flag in '' yes
3925do
3926 # Use a header file that comes with gcc, so configuring glibc
3927 # with a fresh cross-compiler works.
3928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3929 # <limits.h> exists even on freestanding compilers.
3930 # On the NeXT, cc -E runs the code through the compiler's parser,
3931 # not just through cpp. "Syntax error" is here to catch this case.
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933/* end confdefs.h. */
3934#ifdef __STDC__
3935# include <limits.h>
3936#else
3937# include <assert.h>
3938#endif
3939 Syntax error
3940_ACEOF
3941if ac_fn_c_try_cpp "$LINENO"; then :
3942
3943else
3944 # Broken: fails on valid input.
3945continue
3946fi
3947rm -f conftest.err conftest.i conftest.$ac_ext
3948
3949 # OK, works on sane cases. Now check whether nonexistent headers
3950 # can be detected and how.
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952/* end confdefs.h. */
3953#include <ac_nonexistent.h>
3954_ACEOF
3955if ac_fn_c_try_cpp "$LINENO"; then :
3956 # Broken: success on invalid input.
3957continue
3958else
3959 # Passes both tests.
3960ac_preproc_ok=:
3961break
3962fi
3963rm -f conftest.err conftest.i conftest.$ac_ext
3964
3965done
3966# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3967rm -f conftest.i conftest.err conftest.$ac_ext
3968if $ac_preproc_ok; then :
3969
3970else
3971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3972$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3973as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3974See \`config.log' for more details" "$LINENO" 5; }
3975fi
3976
3977ac_ext=c
3978ac_cpp='$CPP $CPPFLAGS'
3979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3981ac_compiler_gnu=$ac_cv_c_compiler_gnu
3982
3983
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3985$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3986if ${ac_cv_path_GREP+:} false; then :
3987 $as_echo_n "(cached) " >&6
3988else
3989 if test -z "$GREP"; then
3990 ac_path_GREP_found=false
3991 # Loop through the user's path and test for each of PROGNAME-LIST
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3994do
3995 IFS=$as_save_IFS
3996 test -z "$as_dir" && as_dir=.
3997 for ac_prog in grep ggrep; do
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4000 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4001# Check for GNU ac_path_GREP and select it if it is found.
4002 # Check for GNU $ac_path_GREP
4003case `"$ac_path_GREP" --version 2>&1` in
4004*GNU*)
4005 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4006*)
4007 ac_count=0
4008 $as_echo_n 0123456789 >"conftest.in"
4009 while :
4010 do
4011 cat "conftest.in" "conftest.in" >"conftest.tmp"
4012 mv "conftest.tmp" "conftest.in"
4013 cp "conftest.in" "conftest.nl"
4014 $as_echo 'GREP' >> "conftest.nl"
4015 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4016 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4017 as_fn_arith $ac_count + 1 && ac_count=$as_val
4018 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4019 # Best one so far, save it but keep looking for a better one
4020 ac_cv_path_GREP="$ac_path_GREP"
4021 ac_path_GREP_max=$ac_count
4022 fi
4023 # 10*(2^10) chars as input seems more than enough
4024 test $ac_count -gt 10 && break
4025 done
4026 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4027esac
4028
4029 $ac_path_GREP_found && break 3
4030 done
4031 done
4032 done
4033IFS=$as_save_IFS
4034 if test -z "$ac_cv_path_GREP"; then
4035 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4036 fi
4037else
4038 ac_cv_path_GREP=$GREP
4039fi
4040
4041fi
4042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4043$as_echo "$ac_cv_path_GREP" >&6; }
4044 GREP="$ac_cv_path_GREP"
4045
4046
4047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4048$as_echo_n "checking for egrep... " >&6; }
4049if ${ac_cv_path_EGREP+:} false; then :
4050 $as_echo_n "(cached) " >&6
4051else
4052 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4053 then ac_cv_path_EGREP="$GREP -E"
4054 else
4055 if test -z "$EGREP"; then
4056 ac_path_EGREP_found=false
4057 # Loop through the user's path and test for each of PROGNAME-LIST
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4060do
4061 IFS=$as_save_IFS
4062 test -z "$as_dir" && as_dir=.
4063 for ac_prog in egrep; do
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4066 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4067# Check for GNU ac_path_EGREP and select it if it is found.
4068 # Check for GNU $ac_path_EGREP
4069case `"$ac_path_EGREP" --version 2>&1` in
4070*GNU*)
4071 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4072*)
4073 ac_count=0
4074 $as_echo_n 0123456789 >"conftest.in"
4075 while :
4076 do
4077 cat "conftest.in" "conftest.in" >"conftest.tmp"
4078 mv "conftest.tmp" "conftest.in"
4079 cp "conftest.in" "conftest.nl"
4080 $as_echo 'EGREP' >> "conftest.nl"
4081 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4082 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4083 as_fn_arith $ac_count + 1 && ac_count=$as_val
4084 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4085 # Best one so far, save it but keep looking for a better one
4086 ac_cv_path_EGREP="$ac_path_EGREP"
4087 ac_path_EGREP_max=$ac_count
4088 fi
4089 # 10*(2^10) chars as input seems more than enough
4090 test $ac_count -gt 10 && break
4091 done
4092 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4093esac
4094
4095 $ac_path_EGREP_found && break 3
4096 done
4097 done
4098 done
4099IFS=$as_save_IFS
4100 if test -z "$ac_cv_path_EGREP"; then
4101 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4102 fi
4103else
4104 ac_cv_path_EGREP=$EGREP
4105fi
4106
4107 fi
4108fi
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4110$as_echo "$ac_cv_path_EGREP" >&6; }
4111 EGREP="$ac_cv_path_EGREP"
4112
4113
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4115$as_echo_n "checking for ANSI C header files... " >&6; }
4116if ${ac_cv_header_stdc+:} false; then :
4117 $as_echo_n "(cached) " >&6
4118else
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120/* end confdefs.h. */
4121#include <stdlib.h>
4122#include <stdarg.h>
4123#include <string.h>
4124#include <float.h>
4125
4126int
4127main ()
4128{
4129
4130 ;
4131 return 0;
4132}
4133_ACEOF
4134if ac_fn_c_try_compile "$LINENO"; then :
4135 ac_cv_header_stdc=yes
4136else
4137 ac_cv_header_stdc=no
4138fi
4139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140
4141if test $ac_cv_header_stdc = yes; then
4142 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144/* end confdefs.h. */
4145#include <string.h>
4146
4147_ACEOF
4148if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4149 $EGREP "memchr" >/dev/null 2>&1; then :
4150
4151else
4152 ac_cv_header_stdc=no
4153fi
4154rm -f conftest*
4155
4156fi
4157
4158if test $ac_cv_header_stdc = yes; then
4159 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161/* end confdefs.h. */
4162#include <stdlib.h>
4163
4164_ACEOF
4165if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4166 $EGREP "free" >/dev/null 2>&1; then :
4167
4168else
4169 ac_cv_header_stdc=no
4170fi
4171rm -f conftest*
4172
4173fi
4174
4175if test $ac_cv_header_stdc = yes; then
4176 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4177 if test "$cross_compiling" = yes; then :
4178 :
4179else
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181/* end confdefs.h. */
4182#include <ctype.h>
4183#include <stdlib.h>
4184#if ((' ' & 0x0FF) == 0x020)
4185# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4186# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4187#else
4188# define ISLOWER(c) \
4189 (('a' <= (c) && (c) <= 'i') \
4190 || ('j' <= (c) && (c) <= 'r') \
4191 || ('s' <= (c) && (c) <= 'z'))
4192# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4193#endif
4194
4195#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4196int
4197main ()
4198{
4199 int i;
4200 for (i = 0; i < 256; i++)
4201 if (XOR (islower (i), ISLOWER (i))
4202 || toupper (i) != TOUPPER (i))
4203 return 2;
4204 return 0;
4205}
4206_ACEOF
4207if ac_fn_c_try_run "$LINENO"; then :
4208
4209else
4210 ac_cv_header_stdc=no
4211fi
4212rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4213 conftest.$ac_objext conftest.beam conftest.$ac_ext
4214fi
4215
4216fi
4217fi
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4219$as_echo "$ac_cv_header_stdc" >&6; }
4220if test $ac_cv_header_stdc = yes; then
4221
4222$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4223
4224fi
4225
4226# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4227for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4228 inttypes.h stdint.h unistd.h
4229do :
4230 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4231ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4232"
4233if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4234 cat >>confdefs.h <<_ACEOF
4235#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4236_ACEOF
4237
4238fi
4239
4240done
4241
4242
4243
4244
4245if test "$ac_cv_prog_cc_stdc" != no; then
4246 U= ANSI2KNR=
4247else
4248 U=_ ANSI2KNR=./ansi2knr
4249fi
4250# Ensure some checks needed by ansi2knr itself.
4251
4252for ac_header in string.h
4253do :
4254 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4255if test "x$ac_cv_header_string_h" = xyes; then :
4256 cat >>confdefs.h <<_ACEOF
4257#define HAVE_STRING_H 1
4258_ACEOF
4259
4260fi
4261
4262done
4263
4264
4265
4266# Add configure option --enable-maintainer-mode which enables
4267# dependency checking and generation useful to package maintainers.
4268# This is made an option to avoid confusing end users.
4269
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4271$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4272 # Check whether --enable-maintainer-mode was given.
4273if test "${enable_maintainer_mode+set}" = set; then :
4274 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4275else
4276 USE_MAINTAINER_MODE=no
4277fi
4278
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4280$as_echo "$USE_MAINTAINER_MODE" >&6; }
4281 if test $USE_MAINTAINER_MODE = yes; then
4282 MAINTAINER_MODE_TRUE=
4283 MAINTAINER_MODE_FALSE='#'
4284else
4285 MAINTAINER_MODE_TRUE='#'
4286 MAINTAINER_MODE_FALSE=
4287fi
4288
4289 MAINT=$MAINTAINER_MODE_TRUE
4290
4291
4292
4293# Check for programs
4294ac_ext=c
4295ac_cpp='$CPP $CPPFLAGS'
4296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298ac_compiler_gnu=$ac_cv_c_compiler_gnu
4299if test -n "$ac_tool_prefix"; then
4300 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4301set dummy ${ac_tool_prefix}gcc; ac_word=$2
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4303$as_echo_n "checking for $ac_word... " >&6; }
4304if ${ac_cv_prog_CC+:} false; then :
4305 $as_echo_n "(cached) " >&6
4306else
4307 if test -n "$CC"; then
4308 ac_cv_prog_CC="$CC" # Let the user override the test.
4309else
4310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311for as_dir in $PATH
4312do
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4317 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 break 2
4320 fi
4321done
4322 done
4323IFS=$as_save_IFS
4324
4325fi
4326fi
4327CC=$ac_cv_prog_CC
4328if test -n "$CC"; then
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4330$as_echo "$CC" >&6; }
4331else
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4333$as_echo "no" >&6; }
4334fi
4335
4336
4337fi
4338if test -z "$ac_cv_prog_CC"; then
4339 ac_ct_CC=$CC
4340 # Extract the first word of "gcc", so it can be a program name with args.
4341set dummy gcc; ac_word=$2
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4343$as_echo_n "checking for $ac_word... " >&6; }
4344if ${ac_cv_prog_ac_ct_CC+:} false; then :
4345 $as_echo_n "(cached) " >&6
4346else
4347 if test -n "$ac_ct_CC"; then
4348 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4349else
4350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351for as_dir in $PATH
4352do
4353 IFS=$as_save_IFS
4354 test -z "$as_dir" && as_dir=.
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4357 ac_cv_prog_ac_ct_CC="gcc"
4358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4359 break 2
4360 fi
4361done
4362 done
4363IFS=$as_save_IFS
4364
4365fi
4366fi
4367ac_ct_CC=$ac_cv_prog_ac_ct_CC
4368if test -n "$ac_ct_CC"; then
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4370$as_echo "$ac_ct_CC" >&6; }
4371else
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4373$as_echo "no" >&6; }
4374fi
4375
4376 if test "x$ac_ct_CC" = x; then
4377 CC=""
4378 else
4379 case $cross_compiling:$ac_tool_warned in
4380yes:)
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4383ac_tool_warned=yes ;;
4384esac
4385 CC=$ac_ct_CC
4386 fi
4387else
4388 CC="$ac_cv_prog_CC"
4389fi
4390
4391if test -z "$CC"; then
4392 if test -n "$ac_tool_prefix"; then
4393 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4394set dummy ${ac_tool_prefix}cc; ac_word=$2
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396$as_echo_n "checking for $ac_word... " >&6; }
4397if ${ac_cv_prog_CC+:} false; then :
4398 $as_echo_n "(cached) " >&6
4399else
4400 if test -n "$CC"; then
4401 ac_cv_prog_CC="$CC" # Let the user override the test.
4402else
4403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404for as_dir in $PATH
4405do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410 ac_cv_prog_CC="${ac_tool_prefix}cc"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4413 fi
4414done
4415 done
4416IFS=$as_save_IFS
4417
4418fi
4419fi
4420CC=$ac_cv_prog_CC
4421if test -n "$CC"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4423$as_echo "$CC" >&6; }
4424else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426$as_echo "no" >&6; }
4427fi
4428
4429
4430 fi
4431fi
4432if test -z "$CC"; then
4433 # Extract the first word of "cc", so it can be a program name with args.
4434set dummy cc; ac_word=$2
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4436$as_echo_n "checking for $ac_word... " >&6; }
4437if ${ac_cv_prog_CC+:} false; then :
4438 $as_echo_n "(cached) " >&6
4439else
4440 if test -n "$CC"; then
4441 ac_cv_prog_CC="$CC" # Let the user override the test.
4442else
4443 ac_prog_rejected=no
4444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445for as_dir in $PATH
4446do
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4451 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4452 ac_prog_rejected=yes
4453 continue
4454 fi
4455 ac_cv_prog_CC="cc"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4458 fi
4459done
4460 done
4461IFS=$as_save_IFS
4462
4463if test $ac_prog_rejected = yes; then
4464 # We found a bogon in the path, so make sure we never use it.
4465 set dummy $ac_cv_prog_CC
4466 shift
4467 if test $# != 0; then
4468 # We chose a different compiler from the bogus one.
4469 # However, it has the same basename, so the bogon will be chosen
4470 # first if we set CC to just the basename; use the full file name.
4471 shift
4472 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4473 fi
4474fi
4475fi
4476fi
4477CC=$ac_cv_prog_CC
4478if test -n "$CC"; then
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4480$as_echo "$CC" >&6; }
4481else
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483$as_echo "no" >&6; }
4484fi
4485
4486
4487fi
4488if test -z "$CC"; then
4489 if test -n "$ac_tool_prefix"; then
4490 for ac_prog in cl.exe
4491 do
4492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4493set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495$as_echo_n "checking for $ac_word... " >&6; }
4496if ${ac_cv_prog_CC+:} false; then :
4497 $as_echo_n "(cached) " >&6
4498else
4499 if test -n "$CC"; then
4500 ac_cv_prog_CC="$CC" # Let the user override the test.
4501else
4502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503for as_dir in $PATH
4504do
4505 IFS=$as_save_IFS
4506 test -z "$as_dir" && as_dir=.
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4509 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 break 2
4512 fi
4513done
4514 done
4515IFS=$as_save_IFS
4516
4517fi
4518fi
4519CC=$ac_cv_prog_CC
4520if test -n "$CC"; then
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4522$as_echo "$CC" >&6; }
4523else
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525$as_echo "no" >&6; }
4526fi
4527
4528
4529 test -n "$CC" && break
4530 done
4531fi
4532if test -z "$CC"; then
4533 ac_ct_CC=$CC
4534 for ac_prog in cl.exe
4535do
4536 # Extract the first word of "$ac_prog", so it can be a program name with args.
4537set dummy $ac_prog; ac_word=$2
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539$as_echo_n "checking for $ac_word... " >&6; }
4540if ${ac_cv_prog_ac_ct_CC+:} false; then :
4541 $as_echo_n "(cached) " >&6
4542else
4543 if test -n "$ac_ct_CC"; then
4544 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4545else
4546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547for as_dir in $PATH
4548do
4549 IFS=$as_save_IFS
4550 test -z "$as_dir" && as_dir=.
4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4553 ac_cv_prog_ac_ct_CC="$ac_prog"
4554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4555 break 2
4556 fi
4557done
4558 done
4559IFS=$as_save_IFS
4560
4561fi
4562fi
4563ac_ct_CC=$ac_cv_prog_ac_ct_CC
4564if test -n "$ac_ct_CC"; then
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4566$as_echo "$ac_ct_CC" >&6; }
4567else
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569$as_echo "no" >&6; }
4570fi
4571
4572
4573 test -n "$ac_ct_CC" && break
4574done
4575
4576 if test "x$ac_ct_CC" = x; then
4577 CC=""
4578 else
4579 case $cross_compiling:$ac_tool_warned in
4580yes:)
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4583ac_tool_warned=yes ;;
4584esac
4585 CC=$ac_ct_CC
4586 fi
4587fi
4588
4589fi
4590
4591
4592test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4594as_fn_error $? "no acceptable C compiler found in \$PATH
4595See \`config.log' for more details" "$LINENO" 5; }
4596
4597# Provide some information about the compiler.
4598$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4599set X $ac_compile
4600ac_compiler=$2
4601for ac_option in --version -v -V -qversion; do
4602 { { ac_try="$ac_compiler $ac_option >&5"
4603case "(($ac_try" in
4604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4605 *) ac_try_echo=$ac_try;;
4606esac
4607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4608$as_echo "$ac_try_echo"; } >&5
4609 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4610 ac_status=$?
4611 if test -s conftest.err; then
4612 sed '10a\
4613... rest of stderr output deleted ...
4614 10q' conftest.err >conftest.er1
4615 cat conftest.er1 >&5
4616 fi
4617 rm -f conftest.er1 conftest.err
4618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4619 test $ac_status = 0; }
4620done
4621
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4623$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4624if ${ac_cv_c_compiler_gnu+:} false; then :
4625 $as_echo_n "(cached) " >&6
4626else
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628/* end confdefs.h. */
4629
4630int
4631main ()
4632{
4633#ifndef __GNUC__
4634 choke me
4635#endif
4636
4637 ;
4638 return 0;
4639}
4640_ACEOF
4641if ac_fn_c_try_compile "$LINENO"; then :
4642 ac_compiler_gnu=yes
4643else
4644 ac_compiler_gnu=no
4645fi
4646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4647ac_cv_c_compiler_gnu=$ac_compiler_gnu
4648
4649fi
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4651$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4652if test $ac_compiler_gnu = yes; then
4653 GCC=yes
4654else
4655 GCC=
4656fi
4657ac_test_CFLAGS=${CFLAGS+set}
4658ac_save_CFLAGS=$CFLAGS
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4660$as_echo_n "checking whether $CC accepts -g... " >&6; }
4661if ${ac_cv_prog_cc_g+:} false; then :
4662 $as_echo_n "(cached) " >&6
4663else
4664 ac_save_c_werror_flag=$ac_c_werror_flag
4665 ac_c_werror_flag=yes
4666 ac_cv_prog_cc_g=no
4667 CFLAGS="-g"
4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669/* end confdefs.h. */
4670
4671int
4672main ()
4673{
4674
4675 ;
4676 return 0;
4677}
4678_ACEOF
4679if ac_fn_c_try_compile "$LINENO"; then :
4680 ac_cv_prog_cc_g=yes
4681else
4682 CFLAGS=""
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684/* end confdefs.h. */
4685
4686int
4687main ()
4688{
4689
4690 ;
4691 return 0;
4692}
4693_ACEOF
4694if ac_fn_c_try_compile "$LINENO"; then :
4695
4696else
4697 ac_c_werror_flag=$ac_save_c_werror_flag
4698 CFLAGS="-g"
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700/* end confdefs.h. */
4701
4702int
4703main ()
4704{
4705
4706 ;
4707 return 0;
4708}
4709_ACEOF
4710if ac_fn_c_try_compile "$LINENO"; then :
4711 ac_cv_prog_cc_g=yes
4712fi
4713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714fi
4715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4716fi
4717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718 ac_c_werror_flag=$ac_save_c_werror_flag
4719fi
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4721$as_echo "$ac_cv_prog_cc_g" >&6; }
4722if test "$ac_test_CFLAGS" = set; then
4723 CFLAGS=$ac_save_CFLAGS
4724elif test $ac_cv_prog_cc_g = yes; then
4725 if test "$GCC" = yes; then
4726 CFLAGS="-g -O2"
4727 else
4728 CFLAGS="-g"
4729 fi
4730else
4731 if test "$GCC" = yes; then
4732 CFLAGS="-O2"
4733 else
4734 CFLAGS=
4735 fi
4736fi
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4738$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4739if ${ac_cv_prog_cc_c89+:} false; then :
4740 $as_echo_n "(cached) " >&6
4741else
4742 ac_cv_prog_cc_c89=no
4743ac_save_CC=$CC
4744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745/* end confdefs.h. */
4746#include <stdarg.h>
4747#include <stdio.h>
4748#include <sys/types.h>
4749#include <sys/stat.h>
4750/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4751struct buf { int x; };
4752FILE * (*rcsopen) (struct buf *, struct stat *, int);
4753static char *e (p, i)
4754 char **p;
4755 int i;
4756{
4757 return p[i];
4758}
4759static char *f (char * (*g) (char **, int), char **p, ...)
4760{
4761 char *s;
4762 va_list v;
4763 va_start (v,p);
4764 s = g (p, va_arg (v,int));
4765 va_end (v);
4766 return s;
4767}
4768
4769/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4770 function prototypes and stuff, but not '\xHH' hex character constants.
4771 These don't provoke an error unfortunately, instead are silently treated
4772 as 'x'. The following induces an error, until -std is added to get
4773 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4774 array size at least. It's necessary to write '\x00'==0 to get something
4775 that's true only with -std. */
4776int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4777
4778/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4779 inside strings and character constants. */
4780#define FOO(x) 'x'
4781int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4782
4783int test (int i, double x);
4784struct s1 {int (*f) (int a);};
4785struct s2 {int (*f) (double a);};
4786int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4787int argc;
4788char **argv;
4789int
4790main ()
4791{
4792return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4793 ;
4794 return 0;
4795}
4796_ACEOF
4797for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4798 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4799do
4800 CC="$ac_save_CC $ac_arg"
4801 if ac_fn_c_try_compile "$LINENO"; then :
4802 ac_cv_prog_cc_c89=$ac_arg
4803fi
4804rm -f core conftest.err conftest.$ac_objext
4805 test "x$ac_cv_prog_cc_c89" != "xno" && break
4806done
4807rm -f conftest.$ac_ext
4808CC=$ac_save_CC
4809
4810fi
4811# AC_CACHE_VAL
4812case "x$ac_cv_prog_cc_c89" in
4813 x)
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4815$as_echo "none needed" >&6; } ;;
4816 xno)
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4818$as_echo "unsupported" >&6; } ;;
4819 *)
4820 CC="$CC $ac_cv_prog_cc_c89"
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4822$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4823esac
4824if test "x$ac_cv_prog_cc_c89" != xno; then :
4825
4826fi
4827
4828ac_ext=c
4829ac_cpp='$CPP $CPPFLAGS'
4830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4832ac_compiler_gnu=$ac_cv_c_compiler_gnu
4833
4834depcc="$CC" am_compiler_list=
4835
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4837$as_echo_n "checking dependency style of $depcc... " >&6; }
4838if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4839 $as_echo_n "(cached) " >&6
4840else
4841 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4842 # We make a subdir and do the tests there. Otherwise we can end up
4843 # making bogus files that we don't know about and never remove. For
4844 # instance it was reported that on HP-UX the gcc test will end up
4845 # making a dummy file named `D' -- because `-MD' means `put the output
4846 # in D'.
4847 rm -rf conftest.dir
4848 mkdir conftest.dir
4849 # Copy depcomp to subdir because otherwise we won't find it if we're
4850 # using a relative directory.
4851 cp "$am_depcomp" conftest.dir
4852 cd conftest.dir
4853 # We will build objects and dependencies in a subdirectory because
4854 # it helps to detect inapplicable dependency modes. For instance
4855 # both Tru64's cc and ICC support -MD to output dependencies as a
4856 # side effect of compilation, but ICC will put the dependencies in
4857 # the current directory while Tru64 will put them in the object
4858 # directory.
4859 mkdir sub
4860
4861 am_cv_CC_dependencies_compiler_type=none
4862 if test "$am_compiler_list" = ""; then
4863 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4864 fi
4865 am__universal=false
4866 case " $depcc " in #(
4867 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4868 esac
4869
4870 for depmode in $am_compiler_list; do
4871 # Setup a source with many dependencies, because some compilers
4872 # like to wrap large dependency lists on column 80 (with \), and
4873 # we should not choose a depcomp mode which is confused by this.
4874 #
4875 # We need to recreate these files for each test, as the compiler may
4876 # overwrite some of them when testing with obscure command lines.
4877 # This happens at least with the AIX C compiler.
4878 : > sub/conftest.c
4879 for i in 1 2 3 4 5 6; do
4880 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4881 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4882 # Solaris 8's {/usr,}/bin/sh.
4883 touch sub/conftst$i.h
4884 done
4885 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4886
4887 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4888 # mode. It turns out that the SunPro C++ compiler does not properly
4889 # handle `-M -o', and we need to detect this. Also, some Intel
4890 # versions had trouble with output in subdirs
4891 am__obj=sub/conftest.${OBJEXT-o}
4892 am__minus_obj="-o $am__obj"
4893 case $depmode in
4894 gcc)
4895 # This depmode causes a compiler race in universal mode.
4896 test "$am__universal" = false || continue
4897 ;;
4898 nosideeffect)
4899 # after this tag, mechanisms are not by side-effect, so they'll
4900 # only be used when explicitly requested
4901 if test "x$enable_dependency_tracking" = xyes; then
4902 continue
4903 else
4904 break
4905 fi
4906 ;;
4907 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4908 # This compiler won't grok `-c -o', but also, the minuso test has
4909 # not run yet. These depmodes are late enough in the game, and
4910 # so weak that their functioning should not be impacted.
4911 am__obj=conftest.${OBJEXT-o}
4912 am__minus_obj=
4913 ;;
4914 none) break ;;
4915 esac
4916 if depmode=$depmode \
4917 source=sub/conftest.c object=$am__obj \
4918 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4919 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4920 >/dev/null 2>conftest.err &&
4921 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4922 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4923 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4924 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4925 # icc doesn't choke on unknown options, it will just issue warnings
4926 # or remarks (even with -Werror). So we grep stderr for any message
4927 # that says an option was ignored or not supported.
4928 # When given -MP, icc 7.0 and 7.1 complain thusly:
4929 # icc: Command line warning: ignoring option '-M'; no argument required
4930 # The diagnosis changed in icc 8.0:
4931 # icc: Command line remark: option '-MP' not supported
4932 if (grep 'ignoring option' conftest.err ||
4933 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4934 am_cv_CC_dependencies_compiler_type=$depmode
4935 break
4936 fi
4937 fi
4938 done
4939
4940 cd ..
4941 rm -rf conftest.dir
4942else
4943 am_cv_CC_dependencies_compiler_type=none
4944fi
4945
4946fi
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4948$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4949CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4950
4951 if
4952 test "x$enable_dependency_tracking" != xno \
4953 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4954 am__fastdepCC_TRUE=
4955 am__fastdepCC_FALSE='#'
4956else
4957 am__fastdepCC_TRUE='#'
4958 am__fastdepCC_FALSE=
4959fi
4960
4961
4962 case $ac_cv_prog_cc_stdc in #(
4963 no) :
4964 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4965 *) :
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4967$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4968if ${ac_cv_prog_cc_c99+:} false; then :
4969 $as_echo_n "(cached) " >&6
4970else
4971 ac_cv_prog_cc_c99=no
4972ac_save_CC=$CC
4973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974/* end confdefs.h. */
4975#include <stdarg.h>
4976#include <stdbool.h>
4977#include <stdlib.h>
4978#include <wchar.h>
4979#include <stdio.h>
4980
4981// Check varargs macros. These examples are taken from C99 6.10.3.5.
4982#define debug(...) fprintf (stderr, __VA_ARGS__)
4983#define showlist(...) puts (#__VA_ARGS__)
4984#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4985static void
4986test_varargs_macros (void)
4987{
4988 int x = 1234;
4989 int y = 5678;
4990 debug ("Flag");
4991 debug ("X = %d\n", x);
4992 showlist (The first, second, and third items.);
4993 report (x>y, "x is %d but y is %d", x, y);
4994}
4995
4996// Check long long types.
4997#define BIG64 18446744073709551615ull
4998#define BIG32 4294967295ul
4999#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5000#if !BIG_OK
5001 your preprocessor is broken;
5002#endif
5003#if BIG_OK
5004#else
5005 your preprocessor is broken;
5006#endif
5007static long long int bignum = -9223372036854775807LL;
5008static unsigned long long int ubignum = BIG64;
5009
5010struct incomplete_array
5011{
5012 int datasize;
5013 double data[];
5014};
5015
5016struct named_init {
5017 int number;
5018 const wchar_t *name;
5019 double average;
5020};
5021
5022typedef const char *ccp;
5023
5024static inline int
5025test_restrict (ccp restrict text)
5026{
5027 // See if C++-style comments work.
5028 // Iterate through items via the restricted pointer.
5029 // Also check for declarations in for loops.
5030 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5031 continue;
5032 return 0;
5033}
5034
5035// Check varargs and va_copy.
5036static void
5037test_varargs (const char *format, ...)
5038{
5039 va_list args;
5040 va_start (args, format);
5041 va_list args_copy;
5042 va_copy (args_copy, args);
5043
5044 const char *str;
5045 int number;
5046 float fnumber;
5047
5048 while (*format)
5049 {
5050 switch (*format++)
5051 {
5052 case 's': // string
5053 str = va_arg (args_copy, const char *);
5054 break;
5055 case 'd': // int
5056 number = va_arg (args_copy, int);
5057 break;
5058 case 'f': // float
5059 fnumber = va_arg (args_copy, double);
5060 break;
5061 default:
5062 break;
5063 }
5064 }
5065 va_end (args_copy);
5066 va_end (args);
5067}
5068
5069int
5070main ()
5071{
5072
5073 // Check bool.
5074 _Bool success = false;
5075
5076 // Check restrict.
5077 if (test_restrict ("String literal") == 0)
5078 success = true;
5079 char *restrict newvar = "Another string";
5080
5081 // Check varargs.
5082 test_varargs ("s, d' f .", "string", 65, 34.234);
5083 test_varargs_macros ();
5084
5085 // Check flexible array members.
5086 struct incomplete_array *ia =
5087 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5088 ia->datasize = 10;
5089 for (int i = 0; i < ia->datasize; ++i)
5090 ia->data[i] = i * 1.234;
5091
5092 // Check named initializers.
5093 struct named_init ni = {
5094 .number = 34,
5095 .name = L"Test wide string",
5096 .average = 543.34343,
5097 };
5098
5099 ni.number = 58;
5100
5101 int dynamic_array[ni.number];
5102 dynamic_array[ni.number - 1] = 543;
5103
5104 // work around unused variable warnings
5105 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5106 || dynamic_array[ni.number - 1] != 543);
5107
5108 ;
5109 return 0;
5110}
5111_ACEOF
5112for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5113do
5114 CC="$ac_save_CC $ac_arg"
5115 if ac_fn_c_try_compile "$LINENO"; then :
5116 ac_cv_prog_cc_c99=$ac_arg
5117fi
5118rm -f core conftest.err conftest.$ac_objext
5119 test "x$ac_cv_prog_cc_c99" != "xno" && break
5120done
5121rm -f conftest.$ac_ext
5122CC=$ac_save_CC
5123
5124fi
5125# AC_CACHE_VAL
5126case "x$ac_cv_prog_cc_c99" in
5127 x)
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5129$as_echo "none needed" >&6; } ;;
5130 xno)
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5132$as_echo "unsupported" >&6; } ;;
5133 *)
5134 CC="$CC $ac_cv_prog_cc_c99"
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5136$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5137esac
5138if test "x$ac_cv_prog_cc_c99" != xno; then :
5139 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5140else
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5142$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5143if ${ac_cv_prog_cc_c89+:} false; then :
5144 $as_echo_n "(cached) " >&6
5145else
5146 ac_cv_prog_cc_c89=no
5147ac_save_CC=$CC
5148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149/* end confdefs.h. */
5150#include <stdarg.h>
5151#include <stdio.h>
5152#include <sys/types.h>
5153#include <sys/stat.h>
5154/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5155struct buf { int x; };
5156FILE * (*rcsopen) (struct buf *, struct stat *, int);
5157static char *e (p, i)
5158 char **p;
5159 int i;
5160{
5161 return p[i];
5162}
5163static char *f (char * (*g) (char **, int), char **p, ...)
5164{
5165 char *s;
5166 va_list v;
5167 va_start (v,p);
5168 s = g (p, va_arg (v,int));
5169 va_end (v);
5170 return s;
5171}
5172
5173/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5174 function prototypes and stuff, but not '\xHH' hex character constants.
5175 These don't provoke an error unfortunately, instead are silently treated
5176 as 'x'. The following induces an error, until -std is added to get
5177 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5178 array size at least. It's necessary to write '\x00'==0 to get something
5179 that's true only with -std. */
5180int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5181
5182/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5183 inside strings and character constants. */
5184#define FOO(x) 'x'
5185int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5186
5187int test (int i, double x);
5188struct s1 {int (*f) (int a);};
5189struct s2 {int (*f) (double a);};
5190int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5191int argc;
5192char **argv;
5193int
5194main ()
5195{
5196return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5197 ;
5198 return 0;
5199}
5200_ACEOF
5201for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5202 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5203do
5204 CC="$ac_save_CC $ac_arg"
5205 if ac_fn_c_try_compile "$LINENO"; then :
5206 ac_cv_prog_cc_c89=$ac_arg
5207fi
5208rm -f core conftest.err conftest.$ac_objext
5209 test "x$ac_cv_prog_cc_c89" != "xno" && break
5210done
5211rm -f conftest.$ac_ext
5212CC=$ac_save_CC
5213
5214fi
5215# AC_CACHE_VAL
5216case "x$ac_cv_prog_cc_c89" in
5217 x)
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5219$as_echo "none needed" >&6; } ;;
5220 xno)
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5222$as_echo "unsupported" >&6; } ;;
5223 *)
5224 CC="$CC $ac_cv_prog_cc_c89"
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5226$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5227esac
5228if test "x$ac_cv_prog_cc_c89" != xno; then :
5229 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5230else
5231 ac_cv_prog_cc_stdc=no
5232fi
5233
5234fi
5235 ;;
5236esac
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5238$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5239 if ${ac_cv_prog_cc_stdc+:} false; then :
5240 $as_echo_n "(cached) " >&6
5241fi
5242
5243 case $ac_cv_prog_cc_stdc in #(
5244 no) :
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5246$as_echo "unsupported" >&6; } ;; #(
5247 '') :
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5249$as_echo "none needed" >&6; } ;; #(
5250 *) :
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5252$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5253esac
5254
5255ac_ext=c
5256ac_cpp='$CPP $CPPFLAGS'
5257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5259ac_compiler_gnu=$ac_cv_c_compiler_gnu
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5261$as_echo_n "checking how to run the C preprocessor... " >&6; }
5262# On Suns, sometimes $CPP names a directory.
5263if test -n "$CPP" && test -d "$CPP"; then
5264 CPP=
5265fi
5266if test -z "$CPP"; then
5267 if ${ac_cv_prog_CPP+:} false; then :
5268 $as_echo_n "(cached) " >&6
5269else
5270 # Double quotes because CPP needs to be expanded
5271 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5272 do
5273 ac_preproc_ok=false
5274for ac_c_preproc_warn_flag in '' yes
5275do
5276 # Use a header file that comes with gcc, so configuring glibc
5277 # with a fresh cross-compiler works.
5278 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5279 # <limits.h> exists even on freestanding compilers.
5280 # On the NeXT, cc -E runs the code through the compiler's parser,
5281 # not just through cpp. "Syntax error" is here to catch this case.
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283/* end confdefs.h. */
5284#ifdef __STDC__
5285# include <limits.h>
5286#else
5287# include <assert.h>
5288#endif
5289 Syntax error
5290_ACEOF
5291if ac_fn_c_try_cpp "$LINENO"; then :
5292
5293else
5294 # Broken: fails on valid input.
5295continue
5296fi
5297rm -f conftest.err conftest.i conftest.$ac_ext
5298
5299 # OK, works on sane cases. Now check whether nonexistent headers
5300 # can be detected and how.
5301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302/* end confdefs.h. */
5303#include <ac_nonexistent.h>
5304_ACEOF
5305if ac_fn_c_try_cpp "$LINENO"; then :
5306 # Broken: success on invalid input.
5307continue
5308else
5309 # Passes both tests.
5310ac_preproc_ok=:
5311break
5312fi
5313rm -f conftest.err conftest.i conftest.$ac_ext
5314
5315done
5316# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5317rm -f conftest.i conftest.err conftest.$ac_ext
5318if $ac_preproc_ok; then :
5319 break
5320fi
5321
5322 done
5323 ac_cv_prog_CPP=$CPP
5324
5325fi
5326 CPP=$ac_cv_prog_CPP
5327else
5328 ac_cv_prog_CPP=$CPP
5329fi
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5331$as_echo "$CPP" >&6; }
5332ac_preproc_ok=false
5333for ac_c_preproc_warn_flag in '' yes
5334do
5335 # Use a header file that comes with gcc, so configuring glibc
5336 # with a fresh cross-compiler works.
5337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5338 # <limits.h> exists even on freestanding compilers.
5339 # On the NeXT, cc -E runs the code through the compiler's parser,
5340 # not just through cpp. "Syntax error" is here to catch this case.
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342/* end confdefs.h. */
5343#ifdef __STDC__
5344# include <limits.h>
5345#else
5346# include <assert.h>
5347#endif
5348 Syntax error
5349_ACEOF
5350if ac_fn_c_try_cpp "$LINENO"; then :
5351
5352else
5353 # Broken: fails on valid input.
5354continue
5355fi
5356rm -f conftest.err conftest.i conftest.$ac_ext
5357
5358 # OK, works on sane cases. Now check whether nonexistent headers
5359 # can be detected and how.
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361/* end confdefs.h. */
5362#include <ac_nonexistent.h>
5363_ACEOF
5364if ac_fn_c_try_cpp "$LINENO"; then :
5365 # Broken: success on invalid input.
5366continue
5367else
5368 # Passes both tests.
5369ac_preproc_ok=:
5370break
5371fi
5372rm -f conftest.err conftest.i conftest.$ac_ext
5373
5374done
5375# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5376rm -f conftest.i conftest.err conftest.$ac_ext
5377if $ac_preproc_ok; then :
5378
5379else
5380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5381$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5382as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5383See \`config.log' for more details" "$LINENO" 5; }
5384fi
5385
5386ac_ext=c
5387ac_cpp='$CPP $CPPFLAGS'
5388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5390ac_compiler_gnu=$ac_cv_c_compiler_gnu
5391
5392
5393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5394$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5395set x ${MAKE-make}
5396ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5397if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5398 $as_echo_n "(cached) " >&6
5399else
5400 cat >conftest.make <<\_ACEOF
5401SHELL = /bin/sh
5402all:
5403 @echo '@@@%%%=$(MAKE)=@@@%%%'
5404_ACEOF
5405# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5406case `${MAKE-make} -f conftest.make 2>/dev/null` in
5407 *@@@%%%=?*=@@@%%%*)
5408 eval ac_cv_prog_make_${ac_make}_set=yes;;
5409 *)
5410 eval ac_cv_prog_make_${ac_make}_set=no;;
5411esac
5412rm -f conftest.make
5413fi
5414if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5416$as_echo "yes" >&6; }
5417 SET_MAKE=
5418else
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420$as_echo "no" >&6; }
5421 SET_MAKE="MAKE=${MAKE-make}"
5422fi
5423
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5425$as_echo_n "checking whether ln -s works... " >&6; }
5426LN_S=$as_ln_s
5427if test "$LN_S" = "ln -s"; then
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5429$as_echo "yes" >&6; }
5430else
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5432$as_echo "no, using $LN_S" >&6; }
5433fi
5434
5435
5436# Check if LD supports linker scripts,
5437# and define automake conditional HAVE_LD_VERSION_SCRIPT if so.
5438# Check whether --enable-ld-version-script was given.
5439if test "${enable_ld_version_script+set}" = set; then :
5440 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
5441fi
5442
5443if test -z "$have_ld_version_script"; then
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
5445$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
5446 save_LDFLAGS="$LDFLAGS"
5447 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
5448 cat > conftest.map <<EOF
5449VERS_1 {
5450 global: sym;
5451};
5452
5453VERS_2 {
5454 global: sym;
5455} VERS_1;
5456EOF
5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458/* end confdefs.h. */
5459
5460int
5461main ()
5462{
5463
5464 ;
5465 return 0;
5466}
5467_ACEOF
5468if ac_fn_c_try_link "$LINENO"; then :
5469 have_ld_version_script=yes
5470else
5471 have_ld_version_script=no
5472fi
5473rm -f core conftest.err conftest.$ac_objext \
5474 conftest$ac_exeext conftest.$ac_ext
5475 rm -f conftest.map
5476 LDFLAGS="$save_LDFLAGS"
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
5478$as_echo "$have_ld_version_script" >&6; }
5479fi
5480 if test "$have_ld_version_script" = "yes"; then
5481 HAVE_LD_VERSION_SCRIPT_TRUE=
5482 HAVE_LD_VERSION_SCRIPT_FALSE='#'
5483else
5484 HAVE_LD_VERSION_SCRIPT_TRUE='#'
5485 HAVE_LD_VERSION_SCRIPT_FALSE=
5486fi
5487
5488
5489# See if compiler supports prototypes.
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
5491$as_echo_n "checking for function prototypes... " >&6; }
5492if ${ijg_cv_have_prototypes+:} false; then :
5493 $as_echo_n "(cached) " >&6
5494else
5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496/* end confdefs.h. */
5497
5498int testfunction (int arg1, int * arg2); /* check prototypes */
5499struct methods_struct { /* check method-pointer declarations */
5500 int (*error_exit) (char *msgtext);
5501 int (*trace_message) (char *msgtext);
5502 int (*another_method) (void);
5503};
5504int testfunction (int arg1, int * arg2) /* check definitions */
5505{ return arg2[arg1]; }
5506int test2function (void) /* check void arg list */
5507{ return 0; }
5508
5509_ACEOF
5510if ac_fn_c_try_compile "$LINENO"; then :
5511 ijg_cv_have_prototypes=yes
5512else
5513 ijg_cv_have_prototypes=no
5514fi
5515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516fi
5517
5518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_cv_have_prototypes" >&5
5519$as_echo "$ijg_cv_have_prototypes" >&6; }
5520if test $ijg_cv_have_prototypes = yes; then
5521
5522$as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
5523
5524else
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your compiler does not seem to know about function prototypes.
5526 Perhaps it needs a special switch to enable ANSI C mode.
5527 If so, we recommend running configure like this:
5528 ./configure CC='cc -switch'
5529 where -switch is the proper switch." >&5
5530$as_echo "$as_me: WARNING: Your compiler does not seem to know about function prototypes.
5531 Perhaps it needs a special switch to enable ANSI C mode.
5532 If so, we recommend running configure like this:
5533 ./configure CC='cc -switch'
5534 where -switch is the proper switch." >&2;}
5535fi
5536
5537# Check header files
5538for ac_header in stddef.h stdlib.h locale.h
5539do :
5540 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5541ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5542if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5543 cat >>confdefs.h <<_ACEOF
5544#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5545_ACEOF
5546
5547fi
5548
5549done
5550
5551ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5552if test "x$ac_cv_header_string_h" = xyes; then :
5553
5554else
5555
5556$as_echo "#define NEED_BSD_STRINGS 1" >>confdefs.h
5557
5558fi
5559
5560
5561
5562# See whether type size_t is defined in any ANSI-standard places;
5563# if not, perhaps it is defined in <sys/types.h>.
5564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
5565$as_echo_n "checking for size_t... " >&6; }
5566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567/* end confdefs.h. */
5568
5569#ifdef HAVE_STDDEF_H
5570#include <stddef.h>
5571#endif
5572#ifdef HAVE_STDLIB_H
5573#include <stdlib.h>
5574#endif
5575#include <stdio.h>
5576#ifdef NEED_BSD_STRINGS
5577#include <strings.h>
5578#else
5579#include <string.h>
5580#endif
5581typedef size_t my_size_t;
5582
5583int
5584main ()
5585{
5586 my_size_t foovar;
5587 ;
5588 return 0;
5589}
5590_ACEOF
5591if ac_fn_c_try_compile "$LINENO"; then :
5592 ijg_size_t_ok=yes
5593else
5594 ijg_size_t_ok="not ANSI, perhaps it is in sys/types.h"
5595fi
5596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_size_t_ok" >&5
5598$as_echo "$ijg_size_t_ok" >&6; }
5599if test "$ijg_size_t_ok" != yes; then
5600 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
5601if test "x$ac_cv_header_sys_types_h" = xyes; then :
5602
5603$as_echo "#define NEED_SYS_TYPES_H 1" >>confdefs.h
5604
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606/* end confdefs.h. */
5607#include <sys/types.h>
5608_ACEOF
5609if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5610 $EGREP "size_t" >/dev/null 2>&1; then :
5611 ijg_size_t_ok="size_t is in sys/types.h"
5612else
5613 ijg_size_t_ok=no
5614fi
5615rm -f conftest*
5616
5617else
5618 ijg_size_t_ok=no
5619fi
5620
5621
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_size_t_ok" >&5
5623$as_echo "$ijg_size_t_ok" >&6; }
5624 if test "$ijg_size_t_ok" = no; then
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Type size_t is not defined in any of the usual places.
5626 Try putting '\"typedef unsigned int size_t;\"' in jconfig.h." >&5
5627$as_echo "$as_me: WARNING: Type size_t is not defined in any of the usual places.
5628 Try putting '\"typedef unsigned int size_t;\"' in jconfig.h." >&2;}
5629 fi
5630fi
5631
5632# Check compiler characteristics
5633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type unsigned char" >&5
5634$as_echo_n "checking for type unsigned char... " >&6; }
5635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636/* end confdefs.h. */
5637
5638int
5639main ()
5640{
5641 unsigned char un_char;
5642 ;
5643 return 0;
5644}
5645_ACEOF
5646if ac_fn_c_try_compile "$LINENO"; then :
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5648$as_echo "yes" >&6; }
5649
5650$as_echo "#define HAVE_UNSIGNED_CHAR 1" >>confdefs.h
5651
5652else
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654$as_echo "no" >&6; }
5655fi
5656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5657
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type unsigned short" >&5
5659$as_echo_n "checking for type unsigned short... " >&6; }
5660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661/* end confdefs.h. */
5662
5663int
5664main ()
5665{
5666 unsigned short un_short;
5667 ;
5668 return 0;
5669}
5670_ACEOF
5671if ac_fn_c_try_compile "$LINENO"; then :
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5673$as_echo "yes" >&6; }
5674
5675$as_echo "#define HAVE_UNSIGNED_SHORT 1" >>confdefs.h
5676
5677else
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679$as_echo "no" >&6; }
5680fi
5681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type void" >&5
5684$as_echo_n "checking for type void... " >&6; }
5685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686/* end confdefs.h. */
5687
5688/* Caution: a C++ compiler will insist on valid prototypes */
5689typedef void * void_ptr; /* check void * */
5690#ifdef HAVE_PROTOTYPES /* check ptr to function returning void */
5691typedef void (*void_func) (int a, int b);
5692#else
5693typedef void (*void_func) ();
5694#endif
5695
5696#ifdef HAVE_PROTOTYPES /* check void function result */
5697void test3function (void_ptr arg1, void_func arg2)
5698#else
5699void test3function (arg1, arg2)
5700 void_ptr arg1;
5701 void_func arg2;
5702#endif
5703{
5704 char * locptr = (char *) arg1; /* check casting to and from void * */
5705 arg1 = (void *) locptr;
5706 (*arg2) (1, 2); /* check call of fcn returning void */
5707}
5708
5709int
5710main ()
5711{
5712
5713 ;
5714 return 0;
5715}
5716_ACEOF
5717if ac_fn_c_try_compile "$LINENO"; then :
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5719$as_echo "yes" >&6; }
5720else
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5722$as_echo "no" >&6; }
5723
5724$as_echo "#define void char" >>confdefs.h
5725
5726fi
5727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5729$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5730if ${ac_cv_c_const+:} false; then :
5731 $as_echo_n "(cached) " >&6
5732else
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734/* end confdefs.h. */
5735
5736int
5737main ()
5738{
5739/* FIXME: Include the comments suggested by Paul. */
5740#ifndef __cplusplus
5741 /* Ultrix mips cc rejects this. */
5742 typedef int charset[2];
5743 const charset cs;
5744 /* SunOS 4.1.1 cc rejects this. */
5745 char const *const *pcpcc;
5746 char **ppc;
5747 /* NEC SVR4.0.2 mips cc rejects this. */
5748 struct point {int x, y;};
5749 static struct point const zero = {0,0};
5750 /* AIX XL C 1.02.0.0 rejects this.
5751 It does not let you subtract one const X* pointer from another in
5752 an arm of an if-expression whose if-part is not a constant
5753 expression */
5754 const char *g = "string";
5755 pcpcc = &g + (g ? g-g : 0);
5756 /* HPUX 7.0 cc rejects these. */
5757 ++pcpcc;
5758 ppc = (char**) pcpcc;
5759 pcpcc = (char const *const *) ppc;
5760 { /* SCO 3.2v4 cc rejects this. */
5761 char *t;
5762 char const *s = 0 ? (char *) 0 : (char const *) 0;
5763
5764 *t++ = 0;
5765 if (s) return 0;
5766 }
5767 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5768 int x[] = {25, 17};
5769 const int *foo = &x[0];
5770 ++foo;
5771 }
5772 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5773 typedef const int *iptr;
5774 iptr p = 0;
5775 ++p;
5776 }
5777 { /* AIX XL C 1.02.0.0 rejects this saying
5778 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5779 struct s { int j; const int *ap[3]; };
5780 struct s *b; b->j = 5;
5781 }
5782 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5783 const int foo = 10;
5784 if (!foo) return 0;
5785 }
5786 return !cs[0] && !zero.x;
5787#endif
5788
5789 ;
5790 return 0;
5791}
5792_ACEOF
5793if ac_fn_c_try_compile "$LINENO"; then :
5794 ac_cv_c_const=yes
5795else
5796 ac_cv_c_const=no
5797fi
5798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799fi
5800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5801$as_echo "$ac_cv_c_const" >&6; }
5802if test $ac_cv_c_const = no; then
5803
5804$as_echo "#define const /**/" >>confdefs.h
5805
5806fi
5807
5808
5809# Check for non-broken inline under various spellings
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5811$as_echo_n "checking for inline... " >&6; }
5812ijg_cv_inline=""
5813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814/* end confdefs.h. */
5815
5816int
5817main ()
5818{
5819} __inline__ int foo() { return 0; }
5820int bar() { return foo();
5821 ;
5822 return 0;
5823}
5824_ACEOF
5825if ac_fn_c_try_compile "$LINENO"; then :
5826 ijg_cv_inline="__inline__"
5827else
5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829/* end confdefs.h. */
5830
5831int
5832main ()
5833{
5834} __inline int foo() { return 0; }
5835int bar() { return foo();
5836 ;
5837 return 0;
5838}
5839_ACEOF
5840if ac_fn_c_try_compile "$LINENO"; then :
5841 ijg_cv_inline="__inline"
5842else
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844/* end confdefs.h. */
5845
5846int
5847main ()
5848{
5849} inline int foo() { return 0; }
5850int bar() { return foo();
5851 ;
5852 return 0;
5853}
5854_ACEOF
5855if ac_fn_c_try_compile "$LINENO"; then :
5856 ijg_cv_inline="inline"
5857fi
5858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859fi
5860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861fi
5862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_cv_inline" >&5
5864$as_echo "$ijg_cv_inline" >&6; }
5865
5866cat >>confdefs.h <<_ACEOF
5867#define INLINE $ijg_cv_inline
5868_ACEOF
5869
5870
5871# We cannot check for bogus warnings, but at least we can check for errors
5872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken incomplete types" >&5
5873$as_echo_n "checking for broken incomplete types... " >&6; }
5874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875/* end confdefs.h. */
5876 typedef struct undefined_structure * undef_struct_ptr;
5877int
5878main ()
5879{
5880
5881 ;
5882 return 0;
5883}
5884_ACEOF
5885if ac_fn_c_try_compile "$LINENO"; then :
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5887$as_echo "ok" >&6; }
5888else
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
5890$as_echo "broken" >&6; }
5891
5892$as_echo "#define INCOMPLETE_TYPES_BROKEN 1" >>confdefs.h
5893
5894fi
5895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5896
5897# Test whether global names are unique to at least 15 chars
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for short external names" >&5
5899$as_echo_n "checking for short external names... " >&6; }
5900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901/* end confdefs.h. */
5902
5903int possibly_duplicate_function () { return 0; }
5904int possibly_dupli_function () { return 1; }
5905
5906int
5907main ()
5908{
5909
5910 ;
5911 return 0;
5912}
5913_ACEOF
5914if ac_fn_c_try_link "$LINENO"; then :
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5916$as_echo "ok" >&6; }
5917else
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: short" >&5
5919$as_echo "short" >&6; }
5920
5921$as_echo "#define NEED_SHORT_EXTERNAL_NAMES 1" >>confdefs.h
5922
5923fi
5924rm -f core conftest.err conftest.$ac_objext \
5925 conftest$ac_exeext conftest.$ac_ext
5926
5927# Run-time checks
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if char is signed" >&5
5929$as_echo_n "checking to see if char is signed... " >&6; }
5930if test "$cross_compiling" = yes; then :
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Assuming that char is signed on target machine.
5932 If it is unsigned, this will be a little bit inefficient." >&5
5933$as_echo "$as_me: WARNING: Assuming that char is signed on target machine.
5934 If it is unsigned, this will be a little bit inefficient." >&2;}
5935
5936else
5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938/* end confdefs.h. */
5939
5940#ifdef HAVE_PROTOTYPES
5941int is_char_signed (int arg)
5942#else
5943int is_char_signed (arg)
5944 int arg;
5945#endif
5946{
5947 if (arg == 189) { /* expected result for unsigned char */
5948 return 0; /* type char is unsigned */
5949 }
5950 else if (arg != -67) { /* expected result for signed char */
5951 printf("Hmm, it seems 'char' is not eight bits wide on your machine.\n");
5952 printf("I fear the JPEG software will not work at all.\n\n");
5953 }
5954 return 1; /* assume char is signed otherwise */
5955}
5956char signed_char_check = (char) (-67);
5957int main() {
5958 exit(is_char_signed((int) signed_char_check));
5959}
5960_ACEOF
5961if ac_fn_c_try_run "$LINENO"; then :
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5963$as_echo "no" >&6; }
5964
5965$as_echo "#define CHAR_IS_UNSIGNED 1" >>confdefs.h
5966
5967else
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5969$as_echo "yes" >&6; }
5970fi
5971rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5972 conftest.$ac_objext conftest.beam conftest.$ac_ext
5973fi
5974
5975
5976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if right shift is signed" >&5
5977$as_echo_n "checking to see if right shift is signed... " >&6; }
5978if test "$cross_compiling" = yes; then :
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Assuming that right shift is signed on target machine." >&5
5980$as_echo "Assuming that right shift is signed on target machine." >&6; }
5981else
5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983/* end confdefs.h. */
5984
5985#ifdef HAVE_PROTOTYPES
5986int is_shifting_signed (long arg)
5987#else
5988int is_shifting_signed (arg)
5989 long arg;
5990#endif
5991/* See whether right-shift on a long is signed or not. */
5992{
5993 long res = arg >> 4;
5994
5995 if (res == -0x7F7E80CL) { /* expected result for signed shift */
5996 return 1; /* right shift is signed */
5997 }
5998 /* see if unsigned-shift hack will fix it. */
5999 /* we can't just test exact value since it depends on width of long... */
6000 res |= (~0L) << (32-4);
6001 if (res == -0x7F7E80CL) { /* expected result now? */
6002 return 0; /* right shift is unsigned */
6003 }
6004 printf("Right shift isn't acting as I expect it to.\n");
6005 printf("I fear the JPEG software will not work at all.\n\n");
6006 return 0; /* try it with unsigned anyway */
6007}
6008int main() {
6009 exit(is_shifting_signed(-0x7F7E80B1L));
6010}
6011_ACEOF
6012if ac_fn_c_try_run "$LINENO"; then :
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014$as_echo "no" >&6; }
6015
6016$as_echo "#define RIGHT_SHIFT_IS_UNSIGNED 1" >>confdefs.h
6017
6018else
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6020$as_echo "yes" >&6; }
6021fi
6022rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6023 conftest.$ac_objext conftest.beam conftest.$ac_ext
6024fi
6025
6026
6027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if fopen accepts b spec" >&5
6028$as_echo_n "checking to see if fopen accepts b spec... " >&6; }
6029if test "$cross_compiling" = yes; then :
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Assuming that it does." >&5
6031$as_echo "Assuming that it does." >&6; }
6032else
6033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034/* end confdefs.h. */
6035
6036#include <stdio.h>
6037int main() {
6038 if (fopen("conftestdata", "wb") != NULL)
6039 exit(0);
6040 exit(1);
6041}
6042_ACEOF
6043if ac_fn_c_try_run "$LINENO"; then :
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6045$as_echo "yes" >&6; }
6046else
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048$as_echo "no" >&6; }
6049
6050$as_echo "#define DONT_USE_B_MODE 1" >>confdefs.h
6051
6052fi
6053rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6054 conftest.$ac_objext conftest.beam conftest.$ac_ext
6055fi
6056
6057
6058# Configure libtool
6059enable_win32_dll=yes
6060
6061case $host in
6062*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
6063 if test -n "$ac_tool_prefix"; then
6064 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6065set dummy ${ac_tool_prefix}as; ac_word=$2
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6067$as_echo_n "checking for $ac_word... " >&6; }
6068if ${ac_cv_prog_AS+:} false; then :
6069 $as_echo_n "(cached) " >&6
6070else
6071 if test -n "$AS"; then
6072 ac_cv_prog_AS="$AS" # Let the user override the test.
6073else
6074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075for as_dir in $PATH
6076do
6077 IFS=$as_save_IFS
6078 test -z "$as_dir" && as_dir=.
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6081 ac_cv_prog_AS="${ac_tool_prefix}as"
6082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6083 break 2
6084 fi
6085done
6086 done
6087IFS=$as_save_IFS
6088
6089fi
6090fi
6091AS=$ac_cv_prog_AS
6092if test -n "$AS"; then
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6094$as_echo "$AS" >&6; }
6095else
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6097$as_echo "no" >&6; }
6098fi
6099
6100
6101fi
6102if test -z "$ac_cv_prog_AS"; then
6103 ac_ct_AS=$AS
6104 # Extract the first word of "as", so it can be a program name with args.
6105set dummy as; ac_word=$2
6106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107$as_echo_n "checking for $ac_word... " >&6; }
6108if ${ac_cv_prog_ac_ct_AS+:} false; then :
6109 $as_echo_n "(cached) " >&6
6110else
6111 if test -n "$ac_ct_AS"; then
6112 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6113else
6114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115for as_dir in $PATH
6116do
6117 IFS=$as_save_IFS
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6121 ac_cv_prog_ac_ct_AS="as"
6122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 break 2
6124 fi
6125done
6126 done
6127IFS=$as_save_IFS
6128
6129fi
6130fi
6131ac_ct_AS=$ac_cv_prog_ac_ct_AS
6132if test -n "$ac_ct_AS"; then
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6134$as_echo "$ac_ct_AS" >&6; }
6135else
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137$as_echo "no" >&6; }
6138fi
6139
6140 if test "x$ac_ct_AS" = x; then
6141 AS="false"
6142 else
6143 case $cross_compiling:$ac_tool_warned in
6144yes:)
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6146$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6147ac_tool_warned=yes ;;
6148esac
6149 AS=$ac_ct_AS
6150 fi
6151else
6152 AS="$ac_cv_prog_AS"
6153fi
6154
6155 if test -n "$ac_tool_prefix"; then
6156 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6157set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6159$as_echo_n "checking for $ac_word... " >&6; }
6160if ${ac_cv_prog_DLLTOOL+:} false; then :
6161 $as_echo_n "(cached) " >&6
6162else
6163 if test -n "$DLLTOOL"; then
6164 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6165else
6166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167for as_dir in $PATH
6168do
6169 IFS=$as_save_IFS
6170 test -z "$as_dir" && as_dir=.
6171 for ac_exec_ext in '' $ac_executable_extensions; do
6172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6173 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 break 2
6176 fi
6177done
6178 done
6179IFS=$as_save_IFS
6180
6181fi
6182fi
6183DLLTOOL=$ac_cv_prog_DLLTOOL
6184if test -n "$DLLTOOL"; then
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6186$as_echo "$DLLTOOL" >&6; }
6187else
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6189$as_echo "no" >&6; }
6190fi
6191
6192
6193fi
6194if test -z "$ac_cv_prog_DLLTOOL"; then
6195 ac_ct_DLLTOOL=$DLLTOOL
6196 # Extract the first word of "dlltool", so it can be a program name with args.
6197set dummy dlltool; ac_word=$2
6198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6199$as_echo_n "checking for $ac_word... " >&6; }
6200if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6201 $as_echo_n "(cached) " >&6
6202else
6203 if test -n "$ac_ct_DLLTOOL"; then
6204 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6205else
6206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207for as_dir in $PATH
6208do
6209 IFS=$as_save_IFS
6210 test -z "$as_dir" && as_dir=.
6211 for ac_exec_ext in '' $ac_executable_extensions; do
6212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6213 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6215 break 2
6216 fi
6217done
6218 done
6219IFS=$as_save_IFS
6220
6221fi
6222fi
6223ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6224if test -n "$ac_ct_DLLTOOL"; then
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6226$as_echo "$ac_ct_DLLTOOL" >&6; }
6227else
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6229$as_echo "no" >&6; }
6230fi
6231
6232 if test "x$ac_ct_DLLTOOL" = x; then
6233 DLLTOOL="false"
6234 else
6235 case $cross_compiling:$ac_tool_warned in
6236yes:)
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6239ac_tool_warned=yes ;;
6240esac
6241 DLLTOOL=$ac_ct_DLLTOOL
6242 fi
6243else
6244 DLLTOOL="$ac_cv_prog_DLLTOOL"
6245fi
6246
6247 if test -n "$ac_tool_prefix"; then
6248 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6249set dummy ${ac_tool_prefix}objdump; ac_word=$2
6250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251$as_echo_n "checking for $ac_word... " >&6; }
6252if ${ac_cv_prog_OBJDUMP+:} false; then :
6253 $as_echo_n "(cached) " >&6
6254else
6255 if test -n "$OBJDUMP"; then
6256 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6257else
6258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259for as_dir in $PATH
6260do
6261 IFS=$as_save_IFS
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6265 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6267 break 2
6268 fi
6269done
6270 done
6271IFS=$as_save_IFS
6272
6273fi
6274fi
6275OBJDUMP=$ac_cv_prog_OBJDUMP
6276if test -n "$OBJDUMP"; then
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6278$as_echo "$OBJDUMP" >&6; }
6279else
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281$as_echo "no" >&6; }
6282fi
6283
6284
6285fi
6286if test -z "$ac_cv_prog_OBJDUMP"; then
6287 ac_ct_OBJDUMP=$OBJDUMP
6288 # Extract the first word of "objdump", so it can be a program name with args.
6289set dummy objdump; ac_word=$2
6290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6291$as_echo_n "checking for $ac_word... " >&6; }
6292if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6293 $as_echo_n "(cached) " >&6
6294else
6295 if test -n "$ac_ct_OBJDUMP"; then
6296 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6297else
6298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299for as_dir in $PATH
6300do
6301 IFS=$as_save_IFS
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 break 2
6308 fi
6309done
6310 done
6311IFS=$as_save_IFS
6312
6313fi
6314fi
6315ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6316if test -n "$ac_ct_OBJDUMP"; then
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6318$as_echo "$ac_ct_OBJDUMP" >&6; }
6319else
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321$as_echo "no" >&6; }
6322fi
6323
6324 if test "x$ac_ct_OBJDUMP" = x; then
6325 OBJDUMP="false"
6326 else
6327 case $cross_compiling:$ac_tool_warned in
6328yes:)
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6331ac_tool_warned=yes ;;
6332esac
6333 OBJDUMP=$ac_ct_OBJDUMP
6334 fi
6335else
6336 OBJDUMP="$ac_cv_prog_OBJDUMP"
6337fi
6338
6339 ;;
6340esac
6341
6342test -z "$AS" && AS=as
6343
6344
6345
6346
6347
6348test -z "$DLLTOOL" && DLLTOOL=dlltool
6349
6350
6351
6352
6353
6354test -z "$OBJDUMP" && OBJDUMP=objdump
6355
6356
6357
6358
6359
6360
6361
6362case `pwd` in
6363 *\ * | *\ *)
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6365$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6366esac
6367
6368
6369
6370macro_version='2.4.2'
6371macro_revision='1.3337'
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385ltmain="$ac_aux_dir/ltmain.sh"
6386
6387# Backslashify metacharacters that are still active within
6388# double-quoted strings.
6389sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6390
6391# Same as above, but do not quote variable references.
6392double_quote_subst='s/\(["`\\]\)/\\\1/g'
6393
6394# Sed substitution to delay expansion of an escaped shell variable in a
6395# double_quote_subst'ed string.
6396delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6397
6398# Sed substitution to delay expansion of an escaped single quote.
6399delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6400
6401# Sed substitution to avoid accidental globbing in evaled expressions
6402no_glob_subst='s/\*/\\\*/g'
6403
6404ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6405ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6406ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6407
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6409$as_echo_n "checking how to print strings... " >&6; }
6410# Test print first, because it will be a builtin if present.
6411if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6412 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6413 ECHO='print -r --'
6414elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6415 ECHO='printf %s\n'
6416else
6417 # Use this function as a fallback that always works.
6418 func_fallback_echo ()
6419 {
6420 eval 'cat <<_LTECHO_EOF
6421$1
6422_LTECHO_EOF'
6423 }
6424 ECHO='func_fallback_echo'
6425fi
6426
6427# func_echo_all arg...
6428# Invoke $ECHO with all args, space-separated.
6429func_echo_all ()
6430{
6431 $ECHO ""
6432}
6433
6434case "$ECHO" in
6435 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6436$as_echo "printf" >&6; } ;;
6437 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6438$as_echo "print -r" >&6; } ;;
6439 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6440$as_echo "cat" >&6; } ;;
6441esac
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6457$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6458if ${ac_cv_path_SED+:} false; then :
6459 $as_echo_n "(cached) " >&6
6460else
6461 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6462 for ac_i in 1 2 3 4 5 6 7; do
6463 ac_script="$ac_script$as_nl$ac_script"
6464 done
6465 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6466 { ac_script=; unset ac_script;}
6467 if test -z "$SED"; then
6468 ac_path_SED_found=false
6469 # Loop through the user's path and test for each of PROGNAME-LIST
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471for as_dir in $PATH
6472do
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
6475 for ac_prog in sed gsed; do
6476 for ac_exec_ext in '' $ac_executable_extensions; do
6477 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6478 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6479# Check for GNU ac_path_SED and select it if it is found.
6480 # Check for GNU $ac_path_SED
6481case `"$ac_path_SED" --version 2>&1` in
6482*GNU*)
6483 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6484*)
6485 ac_count=0
6486 $as_echo_n 0123456789 >"conftest.in"
6487 while :
6488 do
6489 cat "conftest.in" "conftest.in" >"conftest.tmp"
6490 mv "conftest.tmp" "conftest.in"
6491 cp "conftest.in" "conftest.nl"
6492 $as_echo '' >> "conftest.nl"
6493 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6494 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6495 as_fn_arith $ac_count + 1 && ac_count=$as_val
6496 if test $ac_count -gt ${ac_path_SED_max-0}; then
6497 # Best one so far, save it but keep looking for a better one
6498 ac_cv_path_SED="$ac_path_SED"
6499 ac_path_SED_max=$ac_count
6500 fi
6501 # 10*(2^10) chars as input seems more than enough
6502 test $ac_count -gt 10 && break
6503 done
6504 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6505esac
6506
6507 $ac_path_SED_found && break 3
6508 done
6509 done
6510 done
6511IFS=$as_save_IFS
6512 if test -z "$ac_cv_path_SED"; then
6513 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6514 fi
6515else
6516 ac_cv_path_SED=$SED
6517fi
6518
6519fi
6520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6521$as_echo "$ac_cv_path_SED" >&6; }
6522 SED="$ac_cv_path_SED"
6523 rm -f conftest.sed
6524
6525test -z "$SED" && SED=sed
6526Xsed="$SED -e 1s/^X//"
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6539$as_echo_n "checking for fgrep... " >&6; }
6540if ${ac_cv_path_FGREP+:} false; then :
6541 $as_echo_n "(cached) " >&6
6542else
6543 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6544 then ac_cv_path_FGREP="$GREP -F"
6545 else
6546 if test -z "$FGREP"; then
6547 ac_path_FGREP_found=false
6548 # Loop through the user's path and test for each of PROGNAME-LIST
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6551do
6552 IFS=$as_save_IFS
6553 test -z "$as_dir" && as_dir=.
6554 for ac_prog in fgrep; do
6555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6557 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6558# Check for GNU ac_path_FGREP and select it if it is found.
6559 # Check for GNU $ac_path_FGREP
6560case `"$ac_path_FGREP" --version 2>&1` in
6561*GNU*)
6562 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6563*)
6564 ac_count=0
6565 $as_echo_n 0123456789 >"conftest.in"
6566 while :
6567 do
6568 cat "conftest.in" "conftest.in" >"conftest.tmp"
6569 mv "conftest.tmp" "conftest.in"
6570 cp "conftest.in" "conftest.nl"
6571 $as_echo 'FGREP' >> "conftest.nl"
6572 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6573 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6574 as_fn_arith $ac_count + 1 && ac_count=$as_val
6575 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6576 # Best one so far, save it but keep looking for a better one
6577 ac_cv_path_FGREP="$ac_path_FGREP"
6578 ac_path_FGREP_max=$ac_count
6579 fi
6580 # 10*(2^10) chars as input seems more than enough
6581 test $ac_count -gt 10 && break
6582 done
6583 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6584esac
6585
6586 $ac_path_FGREP_found && break 3
6587 done
6588 done
6589 done
6590IFS=$as_save_IFS
6591 if test -z "$ac_cv_path_FGREP"; then
6592 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6593 fi
6594else
6595 ac_cv_path_FGREP=$FGREP
6596fi
6597
6598 fi
6599fi
6600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6601$as_echo "$ac_cv_path_FGREP" >&6; }
6602 FGREP="$ac_cv_path_FGREP"
6603
6604
6605test -z "$GREP" && GREP=grep
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625# Check whether --with-gnu-ld was given.
6626if test "${with_gnu_ld+set}" = set; then :
6627 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6628else
6629 with_gnu_ld=no
6630fi
6631
6632ac_prog=ld
6633if test "$GCC" = yes; then
6634 # Check if gcc -print-prog-name=ld gives a path.
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6636$as_echo_n "checking for ld used by $CC... " >&6; }
6637 case $host in
6638 *-*-mingw*)
6639 # gcc leaves a trailing carriage return which upsets mingw
6640 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6641 *)
6642 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6643 esac
6644 case $ac_prog in
6645 # Accept absolute paths.
6646 [\\/]* | ?:[\\/]*)
6647 re_direlt='/[^/][^/]*/\.\./'
6648 # Canonicalize the pathname of ld
6649 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6650 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6651 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6652 done
6653 test -z "$LD" && LD="$ac_prog"
6654 ;;
6655 "")
6656 # If it fails, then pretend we aren't using GCC.
6657 ac_prog=ld
6658 ;;
6659 *)
6660 # If it is relative, then search for the first ld in PATH.
6661 with_gnu_ld=unknown
6662 ;;
6663 esac
6664elif test "$with_gnu_ld" = yes; then
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6666$as_echo_n "checking for GNU ld... " >&6; }
6667else
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6669$as_echo_n "checking for non-GNU ld... " >&6; }
6670fi
6671if ${lt_cv_path_LD+:} false; then :
6672 $as_echo_n "(cached) " >&6
6673else
6674 if test -z "$LD"; then
6675 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6676 for ac_dir in $PATH; do
6677 IFS="$lt_save_ifs"
6678 test -z "$ac_dir" && ac_dir=.
6679 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6680 lt_cv_path_LD="$ac_dir/$ac_prog"
6681 # Check to see if the program is GNU ld. I'd rather use --version,
6682 # but apparently some variants of GNU ld only accept -v.
6683 # Break only if it was the GNU/non-GNU ld that we prefer.
6684 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6685 *GNU* | *'with BFD'*)
6686 test "$with_gnu_ld" != no && break
6687 ;;
6688 *)
6689 test "$with_gnu_ld" != yes && break
6690 ;;
6691 esac
6692 fi
6693 done
6694 IFS="$lt_save_ifs"
6695else
6696 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6697fi
6698fi
6699
6700LD="$lt_cv_path_LD"
6701if test -n "$LD"; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6703$as_echo "$LD" >&6; }
6704else
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706$as_echo "no" >&6; }
6707fi
6708test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6710$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6711if ${lt_cv_prog_gnu_ld+:} false; then :
6712 $as_echo_n "(cached) " >&6
6713else
6714 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6715case `$LD -v 2>&1 </dev/null` in
6716*GNU* | *'with BFD'*)
6717 lt_cv_prog_gnu_ld=yes
6718 ;;
6719*)
6720 lt_cv_prog_gnu_ld=no
6721 ;;
6722esac
6723fi
6724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6725$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6726with_gnu_ld=$lt_cv_prog_gnu_ld
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6737$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6738if ${lt_cv_path_NM+:} false; then :
6739 $as_echo_n "(cached) " >&6
6740else
6741 if test -n "$NM"; then
6742 # Let the user override the test.
6743 lt_cv_path_NM="$NM"
6744else
6745 lt_nm_to_check="${ac_tool_prefix}nm"
6746 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6747 lt_nm_to_check="$lt_nm_to_check nm"
6748 fi
6749 for lt_tmp_nm in $lt_nm_to_check; do
6750 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6751 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6752 IFS="$lt_save_ifs"
6753 test -z "$ac_dir" && ac_dir=.
6754 tmp_nm="$ac_dir/$lt_tmp_nm"
6755 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6756 # Check to see if the nm accepts a BSD-compat flag.
6757 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6758 # nm: unknown option "B" ignored
6759 # Tru64's nm complains that /dev/null is an invalid object file
6760 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6761 */dev/null* | *'Invalid file or object type'*)
6762 lt_cv_path_NM="$tmp_nm -B"
6763 break
6764 ;;
6765 *)
6766 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6767 */dev/null*)
6768 lt_cv_path_NM="$tmp_nm -p"
6769 break
6770 ;;
6771 *)
6772 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6773 continue # so that we can try to find one that supports BSD flags
6774 ;;
6775 esac
6776 ;;
6777 esac
6778 fi
6779 done
6780 IFS="$lt_save_ifs"
6781 done
6782 : ${lt_cv_path_NM=no}
6783fi
6784fi
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6786$as_echo "$lt_cv_path_NM" >&6; }
6787if test "$lt_cv_path_NM" != "no"; then
6788 NM="$lt_cv_path_NM"
6789else
6790 # Didn't find any BSD compatible name lister, look for dumpbin.
6791 if test -n "$DUMPBIN"; then :
6792 # Let the user override the test.
6793 else
6794 if test -n "$ac_tool_prefix"; then
6795 for ac_prog in dumpbin "link -dump"
6796 do
6797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6798set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800$as_echo_n "checking for $ac_word... " >&6; }
6801if ${ac_cv_prog_DUMPBIN+:} false; then :
6802 $as_echo_n "(cached) " >&6
6803else
6804 if test -n "$DUMPBIN"; then
6805 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6806else
6807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808for as_dir in $PATH
6809do
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6814 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 break 2
6817 fi
6818done
6819 done
6820IFS=$as_save_IFS
6821
6822fi
6823fi
6824DUMPBIN=$ac_cv_prog_DUMPBIN
6825if test -n "$DUMPBIN"; then
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6827$as_echo "$DUMPBIN" >&6; }
6828else
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830$as_echo "no" >&6; }
6831fi
6832
6833
6834 test -n "$DUMPBIN" && break
6835 done
6836fi
6837if test -z "$DUMPBIN"; then
6838 ac_ct_DUMPBIN=$DUMPBIN
6839 for ac_prog in dumpbin "link -dump"
6840do
6841 # Extract the first word of "$ac_prog", so it can be a program name with args.
6842set dummy $ac_prog; ac_word=$2
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844$as_echo_n "checking for $ac_word... " >&6; }
6845if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6846 $as_echo_n "(cached) " >&6
6847else
6848 if test -n "$ac_ct_DUMPBIN"; then
6849 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6850else
6851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852for as_dir in $PATH
6853do
6854 IFS=$as_save_IFS
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
6857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6858 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 break 2
6861 fi
6862done
6863 done
6864IFS=$as_save_IFS
6865
6866fi
6867fi
6868ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6869if test -n "$ac_ct_DUMPBIN"; then
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6871$as_echo "$ac_ct_DUMPBIN" >&6; }
6872else
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874$as_echo "no" >&6; }
6875fi
6876
6877
6878 test -n "$ac_ct_DUMPBIN" && break
6879done
6880
6881 if test "x$ac_ct_DUMPBIN" = x; then
6882 DUMPBIN=":"
6883 else
6884 case $cross_compiling:$ac_tool_warned in
6885yes:)
6886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6888ac_tool_warned=yes ;;
6889esac
6890 DUMPBIN=$ac_ct_DUMPBIN
6891 fi
6892fi
6893
6894 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6895 *COFF*)
6896 DUMPBIN="$DUMPBIN -symbols"
6897 ;;
6898 *)
6899 DUMPBIN=:
6900 ;;
6901 esac
6902 fi
6903
6904 if test "$DUMPBIN" != ":"; then
6905 NM="$DUMPBIN"
6906 fi
6907fi
6908test -z "$NM" && NM=nm
6909
6910
6911
6912
6913
6914
6915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6916$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6917if ${lt_cv_nm_interface+:} false; then :
6918 $as_echo_n "(cached) " >&6
6919else
6920 lt_cv_nm_interface="BSD nm"
6921 echo "int some_variable = 0;" > conftest.$ac_ext
6922 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6923 (eval "$ac_compile" 2>conftest.err)
6924 cat conftest.err >&5
6925 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6926 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6927 cat conftest.err >&5
6928 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6929 cat conftest.out >&5
6930 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6931 lt_cv_nm_interface="MS dumpbin"
6932 fi
6933 rm -f conftest*
6934fi
6935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6936$as_echo "$lt_cv_nm_interface" >&6; }
6937
6938# find the maximum length of command line arguments
6939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6940$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6941if ${lt_cv_sys_max_cmd_len+:} false; then :
6942 $as_echo_n "(cached) " >&6
6943else
6944 i=0
6945 teststring="ABCD"
6946
6947 case $build_os in
6948 msdosdjgpp*)
6949 # On DJGPP, this test can blow up pretty badly due to problems in libc
6950 # (any single argument exceeding 2000 bytes causes a buffer overrun
6951 # during glob expansion). Even if it were fixed, the result of this
6952 # check would be larger than it should be.
6953 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6954 ;;
6955
6956 gnu*)
6957 # Under GNU Hurd, this test is not required because there is
6958 # no limit to the length of command line arguments.
6959 # Libtool will interpret -1 as no limit whatsoever
6960 lt_cv_sys_max_cmd_len=-1;
6961 ;;
6962
6963 cygwin* | mingw* | cegcc*)
6964 # On Win9x/ME, this test blows up -- it succeeds, but takes
6965 # about 5 minutes as the teststring grows exponentially.
6966 # Worse, since 9x/ME are not pre-emptively multitasking,
6967 # you end up with a "frozen" computer, even though with patience
6968 # the test eventually succeeds (with a max line length of 256k).
6969 # Instead, let's just punt: use the minimum linelength reported by
6970 # all of the supported platforms: 8192 (on NT/2K/XP).
6971 lt_cv_sys_max_cmd_len=8192;
6972 ;;
6973
6974 mint*)
6975 # On MiNT this can take a long time and run out of memory.
6976 lt_cv_sys_max_cmd_len=8192;
6977 ;;
6978
6979 amigaos*)
6980 # On AmigaOS with pdksh, this test takes hours, literally.
6981 # So we just punt and use a minimum line length of 8192.
6982 lt_cv_sys_max_cmd_len=8192;
6983 ;;
6984
6985 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6986 # This has been around since 386BSD, at least. Likely further.
6987 if test -x /sbin/sysctl; then
6988 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6989 elif test -x /usr/sbin/sysctl; then
6990 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6991 else
6992 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6993 fi
6994 # And add a safety zone
6995 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6996 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6997 ;;
6998
6999 interix*)
7000 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7001 lt_cv_sys_max_cmd_len=196608
7002 ;;
7003
7004 os2*)
7005 # The test takes a long time on OS/2.
7006 lt_cv_sys_max_cmd_len=8192
7007 ;;
7008
7009 osf*)
7010 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7011 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7012 # nice to cause kernel panics so lets avoid the loop below.
7013 # First set a reasonable default.
7014 lt_cv_sys_max_cmd_len=16384
7015 #
7016 if test -x /sbin/sysconfig; then
7017 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7018 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7019 esac
7020 fi
7021 ;;
7022 sco3.2v5*)
7023 lt_cv_sys_max_cmd_len=102400
7024 ;;
7025 sysv5* | sco5v6* | sysv4.2uw2*)
7026 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7027 if test -n "$kargmax"; then
7028 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7029 else
7030 lt_cv_sys_max_cmd_len=32768
7031 fi
7032 ;;
7033 *)
7034 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7035 if test -n "$lt_cv_sys_max_cmd_len"; then
7036 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7037 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7038 else
7039 # Make teststring a little bigger before we do anything with it.
7040 # a 1K string should be a reasonable start.
7041 for i in 1 2 3 4 5 6 7 8 ; do
7042 teststring=$teststring$teststring
7043 done
7044 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7045 # If test is not a shell built-in, we'll probably end up computing a
7046 # maximum length that is only half of the actual maximum length, but
7047 # we can't tell.
7048 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7049 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7050 test $i != 17 # 1/2 MB should be enough
7051 do
7052 i=`expr $i + 1`
7053 teststring=$teststring$teststring
7054 done
7055 # Only check the string length outside the loop.
7056 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7057 teststring=
7058 # Add a significant safety factor because C++ compilers can tack on
7059 # massive amounts of additional arguments before passing them to the
7060 # linker. It appears as though 1/2 is a usable value.
7061 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7062 fi
7063 ;;
7064 esac
7065
7066fi
7067
7068if test -n $lt_cv_sys_max_cmd_len ; then
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7070$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7071else
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7073$as_echo "none" >&6; }
7074fi
7075max_cmd_len=$lt_cv_sys_max_cmd_len
7076
7077
7078
7079
7080
7081
7082: ${CP="cp -f"}
7083: ${MV="mv -f"}
7084: ${RM="rm -f"}
7085
7086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7087$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7088# Try some XSI features
7089xsi_shell=no
7090( _lt_dummy="a/b/c"
7091 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7092 = c,a/b,b/c, \
7093 && eval 'test $(( 1 + 1 )) -eq 2 \
7094 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7095 && xsi_shell=yes
7096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7097$as_echo "$xsi_shell" >&6; }
7098
7099
7100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7101$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7102lt_shell_append=no
7103( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7104 >/dev/null 2>&1 \
7105 && lt_shell_append=yes
7106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7107$as_echo "$lt_shell_append" >&6; }
7108
7109
7110if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7111 lt_unset=unset
7112else
7113 lt_unset=false
7114fi
7115
7116
7117
7118
7119
7120# test EBCDIC or ASCII
7121case `echo X|tr X '\101'` in
7122 A) # ASCII based system
7123 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7124 lt_SP2NL='tr \040 \012'
7125 lt_NL2SP='tr \015\012 \040\040'
7126 ;;
7127 *) # EBCDIC based system
7128 lt_SP2NL='tr \100 \n'
7129 lt_NL2SP='tr \r\n \100\100'
7130 ;;
7131esac
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7142$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7143if ${lt_cv_to_host_file_cmd+:} false; then :
7144 $as_echo_n "(cached) " >&6
7145else
7146 case $host in
7147 *-*-mingw* )
7148 case $build in
7149 *-*-mingw* ) # actually msys
7150 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7151 ;;
7152 *-*-cygwin* )
7153 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7154 ;;
7155 * ) # otherwise, assume *nix
7156 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7157 ;;
7158 esac
7159 ;;
7160 *-*-cygwin* )
7161 case $build in
7162 *-*-mingw* ) # actually msys
7163 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7164 ;;
7165 *-*-cygwin* )
7166 lt_cv_to_host_file_cmd=func_convert_file_noop
7167 ;;
7168 * ) # otherwise, assume *nix
7169 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7170 ;;
7171 esac
7172 ;;
7173 * ) # unhandled hosts (and "normal" native builds)
7174 lt_cv_to_host_file_cmd=func_convert_file_noop
7175 ;;
7176esac
7177
7178fi
7179
7180to_host_file_cmd=$lt_cv_to_host_file_cmd
7181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7182$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7183
7184
7185
7186
7187
7188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7189$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7190if ${lt_cv_to_tool_file_cmd+:} false; then :
7191 $as_echo_n "(cached) " >&6
7192else
7193 #assume ordinary cross tools, or native build.
7194lt_cv_to_tool_file_cmd=func_convert_file_noop
7195case $host in
7196 *-*-mingw* )
7197 case $build in
7198 *-*-mingw* ) # actually msys
7199 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7200 ;;
7201 esac
7202 ;;
7203esac
7204
7205fi
7206
7207to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7209$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7210
7211
7212
7213
7214
7215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7216$as_echo_n "checking for $LD option to reload object files... " >&6; }
7217if ${lt_cv_ld_reload_flag+:} false; then :
7218 $as_echo_n "(cached) " >&6
7219else
7220 lt_cv_ld_reload_flag='-r'
7221fi
7222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7223$as_echo "$lt_cv_ld_reload_flag" >&6; }
7224reload_flag=$lt_cv_ld_reload_flag
7225case $reload_flag in
7226"" | " "*) ;;
7227*) reload_flag=" $reload_flag" ;;
7228esac
7229reload_cmds='$LD$reload_flag -o $output$reload_objs'
7230case $host_os in
7231 cygwin* | mingw* | pw32* | cegcc*)
7232 if test "$GCC" != yes; then
7233 reload_cmds=false
7234 fi
7235 ;;
7236 darwin*)
7237 if test "$GCC" = yes; then
7238 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7239 else
7240 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7241 fi
7242 ;;
7243esac
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253if test -n "$ac_tool_prefix"; then
7254 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7255set dummy ${ac_tool_prefix}objdump; ac_word=$2
7256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7257$as_echo_n "checking for $ac_word... " >&6; }
7258if ${ac_cv_prog_OBJDUMP+:} false; then :
7259 $as_echo_n "(cached) " >&6
7260else
7261 if test -n "$OBJDUMP"; then
7262 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7263else
7264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265for as_dir in $PATH
7266do
7267 IFS=$as_save_IFS
7268 test -z "$as_dir" && as_dir=.
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7271 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7273 break 2
7274 fi
7275done
7276 done
7277IFS=$as_save_IFS
7278
7279fi
7280fi
7281OBJDUMP=$ac_cv_prog_OBJDUMP
7282if test -n "$OBJDUMP"; then
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7284$as_echo "$OBJDUMP" >&6; }
7285else
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287$as_echo "no" >&6; }
7288fi
7289
7290
7291fi
7292if test -z "$ac_cv_prog_OBJDUMP"; then
7293 ac_ct_OBJDUMP=$OBJDUMP
7294 # Extract the first word of "objdump", so it can be a program name with args.
7295set dummy objdump; ac_word=$2
7296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297$as_echo_n "checking for $ac_word... " >&6; }
7298if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7299 $as_echo_n "(cached) " >&6
7300else
7301 if test -n "$ac_ct_OBJDUMP"; then
7302 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7303else
7304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305for as_dir in $PATH
7306do
7307 IFS=$as_save_IFS
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7311 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313 break 2
7314 fi
7315done
7316 done
7317IFS=$as_save_IFS
7318
7319fi
7320fi
7321ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7322if test -n "$ac_ct_OBJDUMP"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7324$as_echo "$ac_ct_OBJDUMP" >&6; }
7325else
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327$as_echo "no" >&6; }
7328fi
7329
7330 if test "x$ac_ct_OBJDUMP" = x; then
7331 OBJDUMP="false"
7332 else
7333 case $cross_compiling:$ac_tool_warned in
7334yes:)
7335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7337ac_tool_warned=yes ;;
7338esac
7339 OBJDUMP=$ac_ct_OBJDUMP
7340 fi
7341else
7342 OBJDUMP="$ac_cv_prog_OBJDUMP"
7343fi
7344
7345test -z "$OBJDUMP" && OBJDUMP=objdump
7346
7347
7348
7349
7350
7351
7352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7353$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7354if ${lt_cv_deplibs_check_method+:} false; then :
7355 $as_echo_n "(cached) " >&6
7356else
7357 lt_cv_file_magic_cmd='$MAGIC_CMD'
7358lt_cv_file_magic_test_file=
7359lt_cv_deplibs_check_method='unknown'
7360# Need to set the preceding variable on all platforms that support
7361# interlibrary dependencies.
7362# 'none' -- dependencies not supported.
7363# `unknown' -- same as none, but documents that we really don't know.
7364# 'pass_all' -- all dependencies passed with no checks.
7365# 'test_compile' -- check by making test program.
7366# 'file_magic [[regex]]' -- check by looking for files in library path
7367# which responds to the $file_magic_cmd with a given extended regex.
7368# If you have `file' or equivalent on your system and you're not sure
7369# whether `pass_all' will *always* work, you probably want this one.
7370
7371case $host_os in
7372aix[4-9]*)
7373 lt_cv_deplibs_check_method=pass_all
7374 ;;
7375
7376beos*)
7377 lt_cv_deplibs_check_method=pass_all
7378 ;;
7379
7380bsdi[45]*)
7381 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7382 lt_cv_file_magic_cmd='/usr/bin/file -L'
7383 lt_cv_file_magic_test_file=/shlib/libc.so
7384 ;;
7385
7386cygwin*)
7387 # func_win32_libid is a shell function defined in ltmain.sh
7388 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7389 lt_cv_file_magic_cmd='func_win32_libid'
7390 ;;
7391
7392mingw* | pw32*)
7393 # Base MSYS/MinGW do not provide the 'file' command needed by
7394 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7395 # unless we find 'file', for example because we are cross-compiling.
7396 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7397 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7398 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7399 lt_cv_file_magic_cmd='func_win32_libid'
7400 else
7401 # Keep this pattern in sync with the one in func_win32_libid.
7402 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7403 lt_cv_file_magic_cmd='$OBJDUMP -f'
7404 fi
7405 ;;
7406
7407cegcc*)
7408 # use the weaker test based on 'objdump'. See mingw*.
7409 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7410 lt_cv_file_magic_cmd='$OBJDUMP -f'
7411 ;;
7412
7413darwin* | rhapsody*)
7414 lt_cv_deplibs_check_method=pass_all
7415 ;;
7416
7417freebsd* | dragonfly*)
7418 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7419 case $host_cpu in
7420 i*86 )
7421 # Not sure whether the presence of OpenBSD here was a mistake.
7422 # Let's accept both of them until this is cleared up.
7423 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7424 lt_cv_file_magic_cmd=/usr/bin/file
7425 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7426 ;;
7427 esac
7428 else
7429 lt_cv_deplibs_check_method=pass_all
7430 fi
7431 ;;
7432
7433gnu*)
7434 lt_cv_deplibs_check_method=pass_all
7435 ;;
7436
7437haiku*)
7438 lt_cv_deplibs_check_method=pass_all
7439 ;;
7440
7441hpux10.20* | hpux11*)
7442 lt_cv_file_magic_cmd=/usr/bin/file
7443 case $host_cpu in
7444 ia64*)
7445 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7446 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7447 ;;
7448 hppa*64*)
7449 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]'
7450 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7451 ;;
7452 *)
7453 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7454 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7455 ;;
7456 esac
7457 ;;
7458
7459interix[3-9]*)
7460 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7461 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7462 ;;
7463
7464irix5* | irix6* | nonstopux*)
7465 case $LD in
7466 *-32|*"-32 ") libmagic=32-bit;;
7467 *-n32|*"-n32 ") libmagic=N32;;
7468 *-64|*"-64 ") libmagic=64-bit;;
7469 *) libmagic=never-match;;
7470 esac
7471 lt_cv_deplibs_check_method=pass_all
7472 ;;
7473
7474# This must be glibc/ELF.
7475linux* | k*bsd*-gnu | kopensolaris*-gnu)
7476 lt_cv_deplibs_check_method=pass_all
7477 ;;
7478
7479netbsd*)
7480 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7481 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7482 else
7483 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7484 fi
7485 ;;
7486
7487newos6*)
7488 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7489 lt_cv_file_magic_cmd=/usr/bin/file
7490 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7491 ;;
7492
7493*nto* | *qnx*)
7494 lt_cv_deplibs_check_method=pass_all
7495 ;;
7496
7497openbsd*)
7498 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7499 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7500 else
7501 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7502 fi
7503 ;;
7504
7505osf3* | osf4* | osf5*)
7506 lt_cv_deplibs_check_method=pass_all
7507 ;;
7508
7509rdos*)
7510 lt_cv_deplibs_check_method=pass_all
7511 ;;
7512
7513solaris*)
7514 lt_cv_deplibs_check_method=pass_all
7515 ;;
7516
7517sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7518 lt_cv_deplibs_check_method=pass_all
7519 ;;
7520
7521sysv4 | sysv4.3*)
7522 case $host_vendor in
7523 motorola)
7524 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]'
7525 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7526 ;;
7527 ncr)
7528 lt_cv_deplibs_check_method=pass_all
7529 ;;
7530 sequent)
7531 lt_cv_file_magic_cmd='/bin/file'
7532 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7533 ;;
7534 sni)
7535 lt_cv_file_magic_cmd='/bin/file'
7536 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7537 lt_cv_file_magic_test_file=/lib/libc.so
7538 ;;
7539 siemens)
7540 lt_cv_deplibs_check_method=pass_all
7541 ;;
7542 pc)
7543 lt_cv_deplibs_check_method=pass_all
7544 ;;
7545 esac
7546 ;;
7547
7548tpf*)
7549 lt_cv_deplibs_check_method=pass_all
7550 ;;
7551esac
7552
7553fi
7554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7555$as_echo "$lt_cv_deplibs_check_method" >&6; }
7556
7557file_magic_glob=
7558want_nocaseglob=no
7559if test "$build" = "$host"; then
7560 case $host_os in
7561 mingw* | pw32*)
7562 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7563 want_nocaseglob=yes
7564 else
7565 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7566 fi
7567 ;;
7568 esac
7569fi
7570
7571file_magic_cmd=$lt_cv_file_magic_cmd
7572deplibs_check_method=$lt_cv_deplibs_check_method
7573test -z "$deplibs_check_method" && deplibs_check_method=unknown
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596if test -n "$ac_tool_prefix"; then
7597 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7598set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7600$as_echo_n "checking for $ac_word... " >&6; }
7601if ${ac_cv_prog_DLLTOOL+:} false; then :
7602 $as_echo_n "(cached) " >&6
7603else
7604 if test -n "$DLLTOOL"; then
7605 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7606else
7607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608for as_dir in $PATH
7609do
7610 IFS=$as_save_IFS
7611 test -z "$as_dir" && as_dir=.
7612 for ac_exec_ext in '' $ac_executable_extensions; do
7613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7614 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7616 break 2
7617 fi
7618done
7619 done
7620IFS=$as_save_IFS
7621
7622fi
7623fi
7624DLLTOOL=$ac_cv_prog_DLLTOOL
7625if test -n "$DLLTOOL"; then
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7627$as_echo "$DLLTOOL" >&6; }
7628else
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630$as_echo "no" >&6; }
7631fi
7632
7633
7634fi
7635if test -z "$ac_cv_prog_DLLTOOL"; then
7636 ac_ct_DLLTOOL=$DLLTOOL
7637 # Extract the first word of "dlltool", so it can be a program name with args.
7638set dummy dlltool; ac_word=$2
7639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7640$as_echo_n "checking for $ac_word... " >&6; }
7641if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7642 $as_echo_n "(cached) " >&6
7643else
7644 if test -n "$ac_ct_DLLTOOL"; then
7645 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7646else
7647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648for as_dir in $PATH
7649do
7650 IFS=$as_save_IFS
7651 test -z "$as_dir" && as_dir=.
7652 for ac_exec_ext in '' $ac_executable_extensions; do
7653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7654 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7656 break 2
7657 fi
7658done
7659 done
7660IFS=$as_save_IFS
7661
7662fi
7663fi
7664ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7665if test -n "$ac_ct_DLLTOOL"; then
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7667$as_echo "$ac_ct_DLLTOOL" >&6; }
7668else
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670$as_echo "no" >&6; }
7671fi
7672
7673 if test "x$ac_ct_DLLTOOL" = x; then
7674 DLLTOOL="false"
7675 else
7676 case $cross_compiling:$ac_tool_warned in
7677yes:)
7678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7680ac_tool_warned=yes ;;
7681esac
7682 DLLTOOL=$ac_ct_DLLTOOL
7683 fi
7684else
7685 DLLTOOL="$ac_cv_prog_DLLTOOL"
7686fi
7687
7688test -z "$DLLTOOL" && DLLTOOL=dlltool
7689
7690
7691
7692
7693
7694
7695
7696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7697$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7698if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7699 $as_echo_n "(cached) " >&6
7700else
7701 lt_cv_sharedlib_from_linklib_cmd='unknown'
7702
7703case $host_os in
7704cygwin* | mingw* | pw32* | cegcc*)
7705 # two different shell functions defined in ltmain.sh
7706 # decide which to use based on capabilities of $DLLTOOL
7707 case `$DLLTOOL --help 2>&1` in
7708 *--identify-strict*)
7709 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7710 ;;
7711 *)
7712 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7713 ;;
7714 esac
7715 ;;
7716*)
7717 # fallback: assume linklib IS sharedlib
7718 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7719 ;;
7720esac
7721
7722fi
7723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7724$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7725sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7726test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7727
7728
7729
7730
7731
7732
7733
7734if test -n "$ac_tool_prefix"; then
7735 for ac_prog in ar
7736 do
7737 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7738set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740$as_echo_n "checking for $ac_word... " >&6; }
7741if ${ac_cv_prog_AR+:} false; then :
7742 $as_echo_n "(cached) " >&6
7743else
7744 if test -n "$AR"; then
7745 ac_cv_prog_AR="$AR" # Let the user override the test.
7746else
7747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748for as_dir in $PATH
7749do
7750 IFS=$as_save_IFS
7751 test -z "$as_dir" && as_dir=.
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7754 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7756 break 2
7757 fi
7758done
7759 done
7760IFS=$as_save_IFS
7761
7762fi
7763fi
7764AR=$ac_cv_prog_AR
7765if test -n "$AR"; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7767$as_echo "$AR" >&6; }
7768else
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770$as_echo "no" >&6; }
7771fi
7772
7773
7774 test -n "$AR" && break
7775 done
7776fi
7777if test -z "$AR"; then
7778 ac_ct_AR=$AR
7779 for ac_prog in ar
7780do
7781 # Extract the first word of "$ac_prog", so it can be a program name with args.
7782set dummy $ac_prog; ac_word=$2
7783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7784$as_echo_n "checking for $ac_word... " >&6; }
7785if ${ac_cv_prog_ac_ct_AR+:} false; then :
7786 $as_echo_n "(cached) " >&6
7787else
7788 if test -n "$ac_ct_AR"; then
7789 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7790else
7791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792for as_dir in $PATH
7793do
7794 IFS=$as_save_IFS
7795 test -z "$as_dir" && as_dir=.
7796 for ac_exec_ext in '' $ac_executable_extensions; do
7797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7798 ac_cv_prog_ac_ct_AR="$ac_prog"
7799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7800 break 2
7801 fi
7802done
7803 done
7804IFS=$as_save_IFS
7805
7806fi
7807fi
7808ac_ct_AR=$ac_cv_prog_ac_ct_AR
7809if test -n "$ac_ct_AR"; then
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7811$as_echo "$ac_ct_AR" >&6; }
7812else
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7814$as_echo "no" >&6; }
7815fi
7816
7817
7818 test -n "$ac_ct_AR" && break
7819done
7820
7821 if test "x$ac_ct_AR" = x; then
7822 AR="false"
7823 else
7824 case $cross_compiling:$ac_tool_warned in
7825yes:)
7826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7828ac_tool_warned=yes ;;
7829esac
7830 AR=$ac_ct_AR
7831 fi
7832fi
7833
7834: ${AR=ar}
7835: ${AR_FLAGS=cru}
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7848$as_echo_n "checking for archiver @FILE support... " >&6; }
7849if ${lt_cv_ar_at_file+:} false; then :
7850 $as_echo_n "(cached) " >&6
7851else
7852 lt_cv_ar_at_file=no
7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854/* end confdefs.h. */
7855
7856int
7857main ()
7858{
7859
7860 ;
7861 return 0;
7862}
7863_ACEOF
7864if ac_fn_c_try_compile "$LINENO"; then :
7865 echo conftest.$ac_objext > conftest.lst
7866 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7868 (eval $lt_ar_try) 2>&5
7869 ac_status=$?
7870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7871 test $ac_status = 0; }
7872 if test "$ac_status" -eq 0; then
7873 # Ensure the archiver fails upon bogus file names.
7874 rm -f conftest.$ac_objext libconftest.a
7875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7876 (eval $lt_ar_try) 2>&5
7877 ac_status=$?
7878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7879 test $ac_status = 0; }
7880 if test "$ac_status" -ne 0; then
7881 lt_cv_ar_at_file=@
7882 fi
7883 fi
7884 rm -f conftest.* libconftest.a
7885
7886fi
7887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7888
7889fi
7890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7891$as_echo "$lt_cv_ar_at_file" >&6; }
7892
7893if test "x$lt_cv_ar_at_file" = xno; then
7894 archiver_list_spec=
7895else
7896 archiver_list_spec=$lt_cv_ar_at_file
7897fi
7898
7899
7900
7901
7902
7903
7904
7905if test -n "$ac_tool_prefix"; then
7906 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7907set dummy ${ac_tool_prefix}strip; ac_word=$2
7908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909$as_echo_n "checking for $ac_word... " >&6; }
7910if ${ac_cv_prog_STRIP+:} false; then :
7911 $as_echo_n "(cached) " >&6
7912else
7913 if test -n "$STRIP"; then
7914 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7915else
7916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917for as_dir in $PATH
7918do
7919 IFS=$as_save_IFS
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
7922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7923 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 break 2
7926 fi
7927done
7928 done
7929IFS=$as_save_IFS
7930
7931fi
7932fi
7933STRIP=$ac_cv_prog_STRIP
7934if test -n "$STRIP"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7936$as_echo "$STRIP" >&6; }
7937else
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939$as_echo "no" >&6; }
7940fi
7941
7942
7943fi
7944if test -z "$ac_cv_prog_STRIP"; then
7945 ac_ct_STRIP=$STRIP
7946 # Extract the first word of "strip", so it can be a program name with args.
7947set dummy strip; ac_word=$2
7948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949$as_echo_n "checking for $ac_word... " >&6; }
7950if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7951 $as_echo_n "(cached) " >&6
7952else
7953 if test -n "$ac_ct_STRIP"; then
7954 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7955else
7956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957for as_dir in $PATH
7958do
7959 IFS=$as_save_IFS
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7963 ac_cv_prog_ac_ct_STRIP="strip"
7964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7965 break 2
7966 fi
7967done
7968 done
7969IFS=$as_save_IFS
7970
7971fi
7972fi
7973ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7974if test -n "$ac_ct_STRIP"; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7976$as_echo "$ac_ct_STRIP" >&6; }
7977else
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979$as_echo "no" >&6; }
7980fi
7981
7982 if test "x$ac_ct_STRIP" = x; then
7983 STRIP=":"
7984 else
7985 case $cross_compiling:$ac_tool_warned in
7986yes:)
7987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7989ac_tool_warned=yes ;;
7990esac
7991 STRIP=$ac_ct_STRIP
7992 fi
7993else
7994 STRIP="$ac_cv_prog_STRIP"
7995fi
7996
7997test -z "$STRIP" && STRIP=:
7998
7999
8000
8001
8002
8003
8004if test -n "$ac_tool_prefix"; then
8005 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8006set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8008$as_echo_n "checking for $ac_word... " >&6; }
8009if ${ac_cv_prog_RANLIB+:} false; then :
8010 $as_echo_n "(cached) " >&6
8011else
8012 if test -n "$RANLIB"; then
8013 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8014else
8015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8016for as_dir in $PATH
8017do
8018 IFS=$as_save_IFS
8019 test -z "$as_dir" && as_dir=.
8020 for ac_exec_ext in '' $ac_executable_extensions; do
8021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8022 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8024 break 2
8025 fi
8026done
8027 done
8028IFS=$as_save_IFS
8029
8030fi
8031fi
8032RANLIB=$ac_cv_prog_RANLIB
8033if test -n "$RANLIB"; then
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8035$as_echo "$RANLIB" >&6; }
8036else
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8038$as_echo "no" >&6; }
8039fi
8040
8041
8042fi
8043if test -z "$ac_cv_prog_RANLIB"; then
8044 ac_ct_RANLIB=$RANLIB
8045 # Extract the first word of "ranlib", so it can be a program name with args.
8046set dummy ranlib; ac_word=$2
8047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8048$as_echo_n "checking for $ac_word... " >&6; }
8049if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8050 $as_echo_n "(cached) " >&6
8051else
8052 if test -n "$ac_ct_RANLIB"; then
8053 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8054else
8055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8056for as_dir in $PATH
8057do
8058 IFS=$as_save_IFS
8059 test -z "$as_dir" && as_dir=.
8060 for ac_exec_ext in '' $ac_executable_extensions; do
8061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8062 ac_cv_prog_ac_ct_RANLIB="ranlib"
8063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8064 break 2
8065 fi
8066done
8067 done
8068IFS=$as_save_IFS
8069
8070fi
8071fi
8072ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8073if test -n "$ac_ct_RANLIB"; then
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8075$as_echo "$ac_ct_RANLIB" >&6; }
8076else
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078$as_echo "no" >&6; }
8079fi
8080
8081 if test "x$ac_ct_RANLIB" = x; then
8082 RANLIB=":"
8083 else
8084 case $cross_compiling:$ac_tool_warned in
8085yes:)
8086{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8087$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8088ac_tool_warned=yes ;;
8089esac
8090 RANLIB=$ac_ct_RANLIB
8091 fi
8092else
8093 RANLIB="$ac_cv_prog_RANLIB"
8094fi
8095
8096test -z "$RANLIB" && RANLIB=:
8097
8098
8099
8100
8101
8102
8103# Determine commands to create old-style static archives.
8104old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8105old_postinstall_cmds='chmod 644 $oldlib'
8106old_postuninstall_cmds=
8107
8108if test -n "$RANLIB"; then
8109 case $host_os in
8110 openbsd*)
8111 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8112 ;;
8113 *)
8114 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8115 ;;
8116 esac
8117 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8118fi
8119
8120case $host_os in
8121 darwin*)
8122 lock_old_archive_extraction=yes ;;
8123 *)
8124 lock_old_archive_extraction=no ;;
8125esac
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165# If no C compiler was specified, use CC.
8166LTCC=${LTCC-"$CC"}
8167
8168# If no C compiler flags were specified, use CFLAGS.
8169LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8170
8171# Allow CC to be a program name with arguments.
8172compiler=$CC
8173
8174
8175# Check for command to grab the raw symbol name followed by C symbol from nm.
8176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8177$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8178if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8179 $as_echo_n "(cached) " >&6
8180else
8181
8182# These are sane defaults that work on at least a few old systems.
8183# [They come from Ultrix. What could be older than Ultrix?!! ;)]
8184
8185# Character class describing NM global symbol codes.
8186symcode='[BCDEGRST]'
8187
8188# Regexp to match symbols that can be accessed directly from C.
8189sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8190
8191# Define system-specific variables.
8192case $host_os in
8193aix*)
8194 symcode='[BCDT]'
8195 ;;
8196cygwin* | mingw* | pw32* | cegcc*)
8197 symcode='[ABCDGISTW]'
8198 ;;
8199hpux*)
8200 if test "$host_cpu" = ia64; then
8201 symcode='[ABCDEGRST]'
8202 fi
8203 ;;
8204irix* | nonstopux*)
8205 symcode='[BCDEGRST]'
8206 ;;
8207osf*)
8208 symcode='[BCDEGQRST]'
8209 ;;
8210solaris*)
8211 symcode='[BDRT]'
8212 ;;
8213sco3.2v5*)
8214 symcode='[DT]'
8215 ;;
8216sysv4.2uw2*)
8217 symcode='[DT]'
8218 ;;
8219sysv5* | sco5v6* | unixware* | OpenUNIX*)
8220 symcode='[ABDT]'
8221 ;;
8222sysv4)
8223 symcode='[DFNSTU]'
8224 ;;
8225esac
8226
8227# If we're using GNU nm, then use its standard symbol codes.
8228case `$NM -V 2>&1` in
8229*GNU* | *'with BFD'*)
8230 symcode='[ABCDGIRSTW]' ;;
8231esac
8232
8233# Transform an extracted symbol line into a proper C declaration.
8234# Some systems (esp. on ia64) link data and code symbols differently,
8235# so use this general approach.
8236lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8237
8238# Transform an extracted symbol line into symbol name and symbol address
8239lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8240lt_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'"
8241
8242# Handle CRLF in mingw tool chain
8243opt_cr=
8244case $build_os in
8245mingw*)
8246 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8247 ;;
8248esac
8249
8250# Try without a prefix underscore, then with it.
8251for ac_symprfx in "" "_"; do
8252
8253 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8254 symxfrm="\\1 $ac_symprfx\\2 \\2"
8255
8256 # Write the raw and C identifiers.
8257 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8258 # Fake it for dumpbin and say T for any non-static function
8259 # and D for any global variable.
8260 # Also find C++ and __fastcall symbols from MSVC++,
8261 # which start with @ or ?.
8262 lt_cv_sys_global_symbol_pipe="$AWK '"\
8263" {last_section=section; section=\$ 3};"\
8264" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8265" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8266" \$ 0!~/External *\|/{next};"\
8267" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8268" {if(hide[section]) next};"\
8269" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8270" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8271" s[1]~/^[@?]/{print s[1], s[1]; next};"\
8272" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8273" ' prfx=^$ac_symprfx"
8274 else
8275 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8276 fi
8277 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8278
8279 # Check to see that the pipe works correctly.
8280 pipe_works=no
8281
8282 rm -f conftest*
8283 cat > conftest.$ac_ext <<_LT_EOF
8284#ifdef __cplusplus
8285extern "C" {
8286#endif
8287char nm_test_var;
8288void nm_test_func(void);
8289void nm_test_func(void){}
8290#ifdef __cplusplus
8291}
8292#endif
8293int main(){nm_test_var='a';nm_test_func();return(0);}
8294_LT_EOF
8295
8296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8297 (eval $ac_compile) 2>&5
8298 ac_status=$?
8299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8300 test $ac_status = 0; }; then
8301 # Now try to grab the symbols.
8302 nlist=conftest.nm
8303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8304 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8305 ac_status=$?
8306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8307 test $ac_status = 0; } && test -s "$nlist"; then
8308 # Try sorting and uniquifying the output.
8309 if sort "$nlist" | uniq > "$nlist"T; then
8310 mv -f "$nlist"T "$nlist"
8311 else
8312 rm -f "$nlist"T
8313 fi
8314
8315 # Make sure that we snagged all the symbols we need.
8316 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8317 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8318 cat <<_LT_EOF > conftest.$ac_ext
8319/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8320#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8321/* DATA imports from DLLs on WIN32 con't be const, because runtime
8322 relocations are performed -- see ld's documentation on pseudo-relocs. */
8323# define LT_DLSYM_CONST
8324#elif defined(__osf__)
8325/* This system does not cope well with relocations in const data. */
8326# define LT_DLSYM_CONST
8327#else
8328# define LT_DLSYM_CONST const
8329#endif
8330
8331#ifdef __cplusplus
8332extern "C" {
8333#endif
8334
8335_LT_EOF
8336 # Now generate the symbol file.
8337 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8338
8339 cat <<_LT_EOF >> conftest.$ac_ext
8340
8341/* The mapping between symbol names and symbols. */
8342LT_DLSYM_CONST struct {
8343 const char *name;
8344 void *address;
8345}
8346lt__PROGRAM__LTX_preloaded_symbols[] =
8347{
8348 { "@PROGRAM@", (void *) 0 },
8349_LT_EOF
8350 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8351 cat <<\_LT_EOF >> conftest.$ac_ext
8352 {0, (void *) 0}
8353};
8354
8355/* This works around a problem in FreeBSD linker */
8356#ifdef FREEBSD_WORKAROUND
8357static const void *lt_preloaded_setup() {
8358 return lt__PROGRAM__LTX_preloaded_symbols;
8359}
8360#endif
8361
8362#ifdef __cplusplus
8363}
8364#endif
8365_LT_EOF
8366 # Now try linking the two files.
8367 mv conftest.$ac_objext conftstm.$ac_objext
8368 lt_globsym_save_LIBS=$LIBS
8369 lt_globsym_save_CFLAGS=$CFLAGS
8370 LIBS="conftstm.$ac_objext"
8371 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8373 (eval $ac_link) 2>&5
8374 ac_status=$?
8375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8376 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8377 pipe_works=yes
8378 fi
8379 LIBS=$lt_globsym_save_LIBS
8380 CFLAGS=$lt_globsym_save_CFLAGS
8381 else
8382 echo "cannot find nm_test_func in $nlist" >&5
8383 fi
8384 else
8385 echo "cannot find nm_test_var in $nlist" >&5
8386 fi
8387 else
8388 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8389 fi
8390 else
8391 echo "$progname: failed program was:" >&5
8392 cat conftest.$ac_ext >&5
8393 fi
8394 rm -rf conftest* conftst*
8395
8396 # Do not use the global_symbol_pipe unless it works.
8397 if test "$pipe_works" = yes; then
8398 break
8399 else
8400 lt_cv_sys_global_symbol_pipe=
8401 fi
8402done
8403
8404fi
8405
8406if test -z "$lt_cv_sys_global_symbol_pipe"; then
8407 lt_cv_sys_global_symbol_to_cdecl=
8408fi
8409if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8411$as_echo "failed" >&6; }
8412else
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8414$as_echo "ok" >&6; }
8415fi
8416
8417# Response file support.
8418if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8419 nm_file_list_spec='@'
8420elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8421 nm_file_list_spec='@'
8422fi
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8451$as_echo_n "checking for sysroot... " >&6; }
8452
8453# Check whether --with-sysroot was given.
8454if test "${with_sysroot+set}" = set; then :
8455 withval=$with_sysroot;
8456else
8457 with_sysroot=no
8458fi
8459
8460
8461lt_sysroot=
8462case ${with_sysroot} in #(
8463 yes)
8464 if test "$GCC" = yes; then
8465 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8466 fi
8467 ;; #(
8468 /*)
8469 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8470 ;; #(
8471 no|'')
8472 ;; #(
8473 *)
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8475$as_echo "${with_sysroot}" >&6; }
8476 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8477 ;;
8478esac
8479
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8481$as_echo "${lt_sysroot:-no}" >&6; }
8482
8483
8484
8485
8486
8487# Check whether --enable-libtool-lock was given.
8488if test "${enable_libtool_lock+set}" = set; then :
8489 enableval=$enable_libtool_lock;
8490fi
8491
8492test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8493
8494# Some flags need to be propagated to the compiler or linker for good
8495# libtool support.
8496case $host in
8497ia64-*-hpux*)
8498 # Find out which ABI we are using.
8499 echo 'int i;' > conftest.$ac_ext
8500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8501 (eval $ac_compile) 2>&5
8502 ac_status=$?
8503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8504 test $ac_status = 0; }; then
8505 case `/usr/bin/file conftest.$ac_objext` in
8506 *ELF-32*)
8507 HPUX_IA64_MODE="32"
8508 ;;
8509 *ELF-64*)
8510 HPUX_IA64_MODE="64"
8511 ;;
8512 esac
8513 fi
8514 rm -rf conftest*
8515 ;;
8516*-*-irix6*)
8517 # Find out which ABI we are using.
8518 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8520 (eval $ac_compile) 2>&5
8521 ac_status=$?
8522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8523 test $ac_status = 0; }; then
8524 if test "$lt_cv_prog_gnu_ld" = yes; then
8525 case `/usr/bin/file conftest.$ac_objext` in
8526 *32-bit*)
8527 LD="${LD-ld} -melf32bsmip"
8528 ;;
8529 *N32*)
8530 LD="${LD-ld} -melf32bmipn32"
8531 ;;
8532 *64-bit*)
8533 LD="${LD-ld} -melf64bmip"
8534 ;;
8535 esac
8536 else
8537 case `/usr/bin/file conftest.$ac_objext` in
8538 *32-bit*)
8539 LD="${LD-ld} -32"
8540 ;;
8541 *N32*)
8542 LD="${LD-ld} -n32"
8543 ;;
8544 *64-bit*)
8545 LD="${LD-ld} -64"
8546 ;;
8547 esac
8548 fi
8549 fi
8550 rm -rf conftest*
8551 ;;
8552
8553x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8554s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8555 # Find out which ABI we are using.
8556 echo 'int i;' > conftest.$ac_ext
8557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8558 (eval $ac_compile) 2>&5
8559 ac_status=$?
8560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8561 test $ac_status = 0; }; then
8562 case `/usr/bin/file conftest.o` in
8563 *32-bit*)
8564 case $host in
8565 x86_64-*kfreebsd*-gnu)
8566 LD="${LD-ld} -m elf_i386_fbsd"
8567 ;;
8568 x86_64-*linux*)
8569 LD="${LD-ld} -m elf_i386"
8570 ;;
8571 ppc64-*linux*|powerpc64-*linux*)
8572 LD="${LD-ld} -m elf32ppclinux"
8573 ;;
8574 s390x-*linux*)
8575 LD="${LD-ld} -m elf_s390"
8576 ;;
8577 sparc64-*linux*)
8578 LD="${LD-ld} -m elf32_sparc"
8579 ;;
8580 esac
8581 ;;
8582 *64-bit*)
8583 case $host in
8584 x86_64-*kfreebsd*-gnu)
8585 LD="${LD-ld} -m elf_x86_64_fbsd"
8586 ;;
8587 x86_64-*linux*)
8588 LD="${LD-ld} -m elf_x86_64"
8589 ;;
8590 ppc*-*linux*|powerpc*-*linux*)
8591 LD="${LD-ld} -m elf64ppc"
8592 ;;
8593 s390*-*linux*|s390*-*tpf*)
8594 LD="${LD-ld} -m elf64_s390"
8595 ;;
8596 sparc*-*linux*)
8597 LD="${LD-ld} -m elf64_sparc"
8598 ;;
8599 esac
8600 ;;
8601 esac
8602 fi
8603 rm -rf conftest*
8604 ;;
8605
8606*-*-sco3.2v5*)
8607 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8608 SAVE_CFLAGS="$CFLAGS"
8609 CFLAGS="$CFLAGS -belf"
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8611$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8612if ${lt_cv_cc_needs_belf+:} false; then :
8613 $as_echo_n "(cached) " >&6
8614else
8615 ac_ext=c
8616ac_cpp='$CPP $CPPFLAGS'
8617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8619ac_compiler_gnu=$ac_cv_c_compiler_gnu
8620
8621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622/* end confdefs.h. */
8623
8624int
8625main ()
8626{
8627
8628 ;
8629 return 0;
8630}
8631_ACEOF
8632if ac_fn_c_try_link "$LINENO"; then :
8633 lt_cv_cc_needs_belf=yes
8634else
8635 lt_cv_cc_needs_belf=no
8636fi
8637rm -f core conftest.err conftest.$ac_objext \
8638 conftest$ac_exeext conftest.$ac_ext
8639 ac_ext=c
8640ac_cpp='$CPP $CPPFLAGS'
8641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8643ac_compiler_gnu=$ac_cv_c_compiler_gnu
8644
8645fi
8646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8647$as_echo "$lt_cv_cc_needs_belf" >&6; }
8648 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8649 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8650 CFLAGS="$SAVE_CFLAGS"
8651 fi
8652 ;;
8653*-*solaris*)
8654 # Find out which ABI we are using.
8655 echo 'int i;' > conftest.$ac_ext
8656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8657 (eval $ac_compile) 2>&5
8658 ac_status=$?
8659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8660 test $ac_status = 0; }; then
8661 case `/usr/bin/file conftest.o` in
8662 *64-bit*)
8663 case $lt_cv_prog_gnu_ld in
8664 yes*)
8665 case $host in
8666 i?86-*-solaris*)
8667 LD="${LD-ld} -m elf_x86_64"
8668 ;;
8669 sparc*-*-solaris*)
8670 LD="${LD-ld} -m elf64_sparc"
8671 ;;
8672 esac
8673 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8674 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8675 LD="${LD-ld}_sol2"
8676 fi
8677 ;;
8678 *)
8679 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8680 LD="${LD-ld} -64"
8681 fi
8682 ;;
8683 esac
8684 ;;
8685 esac
8686 fi
8687 rm -rf conftest*
8688 ;;
8689esac
8690
8691need_locks="$enable_libtool_lock"
8692
8693if test -n "$ac_tool_prefix"; then
8694 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8695set dummy ${ac_tool_prefix}mt; ac_word=$2
8696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8697$as_echo_n "checking for $ac_word... " >&6; }
8698if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8699 $as_echo_n "(cached) " >&6
8700else
8701 if test -n "$MANIFEST_TOOL"; then
8702 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8703else
8704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8705for as_dir in $PATH
8706do
8707 IFS=$as_save_IFS
8708 test -z "$as_dir" && as_dir=.
8709 for ac_exec_ext in '' $ac_executable_extensions; do
8710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8711 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8713 break 2
8714 fi
8715done
8716 done
8717IFS=$as_save_IFS
8718
8719fi
8720fi
8721MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8722if test -n "$MANIFEST_TOOL"; then
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8724$as_echo "$MANIFEST_TOOL" >&6; }
8725else
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727$as_echo "no" >&6; }
8728fi
8729
8730
8731fi
8732if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8733 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8734 # Extract the first word of "mt", so it can be a program name with args.
8735set dummy mt; ac_word=$2
8736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8737$as_echo_n "checking for $ac_word... " >&6; }
8738if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8739 $as_echo_n "(cached) " >&6
8740else
8741 if test -n "$ac_ct_MANIFEST_TOOL"; then
8742 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8743else
8744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745for as_dir in $PATH
8746do
8747 IFS=$as_save_IFS
8748 test -z "$as_dir" && as_dir=.
8749 for ac_exec_ext in '' $ac_executable_extensions; do
8750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8751 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8753 break 2
8754 fi
8755done
8756 done
8757IFS=$as_save_IFS
8758
8759fi
8760fi
8761ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8762if test -n "$ac_ct_MANIFEST_TOOL"; then
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8764$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8765else
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767$as_echo "no" >&6; }
8768fi
8769
8770 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8771 MANIFEST_TOOL=":"
8772 else
8773 case $cross_compiling:$ac_tool_warned in
8774yes:)
8775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8777ac_tool_warned=yes ;;
8778esac
8779 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8780 fi
8781else
8782 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8783fi
8784
8785test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8787$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8788if ${lt_cv_path_mainfest_tool+:} false; then :
8789 $as_echo_n "(cached) " >&6
8790else
8791 lt_cv_path_mainfest_tool=no
8792 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8793 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8794 cat conftest.err >&5
8795 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8796 lt_cv_path_mainfest_tool=yes
8797 fi
8798 rm -f conftest*
8799fi
8800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8801$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8802if test "x$lt_cv_path_mainfest_tool" != xyes; then
8803 MANIFEST_TOOL=:
8804fi
8805
8806
8807
8808
8809
8810
8811 case $host_os in
8812 rhapsody* | darwin*)
8813 if test -n "$ac_tool_prefix"; then
8814 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8815set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8817$as_echo_n "checking for $ac_word... " >&6; }
8818if ${ac_cv_prog_DSYMUTIL+:} false; then :
8819 $as_echo_n "(cached) " >&6
8820else
8821 if test -n "$DSYMUTIL"; then
8822 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8823else
8824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8825for as_dir in $PATH
8826do
8827 IFS=$as_save_IFS
8828 test -z "$as_dir" && as_dir=.
8829 for ac_exec_ext in '' $ac_executable_extensions; do
8830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8831 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8833 break 2
8834 fi
8835done
8836 done
8837IFS=$as_save_IFS
8838
8839fi
8840fi
8841DSYMUTIL=$ac_cv_prog_DSYMUTIL
8842if test -n "$DSYMUTIL"; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8844$as_echo "$DSYMUTIL" >&6; }
8845else
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847$as_echo "no" >&6; }
8848fi
8849
8850
8851fi
8852if test -z "$ac_cv_prog_DSYMUTIL"; then
8853 ac_ct_DSYMUTIL=$DSYMUTIL
8854 # Extract the first word of "dsymutil", so it can be a program name with args.
8855set dummy dsymutil; ac_word=$2
8856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8857$as_echo_n "checking for $ac_word... " >&6; }
8858if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8859 $as_echo_n "(cached) " >&6
8860else
8861 if test -n "$ac_ct_DSYMUTIL"; then
8862 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8863else
8864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8865for as_dir in $PATH
8866do
8867 IFS=$as_save_IFS
8868 test -z "$as_dir" && as_dir=.
8869 for ac_exec_ext in '' $ac_executable_extensions; do
8870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8871 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8873 break 2
8874 fi
8875done
8876 done
8877IFS=$as_save_IFS
8878
8879fi
8880fi
8881ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8882if test -n "$ac_ct_DSYMUTIL"; then
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8884$as_echo "$ac_ct_DSYMUTIL" >&6; }
8885else
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8887$as_echo "no" >&6; }
8888fi
8889
8890 if test "x$ac_ct_DSYMUTIL" = x; then
8891 DSYMUTIL=":"
8892 else
8893 case $cross_compiling:$ac_tool_warned in
8894yes:)
8895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8897ac_tool_warned=yes ;;
8898esac
8899 DSYMUTIL=$ac_ct_DSYMUTIL
8900 fi
8901else
8902 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8903fi
8904
8905 if test -n "$ac_tool_prefix"; then
8906 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8907set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8909$as_echo_n "checking for $ac_word... " >&6; }
8910if ${ac_cv_prog_NMEDIT+:} false; then :
8911 $as_echo_n "(cached) " >&6
8912else
8913 if test -n "$NMEDIT"; then
8914 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8915else
8916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8917for as_dir in $PATH
8918do
8919 IFS=$as_save_IFS
8920 test -z "$as_dir" && as_dir=.
8921 for ac_exec_ext in '' $ac_executable_extensions; do
8922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8923 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8925 break 2
8926 fi
8927done
8928 done
8929IFS=$as_save_IFS
8930
8931fi
8932fi
8933NMEDIT=$ac_cv_prog_NMEDIT
8934if test -n "$NMEDIT"; then
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8936$as_echo "$NMEDIT" >&6; }
8937else
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8939$as_echo "no" >&6; }
8940fi
8941
8942
8943fi
8944if test -z "$ac_cv_prog_NMEDIT"; then
8945 ac_ct_NMEDIT=$NMEDIT
8946 # Extract the first word of "nmedit", so it can be a program name with args.
8947set dummy nmedit; ac_word=$2
8948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8949$as_echo_n "checking for $ac_word... " >&6; }
8950if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8951 $as_echo_n "(cached) " >&6
8952else
8953 if test -n "$ac_ct_NMEDIT"; then
8954 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8955else
8956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8957for as_dir in $PATH
8958do
8959 IFS=$as_save_IFS
8960 test -z "$as_dir" && as_dir=.
8961 for ac_exec_ext in '' $ac_executable_extensions; do
8962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8963 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8965 break 2
8966 fi
8967done
8968 done
8969IFS=$as_save_IFS
8970
8971fi
8972fi
8973ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8974if test -n "$ac_ct_NMEDIT"; then
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8976$as_echo "$ac_ct_NMEDIT" >&6; }
8977else
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8979$as_echo "no" >&6; }
8980fi
8981
8982 if test "x$ac_ct_NMEDIT" = x; then
8983 NMEDIT=":"
8984 else
8985 case $cross_compiling:$ac_tool_warned in
8986yes:)
8987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8989ac_tool_warned=yes ;;
8990esac
8991 NMEDIT=$ac_ct_NMEDIT
8992 fi
8993else
8994 NMEDIT="$ac_cv_prog_NMEDIT"
8995fi
8996
8997 if test -n "$ac_tool_prefix"; then
8998 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8999set dummy ${ac_tool_prefix}lipo; ac_word=$2
9000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9001$as_echo_n "checking for $ac_word... " >&6; }
9002if ${ac_cv_prog_LIPO+:} false; then :
9003 $as_echo_n "(cached) " >&6
9004else
9005 if test -n "$LIPO"; then
9006 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9007else
9008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9009for as_dir in $PATH
9010do
9011 IFS=$as_save_IFS
9012 test -z "$as_dir" && as_dir=.
9013 for ac_exec_ext in '' $ac_executable_extensions; do
9014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9015 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9017 break 2
9018 fi
9019done
9020 done
9021IFS=$as_save_IFS
9022
9023fi
9024fi
9025LIPO=$ac_cv_prog_LIPO
9026if test -n "$LIPO"; then
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9028$as_echo "$LIPO" >&6; }
9029else
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9031$as_echo "no" >&6; }
9032fi
9033
9034
9035fi
9036if test -z "$ac_cv_prog_LIPO"; then
9037 ac_ct_LIPO=$LIPO
9038 # Extract the first word of "lipo", so it can be a program name with args.
9039set dummy lipo; ac_word=$2
9040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9041$as_echo_n "checking for $ac_word... " >&6; }
9042if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9043 $as_echo_n "(cached) " >&6
9044else
9045 if test -n "$ac_ct_LIPO"; then
9046 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9047else
9048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049for as_dir in $PATH
9050do
9051 IFS=$as_save_IFS
9052 test -z "$as_dir" && as_dir=.
9053 for ac_exec_ext in '' $ac_executable_extensions; do
9054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9055 ac_cv_prog_ac_ct_LIPO="lipo"
9056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9057 break 2
9058 fi
9059done
9060 done
9061IFS=$as_save_IFS
9062
9063fi
9064fi
9065ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9066if test -n "$ac_ct_LIPO"; then
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9068$as_echo "$ac_ct_LIPO" >&6; }
9069else
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9071$as_echo "no" >&6; }
9072fi
9073
9074 if test "x$ac_ct_LIPO" = x; then
9075 LIPO=":"
9076 else
9077 case $cross_compiling:$ac_tool_warned in
9078yes:)
9079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9081ac_tool_warned=yes ;;
9082esac
9083 LIPO=$ac_ct_LIPO
9084 fi
9085else
9086 LIPO="$ac_cv_prog_LIPO"
9087fi
9088
9089 if test -n "$ac_tool_prefix"; then
9090 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9091set dummy ${ac_tool_prefix}otool; ac_word=$2
9092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9093$as_echo_n "checking for $ac_word... " >&6; }
9094if ${ac_cv_prog_OTOOL+:} false; then :
9095 $as_echo_n "(cached) " >&6
9096else
9097 if test -n "$OTOOL"; then
9098 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9099else
9100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9101for as_dir in $PATH
9102do
9103 IFS=$as_save_IFS
9104 test -z "$as_dir" && as_dir=.
9105 for ac_exec_ext in '' $ac_executable_extensions; do
9106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9107 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9109 break 2
9110 fi
9111done
9112 done
9113IFS=$as_save_IFS
9114
9115fi
9116fi
9117OTOOL=$ac_cv_prog_OTOOL
9118if test -n "$OTOOL"; then
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9120$as_echo "$OTOOL" >&6; }
9121else
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9123$as_echo "no" >&6; }
9124fi
9125
9126
9127fi
9128if test -z "$ac_cv_prog_OTOOL"; then
9129 ac_ct_OTOOL=$OTOOL
9130 # Extract the first word of "otool", so it can be a program name with args.
9131set dummy otool; ac_word=$2
9132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9133$as_echo_n "checking for $ac_word... " >&6; }
9134if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9135 $as_echo_n "(cached) " >&6
9136else
9137 if test -n "$ac_ct_OTOOL"; then
9138 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9139else
9140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9141for as_dir in $PATH
9142do
9143 IFS=$as_save_IFS
9144 test -z "$as_dir" && as_dir=.
9145 for ac_exec_ext in '' $ac_executable_extensions; do
9146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9147 ac_cv_prog_ac_ct_OTOOL="otool"
9148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9149 break 2
9150 fi
9151done
9152 done
9153IFS=$as_save_IFS
9154
9155fi
9156fi
9157ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9158if test -n "$ac_ct_OTOOL"; then
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9160$as_echo "$ac_ct_OTOOL" >&6; }
9161else
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9163$as_echo "no" >&6; }
9164fi
9165
9166 if test "x$ac_ct_OTOOL" = x; then
9167 OTOOL=":"
9168 else
9169 case $cross_compiling:$ac_tool_warned in
9170yes:)
9171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9173ac_tool_warned=yes ;;
9174esac
9175 OTOOL=$ac_ct_OTOOL
9176 fi
9177else
9178 OTOOL="$ac_cv_prog_OTOOL"
9179fi
9180
9181 if test -n "$ac_tool_prefix"; then
9182 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9183set dummy ${ac_tool_prefix}otool64; ac_word=$2
9184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9185$as_echo_n "checking for $ac_word... " >&6; }
9186if ${ac_cv_prog_OTOOL64+:} false; then :
9187 $as_echo_n "(cached) " >&6
9188else
9189 if test -n "$OTOOL64"; then
9190 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9191else
9192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9193for as_dir in $PATH
9194do
9195 IFS=$as_save_IFS
9196 test -z "$as_dir" && as_dir=.
9197 for ac_exec_ext in '' $ac_executable_extensions; do
9198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9199 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9201 break 2
9202 fi
9203done
9204 done
9205IFS=$as_save_IFS
9206
9207fi
9208fi
9209OTOOL64=$ac_cv_prog_OTOOL64
9210if test -n "$OTOOL64"; then
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9212$as_echo "$OTOOL64" >&6; }
9213else
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9215$as_echo "no" >&6; }
9216fi
9217
9218
9219fi
9220if test -z "$ac_cv_prog_OTOOL64"; then
9221 ac_ct_OTOOL64=$OTOOL64
9222 # Extract the first word of "otool64", so it can be a program name with args.
9223set dummy otool64; ac_word=$2
9224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225$as_echo_n "checking for $ac_word... " >&6; }
9226if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9227 $as_echo_n "(cached) " >&6
9228else
9229 if test -n "$ac_ct_OTOOL64"; then
9230 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9231else
9232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9233for as_dir in $PATH
9234do
9235 IFS=$as_save_IFS
9236 test -z "$as_dir" && as_dir=.
9237 for ac_exec_ext in '' $ac_executable_extensions; do
9238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9239 ac_cv_prog_ac_ct_OTOOL64="otool64"
9240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9241 break 2
9242 fi
9243done
9244 done
9245IFS=$as_save_IFS
9246
9247fi
9248fi
9249ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9250if test -n "$ac_ct_OTOOL64"; then
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9252$as_echo "$ac_ct_OTOOL64" >&6; }
9253else
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9255$as_echo "no" >&6; }
9256fi
9257
9258 if test "x$ac_ct_OTOOL64" = x; then
9259 OTOOL64=":"
9260 else
9261 case $cross_compiling:$ac_tool_warned in
9262yes:)
9263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9265ac_tool_warned=yes ;;
9266esac
9267 OTOOL64=$ac_ct_OTOOL64
9268 fi
9269else
9270 OTOOL64="$ac_cv_prog_OTOOL64"
9271fi
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9300$as_echo_n "checking for -single_module linker flag... " >&6; }
9301if ${lt_cv_apple_cc_single_mod+:} false; then :
9302 $as_echo_n "(cached) " >&6
9303else
9304 lt_cv_apple_cc_single_mod=no
9305 if test -z "${LT_MULTI_MODULE}"; then
9306 # By default we will add the -single_module flag. You can override
9307 # by either setting the environment variable LT_MULTI_MODULE
9308 # non-empty at configure time, or by adding -multi_module to the
9309 # link flags.
9310 rm -rf libconftest.dylib*
9311 echo "int foo(void){return 1;}" > conftest.c
9312 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9313-dynamiclib -Wl,-single_module conftest.c" >&5
9314 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9315 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9316 _lt_result=$?
9317 # If there is a non-empty error log, and "single_module"
9318 # appears in it, assume the flag caused a linker warning
9319 if test -s conftest.err && $GREP single_module conftest.err; then
9320 cat conftest.err >&5
9321 # Otherwise, if the output was created with a 0 exit code from
9322 # the compiler, it worked.
9323 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9324 lt_cv_apple_cc_single_mod=yes
9325 else
9326 cat conftest.err >&5
9327 fi
9328 rm -rf libconftest.dylib*
9329 rm -f conftest.*
9330 fi
9331fi
9332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9333$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9334
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9336$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9337if ${lt_cv_ld_exported_symbols_list+:} false; then :
9338 $as_echo_n "(cached) " >&6
9339else
9340 lt_cv_ld_exported_symbols_list=no
9341 save_LDFLAGS=$LDFLAGS
9342 echo "_main" > conftest.sym
9343 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345/* end confdefs.h. */
9346
9347int
9348main ()
9349{
9350
9351 ;
9352 return 0;
9353}
9354_ACEOF
9355if ac_fn_c_try_link "$LINENO"; then :
9356 lt_cv_ld_exported_symbols_list=yes
9357else
9358 lt_cv_ld_exported_symbols_list=no
9359fi
9360rm -f core conftest.err conftest.$ac_objext \
9361 conftest$ac_exeext conftest.$ac_ext
9362 LDFLAGS="$save_LDFLAGS"
9363
9364fi
9365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9366$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9367
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9369$as_echo_n "checking for -force_load linker flag... " >&6; }
9370if ${lt_cv_ld_force_load+:} false; then :
9371 $as_echo_n "(cached) " >&6
9372else
9373 lt_cv_ld_force_load=no
9374 cat > conftest.c << _LT_EOF
9375int forced_loaded() { return 2;}
9376_LT_EOF
9377 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9378 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9379 echo "$AR cru libconftest.a conftest.o" >&5
9380 $AR cru libconftest.a conftest.o 2>&5
9381 echo "$RANLIB libconftest.a" >&5
9382 $RANLIB libconftest.a 2>&5
9383 cat > conftest.c << _LT_EOF
9384int main() { return 0;}
9385_LT_EOF
9386 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9387 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9388 _lt_result=$?
9389 if test -s conftest.err && $GREP force_load conftest.err; then
9390 cat conftest.err >&5
9391 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9392 lt_cv_ld_force_load=yes
9393 else
9394 cat conftest.err >&5
9395 fi
9396 rm -f conftest.err libconftest.a conftest conftest.c
9397 rm -rf conftest.dSYM
9398
9399fi
9400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9401$as_echo "$lt_cv_ld_force_load" >&6; }
9402 case $host_os in
9403 rhapsody* | darwin1.[012])
9404 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9405 darwin1.*)
9406 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9407 darwin*) # darwin 5.x on
9408 # if running on 10.5 or later, the deployment target defaults
9409 # to the OS version, if on x86, and 10.4, the deployment
9410 # target defaults to 10.4. Don't you love it?
9411 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9412 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9413 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9414 10.[012]*)
9415 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9416 10.*)
9417 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9418 esac
9419 ;;
9420 esac
9421 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9422 _lt_dar_single_mod='$single_module'
9423 fi
9424 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9425 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9426 else
9427 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9428 fi
9429 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9430 _lt_dsymutil='~$DSYMUTIL $lib || :'
9431 else
9432 _lt_dsymutil=
9433 fi
9434 ;;
9435 esac
9436
9437for ac_header in dlfcn.h
9438do :
9439 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9440"
9441if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9442 cat >>confdefs.h <<_ACEOF
9443#define HAVE_DLFCN_H 1
9444_ACEOF
9445
9446fi
9447
9448done
9449
9450
9451
9452
9453
9454# Set options
9455
9456
9457
9458 enable_dlopen=no
9459
9460
9461
9462 # Check whether --enable-shared was given.
9463if test "${enable_shared+set}" = set; then :
9464 enableval=$enable_shared; p=${PACKAGE-default}
9465 case $enableval in
9466 yes) enable_shared=yes ;;
9467 no) enable_shared=no ;;
9468 *)
9469 enable_shared=no
9470 # Look at the argument we got. We use all the common list separators.
9471 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9472 for pkg in $enableval; do
9473 IFS="$lt_save_ifs"
9474 if test "X$pkg" = "X$p"; then
9475 enable_shared=yes
9476 fi
9477 done
9478 IFS="$lt_save_ifs"
9479 ;;
9480 esac
9481else
9482 enable_shared=yes
9483fi
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493 # Check whether --enable-static was given.
9494if test "${enable_static+set}" = set; then :
9495 enableval=$enable_static; p=${PACKAGE-default}
9496 case $enableval in
9497 yes) enable_static=yes ;;
9498 no) enable_static=no ;;
9499 *)
9500 enable_static=no
9501 # Look at the argument we got. We use all the common list separators.
9502 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9503 for pkg in $enableval; do
9504 IFS="$lt_save_ifs"
9505 if test "X$pkg" = "X$p"; then
9506 enable_static=yes
9507 fi
9508 done
9509 IFS="$lt_save_ifs"
9510 ;;
9511 esac
9512else
9513 enable_static=yes
9514fi
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525# Check whether --with-pic was given.
9526if test "${with_pic+set}" = set; then :
9527 withval=$with_pic; lt_p=${PACKAGE-default}
9528 case $withval in
9529 yes|no) pic_mode=$withval ;;
9530 *)
9531 pic_mode=default
9532 # Look at the argument we got. We use all the common list separators.
9533 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9534 for lt_pkg in $withval; do
9535 IFS="$lt_save_ifs"
9536 if test "X$lt_pkg" = "X$lt_p"; then
9537 pic_mode=yes
9538 fi
9539 done
9540 IFS="$lt_save_ifs"
9541 ;;
9542 esac
9543else
9544 pic_mode=default
9545fi
9546
9547
9548test -z "$pic_mode" && pic_mode=default
9549
9550
9551
9552
9553
9554
9555
9556 # Check whether --enable-fast-install was given.
9557if test "${enable_fast_install+set}" = set; then :
9558 enableval=$enable_fast_install; p=${PACKAGE-default}
9559 case $enableval in
9560 yes) enable_fast_install=yes ;;
9561 no) enable_fast_install=no ;;
9562 *)
9563 enable_fast_install=no
9564 # Look at the argument we got. We use all the common list separators.
9565 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9566 for pkg in $enableval; do
9567 IFS="$lt_save_ifs"
9568 if test "X$pkg" = "X$p"; then
9569 enable_fast_install=yes
9570 fi
9571 done
9572 IFS="$lt_save_ifs"
9573 ;;
9574 esac
9575else
9576 enable_fast_install=yes
9577fi
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589# This can be used to rebuild libtool when needed
9590LIBTOOL_DEPS="$ltmain"
9591
9592# Always use our own libtool.
9593LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624test -z "$LN_S" && LN_S="ln -s"
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639if test -n "${ZSH_VERSION+set}" ; then
9640 setopt NO_GLOB_SUBST
9641fi
9642
9643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9644$as_echo_n "checking for objdir... " >&6; }
9645if ${lt_cv_objdir+:} false; then :
9646 $as_echo_n "(cached) " >&6
9647else
9648 rm -f .libs 2>/dev/null
9649mkdir .libs 2>/dev/null
9650if test -d .libs; then
9651 lt_cv_objdir=.libs
9652else
9653 # MS-DOS does not allow filenames that begin with a dot.
9654 lt_cv_objdir=_libs
9655fi
9656rmdir .libs 2>/dev/null
9657fi
9658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9659$as_echo "$lt_cv_objdir" >&6; }
9660objdir=$lt_cv_objdir
9661
9662
9663
9664
9665
9666cat >>confdefs.h <<_ACEOF
9667#define LT_OBJDIR "$lt_cv_objdir/"
9668_ACEOF
9669
9670
9671
9672
9673case $host_os in
9674aix3*)
9675 # AIX sometimes has problems with the GCC collect2 program. For some
9676 # reason, if we set the COLLECT_NAMES environment variable, the problems
9677 # vanish in a puff of smoke.
9678 if test "X${COLLECT_NAMES+set}" != Xset; then
9679 COLLECT_NAMES=
9680 export COLLECT_NAMES
9681 fi
9682 ;;
9683esac
9684
9685# Global variables:
9686ofile=libtool
9687can_build_shared=yes
9688
9689# All known linkers require a `.a' archive for static linking (except MSVC,
9690# which needs '.lib').
9691libext=a
9692
9693with_gnu_ld="$lt_cv_prog_gnu_ld"
9694
9695old_CC="$CC"
9696old_CFLAGS="$CFLAGS"
9697
9698# Set sane defaults for various variables
9699test -z "$CC" && CC=cc
9700test -z "$LTCC" && LTCC=$CC
9701test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9702test -z "$LD" && LD=ld
9703test -z "$ac_objext" && ac_objext=o
9704
9705for cc_temp in $compiler""; do
9706 case $cc_temp in
9707 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9708 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9709 \-*) ;;
9710 *) break;;
9711 esac
9712done
9713cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9714
9715
9716# Only perform the check for file, if the check method requires it
9717test -z "$MAGIC_CMD" && MAGIC_CMD=file
9718case $deplibs_check_method in
9719file_magic*)
9720 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9722$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9723if ${lt_cv_path_MAGIC_CMD+:} false; then :
9724 $as_echo_n "(cached) " >&6
9725else
9726 case $MAGIC_CMD in
9727[\\/*] | ?:[\\/]*)
9728 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9729 ;;
9730*)
9731 lt_save_MAGIC_CMD="$MAGIC_CMD"
9732 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9733 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9734 for ac_dir in $ac_dummy; do
9735 IFS="$lt_save_ifs"
9736 test -z "$ac_dir" && ac_dir=.
9737 if test -f $ac_dir/${ac_tool_prefix}file; then
9738 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9739 if test -n "$file_magic_test_file"; then
9740 case $deplibs_check_method in
9741 "file_magic "*)
9742 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9743 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9744 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9745 $EGREP "$file_magic_regex" > /dev/null; then
9746 :
9747 else
9748 cat <<_LT_EOF 1>&2
9749
9750*** Warning: the command libtool uses to detect shared libraries,
9751*** $file_magic_cmd, produces output that libtool cannot recognize.
9752*** The result is that libtool may fail to recognize shared libraries
9753*** as such. This will affect the creation of libtool libraries that
9754*** depend on shared libraries, but programs linked with such libtool
9755*** libraries will work regardless of this problem. Nevertheless, you
9756*** may want to report the problem to your system manager and/or to
9757*** bug-libtool@gnu.org
9758
9759_LT_EOF
9760 fi ;;
9761 esac
9762 fi
9763 break
9764 fi
9765 done
9766 IFS="$lt_save_ifs"
9767 MAGIC_CMD="$lt_save_MAGIC_CMD"
9768 ;;
9769esac
9770fi
9771
9772MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9773if test -n "$MAGIC_CMD"; then
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9775$as_echo "$MAGIC_CMD" >&6; }
9776else
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9778$as_echo "no" >&6; }
9779fi
9780
9781
9782
9783
9784
9785if test -z "$lt_cv_path_MAGIC_CMD"; then
9786 if test -n "$ac_tool_prefix"; then
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9788$as_echo_n "checking for file... " >&6; }
9789if ${lt_cv_path_MAGIC_CMD+:} false; then :
9790 $as_echo_n "(cached) " >&6
9791else
9792 case $MAGIC_CMD in
9793[\\/*] | ?:[\\/]*)
9794 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9795 ;;
9796*)
9797 lt_save_MAGIC_CMD="$MAGIC_CMD"
9798 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9799 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9800 for ac_dir in $ac_dummy; do
9801 IFS="$lt_save_ifs"
9802 test -z "$ac_dir" && ac_dir=.
9803 if test -f $ac_dir/file; then
9804 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9805 if test -n "$file_magic_test_file"; then
9806 case $deplibs_check_method in
9807 "file_magic "*)
9808 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9809 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9810 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9811 $EGREP "$file_magic_regex" > /dev/null; then
9812 :
9813 else
9814 cat <<_LT_EOF 1>&2
9815
9816*** Warning: the command libtool uses to detect shared libraries,
9817*** $file_magic_cmd, produces output that libtool cannot recognize.
9818*** The result is that libtool may fail to recognize shared libraries
9819*** as such. This will affect the creation of libtool libraries that
9820*** depend on shared libraries, but programs linked with such libtool
9821*** libraries will work regardless of this problem. Nevertheless, you
9822*** may want to report the problem to your system manager and/or to
9823*** bug-libtool@gnu.org
9824
9825_LT_EOF
9826 fi ;;
9827 esac
9828 fi
9829 break
9830 fi
9831 done
9832 IFS="$lt_save_ifs"
9833 MAGIC_CMD="$lt_save_MAGIC_CMD"
9834 ;;
9835esac
9836fi
9837
9838MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9839if test -n "$MAGIC_CMD"; then
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9841$as_echo "$MAGIC_CMD" >&6; }
9842else
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9844$as_echo "no" >&6; }
9845fi
9846
9847
9848 else
9849 MAGIC_CMD=:
9850 fi
9851fi
9852
9853 fi
9854 ;;
9855esac
9856
9857# Use C for the default configuration in the libtool script
9858
9859lt_save_CC="$CC"
9860ac_ext=c
9861ac_cpp='$CPP $CPPFLAGS'
9862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9864ac_compiler_gnu=$ac_cv_c_compiler_gnu
9865
9866
9867# Source file extension for C test sources.
9868ac_ext=c
9869
9870# Object file extension for compiled C test sources.
9871objext=o
9872objext=$objext
9873
9874# Code to be used in simple compile tests
9875lt_simple_compile_test_code="int some_variable = 0;"
9876
9877# Code to be used in simple link tests
9878lt_simple_link_test_code='int main(){return(0);}'
9879
9880
9881
9882
9883
9884
9885
9886# If no C compiler was specified, use CC.
9887LTCC=${LTCC-"$CC"}
9888
9889# If no C compiler flags were specified, use CFLAGS.
9890LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9891
9892# Allow CC to be a program name with arguments.
9893compiler=$CC
9894
9895# Save the default compiler, since it gets overwritten when the other
9896# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9897compiler_DEFAULT=$CC
9898
9899# save warnings/boilerplate of simple test code
9900ac_outfile=conftest.$ac_objext
9901echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9902eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9903_lt_compiler_boilerplate=`cat conftest.err`
9904$RM conftest*
9905
9906ac_outfile=conftest.$ac_objext
9907echo "$lt_simple_link_test_code" >conftest.$ac_ext
9908eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9909_lt_linker_boilerplate=`cat conftest.err`
9910$RM -r conftest*
9911
9912
9913if test -n "$compiler"; then
9914
9915lt_prog_compiler_no_builtin_flag=
9916
9917if test "$GCC" = yes; then
9918 case $cc_basename in
9919 nvcc*)
9920 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9921 *)
9922 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9923 esac
9924
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9926$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9927if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9928 $as_echo_n "(cached) " >&6
9929else
9930 lt_cv_prog_compiler_rtti_exceptions=no
9931 ac_outfile=conftest.$ac_objext
9932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9933 lt_compiler_flag="-fno-rtti -fno-exceptions"
9934 # Insert the option either (1) after the last *FLAGS variable, or
9935 # (2) before a word containing "conftest.", or (3) at the end.
9936 # Note that $ac_compile itself does not contain backslashes and begins
9937 # with a dollar sign (not a hyphen), so the echo should work correctly.
9938 # The option is referenced via a variable to avoid confusing sed.
9939 lt_compile=`echo "$ac_compile" | $SED \
9940 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9942 -e 's:$: $lt_compiler_flag:'`
9943 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9944 (eval "$lt_compile" 2>conftest.err)
9945 ac_status=$?
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 if (exit $ac_status) && test -s "$ac_outfile"; then
9949 # The compiler can only warn and ignore the option if not recognized
9950 # So say no if there are warnings other than the usual output.
9951 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9952 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9953 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9954 lt_cv_prog_compiler_rtti_exceptions=yes
9955 fi
9956 fi
9957 $RM conftest*
9958
9959fi
9960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9961$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9962
9963if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9964 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9965else
9966 :
9967fi
9968
9969fi
9970
9971
9972
9973
9974
9975
9976 lt_prog_compiler_wl=
9977lt_prog_compiler_pic=
9978lt_prog_compiler_static=
9979
9980
9981 if test "$GCC" = yes; then
9982 lt_prog_compiler_wl='-Wl,'
9983 lt_prog_compiler_static='-static'
9984
9985 case $host_os in
9986 aix*)
9987 # All AIX code is PIC.
9988 if test "$host_cpu" = ia64; then
9989 # AIX 5 now supports IA64 processor
9990 lt_prog_compiler_static='-Bstatic'
9991 fi
9992 ;;
9993
9994 amigaos*)
9995 case $host_cpu in
9996 powerpc)
9997 # see comment about AmigaOS4 .so support
9998 lt_prog_compiler_pic='-fPIC'
9999 ;;
10000 m68k)
10001 # FIXME: we need at least 68020 code to build shared libraries, but
10002 # adding the `-m68020' flag to GCC prevents building anything better,
10003 # like `-m68040'.
10004 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10005 ;;
10006 esac
10007 ;;
10008
10009 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10010 # PIC is the default for these OSes.
10011 ;;
10012
10013 mingw* | cygwin* | pw32* | os2* | cegcc*)
10014 # This hack is so that the source file can tell whether it is being
10015 # built for inclusion in a dll (and should export symbols for example).
10016 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10017 # (--disable-auto-import) libraries
10018 lt_prog_compiler_pic='-DDLL_EXPORT'
10019 ;;
10020
10021 darwin* | rhapsody*)
10022 # PIC is the default on this platform
10023 # Common symbols not allowed in MH_DYLIB files
10024 lt_prog_compiler_pic='-fno-common'
10025 ;;
10026
10027 haiku*)
10028 # PIC is the default for Haiku.
10029 # The "-static" flag exists, but is broken.
10030 lt_prog_compiler_static=
10031 ;;
10032
10033 hpux*)
10034 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10035 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10036 # sets the default TLS model and affects inlining.
10037 case $host_cpu in
10038 hppa*64*)
10039 # +Z the default
10040 ;;
10041 *)
10042 lt_prog_compiler_pic='-fPIC'
10043 ;;
10044 esac
10045 ;;
10046
10047 interix[3-9]*)
10048 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10049 # Instead, we relocate shared libraries at runtime.
10050 ;;
10051
10052 msdosdjgpp*)
10053 # Just because we use GCC doesn't mean we suddenly get shared libraries
10054 # on systems that don't support them.
10055 lt_prog_compiler_can_build_shared=no
10056 enable_shared=no
10057 ;;
10058
10059 *nto* | *qnx*)
10060 # QNX uses GNU C++, but need to define -shared option too, otherwise
10061 # it will coredump.
10062 lt_prog_compiler_pic='-fPIC -shared'
10063 ;;
10064
10065 sysv4*MP*)
10066 if test -d /usr/nec; then
10067 lt_prog_compiler_pic=-Kconform_pic
10068 fi
10069 ;;
10070
10071 *)
10072 lt_prog_compiler_pic='-fPIC'
10073 ;;
10074 esac
10075
10076 case $cc_basename in
10077 nvcc*) # Cuda Compiler Driver 2.2
10078 lt_prog_compiler_wl='-Xlinker '
10079 if test -n "$lt_prog_compiler_pic"; then
10080 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10081 fi
10082 ;;
10083 esac
10084 else
10085 # PORTME Check for flag to pass linker flags through the system compiler.
10086 case $host_os in
10087 aix*)
10088 lt_prog_compiler_wl='-Wl,'
10089 if test "$host_cpu" = ia64; then
10090 # AIX 5 now supports IA64 processor
10091 lt_prog_compiler_static='-Bstatic'
10092 else
10093 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10094 fi
10095 ;;
10096
10097 mingw* | cygwin* | pw32* | os2* | cegcc*)
10098 # This hack is so that the source file can tell whether it is being
10099 # built for inclusion in a dll (and should export symbols for example).
10100 lt_prog_compiler_pic='-DDLL_EXPORT'
10101 ;;
10102
10103 hpux9* | hpux10* | hpux11*)
10104 lt_prog_compiler_wl='-Wl,'
10105 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10106 # not for PA HP-UX.
10107 case $host_cpu in
10108 hppa*64*|ia64*)
10109 # +Z the default
10110 ;;
10111 *)
10112 lt_prog_compiler_pic='+Z'
10113 ;;
10114 esac
10115 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10116 lt_prog_compiler_static='${wl}-a ${wl}archive'
10117 ;;
10118
10119 irix5* | irix6* | nonstopux*)
10120 lt_prog_compiler_wl='-Wl,'
10121 # PIC (with -KPIC) is the default.
10122 lt_prog_compiler_static='-non_shared'
10123 ;;
10124
10125 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10126 case $cc_basename in
10127 # old Intel for x86_64 which still supported -KPIC.
10128 ecc*)
10129 lt_prog_compiler_wl='-Wl,'
10130 lt_prog_compiler_pic='-KPIC'
10131 lt_prog_compiler_static='-static'
10132 ;;
10133 # icc used to be incompatible with GCC.
10134 # ICC 10 doesn't accept -KPIC any more.
10135 icc* | ifort*)
10136 lt_prog_compiler_wl='-Wl,'
10137 lt_prog_compiler_pic='-fPIC'
10138 lt_prog_compiler_static='-static'
10139 ;;
10140 # Lahey Fortran 8.1.
10141 lf95*)
10142 lt_prog_compiler_wl='-Wl,'
10143 lt_prog_compiler_pic='--shared'
10144 lt_prog_compiler_static='--static'
10145 ;;
10146 nagfor*)
10147 # NAG Fortran compiler
10148 lt_prog_compiler_wl='-Wl,-Wl,,'
10149 lt_prog_compiler_pic='-PIC'
10150 lt_prog_compiler_static='-Bstatic'
10151 ;;
10152 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10153 # Portland Group compilers (*not* the Pentium gcc compiler,
10154 # which looks to be a dead project)
10155 lt_prog_compiler_wl='-Wl,'
10156 lt_prog_compiler_pic='-fpic'
10157 lt_prog_compiler_static='-Bstatic'
10158 ;;
10159 ccc*)
10160 lt_prog_compiler_wl='-Wl,'
10161 # All Alpha code is PIC.
10162 lt_prog_compiler_static='-non_shared'
10163 ;;
10164 xl* | bgxl* | bgf* | mpixl*)
10165 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10166 lt_prog_compiler_wl='-Wl,'
10167 lt_prog_compiler_pic='-qpic'
10168 lt_prog_compiler_static='-qstaticlink'
10169 ;;
10170 *)
10171 case `$CC -V 2>&1 | sed 5q` in
10172 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10173 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10174 lt_prog_compiler_pic='-KPIC'
10175 lt_prog_compiler_static='-Bstatic'
10176 lt_prog_compiler_wl=''
10177 ;;
10178 *Sun\ F* | *Sun*Fortran*)
10179 lt_prog_compiler_pic='-KPIC'
10180 lt_prog_compiler_static='-Bstatic'
10181 lt_prog_compiler_wl='-Qoption ld '
10182 ;;
10183 *Sun\ C*)
10184 # Sun C 5.9
10185 lt_prog_compiler_pic='-KPIC'
10186 lt_prog_compiler_static='-Bstatic'
10187 lt_prog_compiler_wl='-Wl,'
10188 ;;
10189 *Intel*\ [CF]*Compiler*)
10190 lt_prog_compiler_wl='-Wl,'
10191 lt_prog_compiler_pic='-fPIC'
10192 lt_prog_compiler_static='-static'
10193 ;;
10194 *Portland\ Group*)
10195 lt_prog_compiler_wl='-Wl,'
10196 lt_prog_compiler_pic='-fpic'
10197 lt_prog_compiler_static='-Bstatic'
10198 ;;
10199 esac
10200 ;;
10201 esac
10202 ;;
10203
10204 newsos6)
10205 lt_prog_compiler_pic='-KPIC'
10206 lt_prog_compiler_static='-Bstatic'
10207 ;;
10208
10209 *nto* | *qnx*)
10210 # QNX uses GNU C++, but need to define -shared option too, otherwise
10211 # it will coredump.
10212 lt_prog_compiler_pic='-fPIC -shared'
10213 ;;
10214
10215 osf3* | osf4* | osf5*)
10216 lt_prog_compiler_wl='-Wl,'
10217 # All OSF/1 code is PIC.
10218 lt_prog_compiler_static='-non_shared'
10219 ;;
10220
10221 rdos*)
10222 lt_prog_compiler_static='-non_shared'
10223 ;;
10224
10225 solaris*)
10226 lt_prog_compiler_pic='-KPIC'
10227 lt_prog_compiler_static='-Bstatic'
10228 case $cc_basename in
10229 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10230 lt_prog_compiler_wl='-Qoption ld ';;
10231 *)
10232 lt_prog_compiler_wl='-Wl,';;
10233 esac
10234 ;;
10235
10236 sunos4*)
10237 lt_prog_compiler_wl='-Qoption ld '
10238 lt_prog_compiler_pic='-PIC'
10239 lt_prog_compiler_static='-Bstatic'
10240 ;;
10241
10242 sysv4 | sysv4.2uw2* | sysv4.3*)
10243 lt_prog_compiler_wl='-Wl,'
10244 lt_prog_compiler_pic='-KPIC'
10245 lt_prog_compiler_static='-Bstatic'
10246 ;;
10247
10248 sysv4*MP*)
10249 if test -d /usr/nec ;then
10250 lt_prog_compiler_pic='-Kconform_pic'
10251 lt_prog_compiler_static='-Bstatic'
10252 fi
10253 ;;
10254
10255 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10256 lt_prog_compiler_wl='-Wl,'
10257 lt_prog_compiler_pic='-KPIC'
10258 lt_prog_compiler_static='-Bstatic'
10259 ;;
10260
10261 unicos*)
10262 lt_prog_compiler_wl='-Wl,'
10263 lt_prog_compiler_can_build_shared=no
10264 ;;
10265
10266 uts4*)
10267 lt_prog_compiler_pic='-pic'
10268 lt_prog_compiler_static='-Bstatic'
10269 ;;
10270
10271 *)
10272 lt_prog_compiler_can_build_shared=no
10273 ;;
10274 esac
10275 fi
10276
10277case $host_os in
10278 # For platforms which do not support PIC, -DPIC is meaningless:
10279 *djgpp*)
10280 lt_prog_compiler_pic=
10281 ;;
10282 *)
10283 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10284 ;;
10285esac
10286
10287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10288$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10289if ${lt_cv_prog_compiler_pic+:} false; then :
10290 $as_echo_n "(cached) " >&6
10291else
10292 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10293fi
10294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10295$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10296lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10297
10298#
10299# Check to make sure the PIC flag actually works.
10300#
10301if test -n "$lt_prog_compiler_pic"; then
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10303$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10304if ${lt_cv_prog_compiler_pic_works+:} false; then :
10305 $as_echo_n "(cached) " >&6
10306else
10307 lt_cv_prog_compiler_pic_works=no
10308 ac_outfile=conftest.$ac_objext
10309 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10310 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10311 # Insert the option either (1) after the last *FLAGS variable, or
10312 # (2) before a word containing "conftest.", or (3) at the end.
10313 # Note that $ac_compile itself does not contain backslashes and begins
10314 # with a dollar sign (not a hyphen), so the echo should work correctly.
10315 # The option is referenced via a variable to avoid confusing sed.
10316 lt_compile=`echo "$ac_compile" | $SED \
10317 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10319 -e 's:$: $lt_compiler_flag:'`
10320 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10321 (eval "$lt_compile" 2>conftest.err)
10322 ac_status=$?
10323 cat conftest.err >&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 if (exit $ac_status) && test -s "$ac_outfile"; then
10326 # The compiler can only warn and ignore the option if not recognized
10327 # So say no if there are warnings other than the usual output.
10328 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10329 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10330 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10331 lt_cv_prog_compiler_pic_works=yes
10332 fi
10333 fi
10334 $RM conftest*
10335
10336fi
10337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10338$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10339
10340if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10341 case $lt_prog_compiler_pic in
10342 "" | " "*) ;;
10343 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10344 esac
10345else
10346 lt_prog_compiler_pic=
10347 lt_prog_compiler_can_build_shared=no
10348fi
10349
10350fi
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362#
10363# Check to make sure the static flag actually works.
10364#
10365wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10367$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10368if ${lt_cv_prog_compiler_static_works+:} false; then :
10369 $as_echo_n "(cached) " >&6
10370else
10371 lt_cv_prog_compiler_static_works=no
10372 save_LDFLAGS="$LDFLAGS"
10373 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10374 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10375 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10376 # The linker can only warn and ignore the option if not recognized
10377 # So say no if there are warnings
10378 if test -s conftest.err; then
10379 # Append any errors to the config.log.
10380 cat conftest.err 1>&5
10381 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10382 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10383 if diff conftest.exp conftest.er2 >/dev/null; then
10384 lt_cv_prog_compiler_static_works=yes
10385 fi
10386 else
10387 lt_cv_prog_compiler_static_works=yes
10388 fi
10389 fi
10390 $RM -r conftest*
10391 LDFLAGS="$save_LDFLAGS"
10392
10393fi
10394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10395$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10396
10397if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10398 :
10399else
10400 lt_prog_compiler_static=
10401fi
10402
10403
10404
10405
10406
10407
10408
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10410$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10411if ${lt_cv_prog_compiler_c_o+:} false; then :
10412 $as_echo_n "(cached) " >&6
10413else
10414 lt_cv_prog_compiler_c_o=no
10415 $RM -r conftest 2>/dev/null
10416 mkdir conftest
10417 cd conftest
10418 mkdir out
10419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10420
10421 lt_compiler_flag="-o out/conftest2.$ac_objext"
10422 # Insert the option either (1) after the last *FLAGS variable, or
10423 # (2) before a word containing "conftest.", or (3) at the end.
10424 # Note that $ac_compile itself does not contain backslashes and begins
10425 # with a dollar sign (not a hyphen), so the echo should work correctly.
10426 lt_compile=`echo "$ac_compile" | $SED \
10427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10429 -e 's:$: $lt_compiler_flag:'`
10430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10431 (eval "$lt_compile" 2>out/conftest.err)
10432 ac_status=$?
10433 cat out/conftest.err >&5
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10436 then
10437 # The compiler can only warn and ignore the option if not recognized
10438 # So say no if there are warnings
10439 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10440 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10441 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10442 lt_cv_prog_compiler_c_o=yes
10443 fi
10444 fi
10445 chmod u+w . 2>&5
10446 $RM conftest*
10447 # SGI C++ compiler will create directory out/ii_files/ for
10448 # template instantiation
10449 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10450 $RM out/* && rmdir out
10451 cd ..
10452 $RM -r conftest
10453 $RM conftest*
10454
10455fi
10456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10457$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10458
10459
10460
10461
10462
10463
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10465$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10466if ${lt_cv_prog_compiler_c_o+:} false; then :
10467 $as_echo_n "(cached) " >&6
10468else
10469 lt_cv_prog_compiler_c_o=no
10470 $RM -r conftest 2>/dev/null
10471 mkdir conftest
10472 cd conftest
10473 mkdir out
10474 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10475
10476 lt_compiler_flag="-o out/conftest2.$ac_objext"
10477 # Insert the option either (1) after the last *FLAGS variable, or
10478 # (2) before a word containing "conftest.", or (3) at the end.
10479 # Note that $ac_compile itself does not contain backslashes and begins
10480 # with a dollar sign (not a hyphen), so the echo should work correctly.
10481 lt_compile=`echo "$ac_compile" | $SED \
10482 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10483 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10484 -e 's:$: $lt_compiler_flag:'`
10485 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10486 (eval "$lt_compile" 2>out/conftest.err)
10487 ac_status=$?
10488 cat out/conftest.err >&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10491 then
10492 # The compiler can only warn and ignore the option if not recognized
10493 # So say no if there are warnings
10494 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10495 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10496 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10497 lt_cv_prog_compiler_c_o=yes
10498 fi
10499 fi
10500 chmod u+w . 2>&5
10501 $RM conftest*
10502 # SGI C++ compiler will create directory out/ii_files/ for
10503 # template instantiation
10504 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10505 $RM out/* && rmdir out
10506 cd ..
10507 $RM -r conftest
10508 $RM conftest*
10509
10510fi
10511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10512$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10513
10514
10515
10516
10517hard_links="nottested"
10518if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10519 # do not overwrite the value of need_locks provided by the user
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10521$as_echo_n "checking if we can lock with hard links... " >&6; }
10522 hard_links=yes
10523 $RM conftest*
10524 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10525 touch conftest.a
10526 ln conftest.a conftest.b 2>&5 || hard_links=no
10527 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10529$as_echo "$hard_links" >&6; }
10530 if test "$hard_links" = no; then
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10532$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10533 need_locks=warn
10534 fi
10535else
10536 need_locks=no
10537fi
10538
10539
10540
10541
10542
10543
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10545$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10546
10547 runpath_var=
10548 allow_undefined_flag=
10549 always_export_symbols=no
10550 archive_cmds=
10551 archive_expsym_cmds=
10552 compiler_needs_object=no
10553 enable_shared_with_static_runtimes=no
10554 export_dynamic_flag_spec=
10555 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10556 hardcode_automatic=no
10557 hardcode_direct=no
10558 hardcode_direct_absolute=no
10559 hardcode_libdir_flag_spec=
10560 hardcode_libdir_separator=
10561 hardcode_minus_L=no
10562 hardcode_shlibpath_var=unsupported
10563 inherit_rpath=no
10564 link_all_deplibs=unknown
10565 module_cmds=
10566 module_expsym_cmds=
10567 old_archive_from_new_cmds=
10568 old_archive_from_expsyms_cmds=
10569 thread_safe_flag_spec=
10570 whole_archive_flag_spec=
10571 # include_expsyms should be a list of space-separated symbols to be *always*
10572 # included in the symbol list
10573 include_expsyms=
10574 # exclude_expsyms can be an extended regexp of symbols to exclude
10575 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10576 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10577 # as well as any symbol that contains `d'.
10578 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10579 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10580 # platforms (ab)use it in PIC code, but their linkers get confused if
10581 # the symbol is explicitly referenced. Since portable code cannot
10582 # rely on this symbol name, it's probably fine to never include it in
10583 # preloaded symbol tables.
10584 # Exclude shared library initialization/finalization symbols.
10585 extract_expsyms_cmds=
10586
10587 case $host_os in
10588 cygwin* | mingw* | pw32* | cegcc*)
10589 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10590 # When not using gcc, we currently assume that we are using
10591 # Microsoft Visual C++.
10592 if test "$GCC" != yes; then
10593 with_gnu_ld=no
10594 fi
10595 ;;
10596 interix*)
10597 # we just hope/assume this is gcc and not c89 (= MSVC++)
10598 with_gnu_ld=yes
10599 ;;
10600 openbsd*)
10601 with_gnu_ld=no
10602 ;;
10603 esac
10604
10605 ld_shlibs=yes
10606
10607 # On some targets, GNU ld is compatible enough with the native linker
10608 # that we're better off using the native interface for both.
10609 lt_use_gnu_ld_interface=no
10610 if test "$with_gnu_ld" = yes; then
10611 case $host_os in
10612 aix*)
10613 # The AIX port of GNU ld has always aspired to compatibility
10614 # with the native linker. However, as the warning in the GNU ld
10615 # block says, versions before 2.19.5* couldn't really create working
10616 # shared libraries, regardless of the interface used.
10617 case `$LD -v 2>&1` in
10618 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10619 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10620 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10621 *)
10622 lt_use_gnu_ld_interface=yes
10623 ;;
10624 esac
10625 ;;
10626 *)
10627 lt_use_gnu_ld_interface=yes
10628 ;;
10629 esac
10630 fi
10631
10632 if test "$lt_use_gnu_ld_interface" = yes; then
10633 # If archive_cmds runs LD, not CC, wlarc should be empty
10634 wlarc='${wl}'
10635
10636 # Set some defaults for GNU ld with shared library support. These
10637 # are reset later if shared libraries are not supported. Putting them
10638 # here allows them to be overridden if necessary.
10639 runpath_var=LD_RUN_PATH
10640 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10641 export_dynamic_flag_spec='${wl}--export-dynamic'
10642 # ancient GNU ld didn't support --whole-archive et. al.
10643 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10644 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10645 else
10646 whole_archive_flag_spec=
10647 fi
10648 supports_anon_versioning=no
10649 case `$LD -v 2>&1` in
10650 *GNU\ gold*) supports_anon_versioning=yes ;;
10651 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10652 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10653 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10654 *\ 2.11.*) ;; # other 2.11 versions
10655 *) supports_anon_versioning=yes ;;
10656 esac
10657
10658 # See if GNU ld supports shared libraries.
10659 case $host_os in
10660 aix[3-9]*)
10661 # On AIX/PPC, the GNU linker is very broken
10662 if test "$host_cpu" != ia64; then
10663 ld_shlibs=no
10664 cat <<_LT_EOF 1>&2
10665
10666*** Warning: the GNU linker, at least up to release 2.19, is reported
10667*** to be unable to reliably create shared libraries on AIX.
10668*** Therefore, libtool is disabling shared libraries support. If you
10669*** really care for shared libraries, you may want to install binutils
10670*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10671*** You will then need to restart the configuration process.
10672
10673_LT_EOF
10674 fi
10675 ;;
10676
10677 amigaos*)
10678 case $host_cpu in
10679 powerpc)
10680 # see comment about AmigaOS4 .so support
10681 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10682 archive_expsym_cmds=''
10683 ;;
10684 m68k)
10685 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)'
10686 hardcode_libdir_flag_spec='-L$libdir'
10687 hardcode_minus_L=yes
10688 ;;
10689 esac
10690 ;;
10691
10692 beos*)
10693 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10694 allow_undefined_flag=unsupported
10695 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10696 # support --undefined. This deserves some investigation. FIXME
10697 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10698 else
10699 ld_shlibs=no
10700 fi
10701 ;;
10702
10703 cygwin* | mingw* | pw32* | cegcc*)
10704 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10705 # as there is no search path for DLLs.
10706 hardcode_libdir_flag_spec='-L$libdir'
10707 export_dynamic_flag_spec='${wl}--export-all-symbols'
10708 allow_undefined_flag=unsupported
10709 always_export_symbols=no
10710 enable_shared_with_static_runtimes=yes
10711 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10712 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10713
10714 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10715 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10716 # If the export-symbols file already is a .def file (1st line
10717 # is EXPORTS), use it as is; otherwise, prepend...
10718 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10719 cp $export_symbols $output_objdir/$soname.def;
10720 else
10721 echo EXPORTS > $output_objdir/$soname.def;
10722 cat $export_symbols >> $output_objdir/$soname.def;
10723 fi~
10724 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10725 else
10726 ld_shlibs=no
10727 fi
10728 ;;
10729
10730 haiku*)
10731 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10732 link_all_deplibs=yes
10733 ;;
10734
10735 interix[3-9]*)
10736 hardcode_direct=no
10737 hardcode_shlibpath_var=no
10738 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10739 export_dynamic_flag_spec='${wl}-E'
10740 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10741 # Instead, shared libraries are loaded at an image base (0x10000000 by
10742 # default) and relocated if they conflict, which is a slow very memory
10743 # consuming and fragmenting process. To avoid this, we pick a random,
10744 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10745 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10746 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10747 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'
10748 ;;
10749
10750 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10751 tmp_diet=no
10752 if test "$host_os" = linux-dietlibc; then
10753 case $cc_basename in
10754 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10755 esac
10756 fi
10757 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10758 && test "$tmp_diet" = no
10759 then
10760 tmp_addflag=' $pic_flag'
10761 tmp_sharedflag='-shared'
10762 case $cc_basename,$host_cpu in
10763 pgcc*) # Portland Group C compiler
10764 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'
10765 tmp_addflag=' $pic_flag'
10766 ;;
10767 pgf77* | pgf90* | pgf95* | pgfortran*)
10768 # Portland Group f77 and f90 compilers
10769 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'
10770 tmp_addflag=' $pic_flag -Mnomain' ;;
10771 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10772 tmp_addflag=' -i_dynamic' ;;
10773 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10774 tmp_addflag=' -i_dynamic -nofor_main' ;;
10775 ifc* | ifort*) # Intel Fortran compiler
10776 tmp_addflag=' -nofor_main' ;;
10777 lf95*) # Lahey Fortran 8.1
10778 whole_archive_flag_spec=
10779 tmp_sharedflag='--shared' ;;
10780 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10781 tmp_sharedflag='-qmkshrobj'
10782 tmp_addflag= ;;
10783 nvcc*) # Cuda Compiler Driver 2.2
10784 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'
10785 compiler_needs_object=yes
10786 ;;
10787 esac
10788 case `$CC -V 2>&1 | sed 5q` in
10789 *Sun\ C*) # Sun C 5.9
10790 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'
10791 compiler_needs_object=yes
10792 tmp_sharedflag='-G' ;;
10793 *Sun\ F*) # Sun Fortran 8.3
10794 tmp_sharedflag='-G' ;;
10795 esac
10796 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10797
10798 if test "x$supports_anon_versioning" = xyes; then
10799 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10800 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10801 echo "local: *; };" >> $output_objdir/$libname.ver~
10802 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10803 fi
10804
10805 case $cc_basename in
10806 xlf* | bgf* | bgxlf* | mpixlf*)
10807 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10808 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10810 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10811 if test "x$supports_anon_versioning" = xyes; then
10812 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10813 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10814 echo "local: *; };" >> $output_objdir/$libname.ver~
10815 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10816 fi
10817 ;;
10818 esac
10819 else
10820 ld_shlibs=no
10821 fi
10822 ;;
10823
10824 netbsd*)
10825 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10826 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10827 wlarc=
10828 else
10829 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10830 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10831 fi
10832 ;;
10833
10834 solaris*)
10835 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10836 ld_shlibs=no
10837 cat <<_LT_EOF 1>&2
10838
10839*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10840*** create shared libraries on Solaris systems. Therefore, libtool
10841*** is disabling shared libraries support. We urge you to upgrade GNU
10842*** binutils to release 2.9.1 or newer. Another option is to modify
10843*** your PATH or compiler configuration so that the native linker is
10844*** used, and then restart.
10845
10846_LT_EOF
10847 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10848 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10849 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10850 else
10851 ld_shlibs=no
10852 fi
10853 ;;
10854
10855 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10856 case `$LD -v 2>&1` in
10857 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10858 ld_shlibs=no
10859 cat <<_LT_EOF 1>&2
10860
10861*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10862*** reliably create shared libraries on SCO systems. Therefore, libtool
10863*** is disabling shared libraries support. We urge you to upgrade GNU
10864*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10865*** your PATH or compiler configuration so that the native linker is
10866*** used, and then restart.
10867
10868_LT_EOF
10869 ;;
10870 *)
10871 # For security reasons, it is highly recommended that you always
10872 # use absolute paths for naming shared libraries, and exclude the
10873 # DT_RUNPATH tag from executables and libraries. But doing so
10874 # requires that you compile everything twice, which is a pain.
10875 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10876 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10878 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10879 else
10880 ld_shlibs=no
10881 fi
10882 ;;
10883 esac
10884 ;;
10885
10886 sunos4*)
10887 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10888 wlarc=
10889 hardcode_direct=yes
10890 hardcode_shlibpath_var=no
10891 ;;
10892
10893 *)
10894 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10895 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10896 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10897 else
10898 ld_shlibs=no
10899 fi
10900 ;;
10901 esac
10902
10903 if test "$ld_shlibs" = no; then
10904 runpath_var=
10905 hardcode_libdir_flag_spec=
10906 export_dynamic_flag_spec=
10907 whole_archive_flag_spec=
10908 fi
10909 else
10910 # PORTME fill in a description of your system's linker (not GNU ld)
10911 case $host_os in
10912 aix3*)
10913 allow_undefined_flag=unsupported
10914 always_export_symbols=yes
10915 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'
10916 # Note: this linker hardcodes the directories in LIBPATH if there
10917 # are no directories specified by -L.
10918 hardcode_minus_L=yes
10919 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10920 # Neither direct hardcoding nor static linking is supported with a
10921 # broken collect2.
10922 hardcode_direct=unsupported
10923 fi
10924 ;;
10925
10926 aix[4-9]*)
10927 if test "$host_cpu" = ia64; then
10928 # On IA64, the linker does run time linking by default, so we don't
10929 # have to do anything special.
10930 aix_use_runtimelinking=no
10931 exp_sym_flag='-Bexport'
10932 no_entry_flag=""
10933 else
10934 # If we're using GNU nm, then we don't want the "-C" option.
10935 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10936 # Also, AIX nm treats weak defined symbols like other global
10937 # defined symbols, whereas GNU nm marks them as "W".
10938 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10939 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'
10940 else
10941 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'
10942 fi
10943 aix_use_runtimelinking=no
10944
10945 # Test if we are trying to use run time linking or normal
10946 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10947 # need to do runtime linking.
10948 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10949 for ld_flag in $LDFLAGS; do
10950 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10951 aix_use_runtimelinking=yes
10952 break
10953 fi
10954 done
10955 ;;
10956 esac
10957
10958 exp_sym_flag='-bexport'
10959 no_entry_flag='-bnoentry'
10960 fi
10961
10962 # When large executables or shared objects are built, AIX ld can
10963 # have problems creating the table of contents. If linking a library
10964 # or program results in "error TOC overflow" add -mminimal-toc to
10965 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10966 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10967
10968 archive_cmds=''
10969 hardcode_direct=yes
10970 hardcode_direct_absolute=yes
10971 hardcode_libdir_separator=':'
10972 link_all_deplibs=yes
10973 file_list_spec='${wl}-f,'
10974
10975 if test "$GCC" = yes; then
10976 case $host_os in aix4.[012]|aix4.[012].*)
10977 # We only want to do this on AIX 4.2 and lower, the check
10978 # below for broken collect2 doesn't work under 4.3+
10979 collect2name=`${CC} -print-prog-name=collect2`
10980 if test -f "$collect2name" &&
10981 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10982 then
10983 # We have reworked collect2
10984 :
10985 else
10986 # We have old collect2
10987 hardcode_direct=unsupported
10988 # It fails to find uninstalled libraries when the uninstalled
10989 # path is not listed in the libpath. Setting hardcode_minus_L
10990 # to unsupported forces relinking
10991 hardcode_minus_L=yes
10992 hardcode_libdir_flag_spec='-L$libdir'
10993 hardcode_libdir_separator=
10994 fi
10995 ;;
10996 esac
10997 shared_flag='-shared'
10998 if test "$aix_use_runtimelinking" = yes; then
10999 shared_flag="$shared_flag "'${wl}-G'
11000 fi
11001 else
11002 # not using gcc
11003 if test "$host_cpu" = ia64; then
11004 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11005 # chokes on -Wl,-G. The following line is correct:
11006 shared_flag='-G'
11007 else
11008 if test "$aix_use_runtimelinking" = yes; then
11009 shared_flag='${wl}-G'
11010 else
11011 shared_flag='${wl}-bM:SRE'
11012 fi
11013 fi
11014 fi
11015
11016 export_dynamic_flag_spec='${wl}-bexpall'
11017 # It seems that -bexpall does not export symbols beginning with
11018 # underscore (_), so it is better to generate a list of symbols to export.
11019 always_export_symbols=yes
11020 if test "$aix_use_runtimelinking" = yes; then
11021 # Warning - without using the other runtime loading flags (-brtl),
11022 # -berok will link without error, but may produce a broken library.
11023 allow_undefined_flag='-berok'
11024 # Determine the default libpath from the value encoded in an
11025 # empty executable.
11026 if test "${lt_cv_aix_libpath+set}" = set; then
11027 aix_libpath=$lt_cv_aix_libpath
11028else
11029 if ${lt_cv_aix_libpath_+:} false; then :
11030 $as_echo_n "(cached) " >&6
11031else
11032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033/* end confdefs.h. */
11034
11035int
11036main ()
11037{
11038
11039 ;
11040 return 0;
11041}
11042_ACEOF
11043if ac_fn_c_try_link "$LINENO"; then :
11044
11045 lt_aix_libpath_sed='
11046 /Import File Strings/,/^$/ {
11047 /^0/ {
11048 s/^0 *\([^ ]*\) *$/\1/
11049 p
11050 }
11051 }'
11052 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11053 # Check for a 64-bit object if we didn't find anything.
11054 if test -z "$lt_cv_aix_libpath_"; then
11055 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11056 fi
11057fi
11058rm -f core conftest.err conftest.$ac_objext \
11059 conftest$ac_exeext conftest.$ac_ext
11060 if test -z "$lt_cv_aix_libpath_"; then
11061 lt_cv_aix_libpath_="/usr/lib:/lib"
11062 fi
11063
11064fi
11065
11066 aix_libpath=$lt_cv_aix_libpath_
11067fi
11068
11069 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11070 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"
11071 else
11072 if test "$host_cpu" = ia64; then
11073 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11074 allow_undefined_flag="-z nodefs"
11075 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"
11076 else
11077 # Determine the default libpath from the value encoded in an
11078 # empty executable.
11079 if test "${lt_cv_aix_libpath+set}" = set; then
11080 aix_libpath=$lt_cv_aix_libpath
11081else
11082 if ${lt_cv_aix_libpath_+:} false; then :
11083 $as_echo_n "(cached) " >&6
11084else
11085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11086/* end confdefs.h. */
11087
11088int
11089main ()
11090{
11091
11092 ;
11093 return 0;
11094}
11095_ACEOF
11096if ac_fn_c_try_link "$LINENO"; then :
11097
11098 lt_aix_libpath_sed='
11099 /Import File Strings/,/^$/ {
11100 /^0/ {
11101 s/^0 *\([^ ]*\) *$/\1/
11102 p
11103 }
11104 }'
11105 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11106 # Check for a 64-bit object if we didn't find anything.
11107 if test -z "$lt_cv_aix_libpath_"; then
11108 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11109 fi
11110fi
11111rm -f core conftest.err conftest.$ac_objext \
11112 conftest$ac_exeext conftest.$ac_ext
11113 if test -z "$lt_cv_aix_libpath_"; then
11114 lt_cv_aix_libpath_="/usr/lib:/lib"
11115 fi
11116
11117fi
11118
11119 aix_libpath=$lt_cv_aix_libpath_
11120fi
11121
11122 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11123 # Warning - without using the other run time loading flags,
11124 # -berok will link without error, but may produce a broken library.
11125 no_undefined_flag=' ${wl}-bernotok'
11126 allow_undefined_flag=' ${wl}-berok'
11127 if test "$with_gnu_ld" = yes; then
11128 # We only use this code for GNU lds that support --whole-archive.
11129 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11130 else
11131 # Exported symbols can be pulled into shared objects from archives
11132 whole_archive_flag_spec='$convenience'
11133 fi
11134 archive_cmds_need_lc=yes
11135 # This is similar to how AIX traditionally builds its shared libraries.
11136 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'
11137 fi
11138 fi
11139 ;;
11140
11141 amigaos*)
11142 case $host_cpu in
11143 powerpc)
11144 # see comment about AmigaOS4 .so support
11145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11146 archive_expsym_cmds=''
11147 ;;
11148 m68k)
11149 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)'
11150 hardcode_libdir_flag_spec='-L$libdir'
11151 hardcode_minus_L=yes
11152 ;;
11153 esac
11154 ;;
11155
11156 bsdi[45]*)
11157 export_dynamic_flag_spec=-rdynamic
11158 ;;
11159
11160 cygwin* | mingw* | pw32* | cegcc*)
11161 # When not using gcc, we currently assume that we are using
11162 # Microsoft Visual C++.
11163 # hardcode_libdir_flag_spec is actually meaningless, as there is
11164 # no search path for DLLs.
11165 case $cc_basename in
11166 cl*)
11167 # Native MSVC
11168 hardcode_libdir_flag_spec=' '
11169 allow_undefined_flag=unsupported
11170 always_export_symbols=yes
11171 file_list_spec='@'
11172 # Tell ltmain to make .lib files, not .a files.
11173 libext=lib
11174 # Tell ltmain to make .dll files, not .so files.
11175 shrext_cmds=".dll"
11176 # FIXME: Setting linknames here is a bad hack.
11177 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11178 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11179 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11180 else
11181 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11182 fi~
11183 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11184 linknames='
11185 # The linker will not automatically build a static lib if we build a DLL.
11186 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11187 enable_shared_with_static_runtimes=yes
11188 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11189 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11190 # Don't use ranlib
11191 old_postinstall_cmds='chmod 644 $oldlib'
11192 postlink_cmds='lt_outputfile="@OUTPUT@"~
11193 lt_tool_outputfile="@TOOL_OUTPUT@"~
11194 case $lt_outputfile in
11195 *.exe|*.EXE) ;;
11196 *)
11197 lt_outputfile="$lt_outputfile.exe"
11198 lt_tool_outputfile="$lt_tool_outputfile.exe"
11199 ;;
11200 esac~
11201 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11202 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11203 $RM "$lt_outputfile.manifest";
11204 fi'
11205 ;;
11206 *)
11207 # Assume MSVC wrapper
11208 hardcode_libdir_flag_spec=' '
11209 allow_undefined_flag=unsupported
11210 # Tell ltmain to make .lib files, not .a files.
11211 libext=lib
11212 # Tell ltmain to make .dll files, not .so files.
11213 shrext_cmds=".dll"
11214 # FIXME: Setting linknames here is a bad hack.
11215 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11216 # The linker will automatically build a .lib file if we build a DLL.
11217 old_archive_from_new_cmds='true'
11218 # FIXME: Should let the user specify the lib program.
11219 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11220 enable_shared_with_static_runtimes=yes
11221 ;;
11222 esac
11223 ;;
11224
11225 darwin* | rhapsody*)
11226
11227
11228 archive_cmds_need_lc=no
11229 hardcode_direct=no
11230 hardcode_automatic=yes
11231 hardcode_shlibpath_var=unsupported
11232 if test "$lt_cv_ld_force_load" = "yes"; then
11233 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\"`'
11234
11235 else
11236 whole_archive_flag_spec=''
11237 fi
11238 link_all_deplibs=yes
11239 allow_undefined_flag="$_lt_dar_allow_undefined"
11240 case $cc_basename in
11241 ifort*) _lt_dar_can_shared=yes ;;
11242 *) _lt_dar_can_shared=$GCC ;;
11243 esac
11244 if test "$_lt_dar_can_shared" = "yes"; then
11245 output_verbose_link_cmd=func_echo_all
11246 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11247 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11248 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}"
11249 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}"
11250
11251 else
11252 ld_shlibs=no
11253 fi
11254
11255 ;;
11256
11257 dgux*)
11258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11259 hardcode_libdir_flag_spec='-L$libdir'
11260 hardcode_shlibpath_var=no
11261 ;;
11262
11263 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11264 # support. Future versions do this automatically, but an explicit c++rt0.o
11265 # does not break anything, and helps significantly (at the cost of a little
11266 # extra space).
11267 freebsd2.2*)
11268 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11269 hardcode_libdir_flag_spec='-R$libdir'
11270 hardcode_direct=yes
11271 hardcode_shlibpath_var=no
11272 ;;
11273
11274 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11275 freebsd2.*)
11276 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11277 hardcode_direct=yes
11278 hardcode_minus_L=yes
11279 hardcode_shlibpath_var=no
11280 ;;
11281
11282 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11283 freebsd* | dragonfly*)
11284 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11285 hardcode_libdir_flag_spec='-R$libdir'
11286 hardcode_direct=yes
11287 hardcode_shlibpath_var=no
11288 ;;
11289
11290 hpux9*)
11291 if test "$GCC" = yes; then
11292 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11293 else
11294 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'
11295 fi
11296 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11297 hardcode_libdir_separator=:
11298 hardcode_direct=yes
11299
11300 # hardcode_minus_L: Not really in the search PATH,
11301 # but as the default location of the library.
11302 hardcode_minus_L=yes
11303 export_dynamic_flag_spec='${wl}-E'
11304 ;;
11305
11306 hpux10*)
11307 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11308 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11309 else
11310 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11311 fi
11312 if test "$with_gnu_ld" = no; then
11313 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11314 hardcode_libdir_separator=:
11315 hardcode_direct=yes
11316 hardcode_direct_absolute=yes
11317 export_dynamic_flag_spec='${wl}-E'
11318 # hardcode_minus_L: Not really in the search PATH,
11319 # but as the default location of the library.
11320 hardcode_minus_L=yes
11321 fi
11322 ;;
11323
11324 hpux11*)
11325 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11326 case $host_cpu in
11327 hppa*64*)
11328 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11329 ;;
11330 ia64*)
11331 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11332 ;;
11333 *)
11334 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11335 ;;
11336 esac
11337 else
11338 case $host_cpu in
11339 hppa*64*)
11340 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11341 ;;
11342 ia64*)
11343 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11344 ;;
11345 *)
11346
11347 # Older versions of the 11.00 compiler do not understand -b yet
11348 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11350$as_echo_n "checking if $CC understands -b... " >&6; }
11351if ${lt_cv_prog_compiler__b+:} false; then :
11352 $as_echo_n "(cached) " >&6
11353else
11354 lt_cv_prog_compiler__b=no
11355 save_LDFLAGS="$LDFLAGS"
11356 LDFLAGS="$LDFLAGS -b"
11357 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11358 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11359 # The linker can only warn and ignore the option if not recognized
11360 # So say no if there are warnings
11361 if test -s conftest.err; then
11362 # Append any errors to the config.log.
11363 cat conftest.err 1>&5
11364 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11365 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11366 if diff conftest.exp conftest.er2 >/dev/null; then
11367 lt_cv_prog_compiler__b=yes
11368 fi
11369 else
11370 lt_cv_prog_compiler__b=yes
11371 fi
11372 fi
11373 $RM -r conftest*
11374 LDFLAGS="$save_LDFLAGS"
11375
11376fi
11377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11378$as_echo "$lt_cv_prog_compiler__b" >&6; }
11379
11380if test x"$lt_cv_prog_compiler__b" = xyes; then
11381 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11382else
11383 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11384fi
11385
11386 ;;
11387 esac
11388 fi
11389 if test "$with_gnu_ld" = no; then
11390 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11391 hardcode_libdir_separator=:
11392
11393 case $host_cpu in
11394 hppa*64*|ia64*)
11395 hardcode_direct=no
11396 hardcode_shlibpath_var=no
11397 ;;
11398 *)
11399 hardcode_direct=yes
11400 hardcode_direct_absolute=yes
11401 export_dynamic_flag_spec='${wl}-E'
11402
11403 # hardcode_minus_L: Not really in the search PATH,
11404 # but as the default location of the library.
11405 hardcode_minus_L=yes
11406 ;;
11407 esac
11408 fi
11409 ;;
11410
11411 irix5* | irix6* | nonstopux*)
11412 if test "$GCC" = yes; then
11413 archive_cmds='$CC -shared $pic_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'
11414 # Try to use the -exported_symbol ld option, if it does not
11415 # work, assume that -exports_file does not work either and
11416 # implicitly export all symbols.
11417 # This should be the same for all languages, so no per-tag cache variable.
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11419$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11420if ${lt_cv_irix_exported_symbol+:} false; then :
11421 $as_echo_n "(cached) " >&6
11422else
11423 save_LDFLAGS="$LDFLAGS"
11424 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426/* end confdefs.h. */
11427int foo (void) { return 0; }
11428_ACEOF
11429if ac_fn_c_try_link "$LINENO"; then :
11430 lt_cv_irix_exported_symbol=yes
11431else
11432 lt_cv_irix_exported_symbol=no
11433fi
11434rm -f core conftest.err conftest.$ac_objext \
11435 conftest$ac_exeext conftest.$ac_ext
11436 LDFLAGS="$save_LDFLAGS"
11437fi
11438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11439$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11440 if test "$lt_cv_irix_exported_symbol" = yes; then
11441 archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
11442 fi
11443 else
11444 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'
11445 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'
11446 fi
11447 archive_cmds_need_lc='no'
11448 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11449 hardcode_libdir_separator=:
11450 inherit_rpath=yes
11451 link_all_deplibs=yes
11452 ;;
11453
11454 netbsd*)
11455 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11456 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11457 else
11458 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11459 fi
11460 hardcode_libdir_flag_spec='-R$libdir'
11461 hardcode_direct=yes
11462 hardcode_shlibpath_var=no
11463 ;;
11464
11465 newsos6)
11466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11467 hardcode_direct=yes
11468 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11469 hardcode_libdir_separator=:
11470 hardcode_shlibpath_var=no
11471 ;;
11472
11473 *nto* | *qnx*)
11474 ;;
11475
11476 openbsd*)
11477 if test -f /usr/libexec/ld.so; then
11478 hardcode_direct=yes
11479 hardcode_shlibpath_var=no
11480 hardcode_direct_absolute=yes
11481 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11482 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11483 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11484 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11485 export_dynamic_flag_spec='${wl}-E'
11486 else
11487 case $host_os in
11488 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11489 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11490 hardcode_libdir_flag_spec='-R$libdir'
11491 ;;
11492 *)
11493 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11494 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11495 ;;
11496 esac
11497 fi
11498 else
11499 ld_shlibs=no
11500 fi
11501 ;;
11502
11503 os2*)
11504 hardcode_libdir_flag_spec='-L$libdir'
11505 hardcode_minus_L=yes
11506 allow_undefined_flag=unsupported
11507 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'
11508 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11509 ;;
11510
11511 osf3*)
11512 if test "$GCC" = yes; then
11513 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11514 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'
11515 else
11516 allow_undefined_flag=' -expect_unresolved \*'
11517 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'
11518 fi
11519 archive_cmds_need_lc='no'
11520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11521 hardcode_libdir_separator=:
11522 ;;
11523
11524 osf4* | osf5*) # as osf3* with the addition of -msym flag
11525 if test "$GCC" = yes; then
11526 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11527 archive_cmds='$CC -shared${allow_undefined_flag} $pic_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'
11528 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11529 else
11530 allow_undefined_flag=' -expect_unresolved \*'
11531 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'
11532 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~
11533 $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'
11534
11535 # Both c and cxx compiler support -rpath directly
11536 hardcode_libdir_flag_spec='-rpath $libdir'
11537 fi
11538 archive_cmds_need_lc='no'
11539 hardcode_libdir_separator=:
11540 ;;
11541
11542 solaris*)
11543 no_undefined_flag=' -z defs'
11544 if test "$GCC" = yes; then
11545 wlarc='${wl}'
11546 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11547 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11548 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11549 else
11550 case `$CC -V 2>&1` in
11551 *"Compilers 5.0"*)
11552 wlarc=''
11553 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11554 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11555 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11556 ;;
11557 *)
11558 wlarc='${wl}'
11559 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11560 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11561 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11562 ;;
11563 esac
11564 fi
11565 hardcode_libdir_flag_spec='-R$libdir'
11566 hardcode_shlibpath_var=no
11567 case $host_os in
11568 solaris2.[0-5] | solaris2.[0-5].*) ;;
11569 *)
11570 # The compiler driver will combine and reorder linker options,
11571 # but understands `-z linker_flag'. GCC discards it without `$wl',
11572 # but is careful enough not to reorder.
11573 # Supported since Solaris 2.6 (maybe 2.5.1?)
11574 if test "$GCC" = yes; then
11575 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11576 else
11577 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11578 fi
11579 ;;
11580 esac
11581 link_all_deplibs=yes
11582 ;;
11583
11584 sunos4*)
11585 if test "x$host_vendor" = xsequent; then
11586 # Use $CC to link under sequent, because it throws in some extra .o
11587 # files that make .init and .fini sections work.
11588 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11589 else
11590 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11591 fi
11592 hardcode_libdir_flag_spec='-L$libdir'
11593 hardcode_direct=yes
11594 hardcode_minus_L=yes
11595 hardcode_shlibpath_var=no
11596 ;;
11597
11598 sysv4)
11599 case $host_vendor in
11600 sni)
11601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11602 hardcode_direct=yes # is this really true???
11603 ;;
11604 siemens)
11605 ## LD is ld it makes a PLAMLIB
11606 ## CC just makes a GrossModule.
11607 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11608 reload_cmds='$CC -r -o $output$reload_objs'
11609 hardcode_direct=no
11610 ;;
11611 motorola)
11612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11613 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11614 ;;
11615 esac
11616 runpath_var='LD_RUN_PATH'
11617 hardcode_shlibpath_var=no
11618 ;;
11619
11620 sysv4.3*)
11621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11622 hardcode_shlibpath_var=no
11623 export_dynamic_flag_spec='-Bexport'
11624 ;;
11625
11626 sysv4*MP*)
11627 if test -d /usr/nec; then
11628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11629 hardcode_shlibpath_var=no
11630 runpath_var=LD_RUN_PATH
11631 hardcode_runpath_var=yes
11632 ld_shlibs=yes
11633 fi
11634 ;;
11635
11636 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11637 no_undefined_flag='${wl}-z,text'
11638 archive_cmds_need_lc=no
11639 hardcode_shlibpath_var=no
11640 runpath_var='LD_RUN_PATH'
11641
11642 if test "$GCC" = yes; then
11643 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11644 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11645 else
11646 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11647 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11648 fi
11649 ;;
11650
11651 sysv5* | sco3.2v5* | sco5v6*)
11652 # Note: We can NOT use -z defs as we might desire, because we do not
11653 # link with -lc, and that would cause any symbols used from libc to
11654 # always be unresolved, which means just about no library would
11655 # ever link correctly. If we're not using GNU ld we use -z text
11656 # though, which does catch some bad symbols but isn't as heavy-handed
11657 # as -z defs.
11658 no_undefined_flag='${wl}-z,text'
11659 allow_undefined_flag='${wl}-z,nodefs'
11660 archive_cmds_need_lc=no
11661 hardcode_shlibpath_var=no
11662 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11663 hardcode_libdir_separator=':'
11664 link_all_deplibs=yes
11665 export_dynamic_flag_spec='${wl}-Bexport'
11666 runpath_var='LD_RUN_PATH'
11667
11668 if test "$GCC" = yes; then
11669 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11670 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11671 else
11672 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11673 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11674 fi
11675 ;;
11676
11677 uts4*)
11678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11679 hardcode_libdir_flag_spec='-L$libdir'
11680 hardcode_shlibpath_var=no
11681 ;;
11682
11683 *)
11684 ld_shlibs=no
11685 ;;
11686 esac
11687
11688 if test x$host_vendor = xsni; then
11689 case $host in
11690 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11691 export_dynamic_flag_spec='${wl}-Blargedynsym'
11692 ;;
11693 esac
11694 fi
11695 fi
11696
11697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11698$as_echo "$ld_shlibs" >&6; }
11699test "$ld_shlibs" = no && can_build_shared=no
11700
11701with_gnu_ld=$with_gnu_ld
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717#
11718# Do we need to explicitly link libc?
11719#
11720case "x$archive_cmds_need_lc" in
11721x|xyes)
11722 # Assume -lc should be added
11723 archive_cmds_need_lc=yes
11724
11725 if test "$enable_shared" = yes && test "$GCC" = yes; then
11726 case $archive_cmds in
11727 *'~'*)
11728 # FIXME: we may have to deal with multi-command sequences.
11729 ;;
11730 '$CC '*)
11731 # Test whether the compiler implicitly links with -lc since on some
11732 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11733 # to ld, don't add -lc before -lgcc.
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11735$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11736if ${lt_cv_archive_cmds_need_lc+:} false; then :
11737 $as_echo_n "(cached) " >&6
11738else
11739 $RM conftest*
11740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11741
11742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11743 (eval $ac_compile) 2>&5
11744 ac_status=$?
11745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11746 test $ac_status = 0; } 2>conftest.err; then
11747 soname=conftest
11748 lib=conftest
11749 libobjs=conftest.$ac_objext
11750 deplibs=
11751 wl=$lt_prog_compiler_wl
11752 pic_flag=$lt_prog_compiler_pic
11753 compiler_flags=-v
11754 linker_flags=-v
11755 verstring=
11756 output_objdir=.
11757 libname=conftest
11758 lt_save_allow_undefined_flag=$allow_undefined_flag
11759 allow_undefined_flag=
11760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11761 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11762 ac_status=$?
11763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11764 test $ac_status = 0; }
11765 then
11766 lt_cv_archive_cmds_need_lc=no
11767 else
11768 lt_cv_archive_cmds_need_lc=yes
11769 fi
11770 allow_undefined_flag=$lt_save_allow_undefined_flag
11771 else
11772 cat conftest.err 1>&5
11773 fi
11774 $RM conftest*
11775
11776fi
11777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11778$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11779 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11780 ;;
11781 esac
11782 fi
11783 ;;
11784esac
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11938$as_echo_n "checking dynamic linker characteristics... " >&6; }
11939
11940if test "$GCC" = yes; then
11941 case $host_os in
11942 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11943 *) lt_awk_arg="/^libraries:/" ;;
11944 esac
11945 case $host_os in
11946 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11947 *) lt_sed_strip_eq="s,=/,/,g" ;;
11948 esac
11949 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11950 case $lt_search_path_spec in
11951 *\;*)
11952 # if the path contains ";" then we assume it to be the separator
11953 # otherwise default to the standard path separator (i.e. ":") - it is
11954 # assumed that no part of a normal pathname contains ";" but that should
11955 # okay in the real world where ";" in dirpaths is itself problematic.
11956 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11957 ;;
11958 *)
11959 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11960 ;;
11961 esac
11962 # Ok, now we have the path, separated by spaces, we can step through it
11963 # and add multilib dir if necessary.
11964 lt_tmp_lt_search_path_spec=
11965 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11966 for lt_sys_path in $lt_search_path_spec; do
11967 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11968 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11969 else
11970 test -d "$lt_sys_path" && \
11971 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11972 fi
11973 done
11974 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11975BEGIN {RS=" "; FS="/|\n";} {
11976 lt_foo="";
11977 lt_count=0;
11978 for (lt_i = NF; lt_i > 0; lt_i--) {
11979 if ($lt_i != "" && $lt_i != ".") {
11980 if ($lt_i == "..") {
11981 lt_count++;
11982 } else {
11983 if (lt_count == 0) {
11984 lt_foo="/" $lt_i lt_foo;
11985 } else {
11986 lt_count--;
11987 }
11988 }
11989 }
11990 }
11991 if (lt_foo != "") { lt_freq[lt_foo]++; }
11992 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11993}'`
11994 # AWK program above erroneously prepends '/' to C:/dos/paths
11995 # for these hosts.
11996 case $host_os in
11997 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11998 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11999 esac
12000 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12001else
12002 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12003fi
12004library_names_spec=
12005libname_spec='lib$name'
12006soname_spec=
12007shrext_cmds=".so"
12008postinstall_cmds=
12009postuninstall_cmds=
12010finish_cmds=
12011finish_eval=
12012shlibpath_var=
12013shlibpath_overrides_runpath=unknown
12014version_type=none
12015dynamic_linker="$host_os ld.so"
12016sys_lib_dlsearch_path_spec="/lib /usr/lib"
12017need_lib_prefix=unknown
12018hardcode_into_libs=no
12019
12020# when you set need_version to no, make sure it does not cause -set_version
12021# flags to be left without arguments
12022need_version=unknown
12023
12024case $host_os in
12025aix3*)
12026 version_type=linux # correct to gnu/linux during the next big refactor
12027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12028 shlibpath_var=LIBPATH
12029
12030 # AIX 3 has no versioning support, so we append a major version to the name.
12031 soname_spec='${libname}${release}${shared_ext}$major'
12032 ;;
12033
12034aix[4-9]*)
12035 version_type=linux # correct to gnu/linux during the next big refactor
12036 need_lib_prefix=no
12037 need_version=no
12038 hardcode_into_libs=yes
12039 if test "$host_cpu" = ia64; then
12040 # AIX 5 supports IA64
12041 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12042 shlibpath_var=LD_LIBRARY_PATH
12043 else
12044 # With GCC up to 2.95.x, collect2 would create an import file
12045 # for dependence libraries. The import file would start with
12046 # the line `#! .'. This would cause the generated library to
12047 # depend on `.', always an invalid library. This was fixed in
12048 # development snapshots of GCC prior to 3.0.
12049 case $host_os in
12050 aix4 | aix4.[01] | aix4.[01].*)
12051 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12052 echo ' yes '
12053 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12054 :
12055 else
12056 can_build_shared=no
12057 fi
12058 ;;
12059 esac
12060 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12061 # soname into executable. Probably we can add versioning support to
12062 # collect2, so additional links can be useful in future.
12063 if test "$aix_use_runtimelinking" = yes; then
12064 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12065 # instead of lib<name>.a to let people know that these are not
12066 # typical AIX shared libraries.
12067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12068 else
12069 # We preserve .a as extension for shared libraries through AIX4.2
12070 # and later when we are not doing run time linking.
12071 library_names_spec='${libname}${release}.a $libname.a'
12072 soname_spec='${libname}${release}${shared_ext}$major'
12073 fi
12074 shlibpath_var=LIBPATH
12075 fi
12076 ;;
12077
12078amigaos*)
12079 case $host_cpu in
12080 powerpc)
12081 # Since July 2007 AmigaOS4 officially supports .so libraries.
12082 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12084 ;;
12085 m68k)
12086 library_names_spec='$libname.ixlibrary $libname.a'
12087 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12088 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'
12089 ;;
12090 esac
12091 ;;
12092
12093beos*)
12094 library_names_spec='${libname}${shared_ext}'
12095 dynamic_linker="$host_os ld.so"
12096 shlibpath_var=LIBRARY_PATH
12097 ;;
12098
12099bsdi[45]*)
12100 version_type=linux # correct to gnu/linux during the next big refactor
12101 need_version=no
12102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12103 soname_spec='${libname}${release}${shared_ext}$major'
12104 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12105 shlibpath_var=LD_LIBRARY_PATH
12106 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12107 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12108 # the default ld.so.conf also contains /usr/contrib/lib and
12109 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12110 # libtool to hard-code these into programs
12111 ;;
12112
12113cygwin* | mingw* | pw32* | cegcc*)
12114 version_type=windows
12115 shrext_cmds=".dll"
12116 need_version=no
12117 need_lib_prefix=no
12118
12119 case $GCC,$cc_basename in
12120 yes,*)
12121 # gcc
12122 library_names_spec='$libname.dll.a'
12123 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12124 postinstall_cmds='base_file=`basename \${file}`~
12125 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12126 dldir=$destdir/`dirname \$dlpath`~
12127 test -d \$dldir || mkdir -p \$dldir~
12128 $install_prog $dir/$dlname \$dldir/$dlname~
12129 chmod a+x \$dldir/$dlname~
12130 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12131 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12132 fi'
12133 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12134 dlpath=$dir/\$dldll~
12135 $RM \$dlpath'
12136 shlibpath_overrides_runpath=yes
12137
12138 case $host_os in
12139 cygwin*)
12140 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12141 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12142
12143 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12144 ;;
12145 mingw* | cegcc*)
12146 # MinGW DLLs use traditional 'lib' prefix
12147 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12148 ;;
12149 pw32*)
12150 # pw32 DLLs use 'pw' prefix rather than 'lib'
12151 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12152 ;;
12153 esac
12154 dynamic_linker='Win32 ld.exe'
12155 ;;
12156
12157 *,cl*)
12158 # Native MSVC
12159 libname_spec='$name'
12160 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12161 library_names_spec='${libname}.dll.lib'
12162
12163 case $build_os in
12164 mingw*)
12165 sys_lib_search_path_spec=
12166 lt_save_ifs=$IFS
12167 IFS=';'
12168 for lt_path in $LIB
12169 do
12170 IFS=$lt_save_ifs
12171 # Let DOS variable expansion print the short 8.3 style file name.
12172 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12173 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12174 done
12175 IFS=$lt_save_ifs
12176 # Convert to MSYS style.
12177 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12178 ;;
12179 cygwin*)
12180 # Convert to unix form, then to dos form, then back to unix form
12181 # but this time dos style (no spaces!) so that the unix form looks
12182 # like /cygdrive/c/PROGRA~1:/cygdr...
12183 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12184 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12185 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12186 ;;
12187 *)
12188 sys_lib_search_path_spec="$LIB"
12189 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12190 # It is most probably a Windows format PATH.
12191 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12192 else
12193 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12194 fi
12195 # FIXME: find the short name or the path components, as spaces are
12196 # common. (e.g. "Program Files" -> "PROGRA~1")
12197 ;;
12198 esac
12199
12200 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12201 postinstall_cmds='base_file=`basename \${file}`~
12202 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12203 dldir=$destdir/`dirname \$dlpath`~
12204 test -d \$dldir || mkdir -p \$dldir~
12205 $install_prog $dir/$dlname \$dldir/$dlname'
12206 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12207 dlpath=$dir/\$dldll~
12208 $RM \$dlpath'
12209 shlibpath_overrides_runpath=yes
12210 dynamic_linker='Win32 link.exe'
12211 ;;
12212
12213 *)
12214 # Assume MSVC wrapper
12215 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12216 dynamic_linker='Win32 ld.exe'
12217 ;;
12218 esac
12219 # FIXME: first we should search . and the directory the executable is in
12220 shlibpath_var=PATH
12221 ;;
12222
12223darwin* | rhapsody*)
12224 dynamic_linker="$host_os dyld"
12225 version_type=darwin
12226 need_lib_prefix=no
12227 need_version=no
12228 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12229 soname_spec='${libname}${release}${major}$shared_ext'
12230 shlibpath_overrides_runpath=yes
12231 shlibpath_var=DYLD_LIBRARY_PATH
12232 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12233
12234 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12235 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12236 ;;
12237
12238dgux*)
12239 version_type=linux # correct to gnu/linux during the next big refactor
12240 need_lib_prefix=no
12241 need_version=no
12242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12243 soname_spec='${libname}${release}${shared_ext}$major'
12244 shlibpath_var=LD_LIBRARY_PATH
12245 ;;
12246
12247freebsd* | dragonfly*)
12248 # DragonFly does not have aout. When/if they implement a new
12249 # versioning mechanism, adjust this.
12250 if test -x /usr/bin/objformat; then
12251 objformat=`/usr/bin/objformat`
12252 else
12253 case $host_os in
12254 freebsd[23].*) objformat=aout ;;
12255 *) objformat=elf ;;
12256 esac
12257 fi
12258 version_type=freebsd-$objformat
12259 case $version_type in
12260 freebsd-elf*)
12261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12262 need_version=no
12263 need_lib_prefix=no
12264 ;;
12265 freebsd-*)
12266 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12267 need_version=yes
12268 ;;
12269 esac
12270 shlibpath_var=LD_LIBRARY_PATH
12271 case $host_os in
12272 freebsd2.*)
12273 shlibpath_overrides_runpath=yes
12274 ;;
12275 freebsd3.[01]* | freebsdelf3.[01]*)
12276 shlibpath_overrides_runpath=yes
12277 hardcode_into_libs=yes
12278 ;;
12279 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12280 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12281 shlibpath_overrides_runpath=no
12282 hardcode_into_libs=yes
12283 ;;
12284 *) # from 4.6 on, and DragonFly
12285 shlibpath_overrides_runpath=yes
12286 hardcode_into_libs=yes
12287 ;;
12288 esac
12289 ;;
12290
12291gnu*)
12292 version_type=linux # correct to gnu/linux during the next big refactor
12293 need_lib_prefix=no
12294 need_version=no
12295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12296 soname_spec='${libname}${release}${shared_ext}$major'
12297 shlibpath_var=LD_LIBRARY_PATH
12298 shlibpath_overrides_runpath=no
12299 hardcode_into_libs=yes
12300 ;;
12301
12302haiku*)
12303 version_type=linux # correct to gnu/linux during the next big refactor
12304 need_lib_prefix=no
12305 need_version=no
12306 dynamic_linker="$host_os runtime_loader"
12307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12308 soname_spec='${libname}${release}${shared_ext}$major'
12309 shlibpath_var=LIBRARY_PATH
12310 shlibpath_overrides_runpath=yes
12311 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12312 hardcode_into_libs=yes
12313 ;;
12314
12315hpux9* | hpux10* | hpux11*)
12316 # Give a soname corresponding to the major version so that dld.sl refuses to
12317 # link against other versions.
12318 version_type=sunos
12319 need_lib_prefix=no
12320 need_version=no
12321 case $host_cpu in
12322 ia64*)
12323 shrext_cmds='.so'
12324 hardcode_into_libs=yes
12325 dynamic_linker="$host_os dld.so"
12326 shlibpath_var=LD_LIBRARY_PATH
12327 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12329 soname_spec='${libname}${release}${shared_ext}$major'
12330 if test "X$HPUX_IA64_MODE" = X32; then
12331 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12332 else
12333 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12334 fi
12335 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12336 ;;
12337 hppa*64*)
12338 shrext_cmds='.sl'
12339 hardcode_into_libs=yes
12340 dynamic_linker="$host_os dld.sl"
12341 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12342 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12344 soname_spec='${libname}${release}${shared_ext}$major'
12345 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12346 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12347 ;;
12348 *)
12349 shrext_cmds='.sl'
12350 dynamic_linker="$host_os dld.sl"
12351 shlibpath_var=SHLIB_PATH
12352 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12354 soname_spec='${libname}${release}${shared_ext}$major'
12355 ;;
12356 esac
12357 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12358 postinstall_cmds='chmod 555 $lib'
12359 # or fails outright, so override atomically:
12360 install_override_mode=555
12361 ;;
12362
12363interix[3-9]*)
12364 version_type=linux # correct to gnu/linux during the next big refactor
12365 need_lib_prefix=no
12366 need_version=no
12367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12368 soname_spec='${libname}${release}${shared_ext}$major'
12369 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12370 shlibpath_var=LD_LIBRARY_PATH
12371 shlibpath_overrides_runpath=no
12372 hardcode_into_libs=yes
12373 ;;
12374
12375irix5* | irix6* | nonstopux*)
12376 case $host_os in
12377 nonstopux*) version_type=nonstopux ;;
12378 *)
12379 if test "$lt_cv_prog_gnu_ld" = yes; then
12380 version_type=linux # correct to gnu/linux during the next big refactor
12381 else
12382 version_type=irix
12383 fi ;;
12384 esac
12385 need_lib_prefix=no
12386 need_version=no
12387 soname_spec='${libname}${release}${shared_ext}$major'
12388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12389 case $host_os in
12390 irix5* | nonstopux*)
12391 libsuff= shlibsuff=
12392 ;;
12393 *)
12394 case $LD in # libtool.m4 will add one of these switches to LD
12395 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12396 libsuff= shlibsuff= libmagic=32-bit;;
12397 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12398 libsuff=32 shlibsuff=N32 libmagic=N32;;
12399 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12400 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12401 *) libsuff= shlibsuff= libmagic=never-match;;
12402 esac
12403 ;;
12404 esac
12405 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12406 shlibpath_overrides_runpath=no
12407 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12408 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12409 hardcode_into_libs=yes
12410 ;;
12411
12412# No shared lib support for Linux oldld, aout, or coff.
12413linux*oldld* | linux*aout* | linux*coff*)
12414 dynamic_linker=no
12415 ;;
12416
12417# This must be glibc/ELF.
12418linux* | k*bsd*-gnu | kopensolaris*-gnu)
12419 version_type=linux # correct to gnu/linux during the next big refactor
12420 need_lib_prefix=no
12421 need_version=no
12422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12423 soname_spec='${libname}${release}${shared_ext}$major'
12424 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12425 shlibpath_var=LD_LIBRARY_PATH
12426 shlibpath_overrides_runpath=no
12427
12428 # Some binutils ld are patched to set DT_RUNPATH
12429 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12430 $as_echo_n "(cached) " >&6
12431else
12432 lt_cv_shlibpath_overrides_runpath=no
12433 save_LDFLAGS=$LDFLAGS
12434 save_libdir=$libdir
12435 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12436 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438/* end confdefs.h. */
12439
12440int
12441main ()
12442{
12443
12444 ;
12445 return 0;
12446}
12447_ACEOF
12448if ac_fn_c_try_link "$LINENO"; then :
12449 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12450 lt_cv_shlibpath_overrides_runpath=yes
12451fi
12452fi
12453rm -f core conftest.err conftest.$ac_objext \
12454 conftest$ac_exeext conftest.$ac_ext
12455 LDFLAGS=$save_LDFLAGS
12456 libdir=$save_libdir
12457
12458fi
12459
12460 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12461
12462 # This implies no fast_install, which is unacceptable.
12463 # Some rework will be needed to allow for fast_install
12464 # before this can be enabled.
12465 hardcode_into_libs=yes
12466
12467 # Append ld.so.conf contents to the search path
12468 if test -f /etc/ld.so.conf; then
12469 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' ' '`
12470 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12471 fi
12472
12473 # We used to test for /lib/ld.so.1 and disable shared libraries on
12474 # powerpc, because MkLinux only supported shared libraries with the
12475 # GNU dynamic linker. Since this was broken with cross compilers,
12476 # most powerpc-linux boxes support dynamic linking these days and
12477 # people can always --disable-shared, the test was removed, and we
12478 # assume the GNU/Linux dynamic linker is in use.
12479 dynamic_linker='GNU/Linux ld.so'
12480 ;;
12481
12482netbsd*)
12483 version_type=sunos
12484 need_lib_prefix=no
12485 need_version=no
12486 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12488 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12489 dynamic_linker='NetBSD (a.out) ld.so'
12490 else
12491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12492 soname_spec='${libname}${release}${shared_ext}$major'
12493 dynamic_linker='NetBSD ld.elf_so'
12494 fi
12495 shlibpath_var=LD_LIBRARY_PATH
12496 shlibpath_overrides_runpath=yes
12497 hardcode_into_libs=yes
12498 ;;
12499
12500newsos6)
12501 version_type=linux # correct to gnu/linux during the next big refactor
12502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12503 shlibpath_var=LD_LIBRARY_PATH
12504 shlibpath_overrides_runpath=yes
12505 ;;
12506
12507*nto* | *qnx*)
12508 version_type=qnx
12509 need_lib_prefix=no
12510 need_version=no
12511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12512 soname_spec='${libname}${release}${shared_ext}$major'
12513 shlibpath_var=LD_LIBRARY_PATH
12514 shlibpath_overrides_runpath=no
12515 hardcode_into_libs=yes
12516 dynamic_linker='ldqnx.so'
12517 ;;
12518
12519openbsd*)
12520 version_type=sunos
12521 sys_lib_dlsearch_path_spec="/usr/lib"
12522 need_lib_prefix=no
12523 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12524 case $host_os in
12525 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12526 *) need_version=no ;;
12527 esac
12528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12530 shlibpath_var=LD_LIBRARY_PATH
12531 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12532 case $host_os in
12533 openbsd2.[89] | openbsd2.[89].*)
12534 shlibpath_overrides_runpath=no
12535 ;;
12536 *)
12537 shlibpath_overrides_runpath=yes
12538 ;;
12539 esac
12540 else
12541 shlibpath_overrides_runpath=yes
12542 fi
12543 ;;
12544
12545os2*)
12546 libname_spec='$name'
12547 shrext_cmds=".dll"
12548 need_lib_prefix=no
12549 library_names_spec='$libname${shared_ext} $libname.a'
12550 dynamic_linker='OS/2 ld.exe'
12551 shlibpath_var=LIBPATH
12552 ;;
12553
12554osf3* | osf4* | osf5*)
12555 version_type=osf
12556 need_lib_prefix=no
12557 need_version=no
12558 soname_spec='${libname}${release}${shared_ext}$major'
12559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12560 shlibpath_var=LD_LIBRARY_PATH
12561 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12562 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12563 ;;
12564
12565rdos*)
12566 dynamic_linker=no
12567 ;;
12568
12569solaris*)
12570 version_type=linux # correct to gnu/linux during the next big refactor
12571 need_lib_prefix=no
12572 need_version=no
12573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12574 soname_spec='${libname}${release}${shared_ext}$major'
12575 shlibpath_var=LD_LIBRARY_PATH
12576 shlibpath_overrides_runpath=yes
12577 hardcode_into_libs=yes
12578 # ldd complains unless libraries are executable
12579 postinstall_cmds='chmod +x $lib'
12580 ;;
12581
12582sunos4*)
12583 version_type=sunos
12584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12585 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12586 shlibpath_var=LD_LIBRARY_PATH
12587 shlibpath_overrides_runpath=yes
12588 if test "$with_gnu_ld" = yes; then
12589 need_lib_prefix=no
12590 fi
12591 need_version=yes
12592 ;;
12593
12594sysv4 | sysv4.3*)
12595 version_type=linux # correct to gnu/linux during the next big refactor
12596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12597 soname_spec='${libname}${release}${shared_ext}$major'
12598 shlibpath_var=LD_LIBRARY_PATH
12599 case $host_vendor in
12600 sni)
12601 shlibpath_overrides_runpath=no
12602 need_lib_prefix=no
12603 runpath_var=LD_RUN_PATH
12604 ;;
12605 siemens)
12606 need_lib_prefix=no
12607 ;;
12608 motorola)
12609 need_lib_prefix=no
12610 need_version=no
12611 shlibpath_overrides_runpath=no
12612 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12613 ;;
12614 esac
12615 ;;
12616
12617sysv4*MP*)
12618 if test -d /usr/nec ;then
12619 version_type=linux # correct to gnu/linux during the next big refactor
12620 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12621 soname_spec='$libname${shared_ext}.$major'
12622 shlibpath_var=LD_LIBRARY_PATH
12623 fi
12624 ;;
12625
12626sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12627 version_type=freebsd-elf
12628 need_lib_prefix=no
12629 need_version=no
12630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12631 soname_spec='${libname}${release}${shared_ext}$major'
12632 shlibpath_var=LD_LIBRARY_PATH
12633 shlibpath_overrides_runpath=yes
12634 hardcode_into_libs=yes
12635 if test "$with_gnu_ld" = yes; then
12636 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12637 else
12638 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12639 case $host_os in
12640 sco3.2v5*)
12641 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12642 ;;
12643 esac
12644 fi
12645 sys_lib_dlsearch_path_spec='/usr/lib'
12646 ;;
12647
12648tpf*)
12649 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12650 version_type=linux # correct to gnu/linux during the next big refactor
12651 need_lib_prefix=no
12652 need_version=no
12653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12654 shlibpath_var=LD_LIBRARY_PATH
12655 shlibpath_overrides_runpath=no
12656 hardcode_into_libs=yes
12657 ;;
12658
12659uts4*)
12660 version_type=linux # correct to gnu/linux during the next big refactor
12661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12662 soname_spec='${libname}${release}${shared_ext}$major'
12663 shlibpath_var=LD_LIBRARY_PATH
12664 ;;
12665
12666*)
12667 dynamic_linker=no
12668 ;;
12669esac
12670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12671$as_echo "$dynamic_linker" >&6; }
12672test "$dynamic_linker" = no && can_build_shared=no
12673
12674variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12675if test "$GCC" = yes; then
12676 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12677fi
12678
12679if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12680 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12681fi
12682if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12683 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12684fi
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12778$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12779hardcode_action=
12780if test -n "$hardcode_libdir_flag_spec" ||
12781 test -n "$runpath_var" ||
12782 test "X$hardcode_automatic" = "Xyes" ; then
12783
12784 # We can hardcode non-existent directories.
12785 if test "$hardcode_direct" != no &&
12786 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12787 # have to relink, otherwise we might link with an installed library
12788 # when we should be linking with a yet-to-be-installed one
12789 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12790 test "$hardcode_minus_L" != no; then
12791 # Linking always hardcodes the temporary library directory.
12792 hardcode_action=relink
12793 else
12794 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12795 hardcode_action=immediate
12796 fi
12797else
12798 # We cannot hardcode anything, or else we can only hardcode existing
12799 # directories.
12800 hardcode_action=unsupported
12801fi
12802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12803$as_echo "$hardcode_action" >&6; }
12804
12805if test "$hardcode_action" = relink ||
12806 test "$inherit_rpath" = yes; then
12807 # Fast installation is not supported
12808 enable_fast_install=no
12809elif test "$shlibpath_overrides_runpath" = yes ||
12810 test "$enable_shared" = no; then
12811 # Fast installation is not necessary
12812 enable_fast_install=needless
12813fi
12814
12815
12816
12817
12818
12819
12820 if test "x$enable_dlopen" != xyes; then
12821 enable_dlopen=unknown
12822 enable_dlopen_self=unknown
12823 enable_dlopen_self_static=unknown
12824else
12825 lt_cv_dlopen=no
12826 lt_cv_dlopen_libs=
12827
12828 case $host_os in
12829 beos*)
12830 lt_cv_dlopen="load_add_on"
12831 lt_cv_dlopen_libs=
12832 lt_cv_dlopen_self=yes
12833 ;;
12834
12835 mingw* | pw32* | cegcc*)
12836 lt_cv_dlopen="LoadLibrary"
12837 lt_cv_dlopen_libs=
12838 ;;
12839
12840 cygwin*)
12841 lt_cv_dlopen="dlopen"
12842 lt_cv_dlopen_libs=
12843 ;;
12844
12845 darwin*)
12846 # if libdl is installed we need to link against it
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12848$as_echo_n "checking for dlopen in -ldl... " >&6; }
12849if ${ac_cv_lib_dl_dlopen+:} false; then :
12850 $as_echo_n "(cached) " >&6
12851else
12852 ac_check_lib_save_LIBS=$LIBS
12853LIBS="-ldl $LIBS"
12854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12855/* end confdefs.h. */
12856
12857/* Override any GCC internal prototype to avoid an error.
12858 Use char because int might match the return type of a GCC
12859 builtin and then its argument prototype would still apply. */
12860#ifdef __cplusplus
12861extern "C"
12862#endif
12863char dlopen ();
12864int
12865main ()
12866{
12867return dlopen ();
12868 ;
12869 return 0;
12870}
12871_ACEOF
12872if ac_fn_c_try_link "$LINENO"; then :
12873 ac_cv_lib_dl_dlopen=yes
12874else
12875 ac_cv_lib_dl_dlopen=no
12876fi
12877rm -f core conftest.err conftest.$ac_objext \
12878 conftest$ac_exeext conftest.$ac_ext
12879LIBS=$ac_check_lib_save_LIBS
12880fi
12881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12882$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12883if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12884 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12885else
12886
12887 lt_cv_dlopen="dyld"
12888 lt_cv_dlopen_libs=
12889 lt_cv_dlopen_self=yes
12890
12891fi
12892
12893 ;;
12894
12895 *)
12896 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12897if test "x$ac_cv_func_shl_load" = xyes; then :
12898 lt_cv_dlopen="shl_load"
12899else
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12901$as_echo_n "checking for shl_load in -ldld... " >&6; }
12902if ${ac_cv_lib_dld_shl_load+:} false; then :
12903 $as_echo_n "(cached) " >&6
12904else
12905 ac_check_lib_save_LIBS=$LIBS
12906LIBS="-ldld $LIBS"
12907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12908/* end confdefs.h. */
12909
12910/* Override any GCC internal prototype to avoid an error.
12911 Use char because int might match the return type of a GCC
12912 builtin and then its argument prototype would still apply. */
12913#ifdef __cplusplus
12914extern "C"
12915#endif
12916char shl_load ();
12917int
12918main ()
12919{
12920return shl_load ();
12921 ;
12922 return 0;
12923}
12924_ACEOF
12925if ac_fn_c_try_link "$LINENO"; then :
12926 ac_cv_lib_dld_shl_load=yes
12927else
12928 ac_cv_lib_dld_shl_load=no
12929fi
12930rm -f core conftest.err conftest.$ac_objext \
12931 conftest$ac_exeext conftest.$ac_ext
12932LIBS=$ac_check_lib_save_LIBS
12933fi
12934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12935$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12936if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12937 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12938else
12939 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12940if test "x$ac_cv_func_dlopen" = xyes; then :
12941 lt_cv_dlopen="dlopen"
12942else
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12944$as_echo_n "checking for dlopen in -ldl... " >&6; }
12945if ${ac_cv_lib_dl_dlopen+:} false; then :
12946 $as_echo_n "(cached) " >&6
12947else
12948 ac_check_lib_save_LIBS=$LIBS
12949LIBS="-ldl $LIBS"
12950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12951/* end confdefs.h. */
12952
12953/* Override any GCC internal prototype to avoid an error.
12954 Use char because int might match the return type of a GCC
12955 builtin and then its argument prototype would still apply. */
12956#ifdef __cplusplus
12957extern "C"
12958#endif
12959char dlopen ();
12960int
12961main ()
12962{
12963return dlopen ();
12964 ;
12965 return 0;
12966}
12967_ACEOF
12968if ac_fn_c_try_link "$LINENO"; then :
12969 ac_cv_lib_dl_dlopen=yes
12970else
12971 ac_cv_lib_dl_dlopen=no
12972fi
12973rm -f core conftest.err conftest.$ac_objext \
12974 conftest$ac_exeext conftest.$ac_ext
12975LIBS=$ac_check_lib_save_LIBS
12976fi
12977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12978$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12979if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12980 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12981else
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12983$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12984if ${ac_cv_lib_svld_dlopen+:} false; then :
12985 $as_echo_n "(cached) " >&6
12986else
12987 ac_check_lib_save_LIBS=$LIBS
12988LIBS="-lsvld $LIBS"
12989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12990/* end confdefs.h. */
12991
12992/* Override any GCC internal prototype to avoid an error.
12993 Use char because int might match the return type of a GCC
12994 builtin and then its argument prototype would still apply. */
12995#ifdef __cplusplus
12996extern "C"
12997#endif
12998char dlopen ();
12999int
13000main ()
13001{
13002return dlopen ();
13003 ;
13004 return 0;
13005}
13006_ACEOF
13007if ac_fn_c_try_link "$LINENO"; then :
13008 ac_cv_lib_svld_dlopen=yes
13009else
13010 ac_cv_lib_svld_dlopen=no
13011fi
13012rm -f core conftest.err conftest.$ac_objext \
13013 conftest$ac_exeext conftest.$ac_ext
13014LIBS=$ac_check_lib_save_LIBS
13015fi
13016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13017$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13018if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13019 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13020else
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13022$as_echo_n "checking for dld_link in -ldld... " >&6; }
13023if ${ac_cv_lib_dld_dld_link+:} false; then :
13024 $as_echo_n "(cached) " >&6
13025else
13026 ac_check_lib_save_LIBS=$LIBS
13027LIBS="-ldld $LIBS"
13028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029/* end confdefs.h. */
13030
13031/* Override any GCC internal prototype to avoid an error.
13032 Use char because int might match the return type of a GCC
13033 builtin and then its argument prototype would still apply. */
13034#ifdef __cplusplus
13035extern "C"
13036#endif
13037char dld_link ();
13038int
13039main ()
13040{
13041return dld_link ();
13042 ;
13043 return 0;
13044}
13045_ACEOF
13046if ac_fn_c_try_link "$LINENO"; then :
13047 ac_cv_lib_dld_dld_link=yes
13048else
13049 ac_cv_lib_dld_dld_link=no
13050fi
13051rm -f core conftest.err conftest.$ac_objext \
13052 conftest$ac_exeext conftest.$ac_ext
13053LIBS=$ac_check_lib_save_LIBS
13054fi
13055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13056$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13057if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13058 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13059fi
13060
13061
13062fi
13063
13064
13065fi
13066
13067
13068fi
13069
13070
13071fi
13072
13073
13074fi
13075
13076 ;;
13077 esac
13078
13079 if test "x$lt_cv_dlopen" != xno; then
13080 enable_dlopen=yes
13081 else
13082 enable_dlopen=no
13083 fi
13084
13085 case $lt_cv_dlopen in
13086 dlopen)
13087 save_CPPFLAGS="$CPPFLAGS"
13088 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13089
13090 save_LDFLAGS="$LDFLAGS"
13091 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13092
13093 save_LIBS="$LIBS"
13094 LIBS="$lt_cv_dlopen_libs $LIBS"
13095
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13097$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13098if ${lt_cv_dlopen_self+:} false; then :
13099 $as_echo_n "(cached) " >&6
13100else
13101 if test "$cross_compiling" = yes; then :
13102 lt_cv_dlopen_self=cross
13103else
13104 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13105 lt_status=$lt_dlunknown
13106 cat > conftest.$ac_ext <<_LT_EOF
13107#line $LINENO "configure"
13108#include "confdefs.h"
13109
13110#if HAVE_DLFCN_H
13111#include <dlfcn.h>
13112#endif
13113
13114#include <stdio.h>
13115
13116#ifdef RTLD_GLOBAL
13117# define LT_DLGLOBAL RTLD_GLOBAL
13118#else
13119# ifdef DL_GLOBAL
13120# define LT_DLGLOBAL DL_GLOBAL
13121# else
13122# define LT_DLGLOBAL 0
13123# endif
13124#endif
13125
13126/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13127 find out it does not work in some platform. */
13128#ifndef LT_DLLAZY_OR_NOW
13129# ifdef RTLD_LAZY
13130# define LT_DLLAZY_OR_NOW RTLD_LAZY
13131# else
13132# ifdef DL_LAZY
13133# define LT_DLLAZY_OR_NOW DL_LAZY
13134# else
13135# ifdef RTLD_NOW
13136# define LT_DLLAZY_OR_NOW RTLD_NOW
13137# else
13138# ifdef DL_NOW
13139# define LT_DLLAZY_OR_NOW DL_NOW
13140# else
13141# define LT_DLLAZY_OR_NOW 0
13142# endif
13143# endif
13144# endif
13145# endif
13146#endif
13147
13148/* When -fvisbility=hidden is used, assume the code has been annotated
13149 correspondingly for the symbols needed. */
13150#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13151int fnord () __attribute__((visibility("default")));
13152#endif
13153
13154int fnord () { return 42; }
13155int main ()
13156{
13157 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13158 int status = $lt_dlunknown;
13159
13160 if (self)
13161 {
13162 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13163 else
13164 {
13165 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13166 else puts (dlerror ());
13167 }
13168 /* dlclose (self); */
13169 }
13170 else
13171 puts (dlerror ());
13172
13173 return status;
13174}
13175_LT_EOF
13176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13177 (eval $ac_link) 2>&5
13178 ac_status=$?
13179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13180 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13181 (./conftest; exit; ) >&5 2>/dev/null
13182 lt_status=$?
13183 case x$lt_status in
13184 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13185 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13186 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13187 esac
13188 else :
13189 # compilation failed
13190 lt_cv_dlopen_self=no
13191 fi
13192fi
13193rm -fr conftest*
13194
13195
13196fi
13197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13198$as_echo "$lt_cv_dlopen_self" >&6; }
13199
13200 if test "x$lt_cv_dlopen_self" = xyes; then
13201 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13203$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13204if ${lt_cv_dlopen_self_static+:} false; then :
13205 $as_echo_n "(cached) " >&6
13206else
13207 if test "$cross_compiling" = yes; then :
13208 lt_cv_dlopen_self_static=cross
13209else
13210 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13211 lt_status=$lt_dlunknown
13212 cat > conftest.$ac_ext <<_LT_EOF
13213#line $LINENO "configure"
13214#include "confdefs.h"
13215
13216#if HAVE_DLFCN_H
13217#include <dlfcn.h>
13218#endif
13219
13220#include <stdio.h>
13221
13222#ifdef RTLD_GLOBAL
13223# define LT_DLGLOBAL RTLD_GLOBAL
13224#else
13225# ifdef DL_GLOBAL
13226# define LT_DLGLOBAL DL_GLOBAL
13227# else
13228# define LT_DLGLOBAL 0
13229# endif
13230#endif
13231
13232/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13233 find out it does not work in some platform. */
13234#ifndef LT_DLLAZY_OR_NOW
13235# ifdef RTLD_LAZY
13236# define LT_DLLAZY_OR_NOW RTLD_LAZY
13237# else
13238# ifdef DL_LAZY
13239# define LT_DLLAZY_OR_NOW DL_LAZY
13240# else
13241# ifdef RTLD_NOW
13242# define LT_DLLAZY_OR_NOW RTLD_NOW
13243# else
13244# ifdef DL_NOW
13245# define LT_DLLAZY_OR_NOW DL_NOW
13246# else
13247# define LT_DLLAZY_OR_NOW 0
13248# endif
13249# endif
13250# endif
13251# endif
13252#endif
13253
13254/* When -fvisbility=hidden is used, assume the code has been annotated
13255 correspondingly for the symbols needed. */
13256#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13257int fnord () __attribute__((visibility("default")));
13258#endif
13259
13260int fnord () { return 42; }
13261int main ()
13262{
13263 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13264 int status = $lt_dlunknown;
13265
13266 if (self)
13267 {
13268 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13269 else
13270 {
13271 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13272 else puts (dlerror ());
13273 }
13274 /* dlclose (self); */
13275 }
13276 else
13277 puts (dlerror ());
13278
13279 return status;
13280}
13281_LT_EOF
13282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13283 (eval $ac_link) 2>&5
13284 ac_status=$?
13285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13286 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13287 (./conftest; exit; ) >&5 2>/dev/null
13288 lt_status=$?
13289 case x$lt_status in
13290 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13291 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13292 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13293 esac
13294 else :
13295 # compilation failed
13296 lt_cv_dlopen_self_static=no
13297 fi
13298fi
13299rm -fr conftest*
13300
13301
13302fi
13303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13304$as_echo "$lt_cv_dlopen_self_static" >&6; }
13305 fi
13306
13307 CPPFLAGS="$save_CPPFLAGS"
13308 LDFLAGS="$save_LDFLAGS"
13309 LIBS="$save_LIBS"
13310 ;;
13311 esac
13312
13313 case $lt_cv_dlopen_self in
13314 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13315 *) enable_dlopen_self=unknown ;;
13316 esac
13317
13318 case $lt_cv_dlopen_self_static in
13319 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13320 *) enable_dlopen_self_static=unknown ;;
13321 esac
13322fi
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340striplib=
13341old_striplib=
13342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13343$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13344if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13345 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13346 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13348$as_echo "yes" >&6; }
13349else
13350# FIXME - insert some real tests, host_os isn't really good enough
13351 case $host_os in
13352 darwin*)
13353 if test -n "$STRIP" ; then
13354 striplib="$STRIP -x"
13355 old_striplib="$STRIP -S"
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13357$as_echo "yes" >&6; }
13358 else
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13360$as_echo "no" >&6; }
13361 fi
13362 ;;
13363 *)
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13365$as_echo "no" >&6; }
13366 ;;
13367 esac
13368fi
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381 # Report which library types will actually be built
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13383$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13385$as_echo "$can_build_shared" >&6; }
13386
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13388$as_echo_n "checking whether to build shared libraries... " >&6; }
13389 test "$can_build_shared" = "no" && enable_shared=no
13390
13391 # On AIX, shared libraries and static libraries use the same namespace, and
13392 # are all built from PIC.
13393 case $host_os in
13394 aix3*)
13395 test "$enable_shared" = yes && enable_static=no
13396 if test -n "$RANLIB"; then
13397 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13398 postinstall_cmds='$RANLIB $lib'
13399 fi
13400 ;;
13401
13402 aix[4-9]*)
13403 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13404 test "$enable_shared" = yes && enable_static=no
13405 fi
13406 ;;
13407 esac
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13409$as_echo "$enable_shared" >&6; }
13410
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13412$as_echo_n "checking whether to build static libraries... " >&6; }
13413 # Make sure either enable_shared or enable_static is yes.
13414 test "$enable_shared" = yes || enable_static=yes
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13416$as_echo "$enable_static" >&6; }
13417
13418
13419
13420
13421fi
13422ac_ext=c
13423ac_cpp='$CPP $CPPFLAGS'
13424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13426ac_compiler_gnu=$ac_cv_c_compiler_gnu
13427
13428CC="$lt_save_CC"
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444 ac_config_commands="$ac_config_commands libtool"
13445
13446
13447
13448
13449# Only expand once:
13450
13451
13452
13453# Select memory manager depending on user input.
13454# If no "-enable-maxmem", use jmemnobs
13455MEMORYMGR='jmemnobs'
13456MAXMEM="no"
13457# Check whether --enable-maxmem was given.
13458if test "${enable_maxmem+set}" = set; then :
13459 enableval=$enable_maxmem; MAXMEM="$enableval"
13460fi
13461
13462if test "x$MAXMEM" = xyes; then
13463 MAXMEM=1
13464fi
13465if test "x$MAXMEM" != xno; then
13466 if test -n "`echo $MAXMEM | sed 's/[0-9]//g'`"; then
13467 as_fn_error $? "non-numeric argument to --enable-maxmem" "$LINENO" 5
13468 fi
13469 DEFAULTMAXMEM=`expr $MAXMEM \* 1048576`
13470
13471cat >>confdefs.h <<_ACEOF
13472#define DEFAULT_MAX_MEM ${DEFAULTMAXMEM}
13473_ACEOF
13474
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'tmpfile()'" >&5
13476$as_echo_n "checking for 'tmpfile()'... " >&6; }
13477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13478/* end confdefs.h. */
13479#include <stdio.h>
13480int
13481main ()
13482{
13483 FILE * tfile = tmpfile();
13484 ;
13485 return 0;
13486}
13487_ACEOF
13488if ac_fn_c_try_link "$LINENO"; then :
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13490$as_echo "yes" >&6; }
13491 MEMORYMGR='jmemansi'
13492else
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13494$as_echo "no" >&6; }
13495 MEMORYMGR='jmemname'
13496
13497 # Test for the need to remove temporary files using a signal handler
13498 # (for cjpeg/djpeg)
13499
13500$as_echo "#define NEED_SIGNAL_CATCHER 1" >>confdefs.h
13501
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'mktemp()'" >&5
13503$as_echo_n "checking for 'mktemp()'... " >&6; }
13504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13505/* end confdefs.h. */
13506
13507int
13508main ()
13509{
13510 char fname[80]; mktemp(fname);
13511 ;
13512 return 0;
13513}
13514_ACEOF
13515if ac_fn_c_try_link "$LINENO"; then :
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13517$as_echo "yes" >&6; }
13518else
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13520$as_echo "no" >&6; }
13521
13522$as_echo "#define NO_MKTEMP 1" >>confdefs.h
13523
13524fi
13525rm -f core conftest.err conftest.$ac_objext \
13526 conftest$ac_exeext conftest.$ac_ext
13527fi
13528rm -f core conftest.err conftest.$ac_objext \
13529 conftest$ac_exeext conftest.$ac_ext
13530fi
13531
13532
13533# Extract the library version IDs from jpeglib.h.
13534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libjpeg version number" >&5
13535$as_echo_n "checking libjpeg version number... " >&6; }
13536major=`sed -ne 's/^#define JPEG_LIB_VERSION_MAJOR *\([0-9][0-9]*\).*$/\1/p' $srcdir/jpeglib.h`
13537minor=`sed -ne 's/^#define JPEG_LIB_VERSION_MINOR *\([0-9][0-9]*\).*$/\1/p' $srcdir/jpeglib.h`
13538JPEG_LIB_VERSION=`expr $major + $minor`:0:$minor
13539
13540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $JPEG_LIB_VERSION" >&5
13541$as_echo "$JPEG_LIB_VERSION" >&6; }
13542
13543ac_config_files="$ac_config_files Makefile"
13544
13545cat >confcache <<\_ACEOF
13546# This file is a shell script that caches the results of configure
13547# tests run on this system so they can be shared between configure
13548# scripts and configure runs, see configure's option --config-cache.
13549# It is not useful on other systems. If it contains results you don't
13550# want to keep, you may remove or edit it.
13551#
13552# config.status only pays attention to the cache file if you give it
13553# the --recheck option to rerun configure.
13554#
13555# `ac_cv_env_foo' variables (set or unset) will be overridden when
13556# loading this file, other *unset* `ac_cv_foo' will be assigned the
13557# following values.
13558
13559_ACEOF
13560
13561# The following way of writing the cache mishandles newlines in values,
13562# but we know of no workaround that is simple, portable, and efficient.
13563# So, we kill variables containing newlines.
13564# Ultrix sh set writes to stderr and can't be redirected directly,
13565# and sets the high bit in the cache file unless we assign to the vars.
13566(
13567 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13568 eval ac_val=\$$ac_var
13569 case $ac_val in #(
13570 *${as_nl}*)
13571 case $ac_var in #(
13572 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13573$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13574 esac
13575 case $ac_var in #(
13576 _ | IFS | as_nl) ;; #(
13577 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13578 *) { eval $ac_var=; unset $ac_var;} ;;
13579 esac ;;
13580 esac
13581 done
13582
13583 (set) 2>&1 |
13584 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13585 *${as_nl}ac_space=\ *)
13586 # `set' does not quote correctly, so add quotes: double-quote
13587 # substitution turns \\\\ into \\, and sed turns \\ into \.
13588 sed -n \
13589 "s/'/'\\\\''/g;
13590 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13591 ;; #(
13592 *)
13593 # `set' quotes correctly as required by POSIX, so do not add quotes.
13594 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13595 ;;
13596 esac |
13597 sort
13598) |
13599 sed '
13600 /^ac_cv_env_/b end
13601 t clear
13602 :clear
13603 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13604 t end
13605 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13606 :end' >>confcache
13607if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13608 if test -w "$cache_file"; then
13609 if test "x$cache_file" != "x/dev/null"; then
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13611$as_echo "$as_me: updating cache $cache_file" >&6;}
13612 if test ! -f "$cache_file" || test -h "$cache_file"; then
13613 cat confcache >"$cache_file"
13614 else
13615 case $cache_file in #(
13616 */* | ?:*)
13617 mv -f confcache "$cache_file"$$ &&
13618 mv -f "$cache_file"$$ "$cache_file" ;; #(
13619 *)
13620 mv -f confcache "$cache_file" ;;
13621 esac
13622 fi
13623 fi
13624 else
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13626$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13627 fi
13628fi
13629rm -f confcache
13630
13631test "x$prefix" = xNONE && prefix=$ac_default_prefix
13632# Let make expand exec_prefix.
13633test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13634
13635DEFS=-DHAVE_CONFIG_H
13636
13637ac_libobjs=
13638ac_ltlibobjs=
13639for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13640 # 1. Remove the extension, and $U if already installed.
13641 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13642 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13643 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13644 # will be set to the directory where LIBOBJS objects are built.
13645 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13646 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13647done
13648LIBOBJS=$ac_libobjs
13649
13650LTLIBOBJS=$ac_ltlibobjs
13651
13652
13653 if test -n "$EXEEXT"; then
13654 am__EXEEXT_TRUE=
13655 am__EXEEXT_FALSE='#'
13656else
13657 am__EXEEXT_TRUE='#'
13658 am__EXEEXT_FALSE=
13659fi
13660
13661if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13662 as_fn_error $? "conditional \"AMDEP\" was never defined.
13663Usually this means the macro was only invoked conditionally." "$LINENO" 5
13664fi
13665if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13666 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13667Usually this means the macro was only invoked conditionally." "$LINENO" 5
13668fi
13669if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13670 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13671Usually this means the macro was only invoked conditionally." "$LINENO" 5
13672fi
13673if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13674 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13675Usually this means the macro was only invoked conditionally." "$LINENO" 5
13676fi
13677if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
13678 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
13679Usually this means the macro was only invoked conditionally." "$LINENO" 5
13680fi
13681
13682: "${CONFIG_STATUS=./config.status}"
13683ac_write_fail=0
13684ac_clean_files_save=$ac_clean_files
13685ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13686{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13687$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13688as_write_fail=0
13689cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13690#! $SHELL
13691# Generated by $as_me.
13692# Run this file to recreate the current configuration.
13693# Compiler output produced by configure, useful for debugging
13694# configure, is in config.log if it exists.
13695
13696debug=false
13697ac_cs_recheck=false
13698ac_cs_silent=false
13699
13700SHELL=\${CONFIG_SHELL-$SHELL}
13701export SHELL
13702_ASEOF
13703cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13704## -------------------- ##
13705## M4sh Initialization. ##
13706## -------------------- ##
13707
13708# Be more Bourne compatible
13709DUALCASE=1; export DUALCASE # for MKS sh
13710if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13711 emulate sh
13712 NULLCMD=:
13713 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13714 # is contrary to our usage. Disable this feature.
13715 alias -g '${1+"$@"}'='"$@"'
13716 setopt NO_GLOB_SUBST
13717else
13718 case `(set -o) 2>/dev/null` in #(
13719 *posix*) :
13720 set -o posix ;; #(
13721 *) :
13722 ;;
13723esac
13724fi
13725
13726
13727as_nl='
13728'
13729export as_nl
13730# Printing a long string crashes Solaris 7 /usr/bin/printf.
13731as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13732as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13733as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13734# Prefer a ksh shell builtin over an external printf program on Solaris,
13735# but without wasting forks for bash or zsh.
13736if test -z "$BASH_VERSION$ZSH_VERSION" \
13737 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13738 as_echo='print -r --'
13739 as_echo_n='print -rn --'
13740elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13741 as_echo='printf %s\n'
13742 as_echo_n='printf %s'
13743else
13744 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13745 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13746 as_echo_n='/usr/ucb/echo -n'
13747 else
13748 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13749 as_echo_n_body='eval
13750 arg=$1;
13751 case $arg in #(
13752 *"$as_nl"*)
13753 expr "X$arg" : "X\\(.*\\)$as_nl";
13754 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13755 esac;
13756 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13757 '
13758 export as_echo_n_body
13759 as_echo_n='sh -c $as_echo_n_body as_echo'
13760 fi
13761 export as_echo_body
13762 as_echo='sh -c $as_echo_body as_echo'
13763fi
13764
13765# The user is always right.
13766if test "${PATH_SEPARATOR+set}" != set; then
13767 PATH_SEPARATOR=:
13768 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13769 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13770 PATH_SEPARATOR=';'
13771 }
13772fi
13773
13774
13775# IFS
13776# We need space, tab and new line, in precisely that order. Quoting is
13777# there to prevent editors from complaining about space-tab.
13778# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13779# splitting by setting IFS to empty value.)
13780IFS=" "" $as_nl"
13781
13782# Find who we are. Look in the path if we contain no directory separator.
13783as_myself=
13784case $0 in #((
13785 *[\\/]* ) as_myself=$0 ;;
13786 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13787for as_dir in $PATH
13788do
13789 IFS=$as_save_IFS
13790 test -z "$as_dir" && as_dir=.
13791 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13792 done
13793IFS=$as_save_IFS
13794
13795 ;;
13796esac
13797# We did not find ourselves, most probably we were run as `sh COMMAND'
13798# in which case we are not to be found in the path.
13799if test "x$as_myself" = x; then
13800 as_myself=$0
13801fi
13802if test ! -f "$as_myself"; then
13803 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13804 exit 1
13805fi
13806
13807# Unset variables that we do not need and which cause bugs (e.g. in
13808# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13809# suppresses any "Segmentation fault" message there. '((' could
13810# trigger a bug in pdksh 5.2.14.
13811for as_var in BASH_ENV ENV MAIL MAILPATH
13812do eval test x\${$as_var+set} = xset \
13813 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13814done
13815PS1='$ '
13816PS2='> '
13817PS4='+ '
13818
13819# NLS nuisances.
13820LC_ALL=C
13821export LC_ALL
13822LANGUAGE=C
13823export LANGUAGE
13824
13825# CDPATH.
13826(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13827
13828
13829# as_fn_error STATUS ERROR [LINENO LOG_FD]
13830# ----------------------------------------
13831# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13832# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13833# script with STATUS, using 1 if that was 0.
13834as_fn_error ()
13835{
13836 as_status=$1; test $as_status -eq 0 && as_status=1
13837 if test "$4"; then
13838 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13839 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13840 fi
13841 $as_echo "$as_me: error: $2" >&2
13842 as_fn_exit $as_status
13843} # as_fn_error
13844
13845
13846# as_fn_set_status STATUS
13847# -----------------------
13848# Set $? to STATUS, without forking.
13849as_fn_set_status ()
13850{
13851 return $1
13852} # as_fn_set_status
13853
13854# as_fn_exit STATUS
13855# -----------------
13856# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13857as_fn_exit ()
13858{
13859 set +e
13860 as_fn_set_status $1
13861 exit $1
13862} # as_fn_exit
13863
13864# as_fn_unset VAR
13865# ---------------
13866# Portably unset VAR.
13867as_fn_unset ()
13868{
13869 { eval $1=; unset $1;}
13870}
13871as_unset=as_fn_unset
13872# as_fn_append VAR VALUE
13873# ----------------------
13874# Append the text in VALUE to the end of the definition contained in VAR. Take
13875# advantage of any shell optimizations that allow amortized linear growth over
13876# repeated appends, instead of the typical quadratic growth present in naive
13877# implementations.
13878if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13879 eval 'as_fn_append ()
13880 {
13881 eval $1+=\$2
13882 }'
13883else
13884 as_fn_append ()
13885 {
13886 eval $1=\$$1\$2
13887 }
13888fi # as_fn_append
13889
13890# as_fn_arith ARG...
13891# ------------------
13892# Perform arithmetic evaluation on the ARGs, and store the result in the
13893# global $as_val. Take advantage of shells that can avoid forks. The arguments
13894# must be portable across $(()) and expr.
13895if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13896 eval 'as_fn_arith ()
13897 {
13898 as_val=$(( $* ))
13899 }'
13900else
13901 as_fn_arith ()
13902 {
13903 as_val=`expr "$@" || test $? -eq 1`
13904 }
13905fi # as_fn_arith
13906
13907
13908if expr a : '\(a\)' >/dev/null 2>&1 &&
13909 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13910 as_expr=expr
13911else
13912 as_expr=false
13913fi
13914
13915if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13916 as_basename=basename
13917else
13918 as_basename=false
13919fi
13920
13921if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13922 as_dirname=dirname
13923else
13924 as_dirname=false
13925fi
13926
13927as_me=`$as_basename -- "$0" ||
13928$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13929 X"$0" : 'X\(//\)$' \| \
13930 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13931$as_echo X/"$0" |
13932 sed '/^.*\/\([^/][^/]*\)\/*$/{
13933 s//\1/
13934 q
13935 }
13936 /^X\/\(\/\/\)$/{
13937 s//\1/
13938 q
13939 }
13940 /^X\/\(\/\).*/{
13941 s//\1/
13942 q
13943 }
13944 s/.*/./; q'`
13945
13946# Avoid depending upon Character Ranges.
13947as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13948as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13949as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13950as_cr_digits='0123456789'
13951as_cr_alnum=$as_cr_Letters$as_cr_digits
13952
13953ECHO_C= ECHO_N= ECHO_T=
13954case `echo -n x` in #(((((
13955-n*)
13956 case `echo 'xy\c'` in
13957 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13958 xy) ECHO_C='\c';;
13959 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13960 ECHO_T=' ';;
13961 esac;;
13962*)
13963 ECHO_N='-n';;
13964esac
13965
13966rm -f conf$$ conf$$.exe conf$$.file
13967if test -d conf$$.dir; then
13968 rm -f conf$$.dir/conf$$.file
13969else
13970 rm -f conf$$.dir
13971 mkdir conf$$.dir 2>/dev/null
13972fi
13973if (echo >conf$$.file) 2>/dev/null; then
13974 if ln -s conf$$.file conf$$ 2>/dev/null; then
13975 as_ln_s='ln -s'
13976 # ... but there are two gotchas:
13977 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13978 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13979 # In both cases, we have to default to `cp -p'.
13980 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13981 as_ln_s='cp -p'
13982 elif ln conf$$.file conf$$ 2>/dev/null; then
13983 as_ln_s=ln
13984 else
13985 as_ln_s='cp -p'
13986 fi
13987else
13988 as_ln_s='cp -p'
13989fi
13990rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13991rmdir conf$$.dir 2>/dev/null
13992
13993
13994# as_fn_mkdir_p
13995# -------------
13996# Create "$as_dir" as a directory, including parents if necessary.
13997as_fn_mkdir_p ()
13998{
13999
14000 case $as_dir in #(
14001 -*) as_dir=./$as_dir;;
14002 esac
14003 test -d "$as_dir" || eval $as_mkdir_p || {
14004 as_dirs=
14005 while :; do
14006 case $as_dir in #(
14007 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14008 *) as_qdir=$as_dir;;
14009 esac
14010 as_dirs="'$as_qdir' $as_dirs"
14011 as_dir=`$as_dirname -- "$as_dir" ||
14012$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14013 X"$as_dir" : 'X\(//\)[^/]' \| \
14014 X"$as_dir" : 'X\(//\)$' \| \
14015 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14016$as_echo X"$as_dir" |
14017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14018 s//\1/
14019 q
14020 }
14021 /^X\(\/\/\)[^/].*/{
14022 s//\1/
14023 q
14024 }
14025 /^X\(\/\/\)$/{
14026 s//\1/
14027 q
14028 }
14029 /^X\(\/\).*/{
14030 s//\1/
14031 q
14032 }
14033 s/.*/./; q'`
14034 test -d "$as_dir" && break
14035 done
14036 test -z "$as_dirs" || eval "mkdir $as_dirs"
14037 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14038
14039
14040} # as_fn_mkdir_p
14041if mkdir -p . 2>/dev/null; then
14042 as_mkdir_p='mkdir -p "$as_dir"'
14043else
14044 test -d ./-p && rmdir ./-p
14045 as_mkdir_p=false
14046fi
14047
14048if test -x / >/dev/null 2>&1; then
14049 as_test_x='test -x'
14050else
14051 if ls -dL / >/dev/null 2>&1; then
14052 as_ls_L_option=L
14053 else
14054 as_ls_L_option=
14055 fi
14056 as_test_x='
14057 eval sh -c '\''
14058 if test -d "$1"; then
14059 test -d "$1/.";
14060 else
14061 case $1 in #(
14062 -*)set "./$1";;
14063 esac;
14064 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14065 ???[sx]*):;;*)false;;esac;fi
14066 '\'' sh
14067 '
14068fi
14069as_executable_p=$as_test_x
14070
14071# Sed expression to map a string onto a valid CPP name.
14072as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14073
14074# Sed expression to map a string onto a valid variable name.
14075as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14076
14077
14078exec 6>&1
14079## ----------------------------------- ##
14080## Main body of $CONFIG_STATUS script. ##
14081## ----------------------------------- ##
14082_ASEOF
14083test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14084
14085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14086# Save the log message, to keep $0 and so on meaningful, and to
14087# report actual input values of CONFIG_FILES etc. instead of their
14088# values after options handling.
14089ac_log="
14090This file was extended by libjpeg $as_me 8.4.0, which was
14091generated by GNU Autoconf 2.68. Invocation command line was
14092
14093 CONFIG_FILES = $CONFIG_FILES
14094 CONFIG_HEADERS = $CONFIG_HEADERS
14095 CONFIG_LINKS = $CONFIG_LINKS
14096 CONFIG_COMMANDS = $CONFIG_COMMANDS
14097 $ $0 $@
14098
14099on `(hostname || uname -n) 2>/dev/null | sed 1q`
14100"
14101
14102_ACEOF
14103
14104case $ac_config_files in *"
14105"*) set x $ac_config_files; shift; ac_config_files=$*;;
14106esac
14107
14108case $ac_config_headers in *"
14109"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14110esac
14111
14112
14113cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14114# Files that config.status was made for.
14115config_files="$ac_config_files"
14116config_headers="$ac_config_headers"
14117config_commands="$ac_config_commands"
14118
14119_ACEOF
14120
14121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14122ac_cs_usage="\
14123\`$as_me' instantiates files and other configuration actions
14124from templates according to the current configuration. Unless the files
14125and actions are specified as TAGs, all are instantiated by default.
14126
14127Usage: $0 [OPTION]... [TAG]...
14128
14129 -h, --help print this help, then exit
14130 -V, --version print version number and configuration settings, then exit
14131 --config print configuration, then exit
14132 -q, --quiet, --silent
14133 do not print progress messages
14134 -d, --debug don't remove temporary files
14135 --recheck update $as_me by reconfiguring in the same conditions
14136 --file=FILE[:TEMPLATE]
14137 instantiate the configuration file FILE
14138 --header=FILE[:TEMPLATE]
14139 instantiate the configuration header FILE
14140
14141Configuration files:
14142$config_files
14143
14144Configuration headers:
14145$config_headers
14146
14147Configuration commands:
14148$config_commands
14149
14150Report bugs to the package provider."
14151
14152_ACEOF
14153cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14154ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14155ac_cs_version="\\
14156libjpeg config.status 8.4.0
14157configured by $0, generated by GNU Autoconf 2.68,
14158 with options \\"\$ac_cs_config\\"
14159
14160Copyright (C) 2010 Free Software Foundation, Inc.
14161This config.status script is free software; the Free Software Foundation
14162gives unlimited permission to copy, distribute and modify it."
14163
14164ac_pwd='$ac_pwd'
14165srcdir='$srcdir'
14166INSTALL='$INSTALL'
14167MKDIR_P='$MKDIR_P'
14168AWK='$AWK'
14169test -n "\$AWK" || AWK=awk
14170_ACEOF
14171
14172cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14173# The default lists apply if the user does not specify any file.
14174ac_need_defaults=:
14175while test $# != 0
14176do
14177 case $1 in
14178 --*=?*)
14179 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14180 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14181 ac_shift=:
14182 ;;
14183 --*=)
14184 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14185 ac_optarg=
14186 ac_shift=:
14187 ;;
14188 *)
14189 ac_option=$1
14190 ac_optarg=$2
14191 ac_shift=shift
14192 ;;
14193 esac
14194
14195 case $ac_option in
14196 # Handling of the options.
14197 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14198 ac_cs_recheck=: ;;
14199 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14200 $as_echo "$ac_cs_version"; exit ;;
14201 --config | --confi | --conf | --con | --co | --c )
14202 $as_echo "$ac_cs_config"; exit ;;
14203 --debug | --debu | --deb | --de | --d | -d )
14204 debug=: ;;
14205 --file | --fil | --fi | --f )
14206 $ac_shift
14207 case $ac_optarg in
14208 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14209 '') as_fn_error $? "missing file argument" ;;
14210 esac
14211 as_fn_append CONFIG_FILES " '$ac_optarg'"
14212 ac_need_defaults=false;;
14213 --header | --heade | --head | --hea )
14214 $ac_shift
14215 case $ac_optarg in
14216 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14217 esac
14218 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14219 ac_need_defaults=false;;
14220 --he | --h)
14221 # Conflict between --help and --header
14222 as_fn_error $? "ambiguous option: \`$1'
14223Try \`$0 --help' for more information.";;
14224 --help | --hel | -h )
14225 $as_echo "$ac_cs_usage"; exit ;;
14226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14227 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14228 ac_cs_silent=: ;;
14229
14230 # This is an error.
14231 -*) as_fn_error $? "unrecognized option: \`$1'
14232Try \`$0 --help' for more information." ;;
14233
14234 *) as_fn_append ac_config_targets " $1"
14235 ac_need_defaults=false ;;
14236
14237 esac
14238 shift
14239done
14240
14241ac_configure_extra_args=
14242
14243if $ac_cs_silent; then
14244 exec 6>/dev/null
14245 ac_configure_extra_args="$ac_configure_extra_args --silent"
14246fi
14247
14248_ACEOF
14249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14250if \$ac_cs_recheck; then
14251 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14252 shift
14253 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14254 CONFIG_SHELL='$SHELL'
14255 export CONFIG_SHELL
14256 exec "\$@"
14257fi
14258
14259_ACEOF
14260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14261exec 5>>config.log
14262{
14263 echo
14264 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14265## Running $as_me. ##
14266_ASBOX
14267 $as_echo "$ac_log"
14268} >&5
14269
14270_ACEOF
14271cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14272#
14273# INIT-COMMANDS
14274#
14275AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14276
14277
14278# The HP-UX ksh and POSIX shell print the target directory to stdout
14279# if CDPATH is set.
14280(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14281
14282sed_quote_subst='$sed_quote_subst'
14283double_quote_subst='$double_quote_subst'
14284delay_variable_subst='$delay_variable_subst'
14285AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14286DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14287OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14288macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14289macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14290enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14291enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14292pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14293enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14294SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14295ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14296PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14297host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14298host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14299host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14300build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14301build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14302build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14303SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14304Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14305GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14306EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14307FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14308LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14309NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14310LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14311max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14312ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14313exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14314lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14315lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14316lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14317lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14318lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14319reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14320reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14321deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14322file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14323file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14324want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14325sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14326AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14327AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14328archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14329STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14330RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14331old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14332old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14333old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14334lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14335CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14336CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14337compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14338GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14339lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14340lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14341lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14342lt_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"`'
14343nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14344lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14345objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14346MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14347lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14348lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14349lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14350lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14351lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14352need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14353MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14354DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14355NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14356LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14357OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14358OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14359libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14360shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14361extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14362archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14363enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14364export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14365whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14366compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14367old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14368old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14369archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14370archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14371module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14372module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14373with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14374allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14375no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14376hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14377hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14378hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14379hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14380hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14381hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14382hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14383inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14384link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14385always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14386export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14387exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14388include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14389prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14390postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14391file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14392variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14393need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14394need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14395version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14396runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14397shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14398shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14399libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14400library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14401soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14402install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14403postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14404postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14405finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14406finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14407hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14408sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14409sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14410hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14411enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14412enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14413enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14414old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14415striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14416
14417LTCC='$LTCC'
14418LTCFLAGS='$LTCFLAGS'
14419compiler='$compiler_DEFAULT'
14420
14421# A function that is used when there is no print builtin or printf.
14422func_fallback_echo ()
14423{
14424 eval 'cat <<_LTECHO_EOF
14425\$1
14426_LTECHO_EOF'
14427}
14428
14429# Quote evaled strings.
14430for var in AS \
14431DLLTOOL \
14432OBJDUMP \
14433SHELL \
14434ECHO \
14435PATH_SEPARATOR \
14436SED \
14437GREP \
14438EGREP \
14439FGREP \
14440LD \
14441NM \
14442LN_S \
14443lt_SP2NL \
14444lt_NL2SP \
14445reload_flag \
14446deplibs_check_method \
14447file_magic_cmd \
14448file_magic_glob \
14449want_nocaseglob \
14450sharedlib_from_linklib_cmd \
14451AR \
14452AR_FLAGS \
14453archiver_list_spec \
14454STRIP \
14455RANLIB \
14456CC \
14457CFLAGS \
14458compiler \
14459lt_cv_sys_global_symbol_pipe \
14460lt_cv_sys_global_symbol_to_cdecl \
14461lt_cv_sys_global_symbol_to_c_name_address \
14462lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14463nm_file_list_spec \
14464lt_prog_compiler_no_builtin_flag \
14465lt_prog_compiler_pic \
14466lt_prog_compiler_wl \
14467lt_prog_compiler_static \
14468lt_cv_prog_compiler_c_o \
14469need_locks \
14470MANIFEST_TOOL \
14471DSYMUTIL \
14472NMEDIT \
14473LIPO \
14474OTOOL \
14475OTOOL64 \
14476shrext_cmds \
14477export_dynamic_flag_spec \
14478whole_archive_flag_spec \
14479compiler_needs_object \
14480with_gnu_ld \
14481allow_undefined_flag \
14482no_undefined_flag \
14483hardcode_libdir_flag_spec \
14484hardcode_libdir_separator \
14485exclude_expsyms \
14486include_expsyms \
14487file_list_spec \
14488variables_saved_for_relink \
14489libname_spec \
14490library_names_spec \
14491soname_spec \
14492install_override_mode \
14493finish_eval \
14494old_striplib \
14495striplib; do
14496 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14497 *[\\\\\\\`\\"\\\$]*)
14498 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14499 ;;
14500 *)
14501 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14502 ;;
14503 esac
14504done
14505
14506# Double-quote double-evaled strings.
14507for var in reload_cmds \
14508old_postinstall_cmds \
14509old_postuninstall_cmds \
14510old_archive_cmds \
14511extract_expsyms_cmds \
14512old_archive_from_new_cmds \
14513old_archive_from_expsyms_cmds \
14514archive_cmds \
14515archive_expsym_cmds \
14516module_cmds \
14517module_expsym_cmds \
14518export_symbols_cmds \
14519prelink_cmds \
14520postlink_cmds \
14521postinstall_cmds \
14522postuninstall_cmds \
14523finish_cmds \
14524sys_lib_search_path_spec \
14525sys_lib_dlsearch_path_spec; do
14526 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14527 *[\\\\\\\`\\"\\\$]*)
14528 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14529 ;;
14530 *)
14531 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14532 ;;
14533 esac
14534done
14535
14536ac_aux_dir='$ac_aux_dir'
14537xsi_shell='$xsi_shell'
14538lt_shell_append='$lt_shell_append'
14539
14540# See if we are running on zsh, and set the options which allow our
14541# commands through without removal of \ escapes INIT.
14542if test -n "\${ZSH_VERSION+set}" ; then
14543 setopt NO_GLOB_SUBST
14544fi
14545
14546
14547 PACKAGE='$PACKAGE'
14548 VERSION='$VERSION'
14549 TIMESTAMP='$TIMESTAMP'
14550 RM='$RM'
14551 ofile='$ofile'
14552
14553
14554
14555
14556_ACEOF
14557
14558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14559
14560# Handling of arguments.
14561for ac_config_target in $ac_config_targets
14562do
14563 case $ac_config_target in
14564 "jconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS jconfig.h:jconfig.cfg" ;;
14565 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14566 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14567 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14568
14569 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14570 esac
14571done
14572
14573
14574# If the user did not use the arguments to specify the items to instantiate,
14575# then the envvar interface is used. Set only those that are not.
14576# We use the long form for the default assignment because of an extremely
14577# bizarre bug on SunOS 4.1.3.
14578if $ac_need_defaults; then
14579 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14580 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14581 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14582fi
14583
14584# Have a temporary directory for convenience. Make it in the build tree
14585# simply because there is no reason against having it here, and in addition,
14586# creating and moving files from /tmp can sometimes cause problems.
14587# Hook for its removal unless debugging.
14588# Note that there is a small window in which the directory will not be cleaned:
14589# after its creation but before its name has been assigned to `$tmp'.
14590$debug ||
14591{
14592 tmp= ac_tmp=
14593 trap 'exit_status=$?
14594 : "${ac_tmp:=$tmp}"
14595 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14596' 0
14597 trap 'as_fn_exit 1' 1 2 13 15
14598}
14599# Create a (secure) tmp directory for tmp files.
14600
14601{
14602 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14603 test -d "$tmp"
14604} ||
14605{
14606 tmp=./conf$$-$RANDOM
14607 (umask 077 && mkdir "$tmp")
14608} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14609ac_tmp=$tmp
14610
14611# Set up the scripts for CONFIG_FILES section.
14612# No need to generate them if there are no CONFIG_FILES.
14613# This happens for instance with `./config.status config.h'.
14614if test -n "$CONFIG_FILES"; then
14615
14616
14617ac_cr=`echo X | tr X '\015'`
14618# On cygwin, bash can eat \r inside `` if the user requested igncr.
14619# But we know of no other shell where ac_cr would be empty at this
14620# point, so we can use a bashism as a fallback.
14621if test "x$ac_cr" = x; then
14622 eval ac_cr=\$\'\\r\'
14623fi
14624ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14625if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14626 ac_cs_awk_cr='\\r'
14627else
14628 ac_cs_awk_cr=$ac_cr
14629fi
14630
14631echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14632_ACEOF
14633
14634
14635{
14636 echo "cat >conf$$subs.awk <<_ACEOF" &&
14637 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14638 echo "_ACEOF"
14639} >conf$$subs.sh ||
14640 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14641ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14642ac_delim='%!_!# '
14643for ac_last_try in false false false false false :; do
14644 . ./conf$$subs.sh ||
14645 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14646
14647 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14648 if test $ac_delim_n = $ac_delim_num; then
14649 break
14650 elif $ac_last_try; then
14651 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14652 else
14653 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14654 fi
14655done
14656rm -f conf$$subs.sh
14657
14658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14659cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14660_ACEOF
14661sed -n '
14662h
14663s/^/S["/; s/!.*/"]=/
14664p
14665g
14666s/^[^!]*!//
14667:repl
14668t repl
14669s/'"$ac_delim"'$//
14670t delim
14671:nl
14672h
14673s/\(.\{148\}\)..*/\1/
14674t more1
14675s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14676p
14677n
14678b repl
14679:more1
14680s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14681p
14682g
14683s/.\{148\}//
14684t nl
14685:delim
14686h
14687s/\(.\{148\}\)..*/\1/
14688t more2
14689s/["\\]/\\&/g; s/^/"/; s/$/"/
14690p
14691b
14692:more2
14693s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14694p
14695g
14696s/.\{148\}//
14697t delim
14698' <conf$$subs.awk | sed '
14699/^[^""]/{
14700 N
14701 s/\n//
14702}
14703' >>$CONFIG_STATUS || ac_write_fail=1
14704rm -f conf$$subs.awk
14705cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14706_ACAWK
14707cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14708 for (key in S) S_is_set[key] = 1
14709 FS = ""
14710
14711}
14712{
14713 line = $ 0
14714 nfields = split(line, field, "@")
14715 substed = 0
14716 len = length(field[1])
14717 for (i = 2; i < nfields; i++) {
14718 key = field[i]
14719 keylen = length(key)
14720 if (S_is_set[key]) {
14721 value = S[key]
14722 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14723 len += length(value) + length(field[++i])
14724 substed = 1
14725 } else
14726 len += 1 + keylen
14727 }
14728
14729 print line
14730}
14731
14732_ACAWK
14733_ACEOF
14734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14735if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14736 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14737else
14738 cat
14739fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14740 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14741_ACEOF
14742
14743# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14744# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14745# trailing colons and then remove the whole line if VPATH becomes empty
14746# (actually we leave an empty line to preserve line numbers).
14747if test "x$srcdir" = x.; then
14748 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14749h
14750s///
14751s/^/:/
14752s/[ ]*$/:/
14753s/:\$(srcdir):/:/g
14754s/:\${srcdir}:/:/g
14755s/:@srcdir@:/:/g
14756s/^:*//
14757s/:*$//
14758x
14759s/\(=[ ]*\).*/\1/
14760G
14761s/\n//
14762s/^[^=]*=[ ]*$//
14763}'
14764fi
14765
14766cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14767fi # test -n "$CONFIG_FILES"
14768
14769# Set up the scripts for CONFIG_HEADERS section.
14770# No need to generate them if there are no CONFIG_HEADERS.
14771# This happens for instance with `./config.status Makefile'.
14772if test -n "$CONFIG_HEADERS"; then
14773cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14774BEGIN {
14775_ACEOF
14776
14777# Transform confdefs.h into an awk script `defines.awk', embedded as
14778# here-document in config.status, that substitutes the proper values into
14779# config.h.in to produce config.h.
14780
14781# Create a delimiter string that does not exist in confdefs.h, to ease
14782# handling of long lines.
14783ac_delim='%!_!# '
14784for ac_last_try in false false :; do
14785 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14786 if test -z "$ac_tt"; then
14787 break
14788 elif $ac_last_try; then
14789 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14790 else
14791 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14792 fi
14793done
14794
14795# For the awk script, D is an array of macro values keyed by name,
14796# likewise P contains macro parameters if any. Preserve backslash
14797# newline sequences.
14798
14799ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14800sed -n '
14801s/.\{148\}/&'"$ac_delim"'/g
14802t rset
14803:rset
14804s/^[ ]*#[ ]*define[ ][ ]*/ /
14805t def
14806d
14807:def
14808s/\\$//
14809t bsnl
14810s/["\\]/\\&/g
14811s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14812D["\1"]=" \3"/p
14813s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14814d
14815:bsnl
14816s/["\\]/\\&/g
14817s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14818D["\1"]=" \3\\\\\\n"\\/p
14819t cont
14820s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14821t cont
14822d
14823:cont
14824n
14825s/.\{148\}/&'"$ac_delim"'/g
14826t clear
14827:clear
14828s/\\$//
14829t bsnlc
14830s/["\\]/\\&/g; s/^/"/; s/$/"/p
14831d
14832:bsnlc
14833s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14834b cont
14835' <confdefs.h | sed '
14836s/'"$ac_delim"'/"\\\
14837"/g' >>$CONFIG_STATUS || ac_write_fail=1
14838
14839cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14840 for (key in D) D_is_set[key] = 1
14841 FS = ""
14842}
14843/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14844 line = \$ 0
14845 split(line, arg, " ")
14846 if (arg[1] == "#") {
14847 defundef = arg[2]
14848 mac1 = arg[3]
14849 } else {
14850 defundef = substr(arg[1], 2)
14851 mac1 = arg[2]
14852 }
14853 split(mac1, mac2, "(") #)
14854 macro = mac2[1]
14855 prefix = substr(line, 1, index(line, defundef) - 1)
14856 if (D_is_set[macro]) {
14857 # Preserve the white space surrounding the "#".
14858 print prefix "define", macro P[macro] D[macro]
14859 next
14860 } else {
14861 # Replace #undef with comments. This is necessary, for example,
14862 # in the case of _POSIX_SOURCE, which is predefined and required
14863 # on some systems where configure will not decide to define it.
14864 if (defundef == "undef") {
14865 print "/*", prefix defundef, macro, "*/"
14866 next
14867 }
14868 }
14869}
14870{ print }
14871_ACAWK
14872_ACEOF
14873cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14874 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14875fi # test -n "$CONFIG_HEADERS"
14876
14877
14878eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14879shift
14880for ac_tag
14881do
14882 case $ac_tag in
14883 :[FHLC]) ac_mode=$ac_tag; continue;;
14884 esac
14885 case $ac_mode$ac_tag in
14886 :[FHL]*:*);;
14887 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14888 :[FH]-) ac_tag=-:-;;
14889 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14890 esac
14891 ac_save_IFS=$IFS
14892 IFS=:
14893 set x $ac_tag
14894 IFS=$ac_save_IFS
14895 shift
14896 ac_file=$1
14897 shift
14898
14899 case $ac_mode in
14900 :L) ac_source=$1;;
14901 :[FH])
14902 ac_file_inputs=
14903 for ac_f
14904 do
14905 case $ac_f in
14906 -) ac_f="$ac_tmp/stdin";;
14907 *) # Look for the file first in the build tree, then in the source tree
14908 # (if the path is not absolute). The absolute path cannot be DOS-style,
14909 # because $ac_f cannot contain `:'.
14910 test -f "$ac_f" ||
14911 case $ac_f in
14912 [\\/$]*) false;;
14913 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14914 esac ||
14915 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14916 esac
14917 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14918 as_fn_append ac_file_inputs " '$ac_f'"
14919 done
14920
14921 # Let's still pretend it is `configure' which instantiates (i.e., don't
14922 # use $as_me), people would be surprised to read:
14923 # /* config.h. Generated by config.status. */
14924 configure_input='Generated from '`
14925 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14926 `' by configure.'
14927 if test x"$ac_file" != x-; then
14928 configure_input="$ac_file. $configure_input"
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14930$as_echo "$as_me: creating $ac_file" >&6;}
14931 fi
14932 # Neutralize special characters interpreted by sed in replacement strings.
14933 case $configure_input in #(
14934 *\&* | *\|* | *\\* )
14935 ac_sed_conf_input=`$as_echo "$configure_input" |
14936 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14937 *) ac_sed_conf_input=$configure_input;;
14938 esac
14939
14940 case $ac_tag in
14941 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14942 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14943 esac
14944 ;;
14945 esac
14946
14947 ac_dir=`$as_dirname -- "$ac_file" ||
14948$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14949 X"$ac_file" : 'X\(//\)[^/]' \| \
14950 X"$ac_file" : 'X\(//\)$' \| \
14951 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14952$as_echo X"$ac_file" |
14953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14954 s//\1/
14955 q
14956 }
14957 /^X\(\/\/\)[^/].*/{
14958 s//\1/
14959 q
14960 }
14961 /^X\(\/\/\)$/{
14962 s//\1/
14963 q
14964 }
14965 /^X\(\/\).*/{
14966 s//\1/
14967 q
14968 }
14969 s/.*/./; q'`
14970 as_dir="$ac_dir"; as_fn_mkdir_p
14971 ac_builddir=.
14972
14973case "$ac_dir" in
14974.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14975*)
14976 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14977 # A ".." for each directory in $ac_dir_suffix.
14978 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14979 case $ac_top_builddir_sub in
14980 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14981 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14982 esac ;;
14983esac
14984ac_abs_top_builddir=$ac_pwd
14985ac_abs_builddir=$ac_pwd$ac_dir_suffix
14986# for backward compatibility:
14987ac_top_builddir=$ac_top_build_prefix
14988
14989case $srcdir in
14990 .) # We are building in place.
14991 ac_srcdir=.
14992 ac_top_srcdir=$ac_top_builddir_sub
14993 ac_abs_top_srcdir=$ac_pwd ;;
14994 [\\/]* | ?:[\\/]* ) # Absolute name.
14995 ac_srcdir=$srcdir$ac_dir_suffix;
14996 ac_top_srcdir=$srcdir
14997 ac_abs_top_srcdir=$srcdir ;;
14998 *) # Relative name.
14999 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15000 ac_top_srcdir=$ac_top_build_prefix$srcdir
15001 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15002esac
15003ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15004
15005
15006 case $ac_mode in
15007 :F)
15008 #
15009 # CONFIG_FILE
15010 #
15011
15012 case $INSTALL in
15013 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15014 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15015 esac
15016 ac_MKDIR_P=$MKDIR_P
15017 case $MKDIR_P in
15018 [\\/$]* | ?:[\\/]* ) ;;
15019 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15020 esac
15021_ACEOF
15022
15023cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15024# If the template does not know about datarootdir, expand it.
15025# FIXME: This hack should be removed a few years after 2.60.
15026ac_datarootdir_hack=; ac_datarootdir_seen=
15027ac_sed_dataroot='
15028/datarootdir/ {
15029 p
15030 q
15031}
15032/@datadir@/p
15033/@docdir@/p
15034/@infodir@/p
15035/@localedir@/p
15036/@mandir@/p'
15037case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15038*datarootdir*) ac_datarootdir_seen=yes;;
15039*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15041$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15042_ACEOF
15043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15044 ac_datarootdir_hack='
15045 s&@datadir@&$datadir&g
15046 s&@docdir@&$docdir&g
15047 s&@infodir@&$infodir&g
15048 s&@localedir@&$localedir&g
15049 s&@mandir@&$mandir&g
15050 s&\\\${datarootdir}&$datarootdir&g' ;;
15051esac
15052_ACEOF
15053
15054# Neutralize VPATH when `$srcdir' = `.'.
15055# Shell code in configure.ac might set extrasub.
15056# FIXME: do we really want to maintain this feature?
15057cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15058ac_sed_extra="$ac_vpsub
15059$extrasub
15060_ACEOF
15061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15062:t
15063/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15064s|@configure_input@|$ac_sed_conf_input|;t t
15065s&@top_builddir@&$ac_top_builddir_sub&;t t
15066s&@top_build_prefix@&$ac_top_build_prefix&;t t
15067s&@srcdir@&$ac_srcdir&;t t
15068s&@abs_srcdir@&$ac_abs_srcdir&;t t
15069s&@top_srcdir@&$ac_top_srcdir&;t t
15070s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15071s&@builddir@&$ac_builddir&;t t
15072s&@abs_builddir@&$ac_abs_builddir&;t t
15073s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15074s&@INSTALL@&$ac_INSTALL&;t t
15075s&@MKDIR_P@&$ac_MKDIR_P&;t t
15076$ac_datarootdir_hack
15077"
15078eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15079 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15080
15081test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15082 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15083 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15084 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15086which seems to be undefined. Please make sure it is defined" >&5
15087$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15088which seems to be undefined. Please make sure it is defined" >&2;}
15089
15090 rm -f "$ac_tmp/stdin"
15091 case $ac_file in
15092 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15093 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15094 esac \
15095 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15096 ;;
15097 :H)
15098 #
15099 # CONFIG_HEADER
15100 #
15101 if test x"$ac_file" != x-; then
15102 {
15103 $as_echo "/* $configure_input */" \
15104 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15105 } >"$ac_tmp/config.h" \
15106 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15107 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15109$as_echo "$as_me: $ac_file is unchanged" >&6;}
15110 else
15111 rm -f "$ac_file"
15112 mv "$ac_tmp/config.h" "$ac_file" \
15113 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15114 fi
15115 else
15116 $as_echo "/* $configure_input */" \
15117 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15118 || as_fn_error $? "could not create -" "$LINENO" 5
15119 fi
15120# Compute "$ac_file"'s index in $config_headers.
15121_am_arg="$ac_file"
15122_am_stamp_count=1
15123for _am_header in $config_headers :; do
15124 case $_am_header in
15125 $_am_arg | $_am_arg:* )
15126 break ;;
15127 * )
15128 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15129 esac
15130done
15131echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15132$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15133 X"$_am_arg" : 'X\(//\)[^/]' \| \
15134 X"$_am_arg" : 'X\(//\)$' \| \
15135 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15136$as_echo X"$_am_arg" |
15137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15138 s//\1/
15139 q
15140 }
15141 /^X\(\/\/\)[^/].*/{
15142 s//\1/
15143 q
15144 }
15145 /^X\(\/\/\)$/{
15146 s//\1/
15147 q
15148 }
15149 /^X\(\/\).*/{
15150 s//\1/
15151 q
15152 }
15153 s/.*/./; q'`/stamp-h$_am_stamp_count
15154 ;;
15155
15156 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15157$as_echo "$as_me: executing $ac_file commands" >&6;}
15158 ;;
15159 esac
15160
15161
15162 case $ac_file$ac_mode in
15163 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15164 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15165 # are listed without --file. Let's play safe and only enable the eval
15166 # if we detect the quoting.
15167 case $CONFIG_FILES in
15168 *\'*) eval set x "$CONFIG_FILES" ;;
15169 *) set x $CONFIG_FILES ;;
15170 esac
15171 shift
15172 for mf
15173 do
15174 # Strip MF so we end up with the name of the file.
15175 mf=`echo "$mf" | sed -e 's/:.*$//'`
15176 # Check whether this is an Automake generated Makefile or not.
15177 # We used to match only the files named `Makefile.in', but
15178 # some people rename them; so instead we look at the file content.
15179 # Grep'ing the first line is not enough: some people post-process
15180 # each Makefile.in and add a new line on top of each file to say so.
15181 # Grep'ing the whole file is not good either: AIX grep has a line
15182 # limit of 2048, but all sed's we know have understand at least 4000.
15183 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15184 dirpart=`$as_dirname -- "$mf" ||
15185$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15186 X"$mf" : 'X\(//\)[^/]' \| \
15187 X"$mf" : 'X\(//\)$' \| \
15188 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15189$as_echo X"$mf" |
15190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15191 s//\1/
15192 q
15193 }
15194 /^X\(\/\/\)[^/].*/{
15195 s//\1/
15196 q
15197 }
15198 /^X\(\/\/\)$/{
15199 s//\1/
15200 q
15201 }
15202 /^X\(\/\).*/{
15203 s//\1/
15204 q
15205 }
15206 s/.*/./; q'`
15207 else
15208 continue
15209 fi
15210 # Extract the definition of DEPDIR, am__include, and am__quote
15211 # from the Makefile without running `make'.
15212 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15213 test -z "$DEPDIR" && continue
15214 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15215 test -z "am__include" && continue
15216 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15217 # When using ansi2knr, U may be empty or an underscore; expand it
15218 U=`sed -n 's/^U = //p' < "$mf"`
15219 # Find all dependency output files, they are included files with
15220 # $(DEPDIR) in their names. We invoke sed twice because it is the
15221 # simplest approach to changing $(DEPDIR) to its actual value in the
15222 # expansion.
15223 for file in `sed -n "
15224 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15225 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15226 # Make sure the directory exists.
15227 test -f "$dirpart/$file" && continue
15228 fdir=`$as_dirname -- "$file" ||
15229$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15230 X"$file" : 'X\(//\)[^/]' \| \
15231 X"$file" : 'X\(//\)$' \| \
15232 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15233$as_echo X"$file" |
15234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15235 s//\1/
15236 q
15237 }
15238 /^X\(\/\/\)[^/].*/{
15239 s//\1/
15240 q
15241 }
15242 /^X\(\/\/\)$/{
15243 s//\1/
15244 q
15245 }
15246 /^X\(\/\).*/{
15247 s//\1/
15248 q
15249 }
15250 s/.*/./; q'`
15251 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15252 # echo "creating $dirpart/$file"
15253 echo '# dummy' > "$dirpart/$file"
15254 done
15255 done
15256}
15257 ;;
15258 "libtool":C)
15259
15260 # See if we are running on zsh, and set the options which allow our
15261 # commands through without removal of \ escapes.
15262 if test -n "${ZSH_VERSION+set}" ; then
15263 setopt NO_GLOB_SUBST
15264 fi
15265
15266 cfgfile="${ofile}T"
15267 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15268 $RM "$cfgfile"
15269
15270 cat <<_LT_EOF >> "$cfgfile"
15271#! $SHELL
15272
15273# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15274# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15275# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15276# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15277#
15278# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15279# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15280# Foundation, Inc.
15281# Written by Gordon Matzigkeit, 1996
15282#
15283# This file is part of GNU Libtool.
15284#
15285# GNU Libtool is free software; you can redistribute it and/or
15286# modify it under the terms of the GNU General Public License as
15287# published by the Free Software Foundation; either version 2 of
15288# the License, or (at your option) any later version.
15289#
15290# As a special exception to the GNU General Public License,
15291# if you distribute this file as part of a program or library that
15292# is built using GNU Libtool, you may include this file under the
15293# same distribution terms that you use for the rest of that program.
15294#
15295# GNU Libtool is distributed in the hope that it will be useful,
15296# but WITHOUT ANY WARRANTY; without even the implied warranty of
15297# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15298# GNU General Public License for more details.
15299#
15300# You should have received a copy of the GNU General Public License
15301# along with GNU Libtool; see the file COPYING. If not, a copy
15302# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15303# obtained by writing to the Free Software Foundation, Inc.,
15304# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15305
15306
15307# The names of the tagged configurations supported by this script.
15308available_tags=""
15309
15310# ### BEGIN LIBTOOL CONFIG
15311
15312# Assembler program.
15313AS=$lt_AS
15314
15315# DLL creation program.
15316DLLTOOL=$lt_DLLTOOL
15317
15318# Object dumper program.
15319OBJDUMP=$lt_OBJDUMP
15320
15321# Which release of libtool.m4 was used?
15322macro_version=$macro_version
15323macro_revision=$macro_revision
15324
15325# Whether or not to build shared libraries.
15326build_libtool_libs=$enable_shared
15327
15328# Whether or not to build static libraries.
15329build_old_libs=$enable_static
15330
15331# What type of objects to build.
15332pic_mode=$pic_mode
15333
15334# Whether or not to optimize for fast installation.
15335fast_install=$enable_fast_install
15336
15337# Shell to use when invoking shell scripts.
15338SHELL=$lt_SHELL
15339
15340# An echo program that protects backslashes.
15341ECHO=$lt_ECHO
15342
15343# The PATH separator for the build system.
15344PATH_SEPARATOR=$lt_PATH_SEPARATOR
15345
15346# The host system.
15347host_alias=$host_alias
15348host=$host
15349host_os=$host_os
15350
15351# The build system.
15352build_alias=$build_alias
15353build=$build
15354build_os=$build_os
15355
15356# A sed program that does not truncate output.
15357SED=$lt_SED
15358
15359# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15360Xsed="\$SED -e 1s/^X//"
15361
15362# A grep program that handles long lines.
15363GREP=$lt_GREP
15364
15365# An ERE matcher.
15366EGREP=$lt_EGREP
15367
15368# A literal string matcher.
15369FGREP=$lt_FGREP
15370
15371# A BSD- or MS-compatible name lister.
15372NM=$lt_NM
15373
15374# Whether we need soft or hard links.
15375LN_S=$lt_LN_S
15376
15377# What is the maximum length of a command?
15378max_cmd_len=$max_cmd_len
15379
15380# Object file suffix (normally "o").
15381objext=$ac_objext
15382
15383# Executable file suffix (normally "").
15384exeext=$exeext
15385
15386# whether the shell understands "unset".
15387lt_unset=$lt_unset
15388
15389# turn spaces into newlines.
15390SP2NL=$lt_lt_SP2NL
15391
15392# turn newlines into spaces.
15393NL2SP=$lt_lt_NL2SP
15394
15395# convert \$build file names to \$host format.
15396to_host_file_cmd=$lt_cv_to_host_file_cmd
15397
15398# convert \$build files to toolchain format.
15399to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15400
15401# Method to check whether dependent libraries are shared objects.
15402deplibs_check_method=$lt_deplibs_check_method
15403
15404# Command to use when deplibs_check_method = "file_magic".
15405file_magic_cmd=$lt_file_magic_cmd
15406
15407# How to find potential files when deplibs_check_method = "file_magic".
15408file_magic_glob=$lt_file_magic_glob
15409
15410# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15411want_nocaseglob=$lt_want_nocaseglob
15412
15413# Command to associate shared and link libraries.
15414sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15415
15416# The archiver.
15417AR=$lt_AR
15418
15419# Flags to create an archive.
15420AR_FLAGS=$lt_AR_FLAGS
15421
15422# How to feed a file listing to the archiver.
15423archiver_list_spec=$lt_archiver_list_spec
15424
15425# A symbol stripping program.
15426STRIP=$lt_STRIP
15427
15428# Commands used to install an old-style archive.
15429RANLIB=$lt_RANLIB
15430old_postinstall_cmds=$lt_old_postinstall_cmds
15431old_postuninstall_cmds=$lt_old_postuninstall_cmds
15432
15433# Whether to use a lock for old archive extraction.
15434lock_old_archive_extraction=$lock_old_archive_extraction
15435
15436# A C compiler.
15437LTCC=$lt_CC
15438
15439# LTCC compiler flags.
15440LTCFLAGS=$lt_CFLAGS
15441
15442# Take the output of nm and produce a listing of raw symbols and C names.
15443global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15444
15445# Transform the output of nm in a proper C declaration.
15446global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15447
15448# Transform the output of nm in a C name address pair.
15449global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15450
15451# Transform the output of nm in a C name address pair when lib prefix is needed.
15452global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15453
15454# Specify filename containing input files for \$NM.
15455nm_file_list_spec=$lt_nm_file_list_spec
15456
15457# The root where to search for dependent libraries,and in which our libraries should be installed.
15458lt_sysroot=$lt_sysroot
15459
15460# The name of the directory that contains temporary libtool files.
15461objdir=$objdir
15462
15463# Used to examine libraries when file_magic_cmd begins with "file".
15464MAGIC_CMD=$MAGIC_CMD
15465
15466# Must we lock files when doing compilation?
15467need_locks=$lt_need_locks
15468
15469# Manifest tool.
15470MANIFEST_TOOL=$lt_MANIFEST_TOOL
15471
15472# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15473DSYMUTIL=$lt_DSYMUTIL
15474
15475# Tool to change global to local symbols on Mac OS X.
15476NMEDIT=$lt_NMEDIT
15477
15478# Tool to manipulate fat objects and archives on Mac OS X.
15479LIPO=$lt_LIPO
15480
15481# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15482OTOOL=$lt_OTOOL
15483
15484# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15485OTOOL64=$lt_OTOOL64
15486
15487# Old archive suffix (normally "a").
15488libext=$libext
15489
15490# Shared library suffix (normally ".so").
15491shrext_cmds=$lt_shrext_cmds
15492
15493# The commands to extract the exported symbol list from a shared archive.
15494extract_expsyms_cmds=$lt_extract_expsyms_cmds
15495
15496# Variables whose values should be saved in libtool wrapper scripts and
15497# restored at link time.
15498variables_saved_for_relink=$lt_variables_saved_for_relink
15499
15500# Do we need the "lib" prefix for modules?
15501need_lib_prefix=$need_lib_prefix
15502
15503# Do we need a version for libraries?
15504need_version=$need_version
15505
15506# Library versioning type.
15507version_type=$version_type
15508
15509# Shared library runtime path variable.
15510runpath_var=$runpath_var
15511
15512# Shared library path variable.
15513shlibpath_var=$shlibpath_var
15514
15515# Is shlibpath searched before the hard-coded library search path?
15516shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15517
15518# Format of library name prefix.
15519libname_spec=$lt_libname_spec
15520
15521# List of archive names. First name is the real one, the rest are links.
15522# The last name is the one that the linker finds with -lNAME
15523library_names_spec=$lt_library_names_spec
15524
15525# The coded name of the library, if different from the real name.
15526soname_spec=$lt_soname_spec
15527
15528# Permission mode override for installation of shared libraries.
15529install_override_mode=$lt_install_override_mode
15530
15531# Command to use after installation of a shared archive.
15532postinstall_cmds=$lt_postinstall_cmds
15533
15534# Command to use after uninstallation of a shared archive.
15535postuninstall_cmds=$lt_postuninstall_cmds
15536
15537# Commands used to finish a libtool library installation in a directory.
15538finish_cmds=$lt_finish_cmds
15539
15540# As "finish_cmds", except a single script fragment to be evaled but
15541# not shown.
15542finish_eval=$lt_finish_eval
15543
15544# Whether we should hardcode library paths into libraries.
15545hardcode_into_libs=$hardcode_into_libs
15546
15547# Compile-time system search path for libraries.
15548sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15549
15550# Run-time system search path for libraries.
15551sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15552
15553# Whether dlopen is supported.
15554dlopen_support=$enable_dlopen
15555
15556# Whether dlopen of programs is supported.
15557dlopen_self=$enable_dlopen_self
15558
15559# Whether dlopen of statically linked programs is supported.
15560dlopen_self_static=$enable_dlopen_self_static
15561
15562# Commands to strip libraries.
15563old_striplib=$lt_old_striplib
15564striplib=$lt_striplib
15565
15566
15567# The linker used to build libraries.
15568LD=$lt_LD
15569
15570# How to create reloadable object files.
15571reload_flag=$lt_reload_flag
15572reload_cmds=$lt_reload_cmds
15573
15574# Commands used to build an old-style archive.
15575old_archive_cmds=$lt_old_archive_cmds
15576
15577# A language specific compiler.
15578CC=$lt_compiler
15579
15580# Is the compiler the GNU compiler?
15581with_gcc=$GCC
15582
15583# Compiler flag to turn off builtin functions.
15584no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15585
15586# Additional compiler flags for building library objects.
15587pic_flag=$lt_lt_prog_compiler_pic
15588
15589# How to pass a linker flag through the compiler.
15590wl=$lt_lt_prog_compiler_wl
15591
15592# Compiler flag to prevent dynamic linking.
15593link_static_flag=$lt_lt_prog_compiler_static
15594
15595# Does compiler simultaneously support -c and -o options?
15596compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15597
15598# Whether or not to add -lc for building shared libraries.
15599build_libtool_need_lc=$archive_cmds_need_lc
15600
15601# Whether or not to disallow shared libs when runtime libs are static.
15602allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15603
15604# Compiler flag to allow reflexive dlopens.
15605export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15606
15607# Compiler flag to generate shared objects directly from archives.
15608whole_archive_flag_spec=$lt_whole_archive_flag_spec
15609
15610# Whether the compiler copes with passing no objects directly.
15611compiler_needs_object=$lt_compiler_needs_object
15612
15613# Create an old-style archive from a shared archive.
15614old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15615
15616# Create a temporary old-style archive to link instead of a shared archive.
15617old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15618
15619# Commands used to build a shared archive.
15620archive_cmds=$lt_archive_cmds
15621archive_expsym_cmds=$lt_archive_expsym_cmds
15622
15623# Commands used to build a loadable module if different from building
15624# a shared archive.
15625module_cmds=$lt_module_cmds
15626module_expsym_cmds=$lt_module_expsym_cmds
15627
15628# Whether we are building with GNU ld or not.
15629with_gnu_ld=$lt_with_gnu_ld
15630
15631# Flag that allows shared libraries with undefined symbols to be built.
15632allow_undefined_flag=$lt_allow_undefined_flag
15633
15634# Flag that enforces no undefined symbols.
15635no_undefined_flag=$lt_no_undefined_flag
15636
15637# Flag to hardcode \$libdir into a binary during linking.
15638# This must work even if \$libdir does not exist
15639hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15640
15641# Whether we need a single "-rpath" flag with a separated argument.
15642hardcode_libdir_separator=$lt_hardcode_libdir_separator
15643
15644# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15645# DIR into the resulting binary.
15646hardcode_direct=$hardcode_direct
15647
15648# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15649# DIR into the resulting binary and the resulting library dependency is
15650# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15651# library is relocated.
15652hardcode_direct_absolute=$hardcode_direct_absolute
15653
15654# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15655# into the resulting binary.
15656hardcode_minus_L=$hardcode_minus_L
15657
15658# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15659# into the resulting binary.
15660hardcode_shlibpath_var=$hardcode_shlibpath_var
15661
15662# Set to "yes" if building a shared library automatically hardcodes DIR
15663# into the library and all subsequent libraries and executables linked
15664# against it.
15665hardcode_automatic=$hardcode_automatic
15666
15667# Set to yes if linker adds runtime paths of dependent libraries
15668# to runtime path list.
15669inherit_rpath=$inherit_rpath
15670
15671# Whether libtool must link a program against all its dependency libraries.
15672link_all_deplibs=$link_all_deplibs
15673
15674# Set to "yes" if exported symbols are required.
15675always_export_symbols=$always_export_symbols
15676
15677# The commands to list exported symbols.
15678export_symbols_cmds=$lt_export_symbols_cmds
15679
15680# Symbols that should not be listed in the preloaded symbols.
15681exclude_expsyms=$lt_exclude_expsyms
15682
15683# Symbols that must always be exported.
15684include_expsyms=$lt_include_expsyms
15685
15686# Commands necessary for linking programs (against libraries) with templates.
15687prelink_cmds=$lt_prelink_cmds
15688
15689# Commands necessary for finishing linking programs.
15690postlink_cmds=$lt_postlink_cmds
15691
15692# Specify filename containing input files.
15693file_list_spec=$lt_file_list_spec
15694
15695# How to hardcode a shared library path into an executable.
15696hardcode_action=$hardcode_action
15697
15698# ### END LIBTOOL CONFIG
15699
15700_LT_EOF
15701
15702 case $host_os in
15703 aix3*)
15704 cat <<\_LT_EOF >> "$cfgfile"
15705# AIX sometimes has problems with the GCC collect2 program. For some
15706# reason, if we set the COLLECT_NAMES environment variable, the problems
15707# vanish in a puff of smoke.
15708if test "X${COLLECT_NAMES+set}" != Xset; then
15709 COLLECT_NAMES=
15710 export COLLECT_NAMES
15711fi
15712_LT_EOF
15713 ;;
15714 esac
15715
15716
15717ltmain="$ac_aux_dir/ltmain.sh"
15718
15719
15720 # We use sed instead of cat because bash on DJGPP gets confused if
15721 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15722 # text mode, it properly converts lines to CR/LF. This bash problem
15723 # is reportedly fixed, but why not run on old versions too?
15724 sed '$q' "$ltmain" >> "$cfgfile" \
15725 || (rm -f "$cfgfile"; exit 1)
15726
15727 if test x"$xsi_shell" = xyes; then
15728 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15729func_dirname ()\
15730{\
15731\ case ${1} in\
15732\ */*) func_dirname_result="${1%/*}${2}" ;;\
15733\ * ) func_dirname_result="${3}" ;;\
15734\ esac\
15735} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15736 && mv -f "$cfgfile.tmp" "$cfgfile" \
15737 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15738test 0 -eq $? || _lt_function_replace_fail=:
15739
15740
15741 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15742func_basename ()\
15743{\
15744\ func_basename_result="${1##*/}"\
15745} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15746 && mv -f "$cfgfile.tmp" "$cfgfile" \
15747 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15748test 0 -eq $? || _lt_function_replace_fail=:
15749
15750
15751 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15752func_dirname_and_basename ()\
15753{\
15754\ case ${1} in\
15755\ */*) func_dirname_result="${1%/*}${2}" ;;\
15756\ * ) func_dirname_result="${3}" ;;\
15757\ esac\
15758\ func_basename_result="${1##*/}"\
15759} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15760 && mv -f "$cfgfile.tmp" "$cfgfile" \
15761 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15762test 0 -eq $? || _lt_function_replace_fail=:
15763
15764
15765 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15766func_stripname ()\
15767{\
15768\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15769\ # positional parameters, so assign one to ordinary parameter first.\
15770\ func_stripname_result=${3}\
15771\ func_stripname_result=${func_stripname_result#"${1}"}\
15772\ func_stripname_result=${func_stripname_result%"${2}"}\
15773} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15774 && mv -f "$cfgfile.tmp" "$cfgfile" \
15775 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15776test 0 -eq $? || _lt_function_replace_fail=:
15777
15778
15779 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15780func_split_long_opt ()\
15781{\
15782\ func_split_long_opt_name=${1%%=*}\
15783\ func_split_long_opt_arg=${1#*=}\
15784} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15785 && mv -f "$cfgfile.tmp" "$cfgfile" \
15786 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15787test 0 -eq $? || _lt_function_replace_fail=:
15788
15789
15790 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15791func_split_short_opt ()\
15792{\
15793\ func_split_short_opt_arg=${1#??}\
15794\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15795} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15796 && mv -f "$cfgfile.tmp" "$cfgfile" \
15797 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15798test 0 -eq $? || _lt_function_replace_fail=:
15799
15800
15801 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15802func_lo2o ()\
15803{\
15804\ case ${1} in\
15805\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15806\ *) func_lo2o_result=${1} ;;\
15807\ esac\
15808} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15809 && mv -f "$cfgfile.tmp" "$cfgfile" \
15810 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15811test 0 -eq $? || _lt_function_replace_fail=:
15812
15813
15814 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15815func_xform ()\
15816{\
15817 func_xform_result=${1%.*}.lo\
15818} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15819 && mv -f "$cfgfile.tmp" "$cfgfile" \
15820 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15821test 0 -eq $? || _lt_function_replace_fail=:
15822
15823
15824 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15825func_arith ()\
15826{\
15827 func_arith_result=$(( $* ))\
15828} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15829 && mv -f "$cfgfile.tmp" "$cfgfile" \
15830 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15831test 0 -eq $? || _lt_function_replace_fail=:
15832
15833
15834 sed -e '/^func_len ()$/,/^} # func_len /c\
15835func_len ()\
15836{\
15837 func_len_result=${#1}\
15838} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15839 && mv -f "$cfgfile.tmp" "$cfgfile" \
15840 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15841test 0 -eq $? || _lt_function_replace_fail=:
15842
15843fi
15844
15845if test x"$lt_shell_append" = xyes; then
15846 sed -e '/^func_append ()$/,/^} # func_append /c\
15847func_append ()\
15848{\
15849 eval "${1}+=\\${2}"\
15850} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15851 && mv -f "$cfgfile.tmp" "$cfgfile" \
15852 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15853test 0 -eq $? || _lt_function_replace_fail=:
15854
15855
15856 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15857func_append_quoted ()\
15858{\
15859\ func_quote_for_eval "${2}"\
15860\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15861} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15862 && mv -f "$cfgfile.tmp" "$cfgfile" \
15863 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15864test 0 -eq $? || _lt_function_replace_fail=:
15865
15866
15867 # Save a `func_append' function call where possible by direct use of '+='
15868 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15869 && mv -f "$cfgfile.tmp" "$cfgfile" \
15870 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15871 test 0 -eq $? || _lt_function_replace_fail=:
15872else
15873 # Save a `func_append' function call even when '+=' is not available
15874 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15875 && mv -f "$cfgfile.tmp" "$cfgfile" \
15876 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15877 test 0 -eq $? || _lt_function_replace_fail=:
15878fi
15879
15880if test x"$_lt_function_replace_fail" = x":"; then
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15882$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15883fi
15884
15885
15886 mv -f "$cfgfile" "$ofile" ||
15887 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15888 chmod +x "$ofile"
15889
15890 ;;
15891
15892 esac
15893done # for ac_tag
15894
15895
15896as_fn_exit 0
15897_ACEOF
15898ac_clean_files=$ac_clean_files_save
15899
15900test $ac_write_fail = 0 ||
15901 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15902
15903
15904# configure is writing to config.log, and then calls config.status.
15905# config.status does its own redirection, appending to config.log.
15906# Unfortunately, on DOS this fails, as config.log is still kept open
15907# by configure, so config.status won't be able to write to it; its
15908# output is simply discarded. So we exec the FD to /dev/null,
15909# effectively closing config.log, so it can be properly (re)opened and
15910# appended to by config.status. When coming back to configure, we
15911# need to make the FD available again.
15912if test "$no_create" != yes; then
15913 ac_cs_success=:
15914 ac_config_status_args=
15915 test "$silent" = yes &&
15916 ac_config_status_args="$ac_config_status_args --quiet"
15917 exec 5>/dev/null
15918 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15919 exec 5>>config.log
15920 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15921 # would make configure fail if this is the last instruction.
15922 $ac_cs_success || as_fn_exit 1
15923fi
15924if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15926$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15927fi
15928