blob: 6b30db6167013f477a083344f3c61babfec2c358 [file] [log] [blame]
drh75897232000-05-29 14:26:00 +00001#! /bin/sh
drh75897232000-05-29 14:26:00 +00002# Guess values for system-dependent variables and create Makefiles.
dana9f39fd2011-08-12 16:34:42 +00003# Generated by GNU Autoconf 2.65 for sqlite 3.7.8.
4#
drh75897232000-05-29 14:26:00 +00005#
drh8b727472009-01-19 18:18:40 +00006# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
dana9f39fd2011-08-12 16:34:42 +00007# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8# Inc.
9#
10#
drh75897232000-05-29 14:26:00 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
dana9f39fd2011-08-12 16:34:42 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000016
drh8b727472009-01-19 18:18:40 +000017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
dana9f39fd2011-08-12 16:34:42 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
a.rottmann84e63352003-03-24 09:42:16 +000020 emulate sh
21 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000025 setopt NO_GLOB_SUBST
26else
dana9f39fd2011-08-12 16:34:42 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
drh8b727472009-01-19 18:18:40 +000032esac
a.rottmann84e63352003-03-24 09:42:16 +000033fi
drh8b727472009-01-19 18:18:40 +000034
35
drh8b727472009-01-19 18:18:40 +000036as_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
dana9f39fd2011-08-12 16:34:42 +000043# 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
drh8b727472009-01-19 18:18:40 +000050 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;
dana9f39fd2011-08-12 16:34:42 +000060 case $arg in #(
drh8b727472009-01-19 18:18:40 +000061 *"$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
a.rottmann84e63352003-03-24 09:42:16 +000082
mlcreech94984912008-03-04 19:03:08 +000083
drh8b727472009-01-19 18:18:40 +000084# 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.
dana9f39fd2011-08-12 16:34:42 +000092case $0 in #((
drh8b727472009-01-19 18:18:40 +000093 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +000099 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
drh8b727472009-01-19 18:18:40 +0000101IFS=$as_save_IFS
102
103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
dana9f39fd2011-08-12 16:34:42 +0000112 exit 1
drh8b727472009-01-19 18:18:40 +0000113fi
114
dana9f39fd2011-08-12 16:34:42 +0000115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
drh8b727472009-01-19 18:18:40 +0000122done
mlcreech94984912008-03-04 19:03:08 +0000123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
drh8b727472009-01-19 18:18:40 +0000128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +0000132
dana9f39fd2011-08-12 16:34:42 +0000133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235 fi
236 exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
357
358
359# as_fn_error ERROR [LINENO LOG_FD]
360# ---------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with status $?, using 1 if that was 0.
364as_fn_error ()
365{
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373} # as_fn_error
374
drh8b727472009-01-19 18:18:40 +0000375if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +0000377 as_expr=expr
378else
379 as_expr=false
380fi
381
drh8b727472009-01-19 18:18:40 +0000382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +0000383 as_basename=basename
384else
385 as_basename=false
386fi
387
dana9f39fd2011-08-12 16:34:42 +0000388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
mlcreech94984912008-03-04 19:03:08 +0000393
drh8b727472009-01-19 18:18:40 +0000394as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +0000395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +0000397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398$as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
dana9f39fd2011-08-12 16:34:42 +0000413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
mlcreech94984912008-03-04 19:03:08 +0000419
420
dana9f39fd2011-08-12 16:34:42 +0000421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
drh8b727472009-01-19 18:18:40 +0000426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +0000430 sed '
drh8b727472009-01-19 18:18:40 +0000431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
a.rottmann84e63352003-03-24 09:42:16 +0000435 N
drh8b727472009-01-19 18:18:40 +0000436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a.rottmann84e63352003-03-24 09:42:16 +0000438 t loop
drh8b727472009-01-19 18:18:40 +0000439 s/-\n.*//
a.rottmann84e63352003-03-24 09:42:16 +0000440 ' >$as_me.lineno &&
drh8b727472009-01-19 18:18:40 +0000441 chmod +x "$as_me.lineno" ||
dana9f39fd2011-08-12 16:34:42 +0000442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
a.rottmann84e63352003-03-24 09:42:16 +0000443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
drh8b727472009-01-19 18:18:40 +0000446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
a.rottmann84e63352003-03-24 09:42:16 +0000448 # Exit status is that of the last command.
449 exit
450}
451
drh8b727472009-01-19 18:18:40 +0000452ECHO_C= ECHO_N= ECHO_T=
dana9f39fd2011-08-12 16:34:42 +0000453case `echo -n x` in #(((((
drh8b727472009-01-19 18:18:40 +0000454-n*)
dana9f39fd2011-08-12 16:34:42 +0000455 case `echo 'xy\c'` in
drh8b727472009-01-19 18:18:40 +0000456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
dana9f39fd2011-08-12 16:34:42 +0000457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
drh8b727472009-01-19 18:18:40 +0000460 esac;;
461*)
462 ECHO_N='-n';;
463esac
a.rottmann84e63352003-03-24 09:42:16 +0000464
465rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +0000466if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471fi
472if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +0000474 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +0000475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
mlcreech636a9952008-05-05 22:52:56 +0000485 fi
a.rottmann84e63352003-03-24 09:42:16 +0000486else
487 as_ln_s='cp -p'
488fi
drh8b727472009-01-19 18:18:40 +0000489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +0000491
492if mkdir -p . 2>/dev/null; then
dana9f39fd2011-08-12 16:34:42 +0000493 as_mkdir_p='mkdir -p "$as_dir"'
a.rottmann84e63352003-03-24 09:42:16 +0000494else
a.rottmann964dbb12004-02-26 19:47:42 +0000495 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +0000496 as_mkdir_p=false
497fi
498
drh8b727472009-01-19 18:18:40 +0000499if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
dana9f39fd2011-08-12 16:34:42 +0000512 case $1 in #(
drh8b727472009-01-19 18:18:40 +0000513 -*)set "./$1";;
514 esac;
dana9f39fd2011-08-12 16:34:42 +0000515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
drh8b727472009-01-19 18:18:40 +0000516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519fi
520as_executable_p=$as_test_x
a.rottmann84e63352003-03-24 09:42:16 +0000521
522# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +0000523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000524
525# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +0000526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000527
528
drh75897232000-05-29 14:26:00 +0000529
drh71eb93e2001-09-28 01:34:43 +0000530# Check that we are running under the correct shell.
531SHELL=${CONFIG_SHELL-/bin/sh}
532
mlcreech636a9952008-05-05 22:52:56 +0000533case X$lt_ECHO in
drh71eb93e2001-09-28 01:34:43 +0000534X*--fallback-echo)
535 # Remove one level of quotation (which was required for Make).
mlcreech636a9952008-05-05 22:52:56 +0000536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
drh71eb93e2001-09-28 01:34:43 +0000537 ;;
538esac
539
mlcreech636a9952008-05-05 22:52:56 +0000540ECHO=${lt_ECHO-echo}
drh71eb93e2001-09-28 01:34:43 +0000541if test "X$1" = X--no-reexec; then
542 # Discard the --no-reexec flag, and continue.
543 shift
544elif test "X$1" = X--fallback-echo; then
545 # Avoid inline document here, it may be left over
546 :
mlcreech636a9952008-05-05 22:52:56 +0000547elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $ECHO works!
drh71eb93e2001-09-28 01:34:43 +0000549 :
550else
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
553fi
554
555if test "X$1" = X--fallback-echo; then
556 # used as fallback echo
557 shift
mlcreech636a9952008-05-05 22:52:56 +0000558 cat <<_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +0000559$*
mlcreech636a9952008-05-05 22:52:56 +0000560_LT_EOF
drh71eb93e2001-09-28 01:34:43 +0000561 exit 0
562fi
563
564# The HP-UX ksh and POSIX shell print the target directory to stdout
565# if CDPATH is set.
vapier7f19c022007-02-17 14:46:31 +0000566(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
drh71eb93e2001-09-28 01:34:43 +0000567
mlcreech636a9952008-05-05 22:52:56 +0000568if test -z "$lt_ECHO"; then
569 if test "X${echo_test_string+set}" != Xset; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575 then
576 break
577 fi
578 done
579 fi
drh71eb93e2001-09-28 01:34:43 +0000580
mlcreech636a9952008-05-05 22:52:56 +0000581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583 test "X$echo_testing_string" = "X$echo_test_string"; then
584 :
585 else
586 # The Solaris, AIX, and Digital Unix default echo programs unquote
587 # backslashes. This makes it impossible to quote backslashes using
588 # echo "$something" | sed 's/\\/\\\\/g'
589 #
590 # So, first we look for a working echo in the user's PATH.
drh71eb93e2001-09-28 01:34:43 +0000591
mlcreech636a9952008-05-05 22:52:56 +0000592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593 for dir in $PATH /usr/ucb; do
594 IFS="$lt_save_ifs"
595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598 test "X$echo_testing_string" = "X$echo_test_string"; then
599 ECHO="$dir/echo"
600 break
601 fi
602 done
a.rottmann9bc8b932004-02-29 15:18:31 +0000603 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +0000604
mlcreech636a9952008-05-05 22:52:56 +0000605 if test "X$ECHO" = Xecho; then
606 # We didn't find a better echo, so look for alternatives.
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # This shell has a builtin print -r that does the trick.
611 ECHO='print -r'
612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613 test "X$CONFIG_SHELL" != X/bin/ksh; then
614 # If we have ksh, try running configure again with it.
615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616 export ORIGINAL_CONFIG_SHELL
617 CONFIG_SHELL=/bin/ksh
618 export CONFIG_SHELL
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
drh71eb93e2001-09-28 01:34:43 +0000620 else
mlcreech636a9952008-05-05 22:52:56 +0000621 # Try using printf.
622 ECHO='printf %s\n'
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
626 # Cool, printf works
627 :
628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629 test "X$echo_testing_string" = 'X\t' &&
630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633 export CONFIG_SHELL
634 SHELL="$CONFIG_SHELL"
635 export SHELL
636 ECHO="$CONFIG_SHELL $0 --fallback-echo"
637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 ECHO="$CONFIG_SHELL $0 --fallback-echo"
642 else
643 # maybe with a smaller string...
644 prev=:
drh71eb93e2001-09-28 01:34:43 +0000645
mlcreech636a9952008-05-05 22:52:56 +0000646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648 then
649 break
650 fi
651 prev="$cmd"
652 done
653
654 if test "$prev" != 'sed 50q "$0"'; then
655 echo_test_string=`eval $prev`
656 export echo_test_string
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658 else
659 # Oops. We lost completely, so just stick with echo.
660 ECHO=echo
drh71eb93e2001-09-28 01:34:43 +0000661 fi
mlcreech636a9952008-05-05 22:52:56 +0000662 fi
drh71eb93e2001-09-28 01:34:43 +0000663 fi
664 fi
665 fi
666fi
drh71eb93e2001-09-28 01:34:43 +0000667
668# Copy echo and quote the copy suitably for passing to libtool from
669# the Makefile, instead of quoting the original, which is used later.
mlcreech636a9952008-05-05 22:52:56 +0000670lt_ECHO=$ECHO
671if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
drh71eb93e2001-09-28 01:34:43 +0000673fi
674
drh71eb93e2001-09-28 01:34:43 +0000675
drh71eb93e2001-09-28 01:34:43 +0000676
a.rottmann9bc8b932004-02-29 15:18:31 +0000677
dana9f39fd2011-08-12 16:34:42 +0000678test -n "$DJDIR" || exec 7<&0 </dev/null
679exec 6>&1
drh8b727472009-01-19 18:18:40 +0000680
drh71eb93e2001-09-28 01:34:43 +0000681# Name of the host.
682# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683# so uname gets run too.
684ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
drh71eb93e2001-09-28 01:34:43 +0000686#
687# Initializations.
688#
drh75897232000-05-29 14:26:00 +0000689ac_default_prefix=/usr/local
drh8b727472009-01-19 18:18:40 +0000690ac_clean_files=
a.rottmann84e63352003-03-24 09:42:16 +0000691ac_config_libobj_dir=.
drh8b727472009-01-19 18:18:40 +0000692LIBOBJS=
drh71eb93e2001-09-28 01:34:43 +0000693cross_compiling=no
694subdirs=
a.rottmann84e63352003-03-24 09:42:16 +0000695MFLAGS=
696MAKEFLAGS=
drh71eb93e2001-09-28 01:34:43 +0000697
a.rottmann84e63352003-03-24 09:42:16 +0000698# Identity of this package.
mlcreechb87057f2008-03-06 07:19:20 +0000699PACKAGE_NAME='sqlite'
700PACKAGE_TARNAME='sqlite'
drhc4e384b2011-07-19 15:27:59 +0000701PACKAGE_VERSION='3.7.8'
702PACKAGE_STRING='sqlite 3.7.8'
mlcreechb87057f2008-03-06 07:19:20 +0000703PACKAGE_BUGREPORT=''
dana9f39fd2011-08-12 16:34:42 +0000704PACKAGE_URL=''
a.rottmann84e63352003-03-24 09:42:16 +0000705
a.rottmann84e63352003-03-24 09:42:16 +0000706# Factoring default headers for most tests.
707ac_includes_default="\
708#include <stdio.h>
drh8b727472009-01-19 18:18:40 +0000709#ifdef HAVE_SYS_TYPES_H
danielk197733a14782008-08-04 14:50:05 +0000710# include <sys/types.h>
711#endif
drh8b727472009-01-19 18:18:40 +0000712#ifdef HAVE_SYS_STAT_H
a.rottmann84e63352003-03-24 09:42:16 +0000713# include <sys/stat.h>
714#endif
drh8b727472009-01-19 18:18:40 +0000715#ifdef STDC_HEADERS
a.rottmann84e63352003-03-24 09:42:16 +0000716# include <stdlib.h>
717# include <stddef.h>
718#else
drh8b727472009-01-19 18:18:40 +0000719# ifdef HAVE_STDLIB_H
danielk197733a14782008-08-04 14:50:05 +0000720# include <stdlib.h>
721# endif
a.rottmann84e63352003-03-24 09:42:16 +0000722#endif
drh8b727472009-01-19 18:18:40 +0000723#ifdef HAVE_STRING_H
724# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
a.rottmann84e63352003-03-24 09:42:16 +0000725# include <memory.h>
726# endif
727# include <string.h>
728#endif
drh8b727472009-01-19 18:18:40 +0000729#ifdef HAVE_STRINGS_H
a.rottmann84e63352003-03-24 09:42:16 +0000730# include <strings.h>
731#endif
drh8b727472009-01-19 18:18:40 +0000732#ifdef HAVE_INTTYPES_H
a.rottmann84e63352003-03-24 09:42:16 +0000733# include <inttypes.h>
a.rottmann84e63352003-03-24 09:42:16 +0000734#endif
drh8b727472009-01-19 18:18:40 +0000735#ifdef HAVE_STDINT_H
736# include <stdint.h>
737#endif
738#ifdef HAVE_UNISTD_H
a.rottmann84e63352003-03-24 09:42:16 +0000739# include <unistd.h>
740#endif"
741
dana9f39fd2011-08-12 16:34:42 +0000742ac_subst_vars='LTLIBOBJS
drh934c5442009-04-13 09:09:24 +0000743LIBOBJS
dana9f39fd2011-08-12 16:34:42 +0000744BUILD_CFLAGS
745USE_GCOV
746OPT_FEATURE_FLAGS
747USE_AMALGAMATION
748TARGET_DEBUG
749TARGET_HAVE_READLINE
750TARGET_READLINE_INC
751TARGET_READLINE_LIBS
752HAVE_TCL
753TCL_STUB_LIB_SPEC
754TCL_STUB_LIB_FLAG
755TCL_STUB_LIB_FILE
756TCL_LIB_SPEC
757TCL_LIB_FLAG
758TCL_LIB_FILE
759TCL_INCLUDE_SPEC
760TCL_LIBS
761TCL_SRC_DIR
762TCL_BIN_DIR
763TCL_VERSION
764TARGET_EXEEXT
765SQLITE_OS_OS2
766SQLITE_OS_WIN
767SQLITE_OS_UNIX
768BUILD_EXEEXT
769TEMP_STORE
770ALLOWRELEASE
771XTHREADCONNECT
772SQLITE_THREADSAFE
773BUILD_CC
774VERSION_NUMBER
775RELEASE
776VERSION
777program_prefix
778TCLLIBDIR
779TCLSH_CMD
780AWK
781INSTALL_DATA
782INSTALL_SCRIPT
783INSTALL_PROGRAM
784CPP
785OTOOL64
786OTOOL
787LIPO
788NMEDIT
789DSYMUTIL
790lt_ECHO
791RANLIB
792STRIP
793AR
794OBJDUMP
795LN_S
796NM
797ac_ct_DUMPBIN
798DUMPBIN
799LD
800FGREP
801EGREP
802GREP
803SED
804OBJEXT
805EXEEXT
806ac_ct_CC
807CPPFLAGS
808LDFLAGS
809CFLAGS
810CC
811host_os
812host_vendor
813host_cpu
814host
815build_os
816build_vendor
817build_cpu
818build
819LIBTOOL
820target_alias
821host_alias
822build_alias
823LIBS
824ECHO_T
825ECHO_N
826ECHO_C
827DEFS
828mandir
829localedir
830libdir
831psdir
832pdfdir
833dvidir
834htmldir
835infodir
836docdir
837oldincludedir
838includedir
839localstatedir
840sharedstatedir
841sysconfdir
842datadir
843datarootdir
844libexecdir
845sbindir
846bindir
847program_transform_name
848prefix
849exec_prefix
850PACKAGE_URL
851PACKAGE_BUGREPORT
852PACKAGE_STRING
853PACKAGE_VERSION
854PACKAGE_TARNAME
855PACKAGE_NAME
856PATH_SEPARATOR
857SHELL'
a.rottmann84e63352003-03-24 09:42:16 +0000858ac_subst_files=''
drh8b727472009-01-19 18:18:40 +0000859ac_user_opts='
860enable_option_checking
861enable_shared
862enable_static
863with_pic
864enable_fast_install
865with_gnu_ld
866enable_libtool_lock
867enable_largefile
868with_hints
869enable_threadsafe
870enable_cross_thread_connections
drh8b727472009-01-19 18:18:40 +0000871enable_releasemode
872enable_tempstore
873enable_tcl
874with_tcl
875enable_readline
876with_readline_lib
877with_readline_inc
878enable_debug
879enable_amalgamation
880enable_load_extension
881enable_gcov
882'
883 ac_precious_vars='build_alias
884host_alias
885target_alias
886CC
887CFLAGS
888LDFLAGS
889LIBS
890CPPFLAGS
vapier6acb2cf2009-01-28 04:46:28 +0000891CPP
892TCLLIBDIR'
drh8b727472009-01-19 18:18:40 +0000893
drh75897232000-05-29 14:26:00 +0000894
895# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000896ac_init_help=
897ac_init_version=false
drh8b727472009-01-19 18:18:40 +0000898ac_unrecognized_opts=
899ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000900# The variables have the same names as the options, with
901# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000902cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000903exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000904no_create=
drh75897232000-05-29 14:26:00 +0000905no_recursion=
906prefix=NONE
907program_prefix=NONE
908program_suffix=NONE
909program_transform_name=s,x,x,
910silent=
911site=
912srcdir=
drh75897232000-05-29 14:26:00 +0000913verbose=
914x_includes=NONE
915x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000916
917# Installation directory options.
918# These are left unexpanded so users can "make install exec_prefix=/foo"
919# and all the variables that are supposed to be based on exec_prefix
920# by default will actually change.
921# Use braces instead of parens because sh, perl, etc. also accept them.
drh8b727472009-01-19 18:18:40 +0000922# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000923bindir='${exec_prefix}/bin'
924sbindir='${exec_prefix}/sbin'
925libexecdir='${exec_prefix}/libexec'
drh8b727472009-01-19 18:18:40 +0000926datarootdir='${prefix}/share'
927datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000928sysconfdir='${prefix}/etc'
929sharedstatedir='${prefix}/com'
930localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000931includedir='${prefix}/include'
932oldincludedir='/usr/include'
drh8b727472009-01-19 18:18:40 +0000933docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
934infodir='${datarootdir}/info'
935htmldir='${docdir}'
936dvidir='${docdir}'
937pdfdir='${docdir}'
938psdir='${docdir}'
939libdir='${exec_prefix}/lib'
940localedir='${datarootdir}/locale'
941mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000942
drh75897232000-05-29 14:26:00 +0000943ac_prev=
drh8b727472009-01-19 18:18:40 +0000944ac_dashdash=
drh75897232000-05-29 14:26:00 +0000945for ac_option
946do
drh75897232000-05-29 14:26:00 +0000947 # If the previous option needs an argument, assign it.
948 if test -n "$ac_prev"; then
drh8b727472009-01-19 18:18:40 +0000949 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000950 ac_prev=
951 continue
952 fi
953
drh8b727472009-01-19 18:18:40 +0000954 case $ac_option in
955 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956 *) ac_optarg=yes ;;
957 esac
drh75897232000-05-29 14:26:00 +0000958
959 # Accept the important Cygnus configure options, so we can diagnose typos.
960
drh8b727472009-01-19 18:18:40 +0000961 case $ac_dashdash$ac_option in
962 --)
963 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +0000964
965 -bindir | --bindir | --bindi | --bind | --bin | --bi)
966 ac_prev=bindir ;;
967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +0000968 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000969
970 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +0000971 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +0000972 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +0000973 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000974
975 -cache-file | --cache-file | --cache-fil | --cache-fi \
976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977 ac_prev=cache_file ;;
978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +0000980 cache_file=$ac_optarg ;;
981
982 --config-cache | -C)
983 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +0000984
drh8b727472009-01-19 18:18:40 +0000985 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +0000986 ac_prev=datadir ;;
drh8b727472009-01-19 18:18:40 +0000987 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +0000988 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000989
drh8b727472009-01-19 18:18:40 +0000990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991 | --dataroo | --dataro | --datar)
992 ac_prev=datarootdir ;;
993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995 datarootdir=$ac_optarg ;;
996
drh75897232000-05-29 14:26:00 +0000997 -disable-* | --disable-*)
drh8b727472009-01-19 18:18:40 +0000998 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +0000999 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
dana9f39fd2011-08-12 16:34:42 +00001001 as_fn_error "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001002 ac_useropt_orig=$ac_useropt
1003 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004 case $ac_user_opts in
1005 *"
1006"enable_$ac_useropt"
1007"*) ;;
1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1009 ac_unrecognized_sep=', ';;
1010 esac
1011 eval enable_$ac_useropt=no ;;
1012
1013 -docdir | --docdir | --docdi | --doc | --do)
1014 ac_prev=docdir ;;
1015 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016 docdir=$ac_optarg ;;
1017
1018 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1019 ac_prev=dvidir ;;
1020 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001022
1023 -enable-* | --enable-*)
drh8b727472009-01-19 18:18:40 +00001024 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001025 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
dana9f39fd2011-08-12 16:34:42 +00001027 as_fn_error "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1031 *"
1032"enable_$ac_useropt"
1033"*) ;;
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001036 esac
drh8b727472009-01-19 18:18:40 +00001037 eval enable_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001038
1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041 | --exec | --exe | --ex)
1042 ac_prev=exec_prefix ;;
1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001046 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001047
1048 -gas | --gas | --ga | --g)
1049 # Obsolete; use --with-gas.
1050 with_gas=yes ;;
1051
drh71eb93e2001-09-28 01:34:43 +00001052 -help | --help | --hel | --he | -h)
1053 ac_init_help=long ;;
1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055 ac_init_help=recursive ;;
1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001058
1059 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001060 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001061 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001062 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001063
drh8b727472009-01-19 18:18:40 +00001064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065 ac_prev=htmldir ;;
1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067 | --ht=*)
1068 htmldir=$ac_optarg ;;
1069
drh75897232000-05-29 14:26:00 +00001070 -includedir | --includedir | --includedi | --included | --include \
1071 | --includ | --inclu | --incl | --inc)
1072 ac_prev=includedir ;;
1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001075 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001076
1077 -infodir | --infodir | --infodi | --infod | --info | --inf)
1078 ac_prev=infodir ;;
1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001080 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001081
1082 -libdir | --libdir | --libdi | --libd)
1083 ac_prev=libdir ;;
1084 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001085 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001086
1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088 | --libexe | --libex | --libe)
1089 ac_prev=libexecdir ;;
1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001092 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001093
drh8b727472009-01-19 18:18:40 +00001094 -localedir | --localedir | --localedi | --localed | --locale)
1095 ac_prev=localedir ;;
1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097 localedir=$ac_optarg ;;
1098
drh75897232000-05-29 14:26:00 +00001099 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh8b727472009-01-19 18:18:40 +00001100 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001101 ac_prev=localstatedir ;;
1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh8b727472009-01-19 18:18:40 +00001103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001104 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001105
1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107 ac_prev=mandir ;;
1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001109 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001110
1111 -nfp | --nfp | --nf)
1112 # Obsolete; use --without-fp.
1113 with_fp=no ;;
1114
1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001116 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001117 no_create=yes ;;
1118
1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121 no_recursion=yes ;;
1122
1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125 | --oldin | --oldi | --old | --ol | --o)
1126 ac_prev=oldincludedir ;;
1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001130 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001131
1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133 ac_prev=prefix ;;
1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001135 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001136
1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138 | --program-pre | --program-pr | --program-p)
1139 ac_prev=program_prefix ;;
1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001142 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001143
1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145 | --program-suf | --program-su | --program-s)
1146 ac_prev=program_suffix ;;
1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001149 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001150
1151 -program-transform-name | --program-transform-name \
1152 | --program-transform-nam | --program-transform-na \
1153 | --program-transform-n | --program-transform- \
1154 | --program-transform | --program-transfor \
1155 | --program-transfo | --program-transf \
1156 | --program-trans | --program-tran \
1157 | --progr-tra | --program-tr | --program-t)
1158 ac_prev=program_transform_name ;;
1159 -program-transform-name=* | --program-transform-name=* \
1160 | --program-transform-nam=* | --program-transform-na=* \
1161 | --program-transform-n=* | --program-transform-=* \
1162 | --program-transform=* | --program-transfor=* \
1163 | --program-transfo=* | --program-transf=* \
1164 | --program-trans=* | --program-tran=* \
1165 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001166 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001167
drh8b727472009-01-19 18:18:40 +00001168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169 ac_prev=pdfdir ;;
1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171 pdfdir=$ac_optarg ;;
1172
1173 -psdir | --psdir | --psdi | --psd | --ps)
1174 ac_prev=psdir ;;
1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176 psdir=$ac_optarg ;;
1177
drh75897232000-05-29 14:26:00 +00001178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179 | -silent | --silent | --silen | --sile | --sil)
1180 silent=yes ;;
1181
1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183 ac_prev=sbindir ;;
1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001186 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001187
1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190 | --sharedst | --shareds | --shared | --share | --shar \
1191 | --sha | --sh)
1192 ac_prev=sharedstatedir ;;
1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001197 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001198
1199 -site | --site | --sit)
1200 ac_prev=site ;;
1201 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001202 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001203
1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205 ac_prev=srcdir ;;
1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001207 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001208
1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210 | --syscon | --sysco | --sysc | --sys | --sy)
1211 ac_prev=sysconfdir ;;
1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001214 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001215
1216 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001217 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001219 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001220
1221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222 verbose=yes ;;
1223
drh71eb93e2001-09-28 01:34:43 +00001224 -version | --version | --versio | --versi | --vers | -V)
1225 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001226
1227 -with-* | --with-*)
drh8b727472009-01-19 18:18:40 +00001228 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001229 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
dana9f39fd2011-08-12 16:34:42 +00001231 as_fn_error "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1235 *"
1236"with_$ac_useropt"
1237"*) ;;
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001240 esac
drh8b727472009-01-19 18:18:40 +00001241 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001242
1243 -without-* | --without-*)
drh8b727472009-01-19 18:18:40 +00001244 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001245 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
dana9f39fd2011-08-12 16:34:42 +00001247 as_fn_error "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1251 *"
1252"with_$ac_useropt"
1253"*) ;;
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1256 esac
1257 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001258
1259 --x)
1260 # Obsolete; use --with-x.
1261 with_x=yes ;;
1262
1263 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264 | --x-incl | --x-inc | --x-in | --x-i)
1265 ac_prev=x_includes ;;
1266 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001268 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001269
1270 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1271 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272 ac_prev=x_libraries ;;
1273 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001275 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001276
dana9f39fd2011-08-12 16:34:42 +00001277 -*) as_fn_error "unrecognized option: \`$ac_option'
1278Try \`$0 --help' for more information."
drh75897232000-05-29 14:26:00 +00001279 ;;
1280
drh71eb93e2001-09-28 01:34:43 +00001281 *=*)
1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283 # Reject names that are not valid shell variable names.
dana9f39fd2011-08-12 16:34:42 +00001284 case $ac_envvar in #(
1285 '' | [0-9]* | *[!_$as_cr_alnum]* )
1286 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1287 esac
drh8b727472009-01-19 18:18:40 +00001288 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001289 export $ac_envvar ;;
1290
drh75897232000-05-29 14:26:00 +00001291 *)
drh71eb93e2001-09-28 01:34:43 +00001292 # FIXME: should be removed in autoconf 3.0.
drh8b727472009-01-19 18:18:40 +00001293 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001294 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001295 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drh71eb93e2001-09-28 01:34:43 +00001296 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
drh75897232000-05-29 14:26:00 +00001297 ;;
1298
1299 esac
1300done
1301
1302if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001303 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
dana9f39fd2011-08-12 16:34:42 +00001304 as_fn_error "missing argument to $ac_option"
drh75897232000-05-29 14:26:00 +00001305fi
1306
drh8b727472009-01-19 18:18:40 +00001307if test -n "$ac_unrecognized_opts"; then
1308 case $enable_option_checking in
1309 no) ;;
dana9f39fd2011-08-12 16:34:42 +00001310 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1311 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
mlcreech636a9952008-05-05 22:52:56 +00001312 esac
drh8b727472009-01-19 18:18:40 +00001313fi
drh866108f2008-05-13 00:57:21 +00001314
drh8b727472009-01-19 18:18:40 +00001315# Check all directory arguments for consistency.
1316for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317 datadir sysconfdir sharedstatedir localstatedir includedir \
1318 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319 libdir localedir mandir
drh866108f2008-05-13 00:57:21 +00001320do
drh8b727472009-01-19 18:18:40 +00001321 eval ac_val=\$$ac_var
1322 # Remove trailing slashes.
drh71eb93e2001-09-28 01:34:43 +00001323 case $ac_val in
drh8b727472009-01-19 18:18:40 +00001324 */ )
1325 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1326 eval $ac_var=\$ac_val;;
drh75897232000-05-29 14:26:00 +00001327 esac
drh8b727472009-01-19 18:18:40 +00001328 # Be sure to have absolute directory names.
1329 case $ac_val in
1330 [\\/$]* | ?:[\\/]* ) continue;;
1331 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1332 esac
dana9f39fd2011-08-12 16:34:42 +00001333 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
drh71eb93e2001-09-28 01:34:43 +00001334done
drh75897232000-05-29 14:26:00 +00001335
drh71eb93e2001-09-28 01:34:43 +00001336# There might be people who depend on the old broken behavior: `$host'
1337# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001338# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001339build=$build_alias
1340host=$host_alias
1341target=$target_alias
drh75897232000-05-29 14:26:00 +00001342
a.rottmann84e63352003-03-24 09:42:16 +00001343# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001344if test "x$host_alias" != x; then
1345 if test "x$build_alias" = x; then
1346 cross_compiling=maybe
drh8b727472009-01-19 18:18:40 +00001347 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
drh71eb93e2001-09-28 01:34:43 +00001348 If a cross compiler is detected then cross compile mode will be used." >&2
1349 elif test "x$build_alias" != "x$host_alias"; then
1350 cross_compiling=yes
1351 fi
1352fi
1353
1354ac_tool_prefix=
1355test -n "$host_alias" && ac_tool_prefix=$host_alias-
1356
1357test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001358
a.rottmann84e63352003-03-24 09:42:16 +00001359
drh8b727472009-01-19 18:18:40 +00001360ac_pwd=`pwd` && test -n "$ac_pwd" &&
1361ac_ls_di=`ls -di .` &&
1362ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
dana9f39fd2011-08-12 16:34:42 +00001363 as_fn_error "working directory cannot be determined"
drh8b727472009-01-19 18:18:40 +00001364test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
dana9f39fd2011-08-12 16:34:42 +00001365 as_fn_error "pwd does not report name of working directory"
drh8b727472009-01-19 18:18:40 +00001366
1367
drh75897232000-05-29 14:26:00 +00001368# Find the source files, if location was not specified.
1369if test -z "$srcdir"; then
1370 ac_srcdir_defaulted=yes
drh8b727472009-01-19 18:18:40 +00001371 # Try the directory containing this script, then the parent directory.
1372 ac_confdir=`$as_dirname -- "$as_myself" ||
1373$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1374 X"$as_myself" : 'X\(//\)[^/]' \| \
1375 X"$as_myself" : 'X\(//\)$' \| \
1376 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1377$as_echo X"$as_myself" |
1378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379 s//\1/
1380 q
1381 }
1382 /^X\(\/\/\)[^/].*/{
1383 s//\1/
1384 q
1385 }
1386 /^X\(\/\/\)$/{
1387 s//\1/
1388 q
1389 }
1390 /^X\(\/\).*/{
1391 s//\1/
1392 q
1393 }
1394 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001395 srcdir=$ac_confdir
drh8b727472009-01-19 18:18:40 +00001396 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001397 srcdir=..
1398 fi
1399else
1400 ac_srcdir_defaulted=no
1401fi
drh8b727472009-01-19 18:18:40 +00001402if test ! -r "$srcdir/$ac_unique_file"; then
1403 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
dana9f39fd2011-08-12 16:34:42 +00001404 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
mlcreech94984912008-03-04 19:03:08 +00001405fi
drh8b727472009-01-19 18:18:40 +00001406ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1407ac_abs_confdir=`(
dana9f39fd2011-08-12 16:34:42 +00001408 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
drh8b727472009-01-19 18:18:40 +00001409 pwd)`
1410# When building in place, set srcdir=.
1411if test "$ac_abs_confdir" = "$ac_pwd"; then
1412 srcdir=.
1413fi
1414# Remove unnecessary trailing slashes from srcdir.
1415# Double slashes in file names in object file debugging info
1416# mess up M-x gdb in Emacs.
1417case $srcdir in
1418*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419esac
1420for ac_var in $ac_precious_vars; do
1421 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_env_${ac_var}_value=\$${ac_var}
1423 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425done
drh75897232000-05-29 14:26:00 +00001426
drh71eb93e2001-09-28 01:34:43 +00001427#
1428# Report the --help message.
1429#
1430if test "$ac_init_help" = "long"; then
1431 # Omit some internal or obsolete options to make the list less imposing.
1432 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001433 cat <<_ACEOF
drhc4e384b2011-07-19 15:27:59 +00001434\`configure' configures sqlite 3.7.8 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001435
1436Usage: $0 [OPTION]... [VAR=VALUE]...
1437
1438To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439VAR=VALUE. See below for descriptions of some of the useful variables.
1440
1441Defaults for the options are specified in brackets.
1442
1443Configuration:
1444 -h, --help display this help and exit
1445 --help=short display options specific to this package
1446 --help=recursive display the short help of all the included packages
1447 -V, --version display version information and exit
1448 -q, --quiet, --silent do not print \`checking...' messages
1449 --cache-file=FILE cache test results in FILE [disabled]
1450 -C, --config-cache alias for \`--cache-file=config.cache'
1451 -n, --no-create do not create output files
1452 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1453
drh71eb93e2001-09-28 01:34:43 +00001454Installation directories:
1455 --prefix=PREFIX install architecture-independent files in PREFIX
drh8b727472009-01-19 18:18:40 +00001456 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh8b727472009-01-19 18:18:40 +00001458 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001459
1460By default, \`make install' will install all the files in
1461\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1462an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463for instance \`--prefix=\$HOME'.
1464
1465For better control, use the options below.
1466
1467Fine tuning of the installation directories:
drh8b727472009-01-19 18:18:40 +00001468 --bindir=DIR user executables [EPREFIX/bin]
1469 --sbindir=DIR system admin executables [EPREFIX/sbin]
1470 --libexecdir=DIR program executables [EPREFIX/libexec]
1471 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1472 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1473 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1474 --libdir=DIR object code libraries [EPREFIX/lib]
1475 --includedir=DIR C header files [PREFIX/include]
1476 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1479 --infodir=DIR info documentation [DATAROOTDIR/info]
1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1481 --mandir=DIR man documentation [DATAROOTDIR/man]
1482 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1483 --htmldir=DIR html documentation [DOCDIR]
1484 --dvidir=DIR dvi documentation [DOCDIR]
1485 --pdfdir=DIR pdf documentation [DOCDIR]
1486 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001487_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001488
a.rottmann84e63352003-03-24 09:42:16 +00001489 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001490
1491System types:
1492 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001493 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1494_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001495fi
1496
1497if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001498 case $ac_init_help in
drhc4e384b2011-07-19 15:27:59 +00001499 short | recursive ) echo "Configuration of sqlite 3.7.8:";;
mlcreechb87057f2008-03-06 07:19:20 +00001500 esac
a.rottmann84e63352003-03-24 09:42:16 +00001501 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001502
1503Optional Features:
drh8b727472009-01-19 18:18:40 +00001504 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001505 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1506 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh8b727472009-01-19 18:18:40 +00001507 --enable-shared[=PKGS] build shared libraries [default=yes]
1508 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001509 --enable-fast-install[=PKGS]
1510 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001511 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001512 --disable-largefile omit support for large files
drh94e4f822006-02-15 02:00:25 +00001513 --enable-threadsafe Support threadsafe operation
1514 --enable-cross-thread-connections
1515 Allow connection sharing across threads
drh94e4f822006-02-15 02:00:25 +00001516 --enable-releasemode Support libtool link to release mode
1517 --enable-tempstore Use an in-ram database for temporary tables
1518 (never,no,yes,always)
1519 --disable-tcl do not build TCL extension
vapier7f19c022007-02-17 14:46:31 +00001520 --disable-readline disable readline support [default=detect]
drh94e4f822006-02-15 02:00:25 +00001521 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001522 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001523 separately
mlcreecha4edab02008-03-06 04:14:17 +00001524 --enable-load-extension Enable loading of external extensions
mlcreechaac7b932008-04-01 02:45:22 +00001525 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001526
1527Optional Packages:
1528 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1529 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001530 --with-pic try to use only PIC/non-PIC objects [default=use
1531 both]
mlcreech636a9952008-05-05 22:52:56 +00001532 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh71eb93e2001-09-28 01:34:43 +00001533 --with-hints=FILE Read configuration options from FILE
drh94e4f822006-02-15 02:00:25 +00001534 --with-tcl=DIR directory containing tcl configuration
1535 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001536 --with-readline-lib specify readline library
1537 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001538
1539Some influential environment variables:
1540 CC C compiler command
1541 CFLAGS C compiler flags
1542 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1543 nonstandard directory <lib dir>
drh8b727472009-01-19 18:18:40 +00001544 LIBS libraries to pass to the linker, e.g. -l<library>
dana9f39fd2011-08-12 16:34:42 +00001545 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
drh8b727472009-01-19 18:18:40 +00001546 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001547 CPP C preprocessor
vapier6acb2cf2009-01-28 04:46:28 +00001548 TCLLIBDIR Where to install tcl plugin
drh71eb93e2001-09-28 01:34:43 +00001549
1550Use these variables to override the choices made by `configure' or to help
1551it to find libraries and programs with nonstandard names/locations.
1552
dana9f39fd2011-08-12 16:34:42 +00001553Report bugs to the package provider.
a.rottmann84e63352003-03-24 09:42:16 +00001554_ACEOF
drh8b727472009-01-19 18:18:40 +00001555ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001556fi
1557
1558if test "$ac_init_help" = "recursive"; then
1559 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001560 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh8b727472009-01-19 18:18:40 +00001561 test -d "$ac_dir" ||
1562 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1563 continue
a.rottmann84e63352003-03-24 09:42:16 +00001564 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001565
drh8b727472009-01-19 18:18:40 +00001566case "$ac_dir" in
1567.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568*)
1569 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1570 # A ".." for each directory in $ac_dir_suffix.
1571 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1572 case $ac_top_builddir_sub in
1573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1575 esac ;;
1576esac
1577ac_abs_top_builddir=$ac_pwd
1578ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579# for backward compatibility:
1580ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001581
a.rottmann84e63352003-03-24 09:42:16 +00001582case $srcdir in
drh8b727472009-01-19 18:18:40 +00001583 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001584 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +00001585 ac_top_srcdir=$ac_top_builddir_sub
1586 ac_abs_top_srcdir=$ac_pwd ;;
1587 [\\/]* | ?:[\\/]* ) # Absolute name.
drh866108f2008-05-13 00:57:21 +00001588 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +00001589 ac_top_srcdir=$srcdir
1590 ac_abs_top_srcdir=$srcdir ;;
1591 *) # Relative name.
1592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1593 ac_top_srcdir=$ac_top_build_prefix$srcdir
1594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
drh866108f2008-05-13 00:57:21 +00001595esac
drh8b727472009-01-19 18:18:40 +00001596ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
drh866108f2008-05-13 00:57:21 +00001597
drh8b727472009-01-19 18:18:40 +00001598 cd "$ac_dir" || { ac_status=$?; continue; }
1599 # Check for guested configure.
1600 if test -f "$ac_srcdir/configure.gnu"; then
1601 echo &&
1602 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1603 elif test -f "$ac_srcdir/configure"; then
1604 echo &&
1605 $SHELL "$ac_srcdir/configure" --help=recursive
drh866108f2008-05-13 00:57:21 +00001606 else
drh8b727472009-01-19 18:18:40 +00001607 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1608 fi || ac_status=$?
1609 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001610 done
1611fi
1612
drh8b727472009-01-19 18:18:40 +00001613test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001614if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001615 cat <<\_ACEOF
drhc4e384b2011-07-19 15:27:59 +00001616sqlite configure 3.7.8
dana9f39fd2011-08-12 16:34:42 +00001617generated by GNU Autoconf 2.65
drh71eb93e2001-09-28 01:34:43 +00001618
dana9f39fd2011-08-12 16:34:42 +00001619Copyright (C) 2009 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001620This configure script is free software; the Free Software Foundation
1621gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001622_ACEOF
drh8b727472009-01-19 18:18:40 +00001623 exit
drh71eb93e2001-09-28 01:34:43 +00001624fi
dana9f39fd2011-08-12 16:34:42 +00001625
1626## ------------------------ ##
1627## Autoconf initialization. ##
1628## ------------------------ ##
1629
1630# ac_fn_c_try_compile LINENO
1631# --------------------------
1632# Try to compile conftest.$ac_ext, and return whether this succeeded.
1633ac_fn_c_try_compile ()
1634{
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 rm -f conftest.$ac_objext
1637 if { { ac_try="$ac_compile"
1638case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641esac
1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643$as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_compile") 2>conftest.err
1645 ac_status=$?
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1650 fi
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } && {
1653 test -z "$ac_c_werror_flag" ||
1654 test ! -s conftest.err
1655 } && test -s conftest.$ac_objext; then :
1656 ac_retval=0
1657else
1658 $as_echo "$as_me: failed program was:" >&5
1659sed 's/^/| /' conftest.$ac_ext >&5
1660
1661 ac_retval=1
1662fi
1663 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1664 as_fn_set_status $ac_retval
1665
1666} # ac_fn_c_try_compile
1667
1668# ac_fn_c_try_link LINENO
1669# -----------------------
1670# Try to link conftest.$ac_ext, and return whether this succeeded.
1671ac_fn_c_try_link ()
1672{
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 rm -f conftest.$ac_objext conftest$ac_exeext
1675 if { { ac_try="$ac_link"
1676case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679esac
1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681$as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_link") 2>conftest.err
1683 ac_status=$?
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1688 fi
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && {
1691 test -z "$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 } && test -s conftest$ac_exeext && {
1694 test "$cross_compiling" = yes ||
1695 $as_test_x conftest$ac_exeext
1696 }; then :
1697 ac_retval=0
1698else
1699 $as_echo "$as_me: failed program was:" >&5
1700sed 's/^/| /' conftest.$ac_ext >&5
1701
1702 ac_retval=1
1703fi
1704 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1705 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1706 # interfere with the next link command; also delete a directory that is
1707 # left behind by Apple's compiler. We do this before executing the actions.
1708 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1709 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1710 as_fn_set_status $ac_retval
1711
1712} # ac_fn_c_try_link
1713
1714# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1715# -------------------------------------------------------
1716# Tests whether HEADER exists and can be compiled using the include files in
1717# INCLUDES, setting the cache variable VAR accordingly.
1718ac_fn_c_check_header_compile ()
1719{
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722$as_echo_n "checking for $2... " >&6; }
1723if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1724 $as_echo_n "(cached) " >&6
1725else
1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727/* end confdefs.h. */
1728$4
1729#include <$2>
1730_ACEOF
1731if ac_fn_c_try_compile "$LINENO"; then :
1732 eval "$3=yes"
1733else
1734 eval "$3=no"
1735fi
1736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1737fi
1738eval ac_res=\$$3
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740$as_echo "$ac_res" >&6; }
1741 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1742
1743} # ac_fn_c_check_header_compile
1744
1745# ac_fn_c_try_cpp LINENO
1746# ----------------------
1747# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1748ac_fn_c_try_cpp ()
1749{
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 if { { ac_try="$ac_cpp conftest.$ac_ext"
1752case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755esac
1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757$as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1759 ac_status=$?
1760 if test -s conftest.err; then
1761 grep -v '^ *+' conftest.err >conftest.er1
1762 cat conftest.er1 >&5
1763 mv -f conftest.er1 conftest.err
1764 fi
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; } >/dev/null && {
1767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1768 test ! -s conftest.err
1769 }; then :
1770 ac_retval=0
1771else
1772 $as_echo "$as_me: failed program was:" >&5
1773sed 's/^/| /' conftest.$ac_ext >&5
1774
1775 ac_retval=1
1776fi
1777 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1778 as_fn_set_status $ac_retval
1779
1780} # ac_fn_c_try_cpp
1781
1782# ac_fn_c_try_run LINENO
1783# ----------------------
1784# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1785# that executables *can* be run.
1786ac_fn_c_try_run ()
1787{
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 if { { ac_try="$ac_link"
1790case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793esac
1794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795$as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_link") 2>&5
1797 ac_status=$?
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1800 { { case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803esac
1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805$as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_try") 2>&5
1807 ac_status=$?
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; }; }; then :
1810 ac_retval=0
1811else
1812 $as_echo "$as_me: program exited with status $ac_status" >&5
1813 $as_echo "$as_me: failed program was:" >&5
1814sed 's/^/| /' conftest.$ac_ext >&5
1815
1816 ac_retval=$ac_status
1817fi
1818 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820 as_fn_set_status $ac_retval
1821
1822} # ac_fn_c_try_run
1823
1824# ac_fn_c_check_func LINENO FUNC VAR
1825# ----------------------------------
1826# Tests whether FUNC exists, setting the cache variable VAR accordingly
1827ac_fn_c_check_func ()
1828{
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831$as_echo_n "checking for $2... " >&6; }
1832if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1833 $as_echo_n "(cached) " >&6
1834else
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836/* end confdefs.h. */
1837/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1839#define $2 innocuous_$2
1840
1841/* System header to define __stub macros and hopefully few prototypes,
1842 which can conflict with char $2 (); below.
1843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1844 <limits.h> exists even on freestanding compilers. */
1845
1846#ifdef __STDC__
1847# include <limits.h>
1848#else
1849# include <assert.h>
1850#endif
1851
1852#undef $2
1853
1854/* Override any GCC internal prototype to avoid an error.
1855 Use char because int might match the return type of a GCC
1856 builtin and then its argument prototype would still apply. */
1857#ifdef __cplusplus
1858extern "C"
1859#endif
1860char $2 ();
1861/* The GNU C library defines this for functions which it implements
1862 to always fail with ENOSYS. Some functions are actually named
1863 something starting with __ and the normal name is an alias. */
1864#if defined __stub_$2 || defined __stub___$2
1865choke me
1866#endif
1867
1868int
1869main ()
1870{
1871return $2 ();
1872 ;
1873 return 0;
1874}
1875_ACEOF
1876if ac_fn_c_try_link "$LINENO"; then :
1877 eval "$3=yes"
1878else
1879 eval "$3=no"
1880fi
1881rm -f core conftest.err conftest.$ac_objext \
1882 conftest$ac_exeext conftest.$ac_ext
1883fi
1884eval ac_res=\$$3
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886$as_echo "$ac_res" >&6; }
1887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1888
1889} # ac_fn_c_check_func
1890
1891# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1892# -------------------------------------------
1893# Tests whether TYPE exists after having included INCLUDES, setting cache
1894# variable VAR accordingly.
1895ac_fn_c_check_type ()
1896{
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899$as_echo_n "checking for $2... " >&6; }
1900if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1901 $as_echo_n "(cached) " >&6
1902else
1903 eval "$3=no"
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905/* end confdefs.h. */
1906$4
1907int
1908main ()
1909{
1910if (sizeof ($2))
1911 return 0;
1912 ;
1913 return 0;
1914}
1915_ACEOF
1916if ac_fn_c_try_compile "$LINENO"; then :
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918/* end confdefs.h. */
1919$4
1920int
1921main ()
1922{
1923if (sizeof (($2)))
1924 return 0;
1925 ;
1926 return 0;
1927}
1928_ACEOF
1929if ac_fn_c_try_compile "$LINENO"; then :
1930
1931else
1932 eval "$3=yes"
1933fi
1934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935fi
1936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937fi
1938eval ac_res=\$$3
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940$as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1942
1943} # ac_fn_c_check_type
1944
1945# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1946# -------------------------------------------------------
1947# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1948# the include files in INCLUDES and setting the cache variable VAR
1949# accordingly.
1950ac_fn_c_check_header_mongrel ()
1951{
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955$as_echo_n "checking for $2... " >&6; }
1956if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1957 $as_echo_n "(cached) " >&6
1958fi
1959eval ac_res=\$$3
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961$as_echo "$ac_res" >&6; }
1962else
1963 # Is the header compilable?
1964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1965$as_echo_n "checking $2 usability... " >&6; }
1966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967/* end confdefs.h. */
1968$4
1969#include <$2>
1970_ACEOF
1971if ac_fn_c_try_compile "$LINENO"; then :
1972 ac_header_compiler=yes
1973else
1974 ac_header_compiler=no
1975fi
1976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1978$as_echo "$ac_header_compiler" >&6; }
1979
1980# Is the header present?
1981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1982$as_echo_n "checking $2 presence... " >&6; }
1983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984/* end confdefs.h. */
1985#include <$2>
1986_ACEOF
1987if ac_fn_c_try_cpp "$LINENO"; then :
1988 ac_header_preproc=yes
1989else
1990 ac_header_preproc=no
1991fi
1992rm -f conftest.err conftest.$ac_ext
1993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1994$as_echo "$ac_header_preproc" >&6; }
1995
1996# So? What about this header?
1997case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1998 yes:no: )
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2000$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2002$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2003 ;;
2004 no:yes:* )
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2006$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2008$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2010$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2012$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2014$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2015 ;;
2016esac
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018$as_echo_n "checking for $2... " >&6; }
2019if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2020 $as_echo_n "(cached) " >&6
2021else
2022 eval "$3=\$ac_header_compiler"
2023fi
2024eval ac_res=\$$3
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026$as_echo "$ac_res" >&6; }
2027fi
2028 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2029
2030} # ac_fn_c_check_header_mongrel
drh8b727472009-01-19 18:18:40 +00002031cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002032This file contains any messages produced by compilers while
2033running configure, to aid debugging if configure makes a mistake.
2034
drhc4e384b2011-07-19 15:27:59 +00002035It was created by sqlite $as_me 3.7.8, which was
dana9f39fd2011-08-12 16:34:42 +00002036generated by GNU Autoconf 2.65. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00002037
2038 $ $0 $@
2039
a.rottmann84e63352003-03-24 09:42:16 +00002040_ACEOF
drh8b727472009-01-19 18:18:40 +00002041exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00002042{
2043cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002044## --------- ##
2045## Platform. ##
2046## --------- ##
drh71eb93e2001-09-28 01:34:43 +00002047
2048hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2049uname -m = `(uname -m) 2>/dev/null || echo unknown`
2050uname -r = `(uname -r) 2>/dev/null || echo unknown`
2051uname -s = `(uname -s) 2>/dev/null || echo unknown`
2052uname -v = `(uname -v) 2>/dev/null || echo unknown`
2053
2054/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2055/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2056
2057/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2058/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2059/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh8b727472009-01-19 18:18:40 +00002060/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00002061/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2062/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2063/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2064
drh71eb93e2001-09-28 01:34:43 +00002065_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002066
2067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068for as_dir in $PATH
2069do
2070 IFS=$as_save_IFS
2071 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00002072 $as_echo "PATH: $as_dir"
2073 done
drh8b727472009-01-19 18:18:40 +00002074IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00002075
drh71eb93e2001-09-28 01:34:43 +00002076} >&5
2077
a.rottmann84e63352003-03-24 09:42:16 +00002078cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002079
a.rottmann84e63352003-03-24 09:42:16 +00002080
2081## ----------- ##
2082## Core tests. ##
2083## ----------- ##
2084
2085_ACEOF
2086
drh71eb93e2001-09-28 01:34:43 +00002087
2088# Keep a trace of the command line.
2089# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00002090# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00002091# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00002092# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00002093ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00002094ac_configure_args0=
2095ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00002096ac_must_keep_next=false
2097for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00002098do
a.rottmann84e63352003-03-24 09:42:16 +00002099 for ac_arg
2100 do
2101 case $ac_arg in
2102 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2104 | -silent | --silent | --silen | --sile | --sil)
2105 continue ;;
drh8b727472009-01-19 18:18:40 +00002106 *\'*)
2107 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002108 esac
2109 case $ac_pass in
dana9f39fd2011-08-12 16:34:42 +00002110 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
a.rottmann84e63352003-03-24 09:42:16 +00002111 2)
dana9f39fd2011-08-12 16:34:42 +00002112 as_fn_append ac_configure_args1 " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002113 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00002114 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00002115 else
a.rottmann964dbb12004-02-26 19:47:42 +00002116 case $ac_arg in
2117 *=* | --config-cache | -C | -disable-* | --disable-* \
2118 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2119 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2120 | -with-* | --with-* | -without-* | --without-* | --x)
2121 case "$ac_configure_args0 " in
2122 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2123 esac
2124 ;;
2125 -* ) ac_must_keep_next=true ;;
2126 esac
a.rottmann84e63352003-03-24 09:42:16 +00002127 fi
dana9f39fd2011-08-12 16:34:42 +00002128 as_fn_append ac_configure_args " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002129 ;;
2130 esac
2131 done
drh71eb93e2001-09-28 01:34:43 +00002132done
dana9f39fd2011-08-12 16:34:42 +00002133{ ac_configure_args0=; unset ac_configure_args0;}
2134{ ac_configure_args1=; unset ac_configure_args1;}
drh71eb93e2001-09-28 01:34:43 +00002135
2136# When interrupted or exit'd, cleanup temporary files, and complete
2137# config.log. We remove comments because anyway the quotes in there
2138# would cause problems or look ugly.
drh8b727472009-01-19 18:18:40 +00002139# WARNING: Use '\'' to represent an apostrophe within the trap.
2140# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00002141trap 'exit_status=$?
2142 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00002143 {
2144 echo
2145
2146 cat <<\_ASBOX
2147## ---------------- ##
2148## Cache variables. ##
2149## ---------------- ##
2150_ASBOX
2151 echo
2152 # The following way of writing the cache mishandles newlines in values,
drh8b727472009-01-19 18:18:40 +00002153(
2154 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2155 eval ac_val=\$$ac_var
2156 case $ac_val in #(
2157 *${as_nl}*)
2158 case $ac_var in #(
dana9f39fd2011-08-12 16:34:42 +00002159 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2160$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +00002161 esac
2162 case $ac_var in #(
2163 _ | IFS | as_nl) ;; #(
2164 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
dana9f39fd2011-08-12 16:34:42 +00002165 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +00002166 esac ;;
2167 esac
2168 done
drh71eb93e2001-09-28 01:34:43 +00002169 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +00002170 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2171 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00002172 sed -n \
drh8b727472009-01-19 18:18:40 +00002173 "s/'\''/'\''\\\\'\'''\''/g;
2174 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2175 ;; #(
drh866108f2008-05-13 00:57:21 +00002176 *)
drh8b727472009-01-19 18:18:40 +00002177 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh866108f2008-05-13 00:57:21 +00002178 ;;
drh8b727472009-01-19 18:18:40 +00002179 esac |
2180 sort
2181)
a.rottmann84e63352003-03-24 09:42:16 +00002182 echo
2183
2184 cat <<\_ASBOX
2185## ----------------- ##
2186## Output variables. ##
2187## ----------------- ##
2188_ASBOX
2189 echo
2190 for ac_var in $ac_subst_vars
2191 do
drh8b727472009-01-19 18:18:40 +00002192 eval ac_val=\$$ac_var
2193 case $ac_val in
2194 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2195 esac
2196 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002197 done | sort
2198 echo
2199
2200 if test -n "$ac_subst_files"; then
2201 cat <<\_ASBOX
drh8b727472009-01-19 18:18:40 +00002202## ------------------- ##
2203## File substitutions. ##
2204## ------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002205_ASBOX
2206 echo
2207 for ac_var in $ac_subst_files
2208 do
drh8b727472009-01-19 18:18:40 +00002209 eval ac_val=\$$ac_var
2210 case $ac_val in
2211 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2212 esac
2213 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002214 done | sort
2215 echo
2216 fi
2217
2218 if test -s confdefs.h; then
2219 cat <<\_ASBOX
2220## ----------- ##
2221## confdefs.h. ##
2222## ----------- ##
2223_ASBOX
2224 echo
drh8b727472009-01-19 18:18:40 +00002225 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00002226 echo
2227 fi
2228 test "$ac_signal" != 0 &&
drh8b727472009-01-19 18:18:40 +00002229 $as_echo "$as_me: caught signal $ac_signal"
2230 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00002231 } >&5
drh8b727472009-01-19 18:18:40 +00002232 rm -f core *.core core.conftest.* &&
2233 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00002234 exit $exit_status
drh8b727472009-01-19 18:18:40 +00002235' 0
drh71eb93e2001-09-28 01:34:43 +00002236for ac_signal in 1 2 13 15; do
dana9f39fd2011-08-12 16:34:42 +00002237 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
drh71eb93e2001-09-28 01:34:43 +00002238done
2239ac_signal=0
2240
2241# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh8b727472009-01-19 18:18:40 +00002242rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00002243
dana9f39fd2011-08-12 16:34:42 +00002244$as_echo "/* confdefs.h */" > confdefs.h
2245
a.rottmann84e63352003-03-24 09:42:16 +00002246# Predefined preprocessor variables.
2247
2248cat >>confdefs.h <<_ACEOF
2249#define PACKAGE_NAME "$PACKAGE_NAME"
2250_ACEOF
2251
a.rottmann84e63352003-03-24 09:42:16 +00002252cat >>confdefs.h <<_ACEOF
2253#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2254_ACEOF
2255
a.rottmann84e63352003-03-24 09:42:16 +00002256cat >>confdefs.h <<_ACEOF
2257#define PACKAGE_VERSION "$PACKAGE_VERSION"
2258_ACEOF
2259
a.rottmann84e63352003-03-24 09:42:16 +00002260cat >>confdefs.h <<_ACEOF
2261#define PACKAGE_STRING "$PACKAGE_STRING"
2262_ACEOF
2263
a.rottmann84e63352003-03-24 09:42:16 +00002264cat >>confdefs.h <<_ACEOF
2265#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2266_ACEOF
2267
dana9f39fd2011-08-12 16:34:42 +00002268cat >>confdefs.h <<_ACEOF
2269#define PACKAGE_URL "$PACKAGE_URL"
2270_ACEOF
2271
a.rottmann84e63352003-03-24 09:42:16 +00002272
drh71eb93e2001-09-28 01:34:43 +00002273# Let the site file select an alternate cache file if it wants to.
drh8b727472009-01-19 18:18:40 +00002274# Prefer an explicitly selected file to automatically selected ones.
2275ac_site_file1=NONE
2276ac_site_file2=NONE
2277if test -n "$CONFIG_SITE"; then
2278 ac_site_file1=$CONFIG_SITE
2279elif test "x$prefix" != xNONE; then
2280 ac_site_file1=$prefix/share/config.site
2281 ac_site_file2=$prefix/etc/config.site
2282else
2283 ac_site_file1=$ac_default_prefix/share/config.site
2284 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00002285fi
drh8b727472009-01-19 18:18:40 +00002286for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2287do
2288 test "x$ac_site_file" = xNONE && continue
dana9f39fd2011-08-12 16:34:42 +00002289 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
drh8b727472009-01-19 18:18:40 +00002291$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00002292 sed 's/^/| /' "$ac_site_file" >&5
drh75897232000-05-29 14:26:00 +00002293 . "$ac_site_file"
2294 fi
2295done
2296
2297if test -r "$cache_file"; then
dana9f39fd2011-08-12 16:34:42 +00002298 # Some versions of bash will fail to source /dev/null (special files
2299 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2300 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002302$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002303 case $cache_file in
drh8b727472009-01-19 18:18:40 +00002304 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2305 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00002306 esac
2307 fi
drh75897232000-05-29 14:26:00 +00002308else
dana9f39fd2011-08-12 16:34:42 +00002309 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002310$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002311 >$cache_file
2312fi
2313
2314# Check that the precious variables saved in the cache have kept the same
2315# value.
2316ac_cache_corrupted=false
drh8b727472009-01-19 18:18:40 +00002317for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00002318 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2319 eval ac_new_set=\$ac_env_${ac_var}_set
drh8b727472009-01-19 18:18:40 +00002320 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2321 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00002322 case $ac_old_set,$ac_new_set in
2323 set,)
dana9f39fd2011-08-12 16:34:42 +00002324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00002325$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002326 ac_cache_corrupted=: ;;
2327 ,set)
dana9f39fd2011-08-12 16:34:42 +00002328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00002329$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002330 ac_cache_corrupted=: ;;
2331 ,);;
2332 *)
2333 if test "x$ac_old_val" != "x$ac_new_val"; then
drh8b727472009-01-19 18:18:40 +00002334 # differences in whitespace do not lead to failure.
2335 ac_old_val_w=`echo x $ac_old_val`
2336 ac_new_val_w=`echo x $ac_new_val`
2337 if test "$ac_old_val_w" != "$ac_new_val_w"; then
dana9f39fd2011-08-12 16:34:42 +00002338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00002339$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2340 ac_cache_corrupted=:
2341 else
dana9f39fd2011-08-12 16:34:42 +00002342 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00002343$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2344 eval $ac_var=\$ac_old_val
2345 fi
dana9f39fd2011-08-12 16:34:42 +00002346 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
drh8b727472009-01-19 18:18:40 +00002347$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
dana9f39fd2011-08-12 16:34:42 +00002348 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
drh8b727472009-01-19 18:18:40 +00002349$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002350 fi;;
2351 esac
a.rottmann84e63352003-03-24 09:42:16 +00002352 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00002353 if test "$ac_new_set" = set; then
2354 case $ac_new_val in
drh8b727472009-01-19 18:18:40 +00002355 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002356 *) ac_arg=$ac_var=$ac_new_val ;;
2357 esac
2358 case " $ac_configure_args " in
2359 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
dana9f39fd2011-08-12 16:34:42 +00002360 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002361 esac
2362 fi
2363done
2364if $ac_cache_corrupted; then
dana9f39fd2011-08-12 16:34:42 +00002365 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
drh8b727472009-01-19 18:18:40 +00002368$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
dana9f39fd2011-08-12 16:34:42 +00002369 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
drh75897232000-05-29 14:26:00 +00002370fi
dana9f39fd2011-08-12 16:34:42 +00002371## -------------------- ##
2372## Main body of script. ##
2373## -------------------- ##
drh8b727472009-01-19 18:18:40 +00002374
drh75897232000-05-29 14:26:00 +00002375ac_ext=c
drh75897232000-05-29 14:26:00 +00002376ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2379ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002380
a.rottmann84e63352003-03-24 09:42:16 +00002381
2382
drh04446102009-06-15 00:04:06 +00002383sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
vapierfaa68db2009-04-01 07:38:31 +00002384if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
dana9f39fd2011-08-12 16:34:42 +00002385as_fn_error "configure script is out of date:
vapierfaa68db2009-04-01 07:38:31 +00002386 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2387 top level VERSION file = $sqlite_version_sanity_check
dana9f39fd2011-08-12 16:34:42 +00002388please regen with autoconf" "$LINENO" 5
vapierfaa68db2009-04-01 07:38:31 +00002389fi
2390
drh75897232000-05-29 14:26:00 +00002391# The following RCS revision string applies to configure.in
drhcee4c932009-08-24 19:37:20 +00002392# $Revision: 1.56 $
drh75897232000-05-29 14:26:00 +00002393
2394#########
drh71eb93e2001-09-28 01:34:43 +00002395# Programs needed
drh75897232000-05-29 14:26:00 +00002396#
mlcreech636a9952008-05-05 22:52:56 +00002397case `pwd` in
2398 *\ * | *\ *)
dana9f39fd2011-08-12 16:34:42 +00002399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
drh8b727472009-01-19 18:18:40 +00002400$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00002401esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002402
mlcreech94984912008-03-04 19:03:08 +00002403
mlcreech636a9952008-05-05 22:52:56 +00002404
vapier6acb2cf2009-01-28 04:46:28 +00002405macro_version='2.2.6'
2406macro_revision='1.3012'
a.rottmann9bc8b932004-02-29 15:18:31 +00002407
mlcreech94984912008-03-04 19:03:08 +00002408
mlcreech94984912008-03-04 19:03:08 +00002409
a.rottmann9bc8b932004-02-29 15:18:31 +00002410
mlcreech636a9952008-05-05 22:52:56 +00002411
2412
2413
2414
2415
2416
2417
2418
2419
2420ltmain="$ac_aux_dir/ltmain.sh"
2421
drh71eb93e2001-09-28 01:34:43 +00002422ac_aux_dir=
drh8b727472009-01-19 18:18:40 +00002423for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
dana9f39fd2011-08-12 16:34:42 +00002424 for ac_t in install-sh install.sh shtool; do
2425 if test -f "$ac_dir/$ac_t"; then
2426 ac_aux_dir=$ac_dir
2427 ac_install_sh="$ac_aux_dir/$ac_t -c"
2428 break 2
2429 fi
2430 done
drh71eb93e2001-09-28 01:34:43 +00002431done
2432if test -z "$ac_aux_dir"; then
dana9f39fd2011-08-12 16:34:42 +00002433 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002434fi
drh8b727472009-01-19 18:18:40 +00002435
2436# These three variables are undocumented and unsupported,
2437# and are intended to be withdrawn in a future Autoconf release.
2438# They can cause serious problems if a builder's source tree is in a directory
2439# whose full name contains unusual characters.
2440ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2441ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2442ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2443
drh71eb93e2001-09-28 01:34:43 +00002444
2445# Make sure we can run config.sub.
drh8b727472009-01-19 18:18:40 +00002446$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
dana9f39fd2011-08-12 16:34:42 +00002447 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002448
dana9f39fd2011-08-12 16:34:42 +00002449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
drh8b727472009-01-19 18:18:40 +00002450$as_echo_n "checking build system type... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00002451if test "${ac_cv_build+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00002452 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002453else
drh8b727472009-01-19 18:18:40 +00002454 ac_build_alias=$build_alias
2455test "x$ac_build_alias" = x &&
2456 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2457test "x$ac_build_alias" = x &&
dana9f39fd2011-08-12 16:34:42 +00002458 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002459ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
dana9f39fd2011-08-12 16:34:42 +00002460 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002461
2462fi
dana9f39fd2011-08-12 16:34:42 +00002463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
drh8b727472009-01-19 18:18:40 +00002464$as_echo "$ac_cv_build" >&6; }
2465case $ac_cv_build in
2466*-*-*) ;;
dana9f39fd2011-08-12 16:34:42 +00002467*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002468esac
drh71eb93e2001-09-28 01:34:43 +00002469build=$ac_cv_build
drh8b727472009-01-19 18:18:40 +00002470ac_save_IFS=$IFS; IFS='-'
2471set x $ac_cv_build
2472shift
2473build_cpu=$1
2474build_vendor=$2
2475shift; shift
2476# Remember, the first character of IFS is used to create $*,
2477# except with old shells:
2478build_os=$*
2479IFS=$ac_save_IFS
2480case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002481
a.rottmann84e63352003-03-24 09:42:16 +00002482
dana9f39fd2011-08-12 16:34:42 +00002483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
drh8b727472009-01-19 18:18:40 +00002484$as_echo_n "checking host system type... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00002485if test "${ac_cv_host+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00002486 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002487else
drh8b727472009-01-19 18:18:40 +00002488 if test "x$host_alias" = x; then
2489 ac_cv_host=$ac_cv_build
2490else
2491 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
dana9f39fd2011-08-12 16:34:42 +00002492 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002493fi
drh71eb93e2001-09-28 01:34:43 +00002494
2495fi
dana9f39fd2011-08-12 16:34:42 +00002496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
drh8b727472009-01-19 18:18:40 +00002497$as_echo "$ac_cv_host" >&6; }
2498case $ac_cv_host in
2499*-*-*) ;;
dana9f39fd2011-08-12 16:34:42 +00002500*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002501esac
drh71eb93e2001-09-28 01:34:43 +00002502host=$ac_cv_host
drh8b727472009-01-19 18:18:40 +00002503ac_save_IFS=$IFS; IFS='-'
2504set x $ac_cv_host
2505shift
2506host_cpu=$1
2507host_vendor=$2
2508shift; shift
2509# Remember, the first character of IFS is used to create $*,
2510# except with old shells:
2511host_os=$*
2512IFS=$ac_save_IFS
2513case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002514
a.rottmann84e63352003-03-24 09:42:16 +00002515
drh71eb93e2001-09-28 01:34:43 +00002516ac_ext=c
2517ac_cpp='$CPP $CPPFLAGS'
2518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520ac_compiler_gnu=$ac_cv_c_compiler_gnu
2521if test -n "$ac_tool_prefix"; then
2522 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2523set dummy ${ac_tool_prefix}gcc; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00002524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002525$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00002526if test "${ac_cv_prog_CC+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00002527 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002528else
2529 if test -n "$CC"; then
2530 ac_cv_prog_CC="$CC" # Let the user override the test.
2531else
a.rottmann84e63352003-03-24 09:42:16 +00002532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533for as_dir in $PATH
2534do
2535 IFS=$as_save_IFS
2536 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00002537 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002539 ac_cv_prog_CC="${ac_tool_prefix}gcc"
dana9f39fd2011-08-12 16:34:42 +00002540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002541 break 2
2542 fi
2543done
dana9f39fd2011-08-12 16:34:42 +00002544 done
drh8b727472009-01-19 18:18:40 +00002545IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002546
2547fi
2548fi
2549CC=$ac_cv_prog_CC
2550if test -n "$CC"; then
dana9f39fd2011-08-12 16:34:42 +00002551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002552$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002553else
dana9f39fd2011-08-12 16:34:42 +00002554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002555$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002556fi
2557
drh8b727472009-01-19 18:18:40 +00002558
drh71eb93e2001-09-28 01:34:43 +00002559fi
2560if test -z "$ac_cv_prog_CC"; then
2561 ac_ct_CC=$CC
2562 # Extract the first word of "gcc", so it can be a program name with args.
2563set dummy gcc; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00002564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002565$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00002566if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00002567 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002568else
2569 if test -n "$ac_ct_CC"; then
2570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2571else
a.rottmann84e63352003-03-24 09:42:16 +00002572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573for as_dir in $PATH
2574do
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00002577 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002579 ac_cv_prog_ac_ct_CC="gcc"
dana9f39fd2011-08-12 16:34:42 +00002580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002581 break 2
2582 fi
2583done
dana9f39fd2011-08-12 16:34:42 +00002584 done
drh8b727472009-01-19 18:18:40 +00002585IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002586
2587fi
2588fi
2589ac_ct_CC=$ac_cv_prog_ac_ct_CC
2590if test -n "$ac_ct_CC"; then
dana9f39fd2011-08-12 16:34:42 +00002591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002592$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002593else
dana9f39fd2011-08-12 16:34:42 +00002594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002595$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002596fi
2597
drh8b727472009-01-19 18:18:40 +00002598 if test "x$ac_ct_CC" = x; then
2599 CC=""
2600 else
2601 case $cross_compiling:$ac_tool_warned in
2602yes:)
dana9f39fd2011-08-12 16:34:42 +00002603{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2604$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002605ac_tool_warned=yes ;;
2606esac
2607 CC=$ac_ct_CC
2608 fi
drh71eb93e2001-09-28 01:34:43 +00002609else
2610 CC="$ac_cv_prog_CC"
2611fi
2612
2613if test -z "$CC"; then
drh8b727472009-01-19 18:18:40 +00002614 if test -n "$ac_tool_prefix"; then
2615 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002616set dummy ${ac_tool_prefix}cc; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00002617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002618$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00002619if test "${ac_cv_prog_CC+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00002620 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002621else
2622 if test -n "$CC"; then
2623 ac_cv_prog_CC="$CC" # Let the user override the test.
2624else
a.rottmann84e63352003-03-24 09:42:16 +00002625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626for as_dir in $PATH
2627do
2628 IFS=$as_save_IFS
2629 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00002630 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002632 ac_cv_prog_CC="${ac_tool_prefix}cc"
dana9f39fd2011-08-12 16:34:42 +00002633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002634 break 2
2635 fi
2636done
dana9f39fd2011-08-12 16:34:42 +00002637 done
drh8b727472009-01-19 18:18:40 +00002638IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002639
2640fi
2641fi
2642CC=$ac_cv_prog_CC
2643if test -n "$CC"; then
dana9f39fd2011-08-12 16:34:42 +00002644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002645$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002646else
dana9f39fd2011-08-12 16:34:42 +00002647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002648$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002649fi
2650
drh8b727472009-01-19 18:18:40 +00002651
a.rottmann84e63352003-03-24 09:42:16 +00002652 fi
drh71eb93e2001-09-28 01:34:43 +00002653fi
2654if test -z "$CC"; then
2655 # Extract the first word of "cc", so it can be a program name with args.
2656set dummy cc; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00002657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002658$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00002659if test "${ac_cv_prog_CC+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00002660 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002661else
2662 if test -n "$CC"; then
2663 ac_cv_prog_CC="$CC" # Let the user override the test.
2664else
2665 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667for as_dir in $PATH
2668do
2669 IFS=$as_save_IFS
2670 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00002671 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002673 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2674 ac_prog_rejected=yes
2675 continue
2676 fi
2677 ac_cv_prog_CC="cc"
dana9f39fd2011-08-12 16:34:42 +00002678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002679 break 2
2680 fi
2681done
dana9f39fd2011-08-12 16:34:42 +00002682 done
drh8b727472009-01-19 18:18:40 +00002683IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002684
2685if test $ac_prog_rejected = yes; then
2686 # We found a bogon in the path, so make sure we never use it.
2687 set dummy $ac_cv_prog_CC
2688 shift
2689 if test $# != 0; then
2690 # We chose a different compiler from the bogus one.
2691 # However, it has the same basename, so the bogon will be chosen
2692 # first if we set CC to just the basename; use the full file name.
2693 shift
a.rottmann84e63352003-03-24 09:42:16 +00002694 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002695 fi
2696fi
2697fi
2698fi
2699CC=$ac_cv_prog_CC
2700if test -n "$CC"; then
dana9f39fd2011-08-12 16:34:42 +00002701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002702$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002703else
dana9f39fd2011-08-12 16:34:42 +00002704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002705$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002706fi
2707
drh8b727472009-01-19 18:18:40 +00002708
drh71eb93e2001-09-28 01:34:43 +00002709fi
2710if test -z "$CC"; then
2711 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00002712 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002713 do
2714 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2715set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00002716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002717$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00002718if test "${ac_cv_prog_CC+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00002719 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002720else
2721 if test -n "$CC"; then
2722 ac_cv_prog_CC="$CC" # Let the user override the test.
2723else
a.rottmann84e63352003-03-24 09:42:16 +00002724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725for as_dir in $PATH
2726do
2727 IFS=$as_save_IFS
2728 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00002729 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002731 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
dana9f39fd2011-08-12 16:34:42 +00002732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002733 break 2
2734 fi
2735done
dana9f39fd2011-08-12 16:34:42 +00002736 done
drh8b727472009-01-19 18:18:40 +00002737IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002738
2739fi
2740fi
2741CC=$ac_cv_prog_CC
2742if test -n "$CC"; then
dana9f39fd2011-08-12 16:34:42 +00002743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002744$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002745else
dana9f39fd2011-08-12 16:34:42 +00002746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002747$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002748fi
2749
drh8b727472009-01-19 18:18:40 +00002750
drh71eb93e2001-09-28 01:34:43 +00002751 test -n "$CC" && break
2752 done
2753fi
2754if test -z "$CC"; then
2755 ac_ct_CC=$CC
drh8b727472009-01-19 18:18:40 +00002756 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002757do
2758 # Extract the first word of "$ac_prog", so it can be a program name with args.
2759set dummy $ac_prog; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00002760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002761$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00002762if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00002763 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002764else
2765 if test -n "$ac_ct_CC"; then
2766 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2767else
a.rottmann84e63352003-03-24 09:42:16 +00002768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769for as_dir in $PATH
2770do
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00002773 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002775 ac_cv_prog_ac_ct_CC="$ac_prog"
dana9f39fd2011-08-12 16:34:42 +00002776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002777 break 2
2778 fi
2779done
dana9f39fd2011-08-12 16:34:42 +00002780 done
drh8b727472009-01-19 18:18:40 +00002781IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002782
2783fi
2784fi
2785ac_ct_CC=$ac_cv_prog_ac_ct_CC
2786if test -n "$ac_ct_CC"; then
dana9f39fd2011-08-12 16:34:42 +00002787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002788$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002789else
dana9f39fd2011-08-12 16:34:42 +00002790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002791$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002792fi
2793
drh8b727472009-01-19 18:18:40 +00002794
drh71eb93e2001-09-28 01:34:43 +00002795 test -n "$ac_ct_CC" && break
2796done
2797
drh8b727472009-01-19 18:18:40 +00002798 if test "x$ac_ct_CC" = x; then
2799 CC=""
2800 else
2801 case $cross_compiling:$ac_tool_warned in
2802yes:)
dana9f39fd2011-08-12 16:34:42 +00002803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002805ac_tool_warned=yes ;;
2806esac
2807 CC=$ac_ct_CC
2808 fi
drh71eb93e2001-09-28 01:34:43 +00002809fi
2810
2811fi
2812
a.rottmann84e63352003-03-24 09:42:16 +00002813
dana9f39fd2011-08-12 16:34:42 +00002814test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2815$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2816as_fn_error "no acceptable C compiler found in \$PATH
2817See \`config.log' for more details." "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00002818
2819# Provide some information about the compiler.
dana9f39fd2011-08-12 16:34:42 +00002820$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
drh8b727472009-01-19 18:18:40 +00002821set X $ac_compile
2822ac_compiler=$2
dana9f39fd2011-08-12 16:34:42 +00002823for ac_option in --version -v -V -qversion; do
2824 { { ac_try="$ac_compiler $ac_option >&5"
drh8b727472009-01-19 18:18:40 +00002825case "(($ac_try" in
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2828esac
dana9f39fd2011-08-12 16:34:42 +00002829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2830$as_echo "$ac_try_echo"; } >&5
2831 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
drh71eb93e2001-09-28 01:34:43 +00002832 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00002833 if test -s conftest.err; then
2834 sed '10a\
2835... rest of stderr output deleted ...
2836 10q' conftest.err >conftest.er1
2837 cat conftest.er1 >&5
2838 fi
2839 rm -f conftest.er1 conftest.err
2840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2841 test $ac_status = 0; }
2842done
drh71eb93e2001-09-28 01:34:43 +00002843
dana9f39fd2011-08-12 16:34:42 +00002844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00002845/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002846
2847int
2848main ()
2849{
2850
2851 ;
2852 return 0;
2853}
2854_ACEOF
2855ac_clean_files_save=$ac_clean_files
drh8b727472009-01-19 18:18:40 +00002856ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002857# Try to create an executable without -o first, disregard a.out.
2858# It will help us diagnose broken compilers, and finding out an intuition
2859# of exeext.
dana9f39fd2011-08-12 16:34:42 +00002860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2861$as_echo_n "checking whether the C compiler works... " >&6; }
drh8b727472009-01-19 18:18:40 +00002862ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
drh866108f2008-05-13 00:57:21 +00002863
drh8b727472009-01-19 18:18:40 +00002864# The possible output files:
2865ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2866
2867ac_rmfiles=
2868for ac_file in $ac_files
2869do
2870 case $ac_file in
2871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2872 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2873 esac
2874done
2875rm -f $ac_rmfiles
2876
dana9f39fd2011-08-12 16:34:42 +00002877if { { ac_try="$ac_link_default"
drh8b727472009-01-19 18:18:40 +00002878case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881esac
dana9f39fd2011-08-12 16:34:42 +00002882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2883$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00002884 (eval "$ac_link_default") 2>&5
2885 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00002886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2887 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00002888 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2889# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2890# in a Makefile. We should not override ac_cv_exeext if it was cached,
2891# so that the user can short-circuit this test for compilers unknown to
2892# Autoconf.
2893for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002894do
2895 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002896 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002898 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002899 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002900 # We found the default executable, but exeext='' is most
2901 # certainly right.
2902 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002903 *.* )
dana9f39fd2011-08-12 16:34:42 +00002904 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
drh8b727472009-01-19 18:18:40 +00002905 then :; else
2906 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2907 fi
2908 # We set ac_cv_exeext here because the later test for it is not
2909 # safe: cross compilers may not add the suffix if given an `-o'
2910 # argument, so we may need to know it at that point already.
2911 # Even if this section looks crufty: it has the advantage of
2912 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002913 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002914 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002915 break;;
drh71eb93e2001-09-28 01:34:43 +00002916 esac
2917done
drh8b727472009-01-19 18:18:40 +00002918test "$ac_cv_exeext" = no && ac_cv_exeext=
2919
drh71eb93e2001-09-28 01:34:43 +00002920else
drh8b727472009-01-19 18:18:40 +00002921 ac_file=''
2922fi
dana9f39fd2011-08-12 16:34:42 +00002923if test -z "$ac_file"; then :
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925$as_echo "no" >&6; }
2926$as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002927sed 's/^/| /' conftest.$ac_ext >&5
2928
dana9f39fd2011-08-12 16:34:42 +00002929{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2930$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2931{ as_fn_set_status 77
2932as_fn_error "C compiler cannot create executables
2933See \`config.log' for more details." "$LINENO" 5; }; }
2934else
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00002936$as_echo "yes" >&6; }
dana9f39fd2011-08-12 16:34:42 +00002937fi
2938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2939$as_echo_n "checking for C compiler default output file name... " >&6; }
2940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2941$as_echo "$ac_file" >&6; }
2942ac_exeext=$ac_cv_exeext
drh71eb93e2001-09-28 01:34:43 +00002943
drh8b727472009-01-19 18:18:40 +00002944rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002945ac_clean_files=$ac_clean_files_save
dana9f39fd2011-08-12 16:34:42 +00002946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
drh8b727472009-01-19 18:18:40 +00002947$as_echo_n "checking for suffix of executables... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00002948if { { ac_try="$ac_link"
drh8b727472009-01-19 18:18:40 +00002949case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952esac
dana9f39fd2011-08-12 16:34:42 +00002953eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2954$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00002955 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002956 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00002957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2958 test $ac_status = 0; }; then :
drh71eb93e2001-09-28 01:34:43 +00002959 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2960# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2961# work properly (i.e., refer to `conftest.exe'), while it won't with
2962# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002963for ac_file in conftest.exe conftest conftest.*; do
2964 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002965 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002967 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00002968 break;;
drh71eb93e2001-09-28 01:34:43 +00002969 * ) break;;
2970 esac
2971done
2972else
dana9f39fd2011-08-12 16:34:42 +00002973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2974$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2975as_fn_error "cannot compute suffix of executables: cannot compile and link
2976See \`config.log' for more details." "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00002977fi
dana9f39fd2011-08-12 16:34:42 +00002978rm -f conftest conftest$ac_cv_exeext
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
drh8b727472009-01-19 18:18:40 +00002980$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002981
2982rm -f conftest.$ac_ext
2983EXEEXT=$ac_cv_exeext
2984ac_exeext=$EXEEXT
dana9f39fd2011-08-12 16:34:42 +00002985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2986/* end confdefs.h. */
2987#include <stdio.h>
2988int
2989main ()
2990{
2991FILE *f = fopen ("conftest.out", "w");
2992 return ferror (f) || fclose (f) != 0;
2993
2994 ;
2995 return 0;
2996}
2997_ACEOF
2998ac_clean_files="$ac_clean_files conftest.out"
2999# Check that the compiler produces executables we can run. If not, either
3000# the compiler is broken, or we cross compile.
3001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3002$as_echo_n "checking whether we are cross compiling... " >&6; }
3003if test "$cross_compiling" != yes; then
3004 { { ac_try="$ac_link"
3005case "(($ac_try" in
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3008esac
3009eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3010$as_echo "$ac_try_echo"; } >&5
3011 (eval "$ac_link") 2>&5
3012 ac_status=$?
3013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3014 test $ac_status = 0; }
3015 if { ac_try='./conftest$ac_cv_exeext'
3016 { { case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019esac
3020eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3021$as_echo "$ac_try_echo"; } >&5
3022 (eval "$ac_try") 2>&5
3023 ac_status=$?
3024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3025 test $ac_status = 0; }; }; then
3026 cross_compiling=no
3027 else
3028 if test "$cross_compiling" = maybe; then
3029 cross_compiling=yes
3030 else
3031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3033as_fn_error "cannot run C compiled programs.
3034If you meant to cross compile, use \`--host'.
3035See \`config.log' for more details." "$LINENO" 5; }
3036 fi
3037 fi
3038fi
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3040$as_echo "$cross_compiling" >&6; }
3041
3042rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3043ac_clean_files=$ac_clean_files_save
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
drh8b727472009-01-19 18:18:40 +00003045$as_echo_n "checking for suffix of object files... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00003046if test "${ac_cv_objext+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003047 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003048else
dana9f39fd2011-08-12 16:34:42 +00003049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003050/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003051
3052int
3053main ()
3054{
3055
3056 ;
3057 return 0;
3058}
3059_ACEOF
3060rm -f conftest.o conftest.obj
dana9f39fd2011-08-12 16:34:42 +00003061if { { ac_try="$ac_compile"
drh8b727472009-01-19 18:18:40 +00003062case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3065esac
dana9f39fd2011-08-12 16:34:42 +00003066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3067$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00003068 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003069 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00003070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3071 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00003072 for ac_file in conftest.o conftest.obj conftest.*; do
3073 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00003074 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00003076 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3077 break;;
3078 esac
3079done
3080else
drh8b727472009-01-19 18:18:40 +00003081 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00003082sed 's/^/| /' conftest.$ac_ext >&5
3083
dana9f39fd2011-08-12 16:34:42 +00003084{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3085$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3086as_fn_error "cannot compute suffix of object files: cannot compile
3087See \`config.log' for more details." "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003088fi
drh71eb93e2001-09-28 01:34:43 +00003089rm -f conftest.$ac_cv_objext conftest.$ac_ext
3090fi
dana9f39fd2011-08-12 16:34:42 +00003091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
drh8b727472009-01-19 18:18:40 +00003092$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003093OBJEXT=$ac_cv_objext
3094ac_objext=$OBJEXT
dana9f39fd2011-08-12 16:34:42 +00003095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
drh8b727472009-01-19 18:18:40 +00003096$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00003097if test "${ac_cv_c_compiler_gnu+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003098 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003099else
dana9f39fd2011-08-12 16:34:42 +00003100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003101/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003102
3103int
3104main ()
3105{
3106#ifndef __GNUC__
3107 choke me
3108#endif
3109
3110 ;
3111 return 0;
3112}
3113_ACEOF
dana9f39fd2011-08-12 16:34:42 +00003114if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003115 ac_compiler_gnu=yes
3116else
dana9f39fd2011-08-12 16:34:42 +00003117 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00003118fi
drh8b727472009-01-19 18:18:40 +00003119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003120ac_cv_c_compiler_gnu=$ac_compiler_gnu
3121
3122fi
dana9f39fd2011-08-12 16:34:42 +00003123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
drh8b727472009-01-19 18:18:40 +00003124$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3125if test $ac_compiler_gnu = yes; then
3126 GCC=yes
3127else
3128 GCC=
3129fi
drh71eb93e2001-09-28 01:34:43 +00003130ac_test_CFLAGS=${CFLAGS+set}
3131ac_save_CFLAGS=$CFLAGS
dana9f39fd2011-08-12 16:34:42 +00003132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
drh8b727472009-01-19 18:18:40 +00003133$as_echo_n "checking whether $CC accepts -g... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00003134if test "${ac_cv_prog_cc_g+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003135 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003136else
drh8b727472009-01-19 18:18:40 +00003137 ac_save_c_werror_flag=$ac_c_werror_flag
3138 ac_c_werror_flag=yes
3139 ac_cv_prog_cc_g=no
3140 CFLAGS="-g"
dana9f39fd2011-08-12 16:34:42 +00003141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003142/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003143
3144int
3145main ()
3146{
3147
3148 ;
3149 return 0;
3150}
3151_ACEOF
dana9f39fd2011-08-12 16:34:42 +00003152if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003153 ac_cv_prog_cc_g=yes
3154else
dana9f39fd2011-08-12 16:34:42 +00003155 CFLAGS=""
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003157/* end confdefs.h. */
3158
3159int
3160main ()
3161{
3162
3163 ;
3164 return 0;
3165}
3166_ACEOF
dana9f39fd2011-08-12 16:34:42 +00003167if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003168
dana9f39fd2011-08-12 16:34:42 +00003169else
3170 ac_c_werror_flag=$ac_save_c_werror_flag
drh8b727472009-01-19 18:18:40 +00003171 CFLAGS="-g"
dana9f39fd2011-08-12 16:34:42 +00003172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003173/* end confdefs.h. */
3174
3175int
3176main ()
3177{
3178
3179 ;
3180 return 0;
3181}
3182_ACEOF
dana9f39fd2011-08-12 16:34:42 +00003183if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003184 ac_cv_prog_cc_g=yes
drh71eb93e2001-09-28 01:34:43 +00003185fi
drh8b727472009-01-19 18:18:40 +00003186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003187fi
drh8b727472009-01-19 18:18:40 +00003188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189fi
drh8b727472009-01-19 18:18:40 +00003190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 ac_c_werror_flag=$ac_save_c_werror_flag
3192fi
dana9f39fd2011-08-12 16:34:42 +00003193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
drh8b727472009-01-19 18:18:40 +00003194$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003195if test "$ac_test_CFLAGS" = set; then
3196 CFLAGS=$ac_save_CFLAGS
3197elif test $ac_cv_prog_cc_g = yes; then
3198 if test "$GCC" = yes; then
3199 CFLAGS="-g -O2"
3200 else
3201 CFLAGS="-g"
3202 fi
3203else
3204 if test "$GCC" = yes; then
3205 CFLAGS="-O2"
3206 else
3207 CFLAGS=
3208 fi
3209fi
dana9f39fd2011-08-12 16:34:42 +00003210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
drh8b727472009-01-19 18:18:40 +00003211$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00003212if test "${ac_cv_prog_cc_c89+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003213 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003214else
drh8b727472009-01-19 18:18:40 +00003215 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003216ac_save_CC=$CC
dana9f39fd2011-08-12 16:34:42 +00003217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003218/* end confdefs.h. */
3219#include <stdarg.h>
3220#include <stdio.h>
3221#include <sys/types.h>
3222#include <sys/stat.h>
3223/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3224struct buf { int x; };
3225FILE * (*rcsopen) (struct buf *, struct stat *, int);
3226static char *e (p, i)
3227 char **p;
3228 int i;
3229{
3230 return p[i];
3231}
3232static char *f (char * (*g) (char **, int), char **p, ...)
3233{
3234 char *s;
3235 va_list v;
3236 va_start (v,p);
3237 s = g (p, va_arg (v,int));
3238 va_end (v);
3239 return s;
3240}
a.rottmann964dbb12004-02-26 19:47:42 +00003241
3242/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3243 function prototypes and stuff, but not '\xHH' hex character constants.
3244 These don't provoke an error unfortunately, instead are silently treated
drh8b727472009-01-19 18:18:40 +00003245 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003246 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3247 array size at least. It's necessary to write '\x00'==0 to get something
drh8b727472009-01-19 18:18:40 +00003248 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003249int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3250
drh8b727472009-01-19 18:18:40 +00003251/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3252 inside strings and character constants. */
3253#define FOO(x) 'x'
3254int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3255
a.rottmann84e63352003-03-24 09:42:16 +00003256int test (int i, double x);
3257struct s1 {int (*f) (int a);};
3258struct s2 {int (*f) (double a);};
3259int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3260int argc;
3261char **argv;
3262int
3263main ()
3264{
3265return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3266 ;
3267 return 0;
3268}
3269_ACEOF
drh8b727472009-01-19 18:18:40 +00003270for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3271 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003272do
3273 CC="$ac_save_CC $ac_arg"
dana9f39fd2011-08-12 16:34:42 +00003274 if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003275 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003276fi
drh8b727472009-01-19 18:18:40 +00003277rm -f core conftest.err conftest.$ac_objext
3278 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003279done
drh8b727472009-01-19 18:18:40 +00003280rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003281CC=$ac_save_CC
3282
3283fi
drh8b727472009-01-19 18:18:40 +00003284# AC_CACHE_VAL
3285case "x$ac_cv_prog_cc_c89" in
3286 x)
dana9f39fd2011-08-12 16:34:42 +00003287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
drh8b727472009-01-19 18:18:40 +00003288$as_echo "none needed" >&6; } ;;
3289 xno)
dana9f39fd2011-08-12 16:34:42 +00003290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
drh8b727472009-01-19 18:18:40 +00003291$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003292 *)
drh8b727472009-01-19 18:18:40 +00003293 CC="$CC $ac_cv_prog_cc_c89"
dana9f39fd2011-08-12 16:34:42 +00003294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
drh8b727472009-01-19 18:18:40 +00003295$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003296esac
dana9f39fd2011-08-12 16:34:42 +00003297if test "x$ac_cv_prog_cc_c89" != xno; then :
a.rottmann84e63352003-03-24 09:42:16 +00003298
dana9f39fd2011-08-12 16:34:42 +00003299fi
a.rottmann84e63352003-03-24 09:42:16 +00003300
drh71eb93e2001-09-28 01:34:43 +00003301ac_ext=c
3302ac_cpp='$CPP $CPPFLAGS'
3303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3305ac_compiler_gnu=$ac_cv_c_compiler_gnu
3306
dana9f39fd2011-08-12 16:34:42 +00003307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
drh8b727472009-01-19 18:18:40 +00003308$as_echo_n "checking for a sed that does not truncate output... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00003309if test "${ac_cv_path_SED+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003310 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003311else
drh8b727472009-01-19 18:18:40 +00003312 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3313 for ac_i in 1 2 3 4 5 6 7; do
3314 ac_script="$ac_script$as_nl$ac_script"
3315 done
3316 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
dana9f39fd2011-08-12 16:34:42 +00003317 { ac_script=; unset ac_script;}
drh8b727472009-01-19 18:18:40 +00003318 if test -z "$SED"; then
3319 ac_path_SED_found=false
3320 # Loop through the user's path and test for each of PROGNAME-LIST
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003322for as_dir in $PATH
3323do
3324 IFS=$as_save_IFS
3325 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00003326 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003327 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003328 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3329 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3330# Check for GNU ac_path_SED and select it if it is found.
3331 # Check for GNU $ac_path_SED
3332case `"$ac_path_SED" --version 2>&1` in
3333*GNU*)
3334 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3335*)
3336 ac_count=0
3337 $as_echo_n 0123456789 >"conftest.in"
3338 while :
3339 do
3340 cat "conftest.in" "conftest.in" >"conftest.tmp"
3341 mv "conftest.tmp" "conftest.in"
3342 cp "conftest.in" "conftest.nl"
3343 $as_echo '' >> "conftest.nl"
3344 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3345 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
dana9f39fd2011-08-12 16:34:42 +00003346 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003347 if test $ac_count -gt ${ac_path_SED_max-0}; then
3348 # Best one so far, save it but keep looking for a better one
3349 ac_cv_path_SED="$ac_path_SED"
3350 ac_path_SED_max=$ac_count
3351 fi
3352 # 10*(2^10) chars as input seems more than enough
3353 test $ac_count -gt 10 && break
3354 done
3355 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3356esac
3357
3358 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003359 done
3360 done
dana9f39fd2011-08-12 16:34:42 +00003361 done
mlcreech636a9952008-05-05 22:52:56 +00003362IFS=$as_save_IFS
drh8b727472009-01-19 18:18:40 +00003363 if test -z "$ac_cv_path_SED"; then
dana9f39fd2011-08-12 16:34:42 +00003364 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
a.rottmann9bc8b932004-02-29 15:18:31 +00003365 fi
drh8b727472009-01-19 18:18:40 +00003366else
3367 ac_cv_path_SED=$SED
mlcreech636a9952008-05-05 22:52:56 +00003368fi
drh866108f2008-05-13 00:57:21 +00003369
drh8b727472009-01-19 18:18:40 +00003370fi
dana9f39fd2011-08-12 16:34:42 +00003371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
drh8b727472009-01-19 18:18:40 +00003372$as_echo "$ac_cv_path_SED" >&6; }
3373 SED="$ac_cv_path_SED"
3374 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003375
mlcreech636a9952008-05-05 22:52:56 +00003376test -z "$SED" && SED=sed
3377Xsed="$SED -e 1s/^X//"
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
dana9f39fd2011-08-12 16:34:42 +00003389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
drh8b727472009-01-19 18:18:40 +00003390$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00003391if test "${ac_cv_path_GREP+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003392 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003393else
drh8b727472009-01-19 18:18:40 +00003394 if test -z "$GREP"; then
3395 ac_path_GREP_found=false
3396 # Loop through the user's path and test for each of PROGNAME-LIST
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3399do
3400 IFS=$as_save_IFS
3401 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00003402 for ac_prog in grep ggrep; do
drh8b727472009-01-19 18:18:40 +00003403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3405 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3406# Check for GNU ac_path_GREP and select it if it is found.
3407 # Check for GNU $ac_path_GREP
3408case `"$ac_path_GREP" --version 2>&1` in
3409*GNU*)
3410 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3411*)
3412 ac_count=0
3413 $as_echo_n 0123456789 >"conftest.in"
3414 while :
3415 do
3416 cat "conftest.in" "conftest.in" >"conftest.tmp"
3417 mv "conftest.tmp" "conftest.in"
3418 cp "conftest.in" "conftest.nl"
3419 $as_echo 'GREP' >> "conftest.nl"
3420 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3421 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
dana9f39fd2011-08-12 16:34:42 +00003422 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003423 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3424 # Best one so far, save it but keep looking for a better one
3425 ac_cv_path_GREP="$ac_path_GREP"
3426 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003427 fi
drh8b727472009-01-19 18:18:40 +00003428 # 10*(2^10) chars as input seems more than enough
3429 test $ac_count -gt 10 && break
3430 done
3431 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3432esac
3433
3434 $ac_path_GREP_found && break 3
3435 done
3436 done
dana9f39fd2011-08-12 16:34:42 +00003437 done
drh8b727472009-01-19 18:18:40 +00003438IFS=$as_save_IFS
3439 if test -z "$ac_cv_path_GREP"; then
dana9f39fd2011-08-12 16:34:42 +00003440 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003441 fi
3442else
3443 ac_cv_path_GREP=$GREP
mlcreech94984912008-03-04 19:03:08 +00003444fi
drh8b727472009-01-19 18:18:40 +00003445
3446fi
dana9f39fd2011-08-12 16:34:42 +00003447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
drh8b727472009-01-19 18:18:40 +00003448$as_echo "$ac_cv_path_GREP" >&6; }
3449 GREP="$ac_cv_path_GREP"
mlcreech94984912008-03-04 19:03:08 +00003450
3451
dana9f39fd2011-08-12 16:34:42 +00003452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
drh8b727472009-01-19 18:18:40 +00003453$as_echo_n "checking for egrep... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00003454if test "${ac_cv_path_EGREP+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003455 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003456else
drh8b727472009-01-19 18:18:40 +00003457 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3458 then ac_cv_path_EGREP="$GREP -E"
3459 else
3460 if test -z "$EGREP"; then
3461 ac_path_EGREP_found=false
3462 # Loop through the user's path and test for each of PROGNAME-LIST
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3465do
3466 IFS=$as_save_IFS
3467 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00003468 for ac_prog in egrep; do
drh8b727472009-01-19 18:18:40 +00003469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3471 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3472# Check for GNU ac_path_EGREP and select it if it is found.
3473 # Check for GNU $ac_path_EGREP
3474case `"$ac_path_EGREP" --version 2>&1` in
3475*GNU*)
3476 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3477*)
3478 ac_count=0
3479 $as_echo_n 0123456789 >"conftest.in"
3480 while :
3481 do
3482 cat "conftest.in" "conftest.in" >"conftest.tmp"
3483 mv "conftest.tmp" "conftest.in"
3484 cp "conftest.in" "conftest.nl"
3485 $as_echo 'EGREP' >> "conftest.nl"
3486 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3487 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
dana9f39fd2011-08-12 16:34:42 +00003488 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003489 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3490 # Best one so far, save it but keep looking for a better one
3491 ac_cv_path_EGREP="$ac_path_EGREP"
3492 ac_path_EGREP_max=$ac_count
mlcreech94984912008-03-04 19:03:08 +00003493 fi
drh8b727472009-01-19 18:18:40 +00003494 # 10*(2^10) chars as input seems more than enough
3495 test $ac_count -gt 10 && break
3496 done
3497 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3498esac
3499
3500 $ac_path_EGREP_found && break 3
3501 done
3502 done
dana9f39fd2011-08-12 16:34:42 +00003503 done
drh8b727472009-01-19 18:18:40 +00003504IFS=$as_save_IFS
3505 if test -z "$ac_cv_path_EGREP"; then
dana9f39fd2011-08-12 16:34:42 +00003506 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003507 fi
3508else
3509 ac_cv_path_EGREP=$EGREP
mlcreech94984912008-03-04 19:03:08 +00003510fi
drh8b727472009-01-19 18:18:40 +00003511
3512 fi
3513fi
dana9f39fd2011-08-12 16:34:42 +00003514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
drh8b727472009-01-19 18:18:40 +00003515$as_echo "$ac_cv_path_EGREP" >&6; }
3516 EGREP="$ac_cv_path_EGREP"
3517
3518
dana9f39fd2011-08-12 16:34:42 +00003519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
drh8b727472009-01-19 18:18:40 +00003520$as_echo_n "checking for fgrep... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00003521if test "${ac_cv_path_FGREP+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003522 $as_echo_n "(cached) " >&6
3523else
3524 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3525 then ac_cv_path_FGREP="$GREP -F"
3526 else
3527 if test -z "$FGREP"; then
3528 ac_path_FGREP_found=false
3529 # Loop through the user's path and test for each of PROGNAME-LIST
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3532do
3533 IFS=$as_save_IFS
3534 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00003535 for ac_prog in fgrep; do
drh8b727472009-01-19 18:18:40 +00003536 for ac_exec_ext in '' $ac_executable_extensions; do
3537 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3538 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3539# Check for GNU ac_path_FGREP and select it if it is found.
3540 # Check for GNU $ac_path_FGREP
3541case `"$ac_path_FGREP" --version 2>&1` in
3542*GNU*)
3543 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3544*)
3545 ac_count=0
3546 $as_echo_n 0123456789 >"conftest.in"
3547 while :
3548 do
3549 cat "conftest.in" "conftest.in" >"conftest.tmp"
3550 mv "conftest.tmp" "conftest.in"
3551 cp "conftest.in" "conftest.nl"
3552 $as_echo 'FGREP' >> "conftest.nl"
3553 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3554 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
dana9f39fd2011-08-12 16:34:42 +00003555 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003556 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3557 # Best one so far, save it but keep looking for a better one
3558 ac_cv_path_FGREP="$ac_path_FGREP"
3559 ac_path_FGREP_max=$ac_count
3560 fi
3561 # 10*(2^10) chars as input seems more than enough
3562 test $ac_count -gt 10 && break
3563 done
3564 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3565esac
3566
3567 $ac_path_FGREP_found && break 3
3568 done
3569 done
dana9f39fd2011-08-12 16:34:42 +00003570 done
drh8b727472009-01-19 18:18:40 +00003571IFS=$as_save_IFS
3572 if test -z "$ac_cv_path_FGREP"; then
dana9f39fd2011-08-12 16:34:42 +00003573 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003574 fi
3575else
3576 ac_cv_path_FGREP=$FGREP
3577fi
3578
3579 fi
3580fi
dana9f39fd2011-08-12 16:34:42 +00003581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
drh8b727472009-01-19 18:18:40 +00003582$as_echo "$ac_cv_path_FGREP" >&6; }
3583 FGREP="$ac_cv_path_FGREP"
mlcreech636a9952008-05-05 22:52:56 +00003584
3585
3586test -z "$GREP" && GREP=grep
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
a.rottmann9bc8b932004-02-29 15:18:31 +00003603
3604
a.rottmann84e63352003-03-24 09:42:16 +00003605
drh8b727472009-01-19 18:18:40 +00003606# Check whether --with-gnu-ld was given.
dana9f39fd2011-08-12 16:34:42 +00003607if test "${with_gnu_ld+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003608 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003609else
3610 with_gnu_ld=no
drh8b727472009-01-19 18:18:40 +00003611fi
3612
drh71eb93e2001-09-28 01:34:43 +00003613ac_prog=ld
3614if test "$GCC" = yes; then
3615 # Check if gcc -print-prog-name=ld gives a path.
dana9f39fd2011-08-12 16:34:42 +00003616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
drh8b727472009-01-19 18:18:40 +00003617$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003618 case $host in
3619 *-*-mingw*)
3620 # gcc leaves a trailing carriage return which upsets mingw
3621 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3622 *)
3623 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3624 esac
3625 case $ac_prog in
3626 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003627 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003628 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003629 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003630 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3631 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3632 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003633 done
3634 test -z "$LD" && LD="$ac_prog"
3635 ;;
3636 "")
3637 # If it fails, then pretend we aren't using GCC.
3638 ac_prog=ld
3639 ;;
3640 *)
3641 # If it is relative, then search for the first ld in PATH.
3642 with_gnu_ld=unknown
3643 ;;
3644 esac
3645elif test "$with_gnu_ld" = yes; then
dana9f39fd2011-08-12 16:34:42 +00003646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003647$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003648else
dana9f39fd2011-08-12 16:34:42 +00003649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003650$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003651fi
dana9f39fd2011-08-12 16:34:42 +00003652if test "${lt_cv_path_LD+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003653 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003654else
3655 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003656 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003657 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003658 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003659 test -z "$ac_dir" && ac_dir=.
3660 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3661 lt_cv_path_LD="$ac_dir/$ac_prog"
3662 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003663 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003664 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003665 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3666 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003667 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003668 ;;
3669 *)
drh71eb93e2001-09-28 01:34:43 +00003670 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003671 ;;
3672 esac
drh71eb93e2001-09-28 01:34:43 +00003673 fi
3674 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003675 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003676else
3677 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3678fi
3679fi
3680
3681LD="$lt_cv_path_LD"
3682if test -n "$LD"; then
dana9f39fd2011-08-12 16:34:42 +00003683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
drh8b727472009-01-19 18:18:40 +00003684$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003685else
dana9f39fd2011-08-12 16:34:42 +00003686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003687$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003688fi
dana9f39fd2011-08-12 16:34:42 +00003689test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003691$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00003692if test "${lt_cv_prog_gnu_ld+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003693 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003694else
vapier7f19c022007-02-17 14:46:31 +00003695 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003696case `$LD -v 2>&1 </dev/null` in
3697*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003698 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003699 ;;
3700*)
drh71eb93e2001-09-28 01:34:43 +00003701 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003702 ;;
3703esac
drh71eb93e2001-09-28 01:34:43 +00003704fi
dana9f39fd2011-08-12 16:34:42 +00003705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
drh8b727472009-01-19 18:18:40 +00003706$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003707with_gnu_ld=$lt_cv_prog_gnu_ld
3708
a.rottmann84e63352003-03-24 09:42:16 +00003709
drh71eb93e2001-09-28 01:34:43 +00003710
mlcreech636a9952008-05-05 22:52:56 +00003711
3712
3713
3714
3715
3716
dana9f39fd2011-08-12 16:34:42 +00003717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
drh8b727472009-01-19 18:18:40 +00003718$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00003719if test "${lt_cv_path_NM+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003720 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003721else
3722 if test -n "$NM"; then
3723 # Let the user override the test.
3724 lt_cv_path_NM="$NM"
3725else
vapier7f19c022007-02-17 14:46:31 +00003726 lt_nm_to_check="${ac_tool_prefix}nm"
3727 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3728 lt_nm_to_check="$lt_nm_to_check nm"
3729 fi
3730 for lt_tmp_nm in $lt_nm_to_check; do
3731 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3732 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3733 IFS="$lt_save_ifs"
3734 test -z "$ac_dir" && ac_dir=.
3735 tmp_nm="$ac_dir/$lt_tmp_nm"
3736 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3737 # Check to see if the nm accepts a BSD-compat flag.
3738 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3739 # nm: unknown option "B" ignored
3740 # Tru64's nm complains that /dev/null is an invalid object file
3741 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3742 */dev/null* | *'Invalid file or object type'*)
3743 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003744 break
3745 ;;
3746 *)
vapier7f19c022007-02-17 14:46:31 +00003747 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3748 */dev/null*)
3749 lt_cv_path_NM="$tmp_nm -p"
3750 break
3751 ;;
3752 *)
3753 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3754 continue # so that we can try to find one that supports BSD flags
3755 ;;
3756 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003757 ;;
3758 esac
vapier7f19c022007-02-17 14:46:31 +00003759 fi
3760 done
3761 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003762 done
mlcreech636a9952008-05-05 22:52:56 +00003763 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003764fi
3765fi
dana9f39fd2011-08-12 16:34:42 +00003766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
drh8b727472009-01-19 18:18:40 +00003767$as_echo "$lt_cv_path_NM" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003768if test "$lt_cv_path_NM" != "no"; then
3769 NM="$lt_cv_path_NM"
3770else
3771 # Didn't find any BSD compatible name lister, look for dumpbin.
3772 if test -n "$ac_tool_prefix"; then
3773 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3774 do
3775 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3776set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00003777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003778$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00003779if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003780 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003781else
3782 if test -n "$DUMPBIN"; then
3783 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3784else
3785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786for as_dir in $PATH
3787do
3788 IFS=$as_save_IFS
3789 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00003790 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00003792 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
dana9f39fd2011-08-12 16:34:42 +00003793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003794 break 2
3795 fi
3796done
dana9f39fd2011-08-12 16:34:42 +00003797 done
drh8b727472009-01-19 18:18:40 +00003798IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003799
mlcreech636a9952008-05-05 22:52:56 +00003800fi
3801fi
3802DUMPBIN=$ac_cv_prog_DUMPBIN
3803if test -n "$DUMPBIN"; then
dana9f39fd2011-08-12 16:34:42 +00003804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003805$as_echo "$DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003806else
dana9f39fd2011-08-12 16:34:42 +00003807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003808$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003809fi
3810
drh8b727472009-01-19 18:18:40 +00003811
mlcreech636a9952008-05-05 22:52:56 +00003812 test -n "$DUMPBIN" && break
3813 done
3814fi
3815if test -z "$DUMPBIN"; then
3816 ac_ct_DUMPBIN=$DUMPBIN
3817 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3818do
3819 # Extract the first word of "$ac_prog", so it can be a program name with args.
3820set dummy $ac_prog; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00003821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003822$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00003823if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003824 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003825else
3826 if test -n "$ac_ct_DUMPBIN"; then
3827 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3828else
3829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830for as_dir in $PATH
3831do
3832 IFS=$as_save_IFS
3833 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00003834 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00003836 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
dana9f39fd2011-08-12 16:34:42 +00003837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003838 break 2
3839 fi
3840done
dana9f39fd2011-08-12 16:34:42 +00003841 done
drh8b727472009-01-19 18:18:40 +00003842IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003843
3844fi
3845fi
3846ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3847if test -n "$ac_ct_DUMPBIN"; then
dana9f39fd2011-08-12 16:34:42 +00003848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003849$as_echo "$ac_ct_DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003850else
dana9f39fd2011-08-12 16:34:42 +00003851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003852$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003853fi
3854
drh8b727472009-01-19 18:18:40 +00003855
mlcreech636a9952008-05-05 22:52:56 +00003856 test -n "$ac_ct_DUMPBIN" && break
3857done
3858
drh8b727472009-01-19 18:18:40 +00003859 if test "x$ac_ct_DUMPBIN" = x; then
3860 DUMPBIN=":"
3861 else
3862 case $cross_compiling:$ac_tool_warned in
3863yes:)
dana9f39fd2011-08-12 16:34:42 +00003864{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3865$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00003866ac_tool_warned=yes ;;
3867esac
3868 DUMPBIN=$ac_ct_DUMPBIN
3869 fi
mlcreech636a9952008-05-05 22:52:56 +00003870fi
3871
3872
3873 if test "$DUMPBIN" != ":"; then
3874 NM="$DUMPBIN"
3875 fi
3876fi
3877test -z "$NM" && NM=nm
3878
3879
3880
3881
3882
3883
dana9f39fd2011-08-12 16:34:42 +00003884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
drh8b727472009-01-19 18:18:40 +00003885$as_echo_n "checking the name lister ($NM) interface... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00003886if test "${lt_cv_nm_interface+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003887 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003888else
3889 lt_cv_nm_interface="BSD nm"
3890 echo "int some_variable = 0;" > conftest.$ac_ext
dana9f39fd2011-08-12 16:34:42 +00003891 (eval echo "\"\$as_me:3891: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003892 (eval "$ac_compile" 2>conftest.err)
3893 cat conftest.err >&5
dana9f39fd2011-08-12 16:34:42 +00003894 (eval echo "\"\$as_me:3894: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003895 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3896 cat conftest.err >&5
dana9f39fd2011-08-12 16:34:42 +00003897 (eval echo "\"\$as_me:3897: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003898 cat conftest.out >&5
3899 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3900 lt_cv_nm_interface="MS dumpbin"
3901 fi
3902 rm -f conftest*
3903fi
dana9f39fd2011-08-12 16:34:42 +00003904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
drh8b727472009-01-19 18:18:40 +00003905$as_echo "$lt_cv_nm_interface" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003906
dana9f39fd2011-08-12 16:34:42 +00003907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
drh8b727472009-01-19 18:18:40 +00003908$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003909LN_S=$as_ln_s
3910if test "$LN_S" = "ln -s"; then
dana9f39fd2011-08-12 16:34:42 +00003911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00003912$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003913else
dana9f39fd2011-08-12 16:34:42 +00003914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
drh8b727472009-01-19 18:18:40 +00003915$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003916fi
3917
mlcreech636a9952008-05-05 22:52:56 +00003918# find the maximum length of command line arguments
dana9f39fd2011-08-12 16:34:42 +00003919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
drh8b727472009-01-19 18:18:40 +00003920$as_echo_n "checking the maximum length of command line arguments... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00003921if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003922 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003923else
3924 i=0
3925 teststring="ABCD"
3926
3927 case $build_os in
3928 msdosdjgpp*)
3929 # On DJGPP, this test can blow up pretty badly due to problems in libc
3930 # (any single argument exceeding 2000 bytes causes a buffer overrun
3931 # during glob expansion). Even if it were fixed, the result of this
3932 # check would be larger than it should be.
3933 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3934 ;;
3935
3936 gnu*)
3937 # Under GNU Hurd, this test is not required because there is
3938 # no limit to the length of command line arguments.
3939 # Libtool will interpret -1 as no limit whatsoever
3940 lt_cv_sys_max_cmd_len=-1;
3941 ;;
3942
vapier6acb2cf2009-01-28 04:46:28 +00003943 cygwin* | mingw* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00003944 # On Win9x/ME, this test blows up -- it succeeds, but takes
3945 # about 5 minutes as the teststring grows exponentially.
3946 # Worse, since 9x/ME are not pre-emptively multitasking,
3947 # you end up with a "frozen" computer, even though with patience
3948 # the test eventually succeeds (with a max line length of 256k).
3949 # Instead, let's just punt: use the minimum linelength reported by
3950 # all of the supported platforms: 8192 (on NT/2K/XP).
3951 lt_cv_sys_max_cmd_len=8192;
3952 ;;
3953
3954 amigaos*)
3955 # On AmigaOS with pdksh, this test takes hours, literally.
3956 # So we just punt and use a minimum line length of 8192.
3957 lt_cv_sys_max_cmd_len=8192;
3958 ;;
3959
3960 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3961 # This has been around since 386BSD, at least. Likely further.
3962 if test -x /sbin/sysctl; then
3963 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3964 elif test -x /usr/sbin/sysctl; then
3965 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3966 else
3967 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3968 fi
3969 # And add a safety zone
3970 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3971 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3972 ;;
3973
3974 interix*)
3975 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3976 lt_cv_sys_max_cmd_len=196608
3977 ;;
3978
3979 osf*)
3980 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3981 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3982 # nice to cause kernel panics so lets avoid the loop below.
3983 # First set a reasonable default.
3984 lt_cv_sys_max_cmd_len=16384
3985 #
3986 if test -x /sbin/sysconfig; then
3987 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3988 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3989 esac
3990 fi
3991 ;;
3992 sco3.2v5*)
3993 lt_cv_sys_max_cmd_len=102400
3994 ;;
3995 sysv5* | sco5v6* | sysv4.2uw2*)
3996 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3997 if test -n "$kargmax"; then
3998 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3999 else
4000 lt_cv_sys_max_cmd_len=32768
4001 fi
4002 ;;
4003 *)
4004 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4005 if test -n "$lt_cv_sys_max_cmd_len"; then
4006 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4007 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4008 else
4009 # Make teststring a little bigger before we do anything with it.
4010 # a 1K string should be a reasonable start.
4011 for i in 1 2 3 4 5 6 7 8 ; do
4012 teststring=$teststring$teststring
4013 done
4014 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4015 # If test is not a shell built-in, we'll probably end up computing a
4016 # maximum length that is only half of the actual maximum length, but
4017 # we can't tell.
4018 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4019 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4020 test $i != 17 # 1/2 MB should be enough
4021 do
4022 i=`expr $i + 1`
4023 teststring=$teststring$teststring
4024 done
4025 # Only check the string length outside the loop.
4026 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4027 teststring=
4028 # Add a significant safety factor because C++ compilers can tack on
4029 # massive amounts of additional arguments before passing them to the
4030 # linker. It appears as though 1/2 is a usable value.
4031 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4032 fi
4033 ;;
4034 esac
4035
4036fi
4037
4038if test -n $lt_cv_sys_max_cmd_len ; then
dana9f39fd2011-08-12 16:34:42 +00004039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
drh8b727472009-01-19 18:18:40 +00004040$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004041else
dana9f39fd2011-08-12 16:34:42 +00004042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
drh8b727472009-01-19 18:18:40 +00004043$as_echo "none" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004044fi
4045max_cmd_len=$lt_cv_sys_max_cmd_len
4046
4047
4048
4049
4050
4051
4052: ${CP="cp -f"}
4053: ${MV="mv -f"}
4054: ${RM="rm -f"}
4055
dana9f39fd2011-08-12 16:34:42 +00004056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
drh8b727472009-01-19 18:18:40 +00004057$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004058# Try some XSI features
4059xsi_shell=no
4060( _lt_dummy="a/b/c"
4061 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4062 = c,a/b,, \
4063 && eval 'test $(( 1 + 1 )) -eq 2 \
4064 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4065 && xsi_shell=yes
dana9f39fd2011-08-12 16:34:42 +00004066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
drh8b727472009-01-19 18:18:40 +00004067$as_echo "$xsi_shell" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004068
4069
dana9f39fd2011-08-12 16:34:42 +00004070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
drh8b727472009-01-19 18:18:40 +00004071$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004072lt_shell_append=no
4073( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4074 >/dev/null 2>&1 \
4075 && lt_shell_append=yes
dana9f39fd2011-08-12 16:34:42 +00004076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
drh8b727472009-01-19 18:18:40 +00004077$as_echo "$lt_shell_append" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004078
4079
4080if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4081 lt_unset=unset
4082else
4083 lt_unset=false
4084fi
4085
4086
4087
4088
4089
4090# test EBCDIC or ASCII
4091case `echo X|tr X '\101'` in
4092 A) # ASCII based system
4093 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4094 lt_SP2NL='tr \040 \012'
4095 lt_NL2SP='tr \015\012 \040\040'
4096 ;;
4097 *) # EBCDIC based system
4098 lt_SP2NL='tr \100 \n'
4099 lt_NL2SP='tr \r\n \100\100'
4100 ;;
4101esac
4102
4103
4104
4105
4106
4107
4108
4109
4110
dana9f39fd2011-08-12 16:34:42 +00004111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
drh8b727472009-01-19 18:18:40 +00004112$as_echo_n "checking for $LD option to reload object files... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00004113if test "${lt_cv_ld_reload_flag+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00004114 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004115else
4116 lt_cv_ld_reload_flag='-r'
4117fi
dana9f39fd2011-08-12 16:34:42 +00004118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
drh8b727472009-01-19 18:18:40 +00004119$as_echo "$lt_cv_ld_reload_flag" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004120reload_flag=$lt_cv_ld_reload_flag
4121case $reload_flag in
4122"" | " "*) ;;
4123*) reload_flag=" $reload_flag" ;;
4124esac
4125reload_cmds='$LD$reload_flag -o $output$reload_objs'
4126case $host_os in
4127 darwin*)
4128 if test "$GCC" = yes; then
4129 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4130 else
4131 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4132 fi
4133 ;;
4134esac
4135
4136
4137
4138
4139
4140
4141
4142
4143
vapier6acb2cf2009-01-28 04:46:28 +00004144if test -n "$ac_tool_prefix"; then
4145 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4146set dummy ${ac_tool_prefix}objdump; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00004147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004148$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00004149if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
vapier6acb2cf2009-01-28 04:46:28 +00004150 $as_echo_n "(cached) " >&6
4151else
4152 if test -n "$OBJDUMP"; then
4153 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4154else
4155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156for as_dir in $PATH
4157do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00004160 for ac_exec_ext in '' $ac_executable_extensions; do
vapier6acb2cf2009-01-28 04:46:28 +00004161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4162 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
dana9f39fd2011-08-12 16:34:42 +00004163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004164 break 2
4165 fi
4166done
dana9f39fd2011-08-12 16:34:42 +00004167 done
vapier6acb2cf2009-01-28 04:46:28 +00004168IFS=$as_save_IFS
4169
4170fi
4171fi
4172OBJDUMP=$ac_cv_prog_OBJDUMP
4173if test -n "$OBJDUMP"; then
dana9f39fd2011-08-12 16:34:42 +00004174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004175$as_echo "$OBJDUMP" >&6; }
4176else
dana9f39fd2011-08-12 16:34:42 +00004177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004178$as_echo "no" >&6; }
4179fi
4180
4181
4182fi
4183if test -z "$ac_cv_prog_OBJDUMP"; then
4184 ac_ct_OBJDUMP=$OBJDUMP
4185 # Extract the first word of "objdump", so it can be a program name with args.
4186set dummy objdump; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00004187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004188$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00004189if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
vapier6acb2cf2009-01-28 04:46:28 +00004190 $as_echo_n "(cached) " >&6
4191else
4192 if test -n "$ac_ct_OBJDUMP"; then
4193 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4194else
4195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196for as_dir in $PATH
4197do
4198 IFS=$as_save_IFS
4199 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00004200 for ac_exec_ext in '' $ac_executable_extensions; do
vapier6acb2cf2009-01-28 04:46:28 +00004201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4202 ac_cv_prog_ac_ct_OBJDUMP="objdump"
dana9f39fd2011-08-12 16:34:42 +00004203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004204 break 2
4205 fi
4206done
dana9f39fd2011-08-12 16:34:42 +00004207 done
vapier6acb2cf2009-01-28 04:46:28 +00004208IFS=$as_save_IFS
4209
4210fi
4211fi
4212ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4213if test -n "$ac_ct_OBJDUMP"; then
dana9f39fd2011-08-12 16:34:42 +00004214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004215$as_echo "$ac_ct_OBJDUMP" >&6; }
4216else
dana9f39fd2011-08-12 16:34:42 +00004217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004218$as_echo "no" >&6; }
4219fi
4220
4221 if test "x$ac_ct_OBJDUMP" = x; then
4222 OBJDUMP="false"
4223 else
4224 case $cross_compiling:$ac_tool_warned in
4225yes:)
dana9f39fd2011-08-12 16:34:42 +00004226{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4227$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00004228ac_tool_warned=yes ;;
4229esac
4230 OBJDUMP=$ac_ct_OBJDUMP
4231 fi
4232else
4233 OBJDUMP="$ac_cv_prog_OBJDUMP"
4234fi
4235
4236test -z "$OBJDUMP" && OBJDUMP=objdump
4237
4238
4239
4240
4241
4242
4243
4244
mlcreech636a9952008-05-05 22:52:56 +00004245
dana9f39fd2011-08-12 16:34:42 +00004246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
drh8b727472009-01-19 18:18:40 +00004247$as_echo_n "checking how to recognize dependent libraries... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00004248if test "${lt_cv_deplibs_check_method+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00004249 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00004250else
4251 lt_cv_file_magic_cmd='$MAGIC_CMD'
4252lt_cv_file_magic_test_file=
4253lt_cv_deplibs_check_method='unknown'
4254# Need to set the preceding variable on all platforms that support
4255# interlibrary dependencies.
4256# 'none' -- dependencies not supported.
4257# `unknown' -- same as none, but documents that we really don't know.
4258# 'pass_all' -- all dependencies passed with no checks.
4259# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00004260# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00004261# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00004262# If you have `file' or equivalent on your system and you're not sure
4263# whether `pass_all' will *always* work, you probably want this one.
4264
4265case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00004266aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00004267 lt_cv_deplibs_check_method=pass_all
4268 ;;
4269
4270beos*)
4271 lt_cv_deplibs_check_method=pass_all
4272 ;;
4273
vapier7f19c022007-02-17 14:46:31 +00004274bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00004275 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4276 lt_cv_file_magic_cmd='/usr/bin/file -L'
4277 lt_cv_file_magic_test_file=/shlib/libc.so
4278 ;;
4279
a.rottmann9bc8b932004-02-29 15:18:31 +00004280cygwin*)
vapier7f19c022007-02-17 14:46:31 +00004281 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00004282 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00004283 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00004284 ;;
4285
4286mingw* | pw32*)
4287 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00004288 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4289 # unless we find 'file', for example because we are cross-compiling.
4290 if ( file / ) >/dev/null 2>&1; then
4291 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4292 lt_cv_file_magic_cmd='func_win32_libid'
4293 else
4294 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4295 lt_cv_file_magic_cmd='$OBJDUMP -f'
4296 fi
drh71eb93e2001-09-28 01:34:43 +00004297 ;;
4298
vapier6acb2cf2009-01-28 04:46:28 +00004299cegcc)
4300 # use the weaker test based on 'objdump'. See mingw*.
4301 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4302 lt_cv_file_magic_cmd='$OBJDUMP -f'
4303 ;;
4304
drh71eb93e2001-09-28 01:34:43 +00004305darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004306 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004307 ;;
4308
mlcreech636a9952008-05-05 22:52:56 +00004309freebsd* | dragonfly*)
4310 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004311 case $host_cpu in
4312 i*86 )
4313 # Not sure whether the presence of OpenBSD here was a mistake.
4314 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00004315 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
drh71eb93e2001-09-28 01:34:43 +00004316 lt_cv_file_magic_cmd=/usr/bin/file
4317 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4318 ;;
4319 esac
4320 else
4321 lt_cv_deplibs_check_method=pass_all
4322 fi
4323 ;;
4324
4325gnu*)
4326 lt_cv_deplibs_check_method=pass_all
4327 ;;
4328
a.rottmann9bc8b932004-02-29 15:18:31 +00004329hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00004330 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00004331 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00004332 ia64*)
4333 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4334 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4335 ;;
4336 hppa*64*)
4337 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4338 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4339 ;;
4340 *)
4341 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4342 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4343 ;;
4344 esac
drh71eb93e2001-09-28 01:34:43 +00004345 ;;
4346
mlcreech636a9952008-05-05 22:52:56 +00004347interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00004348 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4349 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4350 ;;
4351
a.rottmann84e63352003-03-24 09:42:16 +00004352irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004353 case $LD in
4354 *-32|*"-32 ") libmagic=32-bit;;
4355 *-n32|*"-n32 ") libmagic=N32;;
4356 *-64|*"-64 ") libmagic=64-bit;;
4357 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00004358 esac
drh71eb93e2001-09-28 01:34:43 +00004359 lt_cv_deplibs_check_method=pass_all
4360 ;;
4361
4362# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00004363linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00004364 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004365 ;;
4366
vapier7f19c022007-02-17 14:46:31 +00004367netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004368 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004369 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004370 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004371 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004372 fi
4373 ;;
4374
4375newos6*)
4376 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4377 lt_cv_file_magic_cmd=/usr/bin/file
4378 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4379 ;;
4380
mlcreech636a9952008-05-05 22:52:56 +00004381*nto* | *qnx*)
4382 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00004383 ;;
4384
a.rottmann84e63352003-03-24 09:42:16 +00004385openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004386 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00004387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004388 else
vapier7f19c022007-02-17 14:46:31 +00004389 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004390 fi
drh71eb93e2001-09-28 01:34:43 +00004391 ;;
4392
4393osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004394 lt_cv_deplibs_check_method=pass_all
4395 ;;
4396
mlcreech636a9952008-05-05 22:52:56 +00004397rdos*)
4398 lt_cv_deplibs_check_method=pass_all
4399 ;;
4400
drh71eb93e2001-09-28 01:34:43 +00004401solaris*)
4402 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00004403 ;;
4404
mlcreech636a9952008-05-05 22:52:56 +00004405sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4406 lt_cv_deplibs_check_method=pass_all
4407 ;;
4408
vapier7f19c022007-02-17 14:46:31 +00004409sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00004410 case $host_vendor in
4411 motorola)
4412 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]'
4413 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4414 ;;
4415 ncr)
4416 lt_cv_deplibs_check_method=pass_all
4417 ;;
4418 sequent)
4419 lt_cv_file_magic_cmd='/bin/file'
4420 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4421 ;;
4422 sni)
4423 lt_cv_file_magic_cmd='/bin/file'
4424 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4425 lt_cv_file_magic_test_file=/lib/libc.so
4426 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004427 siemens)
4428 lt_cv_deplibs_check_method=pass_all
4429 ;;
vapier7f19c022007-02-17 14:46:31 +00004430 pc)
4431 lt_cv_deplibs_check_method=pass_all
4432 ;;
drh71eb93e2001-09-28 01:34:43 +00004433 esac
4434 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004435
mlcreech636a9952008-05-05 22:52:56 +00004436tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004437 lt_cv_deplibs_check_method=pass_all
4438 ;;
drh71eb93e2001-09-28 01:34:43 +00004439esac
4440
4441fi
dana9f39fd2011-08-12 16:34:42 +00004442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
drh8b727472009-01-19 18:18:40 +00004443$as_echo "$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004444file_magic_cmd=$lt_cv_file_magic_cmd
4445deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00004446test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00004447
drh71eb93e2001-09-28 01:34:43 +00004448
drh71eb93e2001-09-28 01:34:43 +00004449
drh71eb93e2001-09-28 01:34:43 +00004450
mlcreech636a9952008-05-05 22:52:56 +00004451
4452
4453
4454
4455
4456
4457
4458
4459if test -n "$ac_tool_prefix"; then
4460 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4461set dummy ${ac_tool_prefix}ar; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00004462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004463$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00004464if test "${ac_cv_prog_AR+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00004465 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004466else
4467 if test -n "$AR"; then
4468 ac_cv_prog_AR="$AR" # Let the user override the test.
4469else
4470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471for as_dir in $PATH
4472do
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00004475 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004477 ac_cv_prog_AR="${ac_tool_prefix}ar"
dana9f39fd2011-08-12 16:34:42 +00004478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004479 break 2
4480 fi
4481done
dana9f39fd2011-08-12 16:34:42 +00004482 done
drh8b727472009-01-19 18:18:40 +00004483IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004484
4485fi
4486fi
4487AR=$ac_cv_prog_AR
4488if test -n "$AR"; then
dana9f39fd2011-08-12 16:34:42 +00004489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
drh8b727472009-01-19 18:18:40 +00004490$as_echo "$AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004491else
dana9f39fd2011-08-12 16:34:42 +00004492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004493$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004494fi
4495
drh8b727472009-01-19 18:18:40 +00004496
mlcreech636a9952008-05-05 22:52:56 +00004497fi
4498if test -z "$ac_cv_prog_AR"; then
4499 ac_ct_AR=$AR
4500 # Extract the first word of "ar", so it can be a program name with args.
4501set dummy ar; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00004502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004503$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00004504if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00004505 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004506else
4507 if test -n "$ac_ct_AR"; then
4508 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4509else
4510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511for as_dir in $PATH
4512do
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00004515 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004517 ac_cv_prog_ac_ct_AR="ar"
dana9f39fd2011-08-12 16:34:42 +00004518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004519 break 2
4520 fi
4521done
dana9f39fd2011-08-12 16:34:42 +00004522 done
drh8b727472009-01-19 18:18:40 +00004523IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004524
4525fi
4526fi
4527ac_ct_AR=$ac_cv_prog_ac_ct_AR
4528if test -n "$ac_ct_AR"; then
dana9f39fd2011-08-12 16:34:42 +00004529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
drh8b727472009-01-19 18:18:40 +00004530$as_echo "$ac_ct_AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004531else
dana9f39fd2011-08-12 16:34:42 +00004532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004533$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004534fi
4535
drh8b727472009-01-19 18:18:40 +00004536 if test "x$ac_ct_AR" = x; then
4537 AR="false"
4538 else
4539 case $cross_compiling:$ac_tool_warned in
4540yes:)
dana9f39fd2011-08-12 16:34:42 +00004541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004543ac_tool_warned=yes ;;
4544esac
4545 AR=$ac_ct_AR
4546 fi
mlcreech636a9952008-05-05 22:52:56 +00004547else
4548 AR="$ac_cv_prog_AR"
4549fi
4550
4551test -z "$AR" && AR=ar
4552test -z "$AR_FLAGS" && AR_FLAGS=cru
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564if test -n "$ac_tool_prefix"; then
4565 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4566set dummy ${ac_tool_prefix}strip; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00004567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004568$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00004569if test "${ac_cv_prog_STRIP+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00004570 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004571else
4572 if test -n "$STRIP"; then
4573 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4574else
4575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576for as_dir in $PATH
4577do
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00004580 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004582 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
dana9f39fd2011-08-12 16:34:42 +00004583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004584 break 2
4585 fi
4586done
dana9f39fd2011-08-12 16:34:42 +00004587 done
drh8b727472009-01-19 18:18:40 +00004588IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004589
4590fi
4591fi
4592STRIP=$ac_cv_prog_STRIP
4593if test -n "$STRIP"; then
dana9f39fd2011-08-12 16:34:42 +00004594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004595$as_echo "$STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004596else
dana9f39fd2011-08-12 16:34:42 +00004597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004598$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004599fi
4600
drh8b727472009-01-19 18:18:40 +00004601
mlcreech636a9952008-05-05 22:52:56 +00004602fi
4603if test -z "$ac_cv_prog_STRIP"; then
4604 ac_ct_STRIP=$STRIP
4605 # Extract the first word of "strip", so it can be a program name with args.
4606set dummy strip; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00004607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004608$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00004609if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00004610 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004611else
4612 if test -n "$ac_ct_STRIP"; then
4613 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4614else
4615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616for as_dir in $PATH
4617do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00004620 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004622 ac_cv_prog_ac_ct_STRIP="strip"
dana9f39fd2011-08-12 16:34:42 +00004623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004624 break 2
4625 fi
4626done
dana9f39fd2011-08-12 16:34:42 +00004627 done
drh8b727472009-01-19 18:18:40 +00004628IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004629
4630fi
4631fi
4632ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4633if test -n "$ac_ct_STRIP"; then
dana9f39fd2011-08-12 16:34:42 +00004634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004635$as_echo "$ac_ct_STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004636else
dana9f39fd2011-08-12 16:34:42 +00004637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004638$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004639fi
4640
drh8b727472009-01-19 18:18:40 +00004641 if test "x$ac_ct_STRIP" = x; then
4642 STRIP=":"
4643 else
4644 case $cross_compiling:$ac_tool_warned in
4645yes:)
dana9f39fd2011-08-12 16:34:42 +00004646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004648ac_tool_warned=yes ;;
4649esac
4650 STRIP=$ac_ct_STRIP
4651 fi
mlcreech636a9952008-05-05 22:52:56 +00004652else
4653 STRIP="$ac_cv_prog_STRIP"
4654fi
4655
4656test -z "$STRIP" && STRIP=:
4657
4658
4659
4660
4661
4662
4663if test -n "$ac_tool_prefix"; then
4664 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4665set dummy ${ac_tool_prefix}ranlib; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00004666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004667$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00004668if test "${ac_cv_prog_RANLIB+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00004669 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004670else
4671 if test -n "$RANLIB"; then
4672 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4673else
4674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675for as_dir in $PATH
4676do
4677 IFS=$as_save_IFS
4678 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00004679 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004681 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
dana9f39fd2011-08-12 16:34:42 +00004682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004683 break 2
4684 fi
4685done
dana9f39fd2011-08-12 16:34:42 +00004686 done
drh8b727472009-01-19 18:18:40 +00004687IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004688
4689fi
4690fi
4691RANLIB=$ac_cv_prog_RANLIB
4692if test -n "$RANLIB"; then
dana9f39fd2011-08-12 16:34:42 +00004693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004694$as_echo "$RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004695else
dana9f39fd2011-08-12 16:34:42 +00004696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004697$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004698fi
4699
drh8b727472009-01-19 18:18:40 +00004700
mlcreech636a9952008-05-05 22:52:56 +00004701fi
4702if test -z "$ac_cv_prog_RANLIB"; then
4703 ac_ct_RANLIB=$RANLIB
4704 # Extract the first word of "ranlib", so it can be a program name with args.
4705set dummy ranlib; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00004706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004707$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00004708if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00004709 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004710else
4711 if test -n "$ac_ct_RANLIB"; then
4712 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4713else
4714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715for as_dir in $PATH
4716do
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00004719 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004721 ac_cv_prog_ac_ct_RANLIB="ranlib"
dana9f39fd2011-08-12 16:34:42 +00004722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004723 break 2
4724 fi
4725done
dana9f39fd2011-08-12 16:34:42 +00004726 done
drh8b727472009-01-19 18:18:40 +00004727IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004728
4729fi
4730fi
4731ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4732if test -n "$ac_ct_RANLIB"; then
dana9f39fd2011-08-12 16:34:42 +00004733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004734$as_echo "$ac_ct_RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004735else
dana9f39fd2011-08-12 16:34:42 +00004736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004737$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004738fi
4739
drh8b727472009-01-19 18:18:40 +00004740 if test "x$ac_ct_RANLIB" = x; then
4741 RANLIB=":"
4742 else
4743 case $cross_compiling:$ac_tool_warned in
4744yes:)
dana9f39fd2011-08-12 16:34:42 +00004745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004747ac_tool_warned=yes ;;
4748esac
4749 RANLIB=$ac_ct_RANLIB
4750 fi
mlcreech636a9952008-05-05 22:52:56 +00004751else
4752 RANLIB="$ac_cv_prog_RANLIB"
4753fi
4754
4755test -z "$RANLIB" && RANLIB=:
4756
4757
4758
4759
4760
4761
4762# Determine commands to create old-style static archives.
4763old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4764old_postinstall_cmds='chmod 644 $oldlib'
4765old_postuninstall_cmds=
4766
4767if test -n "$RANLIB"; then
4768 case $host_os in
4769 openbsd*)
4770 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4771 ;;
4772 *)
4773 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4774 ;;
4775 esac
4776 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4777fi
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
a.rottmann9bc8b932004-02-29 15:18:31 +00004812# If no C compiler was specified, use CC.
4813LTCC=${LTCC-"$CC"}
4814
vapier7f19c022007-02-17 14:46:31 +00004815# If no C compiler flags were specified, use CFLAGS.
4816LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4817
a.rottmann9bc8b932004-02-29 15:18:31 +00004818# Allow CC to be a program name with arguments.
4819compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004820
drh71eb93e2001-09-28 01:34:43 +00004821
mlcreech636a9952008-05-05 22:52:56 +00004822# Check for command to grab the raw symbol name followed by C symbol from nm.
dana9f39fd2011-08-12 16:34:42 +00004823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
drh8b727472009-01-19 18:18:40 +00004824$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00004825if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00004826 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004827else
4828
4829# These are sane defaults that work on at least a few old systems.
4830# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4831
4832# Character class describing NM global symbol codes.
4833symcode='[BCDEGRST]'
4834
4835# Regexp to match symbols that can be accessed directly from C.
4836sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4837
4838# Define system-specific variables.
4839case $host_os in
4840aix*)
4841 symcode='[BCDT]'
4842 ;;
vapier6acb2cf2009-01-28 04:46:28 +00004843cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00004844 symcode='[ABCDGISTW]'
4845 ;;
4846hpux*)
4847 if test "$host_cpu" = ia64; then
4848 symcode='[ABCDEGRST]'
4849 fi
4850 ;;
4851irix* | nonstopux*)
4852 symcode='[BCDEGRST]'
4853 ;;
4854osf*)
4855 symcode='[BCDEGQRST]'
4856 ;;
4857solaris*)
4858 symcode='[BDRT]'
4859 ;;
4860sco3.2v5*)
4861 symcode='[DT]'
4862 ;;
4863sysv4.2uw2*)
4864 symcode='[DT]'
4865 ;;
4866sysv5* | sco5v6* | unixware* | OpenUNIX*)
4867 symcode='[ABDT]'
4868 ;;
4869sysv4)
4870 symcode='[DFNSTU]'
4871 ;;
4872esac
4873
4874# If we're using GNU nm, then use its standard symbol codes.
4875case `$NM -V 2>&1` in
4876*GNU* | *'with BFD'*)
4877 symcode='[ABCDGIRSTW]' ;;
4878esac
4879
4880# Transform an extracted symbol line into a proper C declaration.
4881# Some systems (esp. on ia64) link data and code symbols differently,
4882# so use this general approach.
4883lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4884
4885# Transform an extracted symbol line into symbol name and symbol address
4886lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4887lt_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'"
4888
4889# Handle CRLF in mingw tool chain
4890opt_cr=
4891case $build_os in
4892mingw*)
4893 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4894 ;;
4895esac
4896
4897# Try without a prefix underscore, then with it.
4898for ac_symprfx in "" "_"; do
4899
4900 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4901 symxfrm="\\1 $ac_symprfx\\2 \\2"
4902
4903 # Write the raw and C identifiers.
4904 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4905 # Fake it for dumpbin and say T for any non-static function
4906 # and D for any global variable.
4907 # Also find C++ and __fastcall symbols from MSVC++,
4908 # which start with @ or ?.
4909 lt_cv_sys_global_symbol_pipe="$AWK '"\
4910" {last_section=section; section=\$ 3};"\
4911" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4912" \$ 0!~/External *\|/{next};"\
4913" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4914" {if(hide[section]) next};"\
4915" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4916" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4917" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4918" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4919" ' prfx=^$ac_symprfx"
4920 else
4921 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4922 fi
4923
4924 # Check to see that the pipe works correctly.
4925 pipe_works=no
4926
4927 rm -f conftest*
4928 cat > conftest.$ac_ext <<_LT_EOF
4929#ifdef __cplusplus
4930extern "C" {
4931#endif
4932char nm_test_var;
4933void nm_test_func(void);
4934void nm_test_func(void){}
4935#ifdef __cplusplus
4936}
4937#endif
4938int main(){nm_test_var='a';nm_test_func();return(0);}
4939_LT_EOF
4940
dana9f39fd2011-08-12 16:34:42 +00004941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00004942 (eval $ac_compile) 2>&5
4943 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00004944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4945 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00004946 # Now try to grab the symbols.
4947 nlist=conftest.nm
dana9f39fd2011-08-12 16:34:42 +00004948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00004949 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4950 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00004951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4952 test $ac_status = 0; } && test -s "$nlist"; then
mlcreech636a9952008-05-05 22:52:56 +00004953 # Try sorting and uniquifying the output.
4954 if sort "$nlist" | uniq > "$nlist"T; then
4955 mv -f "$nlist"T "$nlist"
4956 else
4957 rm -f "$nlist"T
4958 fi
4959
4960 # Make sure that we snagged all the symbols we need.
4961 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4962 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4963 cat <<_LT_EOF > conftest.$ac_ext
4964#ifdef __cplusplus
4965extern "C" {
4966#endif
4967
4968_LT_EOF
4969 # Now generate the symbol file.
4970 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4971
4972 cat <<_LT_EOF >> conftest.$ac_ext
4973
4974/* The mapping between symbol names and symbols. */
4975const struct {
4976 const char *name;
4977 void *address;
4978}
4979lt__PROGRAM__LTX_preloaded_symbols[] =
4980{
4981 { "@PROGRAM@", (void *) 0 },
4982_LT_EOF
4983 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4984 cat <<\_LT_EOF >> conftest.$ac_ext
4985 {0, (void *) 0}
4986};
4987
4988/* This works around a problem in FreeBSD linker */
4989#ifdef FREEBSD_WORKAROUND
4990static const void *lt_preloaded_setup() {
4991 return lt__PROGRAM__LTX_preloaded_symbols;
4992}
4993#endif
4994
4995#ifdef __cplusplus
4996}
4997#endif
4998_LT_EOF
4999 # Now try linking the two files.
5000 mv conftest.$ac_objext conftstm.$ac_objext
5001 lt_save_LIBS="$LIBS"
5002 lt_save_CFLAGS="$CFLAGS"
5003 LIBS="conftstm.$ac_objext"
5004 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
dana9f39fd2011-08-12 16:34:42 +00005005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00005006 (eval $ac_link) 2>&5
5007 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00005008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5009 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
mlcreech636a9952008-05-05 22:52:56 +00005010 pipe_works=yes
5011 fi
5012 LIBS="$lt_save_LIBS"
5013 CFLAGS="$lt_save_CFLAGS"
5014 else
5015 echo "cannot find nm_test_func in $nlist" >&5
5016 fi
5017 else
5018 echo "cannot find nm_test_var in $nlist" >&5
5019 fi
5020 else
5021 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5022 fi
5023 else
5024 echo "$progname: failed program was:" >&5
5025 cat conftest.$ac_ext >&5
5026 fi
5027 rm -rf conftest* conftst*
5028
5029 # Do not use the global_symbol_pipe unless it works.
5030 if test "$pipe_works" = yes; then
5031 break
5032 else
5033 lt_cv_sys_global_symbol_pipe=
5034 fi
5035done
5036
5037fi
5038
5039if test -z "$lt_cv_sys_global_symbol_pipe"; then
5040 lt_cv_sys_global_symbol_to_cdecl=
5041fi
5042if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
dana9f39fd2011-08-12 16:34:42 +00005043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
drh8b727472009-01-19 18:18:40 +00005044$as_echo "failed" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005045else
dana9f39fd2011-08-12 16:34:42 +00005046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
drh8b727472009-01-19 18:18:40 +00005047$as_echo "ok" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005048fi
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
drh8b727472009-01-19 18:18:40 +00005072# Check whether --enable-libtool-lock was given.
dana9f39fd2011-08-12 16:34:42 +00005073if test "${enable_libtool_lock+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005074 enableval=$enable_libtool_lock;
5075fi
drh71eb93e2001-09-28 01:34:43 +00005076
a.rottmann9bc8b932004-02-29 15:18:31 +00005077test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00005078
a.rottmann9bc8b932004-02-29 15:18:31 +00005079# Some flags need to be propagated to the compiler or linker for good
5080# libtool support.
5081case $host in
5082ia64-*-hpux*)
5083 # Find out which ABI we are using.
5084 echo 'int i;' > conftest.$ac_ext
dana9f39fd2011-08-12 16:34:42 +00005085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00005086 (eval $ac_compile) 2>&5
5087 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00005088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5089 test $ac_status = 0; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005090 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00005091 *ELF-32*)
5092 HPUX_IA64_MODE="32"
5093 ;;
5094 *ELF-64*)
5095 HPUX_IA64_MODE="64"
5096 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005097 esac
5098 fi
5099 rm -rf conftest*
5100 ;;
5101*-*-irix6*)
5102 # Find out which ABI we are using.
dana9f39fd2011-08-12 16:34:42 +00005103 echo '#line 5103 "configure"' > conftest.$ac_ext
5104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005105 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00005106 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00005107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5108 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00005109 if test "$lt_cv_prog_gnu_ld" = yes; then
5110 case `/usr/bin/file conftest.$ac_objext` in
5111 *32-bit*)
5112 LD="${LD-ld} -melf32bsmip"
5113 ;;
5114 *N32*)
5115 LD="${LD-ld} -melf32bmipn32"
5116 ;;
5117 *64-bit*)
5118 LD="${LD-ld} -melf64bmip"
5119 ;;
5120 esac
5121 else
5122 case `/usr/bin/file conftest.$ac_objext` in
5123 *32-bit*)
5124 LD="${LD-ld} -32"
5125 ;;
5126 *N32*)
5127 LD="${LD-ld} -n32"
5128 ;;
5129 *64-bit*)
5130 LD="${LD-ld} -64"
5131 ;;
5132 esac
5133 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005134 fi
5135 rm -rf conftest*
5136 ;;
drh71eb93e2001-09-28 01:34:43 +00005137
mlcreech636a9952008-05-05 22:52:56 +00005138x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5139s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005140 # Find out which ABI we are using.
5141 echo 'int i;' > conftest.$ac_ext
dana9f39fd2011-08-12 16:34:42 +00005142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005143 (eval $ac_compile) 2>&5
5144 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00005145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5146 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005147 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00005148 *32-bit*)
5149 case $host in
5150 x86_64-*kfreebsd*-gnu)
5151 LD="${LD-ld} -m elf_i386_fbsd"
5152 ;;
5153 x86_64-*linux*)
5154 LD="${LD-ld} -m elf_i386"
5155 ;;
5156 ppc64-*linux*|powerpc64-*linux*)
5157 LD="${LD-ld} -m elf32ppclinux"
5158 ;;
5159 s390x-*linux*)
5160 LD="${LD-ld} -m elf_s390"
5161 ;;
5162 sparc64-*linux*)
5163 LD="${LD-ld} -m elf32_sparc"
5164 ;;
5165 esac
5166 ;;
5167 *64-bit*)
5168 case $host in
5169 x86_64-*kfreebsd*-gnu)
5170 LD="${LD-ld} -m elf_x86_64_fbsd"
5171 ;;
5172 x86_64-*linux*)
5173 LD="${LD-ld} -m elf_x86_64"
5174 ;;
5175 ppc*-*linux*|powerpc*-*linux*)
5176 LD="${LD-ld} -m elf64ppc"
5177 ;;
5178 s390*-*linux*|s390*-*tpf*)
5179 LD="${LD-ld} -m elf64_s390"
5180 ;;
5181 sparc*-*linux*)
5182 LD="${LD-ld} -m elf64_sparc"
5183 ;;
5184 esac
5185 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005186 esac
5187 fi
5188 rm -rf conftest*
5189 ;;
drh71eb93e2001-09-28 01:34:43 +00005190
a.rottmann9bc8b932004-02-29 15:18:31 +00005191*-*-sco3.2v5*)
5192 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5193 SAVE_CFLAGS="$CFLAGS"
5194 CFLAGS="$CFLAGS -belf"
dana9f39fd2011-08-12 16:34:42 +00005195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
drh8b727472009-01-19 18:18:40 +00005196$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00005197if test "${lt_cv_cc_needs_belf+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005198 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005199else
5200 ac_ext=c
5201ac_cpp='$CPP $CPPFLAGS'
5202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5204ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00005205
dana9f39fd2011-08-12 16:34:42 +00005206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005207/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00005208
a.rottmann9bc8b932004-02-29 15:18:31 +00005209int
5210main ()
drh71eb93e2001-09-28 01:34:43 +00005211{
drh71eb93e2001-09-28 01:34:43 +00005212
a.rottmann9bc8b932004-02-29 15:18:31 +00005213 ;
5214 return 0;
drh71eb93e2001-09-28 01:34:43 +00005215}
a.rottmann9bc8b932004-02-29 15:18:31 +00005216_ACEOF
dana9f39fd2011-08-12 16:34:42 +00005217if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00005218 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00005219else
dana9f39fd2011-08-12 16:34:42 +00005220 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00005221fi
dana9f39fd2011-08-12 16:34:42 +00005222rm -f core conftest.err conftest.$ac_objext \
5223 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005224 ac_ext=c
5225ac_cpp='$CPP $CPPFLAGS'
5226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5228ac_compiler_gnu=$ac_cv_c_compiler_gnu
5229
drh71eb93e2001-09-28 01:34:43 +00005230fi
dana9f39fd2011-08-12 16:34:42 +00005231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
drh8b727472009-01-19 18:18:40 +00005232$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005233 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5234 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5235 CFLAGS="$SAVE_CFLAGS"
5236 fi
5237 ;;
vapier7f19c022007-02-17 14:46:31 +00005238sparc*-*solaris*)
5239 # Find out which ABI we are using.
5240 echo 'int i;' > conftest.$ac_ext
dana9f39fd2011-08-12 16:34:42 +00005241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
vapier7f19c022007-02-17 14:46:31 +00005242 (eval $ac_compile) 2>&5
5243 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00005244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5245 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005246 case `/usr/bin/file conftest.o` in
5247 *64-bit*)
5248 case $lt_cv_prog_gnu_ld in
5249 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005250 *)
5251 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5252 LD="${LD-ld} -64"
5253 fi
5254 ;;
vapier7f19c022007-02-17 14:46:31 +00005255 esac
5256 ;;
5257 esac
5258 fi
5259 rm -rf conftest*
5260 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005261esac
5262
5263need_locks="$enable_libtool_lock"
5264
drh71eb93e2001-09-28 01:34:43 +00005265
mlcreech636a9952008-05-05 22:52:56 +00005266 case $host_os in
5267 rhapsody* | darwin*)
5268 if test -n "$ac_tool_prefix"; then
5269 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5270set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00005271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005272$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00005273if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005274 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005275else
5276 if test -n "$DSYMUTIL"; then
5277 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5278else
5279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280for as_dir in $PATH
5281do
5282 IFS=$as_save_IFS
5283 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00005284 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005286 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
dana9f39fd2011-08-12 16:34:42 +00005287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005288 break 2
5289 fi
5290done
dana9f39fd2011-08-12 16:34:42 +00005291 done
drh8b727472009-01-19 18:18:40 +00005292IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005293
5294fi
5295fi
5296DSYMUTIL=$ac_cv_prog_DSYMUTIL
5297if test -n "$DSYMUTIL"; then
dana9f39fd2011-08-12 16:34:42 +00005298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005299$as_echo "$DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005300else
dana9f39fd2011-08-12 16:34:42 +00005301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005302$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005303fi
5304
drh8b727472009-01-19 18:18:40 +00005305
mlcreech636a9952008-05-05 22:52:56 +00005306fi
5307if test -z "$ac_cv_prog_DSYMUTIL"; then
5308 ac_ct_DSYMUTIL=$DSYMUTIL
5309 # Extract the first word of "dsymutil", so it can be a program name with args.
5310set dummy dsymutil; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00005311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005312$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00005313if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005314 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005315else
5316 if test -n "$ac_ct_DSYMUTIL"; then
5317 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5318else
5319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320for as_dir in $PATH
5321do
5322 IFS=$as_save_IFS
5323 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00005324 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005326 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
dana9f39fd2011-08-12 16:34:42 +00005327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005328 break 2
5329 fi
5330done
dana9f39fd2011-08-12 16:34:42 +00005331 done
drh8b727472009-01-19 18:18:40 +00005332IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005333
5334fi
5335fi
5336ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5337if test -n "$ac_ct_DSYMUTIL"; then
dana9f39fd2011-08-12 16:34:42 +00005338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005339$as_echo "$ac_ct_DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005340else
dana9f39fd2011-08-12 16:34:42 +00005341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005342$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005343fi
5344
drh8b727472009-01-19 18:18:40 +00005345 if test "x$ac_ct_DSYMUTIL" = x; then
5346 DSYMUTIL=":"
5347 else
5348 case $cross_compiling:$ac_tool_warned in
5349yes:)
dana9f39fd2011-08-12 16:34:42 +00005350{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005352ac_tool_warned=yes ;;
5353esac
5354 DSYMUTIL=$ac_ct_DSYMUTIL
5355 fi
mlcreech636a9952008-05-05 22:52:56 +00005356else
5357 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5358fi
5359
5360 if test -n "$ac_tool_prefix"; then
5361 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5362set dummy ${ac_tool_prefix}nmedit; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00005363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005364$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00005365if test "${ac_cv_prog_NMEDIT+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005366 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005367else
5368 if test -n "$NMEDIT"; then
5369 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5370else
5371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372for as_dir in $PATH
5373do
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00005376 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005378 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
dana9f39fd2011-08-12 16:34:42 +00005379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005380 break 2
5381 fi
5382done
dana9f39fd2011-08-12 16:34:42 +00005383 done
drh8b727472009-01-19 18:18:40 +00005384IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005385
5386fi
5387fi
5388NMEDIT=$ac_cv_prog_NMEDIT
5389if test -n "$NMEDIT"; then
dana9f39fd2011-08-12 16:34:42 +00005390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005391$as_echo "$NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005392else
dana9f39fd2011-08-12 16:34:42 +00005393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005394$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005395fi
5396
drh8b727472009-01-19 18:18:40 +00005397
mlcreech636a9952008-05-05 22:52:56 +00005398fi
5399if test -z "$ac_cv_prog_NMEDIT"; then
5400 ac_ct_NMEDIT=$NMEDIT
5401 # Extract the first word of "nmedit", so it can be a program name with args.
5402set dummy nmedit; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00005403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005404$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00005405if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005406 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005407else
5408 if test -n "$ac_ct_NMEDIT"; then
5409 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5410else
5411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412for as_dir in $PATH
5413do
5414 IFS=$as_save_IFS
5415 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00005416 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005418 ac_cv_prog_ac_ct_NMEDIT="nmedit"
dana9f39fd2011-08-12 16:34:42 +00005419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005420 break 2
5421 fi
5422done
dana9f39fd2011-08-12 16:34:42 +00005423 done
drh8b727472009-01-19 18:18:40 +00005424IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005425
5426fi
5427fi
5428ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5429if test -n "$ac_ct_NMEDIT"; then
dana9f39fd2011-08-12 16:34:42 +00005430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005431$as_echo "$ac_ct_NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005432else
dana9f39fd2011-08-12 16:34:42 +00005433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005434$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005435fi
5436
drh8b727472009-01-19 18:18:40 +00005437 if test "x$ac_ct_NMEDIT" = x; then
5438 NMEDIT=":"
5439 else
5440 case $cross_compiling:$ac_tool_warned in
5441yes:)
dana9f39fd2011-08-12 16:34:42 +00005442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005444ac_tool_warned=yes ;;
5445esac
5446 NMEDIT=$ac_ct_NMEDIT
5447 fi
mlcreech636a9952008-05-05 22:52:56 +00005448else
5449 NMEDIT="$ac_cv_prog_NMEDIT"
5450fi
5451
5452 if test -n "$ac_tool_prefix"; then
5453 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5454set dummy ${ac_tool_prefix}lipo; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00005455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005456$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00005457if test "${ac_cv_prog_LIPO+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005458 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005459else
5460 if test -n "$LIPO"; then
5461 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5462else
5463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464for as_dir in $PATH
5465do
5466 IFS=$as_save_IFS
5467 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00005468 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005470 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
dana9f39fd2011-08-12 16:34:42 +00005471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005472 break 2
5473 fi
5474done
dana9f39fd2011-08-12 16:34:42 +00005475 done
drh8b727472009-01-19 18:18:40 +00005476IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005477
5478fi
5479fi
5480LIPO=$ac_cv_prog_LIPO
5481if test -n "$LIPO"; then
dana9f39fd2011-08-12 16:34:42 +00005482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005483$as_echo "$LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005484else
dana9f39fd2011-08-12 16:34:42 +00005485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005486$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005487fi
5488
drh8b727472009-01-19 18:18:40 +00005489
mlcreech636a9952008-05-05 22:52:56 +00005490fi
5491if test -z "$ac_cv_prog_LIPO"; then
5492 ac_ct_LIPO=$LIPO
5493 # Extract the first word of "lipo", so it can be a program name with args.
5494set dummy lipo; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00005495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005496$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00005497if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005498 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005499else
5500 if test -n "$ac_ct_LIPO"; then
5501 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5502else
5503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504for as_dir in $PATH
5505do
5506 IFS=$as_save_IFS
5507 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00005508 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005510 ac_cv_prog_ac_ct_LIPO="lipo"
dana9f39fd2011-08-12 16:34:42 +00005511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005512 break 2
5513 fi
5514done
dana9f39fd2011-08-12 16:34:42 +00005515 done
drh8b727472009-01-19 18:18:40 +00005516IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005517
5518fi
5519fi
5520ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5521if test -n "$ac_ct_LIPO"; then
dana9f39fd2011-08-12 16:34:42 +00005522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005523$as_echo "$ac_ct_LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005524else
dana9f39fd2011-08-12 16:34:42 +00005525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005526$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005527fi
5528
drh8b727472009-01-19 18:18:40 +00005529 if test "x$ac_ct_LIPO" = x; then
5530 LIPO=":"
5531 else
5532 case $cross_compiling:$ac_tool_warned in
5533yes:)
dana9f39fd2011-08-12 16:34:42 +00005534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005536ac_tool_warned=yes ;;
5537esac
5538 LIPO=$ac_ct_LIPO
5539 fi
mlcreech636a9952008-05-05 22:52:56 +00005540else
5541 LIPO="$ac_cv_prog_LIPO"
5542fi
5543
5544 if test -n "$ac_tool_prefix"; then
5545 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5546set dummy ${ac_tool_prefix}otool; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00005547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005548$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00005549if test "${ac_cv_prog_OTOOL+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005550 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005551else
5552 if test -n "$OTOOL"; then
5553 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5554else
5555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556for as_dir in $PATH
5557do
5558 IFS=$as_save_IFS
5559 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00005560 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005562 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
dana9f39fd2011-08-12 16:34:42 +00005563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005564 break 2
5565 fi
5566done
dana9f39fd2011-08-12 16:34:42 +00005567 done
drh8b727472009-01-19 18:18:40 +00005568IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005569
5570fi
5571fi
5572OTOOL=$ac_cv_prog_OTOOL
5573if test -n "$OTOOL"; then
dana9f39fd2011-08-12 16:34:42 +00005574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005575$as_echo "$OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005576else
dana9f39fd2011-08-12 16:34:42 +00005577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005578$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005579fi
5580
drh8b727472009-01-19 18:18:40 +00005581
mlcreech636a9952008-05-05 22:52:56 +00005582fi
5583if test -z "$ac_cv_prog_OTOOL"; then
5584 ac_ct_OTOOL=$OTOOL
5585 # Extract the first word of "otool", so it can be a program name with args.
5586set dummy otool; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00005587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005588$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00005589if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005590 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005591else
5592 if test -n "$ac_ct_OTOOL"; then
5593 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5594else
5595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596for as_dir in $PATH
5597do
5598 IFS=$as_save_IFS
5599 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00005600 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005602 ac_cv_prog_ac_ct_OTOOL="otool"
dana9f39fd2011-08-12 16:34:42 +00005603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005604 break 2
5605 fi
5606done
dana9f39fd2011-08-12 16:34:42 +00005607 done
drh8b727472009-01-19 18:18:40 +00005608IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005609
5610fi
5611fi
5612ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5613if test -n "$ac_ct_OTOOL"; then
dana9f39fd2011-08-12 16:34:42 +00005614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005615$as_echo "$ac_ct_OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005616else
dana9f39fd2011-08-12 16:34:42 +00005617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005618$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005619fi
5620
drh8b727472009-01-19 18:18:40 +00005621 if test "x$ac_ct_OTOOL" = x; then
5622 OTOOL=":"
5623 else
5624 case $cross_compiling:$ac_tool_warned in
5625yes:)
dana9f39fd2011-08-12 16:34:42 +00005626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005628ac_tool_warned=yes ;;
5629esac
5630 OTOOL=$ac_ct_OTOOL
5631 fi
mlcreech636a9952008-05-05 22:52:56 +00005632else
5633 OTOOL="$ac_cv_prog_OTOOL"
5634fi
5635
5636 if test -n "$ac_tool_prefix"; then
5637 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5638set dummy ${ac_tool_prefix}otool64; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00005639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005640$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00005641if test "${ac_cv_prog_OTOOL64+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005642 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005643else
5644 if test -n "$OTOOL64"; then
5645 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5646else
5647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648for as_dir in $PATH
5649do
5650 IFS=$as_save_IFS
5651 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00005652 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005654 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
dana9f39fd2011-08-12 16:34:42 +00005655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005656 break 2
5657 fi
5658done
dana9f39fd2011-08-12 16:34:42 +00005659 done
drh8b727472009-01-19 18:18:40 +00005660IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005661
5662fi
5663fi
5664OTOOL64=$ac_cv_prog_OTOOL64
5665if test -n "$OTOOL64"; then
dana9f39fd2011-08-12 16:34:42 +00005666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005667$as_echo "$OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005668else
dana9f39fd2011-08-12 16:34:42 +00005669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005670$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005671fi
5672
drh8b727472009-01-19 18:18:40 +00005673
mlcreech636a9952008-05-05 22:52:56 +00005674fi
5675if test -z "$ac_cv_prog_OTOOL64"; then
5676 ac_ct_OTOOL64=$OTOOL64
5677 # Extract the first word of "otool64", so it can be a program name with args.
5678set dummy otool64; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00005679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005680$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00005681if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005682 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005683else
5684 if test -n "$ac_ct_OTOOL64"; then
5685 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5686else
5687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688for as_dir in $PATH
5689do
5690 IFS=$as_save_IFS
5691 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00005692 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005694 ac_cv_prog_ac_ct_OTOOL64="otool64"
dana9f39fd2011-08-12 16:34:42 +00005695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005696 break 2
5697 fi
5698done
dana9f39fd2011-08-12 16:34:42 +00005699 done
drh8b727472009-01-19 18:18:40 +00005700IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005701
5702fi
5703fi
5704ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5705if test -n "$ac_ct_OTOOL64"; then
dana9f39fd2011-08-12 16:34:42 +00005706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005707$as_echo "$ac_ct_OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005708else
dana9f39fd2011-08-12 16:34:42 +00005709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005710$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005711fi
5712
drh8b727472009-01-19 18:18:40 +00005713 if test "x$ac_ct_OTOOL64" = x; then
5714 OTOOL64=":"
5715 else
5716 case $cross_compiling:$ac_tool_warned in
5717yes:)
dana9f39fd2011-08-12 16:34:42 +00005718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005720ac_tool_warned=yes ;;
5721esac
5722 OTOOL64=$ac_ct_OTOOL64
5723 fi
mlcreech636a9952008-05-05 22:52:56 +00005724else
5725 OTOOL64="$ac_cv_prog_OTOOL64"
5726fi
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
dana9f39fd2011-08-12 16:34:42 +00005754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005755$as_echo_n "checking for -single_module linker flag... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00005756if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005757 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005758else
5759 lt_cv_apple_cc_single_mod=no
5760 if test -z "${LT_MULTI_MODULE}"; then
5761 # By default we will add the -single_module flag. You can override
5762 # by either setting the environment variable LT_MULTI_MODULE
5763 # non-empty at configure time, or by adding -multi_module to the
5764 # link flags.
5765 rm -rf libconftest.dylib*
5766 echo "int foo(void){return 1;}" > conftest.c
5767 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5768-dynamiclib -Wl,-single_module conftest.c" >&5
5769 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5770 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5771 _lt_result=$?
5772 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5773 lt_cv_apple_cc_single_mod=yes
5774 else
5775 cat conftest.err >&5
5776 fi
5777 rm -rf libconftest.dylib*
5778 rm -f conftest.*
5779 fi
5780fi
dana9f39fd2011-08-12 16:34:42 +00005781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
drh8b727472009-01-19 18:18:40 +00005782$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
dana9f39fd2011-08-12 16:34:42 +00005783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005784$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00005785if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005786 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005787else
5788 lt_cv_ld_exported_symbols_list=no
5789 save_LDFLAGS=$LDFLAGS
5790 echo "_main" > conftest.sym
5791 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
dana9f39fd2011-08-12 16:34:42 +00005792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005793/* end confdefs.h. */
5794
5795int
5796main ()
5797{
5798
5799 ;
5800 return 0;
5801}
5802_ACEOF
dana9f39fd2011-08-12 16:34:42 +00005803if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00005804 lt_cv_ld_exported_symbols_list=yes
5805else
dana9f39fd2011-08-12 16:34:42 +00005806 lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00005807fi
dana9f39fd2011-08-12 16:34:42 +00005808rm -f core conftest.err conftest.$ac_objext \
5809 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005810 LDFLAGS="$save_LDFLAGS"
5811
5812fi
dana9f39fd2011-08-12 16:34:42 +00005813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
drh8b727472009-01-19 18:18:40 +00005814$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005815 case $host_os in
5816 rhapsody* | darwin1.[012])
5817 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5818 darwin1.*)
5819 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5820 darwin*) # darwin 5.x on
5821 # if running on 10.5 or later, the deployment target defaults
5822 # to the OS version, if on x86, and 10.4, the deployment
5823 # target defaults to 10.4. Don't you love it?
5824 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5825 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5826 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5827 10.[012]*)
5828 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5829 10.*)
5830 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5831 esac
5832 ;;
5833 esac
5834 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5835 _lt_dar_single_mod='$single_module'
5836 fi
5837 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5838 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5839 else
5840 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5841 fi
5842 if test "$DSYMUTIL" != ":"; then
5843 _lt_dsymutil='~$DSYMUTIL $lib || :'
5844 else
5845 _lt_dsymutil=
5846 fi
5847 ;;
5848 esac
5849
a.rottmann84e63352003-03-24 09:42:16 +00005850ac_ext=c
5851ac_cpp='$CPP $CPPFLAGS'
5852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5854ac_compiler_gnu=$ac_cv_c_compiler_gnu
dana9f39fd2011-08-12 16:34:42 +00005855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
drh8b727472009-01-19 18:18:40 +00005856$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005857# On Suns, sometimes $CPP names a directory.
5858if test -n "$CPP" && test -d "$CPP"; then
5859 CPP=
5860fi
5861if test -z "$CPP"; then
dana9f39fd2011-08-12 16:34:42 +00005862 if test "${ac_cv_prog_CPP+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005863 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005864else
a.rottmann84e63352003-03-24 09:42:16 +00005865 # Double quotes because CPP needs to be expanded
5866 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5867 do
5868 ac_preproc_ok=false
5869for ac_c_preproc_warn_flag in '' yes
5870do
5871 # Use a header file that comes with gcc, so configuring glibc
5872 # with a fresh cross-compiler works.
5873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5874 # <limits.h> exists even on freestanding compilers.
5875 # On the NeXT, cc -E runs the code through the compiler's parser,
5876 # not just through cpp. "Syntax error" is here to catch this case.
dana9f39fd2011-08-12 16:34:42 +00005877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005878/* end confdefs.h. */
5879#ifdef __STDC__
5880# include <limits.h>
5881#else
5882# include <assert.h>
5883#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005884 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005885_ACEOF
dana9f39fd2011-08-12 16:34:42 +00005886if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005887
dana9f39fd2011-08-12 16:34:42 +00005888else
a.rottmann84e63352003-03-24 09:42:16 +00005889 # Broken: fails on valid input.
5890continue
5891fi
5892rm -f conftest.err conftest.$ac_ext
5893
drh8b727472009-01-19 18:18:40 +00005894 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005895 # can be detected and how.
dana9f39fd2011-08-12 16:34:42 +00005896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005897/* end confdefs.h. */
5898#include <ac_nonexistent.h>
5899_ACEOF
dana9f39fd2011-08-12 16:34:42 +00005900if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005901 # Broken: success on invalid input.
5902continue
5903else
a.rottmann84e63352003-03-24 09:42:16 +00005904 # Passes both tests.
5905ac_preproc_ok=:
5906break
5907fi
5908rm -f conftest.err conftest.$ac_ext
5909
5910done
5911# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5912rm -f conftest.err conftest.$ac_ext
dana9f39fd2011-08-12 16:34:42 +00005913if $ac_preproc_ok; then :
a.rottmann84e63352003-03-24 09:42:16 +00005914 break
5915fi
5916
5917 done
5918 ac_cv_prog_CPP=$CPP
5919
5920fi
5921 CPP=$ac_cv_prog_CPP
5922else
5923 ac_cv_prog_CPP=$CPP
5924fi
dana9f39fd2011-08-12 16:34:42 +00005925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
drh8b727472009-01-19 18:18:40 +00005926$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005927ac_preproc_ok=false
5928for ac_c_preproc_warn_flag in '' yes
5929do
5930 # Use a header file that comes with gcc, so configuring glibc
5931 # with a fresh cross-compiler works.
5932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5933 # <limits.h> exists even on freestanding compilers.
5934 # On the NeXT, cc -E runs the code through the compiler's parser,
5935 # not just through cpp. "Syntax error" is here to catch this case.
dana9f39fd2011-08-12 16:34:42 +00005936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005937/* end confdefs.h. */
5938#ifdef __STDC__
5939# include <limits.h>
5940#else
5941# include <assert.h>
5942#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005943 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005944_ACEOF
dana9f39fd2011-08-12 16:34:42 +00005945if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005946
dana9f39fd2011-08-12 16:34:42 +00005947else
a.rottmann84e63352003-03-24 09:42:16 +00005948 # Broken: fails on valid input.
5949continue
5950fi
5951rm -f conftest.err conftest.$ac_ext
5952
drh8b727472009-01-19 18:18:40 +00005953 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005954 # can be detected and how.
dana9f39fd2011-08-12 16:34:42 +00005955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005956/* end confdefs.h. */
5957#include <ac_nonexistent.h>
5958_ACEOF
dana9f39fd2011-08-12 16:34:42 +00005959if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005960 # Broken: success on invalid input.
5961continue
5962else
a.rottmann84e63352003-03-24 09:42:16 +00005963 # Passes both tests.
5964ac_preproc_ok=:
5965break
5966fi
5967rm -f conftest.err conftest.$ac_ext
5968
5969done
5970# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5971rm -f conftest.err conftest.$ac_ext
dana9f39fd2011-08-12 16:34:42 +00005972if $ac_preproc_ok; then :
5973
a.rottmann84e63352003-03-24 09:42:16 +00005974else
dana9f39fd2011-08-12 16:34:42 +00005975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5976$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5977as_fn_error "C preprocessor \"$CPP\" fails sanity check
5978See \`config.log' for more details." "$LINENO" 5; }
a.rottmann84e63352003-03-24 09:42:16 +00005979fi
5980
5981ac_ext=c
5982ac_cpp='$CPP $CPPFLAGS'
5983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5985ac_compiler_gnu=$ac_cv_c_compiler_gnu
5986
5987
dana9f39fd2011-08-12 16:34:42 +00005988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
drh8b727472009-01-19 18:18:40 +00005989$as_echo_n "checking for ANSI C header files... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00005990if test "${ac_cv_header_stdc+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005991 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00005992else
dana9f39fd2011-08-12 16:34:42 +00005993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005994/* end confdefs.h. */
5995#include <stdlib.h>
5996#include <stdarg.h>
5997#include <string.h>
5998#include <float.h>
5999
6000int
6001main ()
6002{
6003
6004 ;
6005 return 0;
6006}
6007_ACEOF
dana9f39fd2011-08-12 16:34:42 +00006008if ac_fn_c_try_compile "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006009 ac_cv_header_stdc=yes
6010else
dana9f39fd2011-08-12 16:34:42 +00006011 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006012fi
drh8b727472009-01-19 18:18:40 +00006013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006014
6015if test $ac_cv_header_stdc = yes; then
6016 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
dana9f39fd2011-08-12 16:34:42 +00006017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006018/* end confdefs.h. */
6019#include <string.h>
6020
6021_ACEOF
6022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
dana9f39fd2011-08-12 16:34:42 +00006023 $EGREP "memchr" >/dev/null 2>&1; then :
6024
a.rottmann84e63352003-03-24 09:42:16 +00006025else
6026 ac_cv_header_stdc=no
6027fi
6028rm -f conftest*
6029
6030fi
6031
6032if test $ac_cv_header_stdc = yes; then
6033 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
dana9f39fd2011-08-12 16:34:42 +00006034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006035/* end confdefs.h. */
6036#include <stdlib.h>
6037
6038_ACEOF
6039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
dana9f39fd2011-08-12 16:34:42 +00006040 $EGREP "free" >/dev/null 2>&1; then :
6041
a.rottmann84e63352003-03-24 09:42:16 +00006042else
6043 ac_cv_header_stdc=no
6044fi
6045rm -f conftest*
6046
6047fi
6048
6049if test $ac_cv_header_stdc = yes; then
6050 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
dana9f39fd2011-08-12 16:34:42 +00006051 if test "$cross_compiling" = yes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006052 :
6053else
dana9f39fd2011-08-12 16:34:42 +00006054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006055/* end confdefs.h. */
6056#include <ctype.h>
drh8b727472009-01-19 18:18:40 +00006057#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006058#if ((' ' & 0x0FF) == 0x020)
6059# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6060# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6061#else
6062# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006063 (('a' <= (c) && (c) <= 'i') \
6064 || ('j' <= (c) && (c) <= 'r') \
6065 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006066# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6067#endif
6068
6069#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6070int
6071main ()
6072{
6073 int i;
6074 for (i = 0; i < 256; i++)
6075 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006076 || toupper (i) != TOUPPER (i))
drh8b727472009-01-19 18:18:40 +00006077 return 2;
6078 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006079}
6080_ACEOF
dana9f39fd2011-08-12 16:34:42 +00006081if ac_fn_c_try_run "$LINENO"; then :
6082
a.rottmann84e63352003-03-24 09:42:16 +00006083else
dana9f39fd2011-08-12 16:34:42 +00006084 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006085fi
dana9f39fd2011-08-12 16:34:42 +00006086rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6087 conftest.$ac_objext conftest.beam conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00006088fi
6089
a.rottmann84e63352003-03-24 09:42:16 +00006090fi
6091fi
dana9f39fd2011-08-12 16:34:42 +00006092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
drh8b727472009-01-19 18:18:40 +00006093$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006094if test $ac_cv_header_stdc = yes; then
6095
dana9f39fd2011-08-12 16:34:42 +00006096$as_echo "#define STDC_HEADERS 1" >>confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00006097
6098fi
6099
6100# On IRIX 5.3, sys/types and inttypes.h are conflicting.
a.rottmann84e63352003-03-24 09:42:16 +00006101for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006102 inttypes.h stdint.h unistd.h
dana9f39fd2011-08-12 16:34:42 +00006103do :
6104 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6105ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6106"
6107eval as_val=\$$as_ac_Header
6108 if test "x$as_val" = x""yes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006109 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006110#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006111_ACEOF
6112
6113fi
6114
6115done
6116
6117
a.rottmann84e63352003-03-24 09:42:16 +00006118for ac_header in dlfcn.h
dana9f39fd2011-08-12 16:34:42 +00006119do :
6120 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6121"
6122if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006123 cat >>confdefs.h <<_ACEOF
dana9f39fd2011-08-12 16:34:42 +00006124#define HAVE_DLFCN_H 1
a.rottmann84e63352003-03-24 09:42:16 +00006125_ACEOF
6126
6127fi
6128
drh71eb93e2001-09-28 01:34:43 +00006129done
6130
drh71eb93e2001-09-28 01:34:43 +00006131
drh71eb93e2001-09-28 01:34:43 +00006132
mlcreech636a9952008-05-05 22:52:56 +00006133# Set options
mlcreech94984912008-03-04 19:03:08 +00006134
drh71eb93e2001-09-28 01:34:43 +00006135
drh71eb93e2001-09-28 01:34:43 +00006136
mlcreech636a9952008-05-05 22:52:56 +00006137 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006138
a.rottmann9bc8b932004-02-29 15:18:31 +00006139
mlcreech636a9952008-05-05 22:52:56 +00006140 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006141
a.rottmann9bc8b932004-02-29 15:18:31 +00006142
drh8b727472009-01-19 18:18:40 +00006143 # Check whether --enable-shared was given.
dana9f39fd2011-08-12 16:34:42 +00006144if test "${enable_shared+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006145 enableval=$enable_shared; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006146 case $enableval in
6147 yes) enable_shared=yes ;;
6148 no) enable_shared=no ;;
6149 *)
6150 enable_shared=no
6151 # Look at the argument we got. We use all the common list separators.
6152 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6153 for pkg in $enableval; do
6154 IFS="$lt_save_ifs"
6155 if test "X$pkg" = "X$p"; then
6156 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006157 fi
mlcreech636a9952008-05-05 22:52:56 +00006158 done
6159 IFS="$lt_save_ifs"
6160 ;;
6161 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006162else
mlcreech636a9952008-05-05 22:52:56 +00006163 enable_shared=yes
drh8b727472009-01-19 18:18:40 +00006164fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006165
mlcreech636a9952008-05-05 22:52:56 +00006166
6167
6168
6169
6170
6171
6172
drh8b727472009-01-19 18:18:40 +00006173
6174 # Check whether --enable-static was given.
dana9f39fd2011-08-12 16:34:42 +00006175if test "${enable_static+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006176 enableval=$enable_static; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006177 case $enableval in
6178 yes) enable_static=yes ;;
6179 no) enable_static=no ;;
6180 *)
6181 enable_static=no
6182 # Look at the argument we got. We use all the common list separators.
6183 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6184 for pkg in $enableval; do
6185 IFS="$lt_save_ifs"
6186 if test "X$pkg" = "X$p"; then
6187 enable_static=yes
6188 fi
6189 done
6190 IFS="$lt_save_ifs"
6191 ;;
6192 esac
6193else
6194 enable_static=yes
drh8b727472009-01-19 18:18:40 +00006195fi
mlcreech636a9952008-05-05 22:52:56 +00006196
6197
6198
6199
6200
6201
6202
6203
6204
drh8b727472009-01-19 18:18:40 +00006205
6206# Check whether --with-pic was given.
dana9f39fd2011-08-12 16:34:42 +00006207if test "${with_pic+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006208 withval=$with_pic; pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00006209else
6210 pic_mode=default
drh8b727472009-01-19 18:18:40 +00006211fi
6212
mlcreech636a9952008-05-05 22:52:56 +00006213
6214test -z "$pic_mode" && pic_mode=default
6215
6216
6217
6218
6219
6220
6221
drh8b727472009-01-19 18:18:40 +00006222 # Check whether --enable-fast-install was given.
dana9f39fd2011-08-12 16:34:42 +00006223if test "${enable_fast_install+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006224 enableval=$enable_fast_install; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006225 case $enableval in
6226 yes) enable_fast_install=yes ;;
6227 no) enable_fast_install=no ;;
6228 *)
6229 enable_fast_install=no
6230 # Look at the argument we got. We use all the common list separators.
6231 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6232 for pkg in $enableval; do
6233 IFS="$lt_save_ifs"
6234 if test "X$pkg" = "X$p"; then
6235 enable_fast_install=yes
6236 fi
6237 done
6238 IFS="$lt_save_ifs"
6239 ;;
6240 esac
6241else
6242 enable_fast_install=yes
drh8b727472009-01-19 18:18:40 +00006243fi
6244
mlcreech636a9952008-05-05 22:52:56 +00006245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255# This can be used to rebuild libtool when needed
6256LIBTOOL_DEPS="$ltmain"
6257
6258# Always use our own libtool.
6259LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285test -z "$LN_S" && LN_S="ln -s"
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300if test -n "${ZSH_VERSION+set}" ; then
6301 setopt NO_GLOB_SUBST
6302fi
6303
dana9f39fd2011-08-12 16:34:42 +00006304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
drh8b727472009-01-19 18:18:40 +00006305$as_echo_n "checking for objdir... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00006306if test "${lt_cv_objdir+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006307 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006308else
6309 rm -f .libs 2>/dev/null
6310mkdir .libs 2>/dev/null
6311if test -d .libs; then
6312 lt_cv_objdir=.libs
6313else
6314 # MS-DOS does not allow filenames that begin with a dot.
6315 lt_cv_objdir=_libs
6316fi
6317rmdir .libs 2>/dev/null
6318fi
dana9f39fd2011-08-12 16:34:42 +00006319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
drh8b727472009-01-19 18:18:40 +00006320$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006321objdir=$lt_cv_objdir
6322
6323
6324
6325
6326
mlcreech636a9952008-05-05 22:52:56 +00006327cat >>confdefs.h <<_ACEOF
6328#define LT_OBJDIR "$lt_cv_objdir/"
6329_ACEOF
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
a.rottmann9bc8b932004-02-29 15:18:31 +00006347case $host_os in
6348aix3*)
6349 # AIX sometimes has problems with the GCC collect2 program. For some
6350 # reason, if we set the COLLECT_NAMES environment variable, the problems
6351 # vanish in a puff of smoke.
6352 if test "X${COLLECT_NAMES+set}" != Xset; then
6353 COLLECT_NAMES=
6354 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006355 fi
6356 ;;
6357esac
6358
a.rottmann9bc8b932004-02-29 15:18:31 +00006359# Sed substitution that helps us do robust quoting. It backslashifies
6360# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006361sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006362
6363# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006364double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006365
6366# Sed substitution to delay expansion of an escaped shell variable in a
6367# double_quote_subst'ed string.
6368delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6369
mlcreech636a9952008-05-05 22:52:56 +00006370# Sed substitution to delay expansion of an escaped single quote.
6371delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6372
a.rottmann9bc8b932004-02-29 15:18:31 +00006373# Sed substitution to avoid accidental globbing in evaled expressions
6374no_glob_subst='s/\*/\\\*/g'
6375
a.rottmann9bc8b932004-02-29 15:18:31 +00006376# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006377ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006378can_build_shared=yes
6379
vapier7f19c022007-02-17 14:46:31 +00006380# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006381# which needs '.lib').
6382libext=a
mlcreech636a9952008-05-05 22:52:56 +00006383
a.rottmann9bc8b932004-02-29 15:18:31 +00006384with_gnu_ld="$lt_cv_prog_gnu_ld"
6385
a.rottmann84e63352003-03-24 09:42:16 +00006386old_CC="$CC"
6387old_CFLAGS="$CFLAGS"
6388
6389# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006390test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006391test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006392test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006393test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006394test -z "$ac_objext" && ac_objext=o
6395
vapier7f19c022007-02-17 14:46:31 +00006396for cc_temp in $compiler""; do
6397 case $cc_temp in
6398 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6399 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6400 \-*) ;;
6401 *) break;;
6402 esac
6403done
mlcreech636a9952008-05-05 22:52:56 +00006404cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006405
6406
a.rottmann9bc8b932004-02-29 15:18:31 +00006407# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006408test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006409case $deplibs_check_method in
6410file_magic*)
6411 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
dana9f39fd2011-08-12 16:34:42 +00006412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
drh8b727472009-01-19 18:18:40 +00006413$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00006414if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006415 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006416else
a.rottmann9bc8b932004-02-29 15:18:31 +00006417 case $MAGIC_CMD in
6418[\\/*] | ?:[\\/]*)
6419 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6420 ;;
6421*)
6422 lt_save_MAGIC_CMD="$MAGIC_CMD"
6423 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6424 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6425 for ac_dir in $ac_dummy; do
6426 IFS="$lt_save_ifs"
6427 test -z "$ac_dir" && ac_dir=.
6428 if test -f $ac_dir/${ac_tool_prefix}file; then
6429 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6430 if test -n "$file_magic_test_file"; then
6431 case $deplibs_check_method in
6432 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006433 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006434 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6435 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6436 $EGREP "$file_magic_regex" > /dev/null; then
6437 :
6438 else
mlcreech636a9952008-05-05 22:52:56 +00006439 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006440
a.rottmann9bc8b932004-02-29 15:18:31 +00006441*** Warning: the command libtool uses to detect shared libraries,
6442*** $file_magic_cmd, produces output that libtool cannot recognize.
6443*** The result is that libtool may fail to recognize shared libraries
6444*** as such. This will affect the creation of libtool libraries that
6445*** depend on shared libraries, but programs linked with such libtool
6446*** libraries will work regardless of this problem. Nevertheless, you
6447*** may want to report the problem to your system manager and/or to
6448*** bug-libtool@gnu.org
6449
mlcreech636a9952008-05-05 22:52:56 +00006450_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006451 fi ;;
6452 esac
6453 fi
6454 break
6455 fi
6456 done
6457 IFS="$lt_save_ifs"
6458 MAGIC_CMD="$lt_save_MAGIC_CMD"
6459 ;;
6460esac
6461fi
6462
6463MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6464if test -n "$MAGIC_CMD"; then
dana9f39fd2011-08-12 16:34:42 +00006465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006466$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006467else
dana9f39fd2011-08-12 16:34:42 +00006468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006469$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006470fi
6471
mlcreech636a9952008-05-05 22:52:56 +00006472
6473
6474
6475
a.rottmann9bc8b932004-02-29 15:18:31 +00006476if test -z "$lt_cv_path_MAGIC_CMD"; then
6477 if test -n "$ac_tool_prefix"; then
dana9f39fd2011-08-12 16:34:42 +00006478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
drh8b727472009-01-19 18:18:40 +00006479$as_echo_n "checking for file... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00006480if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006481 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006482else
6483 case $MAGIC_CMD in
6484[\\/*] | ?:[\\/]*)
6485 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6486 ;;
6487*)
6488 lt_save_MAGIC_CMD="$MAGIC_CMD"
6489 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6490 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6491 for ac_dir in $ac_dummy; do
6492 IFS="$lt_save_ifs"
6493 test -z "$ac_dir" && ac_dir=.
6494 if test -f $ac_dir/file; then
6495 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6496 if test -n "$file_magic_test_file"; then
6497 case $deplibs_check_method in
6498 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006499 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006500 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6501 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6502 $EGREP "$file_magic_regex" > /dev/null; then
6503 :
6504 else
mlcreech636a9952008-05-05 22:52:56 +00006505 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006506
6507*** Warning: the command libtool uses to detect shared libraries,
6508*** $file_magic_cmd, produces output that libtool cannot recognize.
6509*** The result is that libtool may fail to recognize shared libraries
6510*** as such. This will affect the creation of libtool libraries that
6511*** depend on shared libraries, but programs linked with such libtool
6512*** libraries will work regardless of this problem. Nevertheless, you
6513*** may want to report the problem to your system manager and/or to
6514*** bug-libtool@gnu.org
6515
mlcreech636a9952008-05-05 22:52:56 +00006516_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006517 fi ;;
6518 esac
6519 fi
6520 break
6521 fi
6522 done
6523 IFS="$lt_save_ifs"
6524 MAGIC_CMD="$lt_save_MAGIC_CMD"
6525 ;;
6526esac
6527fi
6528
6529MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6530if test -n "$MAGIC_CMD"; then
dana9f39fd2011-08-12 16:34:42 +00006531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006532$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006533else
dana9f39fd2011-08-12 16:34:42 +00006534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006535$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006536fi
6537
mlcreech636a9952008-05-05 22:52:56 +00006538
a.rottmann9bc8b932004-02-29 15:18:31 +00006539 else
6540 MAGIC_CMD=:
6541 fi
6542fi
6543
6544 fi
6545 ;;
6546esac
6547
a.rottmann9bc8b932004-02-29 15:18:31 +00006548# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006549
a.rottmann9bc8b932004-02-29 15:18:31 +00006550lt_save_CC="$CC"
6551ac_ext=c
6552ac_cpp='$CPP $CPPFLAGS'
6553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6555ac_compiler_gnu=$ac_cv_c_compiler_gnu
6556
6557
6558# Source file extension for C test sources.
6559ac_ext=c
6560
6561# Object file extension for compiled C test sources.
6562objext=o
6563objext=$objext
6564
6565# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006566lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006567
6568# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006569lt_simple_link_test_code='int main(){return(0);}'
6570
6571
6572
6573
6574
a.rottmann9bc8b932004-02-29 15:18:31 +00006575
6576
6577# If no C compiler was specified, use CC.
6578LTCC=${LTCC-"$CC"}
6579
vapier7f19c022007-02-17 14:46:31 +00006580# If no C compiler flags were specified, use CFLAGS.
6581LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6582
a.rottmann9bc8b932004-02-29 15:18:31 +00006583# Allow CC to be a program name with arguments.
6584compiler=$CC
6585
mlcreech636a9952008-05-05 22:52:56 +00006586# Save the default compiler, since it gets overwritten when the other
6587# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6588compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006589
vapier7f19c022007-02-17 14:46:31 +00006590# save warnings/boilerplate of simple test code
6591ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006592echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006593eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6594_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006595$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006596
vapier7f19c022007-02-17 14:46:31 +00006597ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006598echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006599eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6600_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006601$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006602
6603
mlcreech636a9952008-05-05 22:52:56 +00006604if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006605
6606lt_prog_compiler_no_builtin_flag=
6607
6608if test "$GCC" = yes; then
6609 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6610
dana9f39fd2011-08-12 16:34:42 +00006611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006612$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00006613if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006614 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006615else
6616 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006617 ac_outfile=conftest.$ac_objext
6618 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006619 lt_compiler_flag="-fno-rtti -fno-exceptions"
6620 # Insert the option either (1) after the last *FLAGS variable, or
6621 # (2) before a word containing "conftest.", or (3) at the end.
6622 # Note that $ac_compile itself does not contain backslashes and begins
6623 # with a dollar sign (not a hyphen), so the echo should work correctly.
6624 # The option is referenced via a variable to avoid confusing sed.
6625 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006626 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006627 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6628 -e 's:$: $lt_compiler_flag:'`
dana9f39fd2011-08-12 16:34:42 +00006629 (eval echo "\"\$as_me:6629: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006630 (eval "$lt_compile" 2>conftest.err)
6631 ac_status=$?
6632 cat conftest.err >&5
dana9f39fd2011-08-12 16:34:42 +00006633 echo "$as_me:6633: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006634 if (exit $ac_status) && test -s "$ac_outfile"; then
6635 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006636 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006637 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006638 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6639 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006640 lt_cv_prog_compiler_rtti_exceptions=yes
6641 fi
6642 fi
mlcreech636a9952008-05-05 22:52:56 +00006643 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006644
6645fi
dana9f39fd2011-08-12 16:34:42 +00006646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006647$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006648
6649if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6650 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6651else
6652 :
6653fi
6654
6655fi
6656
mlcreech636a9952008-05-05 22:52:56 +00006657
6658
6659
6660
6661
6662 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006663lt_prog_compiler_pic=
6664lt_prog_compiler_static=
6665
dana9f39fd2011-08-12 16:34:42 +00006666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
drh8b727472009-01-19 18:18:40 +00006667$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006668
drh71eb93e2001-09-28 01:34:43 +00006669 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006670 lt_prog_compiler_wl='-Wl,'
6671 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006672
6673 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006674 aix*)
6675 # All AIX code is PIC.
6676 if test "$host_cpu" = ia64; then
6677 # AIX 5 now supports IA64 processor
6678 lt_prog_compiler_static='-Bstatic'
6679 fi
drh71eb93e2001-09-28 01:34:43 +00006680 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006681
drh71eb93e2001-09-28 01:34:43 +00006682 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006683 case $host_cpu in
6684 powerpc)
6685 # see comment about AmigaOS4 .so support
6686 lt_prog_compiler_pic='-fPIC'
6687 ;;
6688 m68k)
6689 # FIXME: we need at least 68020 code to build shared libraries, but
6690 # adding the `-m68020' flag to GCC prevents building anything better,
6691 # like `-m68040'.
6692 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6693 ;;
6694 esac
drh71eb93e2001-09-28 01:34:43 +00006695 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006696
mlcreech636a9952008-05-05 22:52:56 +00006697 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006698 # PIC is the default for these OSes.
6699 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006700
vapier6acb2cf2009-01-28 04:46:28 +00006701 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006702 # This hack is so that the source file can tell whether it is being
6703 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006704 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6705 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006706 lt_prog_compiler_pic='-DDLL_EXPORT'
6707 ;;
6708
drh71eb93e2001-09-28 01:34:43 +00006709 darwin* | rhapsody*)
6710 # PIC is the default on this platform
6711 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006712 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006713 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006714
a.rottmann9bc8b932004-02-29 15:18:31 +00006715 hpux*)
vapier6acb2cf2009-01-28 04:46:28 +00006716 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6717 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6718 # sets the default TLS model and affects inlining.
vapier7f19c022007-02-17 14:46:31 +00006719 case $host_cpu in
vapier6acb2cf2009-01-28 04:46:28 +00006720 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006721 # +Z the default
6722 ;;
6723 *)
6724 lt_prog_compiler_pic='-fPIC'
6725 ;;
6726 esac
6727 ;;
6728
mlcreech636a9952008-05-05 22:52:56 +00006729 interix[3-9]*)
6730 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6731 # Instead, we relocate shared libraries at runtime.
6732 ;;
6733
6734 msdosdjgpp*)
6735 # Just because we use GCC doesn't mean we suddenly get shared libraries
6736 # on systems that don't support them.
6737 lt_prog_compiler_can_build_shared=no
6738 enable_shared=no
6739 ;;
6740
6741 *nto* | *qnx*)
6742 # QNX uses GNU C++, but need to define -shared option too, otherwise
6743 # it will coredump.
6744 lt_prog_compiler_pic='-fPIC -shared'
6745 ;;
6746
6747 sysv4*MP*)
6748 if test -d /usr/nec; then
6749 lt_prog_compiler_pic=-Kconform_pic
6750 fi
6751 ;;
6752
drh71eb93e2001-09-28 01:34:43 +00006753 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006754 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006755 ;;
6756 esac
6757 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006758 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006759 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006760 aix*)
6761 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006762 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006763 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006764 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006765 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006766 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006767 fi
6768 ;;
6769
vapier6acb2cf2009-01-28 04:46:28 +00006770 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006771 # This hack is so that the source file can tell whether it is being
6772 # built for inclusion in a dll (and should export symbols for example).
6773 lt_prog_compiler_pic='-DDLL_EXPORT'
6774 ;;
6775
a.rottmann84e63352003-03-24 09:42:16 +00006776 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006777 lt_prog_compiler_wl='-Wl,'
6778 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6779 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006780 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006781 hppa*64*|ia64*)
6782 # +Z the default
6783 ;;
6784 *)
6785 lt_prog_compiler_pic='+Z'
6786 ;;
6787 esac
6788 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6789 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006790 ;;
6791
6792 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006793 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006794 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006795 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006796 ;;
6797
mlcreech636a9952008-05-05 22:52:56 +00006798 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00006799 case $cc_basename in
vapier6acb2cf2009-01-28 04:46:28 +00006800 # old Intel for x86_64 which still supported -KPIC.
6801 ecc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006802 lt_prog_compiler_wl='-Wl,'
6803 lt_prog_compiler_pic='-KPIC'
6804 lt_prog_compiler_static='-static'
6805 ;;
vapier6acb2cf2009-01-28 04:46:28 +00006806 # icc used to be incompatible with GCC.
6807 # ICC 10 doesn't accept -KPIC any more.
6808 icc* | ifort*)
6809 lt_prog_compiler_wl='-Wl,'
6810 lt_prog_compiler_pic='-fPIC'
6811 lt_prog_compiler_static='-static'
6812 ;;
6813 # Lahey Fortran 8.1.
6814 lf95*)
6815 lt_prog_compiler_wl='-Wl,'
6816 lt_prog_compiler_pic='--shared'
6817 lt_prog_compiler_static='--static'
6818 ;;
vapier7f19c022007-02-17 14:46:31 +00006819 pgcc* | pgf77* | pgf90* | pgf95*)
6820 # Portland Group compilers (*not* the Pentium gcc compiler,
6821 # which looks to be a dead project)
6822 lt_prog_compiler_wl='-Wl,'
6823 lt_prog_compiler_pic='-fpic'
6824 lt_prog_compiler_static='-Bstatic'
6825 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006826 ccc*)
6827 lt_prog_compiler_wl='-Wl,'
6828 # All Alpha code is PIC.
6829 lt_prog_compiler_static='-non_shared'
6830 ;;
mlcreech636a9952008-05-05 22:52:56 +00006831 xl*)
6832 # IBM XL C 8.0/Fortran 10.1 on PPC
6833 lt_prog_compiler_wl='-Wl,'
6834 lt_prog_compiler_pic='-qpic'
6835 lt_prog_compiler_static='-qstaticlink'
6836 ;;
6837 *)
6838 case `$CC -V 2>&1 | sed 5q` in
6839 *Sun\ C*)
6840 # Sun C 5.9
6841 lt_prog_compiler_pic='-KPIC'
6842 lt_prog_compiler_static='-Bstatic'
6843 lt_prog_compiler_wl='-Wl,'
6844 ;;
6845 *Sun\ F*)
6846 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6847 lt_prog_compiler_pic='-KPIC'
6848 lt_prog_compiler_static='-Bstatic'
6849 lt_prog_compiler_wl=''
6850 ;;
6851 esac
6852 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006853 esac
drh71eb93e2001-09-28 01:34:43 +00006854 ;;
6855
mlcreech636a9952008-05-05 22:52:56 +00006856 newsos6)
6857 lt_prog_compiler_pic='-KPIC'
6858 lt_prog_compiler_static='-Bstatic'
6859 ;;
6860
6861 *nto* | *qnx*)
6862 # QNX uses GNU C++, but need to define -shared option too, otherwise
6863 # it will coredump.
6864 lt_prog_compiler_pic='-fPIC -shared'
6865 ;;
6866
drh71eb93e2001-09-28 01:34:43 +00006867 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006868 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006869 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00006870 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006871 ;;
6872
mlcreech636a9952008-05-05 22:52:56 +00006873 rdos*)
6874 lt_prog_compiler_static='-non_shared'
6875 ;;
6876
drh71eb93e2001-09-28 01:34:43 +00006877 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006878 lt_prog_compiler_pic='-KPIC'
6879 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00006880 case $cc_basename in
6881 f77* | f90* | f95*)
6882 lt_prog_compiler_wl='-Qoption ld ';;
6883 *)
6884 lt_prog_compiler_wl='-Wl,';;
6885 esac
drh71eb93e2001-09-28 01:34:43 +00006886 ;;
6887
6888 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006889 lt_prog_compiler_wl='-Qoption ld '
6890 lt_prog_compiler_pic='-PIC'
6891 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006892 ;;
6893
vapier7f19c022007-02-17 14:46:31 +00006894 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006895 lt_prog_compiler_wl='-Wl,'
6896 lt_prog_compiler_pic='-KPIC'
6897 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006898 ;;
6899
6900 sysv4*MP*)
6901 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00006902 lt_prog_compiler_pic='-Kconform_pic'
6903 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006904 fi
6905 ;;
6906
vapier7f19c022007-02-17 14:46:31 +00006907 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6908 lt_prog_compiler_wl='-Wl,'
6909 lt_prog_compiler_pic='-KPIC'
6910 lt_prog_compiler_static='-Bstatic'
6911 ;;
6912
6913 unicos*)
6914 lt_prog_compiler_wl='-Wl,'
6915 lt_prog_compiler_can_build_shared=no
6916 ;;
6917
a.rottmann9bc8b932004-02-29 15:18:31 +00006918 uts4*)
6919 lt_prog_compiler_pic='-pic'
6920 lt_prog_compiler_static='-Bstatic'
6921 ;;
6922
drh71eb93e2001-09-28 01:34:43 +00006923 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006924 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006925 ;;
6926 esac
6927 fi
6928
mlcreech636a9952008-05-05 22:52:56 +00006929case $host_os in
6930 # For platforms which do not support PIC, -DPIC is meaningless:
6931 *djgpp*)
6932 lt_prog_compiler_pic=
6933 ;;
6934 *)
6935 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6936 ;;
6937esac
dana9f39fd2011-08-12 16:34:42 +00006938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
drh8b727472009-01-19 18:18:40 +00006939$as_echo "$lt_prog_compiler_pic" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00006940
6941
6942
6943
6944
drh71eb93e2001-09-28 01:34:43 +00006945
a.rottmann9bc8b932004-02-29 15:18:31 +00006946#
6947# Check to make sure the PIC flag actually works.
6948#
6949if test -n "$lt_prog_compiler_pic"; then
dana9f39fd2011-08-12 16:34:42 +00006950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
drh8b727472009-01-19 18:18:40 +00006951$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00006952if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006953 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00006954else
mlcreech636a9952008-05-05 22:52:56 +00006955 lt_cv_prog_compiler_pic_works=no
6956 ac_outfile=conftest.$ac_objext
6957 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006958 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6959 # Insert the option either (1) after the last *FLAGS variable, or
6960 # (2) before a word containing "conftest.", or (3) at the end.
6961 # Note that $ac_compile itself does not contain backslashes and begins
6962 # with a dollar sign (not a hyphen), so the echo should work correctly.
6963 # The option is referenced via a variable to avoid confusing sed.
6964 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006965 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6967 -e 's:$: $lt_compiler_flag:'`
dana9f39fd2011-08-12 16:34:42 +00006968 (eval echo "\"\$as_me:6968: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006969 (eval "$lt_compile" 2>conftest.err)
6970 ac_status=$?
6971 cat conftest.err >&5
dana9f39fd2011-08-12 16:34:42 +00006972 echo "$as_me:6972: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006973 if (exit $ac_status) && test -s "$ac_outfile"; then
6974 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006975 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006976 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006977 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6978 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00006979 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006980 fi
6981 fi
mlcreech636a9952008-05-05 22:52:56 +00006982 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00006983
a.rottmann9bc8b932004-02-29 15:18:31 +00006984fi
dana9f39fd2011-08-12 16:34:42 +00006985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
drh8b727472009-01-19 18:18:40 +00006986$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00006987
mlcreech636a9952008-05-05 22:52:56 +00006988if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006989 case $lt_prog_compiler_pic in
6990 "" | " "*) ;;
6991 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6992 esac
drh71eb93e2001-09-28 01:34:43 +00006993else
a.rottmann9bc8b932004-02-29 15:18:31 +00006994 lt_prog_compiler_pic=
6995 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00006996fi
6997
a.rottmann84e63352003-03-24 09:42:16 +00006998fi
mlcreech636a9952008-05-05 22:52:56 +00006999
7000
7001
7002
7003
a.rottmann84e63352003-03-24 09:42:16 +00007004
vapier7f19c022007-02-17 14:46:31 +00007005#
7006# Check to make sure the static flag actually works.
7007#
7008wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
dana9f39fd2011-08-12 16:34:42 +00007009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
drh8b727472009-01-19 18:18:40 +00007010$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00007011if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00007012 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007013else
mlcreech636a9952008-05-05 22:52:56 +00007014 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007015 save_LDFLAGS="$LDFLAGS"
7016 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007017 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007018 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7019 # The linker can only warn and ignore the option if not recognized
7020 # So say no if there are warnings
7021 if test -s conftest.err; then
7022 # Append any errors to the config.log.
7023 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007024 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007025 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7026 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007027 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007028 fi
7029 else
mlcreech636a9952008-05-05 22:52:56 +00007030 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007031 fi
7032 fi
mlcreech636a9952008-05-05 22:52:56 +00007033 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007034 LDFLAGS="$save_LDFLAGS"
7035
7036fi
dana9f39fd2011-08-12 16:34:42 +00007037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
drh8b727472009-01-19 18:18:40 +00007038$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007039
mlcreech636a9952008-05-05 22:52:56 +00007040if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007041 :
7042else
7043 lt_prog_compiler_static=
7044fi
7045
7046
mlcreech636a9952008-05-05 22:52:56 +00007047
7048
7049
7050
7051
dana9f39fd2011-08-12 16:34:42 +00007052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007053$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00007054if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00007055 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007056else
a.rottmann9bc8b932004-02-29 15:18:31 +00007057 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007058 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007059 mkdir conftest
7060 cd conftest
7061 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007062 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007063
a.rottmann9bc8b932004-02-29 15:18:31 +00007064 lt_compiler_flag="-o out/conftest2.$ac_objext"
7065 # Insert the option either (1) after the last *FLAGS variable, or
7066 # (2) before a word containing "conftest.", or (3) at the end.
7067 # Note that $ac_compile itself does not contain backslashes and begins
7068 # with a dollar sign (not a hyphen), so the echo should work correctly.
7069 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007070 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007071 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7072 -e 's:$: $lt_compiler_flag:'`
dana9f39fd2011-08-12 16:34:42 +00007073 (eval echo "\"\$as_me:7073: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007074 (eval "$lt_compile" 2>out/conftest.err)
7075 ac_status=$?
7076 cat out/conftest.err >&5
dana9f39fd2011-08-12 16:34:42 +00007077 echo "$as_me:7077: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007078 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7079 then
7080 # The compiler can only warn and ignore the option if not recognized
7081 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007082 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007083 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7084 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007085 lt_cv_prog_compiler_c_o=yes
7086 fi
7087 fi
vapier7f19c022007-02-17 14:46:31 +00007088 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007089 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007090 # SGI C++ compiler will create directory out/ii_files/ for
7091 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007092 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7093 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007094 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007095 $RM -r conftest
7096 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007097
7098fi
dana9f39fd2011-08-12 16:34:42 +00007099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007100$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007101
7102
7103
7104
7105
7106
dana9f39fd2011-08-12 16:34:42 +00007107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007108$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00007109if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00007110 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00007111else
7112 lt_cv_prog_compiler_c_o=no
7113 $RM -r conftest 2>/dev/null
7114 mkdir conftest
7115 cd conftest
7116 mkdir out
7117 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7118
7119 lt_compiler_flag="-o out/conftest2.$ac_objext"
7120 # Insert the option either (1) after the last *FLAGS variable, or
7121 # (2) before a word containing "conftest.", or (3) at the end.
7122 # Note that $ac_compile itself does not contain backslashes and begins
7123 # with a dollar sign (not a hyphen), so the echo should work correctly.
7124 lt_compile=`echo "$ac_compile" | $SED \
7125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7127 -e 's:$: $lt_compiler_flag:'`
dana9f39fd2011-08-12 16:34:42 +00007128 (eval echo "\"\$as_me:7128: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00007129 (eval "$lt_compile" 2>out/conftest.err)
7130 ac_status=$?
7131 cat out/conftest.err >&5
dana9f39fd2011-08-12 16:34:42 +00007132 echo "$as_me:7132: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00007133 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7134 then
7135 # The compiler can only warn and ignore the option if not recognized
7136 # So say no if there are warnings
7137 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7138 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7139 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7140 lt_cv_prog_compiler_c_o=yes
7141 fi
7142 fi
7143 chmod u+w . 2>&5
7144 $RM conftest*
7145 # SGI C++ compiler will create directory out/ii_files/ for
7146 # template instantiation
7147 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7148 $RM out/* && rmdir out
7149 cd ..
7150 $RM -r conftest
7151 $RM conftest*
7152
7153fi
dana9f39fd2011-08-12 16:34:42 +00007154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007155$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007156
7157
drh71eb93e2001-09-28 01:34:43 +00007158
a.rottmann84e63352003-03-24 09:42:16 +00007159
drh71eb93e2001-09-28 01:34:43 +00007160hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007161if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007162 # do not overwrite the value of need_locks provided by the user
dana9f39fd2011-08-12 16:34:42 +00007163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
drh8b727472009-01-19 18:18:40 +00007164$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007165 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007166 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007167 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7168 touch conftest.a
7169 ln conftest.a conftest.b 2>&5 || hard_links=no
7170 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dana9f39fd2011-08-12 16:34:42 +00007171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
drh8b727472009-01-19 18:18:40 +00007172$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007173 if test "$hard_links" = no; then
dana9f39fd2011-08-12 16:34:42 +00007174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
drh8b727472009-01-19 18:18:40 +00007175$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007176 need_locks=warn
7177 fi
7178else
7179 need_locks=no
7180fi
7181
mlcreech636a9952008-05-05 22:52:56 +00007182
7183
7184
7185
7186
dana9f39fd2011-08-12 16:34:42 +00007187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00007188$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007189
7190 runpath_var=
7191 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007192 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007193 archive_cmds=
7194 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007195 compiler_needs_object=no
7196 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007197 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007198 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7199 hardcode_automatic=no
7200 hardcode_direct=no
7201 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007202 hardcode_libdir_flag_spec=
7203 hardcode_libdir_flag_spec_ld=
7204 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007205 hardcode_minus_L=no
7206 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007207 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007208 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007209 module_cmds=
7210 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007211 old_archive_from_new_cmds=
7212 old_archive_from_expsyms_cmds=
7213 thread_safe_flag_spec=
7214 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007215 # include_expsyms should be a list of space-separated symbols to be *always*
7216 # included in the symbol list
7217 include_expsyms=
7218 # exclude_expsyms can be an extended regexp of symbols to exclude
7219 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7220 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7221 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007222 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007223 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7224 # platforms (ab)use it in PIC code, but their linkers get confused if
7225 # the symbol is explicitly referenced. Since portable code cannot
7226 # rely on this symbol name, it's probably fine to never include it in
7227 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007228 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007229 extract_expsyms_cmds=
7230
7231 case $host_os in
vapier6acb2cf2009-01-28 04:46:28 +00007232 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007233 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7234 # When not using gcc, we currently assume that we are using
7235 # Microsoft Visual C++.
7236 if test "$GCC" != yes; then
7237 with_gnu_ld=no
7238 fi
7239 ;;
vapier7f19c022007-02-17 14:46:31 +00007240 interix*)
7241 # we just hope/assume this is gcc and not c89 (= MSVC++)
7242 with_gnu_ld=yes
7243 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007244 openbsd*)
7245 with_gnu_ld=no
7246 ;;
7247 esac
7248
7249 ld_shlibs=yes
7250 if test "$with_gnu_ld" = yes; then
7251 # If archive_cmds runs LD, not CC, wlarc should be empty
7252 wlarc='${wl}'
7253
vapier7f19c022007-02-17 14:46:31 +00007254 # Set some defaults for GNU ld with shared library support. These
7255 # are reset later if shared libraries are not supported. Putting them
7256 # here allows them to be overridden if necessary.
7257 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007258 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007259 export_dynamic_flag_spec='${wl}--export-dynamic'
7260 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007261 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7262 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7263 else
7264 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007265 fi
7266 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007267 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007268 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7269 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7270 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7271 *\ 2.11.*) ;; # other 2.11 versions
7272 *) supports_anon_versioning=yes ;;
7273 esac
7274
a.rottmann9bc8b932004-02-29 15:18:31 +00007275 # See if GNU ld supports shared libraries.
7276 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007277 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007278 # On AIX/PPC, the GNU linker is very broken
7279 if test "$host_cpu" != ia64; then
7280 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007281 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007282
7283*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7284*** to be unable to reliably create shared libraries on AIX.
7285*** Therefore, libtool is disabling shared libraries support. If you
7286*** really care for shared libraries, you may want to modify your PATH
7287*** so that a non-GNU linker is found, and then restart.
7288
mlcreech636a9952008-05-05 22:52:56 +00007289_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007290 fi
7291 ;;
7292
7293 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007294 case $host_cpu in
7295 powerpc)
7296 # see comment about AmigaOS4 .so support
7297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7298 archive_expsym_cmds=''
7299 ;;
7300 m68k)
7301 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)'
7302 hardcode_libdir_flag_spec='-L$libdir'
7303 hardcode_minus_L=yes
7304 ;;
7305 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007306 ;;
7307
7308 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007309 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007310 allow_undefined_flag=unsupported
7311 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7312 # support --undefined. This deserves some investigation. FIXME
7313 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7314 else
7315 ld_shlibs=no
7316 fi
7317 ;;
7318
vapier6acb2cf2009-01-28 04:46:28 +00007319 cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00007320 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007321 # as there is no search path for DLLs.
7322 hardcode_libdir_flag_spec='-L$libdir'
7323 allow_undefined_flag=unsupported
7324 always_export_symbols=no
7325 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007326 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
a.rottmann9bc8b932004-02-29 15:18:31 +00007327
mlcreech636a9952008-05-05 22:52:56 +00007328 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007329 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00007330 # If the export-symbols file already is a .def file (1st line
7331 # is EXPORTS), use it as is; otherwise, prepend...
7332 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7333 cp $export_symbols $output_objdir/$soname.def;
7334 else
7335 echo EXPORTS > $output_objdir/$soname.def;
7336 cat $export_symbols >> $output_objdir/$soname.def;
7337 fi~
vapier7f19c022007-02-17 14:46:31 +00007338 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00007339 else
7340 ld_shlibs=no
7341 fi
7342 ;;
7343
mlcreech636a9952008-05-05 22:52:56 +00007344 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007345 hardcode_direct=no
7346 hardcode_shlibpath_var=no
7347 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7348 export_dynamic_flag_spec='${wl}-E'
7349 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7350 # Instead, shared libraries are loaded at an image base (0x10000000 by
7351 # default) and relocated if they conflict, which is a slow very memory
7352 # consuming and fragmenting process. To avoid this, we pick a random,
7353 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7354 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7355 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7356 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'
7357 ;;
7358
mlcreech636a9952008-05-05 22:52:56 +00007359 gnu* | linux* | tpf* | k*bsd*-gnu)
7360 tmp_diet=no
7361 if test "$host_os" = linux-dietlibc; then
7362 case $cc_basename in
7363 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7364 esac
7365 fi
7366 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7367 && test "$tmp_diet" = no
7368 then
vapier7f19c022007-02-17 14:46:31 +00007369 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007370 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007371 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007372 pgcc*) # Portland Group C compiler
7373 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
vapier7f19c022007-02-17 14:46:31 +00007374 tmp_addflag=' $pic_flag'
7375 ;;
7376 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007377 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
vapier7f19c022007-02-17 14:46:31 +00007378 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007379 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007380 tmp_addflag=' -i_dynamic' ;;
7381 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7382 tmp_addflag=' -i_dynamic -nofor_main' ;;
7383 ifc* | ifort*) # Intel Fortran compiler
7384 tmp_addflag=' -nofor_main' ;;
vapier6acb2cf2009-01-28 04:46:28 +00007385 lf95*) # Lahey Fortran 8.1
7386 whole_archive_flag_spec=
7387 tmp_sharedflag='--shared' ;;
mlcreech636a9952008-05-05 22:52:56 +00007388 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7389 tmp_sharedflag='-qmkshrobj'
7390 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007391 esac
mlcreech636a9952008-05-05 22:52:56 +00007392 case `$CC -V 2>&1 | sed 5q` in
7393 *Sun\ C*) # Sun C 5.9
7394 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7395 compiler_needs_object=yes
7396 tmp_sharedflag='-G' ;;
7397 *Sun\ F*) # Sun Fortran 8.3
7398 tmp_sharedflag='-G' ;;
7399 esac
7400 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007401
mlcreech636a9952008-05-05 22:52:56 +00007402 if test "x$supports_anon_versioning" = xyes; then
7403 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7404 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7405 echo "local: *; };" >> $output_objdir/$libname.ver~
7406 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7407 fi
7408
7409 case $cc_basename in
7410 xlf*)
7411 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7412 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7413 hardcode_libdir_flag_spec=
7414 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7415 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7416 if test "x$supports_anon_versioning" = xyes; then
7417 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7418 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7419 echo "local: *; };" >> $output_objdir/$libname.ver~
7420 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7421 fi
7422 ;;
7423 esac
vapier7f19c022007-02-17 14:46:31 +00007424 else
mlcreech636a9952008-05-05 22:52:56 +00007425 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007426 fi
7427 ;;
7428
7429 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007430 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007431 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7432 wlarc=
7433 else
7434 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7435 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7436 fi
7437 ;;
7438
vapier7f19c022007-02-17 14:46:31 +00007439 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007440 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007441 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007442 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007443
7444*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7445*** create shared libraries on Solaris systems. Therefore, libtool
7446*** is disabling shared libraries support. We urge you to upgrade GNU
7447*** binutils to release 2.9.1 or newer. Another option is to modify
7448*** your PATH or compiler configuration so that the native linker is
7449*** used, and then restart.
7450
mlcreech636a9952008-05-05 22:52:56 +00007451_LT_EOF
7452 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007453 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7454 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7455 else
7456 ld_shlibs=no
7457 fi
7458 ;;
7459
vapier7f19c022007-02-17 14:46:31 +00007460 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7461 case `$LD -v 2>&1` in
7462 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7463 ld_shlibs=no
7464 cat <<_LT_EOF 1>&2
7465
7466*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7467*** reliably create shared libraries on SCO systems. Therefore, libtool
7468*** is disabling shared libraries support. We urge you to upgrade GNU
7469*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7470*** your PATH or compiler configuration so that the native linker is
7471*** used, and then restart.
7472
7473_LT_EOF
7474 ;;
7475 *)
mlcreech636a9952008-05-05 22:52:56 +00007476 # For security reasons, it is highly recommended that you always
7477 # use absolute paths for naming shared libraries, and exclude the
7478 # DT_RUNPATH tag from executables and libraries. But doing so
7479 # requires that you compile everything twice, which is a pain.
7480 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7481 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7483 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007484 else
7485 ld_shlibs=no
7486 fi
7487 ;;
7488 esac
7489 ;;
7490
a.rottmann9bc8b932004-02-29 15:18:31 +00007491 sunos4*)
7492 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7493 wlarc=
7494 hardcode_direct=yes
7495 hardcode_shlibpath_var=no
7496 ;;
7497
a.rottmann9bc8b932004-02-29 15:18:31 +00007498 *)
mlcreech636a9952008-05-05 22:52:56 +00007499 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007500 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7501 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7502 else
7503 ld_shlibs=no
7504 fi
7505 ;;
7506 esac
7507
vapier7f19c022007-02-17 14:46:31 +00007508 if test "$ld_shlibs" = no; then
7509 runpath_var=
7510 hardcode_libdir_flag_spec=
7511 export_dynamic_flag_spec=
7512 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007513 fi
7514 else
7515 # PORTME fill in a description of your system's linker (not GNU ld)
7516 case $host_os in
7517 aix3*)
7518 allow_undefined_flag=unsupported
7519 always_export_symbols=yes
7520 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'
7521 # Note: this linker hardcodes the directories in LIBPATH if there
7522 # are no directories specified by -L.
7523 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007524 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007525 # Neither direct hardcoding nor static linking is supported with a
7526 # broken collect2.
7527 hardcode_direct=unsupported
7528 fi
7529 ;;
7530
mlcreech636a9952008-05-05 22:52:56 +00007531 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007532 if test "$host_cpu" = ia64; then
7533 # On IA64, the linker does run time linking by default, so we don't
7534 # have to do anything special.
7535 aix_use_runtimelinking=no
7536 exp_sym_flag='-Bexport'
7537 no_entry_flag=""
7538 else
7539 # If we're using GNU nm, then we don't want the "-C" option.
7540 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007541 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7542 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
a.rottmann9bc8b932004-02-29 15:18:31 +00007543 else
mlcreech636a9952008-05-05 22:52:56 +00007544 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'
a.rottmann9bc8b932004-02-29 15:18:31 +00007545 fi
7546 aix_use_runtimelinking=no
7547
7548 # Test if we are trying to use run time linking or normal
7549 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7550 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007551 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007552 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007553 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7554 aix_use_runtimelinking=yes
7555 break
7556 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007557 done
vapier7f19c022007-02-17 14:46:31 +00007558 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007559 esac
7560
7561 exp_sym_flag='-bexport'
7562 no_entry_flag='-bnoentry'
7563 fi
7564
7565 # When large executables or shared objects are built, AIX ld can
7566 # have problems creating the table of contents. If linking a library
7567 # or program results in "error TOC overflow" add -mminimal-toc to
7568 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7569 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7570
7571 archive_cmds=''
7572 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007573 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007574 hardcode_libdir_separator=':'
7575 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007576 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007577
7578 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007579 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007580 # We only want to do this on AIX 4.2 and lower, the check
7581 # below for broken collect2 doesn't work under 4.3+
7582 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007583 if test -f "$collect2name" &&
7584 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007585 then
mlcreech636a9952008-05-05 22:52:56 +00007586 # We have reworked collect2
7587 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007588 else
mlcreech636a9952008-05-05 22:52:56 +00007589 # We have old collect2
7590 hardcode_direct=unsupported
7591 # It fails to find uninstalled libraries when the uninstalled
7592 # path is not listed in the libpath. Setting hardcode_minus_L
7593 # to unsupported forces relinking
7594 hardcode_minus_L=yes
7595 hardcode_libdir_flag_spec='-L$libdir'
7596 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007597 fi
vapier7f19c022007-02-17 14:46:31 +00007598 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007599 esac
7600 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007601 if test "$aix_use_runtimelinking" = yes; then
7602 shared_flag="$shared_flag "'${wl}-G'
7603 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007604 else
7605 # not using gcc
7606 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007607 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7608 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007609 shared_flag='-G'
7610 else
vapier7f19c022007-02-17 14:46:31 +00007611 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007612 shared_flag='${wl}-G'
7613 else
7614 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007615 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007616 fi
7617 fi
7618
vapier6acb2cf2009-01-28 04:46:28 +00007619 export_dynamic_flag_spec='${wl}-bexpall'
a.rottmann9bc8b932004-02-29 15:18:31 +00007620 # It seems that -bexpall does not export symbols beginning with
7621 # underscore (_), so it is better to generate a list of symbols to export.
7622 always_export_symbols=yes
7623 if test "$aix_use_runtimelinking" = yes; then
7624 # Warning - without using the other runtime loading flags (-brtl),
7625 # -berok will link without error, but may produce a broken library.
7626 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007627 # Determine the default libpath from the value encoded in an
7628 # empty executable.
dana9f39fd2011-08-12 16:34:42 +00007629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007630/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007631
a.rottmann84e63352003-03-24 09:42:16 +00007632int
7633main ()
7634{
a.rottmann9bc8b932004-02-29 15:18:31 +00007635
a.rottmann84e63352003-03-24 09:42:16 +00007636 ;
7637 return 0;
7638}
7639_ACEOF
dana9f39fd2011-08-12 16:34:42 +00007640if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007641
mlcreech636a9952008-05-05 22:52:56 +00007642lt_aix_libpath_sed='
7643 /Import File Strings/,/^$/ {
7644 /^0/ {
7645 s/^0 *\(.*\)$/\1/
7646 p
7647 }
7648 }'
7649aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007650# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007651if test -z "$aix_libpath"; then
7652 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7653fi
a.rottmann84e63352003-03-24 09:42:16 +00007654fi
dana9f39fd2011-08-12 16:34:42 +00007655rm -f core conftest.err conftest.$ac_objext \
7656 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007657if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007658
mlcreech636a9952008-05-05 22:52:56 +00007659 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7660 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7661 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007662 if test "$host_cpu" = ia64; then
7663 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7664 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007665 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"
a.rottmann9bc8b932004-02-29 15:18:31 +00007666 else
mlcreech636a9952008-05-05 22:52:56 +00007667 # Determine the default libpath from the value encoded in an
7668 # empty executable.
dana9f39fd2011-08-12 16:34:42 +00007669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007670/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007671
a.rottmann9bc8b932004-02-29 15:18:31 +00007672int
7673main ()
7674{
a.rottmann84e63352003-03-24 09:42:16 +00007675
a.rottmann9bc8b932004-02-29 15:18:31 +00007676 ;
7677 return 0;
7678}
7679_ACEOF
dana9f39fd2011-08-12 16:34:42 +00007680if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007681
mlcreech636a9952008-05-05 22:52:56 +00007682lt_aix_libpath_sed='
7683 /Import File Strings/,/^$/ {
7684 /^0/ {
7685 s/^0 *\(.*\)$/\1/
7686 p
7687 }
7688 }'
7689aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007690# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007691if test -z "$aix_libpath"; then
7692 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7693fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007694fi
dana9f39fd2011-08-12 16:34:42 +00007695rm -f core conftest.err conftest.$ac_objext \
7696 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007697if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007698
a.rottmann9bc8b932004-02-29 15:18:31 +00007699 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7700 # Warning - without using the other run time loading flags,
7701 # -berok will link without error, but may produce a broken library.
7702 no_undefined_flag=' ${wl}-bernotok'
7703 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007704 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007705 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007706 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007707 # This is similar to how AIX traditionally builds its shared libraries.
7708 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'
a.rottmann84e63352003-03-24 09:42:16 +00007709 fi
7710 fi
a.rottmann84e63352003-03-24 09:42:16 +00007711 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007712
7713 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007714 case $host_cpu in
7715 powerpc)
7716 # see comment about AmigaOS4 .so support
7717 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7718 archive_expsym_cmds=''
7719 ;;
7720 m68k)
7721 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)'
7722 hardcode_libdir_flag_spec='-L$libdir'
7723 hardcode_minus_L=yes
7724 ;;
7725 esac
a.rottmann84e63352003-03-24 09:42:16 +00007726 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007727
vapier7f19c022007-02-17 14:46:31 +00007728 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007729 export_dynamic_flag_spec=-rdynamic
7730 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007731
vapier6acb2cf2009-01-28 04:46:28 +00007732 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007733 # When not using gcc, we currently assume that we are using
7734 # Microsoft Visual C++.
7735 # hardcode_libdir_flag_spec is actually meaningless, as there is
7736 # no search path for DLLs.
7737 hardcode_libdir_flag_spec=' '
7738 allow_undefined_flag=unsupported
7739 # Tell ltmain to make .lib files, not .a files.
7740 libext=lib
7741 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00007742 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00007743 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00007744 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
a.rottmann9bc8b932004-02-29 15:18:31 +00007745 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00007746 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00007747 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00007748 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00007749 fix_srcfile_path='`cygpath -w "$srcfile"`'
7750 enable_shared_with_static_runtimes=yes
7751 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007752
a.rottmann9bc8b932004-02-29 15:18:31 +00007753 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00007754
7755
7756 archive_cmds_need_lc=no
7757 hardcode_direct=no
7758 hardcode_automatic=yes
7759 hardcode_shlibpath_var=unsupported
7760 whole_archive_flag_spec=''
7761 link_all_deplibs=yes
7762 allow_undefined_flag="$_lt_dar_allow_undefined"
vapier6acb2cf2009-01-28 04:46:28 +00007763 case $cc_basename in
7764 ifort*) _lt_dar_can_shared=yes ;;
7765 *) _lt_dar_can_shared=$GCC ;;
7766 esac
7767 if test "$_lt_dar_can_shared" = "yes"; then
mlcreech636a9952008-05-05 22:52:56 +00007768 output_verbose_link_cmd=echo
7769 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7770 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7771 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}"
7772 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}"
7773
7774 else
7775 ld_shlibs=no
7776 fi
7777
a.rottmann9bc8b932004-02-29 15:18:31 +00007778 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007779
a.rottmann9bc8b932004-02-29 15:18:31 +00007780 dgux*)
7781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7782 hardcode_libdir_flag_spec='-L$libdir'
7783 hardcode_shlibpath_var=no
7784 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007785
a.rottmann9bc8b932004-02-29 15:18:31 +00007786 freebsd1*)
7787 ld_shlibs=no
7788 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007789
a.rottmann9bc8b932004-02-29 15:18:31 +00007790 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7791 # support. Future versions do this automatically, but an explicit c++rt0.o
7792 # does not break anything, and helps significantly (at the cost of a little
7793 # extra space).
7794 freebsd2.2*)
7795 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7796 hardcode_libdir_flag_spec='-R$libdir'
7797 hardcode_direct=yes
7798 hardcode_shlibpath_var=no
7799 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007800
a.rottmann9bc8b932004-02-29 15:18:31 +00007801 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7802 freebsd2*)
7803 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7804 hardcode_direct=yes
7805 hardcode_minus_L=yes
7806 hardcode_shlibpath_var=no
7807 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007808
a.rottmann9bc8b932004-02-29 15:18:31 +00007809 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00007810 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007811 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7812 hardcode_libdir_flag_spec='-R$libdir'
7813 hardcode_direct=yes
7814 hardcode_shlibpath_var=no
7815 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007816
a.rottmann9bc8b932004-02-29 15:18:31 +00007817 hpux9*)
7818 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007819 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00007820 else
mlcreech636a9952008-05-05 22:52:56 +00007821 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'
a.rottmann9bc8b932004-02-29 15:18:31 +00007822 fi
7823 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7824 hardcode_libdir_separator=:
7825 hardcode_direct=yes
7826
7827 # hardcode_minus_L: Not really in the search PATH,
7828 # but as the default location of the library.
7829 hardcode_minus_L=yes
7830 export_dynamic_flag_spec='${wl}-E'
7831 ;;
7832
vapier7f19c022007-02-17 14:46:31 +00007833 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007834 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007835 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7836 else
7837 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7838 fi
7839 if test "$with_gnu_ld" = no; then
7840 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00007841 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00007842 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00007843 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007844 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00007845 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00007846 # hardcode_minus_L: Not really in the search PATH,
7847 # but as the default location of the library.
7848 hardcode_minus_L=yes
7849 fi
7850 ;;
7851
7852 hpux11*)
7853 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7854 case $host_cpu in
7855 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007856 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7857 ;;
vapier7f19c022007-02-17 14:46:31 +00007858 ia64*)
vapier6acb2cf2009-01-28 04:46:28 +00007859 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00007860 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007861 *)
7862 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7863 ;;
7864 esac
7865 else
vapier7f19c022007-02-17 14:46:31 +00007866 case $host_cpu in
7867 hppa*64*)
7868 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7869 ;;
7870 ia64*)
7871 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007872 ;;
7873 *)
vapier7f19c022007-02-17 14:46:31 +00007874 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007875 ;;
7876 esac
7877 fi
7878 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007879 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7880 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00007881
vapier7f19c022007-02-17 14:46:31 +00007882 case $host_cpu in
7883 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00007884 hardcode_direct=no
7885 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007886 ;;
7887 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007888 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007889 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007890 export_dynamic_flag_spec='${wl}-E'
7891
7892 # hardcode_minus_L: Not really in the search PATH,
7893 # but as the default location of the library.
7894 hardcode_minus_L=yes
7895 ;;
7896 esac
7897 fi
7898 ;;
7899
7900 irix5* | irix6* | nonstopux*)
7901 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007902 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7903 # Try to use the -exported_symbol ld option, if it does not
7904 # work, assume that -exports_file does not work either and
7905 # implicitly export all symbols.
7906 save_LDFLAGS="$LDFLAGS"
7907 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
dana9f39fd2011-08-12 16:34:42 +00007908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +00007910int foo(void) {}
7911_ACEOF
dana9f39fd2011-08-12 16:34:42 +00007912if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00007913 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7914
mlcreech636a9952008-05-05 22:52:56 +00007915fi
dana9f39fd2011-08-12 16:34:42 +00007916rm -f core conftest.err conftest.$ac_objext \
7917 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00007918 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00007919 else
mlcreech636a9952008-05-05 22:52:56 +00007920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7921 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00007922 fi
mlcreech636a9952008-05-05 22:52:56 +00007923 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00007924 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7925 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00007926 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007927 link_all_deplibs=yes
7928 ;;
7929
vapier7f19c022007-02-17 14:46:31 +00007930 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007931 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007932 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7933 else
7934 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7935 fi
7936 hardcode_libdir_flag_spec='-R$libdir'
7937 hardcode_direct=yes
7938 hardcode_shlibpath_var=no
7939 ;;
7940
7941 newsos6)
7942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7943 hardcode_direct=yes
7944 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7945 hardcode_libdir_separator=:
7946 hardcode_shlibpath_var=no
7947 ;;
7948
mlcreech636a9952008-05-05 22:52:56 +00007949 *nto* | *qnx*)
7950 ;;
7951
a.rottmann9bc8b932004-02-29 15:18:31 +00007952 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007953 if test -f /usr/libexec/ld.so; then
7954 hardcode_direct=yes
7955 hardcode_shlibpath_var=no
7956 hardcode_direct_absolute=yes
7957 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7958 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7959 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7960 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7961 export_dynamic_flag_spec='${wl}-E'
7962 else
7963 case $host_os in
7964 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7965 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7966 hardcode_libdir_flag_spec='-R$libdir'
7967 ;;
7968 *)
7969 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7970 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7971 ;;
7972 esac
7973 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007974 else
mlcreech636a9952008-05-05 22:52:56 +00007975 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007976 fi
7977 ;;
7978
7979 os2*)
7980 hardcode_libdir_flag_spec='-L$libdir'
7981 hardcode_minus_L=yes
7982 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007983 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'
7984 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00007985 ;;
7986
7987 osf3*)
7988 if test "$GCC" = yes; then
7989 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00007990 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00007991 else
7992 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00007993 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00007994 fi
mlcreech636a9952008-05-05 22:52:56 +00007995 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00007996 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7997 hardcode_libdir_separator=:
7998 ;;
7999
8000 osf4* | osf5*) # as osf3* with the addition of -msym flag
8001 if test "$GCC" = yes; then
8002 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008003 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00008004 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8005 else
8006 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008007 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8008 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~
8009 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
a.rottmann9bc8b932004-02-29 15:18:31 +00008010
8011 # Both c and cxx compiler support -rpath directly
8012 hardcode_libdir_flag_spec='-rpath $libdir'
8013 fi
mlcreech636a9952008-05-05 22:52:56 +00008014 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008015 hardcode_libdir_separator=:
8016 ;;
8017
a.rottmann9bc8b932004-02-29 15:18:31 +00008018 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008019 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008020 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008021 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008022 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8023 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8024 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
a.rottmann9bc8b932004-02-29 15:18:31 +00008025 else
mlcreech636a9952008-05-05 22:52:56 +00008026 case `$CC -V 2>&1` in
8027 *"Compilers 5.0"*)
8028 wlarc=''
8029 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8030 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8031 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8032 ;;
8033 *)
8034 wlarc='${wl}'
8035 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8036 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8037 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8038 ;;
8039 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008040 fi
8041 hardcode_libdir_flag_spec='-R$libdir'
8042 hardcode_shlibpath_var=no
8043 case $host_os in
8044 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008045 *)
mlcreech636a9952008-05-05 22:52:56 +00008046 # The compiler driver will combine and reorder linker options,
8047 # but understands `-z linker_flag'. GCC discards it without `$wl',
8048 # but is careful enough not to reorder.
8049 # Supported since Solaris 2.6 (maybe 2.5.1?)
8050 if test "$GCC" = yes; then
8051 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8052 else
8053 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8054 fi
8055 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008056 esac
8057 link_all_deplibs=yes
8058 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008059
a.rottmann9bc8b932004-02-29 15:18:31 +00008060 sunos4*)
8061 if test "x$host_vendor" = xsequent; then
8062 # Use $CC to link under sequent, because it throws in some extra .o
8063 # files that make .init and .fini sections work.
8064 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8065 else
8066 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8067 fi
8068 hardcode_libdir_flag_spec='-L$libdir'
8069 hardcode_direct=yes
8070 hardcode_minus_L=yes
8071 hardcode_shlibpath_var=no
8072 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008073
a.rottmann9bc8b932004-02-29 15:18:31 +00008074 sysv4)
8075 case $host_vendor in
8076 sni)
8077 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8078 hardcode_direct=yes # is this really true???
8079 ;;
8080 siemens)
8081 ## LD is ld it makes a PLAMLIB
8082 ## CC just makes a GrossModule.
8083 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8084 reload_cmds='$CC -r -o $output$reload_objs'
8085 hardcode_direct=no
8086 ;;
8087 motorola)
8088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8089 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8090 ;;
8091 esac
8092 runpath_var='LD_RUN_PATH'
8093 hardcode_shlibpath_var=no
8094 ;;
8095
8096 sysv4.3*)
8097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8098 hardcode_shlibpath_var=no
8099 export_dynamic_flag_spec='-Bexport'
8100 ;;
8101
8102 sysv4*MP*)
8103 if test -d /usr/nec; then
8104 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8105 hardcode_shlibpath_var=no
8106 runpath_var=LD_RUN_PATH
8107 hardcode_runpath_var=yes
8108 ld_shlibs=yes
8109 fi
8110 ;;
8111
mlcreech636a9952008-05-05 22:52:56 +00008112 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008113 no_undefined_flag='${wl}-z,text'
8114 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008115 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008116 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008117
a.rottmann9bc8b932004-02-29 15:18:31 +00008118 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008119 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8120 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00008121 else
vapier7f19c022007-02-17 14:46:31 +00008122 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8123 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00008124 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008125 ;;
8126
vapier7f19c022007-02-17 14:46:31 +00008127 sysv5* | sco3.2v5* | sco5v6*)
8128 # Note: We can NOT use -z defs as we might desire, because we do not
8129 # link with -lc, and that would cause any symbols used from libc to
8130 # always be unresolved, which means just about no library would
8131 # ever link correctly. If we're not using GNU ld we use -z text
8132 # though, which does catch some bad symbols but isn't as heavy-handed
8133 # as -z defs.
8134 no_undefined_flag='${wl}-z,text'
8135 allow_undefined_flag='${wl}-z,nodefs'
8136 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008137 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008138 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008139 hardcode_libdir_separator=':'
8140 link_all_deplibs=yes
8141 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008142 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008143
8144 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008145 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8146 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008147 else
mlcreech636a9952008-05-05 22:52:56 +00008148 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8149 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008150 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008151 ;;
8152
8153 uts4*)
8154 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8155 hardcode_libdir_flag_spec='-L$libdir'
8156 hardcode_shlibpath_var=no
8157 ;;
8158
8159 *)
8160 ld_shlibs=no
8161 ;;
8162 esac
mlcreech636a9952008-05-05 22:52:56 +00008163
8164 if test x$host_vendor = xsni; then
8165 case $host in
8166 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8167 export_dynamic_flag_spec='${wl}-Blargedynsym'
8168 ;;
8169 esac
8170 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008171 fi
8172
dana9f39fd2011-08-12 16:34:42 +00008173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
drh8b727472009-01-19 18:18:40 +00008174$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008175test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008176
mlcreech636a9952008-05-05 22:52:56 +00008177with_gnu_ld=$with_gnu_ld
8178
8179
danielk197733a14782008-08-04 14:50:05 +00008180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
a.rottmann9bc8b932004-02-29 15:18:31 +00008193#
8194# Do we need to explicitly link libc?
8195#
8196case "x$archive_cmds_need_lc" in
8197x|xyes)
8198 # Assume -lc should be added
8199 archive_cmds_need_lc=yes
8200
8201 if test "$enable_shared" = yes && test "$GCC" = yes; then
8202 case $archive_cmds in
8203 *'~'*)
8204 # FIXME: we may have to deal with multi-command sequences.
8205 ;;
8206 '$CC '*)
8207 # Test whether the compiler implicitly links with -lc since on some
8208 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8209 # to ld, don't add -lc before -lgcc.
dana9f39fd2011-08-12 16:34:42 +00008210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
drh8b727472009-01-19 18:18:40 +00008211$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008212 $RM conftest*
8213 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008214
dana9f39fd2011-08-12 16:34:42 +00008215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008216 (eval $ac_compile) 2>&5
8217 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00008218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8219 test $ac_status = 0; } 2>conftest.err; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008220 soname=conftest
8221 lib=conftest
8222 libobjs=conftest.$ac_objext
8223 deplibs=
8224 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008225 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008226 compiler_flags=-v
8227 linker_flags=-v
8228 verstring=
8229 output_objdir=.
8230 libname=conftest
8231 lt_save_allow_undefined_flag=$allow_undefined_flag
8232 allow_undefined_flag=
dana9f39fd2011-08-12 16:34:42 +00008233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00008234 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008235 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00008236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8237 test $ac_status = 0; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008238 then
8239 archive_cmds_need_lc=no
8240 else
8241 archive_cmds_need_lc=yes
8242 fi
8243 allow_undefined_flag=$lt_save_allow_undefined_flag
8244 else
8245 cat conftest.err 1>&5
8246 fi
mlcreech636a9952008-05-05 22:52:56 +00008247 $RM conftest*
dana9f39fd2011-08-12 16:34:42 +00008248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
drh8b727472009-01-19 18:18:40 +00008249$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008250 ;;
8251 esac
drh71eb93e2001-09-28 01:34:43 +00008252 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008253 ;;
8254esac
drh71eb93e2001-09-28 01:34:43 +00008255
mlcreech636a9952008-05-05 22:52:56 +00008256
danielk197733a14782008-08-04 14:50:05 +00008257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
dana9f39fd2011-08-12 16:34:42 +00008412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
drh8b727472009-01-19 18:18:40 +00008413$as_echo_n "checking dynamic linker characteristics... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008414
8415if test "$GCC" = yes; then
8416 case $host_os in
8417 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8418 *) lt_awk_arg="/^libraries:/" ;;
8419 esac
8420 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8421 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8422 # if the path contains ";" then we assume it to be the separator
8423 # otherwise default to the standard path separator (i.e. ":") - it is
8424 # assumed that no part of a normal pathname contains ";" but that should
8425 # okay in the real world where ";" in dirpaths is itself problematic.
8426 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8427 else
8428 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8429 fi
8430 # Ok, now we have the path, separated by spaces, we can step through it
8431 # and add multilib dir if necessary.
8432 lt_tmp_lt_search_path_spec=
8433 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8434 for lt_sys_path in $lt_search_path_spec; do
8435 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8436 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8437 else
8438 test -d "$lt_sys_path" && \
8439 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8440 fi
8441 done
8442 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8443BEGIN {RS=" "; FS="/|\n";} {
8444 lt_foo="";
8445 lt_count=0;
8446 for (lt_i = NF; lt_i > 0; lt_i--) {
8447 if ($lt_i != "" && $lt_i != ".") {
8448 if ($lt_i == "..") {
8449 lt_count++;
8450 } else {
8451 if (lt_count == 0) {
8452 lt_foo="/" $lt_i lt_foo;
8453 } else {
8454 lt_count--;
8455 }
8456 }
8457 }
8458 }
8459 if (lt_foo != "") { lt_freq[lt_foo]++; }
8460 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8461}'`
8462 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8463else
8464 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8465fi
drh71eb93e2001-09-28 01:34:43 +00008466library_names_spec=
8467libname_spec='lib$name'
8468soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008469shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008470postinstall_cmds=
8471postuninstall_cmds=
8472finish_cmds=
8473finish_eval=
8474shlibpath_var=
8475shlibpath_overrides_runpath=unknown
8476version_type=none
8477dynamic_linker="$host_os ld.so"
8478sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008479need_lib_prefix=unknown
8480hardcode_into_libs=no
8481
8482# when you set need_version to no, make sure it does not cause -set_version
8483# flags to be left without arguments
8484need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008485
8486case $host_os in
8487aix3*)
8488 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008489 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008490 shlibpath_var=LIBPATH
8491
a.rottmann9bc8b932004-02-29 15:18:31 +00008492 # AIX 3 has no versioning support, so we append a major version to the name.
8493 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008494 ;;
8495
mlcreech636a9952008-05-05 22:52:56 +00008496aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008497 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008498 need_lib_prefix=no
8499 need_version=no
8500 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008501 if test "$host_cpu" = ia64; then
8502 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008503 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008504 shlibpath_var=LD_LIBRARY_PATH
8505 else
8506 # With GCC up to 2.95.x, collect2 would create an import file
8507 # for dependence libraries. The import file would start with
8508 # the line `#! .'. This would cause the generated library to
8509 # depend on `.', always an invalid library. This was fixed in
8510 # development snapshots of GCC prior to 3.0.
8511 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008512 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008513 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8514 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008515 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008516 :
8517 else
8518 can_build_shared=no
8519 fi
8520 ;;
drh71eb93e2001-09-28 01:34:43 +00008521 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008522 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8523 # soname into executable. Probably we can add versioning support to
8524 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008525 if test "$aix_use_runtimelinking" = yes; then
8526 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8527 # instead of lib<name>.a to let people know that these are not
8528 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008530 else
8531 # We preserve .a as extension for shared libraries through AIX4.2
8532 # and later when we are not doing run time linking.
8533 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008534 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008535 fi
8536 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008537 fi
8538 ;;
8539
8540amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008541 case $host_cpu in
8542 powerpc)
8543 # Since July 2007 AmigaOS4 officially supports .so libraries.
8544 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8546 ;;
8547 m68k)
8548 library_names_spec='$libname.ixlibrary $libname.a'
8549 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8550 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
8551 ;;
8552 esac
drh71eb93e2001-09-28 01:34:43 +00008553 ;;
8554
8555beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008556 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008557 dynamic_linker="$host_os ld.so"
8558 shlibpath_var=LIBRARY_PATH
8559 ;;
8560
vapier7f19c022007-02-17 14:46:31 +00008561bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008562 version_type=linux
8563 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8565 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008566 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8567 shlibpath_var=LD_LIBRARY_PATH
8568 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8569 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8570 # the default ld.so.conf also contains /usr/contrib/lib and
8571 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8572 # libtool to hard-code these into programs
8573 ;;
8574
vapier6acb2cf2009-01-28 04:46:28 +00008575cygwin* | mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008576 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008577 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008578 need_version=no
8579 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008580
drh71eb93e2001-09-28 01:34:43 +00008581 case $GCC,$host_os in
vapier6acb2cf2009-01-28 04:46:28 +00008582 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008583 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008584 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8585 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008586 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008587 dldir=$destdir/`dirname \$dlpath`~
8588 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008589 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008590 chmod a+x \$dldir/$dlname~
8591 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8592 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8593 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008594 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008595 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008596 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008597 shlibpath_overrides_runpath=yes
8598
8599 case $host_os in
8600 cygwin*)
8601 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8602 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8603 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8604 ;;
vapier6acb2cf2009-01-28 04:46:28 +00008605 mingw* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008606 # MinGW DLLs use traditional 'lib' prefix
8607 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008608 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8609 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008610 # It is most probably a Windows format PATH printed by
8611 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8612 # path with ; separators, and with drive letters. We can handle the
8613 # drive letters (cygwin fileutils understands them), so leave them,
8614 # especially as we might pass files found there to a mingw objdump,
8615 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008616 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008617 else
mlcreech636a9952008-05-05 22:52:56 +00008618 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008619 fi
8620 ;;
8621 pw32*)
8622 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008623 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
a.rottmann9bc8b932004-02-29 15:18:31 +00008624 ;;
8625 esac
drh71eb93e2001-09-28 01:34:43 +00008626 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008627
drh71eb93e2001-09-28 01:34:43 +00008628 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008629 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008630 ;;
8631 esac
8632 dynamic_linker='Win32 ld.exe'
8633 # FIXME: first we should search . and the directory the executable is in
8634 shlibpath_var=PATH
8635 ;;
8636
8637darwin* | rhapsody*)
8638 dynamic_linker="$host_os dyld"
8639 version_type=darwin
8640 need_lib_prefix=no
8641 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008642 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008643 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008644 shlibpath_overrides_runpath=yes
8645 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008646 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008647
8648 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008649 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8650 ;;
8651
8652dgux*)
8653 version_type=linux
8654 need_lib_prefix=no
8655 need_version=no
8656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8657 soname_spec='${libname}${release}${shared_ext}$major'
8658 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008659 ;;
8660
a.rottmann84e63352003-03-24 09:42:16 +00008661freebsd1*)
8662 dynamic_linker=no
8663 ;;
8664
vapier7f19c022007-02-17 14:46:31 +00008665freebsd* | dragonfly*)
8666 # DragonFly does not have aout. When/if they implement a new
8667 # versioning mechanism, adjust this.
8668 if test -x /usr/bin/objformat; then
8669 objformat=`/usr/bin/objformat`
8670 else
8671 case $host_os in
8672 freebsd[123]*) objformat=aout ;;
8673 *) objformat=elf ;;
8674 esac
8675 fi
8676 # Handle Gentoo/FreeBSD as it was Linux
8677 case $host_vendor in
8678 gentoo)
8679 version_type=linux ;;
8680 *)
8681 version_type=freebsd-$objformat ;;
8682 esac
8683
drh71eb93e2001-09-28 01:34:43 +00008684 case $version_type in
8685 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008687 need_version=no
8688 need_lib_prefix=no
8689 ;;
8690 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008691 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008692 need_version=yes
8693 ;;
vapier7f19c022007-02-17 14:46:31 +00008694 linux)
8695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8696 soname_spec='${libname}${release}${shared_ext}$major'
8697 need_lib_prefix=no
8698 need_version=no
8699 ;;
drh71eb93e2001-09-28 01:34:43 +00008700 esac
8701 shlibpath_var=LD_LIBRARY_PATH
8702 case $host_os in
8703 freebsd2*)
8704 shlibpath_overrides_runpath=yes
8705 ;;
vapier7f19c022007-02-17 14:46:31 +00008706 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008707 shlibpath_overrides_runpath=yes
8708 hardcode_into_libs=yes
8709 ;;
vapier7f19c022007-02-17 14:46:31 +00008710 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8711 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008712 shlibpath_overrides_runpath=no
8713 hardcode_into_libs=yes
8714 ;;
mlcreech636a9952008-05-05 22:52:56 +00008715 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00008716 shlibpath_overrides_runpath=yes
8717 hardcode_into_libs=yes
8718 ;;
drh71eb93e2001-09-28 01:34:43 +00008719 esac
8720 ;;
8721
8722gnu*)
8723 version_type=linux
8724 need_lib_prefix=no
8725 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8727 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008728 shlibpath_var=LD_LIBRARY_PATH
8729 hardcode_into_libs=yes
8730 ;;
8731
8732hpux9* | hpux10* | hpux11*)
8733 # Give a soname corresponding to the major version so that dld.sl refuses to
8734 # link against other versions.
8735 version_type=sunos
8736 need_lib_prefix=no
8737 need_version=no
vapier7f19c022007-02-17 14:46:31 +00008738 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00008739 ia64*)
vapier7f19c022007-02-17 14:46:31 +00008740 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00008741 hardcode_into_libs=yes
8742 dynamic_linker="$host_os dld.so"
8743 shlibpath_var=LD_LIBRARY_PATH
8744 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8746 soname_spec='${libname}${release}${shared_ext}$major'
8747 if test "X$HPUX_IA64_MODE" = X32; then
8748 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8749 else
8750 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8751 fi
8752 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8753 ;;
mlcreech636a9952008-05-05 22:52:56 +00008754 hppa*64*)
8755 shrext_cmds='.sl'
8756 hardcode_into_libs=yes
8757 dynamic_linker="$host_os dld.sl"
8758 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8759 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8761 soname_spec='${libname}${release}${shared_ext}$major'
8762 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8763 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8764 ;;
8765 *)
vapier7f19c022007-02-17 14:46:31 +00008766 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008767 dynamic_linker="$host_os dld.sl"
8768 shlibpath_var=SHLIB_PATH
8769 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8771 soname_spec='${libname}${release}${shared_ext}$major'
8772 ;;
8773 esac
drh71eb93e2001-09-28 01:34:43 +00008774 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8775 postinstall_cmds='chmod 555 $lib'
8776 ;;
8777
mlcreech636a9952008-05-05 22:52:56 +00008778interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00008779 version_type=linux
8780 need_lib_prefix=no
8781 need_version=no
8782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8783 soname_spec='${libname}${release}${shared_ext}$major'
8784 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8785 shlibpath_var=LD_LIBRARY_PATH
8786 shlibpath_overrides_runpath=no
8787 hardcode_into_libs=yes
8788 ;;
8789
a.rottmann84e63352003-03-24 09:42:16 +00008790irix5* | irix6* | nonstopux*)
8791 case $host_os in
8792 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008793 *)
8794 if test "$lt_cv_prog_gnu_ld" = yes; then
8795 version_type=linux
8796 else
8797 version_type=irix
8798 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00008799 esac
drh71eb93e2001-09-28 01:34:43 +00008800 need_lib_prefix=no
8801 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008802 soname_spec='${libname}${release}${shared_ext}$major'
8803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008804 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008805 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00008806 libsuff= shlibsuff=
8807 ;;
8808 *)
8809 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00008810 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8811 libsuff= shlibsuff= libmagic=32-bit;;
8812 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8813 libsuff=32 shlibsuff=N32 libmagic=N32;;
8814 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8815 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00008816 *) libsuff= shlibsuff= libmagic=never-match;;
8817 esac
8818 ;;
8819 esac
8820 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8821 shlibpath_overrides_runpath=no
8822 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8823 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00008824 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008825 ;;
8826
8827# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00008828linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00008829 dynamic_linker=no
8830 ;;
8831
8832# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00008833linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00008834 version_type=linux
8835 need_lib_prefix=no
8836 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8838 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8840 shlibpath_var=LD_LIBRARY_PATH
8841 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00008842 # Some binutils ld are patched to set DT_RUNPATH
8843 save_LDFLAGS=$LDFLAGS
8844 save_libdir=$libdir
8845 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8846 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
dana9f39fd2011-08-12 16:34:42 +00008847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008848/* end confdefs.h. */
8849
8850int
8851main ()
8852{
8853
8854 ;
8855 return 0;
8856}
8857_ACEOF
dana9f39fd2011-08-12 16:34:42 +00008858if ac_fn_c_try_link "$LINENO"; then :
8859 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
mlcreech636a9952008-05-05 22:52:56 +00008860 shlibpath_overrides_runpath=yes
8861fi
mlcreech636a9952008-05-05 22:52:56 +00008862fi
dana9f39fd2011-08-12 16:34:42 +00008863rm -f core conftest.err conftest.$ac_objext \
8864 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008865 LDFLAGS=$save_LDFLAGS
8866 libdir=$save_libdir
8867
drh71eb93e2001-09-28 01:34:43 +00008868 # This implies no fast_install, which is unacceptable.
8869 # Some rework will be needed to allow for fast_install
8870 # before this can be enabled.
8871 hardcode_into_libs=yes
8872
a.rottmann9bc8b932004-02-29 15:18:31 +00008873 # Append ld.so.conf contents to the search path
8874 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00008875 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;/^$/d' | tr '\n' ' '`
vapier7f19c022007-02-17 14:46:31 +00008876 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00008877 fi
8878
drh71eb93e2001-09-28 01:34:43 +00008879 # We used to test for /lib/ld.so.1 and disable shared libraries on
8880 # powerpc, because MkLinux only supported shared libraries with the
8881 # GNU dynamic linker. Since this was broken with cross compilers,
8882 # most powerpc-linux boxes support dynamic linking these days and
8883 # people can always --disable-shared, the test was removed, and we
8884 # assume the GNU/Linux dynamic linker is in use.
8885 dynamic_linker='GNU/Linux ld.so'
8886 ;;
8887
8888netbsd*)
8889 version_type=sunos
8890 need_lib_prefix=no
8891 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008892 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8895 dynamic_linker='NetBSD (a.out) ld.so'
8896 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8898 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008899 dynamic_linker='NetBSD ld.elf_so'
8900 fi
8901 shlibpath_var=LD_LIBRARY_PATH
8902 shlibpath_overrides_runpath=yes
8903 hardcode_into_libs=yes
8904 ;;
8905
8906newsos6)
8907 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8909 shlibpath_var=LD_LIBRARY_PATH
8910 shlibpath_overrides_runpath=yes
8911 ;;
8912
mlcreech636a9952008-05-05 22:52:56 +00008913*nto* | *qnx*)
8914 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00008915 need_lib_prefix=no
8916 need_version=no
8917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8918 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008919 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008920 shlibpath_overrides_runpath=no
8921 hardcode_into_libs=yes
8922 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00008923 ;;
8924
drh71eb93e2001-09-28 01:34:43 +00008925openbsd*)
8926 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00008927 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00008928 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00008929 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8930 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00008931 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8932 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00008933 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8936 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008937 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008938 case $host_os in
8939 openbsd2.[89] | openbsd2.[89].*)
8940 shlibpath_overrides_runpath=no
8941 ;;
8942 *)
8943 shlibpath_overrides_runpath=yes
8944 ;;
8945 esac
a.rottmann84e63352003-03-24 09:42:16 +00008946 else
8947 shlibpath_overrides_runpath=yes
8948 fi
drh71eb93e2001-09-28 01:34:43 +00008949 ;;
8950
8951os2*)
8952 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00008953 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008954 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008955 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008956 dynamic_linker='OS/2 ld.exe'
8957 shlibpath_var=LIBPATH
8958 ;;
8959
8960osf3* | osf4* | osf5*)
8961 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00008962 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008963 need_version=no
8964 soname_spec='${libname}${release}${shared_ext}$major'
8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008966 shlibpath_var=LD_LIBRARY_PATH
8967 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8968 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8969 ;;
8970
mlcreech636a9952008-05-05 22:52:56 +00008971rdos*)
8972 dynamic_linker=no
8973 ;;
8974
drh71eb93e2001-09-28 01:34:43 +00008975solaris*)
8976 version_type=linux
8977 need_lib_prefix=no
8978 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8980 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008981 shlibpath_var=LD_LIBRARY_PATH
8982 shlibpath_overrides_runpath=yes
8983 hardcode_into_libs=yes
8984 # ldd complains unless libraries are executable
8985 postinstall_cmds='chmod +x $lib'
8986 ;;
8987
8988sunos4*)
8989 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00008990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008991 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8992 shlibpath_var=LD_LIBRARY_PATH
8993 shlibpath_overrides_runpath=yes
8994 if test "$with_gnu_ld" = yes; then
8995 need_lib_prefix=no
8996 fi
8997 need_version=yes
8998 ;;
8999
vapier7f19c022007-02-17 14:46:31 +00009000sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009001 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9003 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009004 shlibpath_var=LD_LIBRARY_PATH
9005 case $host_vendor in
9006 sni)
9007 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009008 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009009 runpath_var=LD_RUN_PATH
9010 ;;
9011 siemens)
9012 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009013 ;;
9014 motorola)
9015 need_lib_prefix=no
9016 need_version=no
9017 shlibpath_overrides_runpath=no
9018 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9019 ;;
9020 esac
9021 ;;
9022
9023sysv4*MP*)
9024 if test -d /usr/nec ;then
9025 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009026 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9027 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009028 shlibpath_var=LD_LIBRARY_PATH
9029 fi
9030 ;;
9031
vapier7f19c022007-02-17 14:46:31 +00009032sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9033 version_type=freebsd-elf
9034 need_lib_prefix=no
9035 need_version=no
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9037 soname_spec='${libname}${release}${shared_ext}$major'
9038 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009039 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009040 hardcode_into_libs=yes
9041 if test "$with_gnu_ld" = yes; then
9042 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009043 else
9044 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009045 case $host_os in
9046 sco3.2v5*)
9047 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9048 ;;
9049 esac
9050 fi
9051 sys_lib_dlsearch_path_spec='/usr/lib'
9052 ;;
9053
mlcreech636a9952008-05-05 22:52:56 +00009054tpf*)
9055 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9056 version_type=linux
9057 need_lib_prefix=no
9058 need_version=no
vapier6acb2cf2009-01-28 04:46:28 +00009059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00009060 shlibpath_var=LD_LIBRARY_PATH
9061 shlibpath_overrides_runpath=no
9062 hardcode_into_libs=yes
9063 ;;
9064
a.rottmann9bc8b932004-02-29 15:18:31 +00009065uts4*)
9066 version_type=linux
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 shlibpath_var=LD_LIBRARY_PATH
9070 ;;
9071
drh71eb93e2001-09-28 01:34:43 +00009072*)
9073 dynamic_linker=no
9074 ;;
9075esac
dana9f39fd2011-08-12 16:34:42 +00009076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
drh8b727472009-01-19 18:18:40 +00009077$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009078test "$dynamic_linker" = no && can_build_shared=no
9079
vapier7f19c022007-02-17 14:46:31 +00009080variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9081if test "$GCC" = yes; then
9082 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9083fi
9084
mlcreech636a9952008-05-05 22:52:56 +00009085if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9086 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9087fi
9088if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9089 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9090fi
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
dana9f39fd2011-08-12 16:34:42 +00009178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
drh8b727472009-01-19 18:18:40 +00009179$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009180hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009181if test -n "$hardcode_libdir_flag_spec" ||
9182 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009183 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009184
mlcreech636a9952008-05-05 22:52:56 +00009185 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009186 if test "$hardcode_direct" != no &&
9187 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9188 # have to relink, otherwise we might link with an installed library
9189 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009190 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009191 test "$hardcode_minus_L" != no; then
9192 # Linking always hardcodes the temporary library directory.
9193 hardcode_action=relink
9194 else
9195 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9196 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009197 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009198else
9199 # We cannot hardcode anything, or else we can only hardcode existing
9200 # directories.
9201 hardcode_action=unsupported
9202fi
dana9f39fd2011-08-12 16:34:42 +00009203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
drh8b727472009-01-19 18:18:40 +00009204$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009205
mlcreech636a9952008-05-05 22:52:56 +00009206if test "$hardcode_action" = relink ||
9207 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009208 # Fast installation is not supported
9209 enable_fast_install=no
9210elif test "$shlibpath_overrides_runpath" = yes ||
9211 test "$enable_shared" = no; then
9212 # Fast installation is not necessary
9213 enable_fast_install=needless
9214fi
9215
a.rottmann84e63352003-03-24 09:42:16 +00009216
mlcreech636a9952008-05-05 22:52:56 +00009217
9218
9219
9220
9221 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009222 enable_dlopen=unknown
9223 enable_dlopen_self=unknown
9224 enable_dlopen_self_static=unknown
9225else
9226 lt_cv_dlopen=no
9227 lt_cv_dlopen_libs=
9228
9229 case $host_os in
9230 beos*)
9231 lt_cv_dlopen="load_add_on"
9232 lt_cv_dlopen_libs=
9233 lt_cv_dlopen_self=yes
9234 ;;
9235
vapier6acb2cf2009-01-28 04:46:28 +00009236 mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00009237 lt_cv_dlopen="LoadLibrary"
9238 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009239 ;;
drh71eb93e2001-09-28 01:34:43 +00009240
a.rottmann9bc8b932004-02-29 15:18:31 +00009241 cygwin*)
9242 lt_cv_dlopen="dlopen"
9243 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009244 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009245
9246 darwin*)
9247 # if libdl is installed we need to link against it
dana9f39fd2011-08-12 16:34:42 +00009248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009249$as_echo_n "checking for dlopen in -ldl... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00009250if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00009251 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009252else
9253 ac_check_lib_save_LIBS=$LIBS
9254LIBS="-ldl $LIBS"
dana9f39fd2011-08-12 16:34:42 +00009255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009256/* end confdefs.h. */
9257
drh8b727472009-01-19 18:18:40 +00009258/* Override any GCC internal prototype to avoid an error.
9259 Use char because int might match the return type of a GCC
9260 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009261#ifdef __cplusplus
9262extern "C"
9263#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009264char dlopen ();
9265int
9266main ()
9267{
drh8b727472009-01-19 18:18:40 +00009268return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009269 ;
9270 return 0;
9271}
9272_ACEOF
dana9f39fd2011-08-12 16:34:42 +00009273if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009274 ac_cv_lib_dl_dlopen=yes
9275else
dana9f39fd2011-08-12 16:34:42 +00009276 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009277fi
dana9f39fd2011-08-12 16:34:42 +00009278rm -f core conftest.err conftest.$ac_objext \
9279 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009280LIBS=$ac_check_lib_save_LIBS
9281fi
dana9f39fd2011-08-12 16:34:42 +00009282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009283$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
dana9f39fd2011-08-12 16:34:42 +00009284if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009285 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9286else
9287
9288 lt_cv_dlopen="dyld"
9289 lt_cv_dlopen_libs=
9290 lt_cv_dlopen_self=yes
9291
9292fi
9293
mlcreech636a9952008-05-05 22:52:56 +00009294 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009295
drh71eb93e2001-09-28 01:34:43 +00009296 *)
dana9f39fd2011-08-12 16:34:42 +00009297 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9298if test "x$ac_cv_func_shl_load" = x""yes; then :
drh71eb93e2001-09-28 01:34:43 +00009299 lt_cv_dlopen="shl_load"
9300else
dana9f39fd2011-08-12 16:34:42 +00009301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009302$as_echo_n "checking for shl_load in -ldld... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00009303if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00009304 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009305else
9306 ac_check_lib_save_LIBS=$LIBS
9307LIBS="-ldld $LIBS"
dana9f39fd2011-08-12 16:34:42 +00009308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009309/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009310
drh8b727472009-01-19 18:18:40 +00009311/* Override any GCC internal prototype to avoid an error.
9312 Use char because int might match the return type of a GCC
9313 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009314#ifdef __cplusplus
9315extern "C"
9316#endif
drh71eb93e2001-09-28 01:34:43 +00009317char shl_load ();
9318int
9319main ()
9320{
drh8b727472009-01-19 18:18:40 +00009321return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009322 ;
9323 return 0;
9324}
9325_ACEOF
dana9f39fd2011-08-12 16:34:42 +00009326if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009327 ac_cv_lib_dld_shl_load=yes
9328else
dana9f39fd2011-08-12 16:34:42 +00009329 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009330fi
dana9f39fd2011-08-12 16:34:42 +00009331rm -f core conftest.err conftest.$ac_objext \
9332 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009333LIBS=$ac_check_lib_save_LIBS
9334fi
dana9f39fd2011-08-12 16:34:42 +00009335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
drh8b727472009-01-19 18:18:40 +00009336$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
dana9f39fd2011-08-12 16:34:42 +00009337if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
mlcreech636a9952008-05-05 22:52:56 +00009338 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009339else
dana9f39fd2011-08-12 16:34:42 +00009340 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9341if test "x$ac_cv_func_dlopen" = x""yes; then :
a.rottmann84e63352003-03-24 09:42:16 +00009342 lt_cv_dlopen="dlopen"
9343else
dana9f39fd2011-08-12 16:34:42 +00009344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009345$as_echo_n "checking for dlopen in -ldl... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00009346if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00009347 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009348else
9349 ac_check_lib_save_LIBS=$LIBS
9350LIBS="-ldl $LIBS"
dana9f39fd2011-08-12 16:34:42 +00009351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009352/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009353
drh8b727472009-01-19 18:18:40 +00009354/* Override any GCC internal prototype to avoid an error.
9355 Use char because int might match the return type of a GCC
9356 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009357#ifdef __cplusplus
9358extern "C"
9359#endif
drh71eb93e2001-09-28 01:34:43 +00009360char dlopen ();
9361int
9362main ()
9363{
drh8b727472009-01-19 18:18:40 +00009364return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009365 ;
9366 return 0;
9367}
9368_ACEOF
dana9f39fd2011-08-12 16:34:42 +00009369if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009370 ac_cv_lib_dl_dlopen=yes
9371else
dana9f39fd2011-08-12 16:34:42 +00009372 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009373fi
dana9f39fd2011-08-12 16:34:42 +00009374rm -f core conftest.err conftest.$ac_objext \
9375 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009376LIBS=$ac_check_lib_save_LIBS
9377fi
dana9f39fd2011-08-12 16:34:42 +00009378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009379$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
dana9f39fd2011-08-12 16:34:42 +00009380if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
drh71eb93e2001-09-28 01:34:43 +00009381 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9382else
dana9f39fd2011-08-12 16:34:42 +00009383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
drh8b727472009-01-19 18:18:40 +00009384$as_echo_n "checking for dlopen in -lsvld... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00009385if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00009386 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009387else
9388 ac_check_lib_save_LIBS=$LIBS
9389LIBS="-lsvld $LIBS"
dana9f39fd2011-08-12 16:34:42 +00009390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009391/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009392
drh8b727472009-01-19 18:18:40 +00009393/* Override any GCC internal prototype to avoid an error.
9394 Use char because int might match the return type of a GCC
9395 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009396#ifdef __cplusplus
9397extern "C"
9398#endif
drh71eb93e2001-09-28 01:34:43 +00009399char dlopen ();
9400int
9401main ()
9402{
drh8b727472009-01-19 18:18:40 +00009403return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009404 ;
9405 return 0;
9406}
9407_ACEOF
dana9f39fd2011-08-12 16:34:42 +00009408if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009409 ac_cv_lib_svld_dlopen=yes
9410else
dana9f39fd2011-08-12 16:34:42 +00009411 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009412fi
dana9f39fd2011-08-12 16:34:42 +00009413rm -f core conftest.err conftest.$ac_objext \
9414 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009415LIBS=$ac_check_lib_save_LIBS
9416fi
dana9f39fd2011-08-12 16:34:42 +00009417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009418$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
dana9f39fd2011-08-12 16:34:42 +00009419if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
drh71eb93e2001-09-28 01:34:43 +00009420 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00009421else
dana9f39fd2011-08-12 16:34:42 +00009422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009423$as_echo_n "checking for dld_link in -ldld... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00009424if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00009425 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00009426else
9427 ac_check_lib_save_LIBS=$LIBS
9428LIBS="-ldld $LIBS"
dana9f39fd2011-08-12 16:34:42 +00009429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009430/* end confdefs.h. */
9431
drh8b727472009-01-19 18:18:40 +00009432/* Override any GCC internal prototype to avoid an error.
9433 Use char because int might match the return type of a GCC
9434 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009435#ifdef __cplusplus
9436extern "C"
9437#endif
a.rottmann84e63352003-03-24 09:42:16 +00009438char dld_link ();
9439int
9440main ()
9441{
drh8b727472009-01-19 18:18:40 +00009442return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00009443 ;
9444 return 0;
9445}
9446_ACEOF
dana9f39fd2011-08-12 16:34:42 +00009447if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00009448 ac_cv_lib_dld_dld_link=yes
9449else
dana9f39fd2011-08-12 16:34:42 +00009450 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00009451fi
dana9f39fd2011-08-12 16:34:42 +00009452rm -f core conftest.err conftest.$ac_objext \
9453 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009454LIBS=$ac_check_lib_save_LIBS
9455fi
dana9f39fd2011-08-12 16:34:42 +00009456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
drh8b727472009-01-19 18:18:40 +00009457$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
dana9f39fd2011-08-12 16:34:42 +00009458if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
mlcreech636a9952008-05-05 22:52:56 +00009459 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +00009460fi
9461
drh71eb93e2001-09-28 01:34:43 +00009462
9463fi
9464
drh71eb93e2001-09-28 01:34:43 +00009465
9466fi
9467
a.rottmann84e63352003-03-24 09:42:16 +00009468
9469fi
9470
9471
9472fi
9473
9474
drh71eb93e2001-09-28 01:34:43 +00009475fi
9476
9477 ;;
9478 esac
9479
9480 if test "x$lt_cv_dlopen" != xno; then
9481 enable_dlopen=yes
9482 else
9483 enable_dlopen=no
9484 fi
9485
9486 case $lt_cv_dlopen in
9487 dlopen)
9488 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00009489 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00009490
9491 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00009492 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00009493
9494 save_LIBS="$LIBS"
9495 LIBS="$lt_cv_dlopen_libs $LIBS"
9496
dana9f39fd2011-08-12 16:34:42 +00009497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009498$as_echo_n "checking whether a program can dlopen itself... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00009499if test "${lt_cv_dlopen_self+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00009500 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009501else
9502 if test "$cross_compiling" = yes; then :
9503 lt_cv_dlopen_self=cross
9504else
a.rottmann9bc8b932004-02-29 15:18:31 +00009505 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009506 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009507 cat > conftest.$ac_ext <<_LT_EOF
dana9f39fd2011-08-12 16:34:42 +00009508#line 9508 "configure"
drh71eb93e2001-09-28 01:34:43 +00009509#include "confdefs.h"
9510
9511#if HAVE_DLFCN_H
9512#include <dlfcn.h>
9513#endif
9514
9515#include <stdio.h>
9516
9517#ifdef RTLD_GLOBAL
9518# define LT_DLGLOBAL RTLD_GLOBAL
9519#else
9520# ifdef DL_GLOBAL
9521# define LT_DLGLOBAL DL_GLOBAL
9522# else
9523# define LT_DLGLOBAL 0
9524# endif
9525#endif
9526
9527/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9528 find out it does not work in some platform. */
9529#ifndef LT_DLLAZY_OR_NOW
9530# ifdef RTLD_LAZY
9531# define LT_DLLAZY_OR_NOW RTLD_LAZY
9532# else
9533# ifdef DL_LAZY
9534# define LT_DLLAZY_OR_NOW DL_LAZY
9535# else
9536# ifdef RTLD_NOW
9537# define LT_DLLAZY_OR_NOW RTLD_NOW
9538# else
9539# ifdef DL_NOW
9540# define LT_DLLAZY_OR_NOW DL_NOW
9541# else
9542# define LT_DLLAZY_OR_NOW 0
9543# endif
9544# endif
9545# endif
9546# endif
9547#endif
9548
drh71eb93e2001-09-28 01:34:43 +00009549void fnord() { int i=42;}
9550int main ()
9551{
9552 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9553 int status = $lt_dlunknown;
9554
9555 if (self)
9556 {
9557 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9558 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9559 /* dlclose (self); */
9560 }
vapier7f19c022007-02-17 14:46:31 +00009561 else
9562 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009563
vapier6acb2cf2009-01-28 04:46:28 +00009564 return status;
drh71eb93e2001-09-28 01:34:43 +00009565}
mlcreech636a9952008-05-05 22:52:56 +00009566_LT_EOF
dana9f39fd2011-08-12 16:34:42 +00009567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009568 (eval $ac_link) 2>&5
9569 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00009570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9571 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009572 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009573 lt_status=$?
9574 case x$lt_status in
9575 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9576 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009577 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +00009578 esac
9579 else :
9580 # compilation failed
9581 lt_cv_dlopen_self=no
9582 fi
9583fi
9584rm -fr conftest*
9585
a.rottmann84e63352003-03-24 09:42:16 +00009586
drh71eb93e2001-09-28 01:34:43 +00009587fi
dana9f39fd2011-08-12 16:34:42 +00009588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
drh8b727472009-01-19 18:18:40 +00009589$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009590
9591 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00009592 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
dana9f39fd2011-08-12 16:34:42 +00009593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009594$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00009595if test "${lt_cv_dlopen_self_static+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00009596 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009597else
9598 if test "$cross_compiling" = yes; then :
9599 lt_cv_dlopen_self_static=cross
9600else
a.rottmann9bc8b932004-02-29 15:18:31 +00009601 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009602 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009603 cat > conftest.$ac_ext <<_LT_EOF
dana9f39fd2011-08-12 16:34:42 +00009604#line 9604 "configure"
drh71eb93e2001-09-28 01:34:43 +00009605#include "confdefs.h"
9606
9607#if HAVE_DLFCN_H
9608#include <dlfcn.h>
9609#endif
9610
9611#include <stdio.h>
9612
9613#ifdef RTLD_GLOBAL
9614# define LT_DLGLOBAL RTLD_GLOBAL
9615#else
9616# ifdef DL_GLOBAL
9617# define LT_DLGLOBAL DL_GLOBAL
9618# else
9619# define LT_DLGLOBAL 0
9620# endif
9621#endif
9622
9623/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9624 find out it does not work in some platform. */
9625#ifndef LT_DLLAZY_OR_NOW
9626# ifdef RTLD_LAZY
9627# define LT_DLLAZY_OR_NOW RTLD_LAZY
9628# else
9629# ifdef DL_LAZY
9630# define LT_DLLAZY_OR_NOW DL_LAZY
9631# else
9632# ifdef RTLD_NOW
9633# define LT_DLLAZY_OR_NOW RTLD_NOW
9634# else
9635# ifdef DL_NOW
9636# define LT_DLLAZY_OR_NOW DL_NOW
9637# else
9638# define LT_DLLAZY_OR_NOW 0
9639# endif
9640# endif
9641# endif
9642# endif
9643#endif
9644
drh71eb93e2001-09-28 01:34:43 +00009645void fnord() { int i=42;}
9646int main ()
9647{
9648 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9649 int status = $lt_dlunknown;
9650
9651 if (self)
9652 {
9653 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9654 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9655 /* dlclose (self); */
9656 }
vapier7f19c022007-02-17 14:46:31 +00009657 else
9658 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009659
vapier6acb2cf2009-01-28 04:46:28 +00009660 return status;
drh71eb93e2001-09-28 01:34:43 +00009661}
mlcreech636a9952008-05-05 22:52:56 +00009662_LT_EOF
dana9f39fd2011-08-12 16:34:42 +00009663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009664 (eval $ac_link) 2>&5
9665 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00009666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9667 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009668 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009669 lt_status=$?
9670 case x$lt_status in
9671 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9672 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009673 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +00009674 esac
9675 else :
9676 # compilation failed
9677 lt_cv_dlopen_self_static=no
9678 fi
9679fi
9680rm -fr conftest*
9681
a.rottmann84e63352003-03-24 09:42:16 +00009682
drh71eb93e2001-09-28 01:34:43 +00009683fi
dana9f39fd2011-08-12 16:34:42 +00009684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
drh8b727472009-01-19 18:18:40 +00009685$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009686 fi
9687
9688 CPPFLAGS="$save_CPPFLAGS"
9689 LDFLAGS="$save_LDFLAGS"
9690 LIBS="$save_LIBS"
9691 ;;
9692 esac
9693
9694 case $lt_cv_dlopen_self in
9695 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9696 *) enable_dlopen_self=unknown ;;
9697 esac
9698
9699 case $lt_cv_dlopen_self_static in
9700 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9701 *) enable_dlopen_self_static=unknown ;;
9702 esac
9703fi
9704
drh71eb93e2001-09-28 01:34:43 +00009705
drh71eb93e2001-09-28 01:34:43 +00009706
a.rottmann9bc8b932004-02-29 15:18:31 +00009707
a.rottmann9bc8b932004-02-29 15:18:31 +00009708
mlcreech636a9952008-05-05 22:52:56 +00009709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721striplib=
9722old_striplib=
dana9f39fd2011-08-12 16:34:42 +00009723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
drh8b727472009-01-19 18:18:40 +00009724$as_echo_n "checking whether stripping libraries is possible... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009725if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9726 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9727 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
dana9f39fd2011-08-12 16:34:42 +00009728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009729$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009730else
9731# FIXME - insert some real tests, host_os isn't really good enough
9732 case $host_os in
9733 darwin*)
9734 if test -n "$STRIP" ; then
9735 striplib="$STRIP -x"
9736 old_striplib="$STRIP -S"
dana9f39fd2011-08-12 16:34:42 +00009737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009738$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009739 else
dana9f39fd2011-08-12 16:34:42 +00009740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009741$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009742 fi
a.rottmann84e63352003-03-24 09:42:16 +00009743 ;;
mlcreech636a9952008-05-05 22:52:56 +00009744 *)
dana9f39fd2011-08-12 16:34:42 +00009745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009746$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009747 ;;
9748 esac
mlcreech636a9952008-05-05 22:52:56 +00009749fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009750
a.rottmann9bc8b932004-02-29 15:18:31 +00009751
drh71eb93e2001-09-28 01:34:43 +00009752
drh71eb93e2001-09-28 01:34:43 +00009753
a.rottmann84e63352003-03-24 09:42:16 +00009754
drh71eb93e2001-09-28 01:34:43 +00009755
drh71eb93e2001-09-28 01:34:43 +00009756
a.rottmann9bc8b932004-02-29 15:18:31 +00009757
drh71eb93e2001-09-28 01:34:43 +00009758
drh71eb93e2001-09-28 01:34:43 +00009759
drh71eb93e2001-09-28 01:34:43 +00009760
drh71eb93e2001-09-28 01:34:43 +00009761
mlcreech636a9952008-05-05 22:52:56 +00009762 # Report which library types will actually be built
dana9f39fd2011-08-12 16:34:42 +00009763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009764$as_echo_n "checking if libtool supports shared libraries... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00009765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
drh8b727472009-01-19 18:18:40 +00009766$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009767
dana9f39fd2011-08-12 16:34:42 +00009768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009769$as_echo_n "checking whether to build shared libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009770 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009771
mlcreech636a9952008-05-05 22:52:56 +00009772 # On AIX, shared libraries and static libraries use the same namespace, and
9773 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +00009774 case $host_os in
9775 aix3*)
vapier7f19c022007-02-17 14:46:31 +00009776 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +00009777 if test -n "$RANLIB"; then
9778 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9779 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +00009780 fi
9781 ;;
9782
mlcreech636a9952008-05-05 22:52:56 +00009783 aix[4-9]*)
9784 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9785 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009786 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009787 ;;
9788 esac
dana9f39fd2011-08-12 16:34:42 +00009789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
drh8b727472009-01-19 18:18:40 +00009790$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009791
dana9f39fd2011-08-12 16:34:42 +00009792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
drh8b727472009-01-19 18:18:40 +00009793$as_echo_n "checking whether to build static libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009794 # Make sure either enable_shared or enable_static is yes.
9795 test "$enable_shared" = yes || enable_static=yes
dana9f39fd2011-08-12 16:34:42 +00009796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
drh8b727472009-01-19 18:18:40 +00009797$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +00009798
a.rottmann9bc8b932004-02-29 15:18:31 +00009799
a.rottmann9bc8b932004-02-29 15:18:31 +00009800
a.rottmann9bc8b932004-02-29 15:18:31 +00009801
vapier7f19c022007-02-17 14:46:31 +00009802fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009803ac_ext=c
9804ac_cpp='$CPP $CPPFLAGS'
9805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9807ac_compiler_gnu=$ac_cv_c_compiler_gnu
9808
9809CC="$lt_save_CC"
9810
a.rottmann9bc8b932004-02-29 15:18:31 +00009811
a.rottmann9bc8b932004-02-29 15:18:31 +00009812
9813
a.rottmann9bc8b932004-02-29 15:18:31 +00009814
a.rottmann9bc8b932004-02-29 15:18:31 +00009815
a.rottmann9bc8b932004-02-29 15:18:31 +00009816
a.rottmann9bc8b932004-02-29 15:18:31 +00009817
a.rottmann9bc8b932004-02-29 15:18:31 +00009818
a.rottmann9bc8b932004-02-29 15:18:31 +00009819
vapier7f19c022007-02-17 14:46:31 +00009820
a.rottmann9bc8b932004-02-29 15:18:31 +00009821
9822
drh8b727472009-01-19 18:18:40 +00009823 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +00009824
vapier7f19c022007-02-17 14:46:31 +00009825
9826
vapier7f19c022007-02-17 14:46:31 +00009827
mlcreech636a9952008-05-05 22:52:56 +00009828# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +00009829
9830
drh71eb93e2001-09-28 01:34:43 +00009831# Find a good install program. We prefer a C program (faster),
9832# so one script is as good as another. But avoid the broken or
9833# incompatible versions:
9834# SysV /etc/install, /usr/sbin/install
9835# SunOS /usr/etc/install
9836# IRIX /sbin/install
9837# AIX /bin/install
9838# AmigaOS /C/install, which installs bootblocks on floppy discs
9839# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9840# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9841# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +00009842# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +00009843# ./install, which can be erroneously created by make from ./install.sh.
drh8b727472009-01-19 18:18:40 +00009844# Reject install programs that cannot install multiple files.
dana9f39fd2011-08-12 16:34:42 +00009845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
drh8b727472009-01-19 18:18:40 +00009846$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009847if test -z "$INSTALL"; then
dana9f39fd2011-08-12 16:34:42 +00009848if test "${ac_cv_path_install+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00009849 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009850else
a.rottmann84e63352003-03-24 09:42:16 +00009851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9852for as_dir in $PATH
9853do
9854 IFS=$as_save_IFS
9855 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00009856 # Account for people who put trailing slashes in PATH elements.
9857case $as_dir/ in #((
9858 ./ | .// | /[cC]/* | \
a.rottmann84e63352003-03-24 09:42:16 +00009859 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
dana9f39fd2011-08-12 16:34:42 +00009860 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
a.rottmann84e63352003-03-24 09:42:16 +00009861 /usr/ucb/* ) ;;
9862 *)
9863 # OSF1 and SCO ODT 3.0 have their own names for install.
9864 # Don't use installbsd from OSF since it installs stuff as root
9865 # by default.
9866 for ac_prog in ginstall scoinst install; do
9867 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00009868 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
a.rottmann964dbb12004-02-26 19:47:42 +00009869 if test $ac_prog = install &&
9870 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9871 # AIX install. It has an incompatible calling convention.
9872 :
9873 elif test $ac_prog = install &&
9874 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9875 # program-specific install script used by HP pwplus--don't use.
9876 :
9877 else
drh8b727472009-01-19 18:18:40 +00009878 rm -rf conftest.one conftest.two conftest.dir
9879 echo one > conftest.one
9880 echo two > conftest.two
9881 mkdir conftest.dir
9882 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9883 test -s conftest.one && test -s conftest.two &&
9884 test -s conftest.dir/conftest.one &&
9885 test -s conftest.dir/conftest.two
9886 then
9887 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9888 break 3
9889 fi
a.rottmann964dbb12004-02-26 19:47:42 +00009890 fi
9891 fi
drh71eb93e2001-09-28 01:34:43 +00009892 done
a.rottmann84e63352003-03-24 09:42:16 +00009893 done
9894 ;;
9895esac
a.rottmann84e63352003-03-24 09:42:16 +00009896
dana9f39fd2011-08-12 16:34:42 +00009897 done
drh8b727472009-01-19 18:18:40 +00009898IFS=$as_save_IFS
9899
9900rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +00009901
9902fi
9903 if test "${ac_cv_path_install+set}" = set; then
9904 INSTALL=$ac_cv_path_install
9905 else
drh8b727472009-01-19 18:18:40 +00009906 # As a last resort, use the slow shell script. Don't cache a
9907 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +00009908 # break other packages using the cache if that directory is
drh8b727472009-01-19 18:18:40 +00009909 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +00009910 INSTALL=$ac_install_sh
9911 fi
9912fi
dana9f39fd2011-08-12 16:34:42 +00009913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
drh8b727472009-01-19 18:18:40 +00009914$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009915
9916# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9917# It thinks the first close brace ends the variable substitution.
9918test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9919
9920test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9921
9922test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9923
drhf1878b42006-01-23 18:06:52 +00009924for ac_prog in gawk mawk nawk awk
9925do
9926 # Extract the first word of "$ac_prog", so it can be a program name with args.
9927set dummy $ac_prog; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00009928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00009929$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00009930if test "${ac_cv_prog_AWK+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00009931 $as_echo_n "(cached) " >&6
drhf1878b42006-01-23 18:06:52 +00009932else
9933 if test -n "$AWK"; then
9934 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9935else
9936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9937for as_dir in $PATH
9938do
9939 IFS=$as_save_IFS
9940 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00009941 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00009942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
drhf1878b42006-01-23 18:06:52 +00009943 ac_cv_prog_AWK="$ac_prog"
dana9f39fd2011-08-12 16:34:42 +00009944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
drhf1878b42006-01-23 18:06:52 +00009945 break 2
9946 fi
9947done
dana9f39fd2011-08-12 16:34:42 +00009948 done
drh8b727472009-01-19 18:18:40 +00009949IFS=$as_save_IFS
drhf1878b42006-01-23 18:06:52 +00009950
9951fi
9952fi
9953AWK=$ac_cv_prog_AWK
9954if test -n "$AWK"; then
dana9f39fd2011-08-12 16:34:42 +00009955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
drh8b727472009-01-19 18:18:40 +00009956$as_echo "$AWK" >&6; }
drhf1878b42006-01-23 18:06:52 +00009957else
dana9f39fd2011-08-12 16:34:42 +00009958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009959$as_echo "no" >&6; }
drhf1878b42006-01-23 18:06:52 +00009960fi
9961
drh8b727472009-01-19 18:18:40 +00009962
drhf1878b42006-01-23 18:06:52 +00009963 test -n "$AWK" && break
9964done
9965
a.rottmann84e63352003-03-24 09:42:16 +00009966
drh75897232000-05-29 14:26:00 +00009967#########
mlcreech636a9952008-05-05 22:52:56 +00009968# Enable large file support (if special flags are necessary)
9969#
drh8b727472009-01-19 18:18:40 +00009970# Check whether --enable-largefile was given.
dana9f39fd2011-08-12 16:34:42 +00009971if test "${enable_largefile+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00009972 enableval=$enable_largefile;
9973fi
mlcreech636a9952008-05-05 22:52:56 +00009974
9975if test "$enable_largefile" != no; then
9976
dana9f39fd2011-08-12 16:34:42 +00009977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
drh8b727472009-01-19 18:18:40 +00009978$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00009979if test "${ac_cv_sys_largefile_CC+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00009980 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +00009981else
mlcreech636a9952008-05-05 22:52:56 +00009982 ac_cv_sys_largefile_CC=no
9983 if test "$GCC" != yes; then
9984 ac_save_CC=$CC
9985 while :; do
drh8b727472009-01-19 18:18:40 +00009986 # IRIX 6.2 and later do not support large files by default,
9987 # so use the C compiler's -n32 option if that helps.
dana9f39fd2011-08-12 16:34:42 +00009988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009989/* end confdefs.h. */
9990#include <sys/types.h>
9991 /* Check that off_t can represent 2**63 - 1 correctly.
9992 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9993 since some C++ compilers masquerading as C compilers
9994 incorrectly reject 9223372036854775807. */
9995#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9996 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9997 && LARGE_OFF_T % 2147483647 == 1)
9998 ? 1 : -1];
9999int
10000main ()
10001{
10002
10003 ;
10004 return 0;
10005}
10006_ACEOF
dana9f39fd2011-08-12 16:34:42 +000010007 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010008 break
mlcreech636a9952008-05-05 22:52:56 +000010009fi
drh8b727472009-01-19 18:18:40 +000010010rm -f core conftest.err conftest.$ac_objext
10011 CC="$CC -n32"
dana9f39fd2011-08-12 16:34:42 +000010012 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010013 ac_cv_sys_largefile_CC=' -n32'; break
mlcreech636a9952008-05-05 22:52:56 +000010014fi
drh8b727472009-01-19 18:18:40 +000010015rm -f core conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +000010016 break
10017 done
10018 CC=$ac_save_CC
10019 rm -f conftest.$ac_ext
10020 fi
10021fi
dana9f39fd2011-08-12 16:34:42 +000010022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
drh8b727472009-01-19 18:18:40 +000010023$as_echo "$ac_cv_sys_largefile_CC" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010024 if test "$ac_cv_sys_largefile_CC" != no; then
10025 CC=$CC$ac_cv_sys_largefile_CC
10026 fi
10027
dana9f39fd2011-08-12 16:34:42 +000010028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010029$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
dana9f39fd2011-08-12 16:34:42 +000010030if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010031 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010032else
10033 while :; do
dana9f39fd2011-08-12 16:34:42 +000010034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010035/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010036#include <sys/types.h>
10037 /* Check that off_t can represent 2**63 - 1 correctly.
10038 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10039 since some C++ compilers masquerading as C compilers
10040 incorrectly reject 9223372036854775807. */
10041#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10042 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10043 && LARGE_OFF_T % 2147483647 == 1)
10044 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010045int
10046main ()
10047{
mlcreech636a9952008-05-05 22:52:56 +000010048
mlcreechb87057f2008-03-06 07:19:20 +000010049 ;
10050 return 0;
10051}
10052_ACEOF
dana9f39fd2011-08-12 16:34:42 +000010053if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010054 ac_cv_sys_file_offset_bits=no; break
mlcreech636a9952008-05-05 22:52:56 +000010055fi
drh8b727472009-01-19 18:18:40 +000010056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dana9f39fd2011-08-12 16:34:42 +000010057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010058/* end confdefs.h. */
10059#define _FILE_OFFSET_BITS 64
10060#include <sys/types.h>
10061 /* Check that off_t can represent 2**63 - 1 correctly.
10062 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10063 since some C++ compilers masquerading as C compilers
10064 incorrectly reject 9223372036854775807. */
10065#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10066 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10067 && LARGE_OFF_T % 2147483647 == 1)
10068 ? 1 : -1];
10069int
10070main ()
10071{
10072
10073 ;
10074 return 0;
10075}
10076_ACEOF
dana9f39fd2011-08-12 16:34:42 +000010077if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010078 ac_cv_sys_file_offset_bits=64; break
mlcreech636a9952008-05-05 22:52:56 +000010079fi
drh8b727472009-01-19 18:18:40 +000010080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10081 ac_cv_sys_file_offset_bits=unknown
mlcreech636a9952008-05-05 22:52:56 +000010082 break
10083done
10084fi
dana9f39fd2011-08-12 16:34:42 +000010085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
drh8b727472009-01-19 18:18:40 +000010086$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10087case $ac_cv_sys_file_offset_bits in #(
10088 no | unknown) ;;
10089 *)
mlcreech636a9952008-05-05 22:52:56 +000010090cat >>confdefs.h <<_ACEOF
10091#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10092_ACEOF
drh8b727472009-01-19 18:18:40 +000010093;;
10094esac
10095rm -rf conftest*
10096 if test $ac_cv_sys_file_offset_bits = unknown; then
dana9f39fd2011-08-12 16:34:42 +000010097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010098$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
dana9f39fd2011-08-12 16:34:42 +000010099if test "${ac_cv_sys_large_files+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010100 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010101else
10102 while :; do
dana9f39fd2011-08-12 16:34:42 +000010103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010104/* end confdefs.h. */
10105#include <sys/types.h>
10106 /* Check that off_t can represent 2**63 - 1 correctly.
10107 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10108 since some C++ compilers masquerading as C compilers
10109 incorrectly reject 9223372036854775807. */
10110#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10111 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10112 && LARGE_OFF_T % 2147483647 == 1)
10113 ? 1 : -1];
10114int
10115main ()
10116{
10117
10118 ;
10119 return 0;
10120}
10121_ACEOF
dana9f39fd2011-08-12 16:34:42 +000010122if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010123 ac_cv_sys_large_files=no; break
mlcreech636a9952008-05-05 22:52:56 +000010124fi
drh8b727472009-01-19 18:18:40 +000010125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dana9f39fd2011-08-12 16:34:42 +000010126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010127/* end confdefs.h. */
10128#define _LARGE_FILES 1
10129#include <sys/types.h>
10130 /* Check that off_t can represent 2**63 - 1 correctly.
10131 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10132 since some C++ compilers masquerading as C compilers
10133 incorrectly reject 9223372036854775807. */
10134#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10135 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10136 && LARGE_OFF_T % 2147483647 == 1)
10137 ? 1 : -1];
10138int
10139main ()
10140{
10141
10142 ;
10143 return 0;
10144}
10145_ACEOF
dana9f39fd2011-08-12 16:34:42 +000010146if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010147 ac_cv_sys_large_files=1; break
mlcreech636a9952008-05-05 22:52:56 +000010148fi
drh8b727472009-01-19 18:18:40 +000010149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10150 ac_cv_sys_large_files=unknown
mlcreech636a9952008-05-05 22:52:56 +000010151 break
10152done
10153fi
dana9f39fd2011-08-12 16:34:42 +000010154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
drh8b727472009-01-19 18:18:40 +000010155$as_echo "$ac_cv_sys_large_files" >&6; }
10156case $ac_cv_sys_large_files in #(
10157 no | unknown) ;;
10158 *)
mlcreech636a9952008-05-05 22:52:56 +000010159cat >>confdefs.h <<_ACEOF
10160#define _LARGE_FILES $ac_cv_sys_large_files
10161_ACEOF
drh8b727472009-01-19 18:18:40 +000010162;;
10163esac
10164rm -rf conftest*
10165 fi
mlcreech636a9952008-05-05 22:52:56 +000010166fi
10167
10168
10169#########
10170# Check for needed/wanted data types
dana9f39fd2011-08-12 16:34:42 +000010171ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10172if test "x$ac_cv_type_int8_t" = x""yes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010173
10174cat >>confdefs.h <<_ACEOF
10175#define HAVE_INT8_T 1
10176_ACEOF
10177
10178
10179fi
dana9f39fd2011-08-12 16:34:42 +000010180ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10181if test "x$ac_cv_type_int16_t" = x""yes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010182
10183cat >>confdefs.h <<_ACEOF
10184#define HAVE_INT16_T 1
10185_ACEOF
10186
10187
10188fi
dana9f39fd2011-08-12 16:34:42 +000010189ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10190if test "x$ac_cv_type_int32_t" = x""yes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010191
10192cat >>confdefs.h <<_ACEOF
10193#define HAVE_INT32_T 1
10194_ACEOF
10195
10196
10197fi
dana9f39fd2011-08-12 16:34:42 +000010198ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10199if test "x$ac_cv_type_int64_t" = x""yes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010200
10201cat >>confdefs.h <<_ACEOF
10202#define HAVE_INT64_T 1
10203_ACEOF
10204
10205
10206fi
dana9f39fd2011-08-12 16:34:42 +000010207ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10208if test "x$ac_cv_type_intptr_t" = x""yes; then :
danielk197733a14782008-08-04 14:50:05 +000010209
10210cat >>confdefs.h <<_ACEOF
10211#define HAVE_INTPTR_T 1
10212_ACEOF
10213
10214
10215fi
dana9f39fd2011-08-12 16:34:42 +000010216ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10217if test "x$ac_cv_type_uint8_t" = x""yes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010218
10219cat >>confdefs.h <<_ACEOF
10220#define HAVE_UINT8_T 1
10221_ACEOF
10222
10223
10224fi
dana9f39fd2011-08-12 16:34:42 +000010225ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10226if test "x$ac_cv_type_uint16_t" = x""yes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010227
10228cat >>confdefs.h <<_ACEOF
10229#define HAVE_UINT16_T 1
10230_ACEOF
10231
10232
10233fi
dana9f39fd2011-08-12 16:34:42 +000010234ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10235if test "x$ac_cv_type_uint32_t" = x""yes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010236
10237cat >>confdefs.h <<_ACEOF
10238#define HAVE_UINT32_T 1
10239_ACEOF
10240
10241
10242fi
dana9f39fd2011-08-12 16:34:42 +000010243ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10244if test "x$ac_cv_type_uint64_t" = x""yes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010245
10246cat >>confdefs.h <<_ACEOF
10247#define HAVE_UINT64_T 1
10248_ACEOF
10249
10250
10251fi
dana9f39fd2011-08-12 16:34:42 +000010252ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10253if test "x$ac_cv_type_uintptr_t" = x""yes; then :
danielk197733a14782008-08-04 14:50:05 +000010254
10255cat >>confdefs.h <<_ACEOF
10256#define HAVE_UINTPTR_T 1
10257_ACEOF
10258
10259
10260fi
mlcreechb87057f2008-03-06 07:19:20 +000010261
10262
10263#########
10264# Check for needed/wanted headers
mlcreech8390bc32008-03-06 08:54:38 +000010265for ac_header in sys/types.h stdlib.h stdint.h inttypes.h
dana9f39fd2011-08-12 16:34:42 +000010266do :
10267 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10268ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10269eval as_val=\$$as_ac_Header
10270 if test "x$as_val" = x""yes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010271 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010272#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000010273_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000010274
mlcreechb87057f2008-03-06 07:19:20 +000010275fi
10276
10277done
10278
10279
10280#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000010281# Figure out whether or not we have these functions
10282#
drhdbe4b882011-06-20 18:00:17 +000010283for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s utime
dana9f39fd2011-08-12 16:34:42 +000010284do :
10285 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10286ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10287eval as_val=\$$as_ac_var
10288 if test "x$as_val" = x""yes; then :
mlcreech5b0a9eb2008-03-09 01:38:09 +000010289 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010290#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000010291_ACEOF
10292
10293fi
10294done
10295
10296
mlcreechab1c47b2008-03-09 02:51:10 +000010297#########
mlcreechf3868112008-03-11 18:03:30 +000010298# By default, we use the amalgamation (this may be changed below...)
10299#
10300USE_AMALGAMATION=1
10301
10302#########
mlcreechab1c47b2008-03-09 02:51:10 +000010303# See whether we can run specific tclsh versions known to work well;
10304# if not, then we fall back to plain tclsh.
10305# TODO: try other versions before falling back?
10306#
drhd7ceb372010-07-27 16:42:22 +000010307for ac_prog in tclsh8.5 tclsh
mlcreechab1c47b2008-03-09 02:51:10 +000010308do
10309 # Extract the first word of "$ac_prog", so it can be a program name with args.
10310set dummy $ac_prog; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +000010311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010312$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +000010313if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010314 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010315else
10316 if test -n "$TCLSH_CMD"; then
10317 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10318else
10319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10320for as_dir in $PATH
10321do
10322 IFS=$as_save_IFS
10323 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +000010324 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000010325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreechab1c47b2008-03-09 02:51:10 +000010326 ac_cv_prog_TCLSH_CMD="$ac_prog"
dana9f39fd2011-08-12 16:34:42 +000010327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000010328 break 2
10329 fi
10330done
dana9f39fd2011-08-12 16:34:42 +000010331 done
drh8b727472009-01-19 18:18:40 +000010332IFS=$as_save_IFS
mlcreechab1c47b2008-03-09 02:51:10 +000010333
10334fi
10335fi
10336TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10337if test -n "$TCLSH_CMD"; then
dana9f39fd2011-08-12 16:34:42 +000010338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
drh8b727472009-01-19 18:18:40 +000010339$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010340else
dana9f39fd2011-08-12 16:34:42 +000010341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010342$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010343fi
10344
drh8b727472009-01-19 18:18:40 +000010345
mlcreechab1c47b2008-03-09 02:51:10 +000010346 test -n "$TCLSH_CMD" && break
10347done
mlcreechf3868112008-03-11 18:03:30 +000010348test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000010349
mlcreechf3868112008-03-11 18:03:30 +000010350if test "$TCLSH_CMD" = "none"; then
10351 # If we can't find a local tclsh, then building the amalgamation will fail.
10352 # We act as though --disable-amalgamation has been used.
10353 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10354 USE_AMALGAMATION=0
10355 TCLSH_CMD="tclsh"
10356fi
mlcreechab1c47b2008-03-09 02:51:10 +000010357
10358
mlcreech5b0a9eb2008-03-09 01:38:09 +000010359
vapier6acb2cf2009-01-28 04:46:28 +000010360if test "x${TCLLIBDIR+set}" != "xset" ; then
10361 TCLLIBDIR='$(libdir)'
10362 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10363 TCLLIBDIR=$i
10364 break
10365 done
10366 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10367fi
10368
10369
mlcreech5b0a9eb2008-03-09 01:38:09 +000010370#########
drh75897232000-05-29 14:26:00 +000010371# Set up an appropriate program prefix
10372#
10373if test "$program_prefix" = "NONE"; then
10374 program_prefix=""
10375fi
10376
a.rottmann84e63352003-03-24 09:42:16 +000010377
drh4b2266a2004-11-27 15:52:16 +000010378VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
dana9f39fd2011-08-12 16:34:42 +000010379{ $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010380$as_echo "$as_me: Version set to $VERSION" >&6;}
drh4b2266a2004-11-27 15:52:16 +000010381
10382RELEASE=`cat $srcdir/VERSION`
dana9f39fd2011-08-12 16:34:42 +000010383{ $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010384$as_echo "$as_me: Release set to $RELEASE" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010385
vapier6acb2cf2009-01-28 04:46:28 +000010386VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000010387 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000010388 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
dana9f39fd2011-08-12 16:34:42 +000010389{ $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010390$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010391
drh26d0e2a2005-07-06 13:51:27 +000010392
drh75897232000-05-29 14:26:00 +000010393#########
10394# Check to see if the --with-hints=FILE option is used. If there is none,
10395# then check for a files named "$host.hints" and ../$hosts.hints where
10396# $host is the hostname of the build system. If still no hints are
10397# found, try looking in $system.hints and ../$system.hints where
10398# $system is the result of uname -s.
10399#
drh71eb93e2001-09-28 01:34:43 +000010400
drh8b727472009-01-19 18:18:40 +000010401# Check whether --with-hints was given.
dana9f39fd2011-08-12 16:34:42 +000010402if test "${with_hints+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010403 withval=$with_hints; hints=$withval
10404fi
10405
drh75897232000-05-29 14:26:00 +000010406if test "$hints" = ""; then
10407 host=`hostname | sed 's/\..*//'`
10408 if test -r $host.hints; then
10409 hints=$host.hints
10410 else
10411 if test -r ../$host.hints; then
10412 hints=../$host.hints
10413 fi
10414 fi
10415fi
10416if test "$hints" = ""; then
10417 sys=`uname -s`
10418 if test -r $sys.hints; then
10419 hints=$sys.hints
10420 else
10421 if test -r ../$sys.hints; then
10422 hints=../$sys.hints
10423 fi
10424 fi
10425fi
10426if test "$hints" != ""; then
dana9f39fd2011-08-12 16:34:42 +000010427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: reading hints from $hints" >&5
drh8b727472009-01-19 18:18:40 +000010428$as_echo "reading hints from $hints" >&6; }
drh75897232000-05-29 14:26:00 +000010429 . $hints
10430fi
10431
10432#########
10433# Locate a compiler for the build machine. This compiler should
10434# generate command-line programs that run on the build machine.
10435#
vapier7f19c022007-02-17 14:46:31 +000010436if test x"$cross_compiling" = xno; then
10437 BUILD_CC=$CC
10438 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000010439else
vapier7f19c022007-02-17 14:46:31 +000010440 if test "${BUILD_CC+set}" != set; then
10441 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000010442do
10443 # Extract the first word of "$ac_prog", so it can be a program name with args.
10444set dummy $ac_prog; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +000010445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010446$as_echo_n "checking for $ac_word... " >&6; }
dana9f39fd2011-08-12 16:34:42 +000010447if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010448 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010449else
vapier7f19c022007-02-17 14:46:31 +000010450 if test -n "$BUILD_CC"; then
10451 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000010452else
a.rottmann84e63352003-03-24 09:42:16 +000010453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10454for as_dir in $PATH
10455do
10456 IFS=$as_save_IFS
10457 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +000010458 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000010459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
vapier7f19c022007-02-17 14:46:31 +000010460 ac_cv_prog_BUILD_CC="$ac_prog"
dana9f39fd2011-08-12 16:34:42 +000010461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000010462 break 2
10463 fi
10464done
dana9f39fd2011-08-12 16:34:42 +000010465 done
drh8b727472009-01-19 18:18:40 +000010466IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000010467
drh71eb93e2001-09-28 01:34:43 +000010468fi
10469fi
vapier7f19c022007-02-17 14:46:31 +000010470BUILD_CC=$ac_cv_prog_BUILD_CC
10471if test -n "$BUILD_CC"; then
dana9f39fd2011-08-12 16:34:42 +000010472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
drh8b727472009-01-19 18:18:40 +000010473$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010474else
dana9f39fd2011-08-12 16:34:42 +000010475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010476$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010477fi
drh75897232000-05-29 14:26:00 +000010478
drh8b727472009-01-19 18:18:40 +000010479
vapier7f19c022007-02-17 14:46:31 +000010480 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000010481done
drh75897232000-05-29 14:26:00 +000010482
vapier7f19c022007-02-17 14:46:31 +000010483 fi
10484 if test "${BUILD_CFLAGS+set}" != set; then
10485 BUILD_CFLAGS="-g"
10486 fi
drh71eb93e2001-09-28 01:34:43 +000010487fi
10488
a.rottmann84e63352003-03-24 09:42:16 +000010489
drh297ecf12001-04-05 15:57:13 +000010490##########
dougcurrie0f290bf2004-06-21 18:57:29 +000010491# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000010492#
drh8b727472009-01-19 18:18:40 +000010493# Check whether --enable-threadsafe was given.
dana9f39fd2011-08-12 16:34:42 +000010494if test "${enable_threadsafe+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010495 enableval=$enable_threadsafe;
drh297ecf12001-04-05 15:57:13 +000010496else
drh5a3032b2007-09-03 16:12:09 +000010497 enable_threadsafe=yes
drh8b727472009-01-19 18:18:40 +000010498fi
10499
dana9f39fd2011-08-12 16:34:42 +000010500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
drh8b727472009-01-19 18:18:40 +000010501$as_echo_n "checking whether to support threadsafe operation... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010502if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000010503 SQLITE_THREADSAFE=0
dana9f39fd2011-08-12 16:34:42 +000010504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010505$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010506else
drh5a3032b2007-09-03 16:12:09 +000010507 SQLITE_THREADSAFE=1
dana9f39fd2011-08-12 16:34:42 +000010508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010509$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010510fi
10511
a.rottmann964dbb12004-02-26 19:47:42 +000010512
drh5a3032b2007-09-03 16:12:09 +000010513if test "$SQLITE_THREADSAFE" = "1"; then
dana9f39fd2011-08-12 16:34:42 +000010514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
drh8b727472009-01-19 18:18:40 +000010515$as_echo_n "checking for library containing pthread_create... " >&6; }
dana9f39fd2011-08-12 16:34:42 +000010516if test "${ac_cv_search_pthread_create+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010517 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000010518else
mlcreechc658b0f2008-03-09 02:20:11 +000010519 ac_func_search_save_LIBS=$LIBS
dana9f39fd2011-08-12 16:34:42 +000010520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dougcurrie65623c72004-09-20 14:57:23 +000010521/* end confdefs.h. */
10522
drh8b727472009-01-19 18:18:40 +000010523/* Override any GCC internal prototype to avoid an error.
10524 Use char because int might match the return type of a GCC
10525 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000010526#ifdef __cplusplus
10527extern "C"
10528#endif
dougcurrie65623c72004-09-20 14:57:23 +000010529char pthread_create ();
10530int
10531main ()
10532{
drh8b727472009-01-19 18:18:40 +000010533return pthread_create ();
dougcurrie65623c72004-09-20 14:57:23 +000010534 ;
10535 return 0;
10536}
10537_ACEOF
drh8b727472009-01-19 18:18:40 +000010538for ac_lib in '' pthread; do
10539 if test -z "$ac_lib"; then
10540 ac_res="none required"
10541 else
10542 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000010543 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000010544 fi
dana9f39fd2011-08-12 16:34:42 +000010545 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010546 ac_cv_search_pthread_create=$ac_res
mlcreechc658b0f2008-03-09 02:20:11 +000010547fi
dana9f39fd2011-08-12 16:34:42 +000010548rm -f core conftest.err conftest.$ac_objext \
10549 conftest$ac_exeext
10550 if test "${ac_cv_search_pthread_create+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010551 break
drh866108f2008-05-13 00:57:21 +000010552fi
drh8b727472009-01-19 18:18:40 +000010553done
dana9f39fd2011-08-12 16:34:42 +000010554if test "${ac_cv_search_pthread_create+set}" = set; then :
10555
drh8b727472009-01-19 18:18:40 +000010556else
10557 ac_cv_search_pthread_create=no
10558fi
10559rm conftest.$ac_ext
mlcreechc658b0f2008-03-09 02:20:11 +000010560LIBS=$ac_func_search_save_LIBS
10561fi
dana9f39fd2011-08-12 16:34:42 +000010562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
drh8b727472009-01-19 18:18:40 +000010563$as_echo "$ac_cv_search_pthread_create" >&6; }
10564ac_res=$ac_cv_search_pthread_create
dana9f39fd2011-08-12 16:34:42 +000010565if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000010566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000010567
dougcurrie65623c72004-09-20 14:57:23 +000010568fi
10569
mlcreechc658b0f2008-03-09 02:20:11 +000010570fi
dougcurrie65623c72004-09-20 14:57:23 +000010571
xdong28f79f72003-09-23 00:35:21 +000010572##########
drh91636d52005-11-24 23:14:00 +000010573# Do we want to allow a connection created in one thread to be used
10574# in another thread. This does not work on many Linux systems (ex: RedHat 9)
10575# due to bugs in the threading implementations. This is thus off by default.
10576#
drh8b727472009-01-19 18:18:40 +000010577# Check whether --enable-cross-thread-connections was given.
dana9f39fd2011-08-12 16:34:42 +000010578if test "${enable_cross_thread_connections+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010579 enableval=$enable_cross_thread_connections;
drh91636d52005-11-24 23:14:00 +000010580else
10581 enable_xthreadconnect=no
drh8b727472009-01-19 18:18:40 +000010582fi
10583
dana9f39fd2011-08-12 16:34:42 +000010584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allow connections to be shared across threads" >&5
drh8b727472009-01-19 18:18:40 +000010585$as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
drh91636d52005-11-24 23:14:00 +000010586if test "$enable_xthreadconnect" = "no"; then
10587 XTHREADCONNECT=''
dana9f39fd2011-08-12 16:34:42 +000010588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010589$as_echo "no" >&6; }
drh91636d52005-11-24 23:14:00 +000010590else
10591 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
dana9f39fd2011-08-12 16:34:42 +000010592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010593$as_echo "yes" >&6; }
drh91636d52005-11-24 23:14:00 +000010594fi
10595
10596
10597##########
xdong28f79f72003-09-23 00:35:21 +000010598# Do we want to support release
10599#
drh8b727472009-01-19 18:18:40 +000010600# Check whether --enable-releasemode was given.
dana9f39fd2011-08-12 16:34:42 +000010601if test "${enable_releasemode+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010602 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000010603else
10604 enable_releasemode=no
drh8b727472009-01-19 18:18:40 +000010605fi
10606
dana9f39fd2011-08-12 16:34:42 +000010607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
drh8b727472009-01-19 18:18:40 +000010608$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
xdong28f79f72003-09-23 00:35:21 +000010609if test "$enable_releasemode" = "no"; then
10610 ALLOWRELEASE=""
dana9f39fd2011-08-12 16:34:42 +000010611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010612$as_echo "no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010613else
drh0b47d342007-11-27 14:50:06 +000010614 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
dana9f39fd2011-08-12 16:34:42 +000010615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010616$as_echo "yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010617fi
paulb0208cc2003-04-13 18:26:49 +000010618
a.rottmann964dbb12004-02-26 19:47:42 +000010619
paulb0208cc2003-04-13 18:26:49 +000010620##########
10621# Do we want temporary databases in memory
10622#
drh8b727472009-01-19 18:18:40 +000010623# Check whether --enable-tempstore was given.
dana9f39fd2011-08-12 16:34:42 +000010624if test "${enable_tempstore+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010625 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000010626else
drh54414bb2005-10-10 00:05:50 +000010627 enable_tempstore=no
drh8b727472009-01-19 18:18:40 +000010628fi
10629
dana9f39fd2011-08-12 16:34:42 +000010630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
drh8b727472009-01-19 18:18:40 +000010631$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010632case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000010633 never )
paul2dc96f92003-04-20 11:46:34 +000010634 TEMP_STORE=0
dana9f39fd2011-08-12 16:34:42 +000010635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
drh8b727472009-01-19 18:18:40 +000010636$as_echo "never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010637 ;;
10638 no )
paul2dc96f92003-04-20 11:46:34 +000010639 TEMP_STORE=1
dana9f39fd2011-08-12 16:34:42 +000010640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010641$as_echo "no" >&6; }
10642 ;;
10643 yes )
10644 TEMP_STORE=2
dana9f39fd2011-08-12 16:34:42 +000010645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010646$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010647 ;;
10648 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000010649 TEMP_STORE=3
dana9f39fd2011-08-12 16:34:42 +000010650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
drh8b727472009-01-19 18:18:40 +000010651$as_echo "always" >&6; }
drh54414bb2005-10-10 00:05:50 +000010652 ;;
paulb0208cc2003-04-13 18:26:49 +000010653 * )
drh54414bb2005-10-10 00:05:50 +000010654 TEMP_STORE=1
dana9f39fd2011-08-12 16:34:42 +000010655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010656$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010657 ;;
10658esac
10659
10660
10661
drh75897232000-05-29 14:26:00 +000010662###########
10663# Lots of things are different if we are compiling for Windows using
10664# the CYGWIN environment. So check for that special case and handle
10665# things accordingly.
10666#
dana9f39fd2011-08-12 16:34:42 +000010667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
drh8b727472009-01-19 18:18:40 +000010668$as_echo_n "checking if executables have the .exe suffix... " >&6; }
drh75897232000-05-29 14:26:00 +000010669if test "$config_BUILD_EXEEXT" = ".exe"; then
10670 CYGWIN=yes
dana9f39fd2011-08-12 16:34:42 +000010671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010672$as_echo "yes" >&6; }
drh75897232000-05-29 14:26:00 +000010673else
dana9f39fd2011-08-12 16:34:42 +000010674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
drh8b727472009-01-19 18:18:40 +000010675$as_echo "unknown" >&6; }
drh75897232000-05-29 14:26:00 +000010676fi
10677if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000010678
10679case $host_os in
drh71eb93e2001-09-28 01:34:43 +000010680 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000010681 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000010682esac
drh75897232000-05-29 14:26:00 +000010683
drh75897232000-05-29 14:26:00 +000010684fi
10685if test "$CYGWIN" = "yes"; then
10686 BUILD_EXEEXT=.exe
10687else
dougcurrie6194a5f2003-12-19 20:09:51 +000010688 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000010689fi
vapier7f19c022007-02-17 14:46:31 +000010690if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000010691 TARGET_EXEEXT=$BUILD_EXEEXT
10692else
10693 TARGET_EXEEXT=$config_TARGET_EXEEXT
10694fi
10695if test "$TARGET_EXEEXT" = ".exe"; then
drh60a1e4b2006-06-03 18:02:15 +000010696 if test $OS2_SHELL ; then
danielk197729bafea2008-06-26 10:41:19 +000010697 SQLITE_OS_UNIX=0
10698 SQLITE_OS_WIN=0
10699 SQLITE_OS_OS2=1
10700 CFLAGS="$CFLAGS -DSQLITE_OS_OS2=1"
drh60a1e4b2006-06-03 18:02:15 +000010701 else
danielk197729bafea2008-06-26 10:41:19 +000010702 SQLITE_OS_UNIX=0
10703 SQLITE_OS_WIN=1
10704 SQLITE_OS_OS2=0
danielk197729bafea2008-06-26 10:41:19 +000010705 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh60a1e4b2006-06-03 18:02:15 +000010706 fi
drh75897232000-05-29 14:26:00 +000010707else
danielk197729bafea2008-06-26 10:41:19 +000010708 SQLITE_OS_UNIX=1
10709 SQLITE_OS_WIN=0
10710 SQLITE_OS_OS2=0
danielk197729bafea2008-06-26 10:41:19 +000010711 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000010712fi
drh75897232000-05-29 14:26:00 +000010713
a.rottmann84e63352003-03-24 09:42:16 +000010714
10715
10716
10717
10718
drh75897232000-05-29 14:26:00 +000010719
drh75897232000-05-29 14:26:00 +000010720##########
drh7b5717e2004-11-25 13:50:01 +000010721# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000010722#
drh7b5717e2004-11-25 13:50:01 +000010723# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10724# macros in the in the tcl.m4 file of the standard TCL distribution.
10725# Those macros could not be used directly since we have to make some
10726# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000010727#
drh8b727472009-01-19 18:18:40 +000010728# Check whether --enable-tcl was given.
dana9f39fd2011-08-12 16:34:42 +000010729if test "${enable_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010730 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000010731else
drh7b5717e2004-11-25 13:50:01 +000010732 use_tcl=yes
drh8b727472009-01-19 18:18:40 +000010733fi
10734
drh7b5717e2004-11-25 13:50:01 +000010735if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000010736
drh8b727472009-01-19 18:18:40 +000010737# Check whether --with-tcl was given.
dana9f39fd2011-08-12 16:34:42 +000010738if test "${with_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010739 withval=$with_tcl; with_tclconfig=${withval}
10740fi
10741
dana9f39fd2011-08-12 16:34:42 +000010742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
drh8b727472009-01-19 18:18:40 +000010743$as_echo_n "checking for Tcl configuration... " >&6; }
dana9f39fd2011-08-12 16:34:42 +000010744 if test "${ac_cv_c_tclconfig+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010745 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000010746else
a.rottmann84e63352003-03-24 09:42:16 +000010747
drh7b5717e2004-11-25 13:50:01 +000010748 # First check to see if --with-tcl was specified.
10749 if test x"${with_tclconfig}" != x ; then
10750 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10751 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10752 else
dana9f39fd2011-08-12 16:34:42 +000010753 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
drh7b5717e2004-11-25 13:50:01 +000010754 fi
10755 fi
vapier6acb2cf2009-01-28 04:46:28 +000010756
10757 # Start autosearch by asking tclsh
10758 if test x"$cross_compiling" = xno; then
10759 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10760 do
10761 if test -f "$i/tclConfig.sh" ; then
10762 ac_cv_c_tclconfig="$i"
10763 break
10764 fi
10765 done
10766 fi
10767
drh7b5717e2004-11-25 13:50:01 +000010768 # then check for a private Tcl installation
10769 if test x"${ac_cv_c_tclconfig}" = x ; then
10770 for i in \
10771 ../tcl \
10772 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10773 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10774 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10775 ../../tcl \
10776 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10777 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10778 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10779 ../../../tcl \
10780 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10781 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10782 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10783 do
10784 if test -f "$i/unix/tclConfig.sh" ; then
10785 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10786 break
10787 fi
10788 done
10789 fi
10790
10791 # check in a few common install locations
10792 if test x"${ac_cv_c_tclconfig}" = x ; then
10793 for i in \
10794 `ls -d ${libdir} 2>/dev/null` \
10795 `ls -d /usr/local/lib 2>/dev/null` \
10796 `ls -d /usr/contrib/lib 2>/dev/null` \
10797 `ls -d /usr/lib 2>/dev/null`
10798 do
10799 if test -f "$i/tclConfig.sh" ; then
10800 ac_cv_c_tclconfig=`(cd $i; pwd)`
10801 break
10802 fi
10803 done
10804 fi
10805
10806 # check in a few other private locations
10807 if test x"${ac_cv_c_tclconfig}" = x ; then
10808 for i in \
10809 ${srcdir}/../tcl \
10810 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10811 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10812 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10813 do
10814 if test -f "$i/unix/tclConfig.sh" ; then
10815 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10816 break
10817 fi
10818 done
10819 fi
10820
drh75897232000-05-29 14:26:00 +000010821fi
10822
drh7b5717e2004-11-25 13:50:01 +000010823
10824 if test x"${ac_cv_c_tclconfig}" = x ; then
10825 use_tcl=no
dana9f39fd2011-08-12 16:34:42 +000010826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
drh8b727472009-01-19 18:18:40 +000010827$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
dana9f39fd2011-08-12 16:34:42 +000010828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
drh8b727472009-01-19 18:18:40 +000010829$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
dana9f39fd2011-08-12 16:34:42 +000010830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
drh8b727472009-01-19 18:18:40 +000010831$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000010832 else
10833 TCL_BIN_DIR=${ac_cv_c_tclconfig}
dana9f39fd2011-08-12 16:34:42 +000010834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010835$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010836
dana9f39fd2011-08-12 16:34:42 +000010837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010838$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000010839 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
dana9f39fd2011-08-12 16:34:42 +000010840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
drh8b727472009-01-19 18:18:40 +000010841$as_echo "loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010842 . $TCL_BIN_DIR/tclConfig.sh
10843 else
dana9f39fd2011-08-12 16:34:42 +000010844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
drh8b727472009-01-19 18:18:40 +000010845$as_echo "file not found" >&6; }
drh75897232000-05-29 14:26:00 +000010846 fi
drh7b5717e2004-11-25 13:50:01 +000010847
10848 #
10849 # If the TCL_BIN_DIR is the build directory (not the install directory),
10850 # then set the common variable name to the value of the build variables.
10851 # For example, the variable TCL_LIB_SPEC will be set to the value
10852 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10853 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10854 # installed and uninstalled version of Tcl.
10855 #
10856
mlcreechab1c47b2008-03-09 02:51:10 +000010857 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000010858 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10859 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10860 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10861 fi
10862
10863 #
10864 # eval is required to do the TCL_DBGX substitution
10865 #
10866
10867 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10868 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10869 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10870
10871 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10872 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10873 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888 fi
drh75897232000-05-29 14:26:00 +000010889fi
drh7b5717e2004-11-25 13:50:01 +000010890if test "${use_tcl}" = "no" ; then
10891 HAVE_TCL=""
10892else
10893 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000010894fi
drh75897232000-05-29 14:26:00 +000010895
a.rottmann84e63352003-03-24 09:42:16 +000010896
drh75897232000-05-29 14:26:00 +000010897##########
10898# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000010899# that use "readline()" library.
10900#
vapier7f19c022007-02-17 14:46:31 +000010901TARGET_READLINE_LIBS=""
10902TARGET_READLINE_INC=""
10903TARGET_HAVE_READLINE=0
drh8b727472009-01-19 18:18:40 +000010904# Check whether --enable-readline was given.
dana9f39fd2011-08-12 16:34:42 +000010905if test "${enable_readline+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010906 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000010907else
vapier7f19c022007-02-17 14:46:31 +000010908 with_readline=auto
drh8b727472009-01-19 18:18:40 +000010909fi
10910
vapier7f19c022007-02-17 14:46:31 +000010911
10912if test x"$with_readline" != xno; then
10913 found="yes"
10914
10915
drh8b727472009-01-19 18:18:40 +000010916# Check whether --with-readline-lib was given.
dana9f39fd2011-08-12 16:34:42 +000010917if test "${with_readline_lib+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010918 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000010919else
10920 with_readline_lib="auto"
drh8b727472009-01-19 18:18:40 +000010921fi
10922
vapier7f19c022007-02-17 14:46:31 +000010923 if test "x$with_readline_lib" = xauto; then
10924 save_LIBS="$LIBS"
10925 LIBS=""
dana9f39fd2011-08-12 16:34:42 +000010926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
drh8b727472009-01-19 18:18:40 +000010927$as_echo_n "checking for library containing tgetent... " >&6; }
dana9f39fd2011-08-12 16:34:42 +000010928if test "${ac_cv_search_tgetent+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010929 $as_echo_n "(cached) " >&6
drh75897232000-05-29 14:26:00 +000010930else
drh71eb93e2001-09-28 01:34:43 +000010931 ac_func_search_save_LIBS=$LIBS
dana9f39fd2011-08-12 16:34:42 +000010932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000010933/* end confdefs.h. */
10934
drh8b727472009-01-19 18:18:40 +000010935/* Override any GCC internal prototype to avoid an error.
10936 Use char because int might match the return type of a GCC
10937 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000010938#ifdef __cplusplus
10939extern "C"
10940#endif
paul38372372003-04-22 08:04:49 +000010941char tgetent ();
10942int
10943main ()
10944{
drh8b727472009-01-19 18:18:40 +000010945return tgetent ();
paul38372372003-04-22 08:04:49 +000010946 ;
10947 return 0;
10948}
10949_ACEOF
drh8b727472009-01-19 18:18:40 +000010950for ac_lib in '' readline ncurses curses termcap; do
10951 if test -z "$ac_lib"; then
10952 ac_res="none required"
10953 else
10954 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000010955 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000010956 fi
dana9f39fd2011-08-12 16:34:42 +000010957 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010958 ac_cv_search_tgetent=$ac_res
mlcreech94984912008-03-04 19:03:08 +000010959fi
dana9f39fd2011-08-12 16:34:42 +000010960rm -f core conftest.err conftest.$ac_objext \
10961 conftest$ac_exeext
10962 if test "${ac_cv_search_tgetent+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010963 break
drh866108f2008-05-13 00:57:21 +000010964fi
drh8b727472009-01-19 18:18:40 +000010965done
dana9f39fd2011-08-12 16:34:42 +000010966if test "${ac_cv_search_tgetent+set}" = set; then :
10967
drh8b727472009-01-19 18:18:40 +000010968else
10969 ac_cv_search_tgetent=no
10970fi
10971rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000010972LIBS=$ac_func_search_save_LIBS
10973fi
dana9f39fd2011-08-12 16:34:42 +000010974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
drh8b727472009-01-19 18:18:40 +000010975$as_echo "$ac_cv_search_tgetent" >&6; }
10976ac_res=$ac_cv_search_tgetent
dana9f39fd2011-08-12 16:34:42 +000010977if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000010978 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000010979 term_LIBS="$LIBS"
10980else
10981 term_LIBS=""
paul38372372003-04-22 08:04:49 +000010982fi
10983
dana9f39fd2011-08-12 16:34:42 +000010984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
drh8b727472009-01-19 18:18:40 +000010985$as_echo_n "checking for readline in -lreadline... " >&6; }
dana9f39fd2011-08-12 16:34:42 +000010986if test "${ac_cv_lib_readline_readline+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010987 $as_echo_n "(cached) " >&6
paul38372372003-04-22 08:04:49 +000010988else
10989 ac_check_lib_save_LIBS=$LIBS
10990LIBS="-lreadline $LIBS"
dana9f39fd2011-08-12 16:34:42 +000010991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000010992/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000010993
drh8b727472009-01-19 18:18:40 +000010994/* Override any GCC internal prototype to avoid an error.
10995 Use char because int might match the return type of a GCC
10996 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000010997#ifdef __cplusplus
10998extern "C"
10999#endif
drh71eb93e2001-09-28 01:34:43 +000011000char readline ();
11001int
11002main ()
11003{
drh8b727472009-01-19 18:18:40 +000011004return readline ();
drh71eb93e2001-09-28 01:34:43 +000011005 ;
11006 return 0;
11007}
11008_ACEOF
dana9f39fd2011-08-12 16:34:42 +000011009if ac_fn_c_try_link "$LINENO"; then :
paul38372372003-04-22 08:04:49 +000011010 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000011011else
dana9f39fd2011-08-12 16:34:42 +000011012 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000011013fi
dana9f39fd2011-08-12 16:34:42 +000011014rm -f core conftest.err conftest.$ac_objext \
11015 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011016LIBS=$ac_check_lib_save_LIBS
11017fi
dana9f39fd2011-08-12 16:34:42 +000011018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
drh8b727472009-01-19 18:18:40 +000011019$as_echo "$ac_cv_lib_readline_readline" >&6; }
dana9f39fd2011-08-12 16:34:42 +000011020if test "x$ac_cv_lib_readline_readline" = x""yes; then :
vapier7f19c022007-02-17 14:46:31 +000011021 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000011022else
vapier7f19c022007-02-17 14:46:31 +000011023 found="no"
11024fi
drhf1878b42006-01-23 18:06:52 +000011025
vapier7f19c022007-02-17 14:46:31 +000011026 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11027 LIBS="$save_LIBS"
11028 else
11029 TARGET_READLINE_LIBS="$with_readline_lib"
11030 fi
11031
11032
drh8b727472009-01-19 18:18:40 +000011033# Check whether --with-readline-inc was given.
dana9f39fd2011-08-12 16:34:42 +000011034if test "${with_readline_inc+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011035 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000011036else
vapier7f19c022007-02-17 14:46:31 +000011037 with_readline_inc="auto"
drh8b727472009-01-19 18:18:40 +000011038fi
11039
vapier7f19c022007-02-17 14:46:31 +000011040 if test "x$with_readline_inc" = xauto; then
dana9f39fd2011-08-12 16:34:42 +000011041 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11042if test "x$ac_cv_header_readline_h" = x""yes; then :
vapier7f19c022007-02-17 14:46:31 +000011043 found="yes"
11044else
drh75897232000-05-29 14:26:00 +000011045
vapier7f19c022007-02-17 14:46:31 +000011046 found="no"
11047 if test "$cross_compiling" != yes; then
11048 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11049 for subdir in include include/readline; do
drh8b727472009-01-19 18:18:40 +000011050 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
dana9f39fd2011-08-12 16:34:42 +000011051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
drh8b727472009-01-19 18:18:40 +000011052$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
dana9f39fd2011-08-12 16:34:42 +000011053if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
drh8b727472009-01-19 18:18:40 +000011054 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011055else
11056 test "$cross_compiling" = yes &&
dana9f39fd2011-08-12 16:34:42 +000011057 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
vapier7f19c022007-02-17 14:46:31 +000011058if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000011059 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000011060else
drh71eb93e2001-09-28 01:34:43 +000011061 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000011062fi
11063fi
dana9f39fd2011-08-12 16:34:42 +000011064eval ac_res=\$$as_ac_File
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
drh8b727472009-01-19 18:18:40 +000011066$as_echo "$ac_res" >&6; }
dana9f39fd2011-08-12 16:34:42 +000011067eval as_val=\$$as_ac_File
11068 if test "x$as_val" = x""yes; then :
drh75897232000-05-29 14:26:00 +000011069 found=yes
drh75897232000-05-29 14:26:00 +000011070fi
11071
vapier7f19c022007-02-17 14:46:31 +000011072 if test "$found" = "yes"; then
11073 TARGET_READLINE_INC="-I$dir/$subdir"
11074 break
11075 fi
11076 done
11077 test "$found" = "yes" && break
11078 done
11079 fi
11080
11081fi
11082
11083
11084 else
11085 TARGET_READLINE_INC="$with_readline_inc"
11086 fi
11087
11088 if test x"$found" = xno; then
11089 TARGET_READLINE_LIBS=""
11090 TARGET_READLINE_INC=""
11091 TARGET_HAVE_READLINE=0
11092 else
11093 TARGET_HAVE_READLINE=1
11094 fi
11095fi
11096
11097
11098
11099
11100
11101##########
11102# Figure out what C libraries are required to compile programs
11103# that use "fdatasync()" function.
11104#
dana9f39fd2011-08-12 16:34:42 +000011105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011106$as_echo_n "checking for library containing fdatasync... " >&6; }
dana9f39fd2011-08-12 16:34:42 +000011107if test "${ac_cv_search_fdatasync+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011108 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011109else
vapier7f19c022007-02-17 14:46:31 +000011110 ac_func_search_save_LIBS=$LIBS
dana9f39fd2011-08-12 16:34:42 +000011111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011112/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011113
drh8b727472009-01-19 18:18:40 +000011114/* Override any GCC internal prototype to avoid an error.
11115 Use char because int might match the return type of a GCC
11116 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000011117#ifdef __cplusplus
11118extern "C"
11119#endif
11120char fdatasync ();
11121int
11122main ()
11123{
drh8b727472009-01-19 18:18:40 +000011124return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000011125 ;
11126 return 0;
11127}
11128_ACEOF
drh8b727472009-01-19 18:18:40 +000011129for ac_lib in '' rt; do
11130 if test -z "$ac_lib"; then
11131 ac_res="none required"
11132 else
11133 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011134 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011135 fi
dana9f39fd2011-08-12 16:34:42 +000011136 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011137 ac_cv_search_fdatasync=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011138fi
dana9f39fd2011-08-12 16:34:42 +000011139rm -f core conftest.err conftest.$ac_objext \
11140 conftest$ac_exeext
11141 if test "${ac_cv_search_fdatasync+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011142 break
drh866108f2008-05-13 00:57:21 +000011143fi
drh8b727472009-01-19 18:18:40 +000011144done
dana9f39fd2011-08-12 16:34:42 +000011145if test "${ac_cv_search_fdatasync+set}" = set; then :
11146
drh8b727472009-01-19 18:18:40 +000011147else
11148 ac_cv_search_fdatasync=no
11149fi
11150rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011151LIBS=$ac_func_search_save_LIBS
11152fi
dana9f39fd2011-08-12 16:34:42 +000011153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011154$as_echo "$ac_cv_search_fdatasync" >&6; }
11155ac_res=$ac_cv_search_fdatasync
dana9f39fd2011-08-12 16:34:42 +000011156if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011157 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000011158
vapier7f19c022007-02-17 14:46:31 +000011159fi
11160
a.rottmann84e63352003-03-24 09:42:16 +000011161
drh75897232000-05-29 14:26:00 +000011162#########
tpoindex9d9f76c2005-01-03 21:28:56 +000011163# check for debug enabled
drh8b727472009-01-19 18:18:40 +000011164# Check whether --enable-debug was given.
dana9f39fd2011-08-12 16:34:42 +000011165if test "${enable_debug+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011166 enableval=$enable_debug; use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000011167else
11168 use_debug=no
drh8b727472009-01-19 18:18:40 +000011169fi
11170
tpoindex9d9f76c2005-01-03 21:28:56 +000011171if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000011172 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000011173else
11174 TARGET_DEBUG="-DNDEBUG"
11175fi
11176
11177
11178#########
mlcreech94984912008-03-04 19:03:08 +000011179# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000011180# Check whether --enable-amalgamation was given.
dana9f39fd2011-08-12 16:34:42 +000011181if test "${enable_amalgamation+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011182 enableval=$enable_amalgamation; use_amalgamation=$enableval
mlcreech94984912008-03-04 19:03:08 +000011183else
11184 use_amalgamation=yes
drh8b727472009-01-19 18:18:40 +000011185fi
11186
mlcreechf3868112008-03-11 18:03:30 +000011187if test "${use_amalgamation}" != "yes" ; then
mlcreech94984912008-03-04 19:03:08 +000011188 USE_AMALGAMATION=0
11189fi
11190
11191
11192#########
mlcreecha4edab02008-03-06 04:14:17 +000011193# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000011194# Check whether --enable-load-extension was given.
dana9f39fd2011-08-12 16:34:42 +000011195if test "${enable_load_extension+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011196 enableval=$enable_load_extension; use_loadextension=$enableval
mlcreecha4edab02008-03-06 04:14:17 +000011197else
11198 use_loadextension=no
drh8b727472009-01-19 18:18:40 +000011199fi
11200
mlcreecha4edab02008-03-06 04:14:17 +000011201if test "${use_loadextension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000011202 OPT_FEATURE_FLAGS=""
dana9f39fd2011-08-12 16:34:42 +000011203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011204$as_echo_n "checking for library containing dlopen... " >&6; }
dana9f39fd2011-08-12 16:34:42 +000011205if test "${ac_cv_search_dlopen+set}" = set; then :
drhdbe4b882011-06-20 18:00:17 +000011206 $as_echo_n "(cached) " >&6
11207else
11208 ac_func_search_save_LIBS=$LIBS
dana9f39fd2011-08-12 16:34:42 +000011209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drhdbe4b882011-06-20 18:00:17 +000011210/* end confdefs.h. */
11211
11212/* Override any GCC internal prototype to avoid an error.
11213 Use char because int might match the return type of a GCC
11214 builtin and then its argument prototype would still apply. */
11215#ifdef __cplusplus
11216extern "C"
11217#endif
11218char dlopen ();
11219int
11220main ()
11221{
11222return dlopen ();
11223 ;
11224 return 0;
11225}
11226_ACEOF
11227for ac_lib in '' dl; do
11228 if test -z "$ac_lib"; then
11229 ac_res="none required"
11230 else
11231 ac_res=-l$ac_lib
11232 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11233 fi
dana9f39fd2011-08-12 16:34:42 +000011234 if ac_fn_c_try_link "$LINENO"; then :
drhdbe4b882011-06-20 18:00:17 +000011235 ac_cv_search_dlopen=$ac_res
drhdbe4b882011-06-20 18:00:17 +000011236fi
dana9f39fd2011-08-12 16:34:42 +000011237rm -f core conftest.err conftest.$ac_objext \
11238 conftest$ac_exeext
11239 if test "${ac_cv_search_dlopen+set}" = set; then :
drhdbe4b882011-06-20 18:00:17 +000011240 break
11241fi
11242done
dana9f39fd2011-08-12 16:34:42 +000011243if test "${ac_cv_search_dlopen+set}" = set; then :
11244
drhdbe4b882011-06-20 18:00:17 +000011245else
11246 ac_cv_search_dlopen=no
11247fi
11248rm conftest.$ac_ext
11249LIBS=$ac_func_search_save_LIBS
11250fi
dana9f39fd2011-08-12 16:34:42 +000011251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011252$as_echo "$ac_cv_search_dlopen" >&6; }
11253ac_res=$ac_cv_search_dlopen
dana9f39fd2011-08-12 16:34:42 +000011254if test "$ac_res" != no; then :
drhdbe4b882011-06-20 18:00:17 +000011255 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11256
11257fi
11258
mlcreecha4edab02008-03-06 04:14:17 +000011259else
shanefbedede2008-07-22 05:05:01 +000011260 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000011261fi
11262
mlcreechaac7b932008-04-01 02:45:22 +000011263#########
shaneb1cd7302008-10-22 18:27:31 +000011264# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011265for option in $CFLAGS $CPPFLAGS
11266do
11267 case $option in
danielk197733a14782008-08-04 14:50:05 +000011268 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000011269 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011270 esac
11271done
11272
11273
danielk197733a14782008-08-04 14:50:05 +000011274
shaneb1cd7302008-10-22 18:27:31 +000011275# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011276ac_temp_CFLAGS=""
11277for option in $CFLAGS
11278do
11279 case $option in
11280 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011281 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011282 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011283 esac
11284done
11285CFLAGS=$ac_temp_CFLAGS
11286
11287
shaneb1cd7302008-10-22 18:27:31 +000011288# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011289ac_temp_CPPFLAGS=""
11290for option in $CPPFLAGS
11291do
11292 case $option in
11293 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011294 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011295 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011296 esac
11297done
11298CPPFLAGS=$ac_temp_CPPFLAGS
11299
danielk197733a14782008-08-04 14:50:05 +000011300
drh8b727472009-01-19 18:18:40 +000011301# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011302ac_temp_BUILD_CFLAGS=""
11303for option in $BUILD_CFLAGS
11304do
11305 case $option in
11306 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011307 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011308 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011309 esac
11310done
11311BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11312
11313
11314#########
11315# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000011316# Check whether --enable-gcov was given.
dana9f39fd2011-08-12 16:34:42 +000011317if test "${enable_gcov+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011318 enableval=$enable_gcov; use_gcov=$enableval
mlcreechaac7b932008-04-01 02:45:22 +000011319else
11320 use_gcov=no
drh8b727472009-01-19 18:18:40 +000011321fi
11322
mlcreechaac7b932008-04-01 02:45:22 +000011323if test "${use_gcov}" = "yes" ; then
11324 USE_GCOV=1
11325else
11326 USE_GCOV=0
11327fi
11328
11329
danielk197733a14782008-08-04 14:50:05 +000011330
drh2dfbbca2000-07-28 14:32:48 +000011331#########
mlcreechb87057f2008-03-06 07:19:20 +000011332# Output the config header
drh8b727472009-01-19 18:18:40 +000011333ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000011334
11335
11336#########
drh75897232000-05-29 14:26:00 +000011337# Generate the output files.
11338#
mlcreechdf59c7c2008-03-06 07:51:15 +000011339
drh8b727472009-01-19 18:18:40 +000011340ac_config_files="$ac_config_files Makefile sqlite3.pc"
11341
drh71eb93e2001-09-28 01:34:43 +000011342cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000011343# This file is a shell script that caches the results of configure
11344# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000011345# scripts and configure runs, see configure's option --config-cache.
11346# It is not useful on other systems. If it contains results you don't
11347# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000011348#
drh71eb93e2001-09-28 01:34:43 +000011349# config.status only pays attention to the cache file if you give it
11350# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000011351#
a.rottmann84e63352003-03-24 09:42:16 +000011352# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000011353# loading this file, other *unset* `ac_cv_foo' will be assigned the
11354# following values.
11355
11356_ACEOF
11357
drh75897232000-05-29 14:26:00 +000011358# The following way of writing the cache mishandles newlines in values,
11359# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000011360# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000011361# Ultrix sh set writes to stderr and can't be redirected directly,
11362# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000011363(
11364 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11365 eval ac_val=\$$ac_var
11366 case $ac_val in #(
11367 *${as_nl}*)
11368 case $ac_var in #(
dana9f39fd2011-08-12 16:34:42 +000011369 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11370$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +000011371 esac
11372 case $ac_var in #(
11373 _ | IFS | as_nl) ;; #(
11374 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
dana9f39fd2011-08-12 16:34:42 +000011375 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +000011376 esac ;;
11377 esac
11378 done
11379
drh71eb93e2001-09-28 01:34:43 +000011380 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000011381 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11382 *${as_nl}ac_space=\ *)
dana9f39fd2011-08-12 16:34:42 +000011383 # `set' does not quote correctly, so add quotes: double-quote
11384 # substitution turns \\\\ into \\, and sed turns \\ into \.
drh71eb93e2001-09-28 01:34:43 +000011385 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000011386 "s/'/'\\\\''/g;
11387 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000011388 ;; #(
drh71eb93e2001-09-28 01:34:43 +000011389 *)
11390 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000011391 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000011392 ;;
drh8b727472009-01-19 18:18:40 +000011393 esac |
11394 sort
11395) |
drh71eb93e2001-09-28 01:34:43 +000011396 sed '
drh8b727472009-01-19 18:18:40 +000011397 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000011398 t clear
drh8b727472009-01-19 18:18:40 +000011399 :clear
drh71eb93e2001-09-28 01:34:43 +000011400 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11401 t end
drh8b727472009-01-19 18:18:40 +000011402 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11403 :end' >>confcache
11404if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11405 if test -w "$cache_file"; then
11406 test "x$cache_file" != "x/dev/null" &&
dana9f39fd2011-08-12 16:34:42 +000011407 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011408$as_echo "$as_me: updating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +000011409 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +000011410 else
dana9f39fd2011-08-12 16:34:42 +000011411 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011412$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000011413 fi
11414fi
11415rm -f confcache
11416
drh75897232000-05-29 14:26:00 +000011417test "x$prefix" = xNONE && prefix=$ac_default_prefix
11418# Let make expand exec_prefix.
11419test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11420
mlcreechb87057f2008-03-06 07:19:20 +000011421DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000011422
11423ac_libobjs=
11424ac_ltlibobjs=
11425for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11426 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000011427 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11428 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11429 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11430 # will be set to the directory where LIBOBJS objects are built.
dana9f39fd2011-08-12 16:34:42 +000011431 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11432 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000011433done
11434LIBOBJS=$ac_libobjs
11435
11436LTLIBOBJS=$ac_ltlibobjs
11437
11438
11439
drh75897232000-05-29 14:26:00 +000011440: ${CONFIG_STATUS=./config.status}
drh8b727472009-01-19 18:18:40 +000011441ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000011442ac_clean_files_save=$ac_clean_files
11443ac_clean_files="$ac_clean_files $CONFIG_STATUS"
dana9f39fd2011-08-12 16:34:42 +000011444{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
drh8b727472009-01-19 18:18:40 +000011445$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
dana9f39fd2011-08-12 16:34:42 +000011446as_write_fail=0
11447cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011448#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000011449# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000011450# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000011451# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000011452# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000011453
drh71eb93e2001-09-28 01:34:43 +000011454debug=false
a.rottmann84e63352003-03-24 09:42:16 +000011455ac_cs_recheck=false
11456ac_cs_silent=false
drh75897232000-05-29 14:26:00 +000011457
dana9f39fd2011-08-12 16:34:42 +000011458SHELL=\${CONFIG_SHELL-$SHELL}
11459export SHELL
11460_ASEOF
11461cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11462## -------------------- ##
11463## M4sh Initialization. ##
11464## -------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000011465
drh8b727472009-01-19 18:18:40 +000011466# Be more Bourne compatible
11467DUALCASE=1; export DUALCASE # for MKS sh
dana9f39fd2011-08-12 16:34:42 +000011468if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
drh71eb93e2001-09-28 01:34:43 +000011469 emulate sh
11470 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000011471 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000011472 # is contrary to our usage. Disable this feature.
11473 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000011474 setopt NO_GLOB_SUBST
11475else
dana9f39fd2011-08-12 16:34:42 +000011476 case `(set -o) 2>/dev/null` in #(
11477 *posix*) :
11478 set -o posix ;; #(
11479 *) :
11480 ;;
drh8b727472009-01-19 18:18:40 +000011481esac
a.rottmann84e63352003-03-24 09:42:16 +000011482fi
drh8b727472009-01-19 18:18:40 +000011483
11484
drh8b727472009-01-19 18:18:40 +000011485as_nl='
11486'
11487export as_nl
11488# Printing a long string crashes Solaris 7 /usr/bin/printf.
11489as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11490as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11491as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
dana9f39fd2011-08-12 16:34:42 +000011492# Prefer a ksh shell builtin over an external printf program on Solaris,
11493# but without wasting forks for bash or zsh.
11494if test -z "$BASH_VERSION$ZSH_VERSION" \
11495 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11496 as_echo='print -r --'
11497 as_echo_n='print -rn --'
11498elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000011499 as_echo='printf %s\n'
11500 as_echo_n='printf %s'
11501else
11502 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11503 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11504 as_echo_n='/usr/ucb/echo -n'
11505 else
11506 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11507 as_echo_n_body='eval
11508 arg=$1;
dana9f39fd2011-08-12 16:34:42 +000011509 case $arg in #(
drh8b727472009-01-19 18:18:40 +000011510 *"$as_nl"*)
11511 expr "X$arg" : "X\\(.*\\)$as_nl";
11512 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11513 esac;
11514 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11515 '
11516 export as_echo_n_body
11517 as_echo_n='sh -c $as_echo_n_body as_echo'
11518 fi
11519 export as_echo_body
11520 as_echo='sh -c $as_echo_body as_echo'
11521fi
11522
11523# The user is always right.
11524if test "${PATH_SEPARATOR+set}" != set; then
11525 PATH_SEPARATOR=:
11526 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11527 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11528 PATH_SEPARATOR=';'
11529 }
11530fi
a.rottmann84e63352003-03-24 09:42:16 +000011531
mlcreech94984912008-03-04 19:03:08 +000011532
drh8b727472009-01-19 18:18:40 +000011533# IFS
11534# We need space, tab and new line, in precisely that order. Quoting is
11535# there to prevent editors from complaining about space-tab.
11536# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11537# splitting by setting IFS to empty value.)
11538IFS=" "" $as_nl"
11539
11540# Find who we are. Look in the path if we contain no directory separator.
dana9f39fd2011-08-12 16:34:42 +000011541case $0 in #((
drh8b727472009-01-19 18:18:40 +000011542 *[\\/]* ) as_myself=$0 ;;
11543 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11544for as_dir in $PATH
11545do
11546 IFS=$as_save_IFS
11547 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +000011548 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11549 done
drh8b727472009-01-19 18:18:40 +000011550IFS=$as_save_IFS
11551
11552 ;;
11553esac
11554# We did not find ourselves, most probably we were run as `sh COMMAND'
11555# in which case we are not to be found in the path.
11556if test "x$as_myself" = x; then
11557 as_myself=$0
11558fi
11559if test ! -f "$as_myself"; then
11560 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
dana9f39fd2011-08-12 16:34:42 +000011561 exit 1
drh8b727472009-01-19 18:18:40 +000011562fi
11563
dana9f39fd2011-08-12 16:34:42 +000011564# Unset variables that we do not need and which cause bugs (e.g. in
11565# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11566# suppresses any "Segmentation fault" message there. '((' could
11567# trigger a bug in pdksh 5.2.14.
11568for as_var in BASH_ENV ENV MAIL MAILPATH
11569do eval test x\${$as_var+set} = xset \
11570 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
drh8b727472009-01-19 18:18:40 +000011571done
mlcreech94984912008-03-04 19:03:08 +000011572PS1='$ '
11573PS2='> '
11574PS4='+ '
11575
11576# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000011577LC_ALL=C
11578export LC_ALL
11579LANGUAGE=C
11580export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000011581
dana9f39fd2011-08-12 16:34:42 +000011582# CDPATH.
11583(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11584
11585
11586# as_fn_error ERROR [LINENO LOG_FD]
11587# ---------------------------------
11588# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11589# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11590# script with status $?, using 1 if that was 0.
11591as_fn_error ()
11592{
11593 as_status=$?; test $as_status -eq 0 && as_status=1
11594 if test "$3"; then
11595 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11596 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11597 fi
11598 $as_echo "$as_me: error: $1" >&2
11599 as_fn_exit $as_status
11600} # as_fn_error
11601
11602
11603# as_fn_set_status STATUS
11604# -----------------------
11605# Set $? to STATUS, without forking.
11606as_fn_set_status ()
11607{
11608 return $1
11609} # as_fn_set_status
11610
11611# as_fn_exit STATUS
11612# -----------------
11613# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11614as_fn_exit ()
11615{
11616 set +e
11617 as_fn_set_status $1
11618 exit $1
11619} # as_fn_exit
11620
11621# as_fn_unset VAR
11622# ---------------
11623# Portably unset VAR.
11624as_fn_unset ()
11625{
11626 { eval $1=; unset $1;}
11627}
11628as_unset=as_fn_unset
11629# as_fn_append VAR VALUE
11630# ----------------------
11631# Append the text in VALUE to the end of the definition contained in VAR. Take
11632# advantage of any shell optimizations that allow amortized linear growth over
11633# repeated appends, instead of the typical quadratic growth present in naive
11634# implementations.
11635if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11636 eval 'as_fn_append ()
11637 {
11638 eval $1+=\$2
11639 }'
11640else
11641 as_fn_append ()
11642 {
11643 eval $1=\$$1\$2
11644 }
11645fi # as_fn_append
11646
11647# as_fn_arith ARG...
11648# ------------------
11649# Perform arithmetic evaluation on the ARGs, and store the result in the
11650# global $as_val. Take advantage of shells that can avoid forks. The arguments
11651# must be portable across $(()) and expr.
11652if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11653 eval 'as_fn_arith ()
11654 {
11655 as_val=$(( $* ))
11656 }'
11657else
11658 as_fn_arith ()
11659 {
11660 as_val=`expr "$@" || test $? -eq 1`
11661 }
11662fi # as_fn_arith
11663
11664
drh8b727472009-01-19 18:18:40 +000011665if expr a : '\(a\)' >/dev/null 2>&1 &&
11666 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000011667 as_expr=expr
11668else
11669 as_expr=false
11670fi
11671
drh8b727472009-01-19 18:18:40 +000011672if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000011673 as_basename=basename
11674else
11675 as_basename=false
11676fi
11677
dana9f39fd2011-08-12 16:34:42 +000011678if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11679 as_dirname=dirname
11680else
11681 as_dirname=false
11682fi
mlcreech94984912008-03-04 19:03:08 +000011683
drh8b727472009-01-19 18:18:40 +000011684as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000011685$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11686 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000011687 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11688$as_echo X/"$0" |
11689 sed '/^.*\/\([^/][^/]*\)\/*$/{
11690 s//\1/
11691 q
11692 }
11693 /^X\/\(\/\/\)$/{
11694 s//\1/
11695 q
11696 }
11697 /^X\/\(\/\).*/{
11698 s//\1/
11699 q
11700 }
11701 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000011702
dana9f39fd2011-08-12 16:34:42 +000011703# Avoid depending upon Character Ranges.
11704as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11705as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11706as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11707as_cr_digits='0123456789'
11708as_cr_alnum=$as_cr_Letters$as_cr_digits
drh866108f2008-05-13 00:57:21 +000011709
drh8b727472009-01-19 18:18:40 +000011710ECHO_C= ECHO_N= ECHO_T=
dana9f39fd2011-08-12 16:34:42 +000011711case `echo -n x` in #(((((
drh8b727472009-01-19 18:18:40 +000011712-n*)
dana9f39fd2011-08-12 16:34:42 +000011713 case `echo 'xy\c'` in
drh8b727472009-01-19 18:18:40 +000011714 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
dana9f39fd2011-08-12 16:34:42 +000011715 xy) ECHO_C='\c';;
11716 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11717 ECHO_T=' ';;
drh8b727472009-01-19 18:18:40 +000011718 esac;;
11719*)
11720 ECHO_N='-n';;
11721esac
drh71eb93e2001-09-28 01:34:43 +000011722
11723rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000011724if test -d conf$$.dir; then
11725 rm -f conf$$.dir/conf$$.file
11726else
11727 rm -f conf$$.dir
11728 mkdir conf$$.dir 2>/dev/null
11729fi
11730if (echo >conf$$.file) 2>/dev/null; then
11731 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000011732 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000011733 # ... but there are two gotchas:
11734 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11735 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11736 # In both cases, we have to default to `cp -p'.
11737 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11738 as_ln_s='cp -p'
11739 elif ln conf$$.file conf$$ 2>/dev/null; then
11740 as_ln_s=ln
11741 else
11742 as_ln_s='cp -p'
mlcreech636a9952008-05-05 22:52:56 +000011743 fi
drh71eb93e2001-09-28 01:34:43 +000011744else
11745 as_ln_s='cp -p'
11746fi
drh8b727472009-01-19 18:18:40 +000011747rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11748rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000011749
dana9f39fd2011-08-12 16:34:42 +000011750
11751# as_fn_mkdir_p
11752# -------------
11753# Create "$as_dir" as a directory, including parents if necessary.
11754as_fn_mkdir_p ()
11755{
11756
11757 case $as_dir in #(
11758 -*) as_dir=./$as_dir;;
11759 esac
11760 test -d "$as_dir" || eval $as_mkdir_p || {
11761 as_dirs=
11762 while :; do
11763 case $as_dir in #(
11764 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11765 *) as_qdir=$as_dir;;
11766 esac
11767 as_dirs="'$as_qdir' $as_dirs"
11768 as_dir=`$as_dirname -- "$as_dir" ||
11769$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11770 X"$as_dir" : 'X\(//\)[^/]' \| \
11771 X"$as_dir" : 'X\(//\)$' \| \
11772 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11773$as_echo X"$as_dir" |
11774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11775 s//\1/
11776 q
11777 }
11778 /^X\(\/\/\)[^/].*/{
11779 s//\1/
11780 q
11781 }
11782 /^X\(\/\/\)$/{
11783 s//\1/
11784 q
11785 }
11786 /^X\(\/\).*/{
11787 s//\1/
11788 q
11789 }
11790 s/.*/./; q'`
11791 test -d "$as_dir" && break
11792 done
11793 test -z "$as_dirs" || eval "mkdir $as_dirs"
11794 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11795
11796
11797} # as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000011798if mkdir -p . 2>/dev/null; then
dana9f39fd2011-08-12 16:34:42 +000011799 as_mkdir_p='mkdir -p "$as_dir"'
drh71eb93e2001-09-28 01:34:43 +000011800else
a.rottmann964dbb12004-02-26 19:47:42 +000011801 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000011802 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000011803fi
11804
drh8b727472009-01-19 18:18:40 +000011805if test -x / >/dev/null 2>&1; then
11806 as_test_x='test -x'
11807else
11808 if ls -dL / >/dev/null 2>&1; then
11809 as_ls_L_option=L
11810 else
11811 as_ls_L_option=
11812 fi
11813 as_test_x='
11814 eval sh -c '\''
11815 if test -d "$1"; then
11816 test -d "$1/.";
11817 else
dana9f39fd2011-08-12 16:34:42 +000011818 case $1 in #(
drh8b727472009-01-19 18:18:40 +000011819 -*)set "./$1";;
11820 esac;
dana9f39fd2011-08-12 16:34:42 +000011821 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
drh8b727472009-01-19 18:18:40 +000011822 ???[sx]*):;;*)false;;esac;fi
11823 '\'' sh
11824 '
11825fi
11826as_executable_p=$as_test_x
a.rottmann84e63352003-03-24 09:42:16 +000011827
11828# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000011829as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000011830
11831# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000011832as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000011833
drh71eb93e2001-09-28 01:34:43 +000011834
drh71eb93e2001-09-28 01:34:43 +000011835exec 6>&1
dana9f39fd2011-08-12 16:34:42 +000011836## ----------------------------------- ##
11837## Main body of $CONFIG_STATUS script. ##
11838## ----------------------------------- ##
11839_ASEOF
11840test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011841
dana9f39fd2011-08-12 16:34:42 +000011842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11843# Save the log message, to keep $0 and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000011844# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000011845# values after options handling.
11846ac_log="
drhc4e384b2011-07-19 15:27:59 +000011847This file was extended by sqlite $as_me 3.7.8, which was
dana9f39fd2011-08-12 16:34:42 +000011848generated by GNU Autoconf 2.65. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000011849
11850 CONFIG_FILES = $CONFIG_FILES
11851 CONFIG_HEADERS = $CONFIG_HEADERS
11852 CONFIG_LINKS = $CONFIG_LINKS
11853 CONFIG_COMMANDS = $CONFIG_COMMANDS
11854 $ $0 $@
11855
drh8b727472009-01-19 18:18:40 +000011856on `(hostname || uname -n) 2>/dev/null | sed 1q`
11857"
11858
drh71eb93e2001-09-28 01:34:43 +000011859_ACEOF
11860
dana9f39fd2011-08-12 16:34:42 +000011861case $ac_config_files in *"
11862"*) set x $ac_config_files; shift; ac_config_files=$*;;
11863esac
11864
11865case $ac_config_headers in *"
11866"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11867esac
11868
11869
drh8b727472009-01-19 18:18:40 +000011870cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011871# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000011872config_files="$ac_config_files"
11873config_headers="$ac_config_headers"
11874config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000011875
drh8b727472009-01-19 18:18:40 +000011876_ACEOF
drh71eb93e2001-09-28 01:34:43 +000011877
drh8b727472009-01-19 18:18:40 +000011878cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011879ac_cs_usage="\
dana9f39fd2011-08-12 16:34:42 +000011880\`$as_me' instantiates files and other configuration actions
11881from templates according to the current configuration. Unless the files
11882and actions are specified as TAGs, all are instantiated by default.
drh71eb93e2001-09-28 01:34:43 +000011883
dana9f39fd2011-08-12 16:34:42 +000011884Usage: $0 [OPTION]... [TAG]...
drh71eb93e2001-09-28 01:34:43 +000011885
11886 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000011887 -V, --version print version number and configuration settings, then exit
dana9f39fd2011-08-12 16:34:42 +000011888 --config print configuration, then exit
11889 -q, --quiet, --silent
11890 do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000011891 -d, --debug don't remove temporary files
11892 --recheck update $as_me by reconfiguring in the same conditions
dana9f39fd2011-08-12 16:34:42 +000011893 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000011894 instantiate the configuration file FILE
dana9f39fd2011-08-12 16:34:42 +000011895 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000011896 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000011897
11898Configuration files:
11899$config_files
11900
mlcreechb87057f2008-03-06 07:19:20 +000011901Configuration headers:
11902$config_headers
11903
mlcreech636a9952008-05-05 22:52:56 +000011904Configuration commands:
11905$config_commands
11906
dana9f39fd2011-08-12 16:34:42 +000011907Report bugs to the package provider."
drh8b727472009-01-19 18:18:40 +000011908
mlcreech94984912008-03-04 19:03:08 +000011909_ACEOF
drh8b727472009-01-19 18:18:40 +000011910cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
dana9f39fd2011-08-12 16:34:42 +000011911ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
drh866108f2008-05-13 00:57:21 +000011912ac_cs_version="\\
drhc4e384b2011-07-19 15:27:59 +000011913sqlite config.status 3.7.8
dana9f39fd2011-08-12 16:34:42 +000011914configured by $0, generated by GNU Autoconf 2.65,
11915 with options \\"\$ac_cs_config\\"
drh866108f2008-05-13 00:57:21 +000011916
dana9f39fd2011-08-12 16:34:42 +000011917Copyright (C) 2009 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000011918This config.status script is free software; the Free Software Foundation
11919gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000011920
11921ac_pwd='$ac_pwd'
11922srcdir='$srcdir'
11923INSTALL='$INSTALL'
11924AWK='$AWK'
11925test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000011926_ACEOF
drh71eb93e2001-09-28 01:34:43 +000011927
drh8b727472009-01-19 18:18:40 +000011928cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11929# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000011930ac_need_defaults=:
11931while test $# != 0
11932do
11933 case $1 in
11934 --*=*)
drh8b727472009-01-19 18:18:40 +000011935 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11936 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000011937 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000011938 ;;
drh8b727472009-01-19 18:18:40 +000011939 *)
a.rottmann84e63352003-03-24 09:42:16 +000011940 ac_option=$1
11941 ac_optarg=$2
11942 ac_shift=shift
11943 ;;
drh75897232000-05-29 14:26:00 +000011944 esac
11945
a.rottmann84e63352003-03-24 09:42:16 +000011946 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000011947 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000011948 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000011949 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000011950 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11951 $as_echo "$ac_cs_version"; exit ;;
dana9f39fd2011-08-12 16:34:42 +000011952 --config | --confi | --conf | --con | --co | --c )
11953 $as_echo "$ac_cs_config"; exit ;;
drh8b727472009-01-19 18:18:40 +000011954 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000011955 debug=: ;;
11956 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000011957 $ac_shift
drh8b727472009-01-19 18:18:40 +000011958 case $ac_optarg in
11959 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11960 esac
dana9f39fd2011-08-12 16:34:42 +000011961 as_fn_append CONFIG_FILES " '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000011962 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000011963 --header | --heade | --head | --hea )
11964 $ac_shift
drh8b727472009-01-19 18:18:40 +000011965 case $ac_optarg in
11966 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11967 esac
dana9f39fd2011-08-12 16:34:42 +000011968 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000011969 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000011970 --he | --h)
11971 # Conflict between --help and --header
dana9f39fd2011-08-12 16:34:42 +000011972 as_fn_error "ambiguous option: \`$1'
11973Try \`$0 --help' for more information.";;
drh8b727472009-01-19 18:18:40 +000011974 --help | --hel | -h )
11975 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000011976 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11977 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11978 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000011979
drh71eb93e2001-09-28 01:34:43 +000011980 # This is an error.
dana9f39fd2011-08-12 16:34:42 +000011981 -*) as_fn_error "unrecognized option: \`$1'
11982Try \`$0 --help' for more information." ;;
drh71eb93e2001-09-28 01:34:43 +000011983
dana9f39fd2011-08-12 16:34:42 +000011984 *) as_fn_append ac_config_targets " $1"
drh8b727472009-01-19 18:18:40 +000011985 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000011986
11987 esac
11988 shift
11989done
11990
a.rottmann84e63352003-03-24 09:42:16 +000011991ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000011992
a.rottmann84e63352003-03-24 09:42:16 +000011993if $ac_cs_silent; then
11994 exec 6>/dev/null
11995 ac_configure_extra_args="$ac_configure_extra_args --silent"
11996fi
drh71eb93e2001-09-28 01:34:43 +000011997
11998_ACEOF
drh8b727472009-01-19 18:18:40 +000011999cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000012000if \$ac_cs_recheck; then
drh8b727472009-01-19 18:18:40 +000012001 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12002 shift
12003 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12004 CONFIG_SHELL='$SHELL'
12005 export CONFIG_SHELL
12006 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000012007fi
drh71eb93e2001-09-28 01:34:43 +000012008
a.rottmann84e63352003-03-24 09:42:16 +000012009_ACEOF
drh8b727472009-01-19 18:18:40 +000012010cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12011exec 5>>config.log
12012{
12013 echo
12014 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12015## Running $as_me. ##
12016_ASBOX
12017 $as_echo "$ac_log"
12018} >&5
a.rottmann84e63352003-03-24 09:42:16 +000012019
drh8b727472009-01-19 18:18:40 +000012020_ACEOF
12021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000012022#
drh8b727472009-01-19 18:18:40 +000012023# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000012024#
12025
12026
12027# The HP-UX ksh and POSIX shell print the target directory to stdout
12028# if CDPATH is set.
12029(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12030
12031sed_quote_subst='$sed_quote_subst'
12032double_quote_subst='$double_quote_subst'
12033delay_variable_subst='$delay_variable_subst'
12034macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12035macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12036enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12037enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12038pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12039enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12040host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12041host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12042host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12043build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12044build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12045build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12046SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12047Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12048GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12049EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12050FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12051LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12052NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12053LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12054max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12055ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12056exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12057lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12058lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12059lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12060reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12061reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
vapier6acb2cf2009-01-28 04:46:28 +000012062OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
mlcreech636a9952008-05-05 22:52:56 +000012063deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12064file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12065AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12066AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12067STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12068RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12069old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12070old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12071old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12072CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12073CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12074compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12075GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12076lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12077lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12078lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12079lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12080objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12081SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12082ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12083MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12084lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12085lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12086lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12087lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12088lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12089need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12090DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12091NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12092LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12093OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12094OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12095libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12096shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12097extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12098archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12099enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12100export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12101whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12102compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12103old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12104old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12105archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12106archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12107module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12108module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12109with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12110allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12111no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12112hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12113hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12114hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12115hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12116hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12117hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12118hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12119hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12120inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12121link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12122fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12123always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12124export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12125exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12126include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12127prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12128file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12129variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12130need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12131need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12132version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12133runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12134shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12135shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12136libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12137library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12138soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12139postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12140postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12141finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12142finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12143hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12144sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12145sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12146hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12147enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12148enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12149enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12150old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12151striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12152
12153LTCC='$LTCC'
12154LTCFLAGS='$LTCFLAGS'
12155compiler='$compiler_DEFAULT'
12156
12157# Quote evaled strings.
12158for var in SED \
12159GREP \
12160EGREP \
12161FGREP \
12162LD \
12163NM \
12164LN_S \
12165lt_SP2NL \
12166lt_NL2SP \
12167reload_flag \
vapier6acb2cf2009-01-28 04:46:28 +000012168OBJDUMP \
mlcreech636a9952008-05-05 22:52:56 +000012169deplibs_check_method \
12170file_magic_cmd \
12171AR \
12172AR_FLAGS \
12173STRIP \
12174RANLIB \
12175CC \
12176CFLAGS \
12177compiler \
12178lt_cv_sys_global_symbol_pipe \
12179lt_cv_sys_global_symbol_to_cdecl \
12180lt_cv_sys_global_symbol_to_c_name_address \
12181lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12182SHELL \
12183ECHO \
12184lt_prog_compiler_no_builtin_flag \
12185lt_prog_compiler_wl \
12186lt_prog_compiler_pic \
12187lt_prog_compiler_static \
12188lt_cv_prog_compiler_c_o \
12189need_locks \
12190DSYMUTIL \
12191NMEDIT \
12192LIPO \
12193OTOOL \
12194OTOOL64 \
12195shrext_cmds \
12196export_dynamic_flag_spec \
12197whole_archive_flag_spec \
12198compiler_needs_object \
12199with_gnu_ld \
12200allow_undefined_flag \
12201no_undefined_flag \
12202hardcode_libdir_flag_spec \
12203hardcode_libdir_flag_spec_ld \
12204hardcode_libdir_separator \
12205fix_srcfile_path \
12206exclude_expsyms \
12207include_expsyms \
12208file_list_spec \
12209variables_saved_for_relink \
12210libname_spec \
12211library_names_spec \
12212soname_spec \
12213finish_eval \
12214old_striplib \
12215striplib; do
12216 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12217 *[\\\\\\\`\\"\\\$]*)
12218 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12219 ;;
12220 *)
12221 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12222 ;;
12223 esac
12224done
12225
12226# Double-quote double-evaled strings.
12227for var in reload_cmds \
12228old_postinstall_cmds \
12229old_postuninstall_cmds \
12230old_archive_cmds \
12231extract_expsyms_cmds \
12232old_archive_from_new_cmds \
12233old_archive_from_expsyms_cmds \
12234archive_cmds \
12235archive_expsym_cmds \
12236module_cmds \
12237module_expsym_cmds \
12238export_symbols_cmds \
12239prelink_cmds \
12240postinstall_cmds \
12241postuninstall_cmds \
12242finish_cmds \
12243sys_lib_search_path_spec \
12244sys_lib_dlsearch_path_spec; do
12245 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12246 *[\\\\\\\`\\"\\\$]*)
12247 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12248 ;;
12249 *)
12250 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12251 ;;
12252 esac
12253done
12254
12255# Fix-up fallback echo if it was mangled by the above quoting rules.
12256case \$lt_ECHO in
12257*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12258 ;;
12259esac
12260
12261ac_aux_dir='$ac_aux_dir'
12262xsi_shell='$xsi_shell'
12263lt_shell_append='$lt_shell_append'
12264
12265# See if we are running on zsh, and set the options which allow our
12266# commands through without removal of \ escapes INIT.
12267if test -n "\${ZSH_VERSION+set}" ; then
12268 setopt NO_GLOB_SUBST
12269fi
12270
12271
12272 PACKAGE='$PACKAGE'
12273 VERSION='$VERSION'
12274 TIMESTAMP='$TIMESTAMP'
12275 RM='$RM'
12276 ofile='$ofile'
12277
12278
12279
12280
mlcreech94984912008-03-04 19:03:08 +000012281_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012282
drh8b727472009-01-19 18:18:40 +000012283cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000012284
drh8b727472009-01-19 18:18:40 +000012285# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000012286for ac_config_target in $ac_config_targets
12287do
drh8b727472009-01-19 18:18:40 +000012288 case $ac_config_target in
12289 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12290 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12291 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12292 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12293
dana9f39fd2011-08-12 16:34:42 +000012294 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
drh71eb93e2001-09-28 01:34:43 +000012295 esac
12296done
12297
drh8b727472009-01-19 18:18:40 +000012298
drh71eb93e2001-09-28 01:34:43 +000012299# If the user did not use the arguments to specify the items to instantiate,
12300# then the envvar interface is used. Set only those that are not.
12301# We use the long form for the default assignment because of an extremely
12302# bizarre bug on SunOS 4.1.3.
12303if $ac_need_defaults; then
12304 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000012305 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000012306 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000012307fi
12308
a.rottmann84e63352003-03-24 09:42:16 +000012309# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000012310# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000012311# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000012312# Hook for its removal unless debugging.
12313# Note that there is a small window in which the directory will not be cleaned:
12314# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000012315$debug ||
12316{
drh8b727472009-01-19 18:18:40 +000012317 tmp=
12318 trap 'exit_status=$?
12319 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12320' 0
dana9f39fd2011-08-12 16:34:42 +000012321 trap 'as_fn_exit 1' 1 2 13 15
drh71eb93e2001-09-28 01:34:43 +000012322}
drh71eb93e2001-09-28 01:34:43 +000012323# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000012324
drh71eb93e2001-09-28 01:34:43 +000012325{
drh8b727472009-01-19 18:18:40 +000012326 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drh71eb93e2001-09-28 01:34:43 +000012327 test -n "$tmp" && test -d "$tmp"
12328} ||
12329{
drh8b727472009-01-19 18:18:40 +000012330 tmp=./conf$$-$RANDOM
12331 (umask 077 && mkdir "$tmp")
dana9f39fd2011-08-12 16:34:42 +000012332} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +000012333
drh8b727472009-01-19 18:18:40 +000012334# Set up the scripts for CONFIG_FILES section.
12335# No need to generate them if there are no CONFIG_FILES.
12336# This happens for instance with `./config.status config.h'.
12337if test -n "$CONFIG_FILES"; then
12338
12339
dana9f39fd2011-08-12 16:34:42 +000012340ac_cr=`echo X | tr X '\015'`
12341# On cygwin, bash can eat \r inside `` if the user requested igncr.
12342# But we know of no other shell where ac_cr would be empty at this
12343# point, so we can use a bashism as a fallback.
12344if test "x$ac_cr" = x; then
12345 eval ac_cr=\$\'\\r\'
12346fi
drh8b727472009-01-19 18:18:40 +000012347ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12348if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
dana9f39fd2011-08-12 16:34:42 +000012349 ac_cs_awk_cr='\r'
drh8b727472009-01-19 18:18:40 +000012350else
12351 ac_cs_awk_cr=$ac_cr
12352fi
12353
12354echo 'BEGIN {' >"$tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000012355_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012356
mlcreech94984912008-03-04 19:03:08 +000012357
drh8b727472009-01-19 18:18:40 +000012358{
12359 echo "cat >conf$$subs.awk <<_ACEOF" &&
12360 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12361 echo "_ACEOF"
12362} >conf$$subs.sh ||
dana9f39fd2011-08-12 16:34:42 +000012363 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012364ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12365ac_delim='%!_!# '
12366for ac_last_try in false false false false false :; do
12367 . ./conf$$subs.sh ||
dana9f39fd2011-08-12 16:34:42 +000012368 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000012369
dana9f39fd2011-08-12 16:34:42 +000012370 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12371 if test $ac_delim_n = $ac_delim_num; then
drh8b727472009-01-19 18:18:40 +000012372 break
12373 elif $ac_last_try; then
dana9f39fd2011-08-12 16:34:42 +000012374 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012375 else
12376 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000012377 fi
drh8b727472009-01-19 18:18:40 +000012378done
12379rm -f conf$$subs.sh
12380
12381cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12382cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12383_ACEOF
12384sed -n '
12385h
12386s/^/S["/; s/!.*/"]=/
12387p
12388g
12389s/^[^!]*!//
12390:repl
12391t repl
12392s/'"$ac_delim"'$//
12393t delim
12394:nl
12395h
dana9f39fd2011-08-12 16:34:42 +000012396s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012397t more1
12398s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12399p
12400n
12401b repl
12402:more1
12403s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12404p
12405g
12406s/.\{148\}//
12407t nl
12408:delim
12409h
dana9f39fd2011-08-12 16:34:42 +000012410s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012411t more2
12412s/["\\]/\\&/g; s/^/"/; s/$/"/
12413p
12414b
12415:more2
12416s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12417p
12418g
12419s/.\{148\}//
12420t delim
12421' <conf$$subs.awk | sed '
12422/^[^""]/{
12423 N
12424 s/\n//
12425}
12426' >>$CONFIG_STATUS || ac_write_fail=1
12427rm -f conf$$subs.awk
12428cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12429_ACAWK
12430cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12431 for (key in S) S_is_set[key] = 1
12432 FS = ""
12433
12434}
12435{
12436 line = $ 0
12437 nfields = split(line, field, "@")
12438 substed = 0
12439 len = length(field[1])
12440 for (i = 2; i < nfields; i++) {
12441 key = field[i]
12442 keylen = length(key)
12443 if (S_is_set[key]) {
12444 value = S[key]
12445 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12446 len += length(value) + length(field[++i])
12447 substed = 1
12448 } else
12449 len += 1 + keylen
12450 }
12451
12452 print line
12453}
12454
12455_ACAWK
12456_ACEOF
12457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12458if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12459 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12460else
12461 cat
12462fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
dana9f39fd2011-08-12 16:34:42 +000012463 || as_fn_error "could not setup config files machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012464_ACEOF
12465
12466# VPATH may cause trouble with some makes, so we remove $(srcdir),
12467# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12468# trailing colons and then remove the whole line if VPATH becomes empty
12469# (actually we leave an empty line to preserve line numbers).
12470if test "x$srcdir" = x.; then
12471 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12472s/:*\$(srcdir):*/:/
12473s/:*\${srcdir}:*/:/
12474s/:*@srcdir@:*/:/
12475s/^\([^=]*=[ ]*\):*/\1/
12476s/:*$//
12477s/^[^=]*=[ ]*$//
12478}'
12479fi
12480
12481cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012482fi # test -n "$CONFIG_FILES"
12483
drh8b727472009-01-19 18:18:40 +000012484# Set up the scripts for CONFIG_HEADERS section.
12485# No need to generate them if there are no CONFIG_HEADERS.
12486# This happens for instance with `./config.status Makefile'.
12487if test -n "$CONFIG_HEADERS"; then
12488cat >"$tmp/defines.awk" <<\_ACAWK ||
12489BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000012490_ACEOF
drh8b727472009-01-19 18:18:40 +000012491
12492# Transform confdefs.h into an awk script `defines.awk', embedded as
12493# here-document in config.status, that substitutes the proper values into
12494# config.h.in to produce config.h.
12495
12496# Create a delimiter string that does not exist in confdefs.h, to ease
12497# handling of long lines.
12498ac_delim='%!_!# '
12499for ac_last_try in false false :; do
12500 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12501 if test -z "$ac_t"; then
12502 break
12503 elif $ac_last_try; then
dana9f39fd2011-08-12 16:34:42 +000012504 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012505 else
12506 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12507 fi
12508done
12509
12510# For the awk script, D is an array of macro values keyed by name,
12511# likewise P contains macro parameters if any. Preserve backslash
12512# newline sequences.
12513
12514ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12515sed -n '
12516s/.\{148\}/&'"$ac_delim"'/g
12517t rset
12518:rset
12519s/^[ ]*#[ ]*define[ ][ ]*/ /
12520t def
12521d
12522:def
12523s/\\$//
12524t bsnl
12525s/["\\]/\\&/g
12526s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12527D["\1"]=" \3"/p
12528s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12529d
12530:bsnl
12531s/["\\]/\\&/g
12532s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12533D["\1"]=" \3\\\\\\n"\\/p
12534t cont
12535s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12536t cont
12537d
12538:cont
12539n
12540s/.\{148\}/&'"$ac_delim"'/g
12541t clear
12542:clear
12543s/\\$//
12544t bsnlc
12545s/["\\]/\\&/g; s/^/"/; s/$/"/p
12546d
12547:bsnlc
12548s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12549b cont
12550' <confdefs.h | sed '
12551s/'"$ac_delim"'/"\\\
12552"/g' >>$CONFIG_STATUS || ac_write_fail=1
12553
12554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12555 for (key in D) D_is_set[key] = 1
12556 FS = ""
12557}
12558/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12559 line = \$ 0
12560 split(line, arg, " ")
12561 if (arg[1] == "#") {
12562 defundef = arg[2]
12563 mac1 = arg[3]
12564 } else {
12565 defundef = substr(arg[1], 2)
12566 mac1 = arg[2]
12567 }
12568 split(mac1, mac2, "(") #)
12569 macro = mac2[1]
dana9f39fd2011-08-12 16:34:42 +000012570 prefix = substr(line, 1, index(line, defundef) - 1)
drh8b727472009-01-19 18:18:40 +000012571 if (D_is_set[macro]) {
12572 # Preserve the white space surrounding the "#".
drh8b727472009-01-19 18:18:40 +000012573 print prefix "define", macro P[macro] D[macro]
12574 next
12575 } else {
12576 # Replace #undef with comments. This is necessary, for example,
12577 # in the case of _POSIX_SOURCE, which is predefined and required
12578 # on some systems where configure will not decide to define it.
12579 if (defundef == "undef") {
dana9f39fd2011-08-12 16:34:42 +000012580 print "/*", prefix defundef, macro, "*/"
drh8b727472009-01-19 18:18:40 +000012581 next
12582 }
12583 }
12584}
12585{ print }
12586_ACAWK
12587_ACEOF
12588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
dana9f39fd2011-08-12 16:34:42 +000012589 as_fn_error "could not setup config headers machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012590fi # test -n "$CONFIG_HEADERS"
12591
12592
12593eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12594shift
12595for ac_tag
12596do
12597 case $ac_tag in
12598 :[FHLC]) ac_mode=$ac_tag; continue;;
12599 esac
12600 case $ac_mode$ac_tag in
12601 :[FHL]*:*);;
dana9f39fd2011-08-12 16:34:42 +000012602 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000012603 :[FH]-) ac_tag=-:-;;
12604 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12605 esac
12606 ac_save_IFS=$IFS
12607 IFS=:
12608 set x $ac_tag
12609 IFS=$ac_save_IFS
12610 shift
12611 ac_file=$1
12612 shift
12613
12614 case $ac_mode in
12615 :L) ac_source=$1;;
12616 :[FH])
12617 ac_file_inputs=
12618 for ac_f
12619 do
12620 case $ac_f in
12621 -) ac_f="$tmp/stdin";;
12622 *) # Look for the file first in the build tree, then in the source tree
12623 # (if the path is not absolute). The absolute path cannot be DOS-style,
12624 # because $ac_f cannot contain `:'.
12625 test -f "$ac_f" ||
12626 case $ac_f in
12627 [\\/$]*) false;;
12628 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12629 esac ||
dana9f39fd2011-08-12 16:34:42 +000012630 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000012631 esac
12632 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
dana9f39fd2011-08-12 16:34:42 +000012633 as_fn_append ac_file_inputs " '$ac_f'"
drh8b727472009-01-19 18:18:40 +000012634 done
12635
12636 # Let's still pretend it is `configure' which instantiates (i.e., don't
12637 # use $as_me), people would be surprised to read:
12638 # /* config.h. Generated by config.status. */
12639 configure_input='Generated from '`
12640 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12641 `' by configure.'
12642 if test x"$ac_file" != x-; then
12643 configure_input="$ac_file. $configure_input"
dana9f39fd2011-08-12 16:34:42 +000012644 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
drh8b727472009-01-19 18:18:40 +000012645$as_echo "$as_me: creating $ac_file" >&6;}
12646 fi
12647 # Neutralize special characters interpreted by sed in replacement strings.
12648 case $configure_input in #(
12649 *\&* | *\|* | *\\* )
12650 ac_sed_conf_input=`$as_echo "$configure_input" |
12651 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12652 *) ac_sed_conf_input=$configure_input;;
12653 esac
12654
12655 case $ac_tag in
12656 *:-:* | *:-) cat >"$tmp/stdin" \
dana9f39fd2011-08-12 16:34:42 +000012657 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
drh8b727472009-01-19 18:18:40 +000012658 esac
12659 ;;
drh71eb93e2001-09-28 01:34:43 +000012660 esac
12661
drh8b727472009-01-19 18:18:40 +000012662 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000012663$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000012664 X"$ac_file" : 'X\(//\)[^/]' \| \
12665 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000012666 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12667$as_echo X"$ac_file" |
12668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12669 s//\1/
12670 q
12671 }
12672 /^X\(\/\/\)[^/].*/{
12673 s//\1/
12674 q
12675 }
12676 /^X\(\/\/\)$/{
12677 s//\1/
12678 q
12679 }
12680 /^X\(\/\).*/{
12681 s//\1/
12682 q
12683 }
12684 s/.*/./; q'`
dana9f39fd2011-08-12 16:34:42 +000012685 as_dir="$ac_dir"; as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000012686 ac_builddir=.
12687
drh8b727472009-01-19 18:18:40 +000012688case "$ac_dir" in
12689.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12690*)
12691 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12692 # A ".." for each directory in $ac_dir_suffix.
12693 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12694 case $ac_top_builddir_sub in
12695 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12696 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12697 esac ;;
12698esac
12699ac_abs_top_builddir=$ac_pwd
12700ac_abs_builddir=$ac_pwd$ac_dir_suffix
12701# for backward compatibility:
12702ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000012703
12704case $srcdir in
drh8b727472009-01-19 18:18:40 +000012705 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000012706 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000012707 ac_top_srcdir=$ac_top_builddir_sub
12708 ac_abs_top_srcdir=$ac_pwd ;;
12709 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000012710 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000012711 ac_top_srcdir=$srcdir
12712 ac_abs_top_srcdir=$srcdir ;;
12713 *) # Relative name.
12714 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12715 ac_top_srcdir=$ac_top_build_prefix$srcdir
12716 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000012717esac
drh8b727472009-01-19 18:18:40 +000012718ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000012719
a.rottmann84e63352003-03-24 09:42:16 +000012720
drh8b727472009-01-19 18:18:40 +000012721 case $ac_mode in
12722 :F)
12723 #
12724 # CONFIG_FILE
12725 #
drh75897232000-05-29 14:26:00 +000012726
drh71eb93e2001-09-28 01:34:43 +000012727 case $INSTALL in
12728 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000012729 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000012730 esac
mlcreech94984912008-03-04 19:03:08 +000012731_ACEOF
drh8b727472009-01-19 18:18:40 +000012732
12733cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12734# If the template does not know about datarootdir, expand it.
12735# FIXME: This hack should be removed a few years after 2.60.
12736ac_datarootdir_hack=; ac_datarootdir_seen=
drh8b727472009-01-19 18:18:40 +000012737ac_sed_dataroot='
12738/datarootdir/ {
12739 p
12740 q
12741}
12742/@datadir@/p
12743/@docdir@/p
12744/@infodir@/p
12745/@localedir@/p
dana9f39fd2011-08-12 16:34:42 +000012746/@mandir@/p'
drh8b727472009-01-19 18:18:40 +000012747case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12748*datarootdir*) ac_datarootdir_seen=yes;;
12749*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
dana9f39fd2011-08-12 16:34:42 +000012750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
drh8b727472009-01-19 18:18:40 +000012751$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12752_ACEOF
12753cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12754 ac_datarootdir_hack='
12755 s&@datadir@&$datadir&g
12756 s&@docdir@&$docdir&g
12757 s&@infodir@&$infodir&g
12758 s&@localedir@&$localedir&g
12759 s&@mandir@&$mandir&g
dana9f39fd2011-08-12 16:34:42 +000012760 s&\\\${datarootdir}&$datarootdir&g' ;;
drh8b727472009-01-19 18:18:40 +000012761esac
12762_ACEOF
12763
12764# Neutralize VPATH when `$srcdir' = `.'.
12765# Shell code in configure.ac might set extrasub.
12766# FIXME: do we really want to maintain this feature?
12767cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12768ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000012769$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000012770_ACEOF
drh8b727472009-01-19 18:18:40 +000012771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012772:t
12773/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000012774s|@configure_input@|$ac_sed_conf_input|;t t
12775s&@top_builddir@&$ac_top_builddir_sub&;t t
12776s&@top_build_prefix@&$ac_top_build_prefix&;t t
12777s&@srcdir@&$ac_srcdir&;t t
12778s&@abs_srcdir@&$ac_abs_srcdir&;t t
12779s&@top_srcdir@&$ac_top_srcdir&;t t
12780s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12781s&@builddir@&$ac_builddir&;t t
12782s&@abs_builddir@&$ac_abs_builddir&;t t
12783s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12784s&@INSTALL@&$ac_INSTALL&;t t
12785$ac_datarootdir_hack
12786"
12787eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
dana9f39fd2011-08-12 16:34:42 +000012788 || as_fn_error "could not create $ac_file" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000012789
drh8b727472009-01-19 18:18:40 +000012790test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12791 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12792 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
dana9f39fd2011-08-12 16:34:42 +000012793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
drh8b727472009-01-19 18:18:40 +000012794which seems to be undefined. Please make sure it is defined." >&5
12795$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12796which seems to be undefined. Please make sure it is defined." >&2;}
drh866108f2008-05-13 00:57:21 +000012797
drh8b727472009-01-19 18:18:40 +000012798 rm -f "$tmp/stdin"
drh866108f2008-05-13 00:57:21 +000012799 case $ac_file in
drh8b727472009-01-19 18:18:40 +000012800 -) cat "$tmp/out" && rm -f "$tmp/out";;
12801 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12802 esac \
dana9f39fd2011-08-12 16:34:42 +000012803 || as_fn_error "could not create $ac_file" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012804 ;;
12805 :H)
12806 #
12807 # CONFIG_HEADER
12808 #
drh866108f2008-05-13 00:57:21 +000012809 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000012810 {
12811 $as_echo "/* $configure_input */" \
12812 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12813 } >"$tmp/config.h" \
dana9f39fd2011-08-12 16:34:42 +000012814 || as_fn_error "could not create $ac_file" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012815 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
dana9f39fd2011-08-12 16:34:42 +000012816 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
drh8b727472009-01-19 18:18:40 +000012817$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000012818 else
drh8b727472009-01-19 18:18:40 +000012819 rm -f "$ac_file"
12820 mv "$tmp/config.h" "$ac_file" \
dana9f39fd2011-08-12 16:34:42 +000012821 || as_fn_error "could not create $ac_file" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000012822 fi
12823 else
drh8b727472009-01-19 18:18:40 +000012824 $as_echo "/* $configure_input */" \
12825 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
dana9f39fd2011-08-12 16:34:42 +000012826 || as_fn_error "could not create -" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000012827 fi
drh8b727472009-01-19 18:18:40 +000012828 ;;
drh866108f2008-05-13 00:57:21 +000012829
dana9f39fd2011-08-12 16:34:42 +000012830 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
drh8b727472009-01-19 18:18:40 +000012831$as_echo "$as_me: executing $ac_file commands" >&6;}
12832 ;;
12833 esac
drh866108f2008-05-13 00:57:21 +000012834
12835
drh8b727472009-01-19 18:18:40 +000012836 case $ac_file$ac_mode in
12837 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000012838
12839 # See if we are running on zsh, and set the options which allow our
12840 # commands through without removal of \ escapes.
12841 if test -n "${ZSH_VERSION+set}" ; then
12842 setopt NO_GLOB_SUBST
12843 fi
12844
12845 cfgfile="${ofile}T"
12846 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12847 $RM "$cfgfile"
12848
12849 cat <<_LT_EOF >> "$cfgfile"
12850#! $SHELL
12851
12852# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12853# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12854# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12855# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12856#
12857# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12858# 2006, 2007, 2008 Free Software Foundation, Inc.
12859# Written by Gordon Matzigkeit, 1996
12860#
12861# This file is part of GNU Libtool.
12862#
12863# GNU Libtool is free software; you can redistribute it and/or
12864# modify it under the terms of the GNU General Public License as
12865# published by the Free Software Foundation; either version 2 of
12866# the License, or (at your option) any later version.
12867#
12868# As a special exception to the GNU General Public License,
12869# if you distribute this file as part of a program or library that
12870# is built using GNU Libtool, you may include this file under the
12871# same distribution terms that you use for the rest of that program.
12872#
12873# GNU Libtool is distributed in the hope that it will be useful,
12874# but WITHOUT ANY WARRANTY; without even the implied warranty of
12875# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12876# GNU General Public License for more details.
12877#
12878# You should have received a copy of the GNU General Public License
12879# along with GNU Libtool; see the file COPYING. If not, a copy
12880# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12881# obtained by writing to the Free Software Foundation, Inc.,
12882# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12883
12884
12885# The names of the tagged configurations supported by this script.
12886available_tags=""
12887
12888# ### BEGIN LIBTOOL CONFIG
12889
12890# Which release of libtool.m4 was used?
12891macro_version=$macro_version
12892macro_revision=$macro_revision
12893
12894# Whether or not to build shared libraries.
12895build_libtool_libs=$enable_shared
12896
12897# Whether or not to build static libraries.
12898build_old_libs=$enable_static
12899
12900# What type of objects to build.
12901pic_mode=$pic_mode
12902
12903# Whether or not to optimize for fast installation.
12904fast_install=$enable_fast_install
12905
12906# The host system.
12907host_alias=$host_alias
12908host=$host
12909host_os=$host_os
12910
12911# The build system.
12912build_alias=$build_alias
12913build=$build
12914build_os=$build_os
12915
12916# A sed program that does not truncate output.
12917SED=$lt_SED
12918
12919# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12920Xsed="\$SED -e 1s/^X//"
12921
12922# A grep program that handles long lines.
12923GREP=$lt_GREP
12924
12925# An ERE matcher.
12926EGREP=$lt_EGREP
12927
12928# A literal string matcher.
12929FGREP=$lt_FGREP
12930
12931# A BSD- or MS-compatible name lister.
12932NM=$lt_NM
12933
12934# Whether we need soft or hard links.
12935LN_S=$lt_LN_S
12936
12937# What is the maximum length of a command?
12938max_cmd_len=$max_cmd_len
12939
12940# Object file suffix (normally "o").
12941objext=$ac_objext
12942
12943# Executable file suffix (normally "").
12944exeext=$exeext
12945
12946# whether the shell understands "unset".
12947lt_unset=$lt_unset
12948
12949# turn spaces into newlines.
12950SP2NL=$lt_lt_SP2NL
12951
12952# turn newlines into spaces.
12953NL2SP=$lt_lt_NL2SP
12954
12955# How to create reloadable object files.
12956reload_flag=$lt_reload_flag
12957reload_cmds=$lt_reload_cmds
12958
vapier6acb2cf2009-01-28 04:46:28 +000012959# An object symbol dumper.
12960OBJDUMP=$lt_OBJDUMP
12961
mlcreech636a9952008-05-05 22:52:56 +000012962# Method to check whether dependent libraries are shared objects.
12963deplibs_check_method=$lt_deplibs_check_method
12964
12965# Command to use when deplibs_check_method == "file_magic".
12966file_magic_cmd=$lt_file_magic_cmd
12967
12968# The archiver.
12969AR=$lt_AR
12970AR_FLAGS=$lt_AR_FLAGS
12971
12972# A symbol stripping program.
12973STRIP=$lt_STRIP
12974
12975# Commands used to install an old-style archive.
12976RANLIB=$lt_RANLIB
12977old_postinstall_cmds=$lt_old_postinstall_cmds
12978old_postuninstall_cmds=$lt_old_postuninstall_cmds
12979
12980# A C compiler.
12981LTCC=$lt_CC
12982
12983# LTCC compiler flags.
12984LTCFLAGS=$lt_CFLAGS
12985
12986# Take the output of nm and produce a listing of raw symbols and C names.
12987global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12988
12989# Transform the output of nm in a proper C declaration.
12990global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12991
12992# Transform the output of nm in a C name address pair.
12993global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12994
12995# Transform the output of nm in a C name address pair when lib prefix is needed.
12996global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12997
12998# The name of the directory that contains temporary libtool files.
12999objdir=$objdir
13000
13001# Shell to use when invoking shell scripts.
13002SHELL=$lt_SHELL
13003
13004# An echo program that does not interpret backslashes.
13005ECHO=$lt_ECHO
13006
13007# Used to examine libraries when file_magic_cmd begins with "file".
13008MAGIC_CMD=$MAGIC_CMD
13009
13010# Must we lock files when doing compilation?
13011need_locks=$lt_need_locks
13012
13013# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13014DSYMUTIL=$lt_DSYMUTIL
13015
13016# Tool to change global to local symbols on Mac OS X.
13017NMEDIT=$lt_NMEDIT
13018
13019# Tool to manipulate fat objects and archives on Mac OS X.
13020LIPO=$lt_LIPO
13021
13022# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13023OTOOL=$lt_OTOOL
13024
13025# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13026OTOOL64=$lt_OTOOL64
13027
13028# Old archive suffix (normally "a").
13029libext=$libext
13030
13031# Shared library suffix (normally ".so").
13032shrext_cmds=$lt_shrext_cmds
13033
13034# The commands to extract the exported symbol list from a shared archive.
13035extract_expsyms_cmds=$lt_extract_expsyms_cmds
13036
13037# Variables whose values should be saved in libtool wrapper scripts and
13038# restored at link time.
13039variables_saved_for_relink=$lt_variables_saved_for_relink
13040
13041# Do we need the "lib" prefix for modules?
13042need_lib_prefix=$need_lib_prefix
13043
13044# Do we need a version for libraries?
13045need_version=$need_version
13046
13047# Library versioning type.
13048version_type=$version_type
13049
13050# Shared library runtime path variable.
13051runpath_var=$runpath_var
13052
13053# Shared library path variable.
13054shlibpath_var=$shlibpath_var
13055
13056# Is shlibpath searched before the hard-coded library search path?
13057shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13058
13059# Format of library name prefix.
13060libname_spec=$lt_libname_spec
13061
13062# List of archive names. First name is the real one, the rest are links.
13063# The last name is the one that the linker finds with -lNAME
13064library_names_spec=$lt_library_names_spec
13065
13066# The coded name of the library, if different from the real name.
13067soname_spec=$lt_soname_spec
13068
13069# Command to use after installation of a shared archive.
13070postinstall_cmds=$lt_postinstall_cmds
13071
13072# Command to use after uninstallation of a shared archive.
13073postuninstall_cmds=$lt_postuninstall_cmds
13074
13075# Commands used to finish a libtool library installation in a directory.
13076finish_cmds=$lt_finish_cmds
13077
13078# As "finish_cmds", except a single script fragment to be evaled but
13079# not shown.
13080finish_eval=$lt_finish_eval
13081
13082# Whether we should hardcode library paths into libraries.
13083hardcode_into_libs=$hardcode_into_libs
13084
13085# Compile-time system search path for libraries.
13086sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13087
13088# Run-time system search path for libraries.
13089sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13090
13091# Whether dlopen is supported.
13092dlopen_support=$enable_dlopen
13093
13094# Whether dlopen of programs is supported.
13095dlopen_self=$enable_dlopen_self
13096
13097# Whether dlopen of statically linked programs is supported.
13098dlopen_self_static=$enable_dlopen_self_static
13099
13100# Commands to strip libraries.
13101old_striplib=$lt_old_striplib
13102striplib=$lt_striplib
13103
13104
13105# The linker used to build libraries.
13106LD=$lt_LD
13107
13108# Commands used to build an old-style archive.
13109old_archive_cmds=$lt_old_archive_cmds
13110
13111# A language specific compiler.
13112CC=$lt_compiler
13113
13114# Is the compiler the GNU compiler?
13115with_gcc=$GCC
13116
13117# Compiler flag to turn off builtin functions.
13118no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13119
13120# How to pass a linker flag through the compiler.
13121wl=$lt_lt_prog_compiler_wl
13122
13123# Additional compiler flags for building library objects.
13124pic_flag=$lt_lt_prog_compiler_pic
13125
13126# Compiler flag to prevent dynamic linking.
13127link_static_flag=$lt_lt_prog_compiler_static
13128
13129# Does compiler simultaneously support -c and -o options?
13130compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13131
13132# Whether or not to add -lc for building shared libraries.
13133build_libtool_need_lc=$archive_cmds_need_lc
13134
13135# Whether or not to disallow shared libs when runtime libs are static.
13136allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13137
13138# Compiler flag to allow reflexive dlopens.
13139export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13140
13141# Compiler flag to generate shared objects directly from archives.
13142whole_archive_flag_spec=$lt_whole_archive_flag_spec
13143
13144# Whether the compiler copes with passing no objects directly.
13145compiler_needs_object=$lt_compiler_needs_object
13146
13147# Create an old-style archive from a shared archive.
13148old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13149
13150# Create a temporary old-style archive to link instead of a shared archive.
13151old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13152
13153# Commands used to build a shared archive.
13154archive_cmds=$lt_archive_cmds
13155archive_expsym_cmds=$lt_archive_expsym_cmds
13156
13157# Commands used to build a loadable module if different from building
13158# a shared archive.
13159module_cmds=$lt_module_cmds
13160module_expsym_cmds=$lt_module_expsym_cmds
13161
13162# Whether we are building with GNU ld or not.
13163with_gnu_ld=$lt_with_gnu_ld
13164
13165# Flag that allows shared libraries with undefined symbols to be built.
13166allow_undefined_flag=$lt_allow_undefined_flag
13167
13168# Flag that enforces no undefined symbols.
13169no_undefined_flag=$lt_no_undefined_flag
13170
13171# Flag to hardcode \$libdir into a binary during linking.
13172# This must work even if \$libdir does not exist
13173hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13174
13175# If ld is used when linking, flag to hardcode \$libdir into a binary
13176# during linking. This must work even if \$libdir does not exist.
13177hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13178
13179# Whether we need a single "-rpath" flag with a separated argument.
13180hardcode_libdir_separator=$lt_hardcode_libdir_separator
13181
13182# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13183# DIR into the resulting binary.
13184hardcode_direct=$hardcode_direct
13185
13186# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13187# DIR into the resulting binary and the resulting library dependency is
13188# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13189# library is relocated.
13190hardcode_direct_absolute=$hardcode_direct_absolute
13191
13192# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13193# into the resulting binary.
13194hardcode_minus_L=$hardcode_minus_L
13195
13196# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13197# into the resulting binary.
13198hardcode_shlibpath_var=$hardcode_shlibpath_var
13199
13200# Set to "yes" if building a shared library automatically hardcodes DIR
13201# into the library and all subsequent libraries and executables linked
13202# against it.
13203hardcode_automatic=$hardcode_automatic
13204
13205# Set to yes if linker adds runtime paths of dependent libraries
13206# to runtime path list.
13207inherit_rpath=$inherit_rpath
13208
13209# Whether libtool must link a program against all its dependency libraries.
13210link_all_deplibs=$link_all_deplibs
13211
13212# Fix the shell variable \$srcfile for the compiler.
13213fix_srcfile_path=$lt_fix_srcfile_path
13214
13215# Set to "yes" if exported symbols are required.
13216always_export_symbols=$always_export_symbols
13217
13218# The commands to list exported symbols.
13219export_symbols_cmds=$lt_export_symbols_cmds
13220
13221# Symbols that should not be listed in the preloaded symbols.
13222exclude_expsyms=$lt_exclude_expsyms
13223
13224# Symbols that must always be exported.
13225include_expsyms=$lt_include_expsyms
13226
13227# Commands necessary for linking programs (against libraries) with templates.
13228prelink_cmds=$lt_prelink_cmds
13229
13230# Specify filename containing input files.
13231file_list_spec=$lt_file_list_spec
13232
13233# How to hardcode a shared library path into an executable.
13234hardcode_action=$hardcode_action
13235
13236# ### END LIBTOOL CONFIG
13237
13238_LT_EOF
13239
13240 case $host_os in
13241 aix3*)
13242 cat <<\_LT_EOF >> "$cfgfile"
13243# AIX sometimes has problems with the GCC collect2 program. For some
13244# reason, if we set the COLLECT_NAMES environment variable, the problems
13245# vanish in a puff of smoke.
13246if test "X${COLLECT_NAMES+set}" != Xset; then
13247 COLLECT_NAMES=
13248 export COLLECT_NAMES
13249fi
13250_LT_EOF
13251 ;;
13252 esac
13253
13254
13255ltmain="$ac_aux_dir/ltmain.sh"
13256
13257
13258 # We use sed instead of cat because bash on DJGPP gets confused if
13259 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13260 # text mode, it properly converts lines to CR/LF. This bash problem
13261 # is reportedly fixed, but why not run on old versions too?
13262 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13263 || (rm -f "$cfgfile"; exit 1)
13264
13265 case $xsi_shell in
13266 yes)
13267 cat << \_LT_EOF >> "$cfgfile"
13268
13269# func_dirname file append nondir_replacement
13270# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13271# otherwise set result to NONDIR_REPLACEMENT.
13272func_dirname ()
13273{
13274 case ${1} in
13275 */*) func_dirname_result="${1%/*}${2}" ;;
13276 * ) func_dirname_result="${3}" ;;
13277 esac
13278}
13279
13280# func_basename file
13281func_basename ()
13282{
13283 func_basename_result="${1##*/}"
13284}
13285
13286# func_dirname_and_basename file append nondir_replacement
13287# perform func_basename and func_dirname in a single function
13288# call:
13289# dirname: Compute the dirname of FILE. If nonempty,
13290# add APPEND to the result, otherwise set result
13291# to NONDIR_REPLACEMENT.
13292# value returned in "$func_dirname_result"
13293# basename: Compute filename of FILE.
13294# value retuned in "$func_basename_result"
13295# Implementation must be kept synchronized with func_dirname
13296# and func_basename. For efficiency, we do not delegate to
13297# those functions but instead duplicate the functionality here.
13298func_dirname_and_basename ()
13299{
13300 case ${1} in
13301 */*) func_dirname_result="${1%/*}${2}" ;;
13302 * ) func_dirname_result="${3}" ;;
13303 esac
13304 func_basename_result="${1##*/}"
13305}
13306
13307# func_stripname prefix suffix name
13308# strip PREFIX and SUFFIX off of NAME.
13309# PREFIX and SUFFIX must not contain globbing or regex special
13310# characters, hashes, percent signs, but SUFFIX may contain a leading
13311# dot (in which case that matches only a dot).
13312func_stripname ()
13313{
13314 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13315 # positional parameters, so assign one to ordinary parameter first.
13316 func_stripname_result=${3}
13317 func_stripname_result=${func_stripname_result#"${1}"}
13318 func_stripname_result=${func_stripname_result%"${2}"}
13319}
13320
13321# func_opt_split
13322func_opt_split ()
13323{
13324 func_opt_split_opt=${1%%=*}
13325 func_opt_split_arg=${1#*=}
13326}
13327
13328# func_lo2o object
13329func_lo2o ()
13330{
13331 case ${1} in
13332 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13333 *) func_lo2o_result=${1} ;;
13334 esac
13335}
13336
13337# func_xform libobj-or-source
13338func_xform ()
13339{
13340 func_xform_result=${1%.*}.lo
13341}
13342
13343# func_arith arithmetic-term...
13344func_arith ()
13345{
13346 func_arith_result=$(( $* ))
13347}
13348
13349# func_len string
13350# STRING may not start with a hyphen.
13351func_len ()
13352{
13353 func_len_result=${#1}
13354}
13355
13356_LT_EOF
13357 ;;
13358 *) # Bourne compatible functions.
13359 cat << \_LT_EOF >> "$cfgfile"
13360
13361# func_dirname file append nondir_replacement
13362# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13363# otherwise set result to NONDIR_REPLACEMENT.
13364func_dirname ()
13365{
13366 # Extract subdirectory from the argument.
13367 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13368 if test "X$func_dirname_result" = "X${1}"; then
13369 func_dirname_result="${3}"
13370 else
13371 func_dirname_result="$func_dirname_result${2}"
13372 fi
13373}
13374
13375# func_basename file
13376func_basename ()
13377{
13378 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13379}
13380
13381
13382# func_stripname prefix suffix name
13383# strip PREFIX and SUFFIX off of NAME.
13384# PREFIX and SUFFIX must not contain globbing or regex special
13385# characters, hashes, percent signs, but SUFFIX may contain a leading
13386# dot (in which case that matches only a dot).
13387# func_strip_suffix prefix name
13388func_stripname ()
13389{
13390 case ${2} in
13391 .*) func_stripname_result=`$ECHO "X${3}" \
13392 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13393 *) func_stripname_result=`$ECHO "X${3}" \
13394 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13395 esac
13396}
13397
13398# sed scripts:
13399my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13400my_sed_long_arg='1s/^-[^=]*=//'
13401
13402# func_opt_split
13403func_opt_split ()
13404{
13405 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13406 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13407}
13408
13409# func_lo2o object
13410func_lo2o ()
13411{
13412 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13413}
13414
13415# func_xform libobj-or-source
13416func_xform ()
13417{
13418 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13419}
13420
13421# func_arith arithmetic-term...
13422func_arith ()
13423{
13424 func_arith_result=`expr "$@"`
13425}
13426
13427# func_len string
13428# STRING may not start with a hyphen.
13429func_len ()
13430{
13431 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13432}
13433
13434_LT_EOF
13435esac
13436
13437case $lt_shell_append in
13438 yes)
13439 cat << \_LT_EOF >> "$cfgfile"
13440
13441# func_append var value
13442# Append VALUE to the end of shell variable VAR.
13443func_append ()
13444{
13445 eval "$1+=\$2"
13446}
13447_LT_EOF
13448 ;;
13449 *)
13450 cat << \_LT_EOF >> "$cfgfile"
13451
13452# func_append var value
13453# Append VALUE to the end of shell variable VAR.
13454func_append ()
13455{
13456 eval "$1=\$$1\$2"
13457}
13458
13459_LT_EOF
13460 ;;
13461 esac
13462
13463
13464 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13465 || (rm -f "$cfgfile"; exit 1)
13466
13467 mv -f "$cfgfile" "$ofile" ||
13468 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13469 chmod +x "$ofile"
13470
13471 ;;
mlcreech94984912008-03-04 19:03:08 +000013472
drh8b727472009-01-19 18:18:40 +000013473 esac
13474done # for ac_tag
13475
drh71eb93e2001-09-28 01:34:43 +000013476
dana9f39fd2011-08-12 16:34:42 +000013477as_fn_exit 0
a.rottmann84e63352003-03-24 09:42:16 +000013478_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013479ac_clean_files=$ac_clean_files_save
13480
drh8b727472009-01-19 18:18:40 +000013481test $ac_write_fail = 0 ||
dana9f39fd2011-08-12 16:34:42 +000013482 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013483
a.rottmann84e63352003-03-24 09:42:16 +000013484
drh71eb93e2001-09-28 01:34:43 +000013485# configure is writing to config.log, and then calls config.status.
13486# config.status does its own redirection, appending to config.log.
13487# Unfortunately, on DOS this fails, as config.log is still kept open
13488# by configure, so config.status won't be able to write to it; its
13489# output is simply discarded. So we exec the FD to /dev/null,
13490# effectively closing config.log, so it can be properly (re)opened and
13491# appended to by config.status. When coming back to configure, we
13492# need to make the FD available again.
13493if test "$no_create" != yes; then
13494 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000013495 ac_config_status_args=
13496 test "$silent" = yes &&
13497 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000013498 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000013499 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000013500 exec 5>>config.log
13501 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13502 # would make configure fail if this is the last instruction.
dana9f39fd2011-08-12 16:34:42 +000013503 $ac_cs_success || as_fn_exit $?
drh71eb93e2001-09-28 01:34:43 +000013504fi
drh8b727472009-01-19 18:18:40 +000013505if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
dana9f39fd2011-08-12 16:34:42 +000013506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13507$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
drh8b727472009-01-19 18:18:40 +000013508fi
drhbc7a22d2009-10-13 22:47:13 +000013509