blob: c09d6d397e84de528e0f4608d9b18e091a5502e0 [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.
mlcreech636a9952008-05-05 22:52:56 +00003# Generated by GNU Autoconf 2.62 for sqlite 3.5.8.
drh75897232000-05-29 14:26:00 +00004#
mlcreech94984912008-03-04 19:03:08 +00005# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
mlcreech636a9952008-05-05 22:52:56 +00006# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
drh75897232000-05-29 14:26:00 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00009## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
mlcreech94984912008-03-04 19:03:08 +000013# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
a.rottmann84e63352003-03-24 09:42:16 +000015if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
mlcreech636a9952008-05-05 22:52:56 +000018 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000019 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
mlcreech94984912008-03-04 19:03:08 +000021 setopt NO_GLOB_SUBST
drh613a0fe2007-11-23 17:31:17 +000022else
mlcreech94984912008-03-04 19:03:08 +000023 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
a.rottmann84e63352003-03-24 09:42:16 +000027fi
28
29
a.rottmann84e63352003-03-24 09:42:16 +000030
31
mlcreech94984912008-03-04 19:03:08 +000032# PATH needs CR
a.rottmann84e63352003-03-24 09:42:16 +000033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
mlcreech636a9952008-05-05 22:52:56 +000040as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
a.rottmann84e63352003-03-24 09:42:16 +000072# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
mlcreech636a9952008-05-05 22:52:56 +000074 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
a.rottmann84e63352003-03-24 09:42:16 +000079fi
80
mlcreech94984912008-03-04 19:03:08 +000081# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84else
85 as_unset=false
86fi
a.rottmann84e63352003-03-24 09:42:16 +000087
mlcreech94984912008-03-04 19:03:08 +000088
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
mlcreech94984912008-03-04 19:03:08 +000094IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann84e63352003-03-24 09:42:16 +0000100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
mlcreech94984912008-03-04 19:03:08 +0000106IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +0000107
mlcreech94984912008-03-04 19:03:08 +0000108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
mlcreech636a9952008-05-05 22:52:56 +0000116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
mlcreech94984912008-03-04 19:03:08 +0000117 { (exit 1); exit 1; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
mlcreech636a9952008-05-05 22:52:56 +0000129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +0000133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138else
139 as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
mlcreech636a9952008-05-05 22:52:56 +0000154$as_echo X/"$0" |
mlcreech94984912008-03-04 19:03:08 +0000155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
171
172
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
178fi
179
mlcreech636a9952008-05-05 22:52:56 +0000180 if test $as_have_required = yes && (eval ":
mlcreech94984912008-03-04 19:03:08 +0000181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
196
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
204
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
a.rottmann84e63352003-03-24 09:42:16 +0000240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
mlcreech94984912008-03-04 19:03:08 +0000245 case $as_dir in
a.rottmann84e63352003-03-24 09:42:16 +0000246 /*)
mlcreech94984912008-03-04 19:03:08 +0000247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251done
252IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
mlcreech636a9952008-05-05 22:52:56 +0000262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
mlcreech94984912008-03-04 19:03:08 +0000263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
mlcreech636a9952008-05-05 22:52:56 +0000283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
mlcreech94984912008-03-04 19:03:08 +0000284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
drh613a0fe2007-11-23 17:31:17 +0000347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
drh613a0fe2007-11-23 17:31:17 +0000349 test "x$as_lineno_1" != "x$as_lineno_2" &&
mlcreech94984912008-03-04 19:03:08 +0000350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
mlcreech636a9952008-05-05 22:52:56 +0000363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
mlcreech94984912008-03-04 19:03:08 +0000367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
mlcreech636a9952008-05-05 22:52:56 +0000435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
mlcreech94984912008-03-04 19:03:08 +0000439}
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
a.rottmann84e63352003-03-24 09:42:16 +0000447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
mlcreech94984912008-03-04 19:03:08 +0000450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
a.rottmann84e63352003-03-24 09:42:16 +0000455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
mlcreech94984912008-03-04 19:03:08 +0000456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +0000462 sed '
mlcreech94984912008-03-04 19:03:08 +0000463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
a.rottmann84e63352003-03-24 09:42:16 +0000467 N
mlcreech94984912008-03-04 19:03:08 +0000468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a.rottmann84e63352003-03-24 09:42:16 +0000470 t loop
mlcreech94984912008-03-04 19:03:08 +0000471 s/-\n.*//
a.rottmann84e63352003-03-24 09:42:16 +0000472 ' >$as_me.lineno &&
mlcreech94984912008-03-04 19:03:08 +0000473 chmod +x "$as_me.lineno" ||
mlcreech636a9952008-05-05 22:52:56 +0000474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
a.rottmann84e63352003-03-24 09:42:16 +0000475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
mlcreech94984912008-03-04 19:03:08 +0000479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
a.rottmann84e63352003-03-24 09:42:16 +0000481 # Exit status is that of the last command.
482 exit
483}
484
485
mlcreech94984912008-03-04 19:03:08 +0000486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499*)
500 ECHO_N='-n';;
a.rottmann84e63352003-03-24 09:42:16 +0000501esac
mlcreech94984912008-03-04 19:03:08 +0000502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
a.rottmann84e63352003-03-24 09:42:16 +0000504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
mlcreech94984912008-03-04 19:03:08 +0000510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
mlcreech636a9952008-05-05 22:52:56 +0000514 mkdir conf$$.dir 2>/dev/null
mlcreech94984912008-03-04 19:03:08 +0000515fi
mlcreech636a9952008-05-05 22:52:56 +0000516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
a.rottmann84e63352003-03-24 09:42:16 +0000528 as_ln_s='cp -p'
mlcreech636a9952008-05-05 22:52:56 +0000529 fi
a.rottmann84e63352003-03-24 09:42:16 +0000530else
531 as_ln_s='cp -p'
532fi
mlcreech94984912008-03-04 19:03:08 +0000533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +0000535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
a.rottmann964dbb12004-02-26 19:47:42 +0000539 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +0000540 as_mkdir_p=false
541fi
542
mlcreech94984912008-03-04 19:03:08 +0000543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
mlcreech636a9952008-05-05 22:52:56 +0000554 test -d "$1/.";
mlcreech94984912008-03-04 19:03:08 +0000555 else
556 case $1 in
mlcreech636a9952008-05-05 22:52:56 +0000557 -*)set "./$1";;
mlcreech94984912008-03-04 19:03:08 +0000558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563fi
564as_executable_p=$as_test_x
a.rottmann84e63352003-03-24 09:42:16 +0000565
566# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +0000567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000568
569# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +0000570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000571
572
drh75897232000-05-29 14:26:00 +0000573
a.rottmann84e63352003-03-24 09:42:16 +0000574
drh71eb93e2001-09-28 01:34:43 +0000575# Check that we are running under the correct shell.
576SHELL=${CONFIG_SHELL-/bin/sh}
577
mlcreech636a9952008-05-05 22:52:56 +0000578case X$lt_ECHO in
drh71eb93e2001-09-28 01:34:43 +0000579X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
mlcreech636a9952008-05-05 22:52:56 +0000581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
drh71eb93e2001-09-28 01:34:43 +0000582 ;;
583esac
584
mlcreech636a9952008-05-05 22:52:56 +0000585ECHO=${lt_ECHO-echo}
drh71eb93e2001-09-28 01:34:43 +0000586if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
591 :
mlcreech636a9952008-05-05 22:52:56 +0000592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
drh71eb93e2001-09-28 01:34:43 +0000594 :
595else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
598fi
599
600if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
mlcreech636a9952008-05-05 22:52:56 +0000603 cat <<_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +0000604$*
mlcreech636a9952008-05-05 22:52:56 +0000605_LT_EOF
drh71eb93e2001-09-28 01:34:43 +0000606 exit 0
607fi
608
609# The HP-UX ksh and POSIX shell print the target directory to stdout
610# if CDPATH is set.
vapier7f19c022007-02-17 14:46:31 +0000611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
drh71eb93e2001-09-28 01:34:43 +0000612
mlcreech636a9952008-05-05 22:52:56 +0000613if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
622 fi
623 done
624 fi
drh71eb93e2001-09-28 01:34:43 +0000625
mlcreech636a9952008-05-05 22:52:56 +0000626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 :
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
634 #
635 # So, first we look for a working echo in the user's PATH.
drh71eb93e2001-09-28 01:34:43 +0000636
mlcreech636a9952008-05-05 22:52:56 +0000637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
646 fi
647 done
a.rottmann9bc8b932004-02-29 15:18:31 +0000648 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +0000649
mlcreech636a9952008-05-05 22:52:56 +0000650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
drh71eb93e2001-09-28 01:34:43 +0000665 else
mlcreech636a9952008-05-05 22:52:56 +0000666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
672 :
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
drh71eb93e2001-09-28 01:34:43 +0000690
mlcreech636a9952008-05-05 22:52:56 +0000691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
695 fi
696 prev="$cmd"
697 done
698
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
drh71eb93e2001-09-28 01:34:43 +0000706 fi
mlcreech636a9952008-05-05 22:52:56 +0000707 fi
drh71eb93e2001-09-28 01:34:43 +0000708 fi
709 fi
710 fi
711fi
drh71eb93e2001-09-28 01:34:43 +0000712
713# Copy echo and quote the copy suitably for passing to libtool from
714# the Makefile, instead of quoting the original, which is used later.
mlcreech636a9952008-05-05 22:52:56 +0000715lt_ECHO=$ECHO
716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
drh71eb93e2001-09-28 01:34:43 +0000718fi
719
drh71eb93e2001-09-28 01:34:43 +0000720
drh71eb93e2001-09-28 01:34:43 +0000721
a.rottmann9bc8b932004-02-29 15:18:31 +0000722
mlcreech94984912008-03-04 19:03:08 +0000723exec 7<&0 </dev/null 6>&1
724
drh71eb93e2001-09-28 01:34:43 +0000725# Name of the host.
726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727# so uname gets run too.
728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
drh71eb93e2001-09-28 01:34:43 +0000730#
731# Initializations.
732#
drh75897232000-05-29 14:26:00 +0000733ac_default_prefix=/usr/local
mlcreech94984912008-03-04 19:03:08 +0000734ac_clean_files=
a.rottmann84e63352003-03-24 09:42:16 +0000735ac_config_libobj_dir=.
mlcreech94984912008-03-04 19:03:08 +0000736LIBOBJS=
drh71eb93e2001-09-28 01:34:43 +0000737cross_compiling=no
738subdirs=
a.rottmann84e63352003-03-24 09:42:16 +0000739MFLAGS=
740MAKEFLAGS=
drh71eb93e2001-09-28 01:34:43 +0000741SHELL=${CONFIG_SHELL-/bin/sh}
742
a.rottmann84e63352003-03-24 09:42:16 +0000743# Identity of this package.
mlcreechb87057f2008-03-06 07:19:20 +0000744PACKAGE_NAME='sqlite'
745PACKAGE_TARNAME='sqlite'
mlcreech636a9952008-05-05 22:52:56 +0000746PACKAGE_VERSION='3.5.8'
747PACKAGE_STRING='sqlite 3.5.8'
mlcreechb87057f2008-03-06 07:19:20 +0000748PACKAGE_BUGREPORT=''
a.rottmann84e63352003-03-24 09:42:16 +0000749
a.rottmann84e63352003-03-24 09:42:16 +0000750# Factoring default headers for most tests.
751ac_includes_default="\
752#include <stdio.h>
mlcreech94984912008-03-04 19:03:08 +0000753#ifdef HAVE_SYS_TYPES_H
a.rottmann84e63352003-03-24 09:42:16 +0000754# include <sys/types.h>
755#endif
mlcreech94984912008-03-04 19:03:08 +0000756#ifdef HAVE_SYS_STAT_H
a.rottmann84e63352003-03-24 09:42:16 +0000757# include <sys/stat.h>
758#endif
mlcreech94984912008-03-04 19:03:08 +0000759#ifdef STDC_HEADERS
a.rottmann84e63352003-03-24 09:42:16 +0000760# include <stdlib.h>
761# include <stddef.h>
762#else
mlcreech94984912008-03-04 19:03:08 +0000763# ifdef HAVE_STDLIB_H
a.rottmann84e63352003-03-24 09:42:16 +0000764# include <stdlib.h>
765# endif
766#endif
mlcreech94984912008-03-04 19:03:08 +0000767#ifdef HAVE_STRING_H
768# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
a.rottmann84e63352003-03-24 09:42:16 +0000769# include <memory.h>
770# endif
771# include <string.h>
772#endif
mlcreech94984912008-03-04 19:03:08 +0000773#ifdef HAVE_STRINGS_H
a.rottmann84e63352003-03-24 09:42:16 +0000774# include <strings.h>
775#endif
mlcreech94984912008-03-04 19:03:08 +0000776#ifdef HAVE_INTTYPES_H
a.rottmann84e63352003-03-24 09:42:16 +0000777# include <inttypes.h>
a.rottmann84e63352003-03-24 09:42:16 +0000778#endif
mlcreech94984912008-03-04 19:03:08 +0000779#ifdef HAVE_STDINT_H
780# include <stdint.h>
781#endif
782#ifdef HAVE_UNISTD_H
a.rottmann84e63352003-03-24 09:42:16 +0000783# include <unistd.h>
784#endif"
785
mlcreech94984912008-03-04 19:03:08 +0000786ac_subst_vars='SHELL
787PATH_SEPARATOR
788PACKAGE_NAME
789PACKAGE_TARNAME
790PACKAGE_VERSION
791PACKAGE_STRING
792PACKAGE_BUGREPORT
793exec_prefix
794prefix
795program_transform_name
796bindir
797sbindir
798libexecdir
799datarootdir
800datadir
801sysconfdir
802sharedstatedir
803localstatedir
804includedir
805oldincludedir
806docdir
807infodir
808htmldir
809dvidir
810pdfdir
811psdir
812libdir
813localedir
814mandir
815DEFS
816ECHO_C
817ECHO_N
818ECHO_T
819LIBS
820build_alias
821host_alias
822target_alias
mlcreech636a9952008-05-05 22:52:56 +0000823LIBTOOL
mlcreech94984912008-03-04 19:03:08 +0000824build
825build_cpu
826build_vendor
827build_os
828host
829host_cpu
830host_vendor
831host_os
832CC
833CFLAGS
834LDFLAGS
835CPPFLAGS
836ac_ct_CC
837EXEEXT
838OBJEXT
mlcreech636a9952008-05-05 22:52:56 +0000839SED
mlcreech94984912008-03-04 19:03:08 +0000840GREP
841EGREP
mlcreech636a9952008-05-05 22:52:56 +0000842FGREP
843LD
844DUMPBIN
845ac_ct_DUMPBIN
846NM
mlcreech94984912008-03-04 19:03:08 +0000847LN_S
mlcreech94984912008-03-04 19:03:08 +0000848AR
mlcreech94984912008-03-04 19:03:08 +0000849STRIP
mlcreech636a9952008-05-05 22:52:56 +0000850RANLIB
851lt_ECHO
852DSYMUTIL
853NMEDIT
854LIPO
855OTOOL
856OTOOL64
mlcreech94984912008-03-04 19:03:08 +0000857CPP
mlcreech94984912008-03-04 19:03:08 +0000858INSTALL_PROGRAM
859INSTALL_SCRIPT
860INSTALL_DATA
861AWK
mlcreechab1c47b2008-03-09 02:51:10 +0000862TCLSH_CMD
mlcreech94984912008-03-04 19:03:08 +0000863program_prefix
864VERSION
865RELEASE
866VERSION_NUMBER
867BUILD_CC
mlcreech94984912008-03-04 19:03:08 +0000868SQLITE_THREADSAFE
mlcreech94984912008-03-04 19:03:08 +0000869XTHREADCONNECT
870THREADSOVERRIDELOCKS
871ALLOWRELEASE
872TEMP_STORE
873BUILD_EXEEXT
874OS_UNIX
875OS_WIN
876OS_OS2
877TARGET_EXEEXT
878TCL_VERSION
879TCL_BIN_DIR
880TCL_SRC_DIR
881TCL_LIBS
882TCL_INCLUDE_SPEC
883TCL_LIB_FILE
884TCL_LIB_FLAG
885TCL_LIB_SPEC
886TCL_STUB_LIB_FILE
887TCL_STUB_LIB_FLAG
888TCL_STUB_LIB_SPEC
889HAVE_TCL
890TARGET_READLINE_LIBS
891TARGET_READLINE_INC
892TARGET_HAVE_READLINE
893TARGET_DEBUG
894USE_AMALGAMATION
mlcreecha4edab02008-03-06 04:14:17 +0000895LOADEXTENSION_FLAGS
mlcreechaac7b932008-04-01 02:45:22 +0000896USE_GCOV
mlcreech8390bc32008-03-06 08:54:38 +0000897BUILD_CFLAGS
mlcreech94984912008-03-04 19:03:08 +0000898LIBOBJS
899LTLIBOBJS'
a.rottmann84e63352003-03-24 09:42:16 +0000900ac_subst_files=''
mlcreech636a9952008-05-05 22:52:56 +0000901ac_user_opts='
902enable_option_checking
903enable_shared
904enable_static
905with_pic
906enable_fast_install
907with_gnu_ld
908enable_libtool_lock
909enable_largefile
910with_hints
911enable_threadsafe
912enable_cross_thread_connections
913enable_threads_override_locks
914enable_releasemode
915enable_tempstore
916enable_tcl
917with_tcl
918enable_readline
919with_readline_lib
920with_readline_inc
921enable_debug
922enable_amalgamation
923enable_load_extension
924enable_gcov
925'
mlcreech94984912008-03-04 19:03:08 +0000926 ac_precious_vars='build_alias
927host_alias
928target_alias
929CC
930CFLAGS
931LDFLAGS
932LIBS
933CPPFLAGS
mlcreech636a9952008-05-05 22:52:56 +0000934CPP'
mlcreech94984912008-03-04 19:03:08 +0000935
drh75897232000-05-29 14:26:00 +0000936
937# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000938ac_init_help=
939ac_init_version=false
mlcreech636a9952008-05-05 22:52:56 +0000940ac_unrecognized_opts=
941ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000942# The variables have the same names as the options, with
943# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000944cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000945exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000946no_create=
drh75897232000-05-29 14:26:00 +0000947no_recursion=
948prefix=NONE
949program_prefix=NONE
950program_suffix=NONE
951program_transform_name=s,x,x,
952silent=
953site=
954srcdir=
drh75897232000-05-29 14:26:00 +0000955verbose=
956x_includes=NONE
957x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000958
959# Installation directory options.
960# These are left unexpanded so users can "make install exec_prefix=/foo"
961# and all the variables that are supposed to be based on exec_prefix
962# by default will actually change.
963# Use braces instead of parens because sh, perl, etc. also accept them.
mlcreech94984912008-03-04 19:03:08 +0000964# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000965bindir='${exec_prefix}/bin'
966sbindir='${exec_prefix}/sbin'
967libexecdir='${exec_prefix}/libexec'
mlcreech94984912008-03-04 19:03:08 +0000968datarootdir='${prefix}/share'
969datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000970sysconfdir='${prefix}/etc'
971sharedstatedir='${prefix}/com'
972localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000973includedir='${prefix}/include'
974oldincludedir='/usr/include'
mlcreechb87057f2008-03-06 07:19:20 +0000975docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
mlcreech94984912008-03-04 19:03:08 +0000976infodir='${datarootdir}/info'
977htmldir='${docdir}'
978dvidir='${docdir}'
979pdfdir='${docdir}'
980psdir='${docdir}'
981libdir='${exec_prefix}/lib'
982localedir='${datarootdir}/locale'
983mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000984
drh75897232000-05-29 14:26:00 +0000985ac_prev=
mlcreech94984912008-03-04 19:03:08 +0000986ac_dashdash=
drh75897232000-05-29 14:26:00 +0000987for ac_option
988do
drh75897232000-05-29 14:26:00 +0000989 # If the previous option needs an argument, assign it.
990 if test -n "$ac_prev"; then
mlcreech94984912008-03-04 19:03:08 +0000991 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000992 ac_prev=
993 continue
994 fi
995
mlcreech94984912008-03-04 19:03:08 +0000996 case $ac_option in
997 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998 *) ac_optarg=yes ;;
999 esac
drh75897232000-05-29 14:26:00 +00001000
1001 # Accept the important Cygnus configure options, so we can diagnose typos.
1002
mlcreech94984912008-03-04 19:03:08 +00001003 case $ac_dashdash$ac_option in
1004 --)
1005 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +00001006
1007 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008 ac_prev=bindir ;;
1009 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +00001010 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001011
1012 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +00001013 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +00001014 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +00001015 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001016
1017 -cache-file | --cache-file | --cache-fil | --cache-fi \
1018 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019 ac_prev=cache_file ;;
1020 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +00001022 cache_file=$ac_optarg ;;
1023
1024 --config-cache | -C)
1025 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +00001026
mlcreech94984912008-03-04 19:03:08 +00001027 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +00001028 ac_prev=datadir ;;
mlcreech94984912008-03-04 19:03:08 +00001029 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +00001030 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001031
mlcreech94984912008-03-04 19:03:08 +00001032 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033 | --dataroo | --dataro | --datar)
1034 ac_prev=datarootdir ;;
1035 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037 datarootdir=$ac_optarg ;;
1038
drh75897232000-05-29 14:26:00 +00001039 -disable-* | --disable-*)
mlcreech636a9952008-05-05 22:52:56 +00001040 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001041 # Reject names that are not valid shell variable names.
mlcreech636a9952008-05-05 22:52:56 +00001042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
drh71eb93e2001-09-28 01:34:43 +00001044 { (exit 1); exit 1; }; }
mlcreech636a9952008-05-05 22:52:56 +00001045 ac_useropt_orig=$ac_useropt
1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1048 *"
1049"enable_$ac_useropt"
1050"*) ;;
1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1052 ac_unrecognized_sep=', ';;
1053 esac
1054 eval enable_$ac_useropt=no ;;
mlcreech94984912008-03-04 19:03:08 +00001055
1056 -docdir | --docdir | --docdi | --doc | --do)
1057 ac_prev=docdir ;;
1058 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1059 docdir=$ac_optarg ;;
1060
1061 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1062 ac_prev=dvidir ;;
1063 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1064 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001065
1066 -enable-* | --enable-*)
mlcreech636a9952008-05-05 22:52:56 +00001067 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001068 # Reject names that are not valid shell variable names.
mlcreech636a9952008-05-05 22:52:56 +00001069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
drh71eb93e2001-09-28 01:34:43 +00001071 { (exit 1); exit 1; }; }
mlcreech636a9952008-05-05 22:52:56 +00001072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1075 *"
1076"enable_$ac_useropt"
1077"*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval enable_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001082
1083 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1084 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1085 | --exec | --exe | --ex)
1086 ac_prev=exec_prefix ;;
1087 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1088 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1089 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001090 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001091
1092 -gas | --gas | --ga | --g)
1093 # Obsolete; use --with-gas.
1094 with_gas=yes ;;
1095
drh71eb93e2001-09-28 01:34:43 +00001096 -help | --help | --hel | --he | -h)
1097 ac_init_help=long ;;
1098 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1099 ac_init_help=recursive ;;
1100 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1101 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001102
1103 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001104 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001105 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001106 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001107
mlcreech94984912008-03-04 19:03:08 +00001108 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1109 ac_prev=htmldir ;;
1110 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1111 | --ht=*)
1112 htmldir=$ac_optarg ;;
1113
drh75897232000-05-29 14:26:00 +00001114 -includedir | --includedir | --includedi | --included | --include \
1115 | --includ | --inclu | --incl | --inc)
1116 ac_prev=includedir ;;
1117 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1118 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001119 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001120
1121 -infodir | --infodir | --infodi | --infod | --info | --inf)
1122 ac_prev=infodir ;;
1123 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001124 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001125
1126 -libdir | --libdir | --libdi | --libd)
1127 ac_prev=libdir ;;
1128 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001129 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001130
1131 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1132 | --libexe | --libex | --libe)
1133 ac_prev=libexecdir ;;
1134 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1135 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001136 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001137
mlcreech94984912008-03-04 19:03:08 +00001138 -localedir | --localedir | --localedi | --localed | --locale)
1139 ac_prev=localedir ;;
1140 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1141 localedir=$ac_optarg ;;
1142
drh75897232000-05-29 14:26:00 +00001143 -localstatedir | --localstatedir | --localstatedi | --localstated \
mlcreech94984912008-03-04 19:03:08 +00001144 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001145 ac_prev=localstatedir ;;
1146 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
mlcreech94984912008-03-04 19:03:08 +00001147 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001148 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001149
1150 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1151 ac_prev=mandir ;;
1152 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001153 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001154
1155 -nfp | --nfp | --nf)
1156 # Obsolete; use --without-fp.
1157 with_fp=no ;;
1158
1159 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001160 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001161 no_create=yes ;;
1162
1163 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165 no_recursion=yes ;;
1166
1167 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1168 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1169 | --oldin | --oldi | --old | --ol | --o)
1170 ac_prev=oldincludedir ;;
1171 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1172 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1173 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001174 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001175
1176 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1177 ac_prev=prefix ;;
1178 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001179 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001180
1181 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1182 | --program-pre | --program-pr | --program-p)
1183 ac_prev=program_prefix ;;
1184 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1185 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001186 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001187
1188 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1189 | --program-suf | --program-su | --program-s)
1190 ac_prev=program_suffix ;;
1191 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1192 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001193 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001194
1195 -program-transform-name | --program-transform-name \
1196 | --program-transform-nam | --program-transform-na \
1197 | --program-transform-n | --program-transform- \
1198 | --program-transform | --program-transfor \
1199 | --program-transfo | --program-transf \
1200 | --program-trans | --program-tran \
1201 | --progr-tra | --program-tr | --program-t)
1202 ac_prev=program_transform_name ;;
1203 -program-transform-name=* | --program-transform-name=* \
1204 | --program-transform-nam=* | --program-transform-na=* \
1205 | --program-transform-n=* | --program-transform-=* \
1206 | --program-transform=* | --program-transfor=* \
1207 | --program-transfo=* | --program-transf=* \
1208 | --program-trans=* | --program-tran=* \
1209 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001210 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001211
mlcreech94984912008-03-04 19:03:08 +00001212 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1213 ac_prev=pdfdir ;;
1214 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1215 pdfdir=$ac_optarg ;;
1216
1217 -psdir | --psdir | --psdi | --psd | --ps)
1218 ac_prev=psdir ;;
1219 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220 psdir=$ac_optarg ;;
1221
drh75897232000-05-29 14:26:00 +00001222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223 | -silent | --silent | --silen | --sile | --sil)
1224 silent=yes ;;
1225
1226 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1227 ac_prev=sbindir ;;
1228 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1229 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001230 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001231
1232 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1233 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1234 | --sharedst | --shareds | --shared | --share | --shar \
1235 | --sha | --sh)
1236 ac_prev=sharedstatedir ;;
1237 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1238 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1239 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1240 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001241 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001242
1243 -site | --site | --sit)
1244 ac_prev=site ;;
1245 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001246 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001247
1248 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1249 ac_prev=srcdir ;;
1250 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001251 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001252
1253 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1254 | --syscon | --sysco | --sysc | --sys | --sy)
1255 ac_prev=sysconfdir ;;
1256 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1257 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001258 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001259
1260 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001261 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001262 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001263 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001264
1265 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1266 verbose=yes ;;
1267
drh71eb93e2001-09-28 01:34:43 +00001268 -version | --version | --versio | --versi | --vers | -V)
1269 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001270
1271 -with-* | --with-*)
mlcreech636a9952008-05-05 22:52:56 +00001272 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001273 # Reject names that are not valid shell variable names.
mlcreech636a9952008-05-05 22:52:56 +00001274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
drh71eb93e2001-09-28 01:34:43 +00001276 { (exit 1); exit 1; }; }
mlcreech636a9952008-05-05 22:52:56 +00001277 ac_useropt_orig=$ac_useropt
1278 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279 case $ac_user_opts in
1280 *"
1281"with_$ac_useropt"
1282"*) ;;
1283 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1284 ac_unrecognized_sep=', ';;
1285 esac
1286 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001287
1288 -without-* | --without-*)
mlcreech636a9952008-05-05 22:52:56 +00001289 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001290 # Reject names that are not valid shell variable names.
mlcreech636a9952008-05-05 22:52:56 +00001291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
drh71eb93e2001-09-28 01:34:43 +00001293 { (exit 1); exit 1; }; }
mlcreech636a9952008-05-05 22:52:56 +00001294 ac_useropt_orig=$ac_useropt
1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1297 *"
1298"with_$ac_useropt"
1299"*) ;;
1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1302 esac
1303 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001304
1305 --x)
1306 # Obsolete; use --with-x.
1307 with_x=yes ;;
1308
1309 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310 | --x-incl | --x-inc | --x-in | --x-i)
1311 ac_prev=x_includes ;;
1312 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001314 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001315
1316 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318 ac_prev=x_libraries ;;
1319 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001321 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001322
mlcreech636a9952008-05-05 22:52:56 +00001323 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
drh71eb93e2001-09-28 01:34:43 +00001324Try \`$0 --help' for more information." >&2
1325 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001326 ;;
1327
drh71eb93e2001-09-28 01:34:43 +00001328 *=*)
1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
mlcreech636a9952008-05-05 22:52:56 +00001332 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
drh71eb93e2001-09-28 01:34:43 +00001333 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001334 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001335 export $ac_envvar ;;
1336
drh75897232000-05-29 14:26:00 +00001337 *)
drh71eb93e2001-09-28 01:34:43 +00001338 # FIXME: should be removed in autoconf 3.0.
mlcreech636a9952008-05-05 22:52:56 +00001339 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
mlcreech636a9952008-05-05 22:52:56 +00001341 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drh71eb93e2001-09-28 01:34:43 +00001342 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
drh75897232000-05-29 14:26:00 +00001343 ;;
1344
1345 esac
1346done
1347
1348if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001349 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
mlcreech636a9952008-05-05 22:52:56 +00001350 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
drh71eb93e2001-09-28 01:34:43 +00001351 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001352fi
1353
mlcreech636a9952008-05-05 22:52:56 +00001354if test -n "$ac_unrecognized_opts"; then
1355 case $enable_option_checking in
1356 no) ;;
1357 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1358 { (exit 1); exit 1; }; } ;;
1359 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360 esac
1361fi
1362
1363# Check all directory arguments for consistency.
mlcreech94984912008-03-04 19:03:08 +00001364for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367 libdir localedir mandir
drh75897232000-05-29 14:26:00 +00001368do
mlcreech94984912008-03-04 19:03:08 +00001369 eval ac_val=\$$ac_var
mlcreech636a9952008-05-05 22:52:56 +00001370 # Remove trailing slashes.
1371 case $ac_val in
1372 */ )
1373 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374 eval $ac_var=\$ac_val;;
1375 esac
1376 # Be sure to have absolute directory names.
drh71eb93e2001-09-28 01:34:43 +00001377 case $ac_val in
mlcreech94984912008-03-04 19:03:08 +00001378 [\\/$]* | ?:[\\/]* ) continue;;
1379 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
drh75897232000-05-29 14:26:00 +00001380 esac
mlcreech636a9952008-05-05 22:52:56 +00001381 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
mlcreech94984912008-03-04 19:03:08 +00001382 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00001383done
drh75897232000-05-29 14:26:00 +00001384
drh71eb93e2001-09-28 01:34:43 +00001385# There might be people who depend on the old broken behavior: `$host'
1386# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001387# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001388build=$build_alias
1389host=$host_alias
1390target=$target_alias
drh75897232000-05-29 14:26:00 +00001391
a.rottmann84e63352003-03-24 09:42:16 +00001392# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001393if test "x$host_alias" != x; then
1394 if test "x$build_alias" = x; then
1395 cross_compiling=maybe
mlcreech636a9952008-05-05 22:52:56 +00001396 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
drh71eb93e2001-09-28 01:34:43 +00001397 If a cross compiler is detected then cross compile mode will be used." >&2
1398 elif test "x$build_alias" != "x$host_alias"; then
1399 cross_compiling=yes
1400 fi
1401fi
1402
1403ac_tool_prefix=
1404test -n "$host_alias" && ac_tool_prefix=$host_alias-
1405
1406test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001407
a.rottmann84e63352003-03-24 09:42:16 +00001408
mlcreech94984912008-03-04 19:03:08 +00001409ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410ac_ls_di=`ls -di .` &&
1411ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
mlcreech636a9952008-05-05 22:52:56 +00001412 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
mlcreech94984912008-03-04 19:03:08 +00001413 { (exit 1); exit 1; }; }
1414test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
mlcreech636a9952008-05-05 22:52:56 +00001415 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
mlcreech94984912008-03-04 19:03:08 +00001416 { (exit 1); exit 1; }; }
1417
1418
drh75897232000-05-29 14:26:00 +00001419# Find the source files, if location was not specified.
1420if test -z "$srcdir"; then
1421 ac_srcdir_defaulted=yes
mlcreech94984912008-03-04 19:03:08 +00001422 # Try the directory containing this script, then the parent directory.
mlcreech636a9952008-05-05 22:52:56 +00001423 ac_confdir=`$as_dirname -- "$as_myself" ||
1424$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425 X"$as_myself" : 'X\(//\)[^/]' \| \
1426 X"$as_myself" : 'X\(//\)$' \| \
1427 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428$as_echo X"$as_myself" |
mlcreech94984912008-03-04 19:03:08 +00001429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1430 s//\1/
1431 q
1432 }
1433 /^X\(\/\/\)[^/].*/{
1434 s//\1/
1435 q
1436 }
1437 /^X\(\/\/\)$/{
1438 s//\1/
1439 q
1440 }
1441 /^X\(\/\).*/{
1442 s//\1/
1443 q
1444 }
1445 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001446 srcdir=$ac_confdir
mlcreech94984912008-03-04 19:03:08 +00001447 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001448 srcdir=..
1449 fi
1450else
1451 ac_srcdir_defaulted=no
1452fi
mlcreech94984912008-03-04 19:03:08 +00001453if test ! -r "$srcdir/$ac_unique_file"; then
1454 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
mlcreech636a9952008-05-05 22:52:56 +00001455 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
drh71eb93e2001-09-28 01:34:43 +00001456 { (exit 1); exit 1; }; }
vapier7f19c022007-02-17 14:46:31 +00001457fi
mlcreech94984912008-03-04 19:03:08 +00001458ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459ac_abs_confdir=`(
mlcreech636a9952008-05-05 22:52:56 +00001460 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
drh613a0fe2007-11-23 17:31:17 +00001461 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001462 pwd)`
1463# When building in place, set srcdir=.
1464if test "$ac_abs_confdir" = "$ac_pwd"; then
1465 srcdir=.
1466fi
1467# Remove unnecessary trailing slashes from srcdir.
1468# Double slashes in file names in object file debugging info
1469# mess up M-x gdb in Emacs.
1470case $srcdir in
1471*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472esac
1473for ac_var in $ac_precious_vars; do
1474 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_env_${ac_var}_value=\$${ac_var}
1476 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1477 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1478done
drh75897232000-05-29 14:26:00 +00001479
drh71eb93e2001-09-28 01:34:43 +00001480#
1481# Report the --help message.
1482#
1483if test "$ac_init_help" = "long"; then
1484 # Omit some internal or obsolete options to make the list less imposing.
1485 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001486 cat <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +00001487\`configure' configures sqlite 3.5.8 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001488
1489Usage: $0 [OPTION]... [VAR=VALUE]...
1490
1491To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492VAR=VALUE. See below for descriptions of some of the useful variables.
1493
1494Defaults for the options are specified in brackets.
1495
1496Configuration:
1497 -h, --help display this help and exit
1498 --help=short display options specific to this package
1499 --help=recursive display the short help of all the included packages
1500 -V, --version display version information and exit
1501 -q, --quiet, --silent do not print \`checking...' messages
1502 --cache-file=FILE cache test results in FILE [disabled]
1503 -C, --config-cache alias for \`--cache-file=config.cache'
1504 -n, --no-create do not create output files
1505 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1506
drh71eb93e2001-09-28 01:34:43 +00001507Installation directories:
1508 --prefix=PREFIX install architecture-independent files in PREFIX
mlcreech636a9952008-05-05 22:52:56 +00001509 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001510 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
mlcreech636a9952008-05-05 22:52:56 +00001511 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001512
1513By default, \`make install' will install all the files in
1514\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1515an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516for instance \`--prefix=\$HOME'.
1517
1518For better control, use the options below.
1519
1520Fine tuning of the installation directories:
mlcreech636a9952008-05-05 22:52:56 +00001521 --bindir=DIR user executables [EPREFIX/bin]
1522 --sbindir=DIR system admin executables [EPREFIX/sbin]
1523 --libexecdir=DIR program executables [EPREFIX/libexec]
1524 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1525 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1526 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1527 --libdir=DIR object code libraries [EPREFIX/lib]
1528 --includedir=DIR C header files [PREFIX/include]
1529 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1530 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1531 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1532 --infodir=DIR info documentation [DATAROOTDIR/info]
1533 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1534 --mandir=DIR man documentation [DATAROOTDIR/man]
1535 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1536 --htmldir=DIR html documentation [DOCDIR]
1537 --dvidir=DIR dvi documentation [DOCDIR]
1538 --pdfdir=DIR pdf documentation [DOCDIR]
1539 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001540_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001541
a.rottmann84e63352003-03-24 09:42:16 +00001542 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001543
1544System types:
1545 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001546 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1547_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001548fi
1549
1550if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001551 case $ac_init_help in
mlcreech636a9952008-05-05 22:52:56 +00001552 short | recursive ) echo "Configuration of sqlite 3.5.8:";;
mlcreechb87057f2008-03-06 07:19:20 +00001553 esac
a.rottmann84e63352003-03-24 09:42:16 +00001554 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001555
1556Optional Features:
mlcreech636a9952008-05-05 22:52:56 +00001557 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001558 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1559 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
mlcreech94984912008-03-04 19:03:08 +00001560 --enable-shared[=PKGS] build shared libraries [default=yes]
1561 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001562 --enable-fast-install[=PKGS]
1563 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001564 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001565 --disable-largefile omit support for large files
drh94e4f822006-02-15 02:00:25 +00001566 --enable-threadsafe Support threadsafe operation
1567 --enable-cross-thread-connections
1568 Allow connection sharing across threads
1569 --enable-threads-override-locks
1570 Threads can override each others locks
1571 --enable-releasemode Support libtool link to release mode
1572 --enable-tempstore Use an in-ram database for temporary tables
1573 (never,no,yes,always)
1574 --disable-tcl do not build TCL extension
vapier7f19c022007-02-17 14:46:31 +00001575 --disable-readline disable readline support [default=detect]
drh94e4f822006-02-15 02:00:25 +00001576 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001577 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001578 separately
mlcreecha4edab02008-03-06 04:14:17 +00001579 --enable-load-extension Enable loading of external extensions
mlcreechaac7b932008-04-01 02:45:22 +00001580 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001581
1582Optional Packages:
1583 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1584 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001585 --with-pic try to use only PIC/non-PIC objects [default=use
1586 both]
mlcreech636a9952008-05-05 22:52:56 +00001587 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh71eb93e2001-09-28 01:34:43 +00001588 --with-hints=FILE Read configuration options from FILE
drh94e4f822006-02-15 02:00:25 +00001589 --with-tcl=DIR directory containing tcl configuration
1590 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001591 --with-readline-lib specify readline library
1592 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001593
1594Some influential environment variables:
1595 CC C compiler command
1596 CFLAGS C compiler flags
1597 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1598 nonstandard directory <lib dir>
mlcreech94984912008-03-04 19:03:08 +00001599 LIBS libraries to pass to the linker, e.g. -l<library>
1600 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1601 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001602 CPP C preprocessor
drh71eb93e2001-09-28 01:34:43 +00001603
1604Use these variables to override the choices made by `configure' or to help
1605it to find libraries and programs with nonstandard names/locations.
1606
a.rottmann84e63352003-03-24 09:42:16 +00001607_ACEOF
mlcreech94984912008-03-04 19:03:08 +00001608ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001609fi
1610
1611if test "$ac_init_help" = "recursive"; then
1612 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001613 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
mlcreech636a9952008-05-05 22:52:56 +00001614 test -d "$ac_dir" ||
1615 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1616 continue
a.rottmann84e63352003-03-24 09:42:16 +00001617 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001618
mlcreech94984912008-03-04 19:03:08 +00001619case "$ac_dir" in
1620.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621*)
mlcreech636a9952008-05-05 22:52:56 +00001622 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
mlcreech94984912008-03-04 19:03:08 +00001623 # A ".." for each directory in $ac_dir_suffix.
mlcreech636a9952008-05-05 22:52:56 +00001624 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
mlcreech94984912008-03-04 19:03:08 +00001625 case $ac_top_builddir_sub in
1626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1628 esac ;;
1629esac
1630ac_abs_top_builddir=$ac_pwd
1631ac_abs_builddir=$ac_pwd$ac_dir_suffix
1632# for backward compatibility:
1633ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001634
a.rottmann84e63352003-03-24 09:42:16 +00001635case $srcdir in
mlcreech94984912008-03-04 19:03:08 +00001636 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001637 ac_srcdir=.
mlcreech94984912008-03-04 19:03:08 +00001638 ac_top_srcdir=$ac_top_builddir_sub
1639 ac_abs_top_srcdir=$ac_pwd ;;
1640 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +00001641 ac_srcdir=$srcdir$ac_dir_suffix;
mlcreech94984912008-03-04 19:03:08 +00001642 ac_top_srcdir=$srcdir
1643 ac_abs_top_srcdir=$srcdir ;;
1644 *) # Relative name.
1645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1646 ac_top_srcdir=$ac_top_build_prefix$srcdir
1647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +00001648esac
mlcreech94984912008-03-04 19:03:08 +00001649ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +00001650
mlcreech94984912008-03-04 19:03:08 +00001651 cd "$ac_dir" || { ac_status=$?; continue; }
1652 # Check for guested configure.
1653 if test -f "$ac_srcdir/configure.gnu"; then
1654 echo &&
1655 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1656 elif test -f "$ac_srcdir/configure"; then
1657 echo &&
1658 $SHELL "$ac_srcdir/configure" --help=recursive
drh71eb93e2001-09-28 01:34:43 +00001659 else
mlcreech636a9952008-05-05 22:52:56 +00001660 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
mlcreech94984912008-03-04 19:03:08 +00001661 fi || ac_status=$?
1662 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001663 done
1664fi
1665
mlcreech94984912008-03-04 19:03:08 +00001666test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001667if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001668 cat <<\_ACEOF
mlcreech636a9952008-05-05 22:52:56 +00001669sqlite configure 3.5.8
1670generated by GNU Autoconf 2.62
drh71eb93e2001-09-28 01:34:43 +00001671
mlcreech94984912008-03-04 19:03:08 +00001672Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
mlcreech636a9952008-05-05 22:52:56 +000016732002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001674This configure script is free software; the Free Software Foundation
1675gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001676_ACEOF
mlcreech94984912008-03-04 19:03:08 +00001677 exit
drh71eb93e2001-09-28 01:34:43 +00001678fi
mlcreech94984912008-03-04 19:03:08 +00001679cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001680This file contains any messages produced by compilers while
1681running configure, to aid debugging if configure makes a mistake.
1682
mlcreech636a9952008-05-05 22:52:56 +00001683It was created by sqlite $as_me 3.5.8, which was
1684generated by GNU Autoconf 2.62. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001685
1686 $ $0 $@
1687
a.rottmann84e63352003-03-24 09:42:16 +00001688_ACEOF
mlcreech94984912008-03-04 19:03:08 +00001689exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00001690{
1691cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001692## --------- ##
1693## Platform. ##
1694## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001695
1696hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1697uname -m = `(uname -m) 2>/dev/null || echo unknown`
1698uname -r = `(uname -r) 2>/dev/null || echo unknown`
1699uname -s = `(uname -s) 2>/dev/null || echo unknown`
1700uname -v = `(uname -v) 2>/dev/null || echo unknown`
1701
1702/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1703/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1704
1705/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1706/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1707/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
mlcreech94984912008-03-04 19:03:08 +00001708/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00001709/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1710/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1711/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1712
drh71eb93e2001-09-28 01:34:43 +00001713_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001714
1715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716for as_dir in $PATH
1717do
1718 IFS=$as_save_IFS
1719 test -z "$as_dir" && as_dir=.
mlcreech636a9952008-05-05 22:52:56 +00001720 $as_echo "PATH: $as_dir"
a.rottmann84e63352003-03-24 09:42:16 +00001721done
mlcreech94984912008-03-04 19:03:08 +00001722IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00001723
drh71eb93e2001-09-28 01:34:43 +00001724} >&5
1725
a.rottmann84e63352003-03-24 09:42:16 +00001726cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001727
a.rottmann84e63352003-03-24 09:42:16 +00001728
1729## ----------- ##
1730## Core tests. ##
1731## ----------- ##
1732
1733_ACEOF
1734
drh71eb93e2001-09-28 01:34:43 +00001735
1736# Keep a trace of the command line.
1737# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001738# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001739# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001740# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001741ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001742ac_configure_args0=
1743ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00001744ac_must_keep_next=false
1745for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001746do
a.rottmann84e63352003-03-24 09:42:16 +00001747 for ac_arg
1748 do
1749 case $ac_arg in
1750 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1751 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1752 | -silent | --silent | --silen | --sile | --sil)
1753 continue ;;
mlcreech94984912008-03-04 19:03:08 +00001754 *\'*)
mlcreech636a9952008-05-05 22:52:56 +00001755 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00001756 esac
1757 case $ac_pass in
1758 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1759 2)
1760 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1761 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00001762 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00001763 else
a.rottmann964dbb12004-02-26 19:47:42 +00001764 case $ac_arg in
1765 *=* | --config-cache | -C | -disable-* | --disable-* \
1766 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1767 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1768 | -with-* | --with-* | -without-* | --without-* | --x)
1769 case "$ac_configure_args0 " in
1770 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1771 esac
1772 ;;
1773 -* ) ac_must_keep_next=true ;;
1774 esac
a.rottmann84e63352003-03-24 09:42:16 +00001775 fi
mlcreech94984912008-03-04 19:03:08 +00001776 ac_configure_args="$ac_configure_args '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00001777 ;;
1778 esac
1779 done
drh71eb93e2001-09-28 01:34:43 +00001780done
a.rottmann84e63352003-03-24 09:42:16 +00001781$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1782$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001783
1784# When interrupted or exit'd, cleanup temporary files, and complete
1785# config.log. We remove comments because anyway the quotes in there
1786# would cause problems or look ugly.
mlcreech94984912008-03-04 19:03:08 +00001787# WARNING: Use '\'' to represent an apostrophe within the trap.
1788# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00001789trap 'exit_status=$?
1790 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001791 {
1792 echo
1793
1794 cat <<\_ASBOX
1795## ---------------- ##
1796## Cache variables. ##
1797## ---------------- ##
1798_ASBOX
1799 echo
1800 # The following way of writing the cache mishandles newlines in values,
mlcreech94984912008-03-04 19:03:08 +00001801(
1802 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1803 eval ac_val=\$$ac_var
1804 case $ac_val in #(
1805 *${as_nl}*)
1806 case $ac_var in #(
mlcreech636a9952008-05-05 22:52:56 +00001807 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1808$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
mlcreech94984912008-03-04 19:03:08 +00001809 esac
1810 case $ac_var in #(
1811 _ | IFS | as_nl) ;; #(
mlcreech636a9952008-05-05 22:52:56 +00001812 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
mlcreech94984912008-03-04 19:03:08 +00001813 *) $as_unset $ac_var ;;
1814 esac ;;
1815 esac
1816 done
drh71eb93e2001-09-28 01:34:43 +00001817 (set) 2>&1 |
mlcreech94984912008-03-04 19:03:08 +00001818 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1819 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00001820 sed -n \
mlcreech94984912008-03-04 19:03:08 +00001821 "s/'\''/'\''\\\\'\'''\''/g;
1822 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1823 ;; #(
drh613a0fe2007-11-23 17:31:17 +00001824 *)
mlcreech94984912008-03-04 19:03:08 +00001825 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh613a0fe2007-11-23 17:31:17 +00001826 ;;
mlcreech94984912008-03-04 19:03:08 +00001827 esac |
1828 sort
1829)
a.rottmann84e63352003-03-24 09:42:16 +00001830 echo
1831
1832 cat <<\_ASBOX
1833## ----------------- ##
1834## Output variables. ##
1835## ----------------- ##
1836_ASBOX
1837 echo
1838 for ac_var in $ac_subst_vars
1839 do
mlcreech94984912008-03-04 19:03:08 +00001840 eval ac_val=\$$ac_var
1841 case $ac_val in
mlcreech636a9952008-05-05 22:52:56 +00001842 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
mlcreech94984912008-03-04 19:03:08 +00001843 esac
mlcreech636a9952008-05-05 22:52:56 +00001844 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001845 done | sort
1846 echo
1847
1848 if test -n "$ac_subst_files"; then
1849 cat <<\_ASBOX
mlcreech94984912008-03-04 19:03:08 +00001850## ------------------- ##
1851## File substitutions. ##
1852## ------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00001853_ASBOX
1854 echo
1855 for ac_var in $ac_subst_files
1856 do
mlcreech94984912008-03-04 19:03:08 +00001857 eval ac_val=\$$ac_var
1858 case $ac_val in
mlcreech636a9952008-05-05 22:52:56 +00001859 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
mlcreech94984912008-03-04 19:03:08 +00001860 esac
mlcreech636a9952008-05-05 22:52:56 +00001861 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001862 done | sort
1863 echo
1864 fi
1865
1866 if test -s confdefs.h; then
1867 cat <<\_ASBOX
1868## ----------- ##
1869## confdefs.h. ##
1870## ----------- ##
1871_ASBOX
1872 echo
mlcreech94984912008-03-04 19:03:08 +00001873 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00001874 echo
1875 fi
1876 test "$ac_signal" != 0 &&
mlcreech636a9952008-05-05 22:52:56 +00001877 $as_echo "$as_me: caught signal $ac_signal"
1878 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00001879 } >&5
mlcreech94984912008-03-04 19:03:08 +00001880 rm -f core *.core core.conftest.* &&
1881 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001882 exit $exit_status
mlcreech94984912008-03-04 19:03:08 +00001883' 0
drh71eb93e2001-09-28 01:34:43 +00001884for ac_signal in 1 2 13 15; do
1885 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1886done
1887ac_signal=0
1888
1889# confdefs.h avoids OS command line length limits that DEFS can exceed.
mlcreech94984912008-03-04 19:03:08 +00001890rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00001891
a.rottmann84e63352003-03-24 09:42:16 +00001892# Predefined preprocessor variables.
1893
1894cat >>confdefs.h <<_ACEOF
1895#define PACKAGE_NAME "$PACKAGE_NAME"
1896_ACEOF
1897
1898
1899cat >>confdefs.h <<_ACEOF
1900#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1901_ACEOF
1902
1903
1904cat >>confdefs.h <<_ACEOF
1905#define PACKAGE_VERSION "$PACKAGE_VERSION"
1906_ACEOF
1907
1908
1909cat >>confdefs.h <<_ACEOF
1910#define PACKAGE_STRING "$PACKAGE_STRING"
1911_ACEOF
1912
1913
1914cat >>confdefs.h <<_ACEOF
1915#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1916_ACEOF
1917
1918
drh71eb93e2001-09-28 01:34:43 +00001919# Let the site file select an alternate cache file if it wants to.
mlcreech636a9952008-05-05 22:52:56 +00001920# Prefer an explicitly selected file to automatically selected ones.
1921ac_site_file1=NONE
1922ac_site_file2=NONE
mlcreech94984912008-03-04 19:03:08 +00001923if test -n "$CONFIG_SITE"; then
mlcreech636a9952008-05-05 22:52:56 +00001924 ac_site_file1=$CONFIG_SITE
mlcreech94984912008-03-04 19:03:08 +00001925elif test "x$prefix" != xNONE; then
mlcreech636a9952008-05-05 22:52:56 +00001926 ac_site_file1=$prefix/share/config.site
1927 ac_site_file2=$prefix/etc/config.site
mlcreech94984912008-03-04 19:03:08 +00001928else
mlcreech636a9952008-05-05 22:52:56 +00001929 ac_site_file1=$ac_default_prefix/share/config.site
1930 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00001931fi
mlcreech636a9952008-05-05 22:52:56 +00001932for ac_site_file in "$ac_site_file1" "$ac_site_file2"
mlcreech94984912008-03-04 19:03:08 +00001933do
mlcreech636a9952008-05-05 22:52:56 +00001934 test "x$ac_site_file" = xNONE && continue
drh75897232000-05-29 14:26:00 +00001935 if test -r "$ac_site_file"; then
mlcreech636a9952008-05-05 22:52:56 +00001936 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1937$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001938 sed 's/^/| /' "$ac_site_file" >&5
drh75897232000-05-29 14:26:00 +00001939 . "$ac_site_file"
1940 fi
1941done
1942
1943if test -r "$cache_file"; then
drh71eb93e2001-09-28 01:34:43 +00001944 # Some versions of bash will fail to source /dev/null (special
1945 # files actually), so we avoid doing that.
1946 if test -f "$cache_file"; then
mlcreech636a9952008-05-05 22:52:56 +00001947 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1948$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00001949 case $cache_file in
mlcreech94984912008-03-04 19:03:08 +00001950 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1951 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00001952 esac
1953 fi
drh75897232000-05-29 14:26:00 +00001954else
mlcreech636a9952008-05-05 22:52:56 +00001955 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1956$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00001957 >$cache_file
1958fi
1959
1960# Check that the precious variables saved in the cache have kept the same
1961# value.
1962ac_cache_corrupted=false
mlcreech94984912008-03-04 19:03:08 +00001963for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00001964 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1965 eval ac_new_set=\$ac_env_${ac_var}_set
mlcreech94984912008-03-04 19:03:08 +00001966 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1967 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00001968 case $ac_old_set,$ac_new_set in
1969 set,)
mlcreech636a9952008-05-05 22:52:56 +00001970 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1971$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001972 ac_cache_corrupted=: ;;
1973 ,set)
mlcreech636a9952008-05-05 22:52:56 +00001974 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1975$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001976 ac_cache_corrupted=: ;;
1977 ,);;
1978 *)
1979 if test "x$ac_old_val" != "x$ac_new_val"; then
mlcreech636a9952008-05-05 22:52:56 +00001980 # differences in whitespace do not lead to failure.
1981 ac_old_val_w=`echo x $ac_old_val`
1982 ac_new_val_w=`echo x $ac_new_val`
1983 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1984 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1985$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1986 ac_cache_corrupted=:
1987 else
1988 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1989$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1990 eval $ac_var=\$ac_old_val
1991 fi
1992 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1993$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1994 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1995$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001996 fi;;
1997 esac
a.rottmann84e63352003-03-24 09:42:16 +00001998 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00001999 if test "$ac_new_set" = set; then
2000 case $ac_new_val in
mlcreech636a9952008-05-05 22:52:56 +00002001 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002002 *) ac_arg=$ac_var=$ac_new_val ;;
2003 esac
2004 case " $ac_configure_args " in
2005 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2006 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002007 esac
2008 fi
2009done
2010if $ac_cache_corrupted; then
mlcreech636a9952008-05-05 22:52:56 +00002011 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2012$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2013 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2014$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002015 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00002016fi
2017
mlcreech94984912008-03-04 19:03:08 +00002018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
mlcreechb87057f2008-03-06 07:19:20 +00002034
2035
2036
2037
2038
2039
2040
2041
drh75897232000-05-29 14:26:00 +00002042ac_ext=c
drh75897232000-05-29 14:26:00 +00002043ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2046ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002047
a.rottmann84e63352003-03-24 09:42:16 +00002048
2049
drh75897232000-05-29 14:26:00 +00002050# The following RCS revision string applies to configure.in
mlcreech636a9952008-05-05 22:52:56 +00002051# $Revision: 1.59 $
drh75897232000-05-29 14:26:00 +00002052
2053#########
drh71eb93e2001-09-28 01:34:43 +00002054# Programs needed
drh75897232000-05-29 14:26:00 +00002055#
mlcreech636a9952008-05-05 22:52:56 +00002056case `pwd` in
2057 *\ * | *\ *)
2058 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2059$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2060esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002061
mlcreech94984912008-03-04 19:03:08 +00002062
mlcreech636a9952008-05-05 22:52:56 +00002063
2064macro_version='2.2.4'
2065macro_revision='1.2976'
a.rottmann9bc8b932004-02-29 15:18:31 +00002066
mlcreech94984912008-03-04 19:03:08 +00002067
mlcreech94984912008-03-04 19:03:08 +00002068
a.rottmann9bc8b932004-02-29 15:18:31 +00002069
mlcreech636a9952008-05-05 22:52:56 +00002070
2071
2072
2073
2074
2075
2076
2077
2078
2079ltmain="$ac_aux_dir/ltmain.sh"
2080
drh71eb93e2001-09-28 01:34:43 +00002081ac_aux_dir=
mlcreech94984912008-03-04 19:03:08 +00002082for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2083 if test -f "$ac_dir/install-sh"; then
drh71eb93e2001-09-28 01:34:43 +00002084 ac_aux_dir=$ac_dir
2085 ac_install_sh="$ac_aux_dir/install-sh -c"
2086 break
mlcreech94984912008-03-04 19:03:08 +00002087 elif test -f "$ac_dir/install.sh"; then
drh71eb93e2001-09-28 01:34:43 +00002088 ac_aux_dir=$ac_dir
2089 ac_install_sh="$ac_aux_dir/install.sh -c"
2090 break
mlcreech94984912008-03-04 19:03:08 +00002091 elif test -f "$ac_dir/shtool"; then
drh71eb93e2001-09-28 01:34:43 +00002092 ac_aux_dir=$ac_dir
2093 ac_install_sh="$ac_aux_dir/shtool install -c"
2094 break
2095 fi
2096done
2097if test -z "$ac_aux_dir"; then
mlcreech636a9952008-05-05 22:52:56 +00002098 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2099$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002100 { (exit 1); exit 1; }; }
2101fi
mlcreech94984912008-03-04 19:03:08 +00002102
2103# These three variables are undocumented and unsupported,
2104# and are intended to be withdrawn in a future Autoconf release.
2105# They can cause serious problems if a builder's source tree is in a directory
2106# whose full name contains unusual characters.
2107ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2108ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2109ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2110
drh71eb93e2001-09-28 01:34:43 +00002111
2112# Make sure we can run config.sub.
mlcreech94984912008-03-04 19:03:08 +00002113$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
mlcreech636a9952008-05-05 22:52:56 +00002114 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2115$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002116 { (exit 1); exit 1; }; }
2117
mlcreech636a9952008-05-05 22:52:56 +00002118{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2119$as_echo_n "checking build system type... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002120if test "${ac_cv_build+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00002121 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002122else
mlcreech94984912008-03-04 19:03:08 +00002123 ac_build_alias=$build_alias
2124test "x$ac_build_alias" = x &&
2125 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2126test "x$ac_build_alias" = x &&
mlcreech636a9952008-05-05 22:52:56 +00002127 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2128$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002129 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00002130ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
mlcreech636a9952008-05-05 22:52:56 +00002131 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2132$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002133 { (exit 1); exit 1; }; }
2134
2135fi
mlcreech636a9952008-05-05 22:52:56 +00002136{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2137$as_echo "$ac_cv_build" >&6; }
mlcreech94984912008-03-04 19:03:08 +00002138case $ac_cv_build in
2139*-*-*) ;;
mlcreech636a9952008-05-05 22:52:56 +00002140*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2141$as_echo "$as_me: error: invalid value of canonical build" >&2;}
mlcreech94984912008-03-04 19:03:08 +00002142 { (exit 1); exit 1; }; };;
2143esac
drh71eb93e2001-09-28 01:34:43 +00002144build=$ac_cv_build
mlcreech94984912008-03-04 19:03:08 +00002145ac_save_IFS=$IFS; IFS='-'
2146set x $ac_cv_build
2147shift
2148build_cpu=$1
2149build_vendor=$2
2150shift; shift
2151# Remember, the first character of IFS is used to create $*,
2152# except with old shells:
2153build_os=$*
2154IFS=$ac_save_IFS
2155case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002156
a.rottmann84e63352003-03-24 09:42:16 +00002157
mlcreech636a9952008-05-05 22:52:56 +00002158{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2159$as_echo_n "checking host system type... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002160if test "${ac_cv_host+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00002161 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002162else
mlcreech94984912008-03-04 19:03:08 +00002163 if test "x$host_alias" = x; then
2164 ac_cv_host=$ac_cv_build
2165else
2166 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
mlcreech636a9952008-05-05 22:52:56 +00002167 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2168$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002169 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00002170fi
drh71eb93e2001-09-28 01:34:43 +00002171
2172fi
mlcreech636a9952008-05-05 22:52:56 +00002173{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2174$as_echo "$ac_cv_host" >&6; }
mlcreech94984912008-03-04 19:03:08 +00002175case $ac_cv_host in
2176*-*-*) ;;
mlcreech636a9952008-05-05 22:52:56 +00002177*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2178$as_echo "$as_me: error: invalid value of canonical host" >&2;}
mlcreech94984912008-03-04 19:03:08 +00002179 { (exit 1); exit 1; }; };;
2180esac
drh71eb93e2001-09-28 01:34:43 +00002181host=$ac_cv_host
mlcreech94984912008-03-04 19:03:08 +00002182ac_save_IFS=$IFS; IFS='-'
2183set x $ac_cv_host
2184shift
2185host_cpu=$1
2186host_vendor=$2
2187shift; shift
2188# Remember, the first character of IFS is used to create $*,
2189# except with old shells:
2190host_os=$*
2191IFS=$ac_save_IFS
2192case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002193
a.rottmann84e63352003-03-24 09:42:16 +00002194
drh71eb93e2001-09-28 01:34:43 +00002195ac_ext=c
2196ac_cpp='$CPP $CPPFLAGS'
2197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2199ac_compiler_gnu=$ac_cv_c_compiler_gnu
2200if test -n "$ac_tool_prefix"; then
2201 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2202set dummy ${ac_tool_prefix}gcc; ac_word=$2
mlcreech636a9952008-05-05 22:52:56 +00002203{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2204$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002205if test "${ac_cv_prog_CC+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00002206 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002207else
2208 if test -n "$CC"; then
2209 ac_cv_prog_CC="$CC" # Let the user override the test.
2210else
a.rottmann84e63352003-03-24 09:42:16 +00002211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212for as_dir in $PATH
2213do
2214 IFS=$as_save_IFS
2215 test -z "$as_dir" && as_dir=.
2216 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002217 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 +00002218 ac_cv_prog_CC="${ac_tool_prefix}gcc"
mlcreech636a9952008-05-05 22:52:56 +00002219 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002220 break 2
2221 fi
2222done
drh71eb93e2001-09-28 01:34:43 +00002223done
mlcreech94984912008-03-04 19:03:08 +00002224IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002225
2226fi
2227fi
2228CC=$ac_cv_prog_CC
2229if test -n "$CC"; then
mlcreech636a9952008-05-05 22:52:56 +00002230 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2231$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002232else
mlcreech636a9952008-05-05 22:52:56 +00002233 { $as_echo "$as_me:$LINENO: result: no" >&5
2234$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002235fi
2236
mlcreech94984912008-03-04 19:03:08 +00002237
drh71eb93e2001-09-28 01:34:43 +00002238fi
2239if test -z "$ac_cv_prog_CC"; then
2240 ac_ct_CC=$CC
2241 # Extract the first word of "gcc", so it can be a program name with args.
2242set dummy gcc; ac_word=$2
mlcreech636a9952008-05-05 22:52:56 +00002243{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2244$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002245if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00002246 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002247else
2248 if test -n "$ac_ct_CC"; then
2249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2250else
a.rottmann84e63352003-03-24 09:42:16 +00002251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252for as_dir in $PATH
2253do
2254 IFS=$as_save_IFS
2255 test -z "$as_dir" && as_dir=.
2256 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002257 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 +00002258 ac_cv_prog_ac_ct_CC="gcc"
mlcreech636a9952008-05-05 22:52:56 +00002259 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002260 break 2
2261 fi
2262done
drh71eb93e2001-09-28 01:34:43 +00002263done
mlcreech94984912008-03-04 19:03:08 +00002264IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002265
2266fi
2267fi
2268ac_ct_CC=$ac_cv_prog_ac_ct_CC
2269if test -n "$ac_ct_CC"; then
mlcreech636a9952008-05-05 22:52:56 +00002270 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2271$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002272else
mlcreech636a9952008-05-05 22:52:56 +00002273 { $as_echo "$as_me:$LINENO: result: no" >&5
2274$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002275fi
2276
mlcreech94984912008-03-04 19:03:08 +00002277 if test "x$ac_ct_CC" = x; then
2278 CC=""
2279 else
2280 case $cross_compiling:$ac_tool_warned in
2281yes:)
mlcreech636a9952008-05-05 22:52:56 +00002282{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
mlcreech94984912008-03-04 19:03:08 +00002283whose name does not start with the host triplet. If you think this
2284configuration is useful to you, please write to autoconf@gnu.org." >&5
mlcreech636a9952008-05-05 22:52:56 +00002285$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
mlcreech94984912008-03-04 19:03:08 +00002286whose name does not start with the host triplet. If you think this
2287configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2288ac_tool_warned=yes ;;
2289esac
2290 CC=$ac_ct_CC
2291 fi
drh71eb93e2001-09-28 01:34:43 +00002292else
2293 CC="$ac_cv_prog_CC"
2294fi
2295
2296if test -z "$CC"; then
mlcreech94984912008-03-04 19:03:08 +00002297 if test -n "$ac_tool_prefix"; then
2298 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002299set dummy ${ac_tool_prefix}cc; ac_word=$2
mlcreech636a9952008-05-05 22:52:56 +00002300{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2301$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002302if test "${ac_cv_prog_CC+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00002303 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002304else
2305 if test -n "$CC"; then
2306 ac_cv_prog_CC="$CC" # Let the user override the test.
2307else
a.rottmann84e63352003-03-24 09:42:16 +00002308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309for as_dir in $PATH
2310do
2311 IFS=$as_save_IFS
2312 test -z "$as_dir" && as_dir=.
2313 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002314 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 +00002315 ac_cv_prog_CC="${ac_tool_prefix}cc"
mlcreech636a9952008-05-05 22:52:56 +00002316 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002317 break 2
2318 fi
2319done
drh71eb93e2001-09-28 01:34:43 +00002320done
mlcreech94984912008-03-04 19:03:08 +00002321IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002322
2323fi
2324fi
2325CC=$ac_cv_prog_CC
2326if test -n "$CC"; then
mlcreech636a9952008-05-05 22:52:56 +00002327 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2328$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002329else
mlcreech636a9952008-05-05 22:52:56 +00002330 { $as_echo "$as_me:$LINENO: result: no" >&5
2331$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002332fi
2333
mlcreech94984912008-03-04 19:03:08 +00002334
a.rottmann84e63352003-03-24 09:42:16 +00002335 fi
drh71eb93e2001-09-28 01:34:43 +00002336fi
2337if test -z "$CC"; then
2338 # Extract the first word of "cc", so it can be a program name with args.
2339set dummy cc; ac_word=$2
mlcreech636a9952008-05-05 22:52:56 +00002340{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2341$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002342if test "${ac_cv_prog_CC+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00002343 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002344else
2345 if test -n "$CC"; then
2346 ac_cv_prog_CC="$CC" # Let the user override the test.
2347else
2348 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350for as_dir in $PATH
2351do
2352 IFS=$as_save_IFS
2353 test -z "$as_dir" && as_dir=.
2354 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002355 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 +00002356 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2357 ac_prog_rejected=yes
2358 continue
2359 fi
2360 ac_cv_prog_CC="cc"
mlcreech636a9952008-05-05 22:52:56 +00002361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002362 break 2
2363 fi
2364done
drh71eb93e2001-09-28 01:34:43 +00002365done
mlcreech94984912008-03-04 19:03:08 +00002366IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002367
2368if test $ac_prog_rejected = yes; then
2369 # We found a bogon in the path, so make sure we never use it.
2370 set dummy $ac_cv_prog_CC
2371 shift
2372 if test $# != 0; then
2373 # We chose a different compiler from the bogus one.
2374 # However, it has the same basename, so the bogon will be chosen
2375 # first if we set CC to just the basename; use the full file name.
2376 shift
a.rottmann84e63352003-03-24 09:42:16 +00002377 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002378 fi
2379fi
2380fi
2381fi
2382CC=$ac_cv_prog_CC
2383if test -n "$CC"; then
mlcreech636a9952008-05-05 22:52:56 +00002384 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2385$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002386else
mlcreech636a9952008-05-05 22:52:56 +00002387 { $as_echo "$as_me:$LINENO: result: no" >&5
2388$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002389fi
2390
mlcreech94984912008-03-04 19:03:08 +00002391
drh71eb93e2001-09-28 01:34:43 +00002392fi
2393if test -z "$CC"; then
2394 if test -n "$ac_tool_prefix"; then
mlcreech94984912008-03-04 19:03:08 +00002395 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002396 do
2397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2398set dummy $ac_tool_prefix$ac_prog; ac_word=$2
mlcreech636a9952008-05-05 22:52:56 +00002399{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2400$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002401if test "${ac_cv_prog_CC+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00002402 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002403else
2404 if test -n "$CC"; then
2405 ac_cv_prog_CC="$CC" # Let the user override the test.
2406else
a.rottmann84e63352003-03-24 09:42:16 +00002407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408for as_dir in $PATH
2409do
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002413 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 +00002414 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
mlcreech636a9952008-05-05 22:52:56 +00002415 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002416 break 2
2417 fi
2418done
drh71eb93e2001-09-28 01:34:43 +00002419done
mlcreech94984912008-03-04 19:03:08 +00002420IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002421
2422fi
2423fi
2424CC=$ac_cv_prog_CC
2425if test -n "$CC"; then
mlcreech636a9952008-05-05 22:52:56 +00002426 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2427$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002428else
mlcreech636a9952008-05-05 22:52:56 +00002429 { $as_echo "$as_me:$LINENO: result: no" >&5
2430$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002431fi
2432
mlcreech94984912008-03-04 19:03:08 +00002433
drh71eb93e2001-09-28 01:34:43 +00002434 test -n "$CC" && break
2435 done
2436fi
2437if test -z "$CC"; then
2438 ac_ct_CC=$CC
mlcreech94984912008-03-04 19:03:08 +00002439 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002440do
2441 # Extract the first word of "$ac_prog", so it can be a program name with args.
2442set dummy $ac_prog; ac_word=$2
mlcreech636a9952008-05-05 22:52:56 +00002443{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2444$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002445if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00002446 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002447else
2448 if test -n "$ac_ct_CC"; then
2449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2450else
a.rottmann84e63352003-03-24 09:42:16 +00002451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452for as_dir in $PATH
2453do
2454 IFS=$as_save_IFS
2455 test -z "$as_dir" && as_dir=.
2456 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002457 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 +00002458 ac_cv_prog_ac_ct_CC="$ac_prog"
mlcreech636a9952008-05-05 22:52:56 +00002459 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002460 break 2
2461 fi
2462done
drh71eb93e2001-09-28 01:34:43 +00002463done
mlcreech94984912008-03-04 19:03:08 +00002464IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002465
2466fi
2467fi
2468ac_ct_CC=$ac_cv_prog_ac_ct_CC
2469if test -n "$ac_ct_CC"; then
mlcreech636a9952008-05-05 22:52:56 +00002470 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2471$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002472else
mlcreech636a9952008-05-05 22:52:56 +00002473 { $as_echo "$as_me:$LINENO: result: no" >&5
2474$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002475fi
2476
mlcreech94984912008-03-04 19:03:08 +00002477
drh71eb93e2001-09-28 01:34:43 +00002478 test -n "$ac_ct_CC" && break
2479done
2480
mlcreech94984912008-03-04 19:03:08 +00002481 if test "x$ac_ct_CC" = x; then
2482 CC=""
2483 else
2484 case $cross_compiling:$ac_tool_warned in
2485yes:)
mlcreech636a9952008-05-05 22:52:56 +00002486{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
mlcreech94984912008-03-04 19:03:08 +00002487whose name does not start with the host triplet. If you think this
2488configuration is useful to you, please write to autoconf@gnu.org." >&5
mlcreech636a9952008-05-05 22:52:56 +00002489$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
mlcreech94984912008-03-04 19:03:08 +00002490whose name does not start with the host triplet. If you think this
2491configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2492ac_tool_warned=yes ;;
2493esac
2494 CC=$ac_ct_CC
2495 fi
drh71eb93e2001-09-28 01:34:43 +00002496fi
2497
2498fi
2499
a.rottmann84e63352003-03-24 09:42:16 +00002500
mlcreech636a9952008-05-05 22:52:56 +00002501test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
a.rottmann84e63352003-03-24 09:42:16 +00002502See \`config.log' for more details." >&5
mlcreech636a9952008-05-05 22:52:56 +00002503$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
a.rottmann84e63352003-03-24 09:42:16 +00002504See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002505 { (exit 1); exit 1; }; }
2506
2507# Provide some information about the compiler.
mlcreech636a9952008-05-05 22:52:56 +00002508$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2509set X $ac_compile
2510ac_compiler=$2
mlcreech94984912008-03-04 19:03:08 +00002511{ (ac_try="$ac_compiler --version >&5"
2512case "(($ac_try" in
2513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2515esac
mlcreech636a9952008-05-05 22:52:56 +00002516eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2517$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00002518 (eval "$ac_compiler --version >&5") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002519 ac_status=$?
mlcreech636a9952008-05-05 22:52:56 +00002520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002521 (exit $ac_status); }
mlcreech94984912008-03-04 19:03:08 +00002522{ (ac_try="$ac_compiler -v >&5"
2523case "(($ac_try" in
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2526esac
mlcreech636a9952008-05-05 22:52:56 +00002527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2528$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00002529 (eval "$ac_compiler -v >&5") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002530 ac_status=$?
mlcreech636a9952008-05-05 22:52:56 +00002531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002532 (exit $ac_status); }
mlcreech94984912008-03-04 19:03:08 +00002533{ (ac_try="$ac_compiler -V >&5"
2534case "(($ac_try" in
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2537esac
mlcreech636a9952008-05-05 22:52:56 +00002538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2539$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00002540 (eval "$ac_compiler -V >&5") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002541 ac_status=$?
mlcreech636a9952008-05-05 22:52:56 +00002542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002543 (exit $ac_status); }
2544
2545cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002546/* confdefs.h. */
2547_ACEOF
2548cat confdefs.h >>conftest.$ac_ext
2549cat >>conftest.$ac_ext <<_ACEOF
2550/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002551
2552int
2553main ()
2554{
2555
2556 ;
2557 return 0;
2558}
2559_ACEOF
2560ac_clean_files_save=$ac_clean_files
mlcreech636a9952008-05-05 22:52:56 +00002561ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002562# Try to create an executable without -o first, disregard a.out.
2563# It will help us diagnose broken compilers, and finding out an intuition
2564# of exeext.
mlcreech636a9952008-05-05 22:52:56 +00002565{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2566$as_echo_n "checking for C compiler default output file name... " >&6; }
2567ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2568
2569# The possible output files:
2570ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2571
mlcreech94984912008-03-04 19:03:08 +00002572ac_rmfiles=
2573for ac_file in $ac_files
2574do
2575 case $ac_file in
mlcreech636a9952008-05-05 22:52:56 +00002576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
mlcreech94984912008-03-04 19:03:08 +00002577 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2578 esac
2579done
2580rm -f $ac_rmfiles
2581
2582if { (ac_try="$ac_link_default"
2583case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2586esac
mlcreech636a9952008-05-05 22:52:56 +00002587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2588$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00002589 (eval "$ac_link_default") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002590 ac_status=$?
mlcreech636a9952008-05-05 22:52:56 +00002591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002592 (exit $ac_status); }; then
mlcreech94984912008-03-04 19:03:08 +00002593 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2594# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2595# in a Makefile. We should not override ac_cv_exeext if it was cached,
2596# so that the user can short-circuit this test for compilers unknown to
2597# Autoconf.
2598for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002599do
2600 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002601 case $ac_file in
mlcreech636a9952008-05-05 22:52:56 +00002602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002603 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002604 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002605 # We found the default executable, but exeext='' is most
2606 # certainly right.
2607 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002608 *.* )
mlcreech94984912008-03-04 19:03:08 +00002609 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2610 then :; else
2611 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2612 fi
2613 # We set ac_cv_exeext here because the later test for it is not
2614 # safe: cross compilers may not add the suffix if given an `-o'
2615 # argument, so we may need to know it at that point already.
2616 # Even if this section looks crufty: it has the advantage of
2617 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002618 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002619 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002620 break;;
drh71eb93e2001-09-28 01:34:43 +00002621 esac
2622done
mlcreech94984912008-03-04 19:03:08 +00002623test "$ac_cv_exeext" = no && ac_cv_exeext=
2624
drh71eb93e2001-09-28 01:34:43 +00002625else
mlcreech94984912008-03-04 19:03:08 +00002626 ac_file=''
2627fi
2628
mlcreech636a9952008-05-05 22:52:56 +00002629{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2630$as_echo "$ac_file" >&6; }
mlcreech94984912008-03-04 19:03:08 +00002631if test -z "$ac_file"; then
mlcreech636a9952008-05-05 22:52:56 +00002632 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002633sed 's/^/| /' conftest.$ac_ext >&5
2634
mlcreech636a9952008-05-05 22:52:56 +00002635{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
a.rottmann84e63352003-03-24 09:42:16 +00002636See \`config.log' for more details." >&5
mlcreech636a9952008-05-05 22:52:56 +00002637$as_echo "$as_me: error: C compiler cannot create executables
a.rottmann84e63352003-03-24 09:42:16 +00002638See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002639 { (exit 77); exit 77; }; }
2640fi
2641
2642ac_exeext=$ac_cv_exeext
drh71eb93e2001-09-28 01:34:43 +00002643
mlcreech94984912008-03-04 19:03:08 +00002644# Check that the compiler produces executables we can run. If not, either
drh71eb93e2001-09-28 01:34:43 +00002645# the compiler is broken, or we cross compile.
mlcreech636a9952008-05-05 22:52:56 +00002646{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2647$as_echo_n "checking whether the C compiler works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002648# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2649# If not cross compiling, check that we can run a simple program.
2650if test "$cross_compiling" != yes; then
2651 if { ac_try='./$ac_file'
mlcreech94984912008-03-04 19:03:08 +00002652 { (case "(($ac_try" in
2653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654 *) ac_try_echo=$ac_try;;
2655esac
mlcreech636a9952008-05-05 22:52:56 +00002656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2657$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00002658 (eval "$ac_try") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002659 ac_status=$?
mlcreech636a9952008-05-05 22:52:56 +00002660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002661 (exit $ac_status); }; }; then
2662 cross_compiling=no
2663 else
2664 if test "$cross_compiling" = maybe; then
2665 cross_compiling=yes
2666 else
mlcreech636a9952008-05-05 22:52:56 +00002667 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002668If you meant to cross compile, use \`--host'.
2669See \`config.log' for more details." >&5
mlcreech636a9952008-05-05 22:52:56 +00002670$as_echo "$as_me: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002671If you meant to cross compile, use \`--host'.
2672See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002673 { (exit 1); exit 1; }; }
2674 fi
2675 fi
2676fi
mlcreech636a9952008-05-05 22:52:56 +00002677{ $as_echo "$as_me:$LINENO: result: yes" >&5
2678$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002679
mlcreech636a9952008-05-05 22:52:56 +00002680rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002681ac_clean_files=$ac_clean_files_save
mlcreech94984912008-03-04 19:03:08 +00002682# Check that the compiler produces executables we can run. If not, either
drh71eb93e2001-09-28 01:34:43 +00002683# the compiler is broken, or we cross compile.
mlcreech636a9952008-05-05 22:52:56 +00002684{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2685$as_echo_n "checking whether we are cross compiling... " >&6; }
2686{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2687$as_echo "$cross_compiling" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002688
mlcreech636a9952008-05-05 22:52:56 +00002689{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2690$as_echo_n "checking for suffix of executables... " >&6; }
mlcreech94984912008-03-04 19:03:08 +00002691if { (ac_try="$ac_link"
2692case "(($ac_try" in
2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694 *) ac_try_echo=$ac_try;;
2695esac
mlcreech636a9952008-05-05 22:52:56 +00002696eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2697$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00002698 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002699 ac_status=$?
mlcreech636a9952008-05-05 22:52:56 +00002700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002701 (exit $ac_status); }; then
2702 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2703# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2704# work properly (i.e., refer to `conftest.exe'), while it won't with
2705# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002706for ac_file in conftest.exe conftest conftest.*; do
2707 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002708 case $ac_file in
mlcreech636a9952008-05-05 22:52:56 +00002709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002710 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00002711 break;;
drh71eb93e2001-09-28 01:34:43 +00002712 * ) break;;
2713 esac
2714done
2715else
mlcreech636a9952008-05-05 22:52:56 +00002716 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
a.rottmann84e63352003-03-24 09:42:16 +00002717See \`config.log' for more details." >&5
mlcreech636a9952008-05-05 22:52:56 +00002718$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
a.rottmann84e63352003-03-24 09:42:16 +00002719See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002720 { (exit 1); exit 1; }; }
2721fi
2722
2723rm -f conftest$ac_cv_exeext
mlcreech636a9952008-05-05 22:52:56 +00002724{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2725$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002726
2727rm -f conftest.$ac_ext
2728EXEEXT=$ac_cv_exeext
2729ac_exeext=$EXEEXT
mlcreech636a9952008-05-05 22:52:56 +00002730{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2731$as_echo_n "checking for suffix of object files... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002732if test "${ac_cv_objext+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00002733 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002734else
2735 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002736/* confdefs.h. */
2737_ACEOF
2738cat confdefs.h >>conftest.$ac_ext
2739cat >>conftest.$ac_ext <<_ACEOF
2740/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002741
2742int
2743main ()
2744{
2745
2746 ;
2747 return 0;
2748}
2749_ACEOF
2750rm -f conftest.o conftest.obj
mlcreech94984912008-03-04 19:03:08 +00002751if { (ac_try="$ac_compile"
2752case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2755esac
mlcreech636a9952008-05-05 22:52:56 +00002756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2757$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00002758 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002759 ac_status=$?
mlcreech636a9952008-05-05 22:52:56 +00002760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002761 (exit $ac_status); }; then
mlcreech94984912008-03-04 19:03:08 +00002762 for ac_file in conftest.o conftest.obj conftest.*; do
2763 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00002764 case $ac_file in
mlcreech636a9952008-05-05 22:52:56 +00002765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00002766 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2767 break;;
2768 esac
2769done
2770else
mlcreech636a9952008-05-05 22:52:56 +00002771 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002772sed 's/^/| /' conftest.$ac_ext >&5
2773
mlcreech636a9952008-05-05 22:52:56 +00002774{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
a.rottmann84e63352003-03-24 09:42:16 +00002775See \`config.log' for more details." >&5
mlcreech636a9952008-05-05 22:52:56 +00002776$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
a.rottmann84e63352003-03-24 09:42:16 +00002777See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002778 { (exit 1); exit 1; }; }
2779fi
2780
2781rm -f conftest.$ac_cv_objext conftest.$ac_ext
2782fi
mlcreech636a9952008-05-05 22:52:56 +00002783{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2784$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002785OBJEXT=$ac_cv_objext
2786ac_objext=$OBJEXT
mlcreech636a9952008-05-05 22:52:56 +00002787{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2788$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002789if test "${ac_cv_c_compiler_gnu+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00002790 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002791else
2792 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002793/* confdefs.h. */
2794_ACEOF
2795cat confdefs.h >>conftest.$ac_ext
2796cat >>conftest.$ac_ext <<_ACEOF
2797/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002798
2799int
2800main ()
2801{
2802#ifndef __GNUC__
2803 choke me
2804#endif
2805
2806 ;
2807 return 0;
2808}
2809_ACEOF
2810rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00002811if { (ac_try="$ac_compile"
2812case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815esac
mlcreech636a9952008-05-05 22:52:56 +00002816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2817$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00002818 (eval "$ac_compile") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002819 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002820 grep -v '^ *+' conftest.er1 >conftest.err
2821 rm -f conftest.er1
2822 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +00002823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00002824 (exit $ac_status); } && {
2825 test -z "$ac_c_werror_flag" ||
2826 test ! -s conftest.err
2827 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002828 ac_compiler_gnu=yes
2829else
mlcreech636a9952008-05-05 22:52:56 +00002830 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002831sed 's/^/| /' conftest.$ac_ext >&5
2832
mlcreech94984912008-03-04 19:03:08 +00002833 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00002834fi
mlcreech94984912008-03-04 19:03:08 +00002835
2836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002837ac_cv_c_compiler_gnu=$ac_compiler_gnu
2838
2839fi
mlcreech636a9952008-05-05 22:52:56 +00002840{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2841$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2842if test $ac_compiler_gnu = yes; then
2843 GCC=yes
2844else
2845 GCC=
2846fi
drh71eb93e2001-09-28 01:34:43 +00002847ac_test_CFLAGS=${CFLAGS+set}
2848ac_save_CFLAGS=$CFLAGS
mlcreech636a9952008-05-05 22:52:56 +00002849{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2850$as_echo_n "checking whether $CC accepts -g... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002851if test "${ac_cv_prog_cc_g+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00002852 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002853else
mlcreech94984912008-03-04 19:03:08 +00002854 ac_save_c_werror_flag=$ac_c_werror_flag
2855 ac_c_werror_flag=yes
2856 ac_cv_prog_cc_g=no
2857 CFLAGS="-g"
2858 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002859/* confdefs.h. */
2860_ACEOF
2861cat confdefs.h >>conftest.$ac_ext
2862cat >>conftest.$ac_ext <<_ACEOF
2863/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002864
2865int
2866main ()
2867{
2868
2869 ;
2870 return 0;
2871}
2872_ACEOF
2873rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00002874if { (ac_try="$ac_compile"
2875case "(($ac_try" in
2876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877 *) ac_try_echo=$ac_try;;
2878esac
mlcreech636a9952008-05-05 22:52:56 +00002879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2880$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00002881 (eval "$ac_compile") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002882 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002883 grep -v '^ *+' conftest.er1 >conftest.err
2884 rm -f conftest.er1
2885 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +00002886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00002887 (exit $ac_status); } && {
2888 test -z "$ac_c_werror_flag" ||
2889 test ! -s conftest.err
2890 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002891 ac_cv_prog_cc_g=yes
2892else
mlcreech636a9952008-05-05 22:52:56 +00002893 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002894sed 's/^/| /' conftest.$ac_ext >&5
2895
mlcreech94984912008-03-04 19:03:08 +00002896 CFLAGS=""
2897 cat >conftest.$ac_ext <<_ACEOF
2898/* confdefs.h. */
2899_ACEOF
2900cat confdefs.h >>conftest.$ac_ext
2901cat >>conftest.$ac_ext <<_ACEOF
2902/* end confdefs.h. */
2903
2904int
2905main ()
2906{
2907
2908 ;
2909 return 0;
2910}
2911_ACEOF
2912rm -f conftest.$ac_objext
2913if { (ac_try="$ac_compile"
2914case "(($ac_try" in
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2917esac
mlcreech636a9952008-05-05 22:52:56 +00002918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2919$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00002920 (eval "$ac_compile") 2>conftest.er1
2921 ac_status=$?
2922 grep -v '^ *+' conftest.er1 >conftest.err
2923 rm -f conftest.er1
2924 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +00002925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00002926 (exit $ac_status); } && {
2927 test -z "$ac_c_werror_flag" ||
2928 test ! -s conftest.err
2929 } && test -s conftest.$ac_objext; then
2930 :
2931else
mlcreech636a9952008-05-05 22:52:56 +00002932 $as_echo "$as_me: failed program was:" >&5
mlcreech94984912008-03-04 19:03:08 +00002933sed 's/^/| /' conftest.$ac_ext >&5
2934
2935 ac_c_werror_flag=$ac_save_c_werror_flag
2936 CFLAGS="-g"
2937 cat >conftest.$ac_ext <<_ACEOF
2938/* confdefs.h. */
2939_ACEOF
2940cat confdefs.h >>conftest.$ac_ext
2941cat >>conftest.$ac_ext <<_ACEOF
2942/* end confdefs.h. */
2943
2944int
2945main ()
2946{
2947
2948 ;
2949 return 0;
2950}
2951_ACEOF
2952rm -f conftest.$ac_objext
2953if { (ac_try="$ac_compile"
2954case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957esac
mlcreech636a9952008-05-05 22:52:56 +00002958eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2959$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00002960 (eval "$ac_compile") 2>conftest.er1
2961 ac_status=$?
2962 grep -v '^ *+' conftest.er1 >conftest.err
2963 rm -f conftest.er1
2964 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +00002965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00002966 (exit $ac_status); } && {
2967 test -z "$ac_c_werror_flag" ||
2968 test ! -s conftest.err
2969 } && test -s conftest.$ac_objext; then
2970 ac_cv_prog_cc_g=yes
2971else
mlcreech636a9952008-05-05 22:52:56 +00002972 $as_echo "$as_me: failed program was:" >&5
mlcreech94984912008-03-04 19:03:08 +00002973sed 's/^/| /' conftest.$ac_ext >&5
2974
2975
drh71eb93e2001-09-28 01:34:43 +00002976fi
mlcreech94984912008-03-04 19:03:08 +00002977
2978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002979fi
mlcreech94984912008-03-04 19:03:08 +00002980
2981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2982fi
2983
2984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985 ac_c_werror_flag=$ac_save_c_werror_flag
2986fi
mlcreech636a9952008-05-05 22:52:56 +00002987{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2988$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002989if test "$ac_test_CFLAGS" = set; then
2990 CFLAGS=$ac_save_CFLAGS
2991elif test $ac_cv_prog_cc_g = yes; then
2992 if test "$GCC" = yes; then
2993 CFLAGS="-g -O2"
2994 else
2995 CFLAGS="-g"
2996 fi
2997else
2998 if test "$GCC" = yes; then
2999 CFLAGS="-O2"
3000 else
3001 CFLAGS=
3002 fi
3003fi
mlcreech636a9952008-05-05 22:52:56 +00003004{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3005$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
mlcreech94984912008-03-04 19:03:08 +00003006if test "${ac_cv_prog_cc_c89+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00003007 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003008else
mlcreech94984912008-03-04 19:03:08 +00003009 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003010ac_save_CC=$CC
3011cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003012/* confdefs.h. */
3013_ACEOF
3014cat confdefs.h >>conftest.$ac_ext
3015cat >>conftest.$ac_ext <<_ACEOF
3016/* end confdefs.h. */
3017#include <stdarg.h>
3018#include <stdio.h>
3019#include <sys/types.h>
3020#include <sys/stat.h>
3021/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3022struct buf { int x; };
3023FILE * (*rcsopen) (struct buf *, struct stat *, int);
3024static char *e (p, i)
3025 char **p;
3026 int i;
3027{
3028 return p[i];
3029}
3030static char *f (char * (*g) (char **, int), char **p, ...)
3031{
3032 char *s;
3033 va_list v;
3034 va_start (v,p);
3035 s = g (p, va_arg (v,int));
3036 va_end (v);
3037 return s;
3038}
a.rottmann964dbb12004-02-26 19:47:42 +00003039
3040/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3041 function prototypes and stuff, but not '\xHH' hex character constants.
3042 These don't provoke an error unfortunately, instead are silently treated
mlcreech94984912008-03-04 19:03:08 +00003043 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003044 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3045 array size at least. It's necessary to write '\x00'==0 to get something
mlcreech94984912008-03-04 19:03:08 +00003046 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003047int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3048
mlcreech94984912008-03-04 19:03:08 +00003049/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3050 inside strings and character constants. */
3051#define FOO(x) 'x'
3052int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3053
a.rottmann84e63352003-03-24 09:42:16 +00003054int test (int i, double x);
3055struct s1 {int (*f) (int a);};
3056struct s2 {int (*f) (double a);};
3057int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3058int argc;
3059char **argv;
3060int
3061main ()
3062{
3063return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3064 ;
3065 return 0;
3066}
3067_ACEOF
mlcreech94984912008-03-04 19:03:08 +00003068for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3069 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003070do
3071 CC="$ac_save_CC $ac_arg"
3072 rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00003073if { (ac_try="$ac_compile"
3074case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077esac
mlcreech636a9952008-05-05 22:52:56 +00003078eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3079$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00003080 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003081 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003082 grep -v '^ *+' conftest.er1 >conftest.err
3083 rm -f conftest.er1
3084 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +00003085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00003086 (exit $ac_status); } && {
3087 test -z "$ac_c_werror_flag" ||
3088 test ! -s conftest.err
3089 } && test -s conftest.$ac_objext; then
3090 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003091else
mlcreech636a9952008-05-05 22:52:56 +00003092 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00003093sed 's/^/| /' conftest.$ac_ext >&5
3094
mlcreech94984912008-03-04 19:03:08 +00003095
a.rottmann84e63352003-03-24 09:42:16 +00003096fi
mlcreech94984912008-03-04 19:03:08 +00003097
3098rm -f core conftest.err conftest.$ac_objext
3099 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003100done
mlcreech94984912008-03-04 19:03:08 +00003101rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003102CC=$ac_save_CC
3103
3104fi
mlcreech94984912008-03-04 19:03:08 +00003105# AC_CACHE_VAL
3106case "x$ac_cv_prog_cc_c89" in
3107 x)
mlcreech636a9952008-05-05 22:52:56 +00003108 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3109$as_echo "none needed" >&6; } ;;
mlcreech94984912008-03-04 19:03:08 +00003110 xno)
mlcreech636a9952008-05-05 22:52:56 +00003111 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3112$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003113 *)
mlcreech94984912008-03-04 19:03:08 +00003114 CC="$CC $ac_cv_prog_cc_c89"
mlcreech636a9952008-05-05 22:52:56 +00003115 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3116$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003117esac
3118
a.rottmann84e63352003-03-24 09:42:16 +00003119
drh71eb93e2001-09-28 01:34:43 +00003120ac_ext=c
3121ac_cpp='$CPP $CPPFLAGS'
3122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3124ac_compiler_gnu=$ac_cv_c_compiler_gnu
3125
mlcreech636a9952008-05-05 22:52:56 +00003126{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3127$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3128if test "${ac_cv_path_SED+set}" = set; then
3129 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003130else
mlcreech636a9952008-05-05 22:52:56 +00003131 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3132 for ac_i in 1 2 3 4 5 6 7; do
3133 ac_script="$ac_script$as_nl$ac_script"
3134 done
3135 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3136 $as_unset ac_script || ac_script=
3137 if test -z "$SED"; then
3138 ac_path_SED_found=false
3139 # Loop through the user's path and test for each of PROGNAME-LIST
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003141for as_dir in $PATH
3142do
3143 IFS=$as_save_IFS
3144 test -z "$as_dir" && as_dir=.
mlcreech636a9952008-05-05 22:52:56 +00003145 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003146 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech636a9952008-05-05 22:52:56 +00003147 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3148 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3149# Check for GNU ac_path_SED and select it if it is found.
3150 # Check for GNU $ac_path_SED
3151case `"$ac_path_SED" --version 2>&1` in
3152*GNU*)
3153 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3154*)
3155 ac_count=0
3156 $as_echo_n 0123456789 >"conftest.in"
3157 while :
3158 do
3159 cat "conftest.in" "conftest.in" >"conftest.tmp"
3160 mv "conftest.tmp" "conftest.in"
3161 cp "conftest.in" "conftest.nl"
3162 $as_echo '' >> "conftest.nl"
3163 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3164 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3165 ac_count=`expr $ac_count + 1`
3166 if test $ac_count -gt ${ac_path_SED_max-0}; then
3167 # Best one so far, save it but keep looking for a better one
3168 ac_cv_path_SED="$ac_path_SED"
3169 ac_path_SED_max=$ac_count
3170 fi
3171 # 10*(2^10) chars as input seems more than enough
3172 test $ac_count -gt 10 && break
3173 done
3174 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3175esac
3176
3177 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003178 done
3179 done
3180done
mlcreech636a9952008-05-05 22:52:56 +00003181IFS=$as_save_IFS
3182 if test -z "$ac_cv_path_SED"; then
3183 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3184$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3185 { (exit 1); exit 1; }; }
a.rottmann9bc8b932004-02-29 15:18:31 +00003186 fi
mlcreech636a9952008-05-05 22:52:56 +00003187else
3188 ac_cv_path_SED=$SED
a.rottmann84e63352003-03-24 09:42:16 +00003189fi
3190
mlcreech636a9952008-05-05 22:52:56 +00003191fi
3192{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3193$as_echo "$ac_cv_path_SED" >&6; }
3194 SED="$ac_cv_path_SED"
3195 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003196
mlcreech636a9952008-05-05 22:52:56 +00003197test -z "$SED" && SED=sed
3198Xsed="$SED -e 1s/^X//"
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3211$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
mlcreech94984912008-03-04 19:03:08 +00003212if test "${ac_cv_path_GREP+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00003213 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003214else
mlcreech636a9952008-05-05 22:52:56 +00003215 if test -z "$GREP"; then
mlcreech94984912008-03-04 19:03:08 +00003216 ac_path_GREP_found=false
mlcreech636a9952008-05-05 22:52:56 +00003217 # Loop through the user's path and test for each of PROGNAME-LIST
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mlcreech94984912008-03-04 19:03:08 +00003219for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3220do
3221 IFS=$as_save_IFS
3222 test -z "$as_dir" && as_dir=.
3223 for ac_prog in grep ggrep; do
mlcreech636a9952008-05-05 22:52:56 +00003224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3226 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3227# Check for GNU ac_path_GREP and select it if it is found.
mlcreech94984912008-03-04 19:03:08 +00003228 # Check for GNU $ac_path_GREP
3229case `"$ac_path_GREP" --version 2>&1` in
3230*GNU*)
3231 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3232*)
3233 ac_count=0
mlcreech636a9952008-05-05 22:52:56 +00003234 $as_echo_n 0123456789 >"conftest.in"
mlcreech94984912008-03-04 19:03:08 +00003235 while :
3236 do
3237 cat "conftest.in" "conftest.in" >"conftest.tmp"
3238 mv "conftest.tmp" "conftest.in"
3239 cp "conftest.in" "conftest.nl"
mlcreech636a9952008-05-05 22:52:56 +00003240 $as_echo 'GREP' >> "conftest.nl"
mlcreech94984912008-03-04 19:03:08 +00003241 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3242 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3243 ac_count=`expr $ac_count + 1`
3244 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3245 # Best one so far, save it but keep looking for a better one
3246 ac_cv_path_GREP="$ac_path_GREP"
3247 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003248 fi
mlcreech94984912008-03-04 19:03:08 +00003249 # 10*(2^10) chars as input seems more than enough
3250 test $ac_count -gt 10 && break
3251 done
3252 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3253esac
3254
mlcreech636a9952008-05-05 22:52:56 +00003255 $ac_path_GREP_found && break 3
3256 done
mlcreech94984912008-03-04 19:03:08 +00003257 done
3258done
mlcreech94984912008-03-04 19:03:08 +00003259IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003260 if test -z "$ac_cv_path_GREP"; then
3261 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3262$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
mlcreech94984912008-03-04 19:03:08 +00003263 { (exit 1); exit 1; }; }
mlcreech636a9952008-05-05 22:52:56 +00003264 fi
mlcreech94984912008-03-04 19:03:08 +00003265else
3266 ac_cv_path_GREP=$GREP
3267fi
3268
mlcreech94984912008-03-04 19:03:08 +00003269fi
mlcreech636a9952008-05-05 22:52:56 +00003270{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3271$as_echo "$ac_cv_path_GREP" >&6; }
mlcreech94984912008-03-04 19:03:08 +00003272 GREP="$ac_cv_path_GREP"
3273
3274
mlcreech636a9952008-05-05 22:52:56 +00003275{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3276$as_echo_n "checking for egrep... " >&6; }
mlcreech94984912008-03-04 19:03:08 +00003277if test "${ac_cv_path_EGREP+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00003278 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003279else
3280 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3281 then ac_cv_path_EGREP="$GREP -E"
3282 else
mlcreech636a9952008-05-05 22:52:56 +00003283 if test -z "$EGREP"; then
mlcreech94984912008-03-04 19:03:08 +00003284 ac_path_EGREP_found=false
mlcreech636a9952008-05-05 22:52:56 +00003285 # Loop through the user's path and test for each of PROGNAME-LIST
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mlcreech94984912008-03-04 19:03:08 +00003287for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3288do
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_prog in egrep; do
mlcreech636a9952008-05-05 22:52:56 +00003292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3294 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3295# Check for GNU ac_path_EGREP and select it if it is found.
mlcreech94984912008-03-04 19:03:08 +00003296 # Check for GNU $ac_path_EGREP
3297case `"$ac_path_EGREP" --version 2>&1` in
3298*GNU*)
3299 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3300*)
3301 ac_count=0
mlcreech636a9952008-05-05 22:52:56 +00003302 $as_echo_n 0123456789 >"conftest.in"
mlcreech94984912008-03-04 19:03:08 +00003303 while :
3304 do
3305 cat "conftest.in" "conftest.in" >"conftest.tmp"
3306 mv "conftest.tmp" "conftest.in"
3307 cp "conftest.in" "conftest.nl"
mlcreech636a9952008-05-05 22:52:56 +00003308 $as_echo 'EGREP' >> "conftest.nl"
mlcreech94984912008-03-04 19:03:08 +00003309 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3311 ac_count=`expr $ac_count + 1`
3312 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3313 # Best one so far, save it but keep looking for a better one
3314 ac_cv_path_EGREP="$ac_path_EGREP"
3315 ac_path_EGREP_max=$ac_count
3316 fi
3317 # 10*(2^10) chars as input seems more than enough
3318 test $ac_count -gt 10 && break
3319 done
3320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3321esac
3322
mlcreech636a9952008-05-05 22:52:56 +00003323 $ac_path_EGREP_found && break 3
3324 done
mlcreech94984912008-03-04 19:03:08 +00003325 done
3326done
mlcreech94984912008-03-04 19:03:08 +00003327IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003328 if test -z "$ac_cv_path_EGREP"; then
3329 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3330$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
mlcreech94984912008-03-04 19:03:08 +00003331 { (exit 1); exit 1; }; }
mlcreech636a9952008-05-05 22:52:56 +00003332 fi
mlcreech94984912008-03-04 19:03:08 +00003333else
3334 ac_cv_path_EGREP=$EGREP
3335fi
3336
mlcreech636a9952008-05-05 22:52:56 +00003337 fi
3338fi
3339{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3340$as_echo "$ac_cv_path_EGREP" >&6; }
3341 EGREP="$ac_cv_path_EGREP"
3342
3343
3344{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3345$as_echo_n "checking for fgrep... " >&6; }
3346if test "${ac_cv_path_FGREP+set}" = set; then
3347 $as_echo_n "(cached) " >&6
3348else
3349 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3350 then ac_cv_path_FGREP="$GREP -F"
3351 else
3352 if test -z "$FGREP"; then
3353 ac_path_FGREP_found=false
3354 # Loop through the user's path and test for each of PROGNAME-LIST
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3357do
3358 IFS=$as_save_IFS
3359 test -z "$as_dir" && as_dir=.
3360 for ac_prog in fgrep; do
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3363 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3364# Check for GNU ac_path_FGREP and select it if it is found.
3365 # Check for GNU $ac_path_FGREP
3366case `"$ac_path_FGREP" --version 2>&1` in
3367*GNU*)
3368 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3369*)
3370 ac_count=0
3371 $as_echo_n 0123456789 >"conftest.in"
3372 while :
3373 do
3374 cat "conftest.in" "conftest.in" >"conftest.tmp"
3375 mv "conftest.tmp" "conftest.in"
3376 cp "conftest.in" "conftest.nl"
3377 $as_echo 'FGREP' >> "conftest.nl"
3378 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3379 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3380 ac_count=`expr $ac_count + 1`
3381 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3382 # Best one so far, save it but keep looking for a better one
3383 ac_cv_path_FGREP="$ac_path_FGREP"
3384 ac_path_FGREP_max=$ac_count
3385 fi
3386 # 10*(2^10) chars as input seems more than enough
3387 test $ac_count -gt 10 && break
3388 done
3389 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3390esac
3391
3392 $ac_path_FGREP_found && break 3
3393 done
3394 done
3395done
3396IFS=$as_save_IFS
3397 if test -z "$ac_cv_path_FGREP"; then
3398 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3399$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3400 { (exit 1); exit 1; }; }
3401 fi
3402else
3403 ac_cv_path_FGREP=$FGREP
3404fi
mlcreech94984912008-03-04 19:03:08 +00003405
3406 fi
3407fi
mlcreech636a9952008-05-05 22:52:56 +00003408{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3409$as_echo "$ac_cv_path_FGREP" >&6; }
3410 FGREP="$ac_cv_path_FGREP"
3411
3412
3413test -z "$GREP" && GREP=grep
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
a.rottmann9bc8b932004-02-29 15:18:31 +00003430
3431
a.rottmann84e63352003-03-24 09:42:16 +00003432
mlcreech94984912008-03-04 19:03:08 +00003433# Check whether --with-gnu-ld was given.
drh71eb93e2001-09-28 01:34:43 +00003434if test "${with_gnu_ld+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00003435 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003436else
3437 with_gnu_ld=no
mlcreech94984912008-03-04 19:03:08 +00003438fi
3439
drh71eb93e2001-09-28 01:34:43 +00003440ac_prog=ld
3441if test "$GCC" = yes; then
3442 # Check if gcc -print-prog-name=ld gives a path.
mlcreech636a9952008-05-05 22:52:56 +00003443 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3444$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003445 case $host in
3446 *-*-mingw*)
3447 # gcc leaves a trailing carriage return which upsets mingw
3448 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3449 *)
3450 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3451 esac
3452 case $ac_prog in
3453 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003454 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003455 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003456 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003457 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3458 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3459 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003460 done
3461 test -z "$LD" && LD="$ac_prog"
3462 ;;
3463 "")
3464 # If it fails, then pretend we aren't using GCC.
3465 ac_prog=ld
3466 ;;
3467 *)
3468 # If it is relative, then search for the first ld in PATH.
3469 with_gnu_ld=unknown
3470 ;;
3471 esac
3472elif test "$with_gnu_ld" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00003473 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3474$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003475else
mlcreech636a9952008-05-05 22:52:56 +00003476 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3477$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003478fi
3479if test "${lt_cv_path_LD+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00003480 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003481else
3482 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003483 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003484 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003485 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003486 test -z "$ac_dir" && ac_dir=.
3487 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3488 lt_cv_path_LD="$ac_dir/$ac_prog"
3489 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003490 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003491 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003492 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3493 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003494 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003495 ;;
3496 *)
drh71eb93e2001-09-28 01:34:43 +00003497 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003498 ;;
3499 esac
drh71eb93e2001-09-28 01:34:43 +00003500 fi
3501 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003502 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003503else
3504 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3505fi
3506fi
3507
3508LD="$lt_cv_path_LD"
3509if test -n "$LD"; then
mlcreech636a9952008-05-05 22:52:56 +00003510 { $as_echo "$as_me:$LINENO: result: $LD" >&5
3511$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003512else
mlcreech636a9952008-05-05 22:52:56 +00003513 { $as_echo "$as_me:$LINENO: result: no" >&5
3514$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003515fi
mlcreech636a9952008-05-05 22:52:56 +00003516test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3517$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
drh71eb93e2001-09-28 01:34:43 +00003518 { (exit 1); exit 1; }; }
mlcreech636a9952008-05-05 22:52:56 +00003519{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3520$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003521if test "${lt_cv_prog_gnu_ld+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00003522 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003523else
vapier7f19c022007-02-17 14:46:31 +00003524 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003525case `$LD -v 2>&1 </dev/null` in
3526*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003527 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003528 ;;
3529*)
drh71eb93e2001-09-28 01:34:43 +00003530 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003531 ;;
3532esac
drh71eb93e2001-09-28 01:34:43 +00003533fi
mlcreech636a9952008-05-05 22:52:56 +00003534{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3535$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003536with_gnu_ld=$lt_cv_prog_gnu_ld
3537
a.rottmann84e63352003-03-24 09:42:16 +00003538
drh71eb93e2001-09-28 01:34:43 +00003539
mlcreech636a9952008-05-05 22:52:56 +00003540
3541
3542
3543
3544
3545
3546{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3547$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003548if test "${lt_cv_path_NM+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00003549 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003550else
3551 if test -n "$NM"; then
3552 # Let the user override the test.
3553 lt_cv_path_NM="$NM"
3554else
vapier7f19c022007-02-17 14:46:31 +00003555 lt_nm_to_check="${ac_tool_prefix}nm"
3556 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3557 lt_nm_to_check="$lt_nm_to_check nm"
3558 fi
3559 for lt_tmp_nm in $lt_nm_to_check; do
3560 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3561 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3562 IFS="$lt_save_ifs"
3563 test -z "$ac_dir" && ac_dir=.
3564 tmp_nm="$ac_dir/$lt_tmp_nm"
3565 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3566 # Check to see if the nm accepts a BSD-compat flag.
3567 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3568 # nm: unknown option "B" ignored
3569 # Tru64's nm complains that /dev/null is an invalid object file
3570 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3571 */dev/null* | *'Invalid file or object type'*)
3572 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003573 break
3574 ;;
3575 *)
vapier7f19c022007-02-17 14:46:31 +00003576 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3577 */dev/null*)
3578 lt_cv_path_NM="$tmp_nm -p"
3579 break
3580 ;;
3581 *)
3582 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3583 continue # so that we can try to find one that supports BSD flags
3584 ;;
3585 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003586 ;;
3587 esac
vapier7f19c022007-02-17 14:46:31 +00003588 fi
3589 done
3590 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003591 done
mlcreech636a9952008-05-05 22:52:56 +00003592 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003593fi
3594fi
mlcreech636a9952008-05-05 22:52:56 +00003595{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3596$as_echo "$lt_cv_path_NM" >&6; }
3597if test "$lt_cv_path_NM" != "no"; then
3598 NM="$lt_cv_path_NM"
3599else
3600 # Didn't find any BSD compatible name lister, look for dumpbin.
3601 if test -n "$ac_tool_prefix"; then
3602 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3603 do
3604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3605set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3606{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3607$as_echo_n "checking for $ac_word... " >&6; }
3608if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3609 $as_echo_n "(cached) " >&6
3610else
3611 if test -n "$DUMPBIN"; then
3612 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3613else
3614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615for as_dir in $PATH
3616do
3617 IFS=$as_save_IFS
3618 test -z "$as_dir" && as_dir=.
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3621 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3622 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 break 2
3624 fi
3625done
3626done
3627IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003628
mlcreech636a9952008-05-05 22:52:56 +00003629fi
3630fi
3631DUMPBIN=$ac_cv_prog_DUMPBIN
3632if test -n "$DUMPBIN"; then
3633 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3634$as_echo "$DUMPBIN" >&6; }
3635else
3636 { $as_echo "$as_me:$LINENO: result: no" >&5
3637$as_echo "no" >&6; }
3638fi
3639
3640
3641 test -n "$DUMPBIN" && break
3642 done
3643fi
3644if test -z "$DUMPBIN"; then
3645 ac_ct_DUMPBIN=$DUMPBIN
3646 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3647do
3648 # Extract the first word of "$ac_prog", so it can be a program name with args.
3649set dummy $ac_prog; ac_word=$2
3650{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3651$as_echo_n "checking for $ac_word... " >&6; }
3652if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3653 $as_echo_n "(cached) " >&6
3654else
3655 if test -n "$ac_ct_DUMPBIN"; then
3656 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3657else
3658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659for as_dir in $PATH
3660do
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3665 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3666 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 break 2
3668 fi
3669done
3670done
3671IFS=$as_save_IFS
3672
3673fi
3674fi
3675ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3676if test -n "$ac_ct_DUMPBIN"; then
3677 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3678$as_echo "$ac_ct_DUMPBIN" >&6; }
3679else
3680 { $as_echo "$as_me:$LINENO: result: no" >&5
3681$as_echo "no" >&6; }
3682fi
3683
3684
3685 test -n "$ac_ct_DUMPBIN" && break
3686done
3687
3688 if test "x$ac_ct_DUMPBIN" = x; then
3689 DUMPBIN=":"
3690 else
3691 case $cross_compiling:$ac_tool_warned in
3692yes:)
3693{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3694whose name does not start with the host triplet. If you think this
3695configuration is useful to you, please write to autoconf@gnu.org." >&5
3696$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3697whose name does not start with the host triplet. If you think this
3698configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3699ac_tool_warned=yes ;;
3700esac
3701 DUMPBIN=$ac_ct_DUMPBIN
3702 fi
3703fi
3704
3705
3706 if test "$DUMPBIN" != ":"; then
3707 NM="$DUMPBIN"
3708 fi
3709fi
3710test -z "$NM" && NM=nm
3711
3712
3713
3714
3715
3716
3717{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3718$as_echo_n "checking the name lister ($NM) interface... " >&6; }
3719if test "${lt_cv_nm_interface+set}" = set; then
3720 $as_echo_n "(cached) " >&6
3721else
3722 lt_cv_nm_interface="BSD nm"
3723 echo "int some_variable = 0;" > conftest.$ac_ext
3724 (eval echo "\"\$as_me:3724: $ac_compile\"" >&5)
3725 (eval "$ac_compile" 2>conftest.err)
3726 cat conftest.err >&5
3727 (eval echo "\"\$as_me:3727: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3728 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3729 cat conftest.err >&5
3730 (eval echo "\"\$as_me:3730: output\"" >&5)
3731 cat conftest.out >&5
3732 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3733 lt_cv_nm_interface="MS dumpbin"
3734 fi
3735 rm -f conftest*
3736fi
3737{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3738$as_echo "$lt_cv_nm_interface" >&6; }
3739
3740{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3741$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003742LN_S=$as_ln_s
3743if test "$LN_S" = "ln -s"; then
mlcreech636a9952008-05-05 22:52:56 +00003744 { $as_echo "$as_me:$LINENO: result: yes" >&5
3745$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003746else
mlcreech636a9952008-05-05 22:52:56 +00003747 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3748$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003749fi
3750
mlcreech636a9952008-05-05 22:52:56 +00003751# find the maximum length of command line arguments
3752{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3753$as_echo_n "checking the maximum length of command line arguments... " >&6; }
3754if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3755 $as_echo_n "(cached) " >&6
3756else
3757 i=0
3758 teststring="ABCD"
3759
3760 case $build_os in
3761 msdosdjgpp*)
3762 # On DJGPP, this test can blow up pretty badly due to problems in libc
3763 # (any single argument exceeding 2000 bytes causes a buffer overrun
3764 # during glob expansion). Even if it were fixed, the result of this
3765 # check would be larger than it should be.
3766 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3767 ;;
3768
3769 gnu*)
3770 # Under GNU Hurd, this test is not required because there is
3771 # no limit to the length of command line arguments.
3772 # Libtool will interpret -1 as no limit whatsoever
3773 lt_cv_sys_max_cmd_len=-1;
3774 ;;
3775
3776 cygwin* | mingw*)
3777 # On Win9x/ME, this test blows up -- it succeeds, but takes
3778 # about 5 minutes as the teststring grows exponentially.
3779 # Worse, since 9x/ME are not pre-emptively multitasking,
3780 # you end up with a "frozen" computer, even though with patience
3781 # the test eventually succeeds (with a max line length of 256k).
3782 # Instead, let's just punt: use the minimum linelength reported by
3783 # all of the supported platforms: 8192 (on NT/2K/XP).
3784 lt_cv_sys_max_cmd_len=8192;
3785 ;;
3786
3787 amigaos*)
3788 # On AmigaOS with pdksh, this test takes hours, literally.
3789 # So we just punt and use a minimum line length of 8192.
3790 lt_cv_sys_max_cmd_len=8192;
3791 ;;
3792
3793 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3794 # This has been around since 386BSD, at least. Likely further.
3795 if test -x /sbin/sysctl; then
3796 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3797 elif test -x /usr/sbin/sysctl; then
3798 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3799 else
3800 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3801 fi
3802 # And add a safety zone
3803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3805 ;;
3806
3807 interix*)
3808 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3809 lt_cv_sys_max_cmd_len=196608
3810 ;;
3811
3812 osf*)
3813 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3814 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3815 # nice to cause kernel panics so lets avoid the loop below.
3816 # First set a reasonable default.
3817 lt_cv_sys_max_cmd_len=16384
3818 #
3819 if test -x /sbin/sysconfig; then
3820 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3821 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3822 esac
3823 fi
3824 ;;
3825 sco3.2v5*)
3826 lt_cv_sys_max_cmd_len=102400
3827 ;;
3828 sysv5* | sco5v6* | sysv4.2uw2*)
3829 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3830 if test -n "$kargmax"; then
3831 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3832 else
3833 lt_cv_sys_max_cmd_len=32768
3834 fi
3835 ;;
3836 *)
3837 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3838 if test -n "$lt_cv_sys_max_cmd_len"; then
3839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3841 else
3842 # Make teststring a little bigger before we do anything with it.
3843 # a 1K string should be a reasonable start.
3844 for i in 1 2 3 4 5 6 7 8 ; do
3845 teststring=$teststring$teststring
3846 done
3847 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3848 # If test is not a shell built-in, we'll probably end up computing a
3849 # maximum length that is only half of the actual maximum length, but
3850 # we can't tell.
3851 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3852 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3853 test $i != 17 # 1/2 MB should be enough
3854 do
3855 i=`expr $i + 1`
3856 teststring=$teststring$teststring
3857 done
3858 # Only check the string length outside the loop.
3859 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3860 teststring=
3861 # Add a significant safety factor because C++ compilers can tack on
3862 # massive amounts of additional arguments before passing them to the
3863 # linker. It appears as though 1/2 is a usable value.
3864 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3865 fi
3866 ;;
3867 esac
3868
3869fi
3870
3871if test -n $lt_cv_sys_max_cmd_len ; then
3872 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3873$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
3874else
3875 { $as_echo "$as_me:$LINENO: result: none" >&5
3876$as_echo "none" >&6; }
3877fi
3878max_cmd_len=$lt_cv_sys_max_cmd_len
3879
3880
3881
3882
3883
3884
3885: ${CP="cp -f"}
3886: ${MV="mv -f"}
3887: ${RM="rm -f"}
3888
3889{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3890$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
3891# Try some XSI features
3892xsi_shell=no
3893( _lt_dummy="a/b/c"
3894 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3895 = c,a/b,, \
3896 && eval 'test $(( 1 + 1 )) -eq 2 \
3897 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3898 && xsi_shell=yes
3899{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
3900$as_echo "$xsi_shell" >&6; }
3901
3902
3903{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3904$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
3905lt_shell_append=no
3906( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3907 >/dev/null 2>&1 \
3908 && lt_shell_append=yes
3909{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3910$as_echo "$lt_shell_append" >&6; }
3911
3912
3913if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3914 lt_unset=unset
3915else
3916 lt_unset=false
3917fi
3918
3919
3920
3921
3922
3923# test EBCDIC or ASCII
3924case `echo X|tr X '\101'` in
3925 A) # ASCII based system
3926 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3927 lt_SP2NL='tr \040 \012'
3928 lt_NL2SP='tr \015\012 \040\040'
3929 ;;
3930 *) # EBCDIC based system
3931 lt_SP2NL='tr \100 \n'
3932 lt_NL2SP='tr \r\n \100\100'
3933 ;;
3934esac
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3945$as_echo_n "checking for $LD option to reload object files... " >&6; }
3946if test "${lt_cv_ld_reload_flag+set}" = set; then
3947 $as_echo_n "(cached) " >&6
3948else
3949 lt_cv_ld_reload_flag='-r'
3950fi
3951{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3952$as_echo "$lt_cv_ld_reload_flag" >&6; }
3953reload_flag=$lt_cv_ld_reload_flag
3954case $reload_flag in
3955"" | " "*) ;;
3956*) reload_flag=" $reload_flag" ;;
3957esac
3958reload_cmds='$LD$reload_flag -o $output$reload_objs'
3959case $host_os in
3960 darwin*)
3961 if test "$GCC" = yes; then
3962 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3963 else
3964 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3965 fi
3966 ;;
3967esac
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3979$as_echo_n "checking how to recognize dependent libraries... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003980if test "${lt_cv_deplibs_check_method+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00003981 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003982else
3983 lt_cv_file_magic_cmd='$MAGIC_CMD'
3984lt_cv_file_magic_test_file=
3985lt_cv_deplibs_check_method='unknown'
3986# Need to set the preceding variable on all platforms that support
3987# interlibrary dependencies.
3988# 'none' -- dependencies not supported.
3989# `unknown' -- same as none, but documents that we really don't know.
3990# 'pass_all' -- all dependencies passed with no checks.
3991# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00003992# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00003993# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00003994# If you have `file' or equivalent on your system and you're not sure
3995# whether `pass_all' will *always* work, you probably want this one.
3996
3997case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00003998aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00003999 lt_cv_deplibs_check_method=pass_all
4000 ;;
4001
4002beos*)
4003 lt_cv_deplibs_check_method=pass_all
4004 ;;
4005
vapier7f19c022007-02-17 14:46:31 +00004006bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00004007 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4008 lt_cv_file_magic_cmd='/usr/bin/file -L'
4009 lt_cv_file_magic_test_file=/shlib/libc.so
4010 ;;
4011
a.rottmann9bc8b932004-02-29 15:18:31 +00004012cygwin*)
vapier7f19c022007-02-17 14:46:31 +00004013 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00004014 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00004015 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00004016 ;;
4017
4018mingw* | pw32*)
4019 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00004020 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4021 # unless we find 'file', for example because we are cross-compiling.
4022 if ( file / ) >/dev/null 2>&1; then
4023 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4024 lt_cv_file_magic_cmd='func_win32_libid'
4025 else
4026 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4027 lt_cv_file_magic_cmd='$OBJDUMP -f'
4028 fi
drh71eb93e2001-09-28 01:34:43 +00004029 ;;
4030
4031darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004032 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004033 ;;
4034
mlcreech636a9952008-05-05 22:52:56 +00004035freebsd* | dragonfly*)
4036 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004037 case $host_cpu in
4038 i*86 )
4039 # Not sure whether the presence of OpenBSD here was a mistake.
4040 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00004041 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 +00004042 lt_cv_file_magic_cmd=/usr/bin/file
4043 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4044 ;;
4045 esac
4046 else
4047 lt_cv_deplibs_check_method=pass_all
4048 fi
4049 ;;
4050
4051gnu*)
4052 lt_cv_deplibs_check_method=pass_all
4053 ;;
4054
a.rottmann9bc8b932004-02-29 15:18:31 +00004055hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00004056 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00004057 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00004058 ia64*)
4059 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4060 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4061 ;;
4062 hppa*64*)
4063 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]'
4064 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4065 ;;
4066 *)
4067 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4068 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4069 ;;
4070 esac
drh71eb93e2001-09-28 01:34:43 +00004071 ;;
4072
mlcreech636a9952008-05-05 22:52:56 +00004073interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00004074 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4076 ;;
4077
a.rottmann84e63352003-03-24 09:42:16 +00004078irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004079 case $LD in
4080 *-32|*"-32 ") libmagic=32-bit;;
4081 *-n32|*"-n32 ") libmagic=N32;;
4082 *-64|*"-64 ") libmagic=64-bit;;
4083 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00004084 esac
drh71eb93e2001-09-28 01:34:43 +00004085 lt_cv_deplibs_check_method=pass_all
4086 ;;
4087
4088# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00004089linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00004090 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004091 ;;
4092
vapier7f19c022007-02-17 14:46:31 +00004093netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004094 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004096 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004097 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004098 fi
4099 ;;
4100
4101newos6*)
4102 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4103 lt_cv_file_magic_cmd=/usr/bin/file
4104 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4105 ;;
4106
mlcreech636a9952008-05-05 22:52:56 +00004107*nto* | *qnx*)
4108 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00004109 ;;
4110
a.rottmann84e63352003-03-24 09:42:16 +00004111openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004112 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00004113 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004114 else
vapier7f19c022007-02-17 14:46:31 +00004115 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004116 fi
drh71eb93e2001-09-28 01:34:43 +00004117 ;;
4118
4119osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004120 lt_cv_deplibs_check_method=pass_all
4121 ;;
4122
mlcreech636a9952008-05-05 22:52:56 +00004123rdos*)
4124 lt_cv_deplibs_check_method=pass_all
4125 ;;
4126
drh71eb93e2001-09-28 01:34:43 +00004127solaris*)
4128 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00004129 ;;
4130
mlcreech636a9952008-05-05 22:52:56 +00004131sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4132 lt_cv_deplibs_check_method=pass_all
4133 ;;
4134
vapier7f19c022007-02-17 14:46:31 +00004135sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00004136 case $host_vendor in
4137 motorola)
4138 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]'
4139 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4140 ;;
4141 ncr)
4142 lt_cv_deplibs_check_method=pass_all
4143 ;;
4144 sequent)
4145 lt_cv_file_magic_cmd='/bin/file'
4146 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4147 ;;
4148 sni)
4149 lt_cv_file_magic_cmd='/bin/file'
4150 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4151 lt_cv_file_magic_test_file=/lib/libc.so
4152 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004153 siemens)
4154 lt_cv_deplibs_check_method=pass_all
4155 ;;
vapier7f19c022007-02-17 14:46:31 +00004156 pc)
4157 lt_cv_deplibs_check_method=pass_all
4158 ;;
drh71eb93e2001-09-28 01:34:43 +00004159 esac
4160 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004161
mlcreech636a9952008-05-05 22:52:56 +00004162tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004163 lt_cv_deplibs_check_method=pass_all
4164 ;;
drh71eb93e2001-09-28 01:34:43 +00004165esac
4166
4167fi
mlcreech636a9952008-05-05 22:52:56 +00004168{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4169$as_echo "$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004170file_magic_cmd=$lt_cv_file_magic_cmd
4171deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00004172test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00004173
drh71eb93e2001-09-28 01:34:43 +00004174
drh71eb93e2001-09-28 01:34:43 +00004175
drh71eb93e2001-09-28 01:34:43 +00004176
mlcreech636a9952008-05-05 22:52:56 +00004177
4178
4179
4180
4181
4182
4183
4184
4185if test -n "$ac_tool_prefix"; then
4186 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4187set dummy ${ac_tool_prefix}ar; ac_word=$2
4188{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4189$as_echo_n "checking for $ac_word... " >&6; }
4190if test "${ac_cv_prog_AR+set}" = set; then
4191 $as_echo_n "(cached) " >&6
4192else
4193 if test -n "$AR"; then
4194 ac_cv_prog_AR="$AR" # Let the user override the test.
4195else
4196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197for as_dir in $PATH
4198do
4199 IFS=$as_save_IFS
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4203 ac_cv_prog_AR="${ac_tool_prefix}ar"
4204 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 break 2
4206 fi
4207done
4208done
4209IFS=$as_save_IFS
4210
4211fi
4212fi
4213AR=$ac_cv_prog_AR
4214if test -n "$AR"; then
4215 { $as_echo "$as_me:$LINENO: result: $AR" >&5
4216$as_echo "$AR" >&6; }
4217else
4218 { $as_echo "$as_me:$LINENO: result: no" >&5
4219$as_echo "no" >&6; }
4220fi
4221
4222
4223fi
4224if test -z "$ac_cv_prog_AR"; then
4225 ac_ct_AR=$AR
4226 # Extract the first word of "ar", so it can be a program name with args.
4227set dummy ar; ac_word=$2
4228{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4229$as_echo_n "checking for $ac_word... " >&6; }
4230if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4231 $as_echo_n "(cached) " >&6
4232else
4233 if test -n "$ac_ct_AR"; then
4234 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4235else
4236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237for as_dir in $PATH
4238do
4239 IFS=$as_save_IFS
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4243 ac_cv_prog_ac_ct_AR="ar"
4244 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4245 break 2
4246 fi
4247done
4248done
4249IFS=$as_save_IFS
4250
4251fi
4252fi
4253ac_ct_AR=$ac_cv_prog_ac_ct_AR
4254if test -n "$ac_ct_AR"; then
4255 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4256$as_echo "$ac_ct_AR" >&6; }
4257else
4258 { $as_echo "$as_me:$LINENO: result: no" >&5
4259$as_echo "no" >&6; }
4260fi
4261
4262 if test "x$ac_ct_AR" = x; then
4263 AR="false"
4264 else
4265 case $cross_compiling:$ac_tool_warned in
4266yes:)
4267{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4268whose name does not start with the host triplet. If you think this
4269configuration is useful to you, please write to autoconf@gnu.org." >&5
4270$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4271whose name does not start with the host triplet. If you think this
4272configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4273ac_tool_warned=yes ;;
4274esac
4275 AR=$ac_ct_AR
4276 fi
4277else
4278 AR="$ac_cv_prog_AR"
4279fi
4280
4281test -z "$AR" && AR=ar
4282test -z "$AR_FLAGS" && AR_FLAGS=cru
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294if test -n "$ac_tool_prefix"; then
4295 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4296set dummy ${ac_tool_prefix}strip; ac_word=$2
4297{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4298$as_echo_n "checking for $ac_word... " >&6; }
4299if test "${ac_cv_prog_STRIP+set}" = set; then
4300 $as_echo_n "(cached) " >&6
4301else
4302 if test -n "$STRIP"; then
4303 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4304else
4305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306for as_dir in $PATH
4307do
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4312 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4313 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 break 2
4315 fi
4316done
4317done
4318IFS=$as_save_IFS
4319
4320fi
4321fi
4322STRIP=$ac_cv_prog_STRIP
4323if test -n "$STRIP"; then
4324 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4325$as_echo "$STRIP" >&6; }
4326else
4327 { $as_echo "$as_me:$LINENO: result: no" >&5
4328$as_echo "no" >&6; }
4329fi
4330
4331
4332fi
4333if test -z "$ac_cv_prog_STRIP"; then
4334 ac_ct_STRIP=$STRIP
4335 # Extract the first word of "strip", so it can be a program name with args.
4336set dummy strip; ac_word=$2
4337{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4338$as_echo_n "checking for $ac_word... " >&6; }
4339if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4340 $as_echo_n "(cached) " >&6
4341else
4342 if test -n "$ac_ct_STRIP"; then
4343 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4344else
4345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346for as_dir in $PATH
4347do
4348 IFS=$as_save_IFS
4349 test -z "$as_dir" && as_dir=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4352 ac_cv_prog_ac_ct_STRIP="strip"
4353 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4354 break 2
4355 fi
4356done
4357done
4358IFS=$as_save_IFS
4359
4360fi
4361fi
4362ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4363if test -n "$ac_ct_STRIP"; then
4364 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4365$as_echo "$ac_ct_STRIP" >&6; }
4366else
4367 { $as_echo "$as_me:$LINENO: result: no" >&5
4368$as_echo "no" >&6; }
4369fi
4370
4371 if test "x$ac_ct_STRIP" = x; then
4372 STRIP=":"
4373 else
4374 case $cross_compiling:$ac_tool_warned in
4375yes:)
4376{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4377whose name does not start with the host triplet. If you think this
4378configuration is useful to you, please write to autoconf@gnu.org." >&5
4379$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4380whose name does not start with the host triplet. If you think this
4381configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4382ac_tool_warned=yes ;;
4383esac
4384 STRIP=$ac_ct_STRIP
4385 fi
4386else
4387 STRIP="$ac_cv_prog_STRIP"
4388fi
4389
4390test -z "$STRIP" && STRIP=:
4391
4392
4393
4394
4395
4396
4397if test -n "$ac_tool_prefix"; then
4398 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4399set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4400{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4401$as_echo_n "checking for $ac_word... " >&6; }
4402if test "${ac_cv_prog_RANLIB+set}" = set; then
4403 $as_echo_n "(cached) " >&6
4404else
4405 if test -n "$RANLIB"; then
4406 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4407else
4408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409for as_dir in $PATH
4410do
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4416 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 break 2
4418 fi
4419done
4420done
4421IFS=$as_save_IFS
4422
4423fi
4424fi
4425RANLIB=$ac_cv_prog_RANLIB
4426if test -n "$RANLIB"; then
4427 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4428$as_echo "$RANLIB" >&6; }
4429else
4430 { $as_echo "$as_me:$LINENO: result: no" >&5
4431$as_echo "no" >&6; }
4432fi
4433
4434
4435fi
4436if test -z "$ac_cv_prog_RANLIB"; then
4437 ac_ct_RANLIB=$RANLIB
4438 # Extract the first word of "ranlib", so it can be a program name with args.
4439set dummy ranlib; ac_word=$2
4440{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4441$as_echo_n "checking for $ac_word... " >&6; }
4442if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4443 $as_echo_n "(cached) " >&6
4444else
4445 if test -n "$ac_ct_RANLIB"; then
4446 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4447else
4448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449for as_dir in $PATH
4450do
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 ac_cv_prog_ac_ct_RANLIB="ranlib"
4456 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4458 fi
4459done
4460done
4461IFS=$as_save_IFS
4462
4463fi
4464fi
4465ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4466if test -n "$ac_ct_RANLIB"; then
4467 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4468$as_echo "$ac_ct_RANLIB" >&6; }
4469else
4470 { $as_echo "$as_me:$LINENO: result: no" >&5
4471$as_echo "no" >&6; }
4472fi
4473
4474 if test "x$ac_ct_RANLIB" = x; then
4475 RANLIB=":"
4476 else
4477 case $cross_compiling:$ac_tool_warned in
4478yes:)
4479{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4480whose name does not start with the host triplet. If you think this
4481configuration is useful to you, please write to autoconf@gnu.org." >&5
4482$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4483whose name does not start with the host triplet. If you think this
4484configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4485ac_tool_warned=yes ;;
4486esac
4487 RANLIB=$ac_ct_RANLIB
4488 fi
4489else
4490 RANLIB="$ac_cv_prog_RANLIB"
4491fi
4492
4493test -z "$RANLIB" && RANLIB=:
4494
4495
4496
4497
4498
4499
4500# Determine commands to create old-style static archives.
4501old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4502old_postinstall_cmds='chmod 644 $oldlib'
4503old_postuninstall_cmds=
4504
4505if test -n "$RANLIB"; then
4506 case $host_os in
4507 openbsd*)
4508 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4509 ;;
4510 *)
4511 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4512 ;;
4513 esac
4514 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4515fi
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
a.rottmann9bc8b932004-02-29 15:18:31 +00004550# If no C compiler was specified, use CC.
4551LTCC=${LTCC-"$CC"}
4552
vapier7f19c022007-02-17 14:46:31 +00004553# If no C compiler flags were specified, use CFLAGS.
4554LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4555
a.rottmann9bc8b932004-02-29 15:18:31 +00004556# Allow CC to be a program name with arguments.
4557compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004558
drh71eb93e2001-09-28 01:34:43 +00004559
mlcreech636a9952008-05-05 22:52:56 +00004560# Check for command to grab the raw symbol name followed by C symbol from nm.
4561{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4562$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4563if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4564 $as_echo_n "(cached) " >&6
4565else
4566
4567# These are sane defaults that work on at least a few old systems.
4568# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4569
4570# Character class describing NM global symbol codes.
4571symcode='[BCDEGRST]'
4572
4573# Regexp to match symbols that can be accessed directly from C.
4574sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4575
4576# Define system-specific variables.
4577case $host_os in
4578aix*)
4579 symcode='[BCDT]'
4580 ;;
4581cygwin* | mingw* | pw32*)
4582 symcode='[ABCDGISTW]'
4583 ;;
4584hpux*)
4585 if test "$host_cpu" = ia64; then
4586 symcode='[ABCDEGRST]'
4587 fi
4588 ;;
4589irix* | nonstopux*)
4590 symcode='[BCDEGRST]'
4591 ;;
4592osf*)
4593 symcode='[BCDEGQRST]'
4594 ;;
4595solaris*)
4596 symcode='[BDRT]'
4597 ;;
4598sco3.2v5*)
4599 symcode='[DT]'
4600 ;;
4601sysv4.2uw2*)
4602 symcode='[DT]'
4603 ;;
4604sysv5* | sco5v6* | unixware* | OpenUNIX*)
4605 symcode='[ABDT]'
4606 ;;
4607sysv4)
4608 symcode='[DFNSTU]'
4609 ;;
4610esac
4611
4612# If we're using GNU nm, then use its standard symbol codes.
4613case `$NM -V 2>&1` in
4614*GNU* | *'with BFD'*)
4615 symcode='[ABCDGIRSTW]' ;;
4616esac
4617
4618# Transform an extracted symbol line into a proper C declaration.
4619# Some systems (esp. on ia64) link data and code symbols differently,
4620# so use this general approach.
4621lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4622
4623# Transform an extracted symbol line into symbol name and symbol address
4624lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4625lt_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'"
4626
4627# Handle CRLF in mingw tool chain
4628opt_cr=
4629case $build_os in
4630mingw*)
4631 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4632 ;;
4633esac
4634
4635# Try without a prefix underscore, then with it.
4636for ac_symprfx in "" "_"; do
4637
4638 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4639 symxfrm="\\1 $ac_symprfx\\2 \\2"
4640
4641 # Write the raw and C identifiers.
4642 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4643 # Fake it for dumpbin and say T for any non-static function
4644 # and D for any global variable.
4645 # Also find C++ and __fastcall symbols from MSVC++,
4646 # which start with @ or ?.
4647 lt_cv_sys_global_symbol_pipe="$AWK '"\
4648" {last_section=section; section=\$ 3};"\
4649" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4650" \$ 0!~/External *\|/{next};"\
4651" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4652" {if(hide[section]) next};"\
4653" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4654" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4655" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4656" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4657" ' prfx=^$ac_symprfx"
4658 else
4659 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4660 fi
4661
4662 # Check to see that the pipe works correctly.
4663 pipe_works=no
4664
4665 rm -f conftest*
4666 cat > conftest.$ac_ext <<_LT_EOF
4667#ifdef __cplusplus
4668extern "C" {
4669#endif
4670char nm_test_var;
4671void nm_test_func(void);
4672void nm_test_func(void){}
4673#ifdef __cplusplus
4674}
4675#endif
4676int main(){nm_test_var='a';nm_test_func();return(0);}
4677_LT_EOF
4678
4679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4680 (eval $ac_compile) 2>&5
4681 ac_status=$?
4682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); }; then
4684 # Now try to grab the symbols.
4685 nlist=conftest.nm
4686 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4687 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4688 ac_status=$?
4689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } && test -s "$nlist"; then
4691 # Try sorting and uniquifying the output.
4692 if sort "$nlist" | uniq > "$nlist"T; then
4693 mv -f "$nlist"T "$nlist"
4694 else
4695 rm -f "$nlist"T
4696 fi
4697
4698 # Make sure that we snagged all the symbols we need.
4699 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4700 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4701 cat <<_LT_EOF > conftest.$ac_ext
4702#ifdef __cplusplus
4703extern "C" {
4704#endif
4705
4706_LT_EOF
4707 # Now generate the symbol file.
4708 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4709
4710 cat <<_LT_EOF >> conftest.$ac_ext
4711
4712/* The mapping between symbol names and symbols. */
4713const struct {
4714 const char *name;
4715 void *address;
4716}
4717lt__PROGRAM__LTX_preloaded_symbols[] =
4718{
4719 { "@PROGRAM@", (void *) 0 },
4720_LT_EOF
4721 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4722 cat <<\_LT_EOF >> conftest.$ac_ext
4723 {0, (void *) 0}
4724};
4725
4726/* This works around a problem in FreeBSD linker */
4727#ifdef FREEBSD_WORKAROUND
4728static const void *lt_preloaded_setup() {
4729 return lt__PROGRAM__LTX_preloaded_symbols;
4730}
4731#endif
4732
4733#ifdef __cplusplus
4734}
4735#endif
4736_LT_EOF
4737 # Now try linking the two files.
4738 mv conftest.$ac_objext conftstm.$ac_objext
4739 lt_save_LIBS="$LIBS"
4740 lt_save_CFLAGS="$CFLAGS"
4741 LIBS="conftstm.$ac_objext"
4742 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4744 (eval $ac_link) 2>&5
4745 ac_status=$?
4746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4748 pipe_works=yes
4749 fi
4750 LIBS="$lt_save_LIBS"
4751 CFLAGS="$lt_save_CFLAGS"
4752 else
4753 echo "cannot find nm_test_func in $nlist" >&5
4754 fi
4755 else
4756 echo "cannot find nm_test_var in $nlist" >&5
4757 fi
4758 else
4759 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4760 fi
4761 else
4762 echo "$progname: failed program was:" >&5
4763 cat conftest.$ac_ext >&5
4764 fi
4765 rm -rf conftest* conftst*
4766
4767 # Do not use the global_symbol_pipe unless it works.
4768 if test "$pipe_works" = yes; then
4769 break
4770 else
4771 lt_cv_sys_global_symbol_pipe=
4772 fi
4773done
4774
4775fi
4776
4777if test -z "$lt_cv_sys_global_symbol_pipe"; then
4778 lt_cv_sys_global_symbol_to_cdecl=
4779fi
4780if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4781 { $as_echo "$as_me:$LINENO: result: failed" >&5
4782$as_echo "failed" >&6; }
4783else
4784 { $as_echo "$as_me:$LINENO: result: ok" >&5
4785$as_echo "ok" >&6; }
4786fi
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
mlcreech94984912008-03-04 19:03:08 +00004810# Check whether --enable-libtool-lock was given.
a.rottmann9bc8b932004-02-29 15:18:31 +00004811if test "${enable_libtool_lock+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00004812 enableval=$enable_libtool_lock;
4813fi
drh71eb93e2001-09-28 01:34:43 +00004814
a.rottmann9bc8b932004-02-29 15:18:31 +00004815test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00004816
a.rottmann9bc8b932004-02-29 15:18:31 +00004817# Some flags need to be propagated to the compiler or linker for good
4818# libtool support.
4819case $host in
4820ia64-*-hpux*)
4821 # Find out which ABI we are using.
4822 echo 'int i;' > conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00004823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00004824 (eval $ac_compile) 2>&5
4825 ac_status=$?
mlcreech636a9952008-05-05 22:52:56 +00004826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00004827 (exit $ac_status); }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004828 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00004829 *ELF-32*)
4830 HPUX_IA64_MODE="32"
4831 ;;
4832 *ELF-64*)
4833 HPUX_IA64_MODE="64"
4834 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004835 esac
4836 fi
4837 rm -rf conftest*
4838 ;;
4839*-*-irix6*)
4840 # Find out which ABI we are using.
mlcreech636a9952008-05-05 22:52:56 +00004841 echo '#line 4841 "configure"' > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00004842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4843 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00004844 ac_status=$?
mlcreech636a9952008-05-05 22:52:56 +00004845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004846 (exit $ac_status); }; then
mlcreech636a9952008-05-05 22:52:56 +00004847 if test "$lt_cv_prog_gnu_ld" = yes; then
4848 case `/usr/bin/file conftest.$ac_objext` in
4849 *32-bit*)
4850 LD="${LD-ld} -melf32bsmip"
4851 ;;
4852 *N32*)
4853 LD="${LD-ld} -melf32bmipn32"
4854 ;;
4855 *64-bit*)
4856 LD="${LD-ld} -melf64bmip"
4857 ;;
4858 esac
4859 else
4860 case `/usr/bin/file conftest.$ac_objext` in
4861 *32-bit*)
4862 LD="${LD-ld} -32"
4863 ;;
4864 *N32*)
4865 LD="${LD-ld} -n32"
4866 ;;
4867 *64-bit*)
4868 LD="${LD-ld} -64"
4869 ;;
4870 esac
4871 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00004872 fi
4873 rm -rf conftest*
4874 ;;
drh71eb93e2001-09-28 01:34:43 +00004875
mlcreech636a9952008-05-05 22:52:56 +00004876x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4877s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004878 # Find out which ABI we are using.
4879 echo 'int i;' > conftest.$ac_ext
4880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4881 (eval $ac_compile) 2>&5
4882 ac_status=$?
mlcreech636a9952008-05-05 22:52:56 +00004883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004884 (exit $ac_status); }; then
vapier7f19c022007-02-17 14:46:31 +00004885 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00004886 *32-bit*)
4887 case $host in
4888 x86_64-*kfreebsd*-gnu)
4889 LD="${LD-ld} -m elf_i386_fbsd"
4890 ;;
4891 x86_64-*linux*)
4892 LD="${LD-ld} -m elf_i386"
4893 ;;
4894 ppc64-*linux*|powerpc64-*linux*)
4895 LD="${LD-ld} -m elf32ppclinux"
4896 ;;
4897 s390x-*linux*)
4898 LD="${LD-ld} -m elf_s390"
4899 ;;
4900 sparc64-*linux*)
4901 LD="${LD-ld} -m elf32_sparc"
4902 ;;
4903 esac
4904 ;;
4905 *64-bit*)
4906 case $host in
4907 x86_64-*kfreebsd*-gnu)
4908 LD="${LD-ld} -m elf_x86_64_fbsd"
4909 ;;
4910 x86_64-*linux*)
4911 LD="${LD-ld} -m elf_x86_64"
4912 ;;
4913 ppc*-*linux*|powerpc*-*linux*)
4914 LD="${LD-ld} -m elf64ppc"
4915 ;;
4916 s390*-*linux*|s390*-*tpf*)
4917 LD="${LD-ld} -m elf64_s390"
4918 ;;
4919 sparc*-*linux*)
4920 LD="${LD-ld} -m elf64_sparc"
4921 ;;
4922 esac
4923 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004924 esac
4925 fi
4926 rm -rf conftest*
4927 ;;
drh71eb93e2001-09-28 01:34:43 +00004928
a.rottmann9bc8b932004-02-29 15:18:31 +00004929*-*-sco3.2v5*)
4930 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4931 SAVE_CFLAGS="$CFLAGS"
4932 CFLAGS="$CFLAGS -belf"
mlcreech636a9952008-05-05 22:52:56 +00004933 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4934$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004935if test "${lt_cv_cc_needs_belf+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00004936 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004937else
4938 ac_ext=c
4939ac_cpp='$CPP $CPPFLAGS'
4940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4942ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00004943
a.rottmann9bc8b932004-02-29 15:18:31 +00004944 cat >conftest.$ac_ext <<_ACEOF
4945/* confdefs.h. */
4946_ACEOF
4947cat confdefs.h >>conftest.$ac_ext
4948cat >>conftest.$ac_ext <<_ACEOF
4949/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00004950
a.rottmann9bc8b932004-02-29 15:18:31 +00004951int
4952main ()
drh71eb93e2001-09-28 01:34:43 +00004953{
drh71eb93e2001-09-28 01:34:43 +00004954
a.rottmann9bc8b932004-02-29 15:18:31 +00004955 ;
4956 return 0;
drh71eb93e2001-09-28 01:34:43 +00004957}
a.rottmann9bc8b932004-02-29 15:18:31 +00004958_ACEOF
4959rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00004960if { (ac_try="$ac_link"
4961case "(($ac_try" in
4962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4963 *) ac_try_echo=$ac_try;;
4964esac
mlcreech636a9952008-05-05 22:52:56 +00004965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4966$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00004967 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004968 ac_status=$?
4969 grep -v '^ *+' conftest.er1 >conftest.err
4970 rm -f conftest.er1
4971 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +00004972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004973 (exit $ac_status); } && {
4974 test -z "$ac_c_werror_flag" ||
4975 test ! -s conftest.err
mlcreech636a9952008-05-05 22:52:56 +00004976 } && test -s conftest$ac_exeext && {
4977 test "$cross_compiling" = yes ||
4978 $as_test_x conftest$ac_exeext
4979 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004980 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00004981else
mlcreech636a9952008-05-05 22:52:56 +00004982 $as_echo "$as_me: failed program was:" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004983sed 's/^/| /' conftest.$ac_ext >&5
4984
mlcreech94984912008-03-04 19:03:08 +00004985 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00004986fi
mlcreech94984912008-03-04 19:03:08 +00004987
mlcreech636a9952008-05-05 22:52:56 +00004988rm -rf conftest.dSYM
mlcreech94984912008-03-04 19:03:08 +00004989rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00004990 conftest$ac_exeext conftest.$ac_ext
4991 ac_ext=c
4992ac_cpp='$CPP $CPPFLAGS'
4993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4995ac_compiler_gnu=$ac_cv_c_compiler_gnu
4996
drh71eb93e2001-09-28 01:34:43 +00004997fi
mlcreech636a9952008-05-05 22:52:56 +00004998{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4999$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005000 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5001 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5002 CFLAGS="$SAVE_CFLAGS"
5003 fi
5004 ;;
vapier7f19c022007-02-17 14:46:31 +00005005sparc*-*solaris*)
5006 # Find out which ABI we are using.
5007 echo 'int i;' > conftest.$ac_ext
5008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5009 (eval $ac_compile) 2>&5
5010 ac_status=$?
mlcreech636a9952008-05-05 22:52:56 +00005011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
vapier7f19c022007-02-17 14:46:31 +00005012 (exit $ac_status); }; then
5013 case `/usr/bin/file conftest.o` in
5014 *64-bit*)
5015 case $lt_cv_prog_gnu_ld in
5016 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005017 *)
5018 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5019 LD="${LD-ld} -64"
5020 fi
5021 ;;
vapier7f19c022007-02-17 14:46:31 +00005022 esac
5023 ;;
5024 esac
5025 fi
5026 rm -rf conftest*
5027 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005028esac
5029
5030need_locks="$enable_libtool_lock"
5031
drh71eb93e2001-09-28 01:34:43 +00005032
mlcreech636a9952008-05-05 22:52:56 +00005033 case $host_os in
5034 rhapsody* | darwin*)
5035 if test -n "$ac_tool_prefix"; then
5036 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5037set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5038{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5039$as_echo_n "checking for $ac_word... " >&6; }
5040if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5041 $as_echo_n "(cached) " >&6
5042else
5043 if test -n "$DSYMUTIL"; then
5044 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5045else
5046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047for as_dir in $PATH
5048do
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5053 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5054 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 break 2
5056 fi
5057done
5058done
5059IFS=$as_save_IFS
5060
5061fi
5062fi
5063DSYMUTIL=$ac_cv_prog_DSYMUTIL
5064if test -n "$DSYMUTIL"; then
5065 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5066$as_echo "$DSYMUTIL" >&6; }
5067else
5068 { $as_echo "$as_me:$LINENO: result: no" >&5
5069$as_echo "no" >&6; }
5070fi
5071
5072
5073fi
5074if test -z "$ac_cv_prog_DSYMUTIL"; then
5075 ac_ct_DSYMUTIL=$DSYMUTIL
5076 # Extract the first word of "dsymutil", so it can be a program name with args.
5077set dummy dsymutil; ac_word=$2
5078{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5079$as_echo_n "checking for $ac_word... " >&6; }
5080if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5081 $as_echo_n "(cached) " >&6
5082else
5083 if test -n "$ac_ct_DSYMUTIL"; then
5084 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5085else
5086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087for as_dir in $PATH
5088do
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5094 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 break 2
5096 fi
5097done
5098done
5099IFS=$as_save_IFS
5100
5101fi
5102fi
5103ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5104if test -n "$ac_ct_DSYMUTIL"; then
5105 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5106$as_echo "$ac_ct_DSYMUTIL" >&6; }
5107else
5108 { $as_echo "$as_me:$LINENO: result: no" >&5
5109$as_echo "no" >&6; }
5110fi
5111
5112 if test "x$ac_ct_DSYMUTIL" = x; then
5113 DSYMUTIL=":"
5114 else
5115 case $cross_compiling:$ac_tool_warned in
5116yes:)
5117{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5118whose name does not start with the host triplet. If you think this
5119configuration is useful to you, please write to autoconf@gnu.org." >&5
5120$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5121whose name does not start with the host triplet. If you think this
5122configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5123ac_tool_warned=yes ;;
5124esac
5125 DSYMUTIL=$ac_ct_DSYMUTIL
5126 fi
5127else
5128 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5129fi
5130
5131 if test -n "$ac_tool_prefix"; then
5132 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5133set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5134{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5135$as_echo_n "checking for $ac_word... " >&6; }
5136if test "${ac_cv_prog_NMEDIT+set}" = set; then
5137 $as_echo_n "(cached) " >&6
5138else
5139 if test -n "$NMEDIT"; then
5140 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5141else
5142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143for as_dir in $PATH
5144do
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5150 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 break 2
5152 fi
5153done
5154done
5155IFS=$as_save_IFS
5156
5157fi
5158fi
5159NMEDIT=$ac_cv_prog_NMEDIT
5160if test -n "$NMEDIT"; then
5161 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5162$as_echo "$NMEDIT" >&6; }
5163else
5164 { $as_echo "$as_me:$LINENO: result: no" >&5
5165$as_echo "no" >&6; }
5166fi
5167
5168
5169fi
5170if test -z "$ac_cv_prog_NMEDIT"; then
5171 ac_ct_NMEDIT=$NMEDIT
5172 # Extract the first word of "nmedit", so it can be a program name with args.
5173set dummy nmedit; ac_word=$2
5174{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5175$as_echo_n "checking for $ac_word... " >&6; }
5176if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5177 $as_echo_n "(cached) " >&6
5178else
5179 if test -n "$ac_ct_NMEDIT"; then
5180 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5181else
5182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183for as_dir in $PATH
5184do
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5190 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5192 fi
5193done
5194done
5195IFS=$as_save_IFS
5196
5197fi
5198fi
5199ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5200if test -n "$ac_ct_NMEDIT"; then
5201 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5202$as_echo "$ac_ct_NMEDIT" >&6; }
5203else
5204 { $as_echo "$as_me:$LINENO: result: no" >&5
5205$as_echo "no" >&6; }
5206fi
5207
5208 if test "x$ac_ct_NMEDIT" = x; then
5209 NMEDIT=":"
5210 else
5211 case $cross_compiling:$ac_tool_warned in
5212yes:)
5213{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5214whose name does not start with the host triplet. If you think this
5215configuration is useful to you, please write to autoconf@gnu.org." >&5
5216$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5217whose name does not start with the host triplet. If you think this
5218configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5219ac_tool_warned=yes ;;
5220esac
5221 NMEDIT=$ac_ct_NMEDIT
5222 fi
5223else
5224 NMEDIT="$ac_cv_prog_NMEDIT"
5225fi
5226
5227 if test -n "$ac_tool_prefix"; then
5228 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5229set dummy ${ac_tool_prefix}lipo; ac_word=$2
5230{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5231$as_echo_n "checking for $ac_word... " >&6; }
5232if test "${ac_cv_prog_LIPO+set}" = set; then
5233 $as_echo_n "(cached) " >&6
5234else
5235 if test -n "$LIPO"; then
5236 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5237else
5238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239for as_dir in $PATH
5240do
5241 IFS=$as_save_IFS
5242 test -z "$as_dir" && as_dir=.
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5245 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5246 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 break 2
5248 fi
5249done
5250done
5251IFS=$as_save_IFS
5252
5253fi
5254fi
5255LIPO=$ac_cv_prog_LIPO
5256if test -n "$LIPO"; then
5257 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
5258$as_echo "$LIPO" >&6; }
5259else
5260 { $as_echo "$as_me:$LINENO: result: no" >&5
5261$as_echo "no" >&6; }
5262fi
5263
5264
5265fi
5266if test -z "$ac_cv_prog_LIPO"; then
5267 ac_ct_LIPO=$LIPO
5268 # Extract the first word of "lipo", so it can be a program name with args.
5269set dummy lipo; ac_word=$2
5270{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5271$as_echo_n "checking for $ac_word... " >&6; }
5272if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5273 $as_echo_n "(cached) " >&6
5274else
5275 if test -n "$ac_ct_LIPO"; then
5276 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5277else
5278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279for as_dir in $PATH
5280do
5281 IFS=$as_save_IFS
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5285 ac_cv_prog_ac_ct_LIPO="lipo"
5286 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 break 2
5288 fi
5289done
5290done
5291IFS=$as_save_IFS
5292
5293fi
5294fi
5295ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5296if test -n "$ac_ct_LIPO"; then
5297 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5298$as_echo "$ac_ct_LIPO" >&6; }
5299else
5300 { $as_echo "$as_me:$LINENO: result: no" >&5
5301$as_echo "no" >&6; }
5302fi
5303
5304 if test "x$ac_ct_LIPO" = x; then
5305 LIPO=":"
5306 else
5307 case $cross_compiling:$ac_tool_warned in
5308yes:)
5309{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5310whose name does not start with the host triplet. If you think this
5311configuration is useful to you, please write to autoconf@gnu.org." >&5
5312$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5313whose name does not start with the host triplet. If you think this
5314configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5315ac_tool_warned=yes ;;
5316esac
5317 LIPO=$ac_ct_LIPO
5318 fi
5319else
5320 LIPO="$ac_cv_prog_LIPO"
5321fi
5322
5323 if test -n "$ac_tool_prefix"; then
5324 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5325set dummy ${ac_tool_prefix}otool; ac_word=$2
5326{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5327$as_echo_n "checking for $ac_word... " >&6; }
5328if test "${ac_cv_prog_OTOOL+set}" = set; then
5329 $as_echo_n "(cached) " >&6
5330else
5331 if test -n "$OTOOL"; then
5332 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5333else
5334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335for as_dir in $PATH
5336do
5337 IFS=$as_save_IFS
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 break 2
5344 fi
5345done
5346done
5347IFS=$as_save_IFS
5348
5349fi
5350fi
5351OTOOL=$ac_cv_prog_OTOOL
5352if test -n "$OTOOL"; then
5353 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
5354$as_echo "$OTOOL" >&6; }
5355else
5356 { $as_echo "$as_me:$LINENO: result: no" >&5
5357$as_echo "no" >&6; }
5358fi
5359
5360
5361fi
5362if test -z "$ac_cv_prog_OTOOL"; then
5363 ac_ct_OTOOL=$OTOOL
5364 # Extract the first word of "otool", so it can be a program name with args.
5365set dummy otool; ac_word=$2
5366{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5367$as_echo_n "checking for $ac_word... " >&6; }
5368if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5369 $as_echo_n "(cached) " >&6
5370else
5371 if test -n "$ac_ct_OTOOL"; then
5372 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5373else
5374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375for as_dir in $PATH
5376do
5377 IFS=$as_save_IFS
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5381 ac_cv_prog_ac_ct_OTOOL="otool"
5382 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 break 2
5384 fi
5385done
5386done
5387IFS=$as_save_IFS
5388
5389fi
5390fi
5391ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5392if test -n "$ac_ct_OTOOL"; then
5393 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5394$as_echo "$ac_ct_OTOOL" >&6; }
5395else
5396 { $as_echo "$as_me:$LINENO: result: no" >&5
5397$as_echo "no" >&6; }
5398fi
5399
5400 if test "x$ac_ct_OTOOL" = x; then
5401 OTOOL=":"
5402 else
5403 case $cross_compiling:$ac_tool_warned in
5404yes:)
5405{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5406whose name does not start with the host triplet. If you think this
5407configuration is useful to you, please write to autoconf@gnu.org." >&5
5408$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5409whose name does not start with the host triplet. If you think this
5410configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5411ac_tool_warned=yes ;;
5412esac
5413 OTOOL=$ac_ct_OTOOL
5414 fi
5415else
5416 OTOOL="$ac_cv_prog_OTOOL"
5417fi
5418
5419 if test -n "$ac_tool_prefix"; then
5420 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5421set dummy ${ac_tool_prefix}otool64; ac_word=$2
5422{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5423$as_echo_n "checking for $ac_word... " >&6; }
5424if test "${ac_cv_prog_OTOOL64+set}" = set; then
5425 $as_echo_n "(cached) " >&6
5426else
5427 if test -n "$OTOOL64"; then
5428 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5429else
5430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431for as_dir in $PATH
5432do
5433 IFS=$as_save_IFS
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5438 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5439 break 2
5440 fi
5441done
5442done
5443IFS=$as_save_IFS
5444
5445fi
5446fi
5447OTOOL64=$ac_cv_prog_OTOOL64
5448if test -n "$OTOOL64"; then
5449 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
5450$as_echo "$OTOOL64" >&6; }
5451else
5452 { $as_echo "$as_me:$LINENO: result: no" >&5
5453$as_echo "no" >&6; }
5454fi
5455
5456
5457fi
5458if test -z "$ac_cv_prog_OTOOL64"; then
5459 ac_ct_OTOOL64=$OTOOL64
5460 # Extract the first word of "otool64", so it can be a program name with args.
5461set dummy otool64; ac_word=$2
5462{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5463$as_echo_n "checking for $ac_word... " >&6; }
5464if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5465 $as_echo_n "(cached) " >&6
5466else
5467 if test -n "$ac_ct_OTOOL64"; then
5468 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5469else
5470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471for as_dir in $PATH
5472do
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_prog_ac_ct_OTOOL64="otool64"
5478 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5480 fi
5481done
5482done
5483IFS=$as_save_IFS
5484
5485fi
5486fi
5487ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5488if test -n "$ac_ct_OTOOL64"; then
5489 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5490$as_echo "$ac_ct_OTOOL64" >&6; }
5491else
5492 { $as_echo "$as_me:$LINENO: result: no" >&5
5493$as_echo "no" >&6; }
5494fi
5495
5496 if test "x$ac_ct_OTOOL64" = x; then
5497 OTOOL64=":"
5498 else
5499 case $cross_compiling:$ac_tool_warned in
5500yes:)
5501{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5502whose name does not start with the host triplet. If you think this
5503configuration is useful to you, please write to autoconf@gnu.org." >&5
5504$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5505whose name does not start with the host triplet. If you think this
5506configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5507ac_tool_warned=yes ;;
5508esac
5509 OTOOL64=$ac_ct_OTOOL64
5510 fi
5511else
5512 OTOOL64="$ac_cv_prog_OTOOL64"
5513fi
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5542$as_echo_n "checking for -single_module linker flag... " >&6; }
5543if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5544 $as_echo_n "(cached) " >&6
5545else
5546 lt_cv_apple_cc_single_mod=no
5547 if test -z "${LT_MULTI_MODULE}"; then
5548 # By default we will add the -single_module flag. You can override
5549 # by either setting the environment variable LT_MULTI_MODULE
5550 # non-empty at configure time, or by adding -multi_module to the
5551 # link flags.
5552 rm -rf libconftest.dylib*
5553 echo "int foo(void){return 1;}" > conftest.c
5554 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5555-dynamiclib -Wl,-single_module conftest.c" >&5
5556 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5557 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5558 _lt_result=$?
5559 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5560 lt_cv_apple_cc_single_mod=yes
5561 else
5562 cat conftest.err >&5
5563 fi
5564 rm -rf libconftest.dylib*
5565 rm -f conftest.*
5566 fi
5567fi
5568{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5569$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5570 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5571$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5572if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5573 $as_echo_n "(cached) " >&6
5574else
5575 lt_cv_ld_exported_symbols_list=no
5576 save_LDFLAGS=$LDFLAGS
5577 echo "_main" > conftest.sym
5578 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5579 cat >conftest.$ac_ext <<_ACEOF
5580/* confdefs.h. */
5581_ACEOF
5582cat confdefs.h >>conftest.$ac_ext
5583cat >>conftest.$ac_ext <<_ACEOF
5584/* end confdefs.h. */
5585
5586int
5587main ()
5588{
5589
5590 ;
5591 return 0;
5592}
5593_ACEOF
5594rm -f conftest.$ac_objext conftest$ac_exeext
5595if { (ac_try="$ac_link"
5596case "(($ac_try" in
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5599esac
5600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5601$as_echo "$ac_try_echo") >&5
5602 (eval "$ac_link") 2>conftest.er1
5603 ac_status=$?
5604 grep -v '^ *+' conftest.er1 >conftest.err
5605 rm -f conftest.er1
5606 cat conftest.err >&5
5607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } && {
5609 test -z "$ac_c_werror_flag" ||
5610 test ! -s conftest.err
5611 } && test -s conftest$ac_exeext && {
5612 test "$cross_compiling" = yes ||
5613 $as_test_x conftest$ac_exeext
5614 }; then
5615 lt_cv_ld_exported_symbols_list=yes
5616else
5617 $as_echo "$as_me: failed program was:" >&5
5618sed 's/^/| /' conftest.$ac_ext >&5
5619
5620 lt_cv_ld_exported_symbols_list=no
5621fi
5622
5623rm -rf conftest.dSYM
5624rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5625 conftest$ac_exeext conftest.$ac_ext
5626 LDFLAGS="$save_LDFLAGS"
5627
5628fi
5629{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5630$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5631 case $host_os in
5632 rhapsody* | darwin1.[012])
5633 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5634 darwin1.*)
5635 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5636 darwin*) # darwin 5.x on
5637 # if running on 10.5 or later, the deployment target defaults
5638 # to the OS version, if on x86, and 10.4, the deployment
5639 # target defaults to 10.4. Don't you love it?
5640 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5641 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5642 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5643 10.[012]*)
5644 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5645 10.*)
5646 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5647 esac
5648 ;;
5649 esac
5650 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5651 _lt_dar_single_mod='$single_module'
5652 fi
5653 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5654 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5655 else
5656 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5657 fi
5658 if test "$DSYMUTIL" != ":"; then
5659 _lt_dsymutil='~$DSYMUTIL $lib || :'
5660 else
5661 _lt_dsymutil=
5662 fi
5663 ;;
5664 esac
5665
a.rottmann84e63352003-03-24 09:42:16 +00005666ac_ext=c
5667ac_cpp='$CPP $CPPFLAGS'
5668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5670ac_compiler_gnu=$ac_cv_c_compiler_gnu
mlcreech636a9952008-05-05 22:52:56 +00005671{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5672$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005673# On Suns, sometimes $CPP names a directory.
5674if test -n "$CPP" && test -d "$CPP"; then
5675 CPP=
5676fi
5677if test -z "$CPP"; then
5678 if test "${ac_cv_prog_CPP+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00005679 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005680else
a.rottmann84e63352003-03-24 09:42:16 +00005681 # Double quotes because CPP needs to be expanded
5682 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5683 do
5684 ac_preproc_ok=false
5685for ac_c_preproc_warn_flag in '' yes
5686do
5687 # Use a header file that comes with gcc, so configuring glibc
5688 # with a fresh cross-compiler works.
5689 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5690 # <limits.h> exists even on freestanding compilers.
5691 # On the NeXT, cc -E runs the code through the compiler's parser,
5692 # not just through cpp. "Syntax error" is here to catch this case.
5693 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005694/* confdefs.h. */
5695_ACEOF
5696cat confdefs.h >>conftest.$ac_ext
5697cat >>conftest.$ac_ext <<_ACEOF
5698/* end confdefs.h. */
5699#ifdef __STDC__
5700# include <limits.h>
5701#else
5702# include <assert.h>
5703#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005704 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005705_ACEOF
mlcreech94984912008-03-04 19:03:08 +00005706if { (ac_try="$ac_cpp conftest.$ac_ext"
5707case "(($ac_try" in
5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709 *) ac_try_echo=$ac_try;;
5710esac
mlcreech636a9952008-05-05 22:52:56 +00005711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5712$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00005713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005714 ac_status=$?
5715 grep -v '^ *+' conftest.er1 >conftest.err
5716 rm -f conftest.er1
5717 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +00005718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00005719 (exit $ac_status); } >/dev/null && {
5720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5721 test ! -s conftest.err
5722 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005723 :
5724else
mlcreech636a9952008-05-05 22:52:56 +00005725 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005726sed 's/^/| /' conftest.$ac_ext >&5
5727
5728 # Broken: fails on valid input.
5729continue
5730fi
mlcreech94984912008-03-04 19:03:08 +00005731
a.rottmann84e63352003-03-24 09:42:16 +00005732rm -f conftest.err conftest.$ac_ext
5733
mlcreech94984912008-03-04 19:03:08 +00005734 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005735 # can be detected and how.
5736 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005737/* confdefs.h. */
5738_ACEOF
5739cat confdefs.h >>conftest.$ac_ext
5740cat >>conftest.$ac_ext <<_ACEOF
5741/* end confdefs.h. */
5742#include <ac_nonexistent.h>
5743_ACEOF
mlcreech94984912008-03-04 19:03:08 +00005744if { (ac_try="$ac_cpp conftest.$ac_ext"
5745case "(($ac_try" in
5746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747 *) ac_try_echo=$ac_try;;
5748esac
mlcreech636a9952008-05-05 22:52:56 +00005749eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5750$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00005751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005752 ac_status=$?
5753 grep -v '^ *+' conftest.er1 >conftest.err
5754 rm -f conftest.er1
5755 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +00005756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00005757 (exit $ac_status); } >/dev/null && {
5758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5759 test ! -s conftest.err
5760 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005761 # Broken: success on invalid input.
5762continue
5763else
mlcreech636a9952008-05-05 22:52:56 +00005764 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005765sed 's/^/| /' conftest.$ac_ext >&5
5766
5767 # Passes both tests.
5768ac_preproc_ok=:
5769break
5770fi
mlcreech94984912008-03-04 19:03:08 +00005771
a.rottmann84e63352003-03-24 09:42:16 +00005772rm -f conftest.err conftest.$ac_ext
5773
5774done
5775# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5776rm -f conftest.err conftest.$ac_ext
5777if $ac_preproc_ok; then
5778 break
5779fi
5780
5781 done
5782 ac_cv_prog_CPP=$CPP
5783
5784fi
5785 CPP=$ac_cv_prog_CPP
5786else
5787 ac_cv_prog_CPP=$CPP
5788fi
mlcreech636a9952008-05-05 22:52:56 +00005789{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
5790$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005791ac_preproc_ok=false
5792for ac_c_preproc_warn_flag in '' yes
5793do
5794 # Use a header file that comes with gcc, so configuring glibc
5795 # with a fresh cross-compiler works.
5796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5797 # <limits.h> exists even on freestanding compilers.
5798 # On the NeXT, cc -E runs the code through the compiler's parser,
5799 # not just through cpp. "Syntax error" is here to catch this case.
5800 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005801/* confdefs.h. */
5802_ACEOF
5803cat confdefs.h >>conftest.$ac_ext
5804cat >>conftest.$ac_ext <<_ACEOF
5805/* end confdefs.h. */
5806#ifdef __STDC__
5807# include <limits.h>
5808#else
5809# include <assert.h>
5810#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005811 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005812_ACEOF
mlcreech94984912008-03-04 19:03:08 +00005813if { (ac_try="$ac_cpp conftest.$ac_ext"
5814case "(($ac_try" in
5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5817esac
mlcreech636a9952008-05-05 22:52:56 +00005818eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5819$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00005820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005821 ac_status=$?
5822 grep -v '^ *+' conftest.er1 >conftest.err
5823 rm -f conftest.er1
5824 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +00005825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00005826 (exit $ac_status); } >/dev/null && {
5827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5828 test ! -s conftest.err
5829 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005830 :
5831else
mlcreech636a9952008-05-05 22:52:56 +00005832 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005833sed 's/^/| /' conftest.$ac_ext >&5
5834
5835 # Broken: fails on valid input.
5836continue
5837fi
mlcreech94984912008-03-04 19:03:08 +00005838
a.rottmann84e63352003-03-24 09:42:16 +00005839rm -f conftest.err conftest.$ac_ext
5840
mlcreech94984912008-03-04 19:03:08 +00005841 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005842 # can be detected and how.
5843 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005844/* confdefs.h. */
5845_ACEOF
5846cat confdefs.h >>conftest.$ac_ext
5847cat >>conftest.$ac_ext <<_ACEOF
5848/* end confdefs.h. */
5849#include <ac_nonexistent.h>
5850_ACEOF
mlcreech94984912008-03-04 19:03:08 +00005851if { (ac_try="$ac_cpp conftest.$ac_ext"
5852case "(($ac_try" in
5853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854 *) ac_try_echo=$ac_try;;
5855esac
mlcreech636a9952008-05-05 22:52:56 +00005856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5857$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00005858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005859 ac_status=$?
5860 grep -v '^ *+' conftest.er1 >conftest.err
5861 rm -f conftest.er1
5862 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +00005863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00005864 (exit $ac_status); } >/dev/null && {
5865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5866 test ! -s conftest.err
5867 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005868 # Broken: success on invalid input.
5869continue
5870else
mlcreech636a9952008-05-05 22:52:56 +00005871 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005872sed 's/^/| /' conftest.$ac_ext >&5
5873
5874 # Passes both tests.
5875ac_preproc_ok=:
5876break
5877fi
mlcreech94984912008-03-04 19:03:08 +00005878
a.rottmann84e63352003-03-24 09:42:16 +00005879rm -f conftest.err conftest.$ac_ext
5880
5881done
5882# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5883rm -f conftest.err conftest.$ac_ext
5884if $ac_preproc_ok; then
5885 :
5886else
mlcreech636a9952008-05-05 22:52:56 +00005887 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
a.rottmann84e63352003-03-24 09:42:16 +00005888See \`config.log' for more details." >&5
mlcreech636a9952008-05-05 22:52:56 +00005889$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
a.rottmann84e63352003-03-24 09:42:16 +00005890See \`config.log' for more details." >&2;}
5891 { (exit 1); exit 1; }; }
5892fi
5893
5894ac_ext=c
5895ac_cpp='$CPP $CPPFLAGS'
5896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5898ac_compiler_gnu=$ac_cv_c_compiler_gnu
5899
5900
mlcreech636a9952008-05-05 22:52:56 +00005901{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5902$as_echo_n "checking for ANSI C header files... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005903if test "${ac_cv_header_stdc+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00005904 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00005905else
5906 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005907/* confdefs.h. */
5908_ACEOF
5909cat confdefs.h >>conftest.$ac_ext
5910cat >>conftest.$ac_ext <<_ACEOF
5911/* end confdefs.h. */
5912#include <stdlib.h>
5913#include <stdarg.h>
5914#include <string.h>
5915#include <float.h>
5916
5917int
5918main ()
5919{
5920
5921 ;
5922 return 0;
5923}
5924_ACEOF
5925rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00005926if { (ac_try="$ac_compile"
5927case "(($ac_try" in
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5930esac
mlcreech636a9952008-05-05 22:52:56 +00005931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5932$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00005933 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005934 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00005935 grep -v '^ *+' conftest.er1 >conftest.err
5936 rm -f conftest.er1
5937 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +00005938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00005939 (exit $ac_status); } && {
5940 test -z "$ac_c_werror_flag" ||
5941 test ! -s conftest.err
5942 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00005943 ac_cv_header_stdc=yes
5944else
mlcreech636a9952008-05-05 22:52:56 +00005945 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005946sed 's/^/| /' conftest.$ac_ext >&5
5947
mlcreech94984912008-03-04 19:03:08 +00005948 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00005949fi
mlcreech94984912008-03-04 19:03:08 +00005950
5951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005952
5953if test $ac_cv_header_stdc = yes; then
5954 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5955 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005956/* confdefs.h. */
5957_ACEOF
5958cat confdefs.h >>conftest.$ac_ext
5959cat >>conftest.$ac_ext <<_ACEOF
5960/* end confdefs.h. */
5961#include <string.h>
5962
5963_ACEOF
5964if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5965 $EGREP "memchr" >/dev/null 2>&1; then
5966 :
5967else
5968 ac_cv_header_stdc=no
5969fi
5970rm -f conftest*
5971
5972fi
5973
5974if test $ac_cv_header_stdc = yes; then
5975 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5976 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005977/* confdefs.h. */
5978_ACEOF
5979cat confdefs.h >>conftest.$ac_ext
5980cat >>conftest.$ac_ext <<_ACEOF
5981/* end confdefs.h. */
5982#include <stdlib.h>
5983
5984_ACEOF
5985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5986 $EGREP "free" >/dev/null 2>&1; then
5987 :
5988else
5989 ac_cv_header_stdc=no
5990fi
5991rm -f conftest*
5992
5993fi
5994
5995if test $ac_cv_header_stdc = yes; then
5996 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5997 if test "$cross_compiling" = yes; then
5998 :
5999else
6000 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006001/* confdefs.h. */
6002_ACEOF
6003cat confdefs.h >>conftest.$ac_ext
6004cat >>conftest.$ac_ext <<_ACEOF
6005/* end confdefs.h. */
6006#include <ctype.h>
mlcreech94984912008-03-04 19:03:08 +00006007#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006008#if ((' ' & 0x0FF) == 0x020)
6009# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6010# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6011#else
6012# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006013 (('a' <= (c) && (c) <= 'i') \
6014 || ('j' <= (c) && (c) <= 'r') \
6015 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006016# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6017#endif
6018
6019#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6020int
6021main ()
6022{
6023 int i;
6024 for (i = 0; i < 256; i++)
6025 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006026 || toupper (i) != TOUPPER (i))
mlcreech94984912008-03-04 19:03:08 +00006027 return 2;
6028 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006029}
6030_ACEOF
6031rm -f conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00006032if { (ac_try="$ac_link"
6033case "(($ac_try" in
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6036esac
mlcreech636a9952008-05-05 22:52:56 +00006037eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6038$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00006039 (eval "$ac_link") 2>&5
a.rottmann84e63352003-03-24 09:42:16 +00006040 ac_status=$?
mlcreech636a9952008-05-05 22:52:56 +00006041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
mlcreech94984912008-03-04 19:03:08 +00006043 { (case "(($ac_try" in
6044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045 *) ac_try_echo=$ac_try;;
6046esac
mlcreech636a9952008-05-05 22:52:56 +00006047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6048$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00006049 (eval "$ac_try") 2>&5
a.rottmann84e63352003-03-24 09:42:16 +00006050 ac_status=$?
mlcreech636a9952008-05-05 22:52:56 +00006051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006052 (exit $ac_status); }; }; then
6053 :
6054else
mlcreech636a9952008-05-05 22:52:56 +00006055 $as_echo "$as_me: program exited with status $ac_status" >&5
6056$as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006057sed 's/^/| /' conftest.$ac_ext >&5
6058
6059( exit $ac_status )
6060ac_cv_header_stdc=no
6061fi
mlcreech636a9952008-05-05 22:52:56 +00006062rm -rf conftest.dSYM
mlcreech94984912008-03-04 19:03:08 +00006063rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6064fi
6065
6066
a.rottmann84e63352003-03-24 09:42:16 +00006067fi
6068fi
mlcreech636a9952008-05-05 22:52:56 +00006069{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6070$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006071if test $ac_cv_header_stdc = yes; then
6072
6073cat >>confdefs.h <<\_ACEOF
6074#define STDC_HEADERS 1
6075_ACEOF
6076
6077fi
6078
6079# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006090 inttypes.h stdint.h unistd.h
a.rottmann84e63352003-03-24 09:42:16 +00006091do
mlcreech636a9952008-05-05 22:52:56 +00006092as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6093{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6094$as_echo_n "checking for $ac_header... " >&6; }
mlcreech94984912008-03-04 19:03:08 +00006095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mlcreech636a9952008-05-05 22:52:56 +00006096 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006097else
6098 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006099/* confdefs.h. */
6100_ACEOF
6101cat confdefs.h >>conftest.$ac_ext
6102cat >>conftest.$ac_ext <<_ACEOF
6103/* end confdefs.h. */
6104$ac_includes_default
6105
6106#include <$ac_header>
6107_ACEOF
6108rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00006109if { (ac_try="$ac_compile"
6110case "(($ac_try" in
6111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6112 *) ac_try_echo=$ac_try;;
6113esac
mlcreech636a9952008-05-05 22:52:56 +00006114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6115$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00006116 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006117 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006118 grep -v '^ *+' conftest.er1 >conftest.err
6119 rm -f conftest.er1
6120 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +00006121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00006122 (exit $ac_status); } && {
6123 test -z "$ac_c_werror_flag" ||
6124 test ! -s conftest.err
6125 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00006126 eval "$as_ac_Header=yes"
6127else
mlcreech636a9952008-05-05 22:52:56 +00006128 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006129sed 's/^/| /' conftest.$ac_ext >&5
6130
mlcreech94984912008-03-04 19:03:08 +00006131 eval "$as_ac_Header=no"
a.rottmann84e63352003-03-24 09:42:16 +00006132fi
mlcreech94984912008-03-04 19:03:08 +00006133
6134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006135fi
mlcreech636a9952008-05-05 22:52:56 +00006136ac_res=`eval 'as_val=${'$as_ac_Header'}
6137 $as_echo "$as_val"'`
6138 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6139$as_echo "$ac_res" >&6; }
6140if test `eval 'as_val=${'$as_ac_Header'}
6141 $as_echo "$as_val"'` = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00006142 cat >>confdefs.h <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +00006143#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006144_ACEOF
6145
6146fi
6147
6148done
6149
6150
6151
6152for ac_header in dlfcn.h
6153do
mlcreech636a9952008-05-05 22:52:56 +00006154as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6155{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6156$as_echo_n "checking for $ac_header... " >&6; }
mlcreech94984912008-03-04 19:03:08 +00006157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mlcreech636a9952008-05-05 22:52:56 +00006158 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006159else
mlcreech636a9952008-05-05 22:52:56 +00006160 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006161/* confdefs.h. */
6162_ACEOF
6163cat confdefs.h >>conftest.$ac_ext
6164cat >>conftest.$ac_ext <<_ACEOF
6165/* end confdefs.h. */
6166$ac_includes_default
mlcreech636a9952008-05-05 22:52:56 +00006167
a.rottmann84e63352003-03-24 09:42:16 +00006168#include <$ac_header>
6169_ACEOF
6170rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00006171if { (ac_try="$ac_compile"
6172case "(($ac_try" in
6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174 *) ac_try_echo=$ac_try;;
6175esac
mlcreech636a9952008-05-05 22:52:56 +00006176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6177$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00006178 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006179 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +00006183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00006184 (exit $ac_status); } && {
6185 test -z "$ac_c_werror_flag" ||
6186 test ! -s conftest.err
6187 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +00006188 eval "$as_ac_Header=yes"
a.rottmann84e63352003-03-24 09:42:16 +00006189else
mlcreech636a9952008-05-05 22:52:56 +00006190 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006191sed 's/^/| /' conftest.$ac_ext >&5
6192
mlcreech636a9952008-05-05 22:52:56 +00006193 eval "$as_ac_Header=no"
a.rottmann84e63352003-03-24 09:42:16 +00006194fi
mlcreech94984912008-03-04 19:03:08 +00006195
6196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006197fi
mlcreech636a9952008-05-05 22:52:56 +00006198ac_res=`eval 'as_val=${'$as_ac_Header'}
6199 $as_echo "$as_val"'`
6200 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6201$as_echo "$ac_res" >&6; }
6202if test `eval 'as_val=${'$as_ac_Header'}
6203 $as_echo "$as_val"'` = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00006204 cat >>confdefs.h <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +00006205#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006206_ACEOF
6207
6208fi
6209
drh71eb93e2001-09-28 01:34:43 +00006210done
6211
drh71eb93e2001-09-28 01:34:43 +00006212
drh71eb93e2001-09-28 01:34:43 +00006213
mlcreech636a9952008-05-05 22:52:56 +00006214# Set options
mlcreech94984912008-03-04 19:03:08 +00006215
drh71eb93e2001-09-28 01:34:43 +00006216
drh71eb93e2001-09-28 01:34:43 +00006217
mlcreech636a9952008-05-05 22:52:56 +00006218 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006219
a.rottmann9bc8b932004-02-29 15:18:31 +00006220
mlcreech636a9952008-05-05 22:52:56 +00006221 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006222
a.rottmann9bc8b932004-02-29 15:18:31 +00006223
mlcreech636a9952008-05-05 22:52:56 +00006224 # Check whether --enable-shared was given.
6225if test "${enable_shared+set}" = set; then
6226 enableval=$enable_shared; p=${PACKAGE-default}
6227 case $enableval in
6228 yes) enable_shared=yes ;;
6229 no) enable_shared=no ;;
6230 *)
6231 enable_shared=no
6232 # Look at the argument we got. We use all the common list separators.
6233 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6234 for pkg in $enableval; do
6235 IFS="$lt_save_ifs"
6236 if test "X$pkg" = "X$p"; then
6237 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006238 fi
mlcreech636a9952008-05-05 22:52:56 +00006239 done
6240 IFS="$lt_save_ifs"
6241 ;;
6242 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006243else
mlcreech636a9952008-05-05 22:52:56 +00006244 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006245fi
6246
mlcreech636a9952008-05-05 22:52:56 +00006247
6248
6249
6250
6251
6252
6253
6254
6255 # Check whether --enable-static was given.
6256if test "${enable_static+set}" = set; then
6257 enableval=$enable_static; p=${PACKAGE-default}
6258 case $enableval in
6259 yes) enable_static=yes ;;
6260 no) enable_static=no ;;
6261 *)
6262 enable_static=no
6263 # Look at the argument we got. We use all the common list separators.
6264 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6265 for pkg in $enableval; do
6266 IFS="$lt_save_ifs"
6267 if test "X$pkg" = "X$p"; then
6268 enable_static=yes
6269 fi
6270 done
6271 IFS="$lt_save_ifs"
6272 ;;
6273 esac
6274else
6275 enable_static=yes
6276fi
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287# Check whether --with-pic was given.
6288if test "${with_pic+set}" = set; then
6289 withval=$with_pic; pic_mode="$withval"
6290else
6291 pic_mode=default
6292fi
6293
6294
6295test -z "$pic_mode" && pic_mode=default
6296
6297
6298
6299
6300
6301
6302
6303 # Check whether --enable-fast-install was given.
6304if test "${enable_fast_install+set}" = set; then
6305 enableval=$enable_fast_install; p=${PACKAGE-default}
6306 case $enableval in
6307 yes) enable_fast_install=yes ;;
6308 no) enable_fast_install=no ;;
6309 *)
6310 enable_fast_install=no
6311 # Look at the argument we got. We use all the common list separators.
6312 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6313 for pkg in $enableval; do
6314 IFS="$lt_save_ifs"
6315 if test "X$pkg" = "X$p"; then
6316 enable_fast_install=yes
6317 fi
6318 done
6319 IFS="$lt_save_ifs"
6320 ;;
6321 esac
6322else
6323 enable_fast_install=yes
6324fi
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336# This can be used to rebuild libtool when needed
6337LIBTOOL_DEPS="$ltmain"
6338
6339# Always use our own libtool.
6340LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366test -z "$LN_S" && LN_S="ln -s"
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381if test -n "${ZSH_VERSION+set}" ; then
6382 setopt NO_GLOB_SUBST
6383fi
6384
6385{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6386$as_echo_n "checking for objdir... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006387if test "${lt_cv_objdir+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00006388 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006389else
6390 rm -f .libs 2>/dev/null
6391mkdir .libs 2>/dev/null
6392if test -d .libs; then
6393 lt_cv_objdir=.libs
6394else
6395 # MS-DOS does not allow filenames that begin with a dot.
6396 lt_cv_objdir=_libs
6397fi
6398rmdir .libs 2>/dev/null
6399fi
mlcreech636a9952008-05-05 22:52:56 +00006400{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6401$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006402objdir=$lt_cv_objdir
6403
6404
6405
6406
6407
mlcreech636a9952008-05-05 22:52:56 +00006408cat >>confdefs.h <<_ACEOF
6409#define LT_OBJDIR "$lt_cv_objdir/"
6410_ACEOF
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
a.rottmann9bc8b932004-02-29 15:18:31 +00006428case $host_os in
6429aix3*)
6430 # AIX sometimes has problems with the GCC collect2 program. For some
6431 # reason, if we set the COLLECT_NAMES environment variable, the problems
6432 # vanish in a puff of smoke.
6433 if test "X${COLLECT_NAMES+set}" != Xset; then
6434 COLLECT_NAMES=
6435 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006436 fi
6437 ;;
6438esac
6439
a.rottmann9bc8b932004-02-29 15:18:31 +00006440# Sed substitution that helps us do robust quoting. It backslashifies
6441# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006442sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006443
6444# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006445double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006446
6447# Sed substitution to delay expansion of an escaped shell variable in a
6448# double_quote_subst'ed string.
6449delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6450
mlcreech636a9952008-05-05 22:52:56 +00006451# Sed substitution to delay expansion of an escaped single quote.
6452delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6453
a.rottmann9bc8b932004-02-29 15:18:31 +00006454# Sed substitution to avoid accidental globbing in evaled expressions
6455no_glob_subst='s/\*/\\\*/g'
6456
a.rottmann9bc8b932004-02-29 15:18:31 +00006457# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006458ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006459can_build_shared=yes
6460
vapier7f19c022007-02-17 14:46:31 +00006461# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006462# which needs '.lib').
6463libext=a
mlcreech636a9952008-05-05 22:52:56 +00006464
a.rottmann9bc8b932004-02-29 15:18:31 +00006465with_gnu_ld="$lt_cv_prog_gnu_ld"
6466
a.rottmann84e63352003-03-24 09:42:16 +00006467old_CC="$CC"
6468old_CFLAGS="$CFLAGS"
6469
6470# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006471test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006472test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006473test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006474test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006475test -z "$ac_objext" && ac_objext=o
6476
vapier7f19c022007-02-17 14:46:31 +00006477for cc_temp in $compiler""; do
6478 case $cc_temp in
6479 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6480 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6481 \-*) ;;
6482 *) break;;
6483 esac
6484done
mlcreech636a9952008-05-05 22:52:56 +00006485cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006486
6487
a.rottmann9bc8b932004-02-29 15:18:31 +00006488# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006489test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006490case $deplibs_check_method in
6491file_magic*)
6492 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
mlcreech636a9952008-05-05 22:52:56 +00006493 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6494$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006495if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00006496 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006497else
a.rottmann9bc8b932004-02-29 15:18:31 +00006498 case $MAGIC_CMD in
6499[\\/*] | ?:[\\/]*)
6500 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6501 ;;
6502*)
6503 lt_save_MAGIC_CMD="$MAGIC_CMD"
6504 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6505 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6506 for ac_dir in $ac_dummy; do
6507 IFS="$lt_save_ifs"
6508 test -z "$ac_dir" && ac_dir=.
6509 if test -f $ac_dir/${ac_tool_prefix}file; then
6510 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6511 if test -n "$file_magic_test_file"; then
6512 case $deplibs_check_method in
6513 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006514 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006515 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6516 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6517 $EGREP "$file_magic_regex" > /dev/null; then
6518 :
6519 else
mlcreech636a9952008-05-05 22:52:56 +00006520 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006521
a.rottmann9bc8b932004-02-29 15:18:31 +00006522*** Warning: the command libtool uses to detect shared libraries,
6523*** $file_magic_cmd, produces output that libtool cannot recognize.
6524*** The result is that libtool may fail to recognize shared libraries
6525*** as such. This will affect the creation of libtool libraries that
6526*** depend on shared libraries, but programs linked with such libtool
6527*** libraries will work regardless of this problem. Nevertheless, you
6528*** may want to report the problem to your system manager and/or to
6529*** bug-libtool@gnu.org
6530
mlcreech636a9952008-05-05 22:52:56 +00006531_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006532 fi ;;
6533 esac
6534 fi
6535 break
6536 fi
6537 done
6538 IFS="$lt_save_ifs"
6539 MAGIC_CMD="$lt_save_MAGIC_CMD"
6540 ;;
6541esac
6542fi
6543
6544MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6545if test -n "$MAGIC_CMD"; then
mlcreech636a9952008-05-05 22:52:56 +00006546 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6547$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006548else
mlcreech636a9952008-05-05 22:52:56 +00006549 { $as_echo "$as_me:$LINENO: result: no" >&5
6550$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006551fi
6552
mlcreech636a9952008-05-05 22:52:56 +00006553
6554
6555
6556
a.rottmann9bc8b932004-02-29 15:18:31 +00006557if test -z "$lt_cv_path_MAGIC_CMD"; then
6558 if test -n "$ac_tool_prefix"; then
mlcreech636a9952008-05-05 22:52:56 +00006559 { $as_echo "$as_me:$LINENO: checking for file" >&5
6560$as_echo_n "checking for file... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006561if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00006562 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006563else
6564 case $MAGIC_CMD in
6565[\\/*] | ?:[\\/]*)
6566 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6567 ;;
6568*)
6569 lt_save_MAGIC_CMD="$MAGIC_CMD"
6570 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6571 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6572 for ac_dir in $ac_dummy; do
6573 IFS="$lt_save_ifs"
6574 test -z "$ac_dir" && ac_dir=.
6575 if test -f $ac_dir/file; then
6576 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6577 if test -n "$file_magic_test_file"; then
6578 case $deplibs_check_method in
6579 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006580 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006581 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6582 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6583 $EGREP "$file_magic_regex" > /dev/null; then
6584 :
6585 else
mlcreech636a9952008-05-05 22:52:56 +00006586 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006587
6588*** Warning: the command libtool uses to detect shared libraries,
6589*** $file_magic_cmd, produces output that libtool cannot recognize.
6590*** The result is that libtool may fail to recognize shared libraries
6591*** as such. This will affect the creation of libtool libraries that
6592*** depend on shared libraries, but programs linked with such libtool
6593*** libraries will work regardless of this problem. Nevertheless, you
6594*** may want to report the problem to your system manager and/or to
6595*** bug-libtool@gnu.org
6596
mlcreech636a9952008-05-05 22:52:56 +00006597_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006598 fi ;;
6599 esac
6600 fi
6601 break
6602 fi
6603 done
6604 IFS="$lt_save_ifs"
6605 MAGIC_CMD="$lt_save_MAGIC_CMD"
6606 ;;
6607esac
6608fi
6609
6610MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6611if test -n "$MAGIC_CMD"; then
mlcreech636a9952008-05-05 22:52:56 +00006612 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6613$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006614else
mlcreech636a9952008-05-05 22:52:56 +00006615 { $as_echo "$as_me:$LINENO: result: no" >&5
6616$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006617fi
6618
mlcreech636a9952008-05-05 22:52:56 +00006619
a.rottmann9bc8b932004-02-29 15:18:31 +00006620 else
6621 MAGIC_CMD=:
6622 fi
6623fi
6624
6625 fi
6626 ;;
6627esac
6628
a.rottmann9bc8b932004-02-29 15:18:31 +00006629# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006630
a.rottmann9bc8b932004-02-29 15:18:31 +00006631lt_save_CC="$CC"
6632ac_ext=c
6633ac_cpp='$CPP $CPPFLAGS'
6634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6636ac_compiler_gnu=$ac_cv_c_compiler_gnu
6637
6638
6639# Source file extension for C test sources.
6640ac_ext=c
6641
6642# Object file extension for compiled C test sources.
6643objext=o
6644objext=$objext
6645
6646# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006647lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006648
6649# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006650lt_simple_link_test_code='int main(){return(0);}'
6651
6652
6653
6654
6655
a.rottmann9bc8b932004-02-29 15:18:31 +00006656
6657
6658# If no C compiler was specified, use CC.
6659LTCC=${LTCC-"$CC"}
6660
vapier7f19c022007-02-17 14:46:31 +00006661# If no C compiler flags were specified, use CFLAGS.
6662LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6663
a.rottmann9bc8b932004-02-29 15:18:31 +00006664# Allow CC to be a program name with arguments.
6665compiler=$CC
6666
mlcreech636a9952008-05-05 22:52:56 +00006667# Save the default compiler, since it gets overwritten when the other
6668# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6669compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006670
vapier7f19c022007-02-17 14:46:31 +00006671# save warnings/boilerplate of simple test code
6672ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006673echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006674eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6675_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006676$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006677
vapier7f19c022007-02-17 14:46:31 +00006678ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006679echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006680eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6681_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006682$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006683
6684
mlcreech636a9952008-05-05 22:52:56 +00006685if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006686
6687lt_prog_compiler_no_builtin_flag=
6688
6689if test "$GCC" = yes; then
6690 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6691
mlcreech636a9952008-05-05 22:52:56 +00006692 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6693$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006694if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00006695 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006696else
6697 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006698 ac_outfile=conftest.$ac_objext
6699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006700 lt_compiler_flag="-fno-rtti -fno-exceptions"
6701 # Insert the option either (1) after the last *FLAGS variable, or
6702 # (2) before a word containing "conftest.", or (3) at the end.
6703 # Note that $ac_compile itself does not contain backslashes and begins
6704 # with a dollar sign (not a hyphen), so the echo should work correctly.
6705 # The option is referenced via a variable to avoid confusing sed.
6706 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6709 -e 's:$: $lt_compiler_flag:'`
mlcreech636a9952008-05-05 22:52:56 +00006710 (eval echo "\"\$as_me:6710: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006711 (eval "$lt_compile" 2>conftest.err)
6712 ac_status=$?
6713 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +00006714 echo "$as_me:6714: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006715 if (exit $ac_status) && test -s "$ac_outfile"; then
6716 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006717 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006718 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6720 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006721 lt_cv_prog_compiler_rtti_exceptions=yes
6722 fi
6723 fi
mlcreech636a9952008-05-05 22:52:56 +00006724 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006725
6726fi
mlcreech636a9952008-05-05 22:52:56 +00006727{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6728$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006729
6730if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6731 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6732else
6733 :
6734fi
6735
6736fi
6737
mlcreech636a9952008-05-05 22:52:56 +00006738
6739
6740
6741
6742
6743 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006744lt_prog_compiler_pic=
6745lt_prog_compiler_static=
6746
mlcreech636a9952008-05-05 22:52:56 +00006747{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6748$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006749
drh71eb93e2001-09-28 01:34:43 +00006750 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006751 lt_prog_compiler_wl='-Wl,'
6752 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006753
6754 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006755 aix*)
6756 # All AIX code is PIC.
6757 if test "$host_cpu" = ia64; then
6758 # AIX 5 now supports IA64 processor
6759 lt_prog_compiler_static='-Bstatic'
6760 fi
drh71eb93e2001-09-28 01:34:43 +00006761 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006762
drh71eb93e2001-09-28 01:34:43 +00006763 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006764 case $host_cpu in
6765 powerpc)
6766 # see comment about AmigaOS4 .so support
6767 lt_prog_compiler_pic='-fPIC'
6768 ;;
6769 m68k)
6770 # FIXME: we need at least 68020 code to build shared libraries, but
6771 # adding the `-m68020' flag to GCC prevents building anything better,
6772 # like `-m68040'.
6773 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6774 ;;
6775 esac
drh71eb93e2001-09-28 01:34:43 +00006776 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006777
mlcreech636a9952008-05-05 22:52:56 +00006778 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006779 # PIC is the default for these OSes.
6780 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006781
mlcreech636a9952008-05-05 22:52:56 +00006782 mingw* | cygwin* | pw32* | os2*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006783 # This hack is so that the source file can tell whether it is being
6784 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006785 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6786 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006787 lt_prog_compiler_pic='-DDLL_EXPORT'
6788 ;;
6789
drh71eb93e2001-09-28 01:34:43 +00006790 darwin* | rhapsody*)
6791 # PIC is the default on this platform
6792 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006793 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006794 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006795
a.rottmann9bc8b932004-02-29 15:18:31 +00006796 hpux*)
6797 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6798 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006799 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006800 hppa*64*|ia64*)
6801 # +Z the default
6802 ;;
6803 *)
6804 lt_prog_compiler_pic='-fPIC'
6805 ;;
6806 esac
6807 ;;
6808
mlcreech636a9952008-05-05 22:52:56 +00006809 interix[3-9]*)
6810 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6811 # Instead, we relocate shared libraries at runtime.
6812 ;;
6813
6814 msdosdjgpp*)
6815 # Just because we use GCC doesn't mean we suddenly get shared libraries
6816 # on systems that don't support them.
6817 lt_prog_compiler_can_build_shared=no
6818 enable_shared=no
6819 ;;
6820
6821 *nto* | *qnx*)
6822 # QNX uses GNU C++, but need to define -shared option too, otherwise
6823 # it will coredump.
6824 lt_prog_compiler_pic='-fPIC -shared'
6825 ;;
6826
6827 sysv4*MP*)
6828 if test -d /usr/nec; then
6829 lt_prog_compiler_pic=-Kconform_pic
6830 fi
6831 ;;
6832
drh71eb93e2001-09-28 01:34:43 +00006833 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006834 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006835 ;;
6836 esac
6837 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006838 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006839 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006840 aix*)
6841 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006842 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006843 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006844 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006845 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006846 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006847 fi
6848 ;;
6849
mlcreech636a9952008-05-05 22:52:56 +00006850 mingw* | cygwin* | pw32* | os2*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006851 # This hack is so that the source file can tell whether it is being
6852 # built for inclusion in a dll (and should export symbols for example).
6853 lt_prog_compiler_pic='-DDLL_EXPORT'
6854 ;;
6855
a.rottmann84e63352003-03-24 09:42:16 +00006856 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006857 lt_prog_compiler_wl='-Wl,'
6858 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6859 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006860 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006861 hppa*64*|ia64*)
6862 # +Z the default
6863 ;;
6864 *)
6865 lt_prog_compiler_pic='+Z'
6866 ;;
6867 esac
6868 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6869 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006870 ;;
6871
6872 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006873 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006874 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006875 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006876 ;;
6877
mlcreech636a9952008-05-05 22:52:56 +00006878 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00006879 case $cc_basename in
mlcreech636a9952008-05-05 22:52:56 +00006880 icc* | ecc* | ifort*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006881 lt_prog_compiler_wl='-Wl,'
6882 lt_prog_compiler_pic='-KPIC'
6883 lt_prog_compiler_static='-static'
6884 ;;
vapier7f19c022007-02-17 14:46:31 +00006885 pgcc* | pgf77* | pgf90* | pgf95*)
6886 # Portland Group compilers (*not* the Pentium gcc compiler,
6887 # which looks to be a dead project)
6888 lt_prog_compiler_wl='-Wl,'
6889 lt_prog_compiler_pic='-fpic'
6890 lt_prog_compiler_static='-Bstatic'
6891 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006892 ccc*)
6893 lt_prog_compiler_wl='-Wl,'
6894 # All Alpha code is PIC.
6895 lt_prog_compiler_static='-non_shared'
6896 ;;
mlcreech636a9952008-05-05 22:52:56 +00006897 xl*)
6898 # IBM XL C 8.0/Fortran 10.1 on PPC
6899 lt_prog_compiler_wl='-Wl,'
6900 lt_prog_compiler_pic='-qpic'
6901 lt_prog_compiler_static='-qstaticlink'
6902 ;;
6903 *)
6904 case `$CC -V 2>&1 | sed 5q` in
6905 *Sun\ C*)
6906 # Sun C 5.9
6907 lt_prog_compiler_pic='-KPIC'
6908 lt_prog_compiler_static='-Bstatic'
6909 lt_prog_compiler_wl='-Wl,'
6910 ;;
6911 *Sun\ F*)
6912 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6913 lt_prog_compiler_pic='-KPIC'
6914 lt_prog_compiler_static='-Bstatic'
6915 lt_prog_compiler_wl=''
6916 ;;
6917 esac
6918 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006919 esac
drh71eb93e2001-09-28 01:34:43 +00006920 ;;
6921
mlcreech636a9952008-05-05 22:52:56 +00006922 newsos6)
6923 lt_prog_compiler_pic='-KPIC'
6924 lt_prog_compiler_static='-Bstatic'
6925 ;;
6926
6927 *nto* | *qnx*)
6928 # QNX uses GNU C++, but need to define -shared option too, otherwise
6929 # it will coredump.
6930 lt_prog_compiler_pic='-fPIC -shared'
6931 ;;
6932
drh71eb93e2001-09-28 01:34:43 +00006933 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006934 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006935 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00006936 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006937 ;;
6938
mlcreech636a9952008-05-05 22:52:56 +00006939 rdos*)
6940 lt_prog_compiler_static='-non_shared'
6941 ;;
6942
drh71eb93e2001-09-28 01:34:43 +00006943 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006944 lt_prog_compiler_pic='-KPIC'
6945 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00006946 case $cc_basename in
6947 f77* | f90* | f95*)
6948 lt_prog_compiler_wl='-Qoption ld ';;
6949 *)
6950 lt_prog_compiler_wl='-Wl,';;
6951 esac
drh71eb93e2001-09-28 01:34:43 +00006952 ;;
6953
6954 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006955 lt_prog_compiler_wl='-Qoption ld '
6956 lt_prog_compiler_pic='-PIC'
6957 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006958 ;;
6959
vapier7f19c022007-02-17 14:46:31 +00006960 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006961 lt_prog_compiler_wl='-Wl,'
6962 lt_prog_compiler_pic='-KPIC'
6963 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006964 ;;
6965
6966 sysv4*MP*)
6967 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00006968 lt_prog_compiler_pic='-Kconform_pic'
6969 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006970 fi
6971 ;;
6972
vapier7f19c022007-02-17 14:46:31 +00006973 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6974 lt_prog_compiler_wl='-Wl,'
6975 lt_prog_compiler_pic='-KPIC'
6976 lt_prog_compiler_static='-Bstatic'
6977 ;;
6978
6979 unicos*)
6980 lt_prog_compiler_wl='-Wl,'
6981 lt_prog_compiler_can_build_shared=no
6982 ;;
6983
a.rottmann9bc8b932004-02-29 15:18:31 +00006984 uts4*)
6985 lt_prog_compiler_pic='-pic'
6986 lt_prog_compiler_static='-Bstatic'
6987 ;;
6988
drh71eb93e2001-09-28 01:34:43 +00006989 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006990 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006991 ;;
6992 esac
6993 fi
6994
mlcreech636a9952008-05-05 22:52:56 +00006995case $host_os in
6996 # For platforms which do not support PIC, -DPIC is meaningless:
6997 *djgpp*)
6998 lt_prog_compiler_pic=
6999 ;;
7000 *)
7001 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7002 ;;
7003esac
7004{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7005$as_echo "$lt_prog_compiler_pic" >&6; }
7006
7007
7008
7009
7010
drh71eb93e2001-09-28 01:34:43 +00007011
a.rottmann9bc8b932004-02-29 15:18:31 +00007012#
7013# Check to make sure the PIC flag actually works.
7014#
7015if test -n "$lt_prog_compiler_pic"; then
mlcreech636a9952008-05-05 22:52:56 +00007016 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7017$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7018if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7019 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007020else
mlcreech636a9952008-05-05 22:52:56 +00007021 lt_cv_prog_compiler_pic_works=no
7022 ac_outfile=conftest.$ac_objext
7023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007024 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7025 # Insert the option either (1) after the last *FLAGS variable, or
7026 # (2) before a word containing "conftest.", or (3) at the end.
7027 # Note that $ac_compile itself does not contain backslashes and begins
7028 # with a dollar sign (not a hyphen), so the echo should work correctly.
7029 # The option is referenced via a variable to avoid confusing sed.
7030 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7033 -e 's:$: $lt_compiler_flag:'`
mlcreech636a9952008-05-05 22:52:56 +00007034 (eval echo "\"\$as_me:7034: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007035 (eval "$lt_compile" 2>conftest.err)
7036 ac_status=$?
7037 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +00007038 echo "$as_me:7038: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007039 if (exit $ac_status) && test -s "$ac_outfile"; then
7040 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00007041 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00007042 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007043 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7044 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007045 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007046 fi
7047 fi
mlcreech636a9952008-05-05 22:52:56 +00007048 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007049
a.rottmann9bc8b932004-02-29 15:18:31 +00007050fi
mlcreech636a9952008-05-05 22:52:56 +00007051{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7052$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007053
mlcreech636a9952008-05-05 22:52:56 +00007054if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007055 case $lt_prog_compiler_pic in
7056 "" | " "*) ;;
7057 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7058 esac
drh71eb93e2001-09-28 01:34:43 +00007059else
a.rottmann9bc8b932004-02-29 15:18:31 +00007060 lt_prog_compiler_pic=
7061 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00007062fi
7063
a.rottmann84e63352003-03-24 09:42:16 +00007064fi
mlcreech636a9952008-05-05 22:52:56 +00007065
7066
7067
7068
7069
a.rottmann84e63352003-03-24 09:42:16 +00007070
vapier7f19c022007-02-17 14:46:31 +00007071#
7072# Check to make sure the static flag actually works.
7073#
7074wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
mlcreech636a9952008-05-05 22:52:56 +00007075{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7076$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7077if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7078 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007079else
mlcreech636a9952008-05-05 22:52:56 +00007080 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007081 save_LDFLAGS="$LDFLAGS"
7082 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007083 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007084 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7085 # The linker can only warn and ignore the option if not recognized
7086 # So say no if there are warnings
7087 if test -s conftest.err; then
7088 # Append any errors to the config.log.
7089 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007090 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007091 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7092 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007093 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007094 fi
7095 else
mlcreech636a9952008-05-05 22:52:56 +00007096 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007097 fi
7098 fi
mlcreech636a9952008-05-05 22:52:56 +00007099 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007100 LDFLAGS="$save_LDFLAGS"
7101
7102fi
mlcreech636a9952008-05-05 22:52:56 +00007103{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7104$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007105
mlcreech636a9952008-05-05 22:52:56 +00007106if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007107 :
7108else
7109 lt_prog_compiler_static=
7110fi
7111
7112
mlcreech636a9952008-05-05 22:52:56 +00007113
7114
7115
7116
7117
7118 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7119$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007120if test "${lt_cv_prog_compiler_c_o+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00007121 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007122else
a.rottmann9bc8b932004-02-29 15:18:31 +00007123 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007124 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007125 mkdir conftest
7126 cd conftest
7127 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007129
a.rottmann9bc8b932004-02-29 15:18:31 +00007130 lt_compiler_flag="-o out/conftest2.$ac_objext"
7131 # Insert the option either (1) after the last *FLAGS variable, or
7132 # (2) before a word containing "conftest.", or (3) at the end.
7133 # Note that $ac_compile itself does not contain backslashes and begins
7134 # with a dollar sign (not a hyphen), so the echo should work correctly.
7135 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7138 -e 's:$: $lt_compiler_flag:'`
mlcreech636a9952008-05-05 22:52:56 +00007139 (eval echo "\"\$as_me:7139: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007140 (eval "$lt_compile" 2>out/conftest.err)
7141 ac_status=$?
7142 cat out/conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +00007143 echo "$as_me:7143: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007144 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7145 then
7146 # The compiler can only warn and ignore the option if not recognized
7147 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007148 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007149 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7150 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007151 lt_cv_prog_compiler_c_o=yes
7152 fi
7153 fi
vapier7f19c022007-02-17 14:46:31 +00007154 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007155 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007156 # SGI C++ compiler will create directory out/ii_files/ for
7157 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007158 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7159 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007160 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007161 $RM -r conftest
7162 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007163
7164fi
mlcreech636a9952008-05-05 22:52:56 +00007165{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7166$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7167
7168
7169
7170
7171
7172
7173 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7174$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7175if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7176 $as_echo_n "(cached) " >&6
7177else
7178 lt_cv_prog_compiler_c_o=no
7179 $RM -r conftest 2>/dev/null
7180 mkdir conftest
7181 cd conftest
7182 mkdir out
7183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7184
7185 lt_compiler_flag="-o out/conftest2.$ac_objext"
7186 # Insert the option either (1) after the last *FLAGS variable, or
7187 # (2) before a word containing "conftest.", or (3) at the end.
7188 # Note that $ac_compile itself does not contain backslashes and begins
7189 # with a dollar sign (not a hyphen), so the echo should work correctly.
7190 lt_compile=`echo "$ac_compile" | $SED \
7191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7193 -e 's:$: $lt_compiler_flag:'`
7194 (eval echo "\"\$as_me:7194: $lt_compile\"" >&5)
7195 (eval "$lt_compile" 2>out/conftest.err)
7196 ac_status=$?
7197 cat out/conftest.err >&5
7198 echo "$as_me:7198: \$? = $ac_status" >&5
7199 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7200 then
7201 # The compiler can only warn and ignore the option if not recognized
7202 # So say no if there are warnings
7203 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7204 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7205 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7206 lt_cv_prog_compiler_c_o=yes
7207 fi
7208 fi
7209 chmod u+w . 2>&5
7210 $RM conftest*
7211 # SGI C++ compiler will create directory out/ii_files/ for
7212 # template instantiation
7213 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7214 $RM out/* && rmdir out
7215 cd ..
7216 $RM -r conftest
7217 $RM conftest*
7218
7219fi
7220{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7221$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7222
7223
drh71eb93e2001-09-28 01:34:43 +00007224
a.rottmann84e63352003-03-24 09:42:16 +00007225
drh71eb93e2001-09-28 01:34:43 +00007226hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007227if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007228 # do not overwrite the value of need_locks provided by the user
mlcreech636a9952008-05-05 22:52:56 +00007229 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7230$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007231 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007232 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007233 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7234 touch conftest.a
7235 ln conftest.a conftest.b 2>&5 || hard_links=no
7236 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mlcreech636a9952008-05-05 22:52:56 +00007237 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7238$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007239 if test "$hard_links" = no; then
mlcreech636a9952008-05-05 22:52:56 +00007240 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7241$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007242 need_locks=warn
7243 fi
7244else
7245 need_locks=no
7246fi
7247
mlcreech636a9952008-05-05 22:52:56 +00007248
7249
7250
7251
7252
7253 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7254$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007255
7256 runpath_var=
7257 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007258 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007259 archive_cmds=
7260 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007261 compiler_needs_object=no
7262 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007263 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007264 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7265 hardcode_automatic=no
7266 hardcode_direct=no
7267 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007268 hardcode_libdir_flag_spec=
7269 hardcode_libdir_flag_spec_ld=
7270 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007271 hardcode_minus_L=no
7272 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007273 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007274 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007275 module_cmds=
7276 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007277 old_archive_from_new_cmds=
7278 old_archive_from_expsyms_cmds=
7279 thread_safe_flag_spec=
7280 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007281 # include_expsyms should be a list of space-separated symbols to be *always*
7282 # included in the symbol list
7283 include_expsyms=
7284 # exclude_expsyms can be an extended regexp of symbols to exclude
7285 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7286 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7287 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007288 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007289 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7290 # platforms (ab)use it in PIC code, but their linkers get confused if
7291 # the symbol is explicitly referenced. Since portable code cannot
7292 # rely on this symbol name, it's probably fine to never include it in
7293 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007294 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007295 extract_expsyms_cmds=
7296
7297 case $host_os in
7298 cygwin* | mingw* | pw32*)
7299 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7300 # When not using gcc, we currently assume that we are using
7301 # Microsoft Visual C++.
7302 if test "$GCC" != yes; then
7303 with_gnu_ld=no
7304 fi
7305 ;;
vapier7f19c022007-02-17 14:46:31 +00007306 interix*)
7307 # we just hope/assume this is gcc and not c89 (= MSVC++)
7308 with_gnu_ld=yes
7309 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007310 openbsd*)
7311 with_gnu_ld=no
7312 ;;
7313 esac
7314
7315 ld_shlibs=yes
7316 if test "$with_gnu_ld" = yes; then
7317 # If archive_cmds runs LD, not CC, wlarc should be empty
7318 wlarc='${wl}'
7319
vapier7f19c022007-02-17 14:46:31 +00007320 # Set some defaults for GNU ld with shared library support. These
7321 # are reset later if shared libraries are not supported. Putting them
7322 # here allows them to be overridden if necessary.
7323 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007324 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007325 export_dynamic_flag_spec='${wl}--export-dynamic'
7326 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007327 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7328 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7329 else
7330 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007331 fi
7332 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007333 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007334 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7335 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7336 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7337 *\ 2.11.*) ;; # other 2.11 versions
7338 *) supports_anon_versioning=yes ;;
7339 esac
7340
a.rottmann9bc8b932004-02-29 15:18:31 +00007341 # See if GNU ld supports shared libraries.
7342 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007343 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007344 # On AIX/PPC, the GNU linker is very broken
7345 if test "$host_cpu" != ia64; then
7346 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007347 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007348
7349*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7350*** to be unable to reliably create shared libraries on AIX.
7351*** Therefore, libtool is disabling shared libraries support. If you
7352*** really care for shared libraries, you may want to modify your PATH
7353*** so that a non-GNU linker is found, and then restart.
7354
mlcreech636a9952008-05-05 22:52:56 +00007355_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007356 fi
7357 ;;
7358
7359 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007360 case $host_cpu in
7361 powerpc)
7362 # see comment about AmigaOS4 .so support
7363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7364 archive_expsym_cmds=''
7365 ;;
7366 m68k)
7367 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)'
7368 hardcode_libdir_flag_spec='-L$libdir'
7369 hardcode_minus_L=yes
7370 ;;
7371 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007372 ;;
7373
7374 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007375 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007376 allow_undefined_flag=unsupported
7377 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7378 # support --undefined. This deserves some investigation. FIXME
7379 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7380 else
7381 ld_shlibs=no
7382 fi
7383 ;;
7384
7385 cygwin* | mingw* | pw32*)
mlcreech636a9952008-05-05 22:52:56 +00007386 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007387 # as there is no search path for DLLs.
7388 hardcode_libdir_flag_spec='-L$libdir'
7389 allow_undefined_flag=unsupported
7390 always_export_symbols=no
7391 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007392 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 +00007393
mlcreech636a9952008-05-05 22:52:56 +00007394 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007395 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 +00007396 # If the export-symbols file already is a .def file (1st line
7397 # is EXPORTS), use it as is; otherwise, prepend...
7398 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7399 cp $export_symbols $output_objdir/$soname.def;
7400 else
7401 echo EXPORTS > $output_objdir/$soname.def;
7402 cat $export_symbols >> $output_objdir/$soname.def;
7403 fi~
vapier7f19c022007-02-17 14:46:31 +00007404 $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 +00007405 else
7406 ld_shlibs=no
7407 fi
7408 ;;
7409
mlcreech636a9952008-05-05 22:52:56 +00007410 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007411 hardcode_direct=no
7412 hardcode_shlibpath_var=no
7413 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7414 export_dynamic_flag_spec='${wl}-E'
7415 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7416 # Instead, shared libraries are loaded at an image base (0x10000000 by
7417 # default) and relocated if they conflict, which is a slow very memory
7418 # consuming and fragmenting process. To avoid this, we pick a random,
7419 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7420 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7421 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7422 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'
7423 ;;
7424
mlcreech636a9952008-05-05 22:52:56 +00007425 gnu* | linux* | tpf* | k*bsd*-gnu)
7426 tmp_diet=no
7427 if test "$host_os" = linux-dietlibc; then
7428 case $cc_basename in
7429 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7430 esac
7431 fi
7432 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7433 && test "$tmp_diet" = no
7434 then
vapier7f19c022007-02-17 14:46:31 +00007435 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007436 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007437 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007438 pgcc*) # Portland Group C compiler
7439 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 +00007440 tmp_addflag=' $pic_flag'
7441 ;;
7442 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007443 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 +00007444 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007445 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007446 tmp_addflag=' -i_dynamic' ;;
7447 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7448 tmp_addflag=' -i_dynamic -nofor_main' ;;
7449 ifc* | ifort*) # Intel Fortran compiler
7450 tmp_addflag=' -nofor_main' ;;
mlcreech636a9952008-05-05 22:52:56 +00007451 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7452 tmp_sharedflag='-qmkshrobj'
7453 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007454 esac
mlcreech636a9952008-05-05 22:52:56 +00007455 case `$CC -V 2>&1 | sed 5q` in
7456 *Sun\ C*) # Sun C 5.9
7457 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'
7458 compiler_needs_object=yes
7459 tmp_sharedflag='-G' ;;
7460 *Sun\ F*) # Sun Fortran 8.3
7461 tmp_sharedflag='-G' ;;
7462 esac
7463 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007464
mlcreech636a9952008-05-05 22:52:56 +00007465 if test "x$supports_anon_versioning" = xyes; then
7466 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7467 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7468 echo "local: *; };" >> $output_objdir/$libname.ver~
7469 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7470 fi
7471
7472 case $cc_basename in
7473 xlf*)
7474 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7475 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7476 hardcode_libdir_flag_spec=
7477 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7478 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7479 if test "x$supports_anon_versioning" = xyes; then
7480 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7481 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7482 echo "local: *; };" >> $output_objdir/$libname.ver~
7483 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7484 fi
7485 ;;
7486 esac
vapier7f19c022007-02-17 14:46:31 +00007487 else
mlcreech636a9952008-05-05 22:52:56 +00007488 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007489 fi
7490 ;;
7491
7492 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007493 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007494 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7495 wlarc=
7496 else
7497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7498 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7499 fi
7500 ;;
7501
vapier7f19c022007-02-17 14:46:31 +00007502 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007503 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007504 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007505 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007506
7507*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7508*** create shared libraries on Solaris systems. Therefore, libtool
7509*** is disabling shared libraries support. We urge you to upgrade GNU
7510*** binutils to release 2.9.1 or newer. Another option is to modify
7511*** your PATH or compiler configuration so that the native linker is
7512*** used, and then restart.
7513
mlcreech636a9952008-05-05 22:52:56 +00007514_LT_EOF
7515 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007516 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7517 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7518 else
7519 ld_shlibs=no
7520 fi
7521 ;;
7522
vapier7f19c022007-02-17 14:46:31 +00007523 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7524 case `$LD -v 2>&1` in
7525 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7526 ld_shlibs=no
7527 cat <<_LT_EOF 1>&2
7528
7529*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7530*** reliably create shared libraries on SCO systems. Therefore, libtool
7531*** is disabling shared libraries support. We urge you to upgrade GNU
7532*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7533*** your PATH or compiler configuration so that the native linker is
7534*** used, and then restart.
7535
7536_LT_EOF
7537 ;;
7538 *)
mlcreech636a9952008-05-05 22:52:56 +00007539 # For security reasons, it is highly recommended that you always
7540 # use absolute paths for naming shared libraries, and exclude the
7541 # DT_RUNPATH tag from executables and libraries. But doing so
7542 # requires that you compile everything twice, which is a pain.
7543 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7545 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7546 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 +00007547 else
7548 ld_shlibs=no
7549 fi
7550 ;;
7551 esac
7552 ;;
7553
a.rottmann9bc8b932004-02-29 15:18:31 +00007554 sunos4*)
7555 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7556 wlarc=
7557 hardcode_direct=yes
7558 hardcode_shlibpath_var=no
7559 ;;
7560
a.rottmann9bc8b932004-02-29 15:18:31 +00007561 *)
mlcreech636a9952008-05-05 22:52:56 +00007562 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007563 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7564 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7565 else
7566 ld_shlibs=no
7567 fi
7568 ;;
7569 esac
7570
vapier7f19c022007-02-17 14:46:31 +00007571 if test "$ld_shlibs" = no; then
7572 runpath_var=
7573 hardcode_libdir_flag_spec=
7574 export_dynamic_flag_spec=
7575 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007576 fi
7577 else
7578 # PORTME fill in a description of your system's linker (not GNU ld)
7579 case $host_os in
7580 aix3*)
7581 allow_undefined_flag=unsupported
7582 always_export_symbols=yes
7583 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'
7584 # Note: this linker hardcodes the directories in LIBPATH if there
7585 # are no directories specified by -L.
7586 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007587 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007588 # Neither direct hardcoding nor static linking is supported with a
7589 # broken collect2.
7590 hardcode_direct=unsupported
7591 fi
7592 ;;
7593
mlcreech636a9952008-05-05 22:52:56 +00007594 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007595 if test "$host_cpu" = ia64; then
7596 # On IA64, the linker does run time linking by default, so we don't
7597 # have to do anything special.
7598 aix_use_runtimelinking=no
7599 exp_sym_flag='-Bexport'
7600 no_entry_flag=""
7601 else
7602 # If we're using GNU nm, then we don't want the "-C" option.
7603 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007604 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7605 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 +00007606 else
mlcreech636a9952008-05-05 22:52:56 +00007607 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 +00007608 fi
7609 aix_use_runtimelinking=no
7610
7611 # Test if we are trying to use run time linking or normal
7612 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7613 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007614 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007615 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007616 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7617 aix_use_runtimelinking=yes
7618 break
7619 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007620 done
vapier7f19c022007-02-17 14:46:31 +00007621 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007622 esac
7623
7624 exp_sym_flag='-bexport'
7625 no_entry_flag='-bnoentry'
7626 fi
7627
7628 # When large executables or shared objects are built, AIX ld can
7629 # have problems creating the table of contents. If linking a library
7630 # or program results in "error TOC overflow" add -mminimal-toc to
7631 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7632 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7633
7634 archive_cmds=''
7635 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007636 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007637 hardcode_libdir_separator=':'
7638 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007639 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007640
7641 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007642 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007643 # We only want to do this on AIX 4.2 and lower, the check
7644 # below for broken collect2 doesn't work under 4.3+
7645 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007646 if test -f "$collect2name" &&
7647 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007648 then
mlcreech636a9952008-05-05 22:52:56 +00007649 # We have reworked collect2
7650 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007651 else
mlcreech636a9952008-05-05 22:52:56 +00007652 # We have old collect2
7653 hardcode_direct=unsupported
7654 # It fails to find uninstalled libraries when the uninstalled
7655 # path is not listed in the libpath. Setting hardcode_minus_L
7656 # to unsupported forces relinking
7657 hardcode_minus_L=yes
7658 hardcode_libdir_flag_spec='-L$libdir'
7659 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007660 fi
vapier7f19c022007-02-17 14:46:31 +00007661 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007662 esac
7663 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007664 if test "$aix_use_runtimelinking" = yes; then
7665 shared_flag="$shared_flag "'${wl}-G'
7666 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007667 else
7668 # not using gcc
7669 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007670 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7671 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007672 shared_flag='-G'
7673 else
vapier7f19c022007-02-17 14:46:31 +00007674 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007675 shared_flag='${wl}-G'
7676 else
7677 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007678 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007679 fi
7680 fi
7681
7682 # It seems that -bexpall does not export symbols beginning with
7683 # underscore (_), so it is better to generate a list of symbols to export.
7684 always_export_symbols=yes
7685 if test "$aix_use_runtimelinking" = yes; then
7686 # Warning - without using the other runtime loading flags (-brtl),
7687 # -berok will link without error, but may produce a broken library.
7688 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007689 # Determine the default libpath from the value encoded in an
7690 # empty executable.
7691 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007692/* confdefs.h. */
7693_ACEOF
7694cat confdefs.h >>conftest.$ac_ext
7695cat >>conftest.$ac_ext <<_ACEOF
7696/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007697
a.rottmann84e63352003-03-24 09:42:16 +00007698int
7699main ()
7700{
a.rottmann9bc8b932004-02-29 15:18:31 +00007701
a.rottmann84e63352003-03-24 09:42:16 +00007702 ;
7703 return 0;
7704}
7705_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007706rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00007707if { (ac_try="$ac_link"
7708case "(($ac_try" in
7709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7710 *) ac_try_echo=$ac_try;;
7711esac
mlcreech636a9952008-05-05 22:52:56 +00007712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7713$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00007714 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00007715 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007716 grep -v '^ *+' conftest.er1 >conftest.err
7717 rm -f conftest.er1
7718 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +00007719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00007720 (exit $ac_status); } && {
7721 test -z "$ac_c_werror_flag" ||
7722 test ! -s conftest.err
mlcreech636a9952008-05-05 22:52:56 +00007723 } && test -s conftest$ac_exeext && {
7724 test "$cross_compiling" = yes ||
7725 $as_test_x conftest$ac_exeext
7726 }; then
a.rottmann84e63352003-03-24 09:42:16 +00007727
mlcreech636a9952008-05-05 22:52:56 +00007728lt_aix_libpath_sed='
7729 /Import File Strings/,/^$/ {
7730 /^0/ {
7731 s/^0 *\(.*\)$/\1/
7732 p
7733 }
7734 }'
7735aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007736# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007737if test -z "$aix_libpath"; then
7738 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7739fi
a.rottmann84e63352003-03-24 09:42:16 +00007740else
mlcreech636a9952008-05-05 22:52:56 +00007741 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007742sed 's/^/| /' conftest.$ac_ext >&5
7743
mlcreech94984912008-03-04 19:03:08 +00007744
a.rottmann84e63352003-03-24 09:42:16 +00007745fi
mlcreech94984912008-03-04 19:03:08 +00007746
mlcreech636a9952008-05-05 22:52:56 +00007747rm -rf conftest.dSYM
mlcreech94984912008-03-04 19:03:08 +00007748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00007749 conftest$ac_exeext conftest.$ac_ext
7750if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007751
mlcreech636a9952008-05-05 22:52:56 +00007752 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7753 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"
7754 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007755 if test "$host_cpu" = ia64; then
7756 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7757 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007758 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 +00007759 else
mlcreech636a9952008-05-05 22:52:56 +00007760 # Determine the default libpath from the value encoded in an
7761 # empty executable.
a.rottmann9bc8b932004-02-29 15:18:31 +00007762 cat >conftest.$ac_ext <<_ACEOF
7763/* confdefs.h. */
7764_ACEOF
7765cat confdefs.h >>conftest.$ac_ext
7766cat >>conftest.$ac_ext <<_ACEOF
7767/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007768
a.rottmann9bc8b932004-02-29 15:18:31 +00007769int
7770main ()
7771{
a.rottmann84e63352003-03-24 09:42:16 +00007772
a.rottmann9bc8b932004-02-29 15:18:31 +00007773 ;
7774 return 0;
7775}
7776_ACEOF
7777rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00007778if { (ac_try="$ac_link"
7779case "(($ac_try" in
7780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7781 *) ac_try_echo=$ac_try;;
7782esac
mlcreech636a9952008-05-05 22:52:56 +00007783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7784$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00007785 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00007786 ac_status=$?
7787 grep -v '^ *+' conftest.er1 >conftest.err
7788 rm -f conftest.er1
7789 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +00007790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00007791 (exit $ac_status); } && {
7792 test -z "$ac_c_werror_flag" ||
7793 test ! -s conftest.err
mlcreech636a9952008-05-05 22:52:56 +00007794 } && test -s conftest$ac_exeext && {
7795 test "$cross_compiling" = yes ||
7796 $as_test_x conftest$ac_exeext
7797 }; then
a.rottmann84e63352003-03-24 09:42:16 +00007798
mlcreech636a9952008-05-05 22:52:56 +00007799lt_aix_libpath_sed='
7800 /Import File Strings/,/^$/ {
7801 /^0/ {
7802 s/^0 *\(.*\)$/\1/
7803 p
7804 }
7805 }'
7806aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007807# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007808if test -z "$aix_libpath"; then
7809 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7810fi
a.rottmann84e63352003-03-24 09:42:16 +00007811else
mlcreech636a9952008-05-05 22:52:56 +00007812 $as_echo "$as_me: failed program was:" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007813sed 's/^/| /' conftest.$ac_ext >&5
a.rottmann84e63352003-03-24 09:42:16 +00007814
mlcreech94984912008-03-04 19:03:08 +00007815
a.rottmann9bc8b932004-02-29 15:18:31 +00007816fi
mlcreech94984912008-03-04 19:03:08 +00007817
mlcreech636a9952008-05-05 22:52:56 +00007818rm -rf conftest.dSYM
mlcreech94984912008-03-04 19:03:08 +00007819rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00007820 conftest$ac_exeext conftest.$ac_ext
7821if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007822
a.rottmann9bc8b932004-02-29 15:18:31 +00007823 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7824 # Warning - without using the other run time loading flags,
7825 # -berok will link without error, but may produce a broken library.
7826 no_undefined_flag=' ${wl}-bernotok'
7827 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007828 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007829 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007830 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007831 # This is similar to how AIX traditionally builds its shared libraries.
7832 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 +00007833 fi
7834 fi
a.rottmann84e63352003-03-24 09:42:16 +00007835 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007836
7837 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007838 case $host_cpu in
7839 powerpc)
7840 # see comment about AmigaOS4 .so support
7841 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7842 archive_expsym_cmds=''
7843 ;;
7844 m68k)
7845 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)'
7846 hardcode_libdir_flag_spec='-L$libdir'
7847 hardcode_minus_L=yes
7848 ;;
7849 esac
a.rottmann84e63352003-03-24 09:42:16 +00007850 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007851
vapier7f19c022007-02-17 14:46:31 +00007852 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007853 export_dynamic_flag_spec=-rdynamic
7854 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007855
a.rottmann9bc8b932004-02-29 15:18:31 +00007856 cygwin* | mingw* | pw32*)
7857 # When not using gcc, we currently assume that we are using
7858 # Microsoft Visual C++.
7859 # hardcode_libdir_flag_spec is actually meaningless, as there is
7860 # no search path for DLLs.
7861 hardcode_libdir_flag_spec=' '
7862 allow_undefined_flag=unsupported
7863 # Tell ltmain to make .lib files, not .a files.
7864 libext=lib
7865 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00007866 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00007867 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00007868 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 +00007869 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00007870 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00007871 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00007872 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00007873 fix_srcfile_path='`cygpath -w "$srcfile"`'
7874 enable_shared_with_static_runtimes=yes
7875 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007876
a.rottmann9bc8b932004-02-29 15:18:31 +00007877 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00007878
7879
7880 archive_cmds_need_lc=no
7881 hardcode_direct=no
7882 hardcode_automatic=yes
7883 hardcode_shlibpath_var=unsupported
7884 whole_archive_flag_spec=''
7885 link_all_deplibs=yes
7886 allow_undefined_flag="$_lt_dar_allow_undefined"
7887 if test "$GCC" = "yes"; then
7888 output_verbose_link_cmd=echo
7889 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7890 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7891 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}"
7892 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}"
7893
7894 else
7895 ld_shlibs=no
7896 fi
7897
a.rottmann9bc8b932004-02-29 15:18:31 +00007898 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007899
a.rottmann9bc8b932004-02-29 15:18:31 +00007900 dgux*)
7901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7902 hardcode_libdir_flag_spec='-L$libdir'
7903 hardcode_shlibpath_var=no
7904 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007905
a.rottmann9bc8b932004-02-29 15:18:31 +00007906 freebsd1*)
7907 ld_shlibs=no
7908 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007909
a.rottmann9bc8b932004-02-29 15:18:31 +00007910 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7911 # support. Future versions do this automatically, but an explicit c++rt0.o
7912 # does not break anything, and helps significantly (at the cost of a little
7913 # extra space).
7914 freebsd2.2*)
7915 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7916 hardcode_libdir_flag_spec='-R$libdir'
7917 hardcode_direct=yes
7918 hardcode_shlibpath_var=no
7919 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007920
a.rottmann9bc8b932004-02-29 15:18:31 +00007921 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7922 freebsd2*)
7923 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7924 hardcode_direct=yes
7925 hardcode_minus_L=yes
7926 hardcode_shlibpath_var=no
7927 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007928
a.rottmann9bc8b932004-02-29 15:18:31 +00007929 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00007930 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007931 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7932 hardcode_libdir_flag_spec='-R$libdir'
7933 hardcode_direct=yes
7934 hardcode_shlibpath_var=no
7935 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007936
a.rottmann9bc8b932004-02-29 15:18:31 +00007937 hpux9*)
7938 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007939 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 +00007940 else
mlcreech636a9952008-05-05 22:52:56 +00007941 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 +00007942 fi
7943 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7944 hardcode_libdir_separator=:
7945 hardcode_direct=yes
7946
7947 # hardcode_minus_L: Not really in the search PATH,
7948 # but as the default location of the library.
7949 hardcode_minus_L=yes
7950 export_dynamic_flag_spec='${wl}-E'
7951 ;;
7952
vapier7f19c022007-02-17 14:46:31 +00007953 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007954 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007955 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7956 else
7957 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7958 fi
7959 if test "$with_gnu_ld" = no; then
7960 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00007961 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00007962 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00007963 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007964 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00007965 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00007966 # hardcode_minus_L: Not really in the search PATH,
7967 # but as the default location of the library.
7968 hardcode_minus_L=yes
7969 fi
7970 ;;
7971
7972 hpux11*)
7973 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7974 case $host_cpu in
7975 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007976 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7977 ;;
vapier7f19c022007-02-17 14:46:31 +00007978 ia64*)
7979 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7980 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007981 *)
7982 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7983 ;;
7984 esac
7985 else
vapier7f19c022007-02-17 14:46:31 +00007986 case $host_cpu in
7987 hppa*64*)
7988 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7989 ;;
7990 ia64*)
7991 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007992 ;;
7993 *)
vapier7f19c022007-02-17 14:46:31 +00007994 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 +00007995 ;;
7996 esac
7997 fi
7998 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007999 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8000 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00008001
vapier7f19c022007-02-17 14:46:31 +00008002 case $host_cpu in
8003 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00008004 hardcode_direct=no
8005 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008006 ;;
8007 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008008 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00008009 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00008010 export_dynamic_flag_spec='${wl}-E'
8011
8012 # hardcode_minus_L: Not really in the search PATH,
8013 # but as the default location of the library.
8014 hardcode_minus_L=yes
8015 ;;
8016 esac
8017 fi
8018 ;;
8019
8020 irix5* | irix6* | nonstopux*)
8021 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008022 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'
8023 # Try to use the -exported_symbol ld option, if it does not
8024 # work, assume that -exports_file does not work either and
8025 # implicitly export all symbols.
8026 save_LDFLAGS="$LDFLAGS"
8027 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8028 cat >conftest.$ac_ext <<_ACEOF
8029int foo(void) {}
8030_ACEOF
8031rm -f conftest.$ac_objext conftest$ac_exeext
8032if { (ac_try="$ac_link"
8033case "(($ac_try" in
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8036esac
8037eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8038$as_echo "$ac_try_echo") >&5
8039 (eval "$ac_link") 2>conftest.er1
8040 ac_status=$?
8041 grep -v '^ *+' conftest.er1 >conftest.err
8042 rm -f conftest.er1
8043 cat conftest.err >&5
8044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } && {
8046 test -z "$ac_c_werror_flag" ||
8047 test ! -s conftest.err
8048 } && test -s conftest$ac_exeext && {
8049 test "$cross_compiling" = yes ||
8050 $as_test_x conftest$ac_exeext
8051 }; then
8052 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'
8053
8054else
8055 $as_echo "$as_me: failed program was:" >&5
8056sed 's/^/| /' conftest.$ac_ext >&5
8057
8058
8059fi
8060
8061rm -rf conftest.dSYM
8062rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8063 conftest$ac_exeext conftest.$ac_ext
8064 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00008065 else
mlcreech636a9952008-05-05 22:52:56 +00008066 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'
8067 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 +00008068 fi
mlcreech636a9952008-05-05 22:52:56 +00008069 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008070 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8071 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00008072 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00008073 link_all_deplibs=yes
8074 ;;
8075
vapier7f19c022007-02-17 14:46:31 +00008076 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00008077 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008078 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8079 else
8080 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8081 fi
8082 hardcode_libdir_flag_spec='-R$libdir'
8083 hardcode_direct=yes
8084 hardcode_shlibpath_var=no
8085 ;;
8086
8087 newsos6)
8088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8089 hardcode_direct=yes
8090 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8091 hardcode_libdir_separator=:
8092 hardcode_shlibpath_var=no
8093 ;;
8094
mlcreech636a9952008-05-05 22:52:56 +00008095 *nto* | *qnx*)
8096 ;;
8097
a.rottmann9bc8b932004-02-29 15:18:31 +00008098 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00008099 if test -f /usr/libexec/ld.so; then
8100 hardcode_direct=yes
8101 hardcode_shlibpath_var=no
8102 hardcode_direct_absolute=yes
8103 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8104 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8105 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8106 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8107 export_dynamic_flag_spec='${wl}-E'
8108 else
8109 case $host_os in
8110 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8111 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8112 hardcode_libdir_flag_spec='-R$libdir'
8113 ;;
8114 *)
8115 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8116 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8117 ;;
8118 esac
8119 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008120 else
mlcreech636a9952008-05-05 22:52:56 +00008121 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008122 fi
8123 ;;
8124
8125 os2*)
8126 hardcode_libdir_flag_spec='-L$libdir'
8127 hardcode_minus_L=yes
8128 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00008129 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'
8130 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00008131 ;;
8132
8133 osf3*)
8134 if test "$GCC" = yes; then
8135 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008136 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 +00008137 else
8138 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008139 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 +00008140 fi
mlcreech636a9952008-05-05 22:52:56 +00008141 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008142 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8143 hardcode_libdir_separator=:
8144 ;;
8145
8146 osf4* | osf5*) # as osf3* with the addition of -msym flag
8147 if test "$GCC" = yes; then
8148 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008149 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 +00008150 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8151 else
8152 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008153 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'
8154 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~
8155 $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 +00008156
8157 # Both c and cxx compiler support -rpath directly
8158 hardcode_libdir_flag_spec='-rpath $libdir'
8159 fi
mlcreech636a9952008-05-05 22:52:56 +00008160 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008161 hardcode_libdir_separator=:
8162 ;;
8163
a.rottmann9bc8b932004-02-29 15:18:31 +00008164 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008165 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008166 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008167 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008168 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8169 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8170 $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 +00008171 else
mlcreech636a9952008-05-05 22:52:56 +00008172 case `$CC -V 2>&1` in
8173 *"Compilers 5.0"*)
8174 wlarc=''
8175 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8176 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8177 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8178 ;;
8179 *)
8180 wlarc='${wl}'
8181 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8182 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8183 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8184 ;;
8185 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008186 fi
8187 hardcode_libdir_flag_spec='-R$libdir'
8188 hardcode_shlibpath_var=no
8189 case $host_os in
8190 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008191 *)
mlcreech636a9952008-05-05 22:52:56 +00008192 # The compiler driver will combine and reorder linker options,
8193 # but understands `-z linker_flag'. GCC discards it without `$wl',
8194 # but is careful enough not to reorder.
8195 # Supported since Solaris 2.6 (maybe 2.5.1?)
8196 if test "$GCC" = yes; then
8197 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8198 else
8199 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8200 fi
8201 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008202 esac
8203 link_all_deplibs=yes
8204 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008205
a.rottmann9bc8b932004-02-29 15:18:31 +00008206 sunos4*)
8207 if test "x$host_vendor" = xsequent; then
8208 # Use $CC to link under sequent, because it throws in some extra .o
8209 # files that make .init and .fini sections work.
8210 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8211 else
8212 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8213 fi
8214 hardcode_libdir_flag_spec='-L$libdir'
8215 hardcode_direct=yes
8216 hardcode_minus_L=yes
8217 hardcode_shlibpath_var=no
8218 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008219
a.rottmann9bc8b932004-02-29 15:18:31 +00008220 sysv4)
8221 case $host_vendor in
8222 sni)
8223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8224 hardcode_direct=yes # is this really true???
8225 ;;
8226 siemens)
8227 ## LD is ld it makes a PLAMLIB
8228 ## CC just makes a GrossModule.
8229 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8230 reload_cmds='$CC -r -o $output$reload_objs'
8231 hardcode_direct=no
8232 ;;
8233 motorola)
8234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8235 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8236 ;;
8237 esac
8238 runpath_var='LD_RUN_PATH'
8239 hardcode_shlibpath_var=no
8240 ;;
8241
8242 sysv4.3*)
8243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8244 hardcode_shlibpath_var=no
8245 export_dynamic_flag_spec='-Bexport'
8246 ;;
8247
8248 sysv4*MP*)
8249 if test -d /usr/nec; then
8250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8251 hardcode_shlibpath_var=no
8252 runpath_var=LD_RUN_PATH
8253 hardcode_runpath_var=yes
8254 ld_shlibs=yes
8255 fi
8256 ;;
8257
mlcreech636a9952008-05-05 22:52:56 +00008258 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008259 no_undefined_flag='${wl}-z,text'
8260 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008261 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008262 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008263
a.rottmann9bc8b932004-02-29 15:18:31 +00008264 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008265 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8266 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 +00008267 else
vapier7f19c022007-02-17 14:46:31 +00008268 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8269 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 +00008270 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008271 ;;
8272
vapier7f19c022007-02-17 14:46:31 +00008273 sysv5* | sco3.2v5* | sco5v6*)
8274 # Note: We can NOT use -z defs as we might desire, because we do not
8275 # link with -lc, and that would cause any symbols used from libc to
8276 # always be unresolved, which means just about no library would
8277 # ever link correctly. If we're not using GNU ld we use -z text
8278 # though, which does catch some bad symbols but isn't as heavy-handed
8279 # as -z defs.
8280 no_undefined_flag='${wl}-z,text'
8281 allow_undefined_flag='${wl}-z,nodefs'
8282 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008283 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008284 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008285 hardcode_libdir_separator=':'
8286 link_all_deplibs=yes
8287 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008288 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008289
8290 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008291 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8292 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008293 else
mlcreech636a9952008-05-05 22:52:56 +00008294 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8295 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008296 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008297 ;;
8298
8299 uts4*)
8300 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8301 hardcode_libdir_flag_spec='-L$libdir'
8302 hardcode_shlibpath_var=no
8303 ;;
8304
8305 *)
8306 ld_shlibs=no
8307 ;;
8308 esac
mlcreech636a9952008-05-05 22:52:56 +00008309
8310 if test x$host_vendor = xsni; then
8311 case $host in
8312 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8313 export_dynamic_flag_spec='${wl}-Blargedynsym'
8314 ;;
8315 esac
8316 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008317 fi
8318
mlcreech636a9952008-05-05 22:52:56 +00008319{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8320$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008321test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008322
mlcreech636a9952008-05-05 22:52:56 +00008323with_gnu_ld=$with_gnu_ld
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
a.rottmann9bc8b932004-02-29 15:18:31 +00008339#
8340# Do we need to explicitly link libc?
8341#
8342case "x$archive_cmds_need_lc" in
8343x|xyes)
8344 # Assume -lc should be added
8345 archive_cmds_need_lc=yes
8346
8347 if test "$enable_shared" = yes && test "$GCC" = yes; then
8348 case $archive_cmds in
8349 *'~'*)
8350 # FIXME: we may have to deal with multi-command sequences.
8351 ;;
8352 '$CC '*)
8353 # Test whether the compiler implicitly links with -lc since on some
8354 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8355 # to ld, don't add -lc before -lgcc.
mlcreech636a9952008-05-05 22:52:56 +00008356 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8357$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8358 $RM conftest*
8359 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008360
8361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8362 (eval $ac_compile) 2>&5
8363 ac_status=$?
mlcreech636a9952008-05-05 22:52:56 +00008364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008365 (exit $ac_status); } 2>conftest.err; then
8366 soname=conftest
8367 lib=conftest
8368 libobjs=conftest.$ac_objext
8369 deplibs=
8370 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008371 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008372 compiler_flags=-v
8373 linker_flags=-v
8374 verstring=
8375 output_objdir=.
8376 libname=conftest
8377 lt_save_allow_undefined_flag=$allow_undefined_flag
8378 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00008379 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8380 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008381 ac_status=$?
mlcreech636a9952008-05-05 22:52:56 +00008382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008383 (exit $ac_status); }
8384 then
8385 archive_cmds_need_lc=no
8386 else
8387 archive_cmds_need_lc=yes
8388 fi
8389 allow_undefined_flag=$lt_save_allow_undefined_flag
8390 else
8391 cat conftest.err 1>&5
8392 fi
mlcreech636a9952008-05-05 22:52:56 +00008393 $RM conftest*
8394 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8395$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008396 ;;
8397 esac
drh71eb93e2001-09-28 01:34:43 +00008398 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008399 ;;
8400esac
drh71eb93e2001-09-28 01:34:43 +00008401
mlcreech636a9952008-05-05 22:52:56 +00008402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8559$as_echo_n "checking dynamic linker characteristics... " >&6; }
8560
8561if test "$GCC" = yes; then
8562 case $host_os in
8563 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8564 *) lt_awk_arg="/^libraries:/" ;;
8565 esac
8566 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8567 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8568 # if the path contains ";" then we assume it to be the separator
8569 # otherwise default to the standard path separator (i.e. ":") - it is
8570 # assumed that no part of a normal pathname contains ";" but that should
8571 # okay in the real world where ";" in dirpaths is itself problematic.
8572 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8573 else
8574 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8575 fi
8576 # Ok, now we have the path, separated by spaces, we can step through it
8577 # and add multilib dir if necessary.
8578 lt_tmp_lt_search_path_spec=
8579 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8580 for lt_sys_path in $lt_search_path_spec; do
8581 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8582 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8583 else
8584 test -d "$lt_sys_path" && \
8585 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8586 fi
8587 done
8588 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8589BEGIN {RS=" "; FS="/|\n";} {
8590 lt_foo="";
8591 lt_count=0;
8592 for (lt_i = NF; lt_i > 0; lt_i--) {
8593 if ($lt_i != "" && $lt_i != ".") {
8594 if ($lt_i == "..") {
8595 lt_count++;
8596 } else {
8597 if (lt_count == 0) {
8598 lt_foo="/" $lt_i lt_foo;
8599 } else {
8600 lt_count--;
8601 }
8602 }
8603 }
8604 }
8605 if (lt_foo != "") { lt_freq[lt_foo]++; }
8606 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8607}'`
8608 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8609else
8610 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8611fi
drh71eb93e2001-09-28 01:34:43 +00008612library_names_spec=
8613libname_spec='lib$name'
8614soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008615shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008616postinstall_cmds=
8617postuninstall_cmds=
8618finish_cmds=
8619finish_eval=
8620shlibpath_var=
8621shlibpath_overrides_runpath=unknown
8622version_type=none
8623dynamic_linker="$host_os ld.so"
8624sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008625need_lib_prefix=unknown
8626hardcode_into_libs=no
8627
8628# when you set need_version to no, make sure it does not cause -set_version
8629# flags to be left without arguments
8630need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008631
8632case $host_os in
8633aix3*)
8634 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008635 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008636 shlibpath_var=LIBPATH
8637
a.rottmann9bc8b932004-02-29 15:18:31 +00008638 # AIX 3 has no versioning support, so we append a major version to the name.
8639 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008640 ;;
8641
mlcreech636a9952008-05-05 22:52:56 +00008642aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008643 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008644 need_lib_prefix=no
8645 need_version=no
8646 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008647 if test "$host_cpu" = ia64; then
8648 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008649 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008650 shlibpath_var=LD_LIBRARY_PATH
8651 else
8652 # With GCC up to 2.95.x, collect2 would create an import file
8653 # for dependence libraries. The import file would start with
8654 # the line `#! .'. This would cause the generated library to
8655 # depend on `.', always an invalid library. This was fixed in
8656 # development snapshots of GCC prior to 3.0.
8657 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008658 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008659 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8660 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008661 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008662 :
8663 else
8664 can_build_shared=no
8665 fi
8666 ;;
drh71eb93e2001-09-28 01:34:43 +00008667 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008668 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8669 # soname into executable. Probably we can add versioning support to
8670 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008671 if test "$aix_use_runtimelinking" = yes; then
8672 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8673 # instead of lib<name>.a to let people know that these are not
8674 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008676 else
8677 # We preserve .a as extension for shared libraries through AIX4.2
8678 # and later when we are not doing run time linking.
8679 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008680 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008681 fi
8682 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008683 fi
8684 ;;
8685
8686amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008687 case $host_cpu in
8688 powerpc)
8689 # Since July 2007 AmigaOS4 officially supports .so libraries.
8690 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8692 ;;
8693 m68k)
8694 library_names_spec='$libname.ixlibrary $libname.a'
8695 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8696 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'
8697 ;;
8698 esac
drh71eb93e2001-09-28 01:34:43 +00008699 ;;
8700
8701beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008702 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008703 dynamic_linker="$host_os ld.so"
8704 shlibpath_var=LIBRARY_PATH
8705 ;;
8706
vapier7f19c022007-02-17 14:46:31 +00008707bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008708 version_type=linux
8709 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8711 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008712 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8713 shlibpath_var=LD_LIBRARY_PATH
8714 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8715 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8716 # the default ld.so.conf also contains /usr/contrib/lib and
8717 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8718 # libtool to hard-code these into programs
8719 ;;
8720
8721cygwin* | mingw* | pw32*)
8722 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008723 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008724 need_version=no
8725 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008726
drh71eb93e2001-09-28 01:34:43 +00008727 case $GCC,$host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00008728 yes,cygwin* | yes,mingw* | yes,pw32*)
drh71eb93e2001-09-28 01:34:43 +00008729 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008730 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8731 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008732 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008733 dldir=$destdir/`dirname \$dlpath`~
8734 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008735 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008736 chmod a+x \$dldir/$dlname~
8737 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8738 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8739 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008740 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008741 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008742 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008743 shlibpath_overrides_runpath=yes
8744
8745 case $host_os in
8746 cygwin*)
8747 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8748 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8749 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8750 ;;
8751 mingw*)
8752 # MinGW DLLs use traditional 'lib' prefix
8753 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008754 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8755 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008756 # It is most probably a Windows format PATH printed by
8757 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8758 # path with ; separators, and with drive letters. We can handle the
8759 # drive letters (cygwin fileutils understands them), so leave them,
8760 # especially as we might pass files found there to a mingw objdump,
8761 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008762 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008763 else
mlcreech636a9952008-05-05 22:52:56 +00008764 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008765 fi
8766 ;;
8767 pw32*)
8768 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008769 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 +00008770 ;;
8771 esac
drh71eb93e2001-09-28 01:34:43 +00008772 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008773
drh71eb93e2001-09-28 01:34:43 +00008774 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008775 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008776 ;;
8777 esac
8778 dynamic_linker='Win32 ld.exe'
8779 # FIXME: first we should search . and the directory the executable is in
8780 shlibpath_var=PATH
8781 ;;
8782
8783darwin* | rhapsody*)
8784 dynamic_linker="$host_os dyld"
8785 version_type=darwin
8786 need_lib_prefix=no
8787 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008788 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008789 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008790 shlibpath_overrides_runpath=yes
8791 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008792 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008793
8794 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008795 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8796 ;;
8797
8798dgux*)
8799 version_type=linux
8800 need_lib_prefix=no
8801 need_version=no
8802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8803 soname_spec='${libname}${release}${shared_ext}$major'
8804 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008805 ;;
8806
a.rottmann84e63352003-03-24 09:42:16 +00008807freebsd1*)
8808 dynamic_linker=no
8809 ;;
8810
vapier7f19c022007-02-17 14:46:31 +00008811freebsd* | dragonfly*)
8812 # DragonFly does not have aout. When/if they implement a new
8813 # versioning mechanism, adjust this.
8814 if test -x /usr/bin/objformat; then
8815 objformat=`/usr/bin/objformat`
8816 else
8817 case $host_os in
8818 freebsd[123]*) objformat=aout ;;
8819 *) objformat=elf ;;
8820 esac
8821 fi
8822 # Handle Gentoo/FreeBSD as it was Linux
8823 case $host_vendor in
8824 gentoo)
8825 version_type=linux ;;
8826 *)
8827 version_type=freebsd-$objformat ;;
8828 esac
8829
drh71eb93e2001-09-28 01:34:43 +00008830 case $version_type in
8831 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008833 need_version=no
8834 need_lib_prefix=no
8835 ;;
8836 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008837 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008838 need_version=yes
8839 ;;
vapier7f19c022007-02-17 14:46:31 +00008840 linux)
8841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8842 soname_spec='${libname}${release}${shared_ext}$major'
8843 need_lib_prefix=no
8844 need_version=no
8845 ;;
drh71eb93e2001-09-28 01:34:43 +00008846 esac
8847 shlibpath_var=LD_LIBRARY_PATH
8848 case $host_os in
8849 freebsd2*)
8850 shlibpath_overrides_runpath=yes
8851 ;;
vapier7f19c022007-02-17 14:46:31 +00008852 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008853 shlibpath_overrides_runpath=yes
8854 hardcode_into_libs=yes
8855 ;;
vapier7f19c022007-02-17 14:46:31 +00008856 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8857 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008858 shlibpath_overrides_runpath=no
8859 hardcode_into_libs=yes
8860 ;;
mlcreech636a9952008-05-05 22:52:56 +00008861 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00008862 shlibpath_overrides_runpath=yes
8863 hardcode_into_libs=yes
8864 ;;
drh71eb93e2001-09-28 01:34:43 +00008865 esac
8866 ;;
8867
8868gnu*)
8869 version_type=linux
8870 need_lib_prefix=no
8871 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8873 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008874 shlibpath_var=LD_LIBRARY_PATH
8875 hardcode_into_libs=yes
8876 ;;
8877
8878hpux9* | hpux10* | hpux11*)
8879 # Give a soname corresponding to the major version so that dld.sl refuses to
8880 # link against other versions.
8881 version_type=sunos
8882 need_lib_prefix=no
8883 need_version=no
vapier7f19c022007-02-17 14:46:31 +00008884 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00008885 ia64*)
vapier7f19c022007-02-17 14:46:31 +00008886 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00008887 hardcode_into_libs=yes
8888 dynamic_linker="$host_os dld.so"
8889 shlibpath_var=LD_LIBRARY_PATH
8890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8892 soname_spec='${libname}${release}${shared_ext}$major'
8893 if test "X$HPUX_IA64_MODE" = X32; then
8894 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8895 else
8896 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8897 fi
8898 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8899 ;;
mlcreech636a9952008-05-05 22:52:56 +00008900 hppa*64*)
8901 shrext_cmds='.sl'
8902 hardcode_into_libs=yes
8903 dynamic_linker="$host_os dld.sl"
8904 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8905 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8907 soname_spec='${libname}${release}${shared_ext}$major'
8908 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8909 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8910 ;;
8911 *)
vapier7f19c022007-02-17 14:46:31 +00008912 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008913 dynamic_linker="$host_os dld.sl"
8914 shlibpath_var=SHLIB_PATH
8915 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8917 soname_spec='${libname}${release}${shared_ext}$major'
8918 ;;
8919 esac
drh71eb93e2001-09-28 01:34:43 +00008920 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8921 postinstall_cmds='chmod 555 $lib'
8922 ;;
8923
mlcreech636a9952008-05-05 22:52:56 +00008924interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00008925 version_type=linux
8926 need_lib_prefix=no
8927 need_version=no
8928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8929 soname_spec='${libname}${release}${shared_ext}$major'
8930 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8931 shlibpath_var=LD_LIBRARY_PATH
8932 shlibpath_overrides_runpath=no
8933 hardcode_into_libs=yes
8934 ;;
8935
a.rottmann84e63352003-03-24 09:42:16 +00008936irix5* | irix6* | nonstopux*)
8937 case $host_os in
8938 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008939 *)
8940 if test "$lt_cv_prog_gnu_ld" = yes; then
8941 version_type=linux
8942 else
8943 version_type=irix
8944 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00008945 esac
drh71eb93e2001-09-28 01:34:43 +00008946 need_lib_prefix=no
8947 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008948 soname_spec='${libname}${release}${shared_ext}$major'
8949 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 +00008950 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008951 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00008952 libsuff= shlibsuff=
8953 ;;
8954 *)
8955 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00008956 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8957 libsuff= shlibsuff= libmagic=32-bit;;
8958 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8959 libsuff=32 shlibsuff=N32 libmagic=N32;;
8960 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8961 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00008962 *) libsuff= shlibsuff= libmagic=never-match;;
8963 esac
8964 ;;
8965 esac
8966 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8967 shlibpath_overrides_runpath=no
8968 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8969 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00008970 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008971 ;;
8972
8973# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00008974linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00008975 dynamic_linker=no
8976 ;;
8977
8978# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00008979linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00008980 version_type=linux
8981 need_lib_prefix=no
8982 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8984 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8986 shlibpath_var=LD_LIBRARY_PATH
8987 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00008988 # Some binutils ld are patched to set DT_RUNPATH
8989 save_LDFLAGS=$LDFLAGS
8990 save_libdir=$libdir
8991 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8992 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8993 cat >conftest.$ac_ext <<_ACEOF
8994/* confdefs.h. */
8995_ACEOF
8996cat confdefs.h >>conftest.$ac_ext
8997cat >>conftest.$ac_ext <<_ACEOF
8998/* end confdefs.h. */
8999
9000int
9001main ()
9002{
9003
9004 ;
9005 return 0;
9006}
9007_ACEOF
9008rm -f conftest.$ac_objext conftest$ac_exeext
9009if { (ac_try="$ac_link"
9010case "(($ac_try" in
9011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9012 *) ac_try_echo=$ac_try;;
9013esac
9014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9015$as_echo "$ac_try_echo") >&5
9016 (eval "$ac_link") 2>conftest.er1
9017 ac_status=$?
9018 grep -v '^ *+' conftest.er1 >conftest.err
9019 rm -f conftest.er1
9020 cat conftest.err >&5
9021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); } && {
9023 test -z "$ac_c_werror_flag" ||
9024 test ! -s conftest.err
9025 } && test -s conftest$ac_exeext && {
9026 test "$cross_compiling" = yes ||
9027 $as_test_x conftest$ac_exeext
9028 }; then
9029 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9030 shlibpath_overrides_runpath=yes
9031fi
9032
9033else
9034 $as_echo "$as_me: failed program was:" >&5
9035sed 's/^/| /' conftest.$ac_ext >&5
9036
9037
9038fi
9039
9040rm -rf conftest.dSYM
9041rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9042 conftest$ac_exeext conftest.$ac_ext
9043 LDFLAGS=$save_LDFLAGS
9044 libdir=$save_libdir
9045
drh71eb93e2001-09-28 01:34:43 +00009046 # This implies no fast_install, which is unacceptable.
9047 # Some rework will be needed to allow for fast_install
9048 # before this can be enabled.
9049 hardcode_into_libs=yes
9050
a.rottmann9bc8b932004-02-29 15:18:31 +00009051 # Append ld.so.conf contents to the search path
9052 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00009053 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 +00009054 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00009055 fi
9056
drh71eb93e2001-09-28 01:34:43 +00009057 # We used to test for /lib/ld.so.1 and disable shared libraries on
9058 # powerpc, because MkLinux only supported shared libraries with the
9059 # GNU dynamic linker. Since this was broken with cross compilers,
9060 # most powerpc-linux boxes support dynamic linking these days and
9061 # people can always --disable-shared, the test was removed, and we
9062 # assume the GNU/Linux dynamic linker is in use.
9063 dynamic_linker='GNU/Linux ld.so'
9064 ;;
9065
9066netbsd*)
9067 version_type=sunos
9068 need_lib_prefix=no
9069 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00009070 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9073 dynamic_linker='NetBSD (a.out) ld.so'
9074 else
a.rottmann9bc8b932004-02-29 15:18:31 +00009075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9076 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009077 dynamic_linker='NetBSD ld.elf_so'
9078 fi
9079 shlibpath_var=LD_LIBRARY_PATH
9080 shlibpath_overrides_runpath=yes
9081 hardcode_into_libs=yes
9082 ;;
9083
9084newsos6)
9085 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9087 shlibpath_var=LD_LIBRARY_PATH
9088 shlibpath_overrides_runpath=yes
9089 ;;
9090
mlcreech636a9952008-05-05 22:52:56 +00009091*nto* | *qnx*)
9092 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00009093 need_lib_prefix=no
9094 need_version=no
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9096 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009097 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009098 shlibpath_overrides_runpath=no
9099 hardcode_into_libs=yes
9100 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00009101 ;;
9102
drh71eb93e2001-09-28 01:34:43 +00009103openbsd*)
9104 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00009105 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00009106 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00009107 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9108 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00009109 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9110 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00009111 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00009112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9114 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009115 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 +00009116 case $host_os in
9117 openbsd2.[89] | openbsd2.[89].*)
9118 shlibpath_overrides_runpath=no
9119 ;;
9120 *)
9121 shlibpath_overrides_runpath=yes
9122 ;;
9123 esac
a.rottmann84e63352003-03-24 09:42:16 +00009124 else
9125 shlibpath_overrides_runpath=yes
9126 fi
drh71eb93e2001-09-28 01:34:43 +00009127 ;;
9128
9129os2*)
9130 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00009131 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00009132 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009133 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00009134 dynamic_linker='OS/2 ld.exe'
9135 shlibpath_var=LIBPATH
9136 ;;
9137
9138osf3* | osf4* | osf5*)
9139 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00009140 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009141 need_version=no
9142 soname_spec='${libname}${release}${shared_ext}$major'
9143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00009144 shlibpath_var=LD_LIBRARY_PATH
9145 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9146 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9147 ;;
9148
mlcreech636a9952008-05-05 22:52:56 +00009149rdos*)
9150 dynamic_linker=no
9151 ;;
9152
drh71eb93e2001-09-28 01:34:43 +00009153solaris*)
9154 version_type=linux
9155 need_lib_prefix=no
9156 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9158 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009159 shlibpath_var=LD_LIBRARY_PATH
9160 shlibpath_overrides_runpath=yes
9161 hardcode_into_libs=yes
9162 # ldd complains unless libraries are executable
9163 postinstall_cmds='chmod +x $lib'
9164 ;;
9165
9166sunos4*)
9167 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00009168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009169 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9170 shlibpath_var=LD_LIBRARY_PATH
9171 shlibpath_overrides_runpath=yes
9172 if test "$with_gnu_ld" = yes; then
9173 need_lib_prefix=no
9174 fi
9175 need_version=yes
9176 ;;
9177
vapier7f19c022007-02-17 14:46:31 +00009178sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009179 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009182 shlibpath_var=LD_LIBRARY_PATH
9183 case $host_vendor in
9184 sni)
9185 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009186 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009187 runpath_var=LD_RUN_PATH
9188 ;;
9189 siemens)
9190 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009191 ;;
9192 motorola)
9193 need_lib_prefix=no
9194 need_version=no
9195 shlibpath_overrides_runpath=no
9196 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9197 ;;
9198 esac
9199 ;;
9200
9201sysv4*MP*)
9202 if test -d /usr/nec ;then
9203 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009204 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9205 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009206 shlibpath_var=LD_LIBRARY_PATH
9207 fi
9208 ;;
9209
vapier7f19c022007-02-17 14:46:31 +00009210sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9211 version_type=freebsd-elf
9212 need_lib_prefix=no
9213 need_version=no
9214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9215 soname_spec='${libname}${release}${shared_ext}$major'
9216 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009217 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009218 hardcode_into_libs=yes
9219 if test "$with_gnu_ld" = yes; then
9220 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009221 else
9222 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009223 case $host_os in
9224 sco3.2v5*)
9225 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9226 ;;
9227 esac
9228 fi
9229 sys_lib_dlsearch_path_spec='/usr/lib'
9230 ;;
9231
mlcreech636a9952008-05-05 22:52:56 +00009232tpf*)
9233 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9234 version_type=linux
9235 need_lib_prefix=no
9236 need_version=no
9237 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9238 shlibpath_var=LD_LIBRARY_PATH
9239 shlibpath_overrides_runpath=no
9240 hardcode_into_libs=yes
9241 ;;
9242
a.rottmann9bc8b932004-02-29 15:18:31 +00009243uts4*)
9244 version_type=linux
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9246 soname_spec='${libname}${release}${shared_ext}$major'
9247 shlibpath_var=LD_LIBRARY_PATH
9248 ;;
9249
drh71eb93e2001-09-28 01:34:43 +00009250*)
9251 dynamic_linker=no
9252 ;;
9253esac
mlcreech636a9952008-05-05 22:52:56 +00009254{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9255$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009256test "$dynamic_linker" = no && can_build_shared=no
9257
vapier7f19c022007-02-17 14:46:31 +00009258variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9259if test "$GCC" = yes; then
9260 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9261fi
9262
mlcreech636a9952008-05-05 22:52:56 +00009263if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9264 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9265fi
9266if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9267 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9268fi
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9357$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009358hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009359if test -n "$hardcode_libdir_flag_spec" ||
9360 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009361 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009362
mlcreech636a9952008-05-05 22:52:56 +00009363 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009364 if test "$hardcode_direct" != no &&
9365 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9366 # have to relink, otherwise we might link with an installed library
9367 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009368 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009369 test "$hardcode_minus_L" != no; then
9370 # Linking always hardcodes the temporary library directory.
9371 hardcode_action=relink
9372 else
9373 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9374 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009375 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009376else
9377 # We cannot hardcode anything, or else we can only hardcode existing
9378 # directories.
9379 hardcode_action=unsupported
9380fi
mlcreech636a9952008-05-05 22:52:56 +00009381{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9382$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009383
mlcreech636a9952008-05-05 22:52:56 +00009384if test "$hardcode_action" = relink ||
9385 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009386 # Fast installation is not supported
9387 enable_fast_install=no
9388elif test "$shlibpath_overrides_runpath" = yes ||
9389 test "$enable_shared" = no; then
9390 # Fast installation is not necessary
9391 enable_fast_install=needless
9392fi
9393
a.rottmann84e63352003-03-24 09:42:16 +00009394
mlcreech636a9952008-05-05 22:52:56 +00009395
9396
9397
9398
9399 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009400 enable_dlopen=unknown
9401 enable_dlopen_self=unknown
9402 enable_dlopen_self_static=unknown
9403else
9404 lt_cv_dlopen=no
9405 lt_cv_dlopen_libs=
9406
9407 case $host_os in
9408 beos*)
9409 lt_cv_dlopen="load_add_on"
9410 lt_cv_dlopen_libs=
9411 lt_cv_dlopen_self=yes
9412 ;;
9413
a.rottmann9bc8b932004-02-29 15:18:31 +00009414 mingw* | pw32*)
drh71eb93e2001-09-28 01:34:43 +00009415 lt_cv_dlopen="LoadLibrary"
9416 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009417 ;;
drh71eb93e2001-09-28 01:34:43 +00009418
a.rottmann9bc8b932004-02-29 15:18:31 +00009419 cygwin*)
9420 lt_cv_dlopen="dlopen"
9421 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009422 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009423
9424 darwin*)
9425 # if libdl is installed we need to link against it
mlcreech636a9952008-05-05 22:52:56 +00009426 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9427$as_echo_n "checking for dlopen in -ldl... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009428if test "${ac_cv_lib_dl_dlopen+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00009429 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009430else
9431 ac_check_lib_save_LIBS=$LIBS
9432LIBS="-ldl $LIBS"
9433cat >conftest.$ac_ext <<_ACEOF
9434/* confdefs.h. */
9435_ACEOF
9436cat confdefs.h >>conftest.$ac_ext
9437cat >>conftest.$ac_ext <<_ACEOF
9438/* end confdefs.h. */
9439
mlcreech94984912008-03-04 19:03:08 +00009440/* Override any GCC internal prototype to avoid an error.
9441 Use char because int might match the return type of a GCC
9442 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009443#ifdef __cplusplus
9444extern "C"
9445#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009446char dlopen ();
9447int
9448main ()
9449{
mlcreech94984912008-03-04 19:03:08 +00009450return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009451 ;
9452 return 0;
9453}
9454_ACEOF
9455rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00009456if { (ac_try="$ac_link"
9457case "(($ac_try" in
9458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9459 *) ac_try_echo=$ac_try;;
9460esac
mlcreech636a9952008-05-05 22:52:56 +00009461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9462$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00009463 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00009464 ac_status=$?
9465 grep -v '^ *+' conftest.er1 >conftest.err
9466 rm -f conftest.er1
9467 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +00009468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00009469 (exit $ac_status); } && {
9470 test -z "$ac_c_werror_flag" ||
9471 test ! -s conftest.err
mlcreech636a9952008-05-05 22:52:56 +00009472 } && test -s conftest$ac_exeext && {
9473 test "$cross_compiling" = yes ||
9474 $as_test_x conftest$ac_exeext
9475 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009476 ac_cv_lib_dl_dlopen=yes
9477else
mlcreech636a9952008-05-05 22:52:56 +00009478 $as_echo "$as_me: failed program was:" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00009479sed 's/^/| /' conftest.$ac_ext >&5
9480
mlcreech94984912008-03-04 19:03:08 +00009481 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009482fi
mlcreech94984912008-03-04 19:03:08 +00009483
mlcreech636a9952008-05-05 22:52:56 +00009484rm -rf conftest.dSYM
mlcreech94984912008-03-04 19:03:08 +00009485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00009486 conftest$ac_exeext conftest.$ac_ext
9487LIBS=$ac_check_lib_save_LIBS
9488fi
mlcreech636a9952008-05-05 22:52:56 +00009489{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9490$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009491if test $ac_cv_lib_dl_dlopen = yes; then
9492 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9493else
9494
9495 lt_cv_dlopen="dyld"
9496 lt_cv_dlopen_libs=
9497 lt_cv_dlopen_self=yes
9498
9499fi
9500
mlcreech636a9952008-05-05 22:52:56 +00009501 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009502
drh71eb93e2001-09-28 01:34:43 +00009503 *)
mlcreech636a9952008-05-05 22:52:56 +00009504 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9505$as_echo_n "checking for shl_load... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009506if test "${ac_cv_func_shl_load+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00009507 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009508else
9509 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009510/* confdefs.h. */
9511_ACEOF
9512cat confdefs.h >>conftest.$ac_ext
9513cat >>conftest.$ac_ext <<_ACEOF
9514/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00009515/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9517#define shl_load innocuous_shl_load
9518
drh71eb93e2001-09-28 01:34:43 +00009519/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00009520 which can conflict with char shl_load (); below.
9521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9522 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00009523
a.rottmann84e63352003-03-24 09:42:16 +00009524#ifdef __STDC__
9525# include <limits.h>
9526#else
9527# include <assert.h>
9528#endif
a.rottmann964dbb12004-02-26 19:47:42 +00009529
9530#undef shl_load
9531
mlcreech94984912008-03-04 19:03:08 +00009532/* Override any GCC internal prototype to avoid an error.
9533 Use char because int might match the return type of a GCC
9534 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009535#ifdef __cplusplus
9536extern "C"
9537#endif
drh71eb93e2001-09-28 01:34:43 +00009538char shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009539/* The GNU C library defines this for functions which it implements
9540 to always fail with ENOSYS. Some functions are actually named
9541 something starting with __ and the normal name is an alias. */
mlcreech94984912008-03-04 19:03:08 +00009542#if defined __stub_shl_load || defined __stub___shl_load
drh71eb93e2001-09-28 01:34:43 +00009543choke me
drh71eb93e2001-09-28 01:34:43 +00009544#endif
9545
a.rottmann84e63352003-03-24 09:42:16 +00009546int
9547main ()
9548{
mlcreech94984912008-03-04 19:03:08 +00009549return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009550 ;
9551 return 0;
9552}
9553_ACEOF
9554rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00009555if { (ac_try="$ac_link"
9556case "(($ac_try" in
9557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558 *) ac_try_echo=$ac_try;;
9559esac
mlcreech636a9952008-05-05 22:52:56 +00009560eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9561$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00009562 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00009563 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009564 grep -v '^ *+' conftest.er1 >conftest.err
9565 rm -f conftest.er1
9566 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +00009567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00009568 (exit $ac_status); } && {
9569 test -z "$ac_c_werror_flag" ||
9570 test ! -s conftest.err
mlcreech636a9952008-05-05 22:52:56 +00009571 } && test -s conftest$ac_exeext && {
9572 test "$cross_compiling" = yes ||
9573 $as_test_x conftest$ac_exeext
9574 }; then
drh71eb93e2001-09-28 01:34:43 +00009575 ac_cv_func_shl_load=yes
9576else
mlcreech636a9952008-05-05 22:52:56 +00009577 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009578sed 's/^/| /' conftest.$ac_ext >&5
9579
mlcreech94984912008-03-04 19:03:08 +00009580 ac_cv_func_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009581fi
mlcreech94984912008-03-04 19:03:08 +00009582
mlcreech636a9952008-05-05 22:52:56 +00009583rm -rf conftest.dSYM
mlcreech94984912008-03-04 19:03:08 +00009584rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009585 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009586fi
mlcreech636a9952008-05-05 22:52:56 +00009587{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9588$as_echo "$ac_cv_func_shl_load" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009589if test $ac_cv_func_shl_load = yes; then
9590 lt_cv_dlopen="shl_load"
9591else
mlcreech636a9952008-05-05 22:52:56 +00009592 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9593$as_echo_n "checking for shl_load in -ldld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009594if test "${ac_cv_lib_dld_shl_load+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00009595 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009596else
9597 ac_check_lib_save_LIBS=$LIBS
9598LIBS="-ldld $LIBS"
9599cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009600/* confdefs.h. */
9601_ACEOF
9602cat confdefs.h >>conftest.$ac_ext
9603cat >>conftest.$ac_ext <<_ACEOF
9604/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009605
mlcreech94984912008-03-04 19:03:08 +00009606/* Override any GCC internal prototype to avoid an error.
9607 Use char because int might match the return type of a GCC
9608 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009609#ifdef __cplusplus
9610extern "C"
9611#endif
drh71eb93e2001-09-28 01:34:43 +00009612char shl_load ();
9613int
9614main ()
9615{
mlcreech94984912008-03-04 19:03:08 +00009616return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009617 ;
9618 return 0;
9619}
9620_ACEOF
9621rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00009622if { (ac_try="$ac_link"
9623case "(($ac_try" in
9624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625 *) ac_try_echo=$ac_try;;
9626esac
mlcreech636a9952008-05-05 22:52:56 +00009627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9628$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00009629 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00009630 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009631 grep -v '^ *+' conftest.er1 >conftest.err
9632 rm -f conftest.er1
9633 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +00009634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00009635 (exit $ac_status); } && {
9636 test -z "$ac_c_werror_flag" ||
9637 test ! -s conftest.err
mlcreech636a9952008-05-05 22:52:56 +00009638 } && test -s conftest$ac_exeext && {
9639 test "$cross_compiling" = yes ||
9640 $as_test_x conftest$ac_exeext
9641 }; then
drh71eb93e2001-09-28 01:34:43 +00009642 ac_cv_lib_dld_shl_load=yes
9643else
mlcreech636a9952008-05-05 22:52:56 +00009644 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009645sed 's/^/| /' conftest.$ac_ext >&5
9646
mlcreech94984912008-03-04 19:03:08 +00009647 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009648fi
mlcreech94984912008-03-04 19:03:08 +00009649
mlcreech636a9952008-05-05 22:52:56 +00009650rm -rf conftest.dSYM
mlcreech94984912008-03-04 19:03:08 +00009651rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009652 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009653LIBS=$ac_check_lib_save_LIBS
9654fi
mlcreech636a9952008-05-05 22:52:56 +00009655{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9656$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009657if test $ac_cv_lib_dld_shl_load = yes; then
mlcreech636a9952008-05-05 22:52:56 +00009658 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009659else
mlcreech636a9952008-05-05 22:52:56 +00009660 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9661$as_echo_n "checking for dlopen... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009662if test "${ac_cv_func_dlopen+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00009663 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00009664else
9665 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009666/* confdefs.h. */
9667_ACEOF
9668cat confdefs.h >>conftest.$ac_ext
9669cat >>conftest.$ac_ext <<_ACEOF
9670/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00009671/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9673#define dlopen innocuous_dlopen
9674
a.rottmann84e63352003-03-24 09:42:16 +00009675/* System header to define __stub macros and hopefully few prototypes,
9676 which can conflict with char dlopen (); below.
9677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9678 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00009679
a.rottmann84e63352003-03-24 09:42:16 +00009680#ifdef __STDC__
9681# include <limits.h>
9682#else
9683# include <assert.h>
9684#endif
a.rottmann964dbb12004-02-26 19:47:42 +00009685
9686#undef dlopen
9687
mlcreech94984912008-03-04 19:03:08 +00009688/* Override any GCC internal prototype to avoid an error.
9689 Use char because int might match the return type of a GCC
9690 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009691#ifdef __cplusplus
9692extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00009693#endif
a.rottmann84e63352003-03-24 09:42:16 +00009694char dlopen ();
9695/* The GNU C library defines this for functions which it implements
9696 to always fail with ENOSYS. Some functions are actually named
9697 something starting with __ and the normal name is an alias. */
mlcreech94984912008-03-04 19:03:08 +00009698#if defined __stub_dlopen || defined __stub___dlopen
a.rottmann84e63352003-03-24 09:42:16 +00009699choke me
a.rottmann84e63352003-03-24 09:42:16 +00009700#endif
9701
9702int
9703main ()
9704{
mlcreech94984912008-03-04 19:03:08 +00009705return dlopen ();
a.rottmann84e63352003-03-24 09:42:16 +00009706 ;
9707 return 0;
9708}
9709_ACEOF
9710rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00009711if { (ac_try="$ac_link"
9712case "(($ac_try" in
9713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9715esac
mlcreech636a9952008-05-05 22:52:56 +00009716eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9717$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00009718 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00009719 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009720 grep -v '^ *+' conftest.er1 >conftest.err
9721 rm -f conftest.er1
9722 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +00009723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00009724 (exit $ac_status); } && {
9725 test -z "$ac_c_werror_flag" ||
9726 test ! -s conftest.err
mlcreech636a9952008-05-05 22:52:56 +00009727 } && test -s conftest$ac_exeext && {
9728 test "$cross_compiling" = yes ||
9729 $as_test_x conftest$ac_exeext
9730 }; then
a.rottmann84e63352003-03-24 09:42:16 +00009731 ac_cv_func_dlopen=yes
9732else
mlcreech636a9952008-05-05 22:52:56 +00009733 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009734sed 's/^/| /' conftest.$ac_ext >&5
9735
mlcreech94984912008-03-04 19:03:08 +00009736 ac_cv_func_dlopen=no
a.rottmann84e63352003-03-24 09:42:16 +00009737fi
mlcreech94984912008-03-04 19:03:08 +00009738
mlcreech636a9952008-05-05 22:52:56 +00009739rm -rf conftest.dSYM
mlcreech94984912008-03-04 19:03:08 +00009740rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009741 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009742fi
mlcreech636a9952008-05-05 22:52:56 +00009743{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9744$as_echo "$ac_cv_func_dlopen" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009745if test $ac_cv_func_dlopen = yes; then
9746 lt_cv_dlopen="dlopen"
9747else
mlcreech636a9952008-05-05 22:52:56 +00009748 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9749$as_echo_n "checking for dlopen in -ldl... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009750if test "${ac_cv_lib_dl_dlopen+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00009751 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009752else
9753 ac_check_lib_save_LIBS=$LIBS
9754LIBS="-ldl $LIBS"
9755cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009756/* confdefs.h. */
9757_ACEOF
9758cat confdefs.h >>conftest.$ac_ext
9759cat >>conftest.$ac_ext <<_ACEOF
9760/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009761
mlcreech94984912008-03-04 19:03:08 +00009762/* Override any GCC internal prototype to avoid an error.
9763 Use char because int might match the return type of a GCC
9764 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009765#ifdef __cplusplus
9766extern "C"
9767#endif
drh71eb93e2001-09-28 01:34:43 +00009768char dlopen ();
9769int
9770main ()
9771{
mlcreech94984912008-03-04 19:03:08 +00009772return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009773 ;
9774 return 0;
9775}
9776_ACEOF
9777rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00009778if { (ac_try="$ac_link"
9779case "(($ac_try" in
9780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781 *) ac_try_echo=$ac_try;;
9782esac
mlcreech636a9952008-05-05 22:52:56 +00009783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9784$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00009785 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00009786 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009787 grep -v '^ *+' conftest.er1 >conftest.err
9788 rm -f conftest.er1
9789 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +00009790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00009791 (exit $ac_status); } && {
9792 test -z "$ac_c_werror_flag" ||
9793 test ! -s conftest.err
mlcreech636a9952008-05-05 22:52:56 +00009794 } && test -s conftest$ac_exeext && {
9795 test "$cross_compiling" = yes ||
9796 $as_test_x conftest$ac_exeext
9797 }; then
drh71eb93e2001-09-28 01:34:43 +00009798 ac_cv_lib_dl_dlopen=yes
9799else
mlcreech636a9952008-05-05 22:52:56 +00009800 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009801sed 's/^/| /' conftest.$ac_ext >&5
9802
mlcreech94984912008-03-04 19:03:08 +00009803 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009804fi
mlcreech94984912008-03-04 19:03:08 +00009805
mlcreech636a9952008-05-05 22:52:56 +00009806rm -rf conftest.dSYM
mlcreech94984912008-03-04 19:03:08 +00009807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009808 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009809LIBS=$ac_check_lib_save_LIBS
9810fi
mlcreech636a9952008-05-05 22:52:56 +00009811{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9812$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009813if test $ac_cv_lib_dl_dlopen = yes; then
9814 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9815else
mlcreech636a9952008-05-05 22:52:56 +00009816 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9817$as_echo_n "checking for dlopen in -lsvld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009818if test "${ac_cv_lib_svld_dlopen+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00009819 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009820else
9821 ac_check_lib_save_LIBS=$LIBS
9822LIBS="-lsvld $LIBS"
9823cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009824/* confdefs.h. */
9825_ACEOF
9826cat confdefs.h >>conftest.$ac_ext
9827cat >>conftest.$ac_ext <<_ACEOF
9828/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009829
mlcreech94984912008-03-04 19:03:08 +00009830/* Override any GCC internal prototype to avoid an error.
9831 Use char because int might match the return type of a GCC
9832 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009833#ifdef __cplusplus
9834extern "C"
9835#endif
drh71eb93e2001-09-28 01:34:43 +00009836char dlopen ();
9837int
9838main ()
9839{
mlcreech94984912008-03-04 19:03:08 +00009840return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009841 ;
9842 return 0;
9843}
9844_ACEOF
9845rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00009846if { (ac_try="$ac_link"
9847case "(($ac_try" in
9848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849 *) ac_try_echo=$ac_try;;
9850esac
mlcreech636a9952008-05-05 22:52:56 +00009851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9852$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00009853 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00009854 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009855 grep -v '^ *+' conftest.er1 >conftest.err
9856 rm -f conftest.er1
9857 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +00009858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00009859 (exit $ac_status); } && {
9860 test -z "$ac_c_werror_flag" ||
9861 test ! -s conftest.err
mlcreech636a9952008-05-05 22:52:56 +00009862 } && test -s conftest$ac_exeext && {
9863 test "$cross_compiling" = yes ||
9864 $as_test_x conftest$ac_exeext
9865 }; then
drh71eb93e2001-09-28 01:34:43 +00009866 ac_cv_lib_svld_dlopen=yes
9867else
mlcreech636a9952008-05-05 22:52:56 +00009868 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009869sed 's/^/| /' conftest.$ac_ext >&5
9870
mlcreech94984912008-03-04 19:03:08 +00009871 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009872fi
mlcreech94984912008-03-04 19:03:08 +00009873
mlcreech636a9952008-05-05 22:52:56 +00009874rm -rf conftest.dSYM
mlcreech94984912008-03-04 19:03:08 +00009875rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009876 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009877LIBS=$ac_check_lib_save_LIBS
9878fi
mlcreech636a9952008-05-05 22:52:56 +00009879{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9880$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009881if test $ac_cv_lib_svld_dlopen = yes; then
9882 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00009883else
mlcreech636a9952008-05-05 22:52:56 +00009884 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9885$as_echo_n "checking for dld_link in -ldld... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009886if test "${ac_cv_lib_dld_dld_link+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00009887 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00009888else
9889 ac_check_lib_save_LIBS=$LIBS
9890LIBS="-ldld $LIBS"
9891cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009892/* confdefs.h. */
9893_ACEOF
9894cat confdefs.h >>conftest.$ac_ext
9895cat >>conftest.$ac_ext <<_ACEOF
9896/* end confdefs.h. */
9897
mlcreech94984912008-03-04 19:03:08 +00009898/* Override any GCC internal prototype to avoid an error.
9899 Use char because int might match the return type of a GCC
9900 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009901#ifdef __cplusplus
9902extern "C"
9903#endif
a.rottmann84e63352003-03-24 09:42:16 +00009904char dld_link ();
9905int
9906main ()
9907{
mlcreech94984912008-03-04 19:03:08 +00009908return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00009909 ;
9910 return 0;
9911}
9912_ACEOF
9913rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00009914if { (ac_try="$ac_link"
9915case "(($ac_try" in
9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917 *) ac_try_echo=$ac_try;;
9918esac
mlcreech636a9952008-05-05 22:52:56 +00009919eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9920$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +00009921 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00009922 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009923 grep -v '^ *+' conftest.er1 >conftest.err
9924 rm -f conftest.er1
9925 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +00009926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00009927 (exit $ac_status); } && {
9928 test -z "$ac_c_werror_flag" ||
9929 test ! -s conftest.err
mlcreech636a9952008-05-05 22:52:56 +00009930 } && test -s conftest$ac_exeext && {
9931 test "$cross_compiling" = yes ||
9932 $as_test_x conftest$ac_exeext
9933 }; then
a.rottmann84e63352003-03-24 09:42:16 +00009934 ac_cv_lib_dld_dld_link=yes
9935else
mlcreech636a9952008-05-05 22:52:56 +00009936 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009937sed 's/^/| /' conftest.$ac_ext >&5
9938
mlcreech94984912008-03-04 19:03:08 +00009939 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00009940fi
mlcreech94984912008-03-04 19:03:08 +00009941
mlcreech636a9952008-05-05 22:52:56 +00009942rm -rf conftest.dSYM
mlcreech94984912008-03-04 19:03:08 +00009943rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009944 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009945LIBS=$ac_check_lib_save_LIBS
9946fi
mlcreech636a9952008-05-05 22:52:56 +00009947{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9948$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009949if test $ac_cv_lib_dld_dld_link = yes; then
mlcreech636a9952008-05-05 22:52:56 +00009950 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +00009951fi
9952
drh71eb93e2001-09-28 01:34:43 +00009953
9954fi
9955
drh71eb93e2001-09-28 01:34:43 +00009956
9957fi
9958
a.rottmann84e63352003-03-24 09:42:16 +00009959
9960fi
9961
9962
9963fi
9964
9965
drh71eb93e2001-09-28 01:34:43 +00009966fi
9967
9968 ;;
9969 esac
9970
9971 if test "x$lt_cv_dlopen" != xno; then
9972 enable_dlopen=yes
9973 else
9974 enable_dlopen=no
9975 fi
9976
9977 case $lt_cv_dlopen in
9978 dlopen)
9979 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00009980 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00009981
9982 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00009983 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00009984
9985 save_LIBS="$LIBS"
9986 LIBS="$lt_cv_dlopen_libs $LIBS"
9987
mlcreech636a9952008-05-05 22:52:56 +00009988 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9989$as_echo_n "checking whether a program can dlopen itself... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009990if test "${lt_cv_dlopen_self+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +00009991 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009992else
9993 if test "$cross_compiling" = yes; then :
9994 lt_cv_dlopen_self=cross
9995else
a.rottmann9bc8b932004-02-29 15:18:31 +00009996 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009997 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009998 cat > conftest.$ac_ext <<_LT_EOF
9999#line 9999 "configure"
drh71eb93e2001-09-28 01:34:43 +000010000#include "confdefs.h"
10001
10002#if HAVE_DLFCN_H
10003#include <dlfcn.h>
10004#endif
10005
10006#include <stdio.h>
10007
10008#ifdef RTLD_GLOBAL
10009# define LT_DLGLOBAL RTLD_GLOBAL
10010#else
10011# ifdef DL_GLOBAL
10012# define LT_DLGLOBAL DL_GLOBAL
10013# else
10014# define LT_DLGLOBAL 0
10015# endif
10016#endif
10017
10018/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10019 find out it does not work in some platform. */
10020#ifndef LT_DLLAZY_OR_NOW
10021# ifdef RTLD_LAZY
10022# define LT_DLLAZY_OR_NOW RTLD_LAZY
10023# else
10024# ifdef DL_LAZY
10025# define LT_DLLAZY_OR_NOW DL_LAZY
10026# else
10027# ifdef RTLD_NOW
10028# define LT_DLLAZY_OR_NOW RTLD_NOW
10029# else
10030# ifdef DL_NOW
10031# define LT_DLLAZY_OR_NOW DL_NOW
10032# else
10033# define LT_DLLAZY_OR_NOW 0
10034# endif
10035# endif
10036# endif
10037# endif
10038#endif
10039
10040#ifdef __cplusplus
10041extern "C" void exit (int);
10042#endif
10043
10044void fnord() { int i=42;}
10045int main ()
10046{
10047 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10048 int status = $lt_dlunknown;
10049
10050 if (self)
10051 {
10052 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10053 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10054 /* dlclose (self); */
10055 }
vapier7f19c022007-02-17 14:46:31 +000010056 else
10057 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +000010058
10059 exit (status);
10060}
mlcreech636a9952008-05-05 22:52:56 +000010061_LT_EOF
a.rottmann84e63352003-03-24 09:42:16 +000010062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +000010063 (eval $ac_link) 2>&5
10064 ac_status=$?
mlcreech636a9952008-05-05 22:52:56 +000010065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000010066 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +000010067 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000010068 lt_status=$?
10069 case x$lt_status in
10070 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10071 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +000010072 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +000010073 esac
10074 else :
10075 # compilation failed
10076 lt_cv_dlopen_self=no
10077 fi
10078fi
10079rm -fr conftest*
10080
a.rottmann84e63352003-03-24 09:42:16 +000010081
drh71eb93e2001-09-28 01:34:43 +000010082fi
mlcreech636a9952008-05-05 22:52:56 +000010083{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10084$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010085
10086 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +000010087 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
mlcreech636a9952008-05-05 22:52:56 +000010088 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10089$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
drh71eb93e2001-09-28 01:34:43 +000010090if test "${lt_cv_dlopen_self_static+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +000010091 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010092else
10093 if test "$cross_compiling" = yes; then :
10094 lt_cv_dlopen_self_static=cross
10095else
a.rottmann9bc8b932004-02-29 15:18:31 +000010096 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +000010097 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +000010098 cat > conftest.$ac_ext <<_LT_EOF
10099#line 10099 "configure"
drh71eb93e2001-09-28 01:34:43 +000010100#include "confdefs.h"
10101
10102#if HAVE_DLFCN_H
10103#include <dlfcn.h>
10104#endif
10105
10106#include <stdio.h>
10107
10108#ifdef RTLD_GLOBAL
10109# define LT_DLGLOBAL RTLD_GLOBAL
10110#else
10111# ifdef DL_GLOBAL
10112# define LT_DLGLOBAL DL_GLOBAL
10113# else
10114# define LT_DLGLOBAL 0
10115# endif
10116#endif
10117
10118/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10119 find out it does not work in some platform. */
10120#ifndef LT_DLLAZY_OR_NOW
10121# ifdef RTLD_LAZY
10122# define LT_DLLAZY_OR_NOW RTLD_LAZY
10123# else
10124# ifdef DL_LAZY
10125# define LT_DLLAZY_OR_NOW DL_LAZY
10126# else
10127# ifdef RTLD_NOW
10128# define LT_DLLAZY_OR_NOW RTLD_NOW
10129# else
10130# ifdef DL_NOW
10131# define LT_DLLAZY_OR_NOW DL_NOW
10132# else
10133# define LT_DLLAZY_OR_NOW 0
10134# endif
10135# endif
10136# endif
10137# endif
10138#endif
10139
10140#ifdef __cplusplus
10141extern "C" void exit (int);
10142#endif
10143
10144void fnord() { int i=42;}
10145int main ()
10146{
10147 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10148 int status = $lt_dlunknown;
10149
10150 if (self)
10151 {
10152 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10153 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10154 /* dlclose (self); */
10155 }
vapier7f19c022007-02-17 14:46:31 +000010156 else
10157 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +000010158
10159 exit (status);
10160}
mlcreech636a9952008-05-05 22:52:56 +000010161_LT_EOF
a.rottmann84e63352003-03-24 09:42:16 +000010162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +000010163 (eval $ac_link) 2>&5
10164 ac_status=$?
mlcreech636a9952008-05-05 22:52:56 +000010165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000010166 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +000010167 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000010168 lt_status=$?
10169 case x$lt_status in
10170 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10171 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +000010172 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +000010173 esac
10174 else :
10175 # compilation failed
10176 lt_cv_dlopen_self_static=no
10177 fi
10178fi
10179rm -fr conftest*
10180
a.rottmann84e63352003-03-24 09:42:16 +000010181
drh71eb93e2001-09-28 01:34:43 +000010182fi
mlcreech636a9952008-05-05 22:52:56 +000010183{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10184$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010185 fi
10186
10187 CPPFLAGS="$save_CPPFLAGS"
10188 LDFLAGS="$save_LDFLAGS"
10189 LIBS="$save_LIBS"
10190 ;;
10191 esac
10192
10193 case $lt_cv_dlopen_self in
10194 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10195 *) enable_dlopen_self=unknown ;;
10196 esac
10197
10198 case $lt_cv_dlopen_self_static in
10199 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10200 *) enable_dlopen_self_static=unknown ;;
10201 esac
10202fi
10203
drh71eb93e2001-09-28 01:34:43 +000010204
drh71eb93e2001-09-28 01:34:43 +000010205
a.rottmann9bc8b932004-02-29 15:18:31 +000010206
a.rottmann9bc8b932004-02-29 15:18:31 +000010207
mlcreech636a9952008-05-05 22:52:56 +000010208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220striplib=
10221old_striplib=
10222{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10223$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10224if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10225 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10226 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10227 { $as_echo "$as_me:$LINENO: result: yes" >&5
10228$as_echo "yes" >&6; }
10229else
10230# FIXME - insert some real tests, host_os isn't really good enough
10231 case $host_os in
10232 darwin*)
10233 if test -n "$STRIP" ; then
10234 striplib="$STRIP -x"
10235 old_striplib="$STRIP -S"
10236 { $as_echo "$as_me:$LINENO: result: yes" >&5
10237$as_echo "yes" >&6; }
10238 else
10239 { $as_echo "$as_me:$LINENO: result: no" >&5
10240$as_echo "no" >&6; }
10241 fi
a.rottmann84e63352003-03-24 09:42:16 +000010242 ;;
mlcreech636a9952008-05-05 22:52:56 +000010243 *)
10244 { $as_echo "$as_me:$LINENO: result: no" >&5
10245$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010246 ;;
10247 esac
mlcreech636a9952008-05-05 22:52:56 +000010248fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010249
a.rottmann9bc8b932004-02-29 15:18:31 +000010250
drh71eb93e2001-09-28 01:34:43 +000010251
drh71eb93e2001-09-28 01:34:43 +000010252
a.rottmann84e63352003-03-24 09:42:16 +000010253
drh71eb93e2001-09-28 01:34:43 +000010254
drh71eb93e2001-09-28 01:34:43 +000010255
a.rottmann9bc8b932004-02-29 15:18:31 +000010256
drh71eb93e2001-09-28 01:34:43 +000010257
drh71eb93e2001-09-28 01:34:43 +000010258
drh71eb93e2001-09-28 01:34:43 +000010259
drh71eb93e2001-09-28 01:34:43 +000010260
mlcreech636a9952008-05-05 22:52:56 +000010261 # Report which library types will actually be built
10262 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10263$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10264 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10265$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010266
mlcreech636a9952008-05-05 22:52:56 +000010267 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10268$as_echo_n "checking whether to build shared libraries... " >&6; }
10269 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +000010270
mlcreech636a9952008-05-05 22:52:56 +000010271 # On AIX, shared libraries and static libraries use the same namespace, and
10272 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +000010273 case $host_os in
10274 aix3*)
vapier7f19c022007-02-17 14:46:31 +000010275 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +000010276 if test -n "$RANLIB"; then
10277 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10278 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +000010279 fi
10280 ;;
10281
mlcreech636a9952008-05-05 22:52:56 +000010282 aix[4-9]*)
10283 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10284 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +000010285 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010286 ;;
10287 esac
mlcreech636a9952008-05-05 22:52:56 +000010288 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10289$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010290
mlcreech636a9952008-05-05 22:52:56 +000010291 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10292$as_echo_n "checking whether to build static libraries... " >&6; }
10293 # Make sure either enable_shared or enable_static is yes.
10294 test "$enable_shared" = yes || enable_static=yes
10295 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10296$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +000010297
a.rottmann9bc8b932004-02-29 15:18:31 +000010298
a.rottmann9bc8b932004-02-29 15:18:31 +000010299
a.rottmann9bc8b932004-02-29 15:18:31 +000010300
vapier7f19c022007-02-17 14:46:31 +000010301fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010302ac_ext=c
10303ac_cpp='$CPP $CPPFLAGS'
10304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10306ac_compiler_gnu=$ac_cv_c_compiler_gnu
10307
10308CC="$lt_save_CC"
10309
a.rottmann9bc8b932004-02-29 15:18:31 +000010310
a.rottmann9bc8b932004-02-29 15:18:31 +000010311
10312
a.rottmann9bc8b932004-02-29 15:18:31 +000010313
a.rottmann9bc8b932004-02-29 15:18:31 +000010314
a.rottmann9bc8b932004-02-29 15:18:31 +000010315
a.rottmann9bc8b932004-02-29 15:18:31 +000010316
a.rottmann9bc8b932004-02-29 15:18:31 +000010317
a.rottmann9bc8b932004-02-29 15:18:31 +000010318
vapier7f19c022007-02-17 14:46:31 +000010319
a.rottmann9bc8b932004-02-29 15:18:31 +000010320
10321
mlcreech636a9952008-05-05 22:52:56 +000010322 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +000010323
vapier7f19c022007-02-17 14:46:31 +000010324
10325
vapier7f19c022007-02-17 14:46:31 +000010326
mlcreech636a9952008-05-05 22:52:56 +000010327# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +000010328
10329
drh71eb93e2001-09-28 01:34:43 +000010330# Find a good install program. We prefer a C program (faster),
10331# so one script is as good as another. But avoid the broken or
10332# incompatible versions:
10333# SysV /etc/install, /usr/sbin/install
10334# SunOS /usr/etc/install
10335# IRIX /sbin/install
10336# AIX /bin/install
10337# AmigaOS /C/install, which installs bootblocks on floppy discs
10338# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10339# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10340# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +000010341# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +000010342# ./install, which can be erroneously created by make from ./install.sh.
mlcreech636a9952008-05-05 22:52:56 +000010343# Reject install programs that cannot install multiple files.
10344{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10345$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +000010346if test -z "$INSTALL"; then
10347if test "${ac_cv_path_install+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +000010348 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010349else
a.rottmann84e63352003-03-24 09:42:16 +000010350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10351for as_dir in $PATH
10352do
10353 IFS=$as_save_IFS
10354 test -z "$as_dir" && as_dir=.
10355 # Account for people who put trailing slashes in PATH elements.
10356case $as_dir/ in
10357 ./ | .// | /cC/* | \
10358 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
a.rottmann964dbb12004-02-26 19:47:42 +000010359 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a.rottmann84e63352003-03-24 09:42:16 +000010360 /usr/ucb/* ) ;;
10361 *)
10362 # OSF1 and SCO ODT 3.0 have their own names for install.
10363 # Don't use installbsd from OSF since it installs stuff as root
10364 # by default.
10365 for ac_prog in ginstall scoinst install; do
10366 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +000010367 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 +000010368 if test $ac_prog = install &&
10369 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10370 # AIX install. It has an incompatible calling convention.
10371 :
10372 elif test $ac_prog = install &&
10373 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10374 # program-specific install script used by HP pwplus--don't use.
10375 :
10376 else
mlcreech636a9952008-05-05 22:52:56 +000010377 rm -rf conftest.one conftest.two conftest.dir
10378 echo one > conftest.one
10379 echo two > conftest.two
10380 mkdir conftest.dir
10381 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10382 test -s conftest.one && test -s conftest.two &&
10383 test -s conftest.dir/conftest.one &&
10384 test -s conftest.dir/conftest.two
10385 then
10386 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10387 break 3
10388 fi
a.rottmann964dbb12004-02-26 19:47:42 +000010389 fi
10390 fi
drh71eb93e2001-09-28 01:34:43 +000010391 done
a.rottmann84e63352003-03-24 09:42:16 +000010392 done
10393 ;;
10394esac
mlcreech636a9952008-05-05 22:52:56 +000010395
a.rottmann84e63352003-03-24 09:42:16 +000010396done
mlcreech94984912008-03-04 19:03:08 +000010397IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +000010398
mlcreech636a9952008-05-05 22:52:56 +000010399rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +000010400
10401fi
10402 if test "${ac_cv_path_install+set}" = set; then
10403 INSTALL=$ac_cv_path_install
10404 else
mlcreech94984912008-03-04 19:03:08 +000010405 # As a last resort, use the slow shell script. Don't cache a
10406 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +000010407 # break other packages using the cache if that directory is
mlcreech94984912008-03-04 19:03:08 +000010408 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +000010409 INSTALL=$ac_install_sh
10410 fi
10411fi
mlcreech636a9952008-05-05 22:52:56 +000010412{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10413$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010414
10415# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10416# It thinks the first close brace ends the variable substitution.
10417test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10418
10419test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10420
10421test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10422
drhf1878b42006-01-23 18:06:52 +000010423for ac_prog in gawk mawk nawk awk
10424do
10425 # Extract the first word of "$ac_prog", so it can be a program name with args.
10426set dummy $ac_prog; ac_word=$2
mlcreech636a9952008-05-05 22:52:56 +000010427{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10428$as_echo_n "checking for $ac_word... " >&6; }
drhf1878b42006-01-23 18:06:52 +000010429if test "${ac_cv_prog_AWK+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +000010430 $as_echo_n "(cached) " >&6
drhf1878b42006-01-23 18:06:52 +000010431else
10432 if test -n "$AWK"; then
10433 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10434else
10435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10436for as_dir in $PATH
10437do
10438 IFS=$as_save_IFS
10439 test -z "$as_dir" && as_dir=.
10440 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +000010441 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 +000010442 ac_cv_prog_AWK="$ac_prog"
mlcreech636a9952008-05-05 22:52:56 +000010443 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
drhf1878b42006-01-23 18:06:52 +000010444 break 2
10445 fi
10446done
10447done
mlcreech94984912008-03-04 19:03:08 +000010448IFS=$as_save_IFS
drhf1878b42006-01-23 18:06:52 +000010449
10450fi
10451fi
10452AWK=$ac_cv_prog_AWK
10453if test -n "$AWK"; then
mlcreech636a9952008-05-05 22:52:56 +000010454 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
10455$as_echo "$AWK" >&6; }
drhf1878b42006-01-23 18:06:52 +000010456else
mlcreech636a9952008-05-05 22:52:56 +000010457 { $as_echo "$as_me:$LINENO: result: no" >&5
10458$as_echo "no" >&6; }
drhf1878b42006-01-23 18:06:52 +000010459fi
10460
mlcreech94984912008-03-04 19:03:08 +000010461
drhf1878b42006-01-23 18:06:52 +000010462 test -n "$AWK" && break
10463done
10464
a.rottmann84e63352003-03-24 09:42:16 +000010465
drh75897232000-05-29 14:26:00 +000010466#########
mlcreech636a9952008-05-05 22:52:56 +000010467# Enable large file support (if special flags are necessary)
10468#
10469# Check whether --enable-largefile was given.
10470if test "${enable_largefile+set}" = set; then
10471 enableval=$enable_largefile;
10472fi
10473
10474if test "$enable_largefile" != no; then
10475
10476 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10477$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10478if test "${ac_cv_sys_largefile_CC+set}" = set; then
10479 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000010480else
mlcreech636a9952008-05-05 22:52:56 +000010481 ac_cv_sys_largefile_CC=no
10482 if test "$GCC" != yes; then
10483 ac_save_CC=$CC
10484 while :; do
10485 # IRIX 6.2 and later do not support large files by default,
10486 # so use the C compiler's -n32 option if that helps.
10487 cat >conftest.$ac_ext <<_ACEOF
10488/* confdefs.h. */
10489_ACEOF
10490cat confdefs.h >>conftest.$ac_ext
10491cat >>conftest.$ac_ext <<_ACEOF
10492/* end confdefs.h. */
10493#include <sys/types.h>
10494 /* Check that off_t can represent 2**63 - 1 correctly.
10495 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10496 since some C++ compilers masquerading as C compilers
10497 incorrectly reject 9223372036854775807. */
10498#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10499 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10500 && LARGE_OFF_T % 2147483647 == 1)
10501 ? 1 : -1];
10502int
10503main ()
10504{
10505
10506 ;
10507 return 0;
10508}
10509_ACEOF
10510 rm -f conftest.$ac_objext
10511if { (ac_try="$ac_compile"
10512case "(($ac_try" in
10513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514 *) ac_try_echo=$ac_try;;
10515esac
10516eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10517$as_echo "$ac_try_echo") >&5
10518 (eval "$ac_compile") 2>conftest.er1
10519 ac_status=$?
10520 grep -v '^ *+' conftest.er1 >conftest.err
10521 rm -f conftest.er1
10522 cat conftest.err >&5
10523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } && {
10525 test -z "$ac_c_werror_flag" ||
10526 test ! -s conftest.err
10527 } && test -s conftest.$ac_objext; then
10528 break
10529else
10530 $as_echo "$as_me: failed program was:" >&5
10531sed 's/^/| /' conftest.$ac_ext >&5
10532
10533
10534fi
10535
10536rm -f core conftest.err conftest.$ac_objext
10537 CC="$CC -n32"
10538 rm -f conftest.$ac_objext
10539if { (ac_try="$ac_compile"
10540case "(($ac_try" in
10541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542 *) ac_try_echo=$ac_try;;
10543esac
10544eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10545$as_echo "$ac_try_echo") >&5
10546 (eval "$ac_compile") 2>conftest.er1
10547 ac_status=$?
10548 grep -v '^ *+' conftest.er1 >conftest.err
10549 rm -f conftest.er1
10550 cat conftest.err >&5
10551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); } && {
10553 test -z "$ac_c_werror_flag" ||
10554 test ! -s conftest.err
10555 } && test -s conftest.$ac_objext; then
10556 ac_cv_sys_largefile_CC=' -n32'; break
10557else
10558 $as_echo "$as_me: failed program was:" >&5
10559sed 's/^/| /' conftest.$ac_ext >&5
10560
10561
10562fi
10563
10564rm -f core conftest.err conftest.$ac_objext
10565 break
10566 done
10567 CC=$ac_save_CC
10568 rm -f conftest.$ac_ext
10569 fi
10570fi
10571{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10572$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10573 if test "$ac_cv_sys_largefile_CC" != no; then
10574 CC=$CC$ac_cv_sys_largefile_CC
10575 fi
10576
10577 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10578$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10579if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10580 $as_echo_n "(cached) " >&6
10581else
10582 while :; do
mlcreechb87057f2008-03-06 07:19:20 +000010583 cat >conftest.$ac_ext <<_ACEOF
10584/* confdefs.h. */
10585_ACEOF
10586cat confdefs.h >>conftest.$ac_ext
10587cat >>conftest.$ac_ext <<_ACEOF
10588/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010589#include <sys/types.h>
10590 /* Check that off_t can represent 2**63 - 1 correctly.
10591 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10592 since some C++ compilers masquerading as C compilers
10593 incorrectly reject 9223372036854775807. */
10594#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10595 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10596 && LARGE_OFF_T % 2147483647 == 1)
10597 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010598int
10599main ()
10600{
mlcreech636a9952008-05-05 22:52:56 +000010601
mlcreechb87057f2008-03-06 07:19:20 +000010602 ;
10603 return 0;
10604}
10605_ACEOF
10606rm -f conftest.$ac_objext
10607if { (ac_try="$ac_compile"
10608case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10611esac
mlcreech636a9952008-05-05 22:52:56 +000010612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10613$as_echo "$ac_try_echo") >&5
mlcreechb87057f2008-03-06 07:19:20 +000010614 (eval "$ac_compile") 2>conftest.er1
10615 ac_status=$?
10616 grep -v '^ *+' conftest.er1 >conftest.err
10617 rm -f conftest.er1
10618 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +000010619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreechb87057f2008-03-06 07:19:20 +000010620 (exit $ac_status); } && {
10621 test -z "$ac_c_werror_flag" ||
10622 test ! -s conftest.err
10623 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010624 ac_cv_sys_file_offset_bits=no; break
mlcreechb87057f2008-03-06 07:19:20 +000010625else
mlcreech636a9952008-05-05 22:52:56 +000010626 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000010627sed 's/^/| /' conftest.$ac_ext >&5
10628
mlcreech636a9952008-05-05 22:52:56 +000010629
10630fi
10631
10632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10633 cat >conftest.$ac_ext <<_ACEOF
10634/* confdefs.h. */
10635_ACEOF
10636cat confdefs.h >>conftest.$ac_ext
10637cat >>conftest.$ac_ext <<_ACEOF
10638/* end confdefs.h. */
10639#define _FILE_OFFSET_BITS 64
10640#include <sys/types.h>
10641 /* Check that off_t can represent 2**63 - 1 correctly.
10642 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10643 since some C++ compilers masquerading as C compilers
10644 incorrectly reject 9223372036854775807. */
10645#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10646 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10647 && LARGE_OFF_T % 2147483647 == 1)
10648 ? 1 : -1];
10649int
10650main ()
10651{
10652
10653 ;
10654 return 0;
10655}
10656_ACEOF
10657rm -f conftest.$ac_objext
10658if { (ac_try="$ac_compile"
10659case "(($ac_try" in
10660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10661 *) ac_try_echo=$ac_try;;
10662esac
10663eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10664$as_echo "$ac_try_echo") >&5
10665 (eval "$ac_compile") 2>conftest.er1
10666 ac_status=$?
10667 grep -v '^ *+' conftest.er1 >conftest.err
10668 rm -f conftest.er1
10669 cat conftest.err >&5
10670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } && {
10672 test -z "$ac_c_werror_flag" ||
10673 test ! -s conftest.err
10674 } && test -s conftest.$ac_objext; then
10675 ac_cv_sys_file_offset_bits=64; break
10676else
10677 $as_echo "$as_me: failed program was:" >&5
10678sed 's/^/| /' conftest.$ac_ext >&5
10679
10680
10681fi
10682
10683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10684 ac_cv_sys_file_offset_bits=unknown
10685 break
10686done
10687fi
10688{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10689$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10690case $ac_cv_sys_file_offset_bits in #(
10691 no | unknown) ;;
10692 *)
10693cat >>confdefs.h <<_ACEOF
10694#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10695_ACEOF
10696;;
10697esac
10698rm -rf conftest*
10699 if test $ac_cv_sys_file_offset_bits = unknown; then
10700 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10701$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10702if test "${ac_cv_sys_large_files+set}" = set; then
10703 $as_echo_n "(cached) " >&6
10704else
10705 while :; do
10706 cat >conftest.$ac_ext <<_ACEOF
10707/* confdefs.h. */
10708_ACEOF
10709cat confdefs.h >>conftest.$ac_ext
10710cat >>conftest.$ac_ext <<_ACEOF
10711/* end confdefs.h. */
10712#include <sys/types.h>
10713 /* Check that off_t can represent 2**63 - 1 correctly.
10714 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10715 since some C++ compilers masquerading as C compilers
10716 incorrectly reject 9223372036854775807. */
10717#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10718 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10719 && LARGE_OFF_T % 2147483647 == 1)
10720 ? 1 : -1];
10721int
10722main ()
10723{
10724
10725 ;
10726 return 0;
10727}
10728_ACEOF
10729rm -f conftest.$ac_objext
10730if { (ac_try="$ac_compile"
10731case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10734esac
10735eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10736$as_echo "$ac_try_echo") >&5
10737 (eval "$ac_compile") 2>conftest.er1
10738 ac_status=$?
10739 grep -v '^ *+' conftest.er1 >conftest.err
10740 rm -f conftest.er1
10741 cat conftest.err >&5
10742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } && {
10744 test -z "$ac_c_werror_flag" ||
10745 test ! -s conftest.err
10746 } && test -s conftest.$ac_objext; then
10747 ac_cv_sys_large_files=no; break
10748else
10749 $as_echo "$as_me: failed program was:" >&5
10750sed 's/^/| /' conftest.$ac_ext >&5
10751
10752
10753fi
10754
10755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10756 cat >conftest.$ac_ext <<_ACEOF
10757/* confdefs.h. */
10758_ACEOF
10759cat confdefs.h >>conftest.$ac_ext
10760cat >>conftest.$ac_ext <<_ACEOF
10761/* end confdefs.h. */
10762#define _LARGE_FILES 1
10763#include <sys/types.h>
10764 /* Check that off_t can represent 2**63 - 1 correctly.
10765 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10766 since some C++ compilers masquerading as C compilers
10767 incorrectly reject 9223372036854775807. */
10768#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10769 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10770 && LARGE_OFF_T % 2147483647 == 1)
10771 ? 1 : -1];
10772int
10773main ()
10774{
10775
10776 ;
10777 return 0;
10778}
10779_ACEOF
10780rm -f conftest.$ac_objext
10781if { (ac_try="$ac_compile"
10782case "(($ac_try" in
10783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10784 *) ac_try_echo=$ac_try;;
10785esac
10786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10787$as_echo "$ac_try_echo") >&5
10788 (eval "$ac_compile") 2>conftest.er1
10789 ac_status=$?
10790 grep -v '^ *+' conftest.er1 >conftest.err
10791 rm -f conftest.er1
10792 cat conftest.err >&5
10793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); } && {
10795 test -z "$ac_c_werror_flag" ||
10796 test ! -s conftest.err
10797 } && test -s conftest.$ac_objext; then
10798 ac_cv_sys_large_files=1; break
10799else
10800 $as_echo "$as_me: failed program was:" >&5
10801sed 's/^/| /' conftest.$ac_ext >&5
10802
10803
10804fi
10805
10806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10807 ac_cv_sys_large_files=unknown
10808 break
10809done
10810fi
10811{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10812$as_echo "$ac_cv_sys_large_files" >&6; }
10813case $ac_cv_sys_large_files in #(
10814 no | unknown) ;;
10815 *)
10816cat >>confdefs.h <<_ACEOF
10817#define _LARGE_FILES $ac_cv_sys_large_files
10818_ACEOF
10819;;
10820esac
10821rm -rf conftest*
10822 fi
10823fi
10824
10825
10826#########
10827# Check for needed/wanted data types
10828{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5
10829$as_echo_n "checking for int8_t... " >&6; }
10830if test "${ac_cv_type_int8_t+set}" = set; then
10831 $as_echo_n "(cached) " >&6
10832else
10833 ac_cv_type_int8_t=no
10834cat >conftest.$ac_ext <<_ACEOF
10835/* confdefs.h. */
10836_ACEOF
10837cat confdefs.h >>conftest.$ac_ext
10838cat >>conftest.$ac_ext <<_ACEOF
10839/* end confdefs.h. */
10840$ac_includes_default
10841int
10842main ()
10843{
10844if (sizeof (int8_t))
10845 return 0;
10846 ;
10847 return 0;
10848}
10849_ACEOF
10850rm -f conftest.$ac_objext
10851if { (ac_try="$ac_compile"
10852case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10855esac
10856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10857$as_echo "$ac_try_echo") >&5
10858 (eval "$ac_compile") 2>conftest.er1
10859 ac_status=$?
10860 grep -v '^ *+' conftest.er1 >conftest.err
10861 rm -f conftest.er1
10862 cat conftest.err >&5
10863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); } && {
10865 test -z "$ac_c_werror_flag" ||
10866 test ! -s conftest.err
10867 } && test -s conftest.$ac_objext; then
10868 cat >conftest.$ac_ext <<_ACEOF
10869/* confdefs.h. */
10870_ACEOF
10871cat confdefs.h >>conftest.$ac_ext
10872cat >>conftest.$ac_ext <<_ACEOF
10873/* end confdefs.h. */
10874$ac_includes_default
10875int
10876main ()
10877{
10878if (sizeof ((int8_t)))
10879 return 0;
10880 ;
10881 return 0;
10882}
10883_ACEOF
10884rm -f conftest.$ac_objext
10885if { (ac_try="$ac_compile"
10886case "(($ac_try" in
10887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888 *) ac_try_echo=$ac_try;;
10889esac
10890eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10891$as_echo "$ac_try_echo") >&5
10892 (eval "$ac_compile") 2>conftest.er1
10893 ac_status=$?
10894 grep -v '^ *+' conftest.er1 >conftest.err
10895 rm -f conftest.er1
10896 cat conftest.err >&5
10897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); } && {
10899 test -z "$ac_c_werror_flag" ||
10900 test ! -s conftest.err
10901 } && test -s conftest.$ac_objext; then
10902 :
10903else
10904 $as_echo "$as_me: failed program was:" >&5
10905sed 's/^/| /' conftest.$ac_ext >&5
10906
10907 ac_cv_type_int8_t=yes
10908fi
10909
10910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10911else
10912 $as_echo "$as_me: failed program was:" >&5
10913sed 's/^/| /' conftest.$ac_ext >&5
10914
10915
mlcreechb87057f2008-03-06 07:19:20 +000010916fi
10917
10918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10919fi
mlcreech636a9952008-05-05 22:52:56 +000010920{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
10921$as_echo "$ac_cv_type_int8_t" >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000010922if test $ac_cv_type_int8_t = yes; then
10923
10924cat >>confdefs.h <<_ACEOF
10925#define HAVE_INT8_T 1
10926_ACEOF
10927
10928
10929fi
mlcreech636a9952008-05-05 22:52:56 +000010930{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
10931$as_echo_n "checking for int16_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000010932if test "${ac_cv_type_int16_t+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +000010933 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000010934else
mlcreech636a9952008-05-05 22:52:56 +000010935 ac_cv_type_int16_t=no
10936cat >conftest.$ac_ext <<_ACEOF
mlcreechb87057f2008-03-06 07:19:20 +000010937/* confdefs.h. */
10938_ACEOF
10939cat confdefs.h >>conftest.$ac_ext
10940cat >>conftest.$ac_ext <<_ACEOF
10941/* end confdefs.h. */
10942$ac_includes_default
mlcreechb87057f2008-03-06 07:19:20 +000010943int
10944main ()
10945{
mlcreech636a9952008-05-05 22:52:56 +000010946if (sizeof (int16_t))
10947 return 0;
mlcreechb87057f2008-03-06 07:19:20 +000010948 ;
10949 return 0;
10950}
10951_ACEOF
10952rm -f conftest.$ac_objext
10953if { (ac_try="$ac_compile"
10954case "(($ac_try" in
10955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10956 *) ac_try_echo=$ac_try;;
10957esac
mlcreech636a9952008-05-05 22:52:56 +000010958eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10959$as_echo "$ac_try_echo") >&5
mlcreechb87057f2008-03-06 07:19:20 +000010960 (eval "$ac_compile") 2>conftest.er1
10961 ac_status=$?
10962 grep -v '^ *+' conftest.er1 >conftest.err
10963 rm -f conftest.er1
10964 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +000010965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreechb87057f2008-03-06 07:19:20 +000010966 (exit $ac_status); } && {
10967 test -z "$ac_c_werror_flag" ||
10968 test ! -s conftest.err
10969 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010970 cat >conftest.$ac_ext <<_ACEOF
10971/* confdefs.h. */
10972_ACEOF
10973cat confdefs.h >>conftest.$ac_ext
10974cat >>conftest.$ac_ext <<_ACEOF
10975/* end confdefs.h. */
10976$ac_includes_default
10977int
10978main ()
10979{
10980if (sizeof ((int16_t)))
10981 return 0;
10982 ;
10983 return 0;
10984}
10985_ACEOF
10986rm -f conftest.$ac_objext
10987if { (ac_try="$ac_compile"
10988case "(($ac_try" in
10989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990 *) ac_try_echo=$ac_try;;
10991esac
10992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10993$as_echo "$ac_try_echo") >&5
10994 (eval "$ac_compile") 2>conftest.er1
10995 ac_status=$?
10996 grep -v '^ *+' conftest.er1 >conftest.err
10997 rm -f conftest.er1
10998 cat conftest.err >&5
10999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } && {
11001 test -z "$ac_c_werror_flag" ||
11002 test ! -s conftest.err
11003 } && test -s conftest.$ac_objext; then
11004 :
mlcreechb87057f2008-03-06 07:19:20 +000011005else
mlcreech636a9952008-05-05 22:52:56 +000011006 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011007sed 's/^/| /' conftest.$ac_ext >&5
11008
mlcreech636a9952008-05-05 22:52:56 +000011009 ac_cv_type_int16_t=yes
11010fi
11011
11012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11013else
11014 $as_echo "$as_me: failed program was:" >&5
11015sed 's/^/| /' conftest.$ac_ext >&5
11016
11017
mlcreechb87057f2008-03-06 07:19:20 +000011018fi
11019
11020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11021fi
mlcreech636a9952008-05-05 22:52:56 +000011022{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11023$as_echo "$ac_cv_type_int16_t" >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011024if test $ac_cv_type_int16_t = yes; then
11025
11026cat >>confdefs.h <<_ACEOF
11027#define HAVE_INT16_T 1
11028_ACEOF
11029
11030
11031fi
mlcreech636a9952008-05-05 22:52:56 +000011032{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
11033$as_echo_n "checking for int32_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011034if test "${ac_cv_type_int32_t+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +000011035 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011036else
mlcreech636a9952008-05-05 22:52:56 +000011037 ac_cv_type_int32_t=no
11038cat >conftest.$ac_ext <<_ACEOF
mlcreechb87057f2008-03-06 07:19:20 +000011039/* confdefs.h. */
11040_ACEOF
11041cat confdefs.h >>conftest.$ac_ext
11042cat >>conftest.$ac_ext <<_ACEOF
11043/* end confdefs.h. */
11044$ac_includes_default
mlcreechb87057f2008-03-06 07:19:20 +000011045int
11046main ()
11047{
mlcreech636a9952008-05-05 22:52:56 +000011048if (sizeof (int32_t))
11049 return 0;
mlcreechb87057f2008-03-06 07:19:20 +000011050 ;
11051 return 0;
11052}
11053_ACEOF
11054rm -f conftest.$ac_objext
11055if { (ac_try="$ac_compile"
11056case "(($ac_try" in
11057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11058 *) ac_try_echo=$ac_try;;
11059esac
mlcreech636a9952008-05-05 22:52:56 +000011060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11061$as_echo "$ac_try_echo") >&5
mlcreechb87057f2008-03-06 07:19:20 +000011062 (eval "$ac_compile") 2>conftest.er1
11063 ac_status=$?
11064 grep -v '^ *+' conftest.er1 >conftest.err
11065 rm -f conftest.er1
11066 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +000011067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011068 (exit $ac_status); } && {
11069 test -z "$ac_c_werror_flag" ||
11070 test ! -s conftest.err
11071 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011072 cat >conftest.$ac_ext <<_ACEOF
11073/* confdefs.h. */
11074_ACEOF
11075cat confdefs.h >>conftest.$ac_ext
11076cat >>conftest.$ac_ext <<_ACEOF
11077/* end confdefs.h. */
11078$ac_includes_default
11079int
11080main ()
11081{
11082if (sizeof ((int32_t)))
11083 return 0;
11084 ;
11085 return 0;
11086}
11087_ACEOF
11088rm -f conftest.$ac_objext
11089if { (ac_try="$ac_compile"
11090case "(($ac_try" in
11091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11092 *) ac_try_echo=$ac_try;;
11093esac
11094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11095$as_echo "$ac_try_echo") >&5
11096 (eval "$ac_compile") 2>conftest.er1
11097 ac_status=$?
11098 grep -v '^ *+' conftest.er1 >conftest.err
11099 rm -f conftest.er1
11100 cat conftest.err >&5
11101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } && {
11103 test -z "$ac_c_werror_flag" ||
11104 test ! -s conftest.err
11105 } && test -s conftest.$ac_objext; then
11106 :
mlcreechb87057f2008-03-06 07:19:20 +000011107else
mlcreech636a9952008-05-05 22:52:56 +000011108 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011109sed 's/^/| /' conftest.$ac_ext >&5
11110
mlcreech636a9952008-05-05 22:52:56 +000011111 ac_cv_type_int32_t=yes
11112fi
11113
11114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11115else
11116 $as_echo "$as_me: failed program was:" >&5
11117sed 's/^/| /' conftest.$ac_ext >&5
11118
11119
mlcreechb87057f2008-03-06 07:19:20 +000011120fi
11121
11122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11123fi
mlcreech636a9952008-05-05 22:52:56 +000011124{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11125$as_echo "$ac_cv_type_int32_t" >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011126if test $ac_cv_type_int32_t = yes; then
11127
11128cat >>confdefs.h <<_ACEOF
11129#define HAVE_INT32_T 1
11130_ACEOF
11131
11132
11133fi
mlcreech636a9952008-05-05 22:52:56 +000011134{ $as_echo "$as_me:$LINENO: checking for int64_t" >&5
11135$as_echo_n "checking for int64_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011136if test "${ac_cv_type_int64_t+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +000011137 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011138else
mlcreech636a9952008-05-05 22:52:56 +000011139 ac_cv_type_int64_t=no
11140cat >conftest.$ac_ext <<_ACEOF
mlcreechb87057f2008-03-06 07:19:20 +000011141/* confdefs.h. */
11142_ACEOF
11143cat confdefs.h >>conftest.$ac_ext
11144cat >>conftest.$ac_ext <<_ACEOF
11145/* end confdefs.h. */
11146$ac_includes_default
mlcreechb87057f2008-03-06 07:19:20 +000011147int
11148main ()
11149{
mlcreech636a9952008-05-05 22:52:56 +000011150if (sizeof (int64_t))
11151 return 0;
mlcreechb87057f2008-03-06 07:19:20 +000011152 ;
11153 return 0;
11154}
11155_ACEOF
11156rm -f conftest.$ac_objext
11157if { (ac_try="$ac_compile"
11158case "(($ac_try" in
11159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160 *) ac_try_echo=$ac_try;;
11161esac
mlcreech636a9952008-05-05 22:52:56 +000011162eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11163$as_echo "$ac_try_echo") >&5
mlcreechb87057f2008-03-06 07:19:20 +000011164 (eval "$ac_compile") 2>conftest.er1
11165 ac_status=$?
11166 grep -v '^ *+' conftest.er1 >conftest.err
11167 rm -f conftest.er1
11168 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +000011169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011170 (exit $ac_status); } && {
11171 test -z "$ac_c_werror_flag" ||
11172 test ! -s conftest.err
11173 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011174 cat >conftest.$ac_ext <<_ACEOF
11175/* confdefs.h. */
11176_ACEOF
11177cat confdefs.h >>conftest.$ac_ext
11178cat >>conftest.$ac_ext <<_ACEOF
11179/* end confdefs.h. */
11180$ac_includes_default
11181int
11182main ()
11183{
11184if (sizeof ((int64_t)))
11185 return 0;
11186 ;
11187 return 0;
11188}
11189_ACEOF
11190rm -f conftest.$ac_objext
11191if { (ac_try="$ac_compile"
11192case "(($ac_try" in
11193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194 *) ac_try_echo=$ac_try;;
11195esac
11196eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11197$as_echo "$ac_try_echo") >&5
11198 (eval "$ac_compile") 2>conftest.er1
11199 ac_status=$?
11200 grep -v '^ *+' conftest.er1 >conftest.err
11201 rm -f conftest.er1
11202 cat conftest.err >&5
11203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } && {
11205 test -z "$ac_c_werror_flag" ||
11206 test ! -s conftest.err
11207 } && test -s conftest.$ac_objext; then
11208 :
mlcreechb87057f2008-03-06 07:19:20 +000011209else
mlcreech636a9952008-05-05 22:52:56 +000011210 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011211sed 's/^/| /' conftest.$ac_ext >&5
11212
mlcreech636a9952008-05-05 22:52:56 +000011213 ac_cv_type_int64_t=yes
11214fi
11215
11216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11217else
11218 $as_echo "$as_me: failed program was:" >&5
11219sed 's/^/| /' conftest.$ac_ext >&5
11220
11221
mlcreechb87057f2008-03-06 07:19:20 +000011222fi
11223
11224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11225fi
mlcreech636a9952008-05-05 22:52:56 +000011226{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11227$as_echo "$ac_cv_type_int64_t" >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011228if test $ac_cv_type_int64_t = yes; then
11229
11230cat >>confdefs.h <<_ACEOF
11231#define HAVE_INT64_T 1
11232_ACEOF
11233
11234
11235fi
mlcreech636a9952008-05-05 22:52:56 +000011236{ $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
11237$as_echo_n "checking for intptr_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011238if test "${ac_cv_type_intptr_t+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +000011239 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011240else
mlcreech636a9952008-05-05 22:52:56 +000011241 ac_cv_type_intptr_t=no
11242cat >conftest.$ac_ext <<_ACEOF
mlcreechb87057f2008-03-06 07:19:20 +000011243/* confdefs.h. */
11244_ACEOF
11245cat confdefs.h >>conftest.$ac_ext
11246cat >>conftest.$ac_ext <<_ACEOF
11247/* end confdefs.h. */
11248$ac_includes_default
mlcreechb87057f2008-03-06 07:19:20 +000011249int
11250main ()
11251{
mlcreech636a9952008-05-05 22:52:56 +000011252if (sizeof (intptr_t))
11253 return 0;
mlcreechb87057f2008-03-06 07:19:20 +000011254 ;
11255 return 0;
11256}
11257_ACEOF
11258rm -f conftest.$ac_objext
11259if { (ac_try="$ac_compile"
11260case "(($ac_try" in
11261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262 *) ac_try_echo=$ac_try;;
11263esac
mlcreech636a9952008-05-05 22:52:56 +000011264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11265$as_echo "$ac_try_echo") >&5
mlcreechb87057f2008-03-06 07:19:20 +000011266 (eval "$ac_compile") 2>conftest.er1
11267 ac_status=$?
11268 grep -v '^ *+' conftest.er1 >conftest.err
11269 rm -f conftest.er1
11270 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +000011271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011272 (exit $ac_status); } && {
11273 test -z "$ac_c_werror_flag" ||
11274 test ! -s conftest.err
11275 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011276 cat >conftest.$ac_ext <<_ACEOF
11277/* confdefs.h. */
11278_ACEOF
11279cat confdefs.h >>conftest.$ac_ext
11280cat >>conftest.$ac_ext <<_ACEOF
11281/* end confdefs.h. */
11282$ac_includes_default
11283int
11284main ()
11285{
11286if (sizeof ((intptr_t)))
11287 return 0;
11288 ;
11289 return 0;
11290}
11291_ACEOF
11292rm -f conftest.$ac_objext
11293if { (ac_try="$ac_compile"
11294case "(($ac_try" in
11295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11296 *) ac_try_echo=$ac_try;;
11297esac
11298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11299$as_echo "$ac_try_echo") >&5
11300 (eval "$ac_compile") 2>conftest.er1
11301 ac_status=$?
11302 grep -v '^ *+' conftest.er1 >conftest.err
11303 rm -f conftest.er1
11304 cat conftest.err >&5
11305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); } && {
11307 test -z "$ac_c_werror_flag" ||
11308 test ! -s conftest.err
11309 } && test -s conftest.$ac_objext; then
11310 :
mlcreechb87057f2008-03-06 07:19:20 +000011311else
mlcreech636a9952008-05-05 22:52:56 +000011312 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011313sed 's/^/| /' conftest.$ac_ext >&5
11314
mlcreech636a9952008-05-05 22:52:56 +000011315 ac_cv_type_intptr_t=yes
11316fi
11317
11318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11319else
11320 $as_echo "$as_me: failed program was:" >&5
11321sed 's/^/| /' conftest.$ac_ext >&5
11322
11323
mlcreechb87057f2008-03-06 07:19:20 +000011324fi
11325
11326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11327fi
mlcreech636a9952008-05-05 22:52:56 +000011328{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
11329$as_echo "$ac_cv_type_intptr_t" >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011330if test $ac_cv_type_intptr_t = yes; then
11331
11332cat >>confdefs.h <<_ACEOF
11333#define HAVE_INTPTR_T 1
11334_ACEOF
11335
11336
11337fi
mlcreech636a9952008-05-05 22:52:56 +000011338{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
11339$as_echo_n "checking for uint8_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011340if test "${ac_cv_type_uint8_t+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +000011341 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011342else
mlcreech636a9952008-05-05 22:52:56 +000011343 ac_cv_type_uint8_t=no
11344cat >conftest.$ac_ext <<_ACEOF
mlcreechb87057f2008-03-06 07:19:20 +000011345/* confdefs.h. */
11346_ACEOF
11347cat confdefs.h >>conftest.$ac_ext
11348cat >>conftest.$ac_ext <<_ACEOF
11349/* end confdefs.h. */
11350$ac_includes_default
mlcreechb87057f2008-03-06 07:19:20 +000011351int
11352main ()
11353{
mlcreech636a9952008-05-05 22:52:56 +000011354if (sizeof (uint8_t))
11355 return 0;
mlcreechb87057f2008-03-06 07:19:20 +000011356 ;
11357 return 0;
11358}
11359_ACEOF
11360rm -f conftest.$ac_objext
11361if { (ac_try="$ac_compile"
11362case "(($ac_try" in
11363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364 *) ac_try_echo=$ac_try;;
11365esac
mlcreech636a9952008-05-05 22:52:56 +000011366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11367$as_echo "$ac_try_echo") >&5
mlcreechb87057f2008-03-06 07:19:20 +000011368 (eval "$ac_compile") 2>conftest.er1
11369 ac_status=$?
11370 grep -v '^ *+' conftest.er1 >conftest.err
11371 rm -f conftest.er1
11372 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +000011373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011374 (exit $ac_status); } && {
11375 test -z "$ac_c_werror_flag" ||
11376 test ! -s conftest.err
11377 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011378 cat >conftest.$ac_ext <<_ACEOF
11379/* confdefs.h. */
11380_ACEOF
11381cat confdefs.h >>conftest.$ac_ext
11382cat >>conftest.$ac_ext <<_ACEOF
11383/* end confdefs.h. */
11384$ac_includes_default
11385int
11386main ()
11387{
11388if (sizeof ((uint8_t)))
11389 return 0;
11390 ;
11391 return 0;
11392}
11393_ACEOF
11394rm -f conftest.$ac_objext
11395if { (ac_try="$ac_compile"
11396case "(($ac_try" in
11397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398 *) ac_try_echo=$ac_try;;
11399esac
11400eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11401$as_echo "$ac_try_echo") >&5
11402 (eval "$ac_compile") 2>conftest.er1
11403 ac_status=$?
11404 grep -v '^ *+' conftest.er1 >conftest.err
11405 rm -f conftest.er1
11406 cat conftest.err >&5
11407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } && {
11409 test -z "$ac_c_werror_flag" ||
11410 test ! -s conftest.err
11411 } && test -s conftest.$ac_objext; then
11412 :
mlcreechb87057f2008-03-06 07:19:20 +000011413else
mlcreech636a9952008-05-05 22:52:56 +000011414 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011415sed 's/^/| /' conftest.$ac_ext >&5
11416
mlcreech636a9952008-05-05 22:52:56 +000011417 ac_cv_type_uint8_t=yes
11418fi
11419
11420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11421else
11422 $as_echo "$as_me: failed program was:" >&5
11423sed 's/^/| /' conftest.$ac_ext >&5
11424
11425
mlcreechb87057f2008-03-06 07:19:20 +000011426fi
11427
11428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11429fi
mlcreech636a9952008-05-05 22:52:56 +000011430{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
11431$as_echo "$ac_cv_type_uint8_t" >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011432if test $ac_cv_type_uint8_t = yes; then
11433
11434cat >>confdefs.h <<_ACEOF
11435#define HAVE_UINT8_T 1
11436_ACEOF
11437
11438
11439fi
mlcreech636a9952008-05-05 22:52:56 +000011440{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
11441$as_echo_n "checking for uint16_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011442if test "${ac_cv_type_uint16_t+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +000011443 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011444else
mlcreech636a9952008-05-05 22:52:56 +000011445 ac_cv_type_uint16_t=no
11446cat >conftest.$ac_ext <<_ACEOF
mlcreechb87057f2008-03-06 07:19:20 +000011447/* confdefs.h. */
11448_ACEOF
11449cat confdefs.h >>conftest.$ac_ext
11450cat >>conftest.$ac_ext <<_ACEOF
11451/* end confdefs.h. */
11452$ac_includes_default
mlcreechb87057f2008-03-06 07:19:20 +000011453int
11454main ()
11455{
mlcreech636a9952008-05-05 22:52:56 +000011456if (sizeof (uint16_t))
11457 return 0;
mlcreechb87057f2008-03-06 07:19:20 +000011458 ;
11459 return 0;
11460}
11461_ACEOF
11462rm -f conftest.$ac_objext
11463if { (ac_try="$ac_compile"
11464case "(($ac_try" in
11465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11466 *) ac_try_echo=$ac_try;;
11467esac
mlcreech636a9952008-05-05 22:52:56 +000011468eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11469$as_echo "$ac_try_echo") >&5
mlcreechb87057f2008-03-06 07:19:20 +000011470 (eval "$ac_compile") 2>conftest.er1
11471 ac_status=$?
11472 grep -v '^ *+' conftest.er1 >conftest.err
11473 rm -f conftest.er1
11474 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +000011475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011476 (exit $ac_status); } && {
11477 test -z "$ac_c_werror_flag" ||
11478 test ! -s conftest.err
11479 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011480 cat >conftest.$ac_ext <<_ACEOF
11481/* confdefs.h. */
11482_ACEOF
11483cat confdefs.h >>conftest.$ac_ext
11484cat >>conftest.$ac_ext <<_ACEOF
11485/* end confdefs.h. */
11486$ac_includes_default
11487int
11488main ()
11489{
11490if (sizeof ((uint16_t)))
11491 return 0;
11492 ;
11493 return 0;
11494}
11495_ACEOF
11496rm -f conftest.$ac_objext
11497if { (ac_try="$ac_compile"
11498case "(($ac_try" in
11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11501esac
11502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11503$as_echo "$ac_try_echo") >&5
11504 (eval "$ac_compile") 2>conftest.er1
11505 ac_status=$?
11506 grep -v '^ *+' conftest.er1 >conftest.err
11507 rm -f conftest.er1
11508 cat conftest.err >&5
11509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } && {
11511 test -z "$ac_c_werror_flag" ||
11512 test ! -s conftest.err
11513 } && test -s conftest.$ac_objext; then
11514 :
mlcreechb87057f2008-03-06 07:19:20 +000011515else
mlcreech636a9952008-05-05 22:52:56 +000011516 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011517sed 's/^/| /' conftest.$ac_ext >&5
11518
mlcreech636a9952008-05-05 22:52:56 +000011519 ac_cv_type_uint16_t=yes
11520fi
11521
11522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11523else
11524 $as_echo "$as_me: failed program was:" >&5
11525sed 's/^/| /' conftest.$ac_ext >&5
11526
11527
mlcreechb87057f2008-03-06 07:19:20 +000011528fi
11529
11530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11531fi
mlcreech636a9952008-05-05 22:52:56 +000011532{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
11533$as_echo "$ac_cv_type_uint16_t" >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011534if test $ac_cv_type_uint16_t = yes; then
11535
11536cat >>confdefs.h <<_ACEOF
11537#define HAVE_UINT16_T 1
11538_ACEOF
11539
11540
11541fi
mlcreech636a9952008-05-05 22:52:56 +000011542{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
11543$as_echo_n "checking for uint32_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011544if test "${ac_cv_type_uint32_t+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +000011545 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011546else
mlcreech636a9952008-05-05 22:52:56 +000011547 ac_cv_type_uint32_t=no
11548cat >conftest.$ac_ext <<_ACEOF
mlcreechb87057f2008-03-06 07:19:20 +000011549/* confdefs.h. */
11550_ACEOF
11551cat confdefs.h >>conftest.$ac_ext
11552cat >>conftest.$ac_ext <<_ACEOF
11553/* end confdefs.h. */
11554$ac_includes_default
mlcreechb87057f2008-03-06 07:19:20 +000011555int
11556main ()
11557{
mlcreech636a9952008-05-05 22:52:56 +000011558if (sizeof (uint32_t))
11559 return 0;
mlcreechb87057f2008-03-06 07:19:20 +000011560 ;
11561 return 0;
11562}
11563_ACEOF
11564rm -f conftest.$ac_objext
11565if { (ac_try="$ac_compile"
11566case "(($ac_try" in
11567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11568 *) ac_try_echo=$ac_try;;
11569esac
mlcreech636a9952008-05-05 22:52:56 +000011570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11571$as_echo "$ac_try_echo") >&5
mlcreechb87057f2008-03-06 07:19:20 +000011572 (eval "$ac_compile") 2>conftest.er1
11573 ac_status=$?
11574 grep -v '^ *+' conftest.er1 >conftest.err
11575 rm -f conftest.er1
11576 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +000011577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011578 (exit $ac_status); } && {
11579 test -z "$ac_c_werror_flag" ||
11580 test ! -s conftest.err
11581 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011582 cat >conftest.$ac_ext <<_ACEOF
11583/* confdefs.h. */
11584_ACEOF
11585cat confdefs.h >>conftest.$ac_ext
11586cat >>conftest.$ac_ext <<_ACEOF
11587/* end confdefs.h. */
11588$ac_includes_default
11589int
11590main ()
11591{
11592if (sizeof ((uint32_t)))
11593 return 0;
11594 ;
11595 return 0;
11596}
11597_ACEOF
11598rm -f conftest.$ac_objext
11599if { (ac_try="$ac_compile"
11600case "(($ac_try" in
11601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11602 *) ac_try_echo=$ac_try;;
11603esac
11604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11605$as_echo "$ac_try_echo") >&5
11606 (eval "$ac_compile") 2>conftest.er1
11607 ac_status=$?
11608 grep -v '^ *+' conftest.er1 >conftest.err
11609 rm -f conftest.er1
11610 cat conftest.err >&5
11611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } && {
11613 test -z "$ac_c_werror_flag" ||
11614 test ! -s conftest.err
11615 } && test -s conftest.$ac_objext; then
11616 :
mlcreechb87057f2008-03-06 07:19:20 +000011617else
mlcreech636a9952008-05-05 22:52:56 +000011618 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011619sed 's/^/| /' conftest.$ac_ext >&5
11620
mlcreech636a9952008-05-05 22:52:56 +000011621 ac_cv_type_uint32_t=yes
11622fi
11623
11624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11625else
11626 $as_echo "$as_me: failed program was:" >&5
11627sed 's/^/| /' conftest.$ac_ext >&5
11628
11629
mlcreechb87057f2008-03-06 07:19:20 +000011630fi
11631
11632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11633fi
mlcreech636a9952008-05-05 22:52:56 +000011634{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11635$as_echo "$ac_cv_type_uint32_t" >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011636if test $ac_cv_type_uint32_t = yes; then
11637
11638cat >>confdefs.h <<_ACEOF
11639#define HAVE_UINT32_T 1
11640_ACEOF
11641
11642
11643fi
mlcreech636a9952008-05-05 22:52:56 +000011644{ $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
11645$as_echo_n "checking for uint64_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011646if test "${ac_cv_type_uint64_t+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +000011647 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011648else
mlcreech636a9952008-05-05 22:52:56 +000011649 ac_cv_type_uint64_t=no
11650cat >conftest.$ac_ext <<_ACEOF
mlcreechb87057f2008-03-06 07:19:20 +000011651/* confdefs.h. */
11652_ACEOF
11653cat confdefs.h >>conftest.$ac_ext
11654cat >>conftest.$ac_ext <<_ACEOF
11655/* end confdefs.h. */
11656$ac_includes_default
mlcreechb87057f2008-03-06 07:19:20 +000011657int
11658main ()
11659{
mlcreech636a9952008-05-05 22:52:56 +000011660if (sizeof (uint64_t))
11661 return 0;
mlcreechb87057f2008-03-06 07:19:20 +000011662 ;
11663 return 0;
11664}
11665_ACEOF
11666rm -f conftest.$ac_objext
11667if { (ac_try="$ac_compile"
11668case "(($ac_try" in
11669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670 *) ac_try_echo=$ac_try;;
11671esac
mlcreech636a9952008-05-05 22:52:56 +000011672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11673$as_echo "$ac_try_echo") >&5
mlcreechb87057f2008-03-06 07:19:20 +000011674 (eval "$ac_compile") 2>conftest.er1
11675 ac_status=$?
11676 grep -v '^ *+' conftest.er1 >conftest.err
11677 rm -f conftest.er1
11678 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +000011679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011680 (exit $ac_status); } && {
11681 test -z "$ac_c_werror_flag" ||
11682 test ! -s conftest.err
11683 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011684 cat >conftest.$ac_ext <<_ACEOF
11685/* confdefs.h. */
11686_ACEOF
11687cat confdefs.h >>conftest.$ac_ext
11688cat >>conftest.$ac_ext <<_ACEOF
11689/* end confdefs.h. */
11690$ac_includes_default
11691int
11692main ()
11693{
11694if (sizeof ((uint64_t)))
11695 return 0;
11696 ;
11697 return 0;
11698}
11699_ACEOF
11700rm -f conftest.$ac_objext
11701if { (ac_try="$ac_compile"
11702case "(($ac_try" in
11703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704 *) ac_try_echo=$ac_try;;
11705esac
11706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11707$as_echo "$ac_try_echo") >&5
11708 (eval "$ac_compile") 2>conftest.er1
11709 ac_status=$?
11710 grep -v '^ *+' conftest.er1 >conftest.err
11711 rm -f conftest.er1
11712 cat conftest.err >&5
11713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); } && {
11715 test -z "$ac_c_werror_flag" ||
11716 test ! -s conftest.err
11717 } && test -s conftest.$ac_objext; then
11718 :
mlcreechb87057f2008-03-06 07:19:20 +000011719else
mlcreech636a9952008-05-05 22:52:56 +000011720 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011721sed 's/^/| /' conftest.$ac_ext >&5
11722
mlcreech636a9952008-05-05 22:52:56 +000011723 ac_cv_type_uint64_t=yes
11724fi
11725
11726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11727else
11728 $as_echo "$as_me: failed program was:" >&5
11729sed 's/^/| /' conftest.$ac_ext >&5
11730
11731
mlcreechb87057f2008-03-06 07:19:20 +000011732fi
11733
11734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11735fi
mlcreech636a9952008-05-05 22:52:56 +000011736{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11737$as_echo "$ac_cv_type_uint64_t" >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011738if test $ac_cv_type_uint64_t = yes; then
11739
11740cat >>confdefs.h <<_ACEOF
11741#define HAVE_UINT64_T 1
11742_ACEOF
11743
11744
11745fi
mlcreech636a9952008-05-05 22:52:56 +000011746{ $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
11747$as_echo_n "checking for uintptr_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011748if test "${ac_cv_type_uintptr_t+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +000011749 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011750else
mlcreech636a9952008-05-05 22:52:56 +000011751 ac_cv_type_uintptr_t=no
11752cat >conftest.$ac_ext <<_ACEOF
mlcreechb87057f2008-03-06 07:19:20 +000011753/* confdefs.h. */
11754_ACEOF
11755cat confdefs.h >>conftest.$ac_ext
11756cat >>conftest.$ac_ext <<_ACEOF
11757/* end confdefs.h. */
11758$ac_includes_default
mlcreechb87057f2008-03-06 07:19:20 +000011759int
11760main ()
11761{
mlcreech636a9952008-05-05 22:52:56 +000011762if (sizeof (uintptr_t))
11763 return 0;
mlcreechb87057f2008-03-06 07:19:20 +000011764 ;
11765 return 0;
11766}
11767_ACEOF
11768rm -f conftest.$ac_objext
11769if { (ac_try="$ac_compile"
11770case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11773esac
mlcreech636a9952008-05-05 22:52:56 +000011774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11775$as_echo "$ac_try_echo") >&5
mlcreechb87057f2008-03-06 07:19:20 +000011776 (eval "$ac_compile") 2>conftest.er1
11777 ac_status=$?
11778 grep -v '^ *+' conftest.er1 >conftest.err
11779 rm -f conftest.er1
11780 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +000011781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011782 (exit $ac_status); } && {
11783 test -z "$ac_c_werror_flag" ||
11784 test ! -s conftest.err
11785 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011786 cat >conftest.$ac_ext <<_ACEOF
11787/* confdefs.h. */
11788_ACEOF
11789cat confdefs.h >>conftest.$ac_ext
11790cat >>conftest.$ac_ext <<_ACEOF
11791/* end confdefs.h. */
11792$ac_includes_default
11793int
11794main ()
11795{
11796if (sizeof ((uintptr_t)))
11797 return 0;
11798 ;
11799 return 0;
11800}
11801_ACEOF
11802rm -f conftest.$ac_objext
11803if { (ac_try="$ac_compile"
11804case "(($ac_try" in
11805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806 *) ac_try_echo=$ac_try;;
11807esac
11808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11809$as_echo "$ac_try_echo") >&5
11810 (eval "$ac_compile") 2>conftest.er1
11811 ac_status=$?
11812 grep -v '^ *+' conftest.er1 >conftest.err
11813 rm -f conftest.er1
11814 cat conftest.err >&5
11815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); } && {
11817 test -z "$ac_c_werror_flag" ||
11818 test ! -s conftest.err
11819 } && test -s conftest.$ac_objext; then
11820 :
mlcreechb87057f2008-03-06 07:19:20 +000011821else
mlcreech636a9952008-05-05 22:52:56 +000011822 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011823sed 's/^/| /' conftest.$ac_ext >&5
11824
mlcreech636a9952008-05-05 22:52:56 +000011825 ac_cv_type_uintptr_t=yes
11826fi
11827
11828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11829else
11830 $as_echo "$as_me: failed program was:" >&5
11831sed 's/^/| /' conftest.$ac_ext >&5
11832
11833
mlcreechb87057f2008-03-06 07:19:20 +000011834fi
11835
11836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11837fi
mlcreech636a9952008-05-05 22:52:56 +000011838{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11839$as_echo "$ac_cv_type_uintptr_t" >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011840if test $ac_cv_type_uintptr_t = yes; then
11841
11842cat >>confdefs.h <<_ACEOF
11843#define HAVE_UINTPTR_T 1
11844_ACEOF
11845
11846
11847fi
11848
11849
11850#########
11851# Check for needed/wanted headers
11852
mlcreech8390bc32008-03-06 08:54:38 +000011853
11854
11855
11856for ac_header in sys/types.h stdlib.h stdint.h inttypes.h
mlcreechb87057f2008-03-06 07:19:20 +000011857do
mlcreech636a9952008-05-05 22:52:56 +000011858as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
mlcreech8390bc32008-03-06 08:54:38 +000011859if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mlcreech636a9952008-05-05 22:52:56 +000011860 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11861$as_echo_n "checking for $ac_header... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011862if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mlcreech636a9952008-05-05 22:52:56 +000011863 $as_echo_n "(cached) " >&6
mlcreech8390bc32008-03-06 08:54:38 +000011864fi
mlcreech636a9952008-05-05 22:52:56 +000011865ac_res=`eval 'as_val=${'$as_ac_Header'}
11866 $as_echo "$as_val"'`
11867 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11868$as_echo "$ac_res" >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011869else
mlcreech8390bc32008-03-06 08:54:38 +000011870 # Is the header compilable?
mlcreech636a9952008-05-05 22:52:56 +000011871{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11872$as_echo_n "checking $ac_header usability... " >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000011873cat >conftest.$ac_ext <<_ACEOF
mlcreechb87057f2008-03-06 07:19:20 +000011874/* confdefs.h. */
11875_ACEOF
11876cat confdefs.h >>conftest.$ac_ext
11877cat >>conftest.$ac_ext <<_ACEOF
11878/* end confdefs.h. */
mlcreech8390bc32008-03-06 08:54:38 +000011879$ac_includes_default
mlcreechb87057f2008-03-06 07:19:20 +000011880#include <$ac_header>
11881_ACEOF
11882rm -f conftest.$ac_objext
11883if { (ac_try="$ac_compile"
11884case "(($ac_try" in
11885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886 *) ac_try_echo=$ac_try;;
11887esac
mlcreech636a9952008-05-05 22:52:56 +000011888eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11889$as_echo "$ac_try_echo") >&5
mlcreechb87057f2008-03-06 07:19:20 +000011890 (eval "$ac_compile") 2>conftest.er1
11891 ac_status=$?
11892 grep -v '^ *+' conftest.er1 >conftest.err
11893 rm -f conftest.er1
11894 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +000011895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011896 (exit $ac_status); } && {
11897 test -z "$ac_c_werror_flag" ||
11898 test ! -s conftest.err
11899 } && test -s conftest.$ac_objext; then
mlcreech8390bc32008-03-06 08:54:38 +000011900 ac_header_compiler=yes
mlcreechb87057f2008-03-06 07:19:20 +000011901else
mlcreech636a9952008-05-05 22:52:56 +000011902 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011903sed 's/^/| /' conftest.$ac_ext >&5
11904
mlcreech8390bc32008-03-06 08:54:38 +000011905 ac_header_compiler=no
mlcreechb87057f2008-03-06 07:19:20 +000011906fi
11907
11908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000011909{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11910$as_echo "$ac_header_compiler" >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000011911
11912# Is the header present?
mlcreech636a9952008-05-05 22:52:56 +000011913{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11914$as_echo_n "checking $ac_header presence... " >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000011915cat >conftest.$ac_ext <<_ACEOF
11916/* confdefs.h. */
11917_ACEOF
11918cat confdefs.h >>conftest.$ac_ext
11919cat >>conftest.$ac_ext <<_ACEOF
11920/* end confdefs.h. */
11921#include <$ac_header>
11922_ACEOF
11923if { (ac_try="$ac_cpp conftest.$ac_ext"
11924case "(($ac_try" in
11925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926 *) ac_try_echo=$ac_try;;
11927esac
mlcreech636a9952008-05-05 22:52:56 +000011928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11929$as_echo "$ac_try_echo") >&5
mlcreech8390bc32008-03-06 08:54:38 +000011930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11931 ac_status=$?
11932 grep -v '^ *+' conftest.er1 >conftest.err
11933 rm -f conftest.er1
11934 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +000011935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech8390bc32008-03-06 08:54:38 +000011936 (exit $ac_status); } >/dev/null && {
11937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11938 test ! -s conftest.err
11939 }; then
11940 ac_header_preproc=yes
11941else
mlcreech636a9952008-05-05 22:52:56 +000011942 $as_echo "$as_me: failed program was:" >&5
mlcreech8390bc32008-03-06 08:54:38 +000011943sed 's/^/| /' conftest.$ac_ext >&5
11944
11945 ac_header_preproc=no
11946fi
11947
11948rm -f conftest.err conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000011949{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11950$as_echo "$ac_header_preproc" >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000011951
11952# So? What about this header?
11953case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11954 yes:no: )
mlcreech636a9952008-05-05 22:52:56 +000011955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11956$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11957 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11958$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
mlcreech8390bc32008-03-06 08:54:38 +000011959 ac_header_preproc=yes
11960 ;;
11961 no:yes:* )
mlcreech636a9952008-05-05 22:52:56 +000011962 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11963$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11965$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11967$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11969$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11971$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11973$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
mlcreech8390bc32008-03-06 08:54:38 +000011974
11975 ;;
11976esac
mlcreech636a9952008-05-05 22:52:56 +000011977{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11978$as_echo_n "checking for $ac_header... " >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000011979if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
mlcreech636a9952008-05-05 22:52:56 +000011980 $as_echo_n "(cached) " >&6
mlcreech8390bc32008-03-06 08:54:38 +000011981else
11982 eval "$as_ac_Header=\$ac_header_preproc"
mlcreechb87057f2008-03-06 07:19:20 +000011983fi
mlcreech636a9952008-05-05 22:52:56 +000011984ac_res=`eval 'as_val=${'$as_ac_Header'}
11985 $as_echo "$as_val"'`
11986 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11987$as_echo "$ac_res" >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000011988
11989fi
mlcreech636a9952008-05-05 22:52:56 +000011990if test `eval 'as_val=${'$as_ac_Header'}
11991 $as_echo "$as_val"'` = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011992 cat >>confdefs.h <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000011993#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000011994_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000011995
mlcreechb87057f2008-03-06 07:19:20 +000011996fi
11997
11998done
11999
12000
12001#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000012002# Figure out whether or not we have these functions
12003#
12004
12005
12006
12007
12008for ac_func in usleep fdatasync localtime_r gmtime_r
12009do
mlcreech636a9952008-05-05 22:52:56 +000012010as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12011{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12012$as_echo_n "checking for $ac_func... " >&6; }
mlcreech5b0a9eb2008-03-09 01:38:09 +000012013if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
mlcreech636a9952008-05-05 22:52:56 +000012014 $as_echo_n "(cached) " >&6
mlcreech5b0a9eb2008-03-09 01:38:09 +000012015else
12016 cat >conftest.$ac_ext <<_ACEOF
12017/* confdefs.h. */
12018_ACEOF
12019cat confdefs.h >>conftest.$ac_ext
12020cat >>conftest.$ac_ext <<_ACEOF
12021/* end confdefs.h. */
12022/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12024#define $ac_func innocuous_$ac_func
12025
12026/* System header to define __stub macros and hopefully few prototypes,
12027 which can conflict with char $ac_func (); below.
12028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12029 <limits.h> exists even on freestanding compilers. */
12030
12031#ifdef __STDC__
12032# include <limits.h>
12033#else
12034# include <assert.h>
12035#endif
12036
12037#undef $ac_func
12038
12039/* Override any GCC internal prototype to avoid an error.
12040 Use char because int might match the return type of a GCC
12041 builtin and then its argument prototype would still apply. */
12042#ifdef __cplusplus
12043extern "C"
12044#endif
12045char $ac_func ();
12046/* The GNU C library defines this for functions which it implements
12047 to always fail with ENOSYS. Some functions are actually named
12048 something starting with __ and the normal name is an alias. */
12049#if defined __stub_$ac_func || defined __stub___$ac_func
12050choke me
12051#endif
12052
12053int
12054main ()
12055{
12056return $ac_func ();
12057 ;
12058 return 0;
12059}
12060_ACEOF
12061rm -f conftest.$ac_objext conftest$ac_exeext
12062if { (ac_try="$ac_link"
12063case "(($ac_try" in
12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065 *) ac_try_echo=$ac_try;;
12066esac
mlcreech636a9952008-05-05 22:52:56 +000012067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12068$as_echo "$ac_try_echo") >&5
mlcreech5b0a9eb2008-03-09 01:38:09 +000012069 (eval "$ac_link") 2>conftest.er1
12070 ac_status=$?
12071 grep -v '^ *+' conftest.er1 >conftest.err
12072 rm -f conftest.er1
12073 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +000012074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech5b0a9eb2008-03-09 01:38:09 +000012075 (exit $ac_status); } && {
12076 test -z "$ac_c_werror_flag" ||
12077 test ! -s conftest.err
mlcreech636a9952008-05-05 22:52:56 +000012078 } && test -s conftest$ac_exeext && {
12079 test "$cross_compiling" = yes ||
12080 $as_test_x conftest$ac_exeext
12081 }; then
mlcreech5b0a9eb2008-03-09 01:38:09 +000012082 eval "$as_ac_var=yes"
12083else
mlcreech636a9952008-05-05 22:52:56 +000012084 $as_echo "$as_me: failed program was:" >&5
mlcreech5b0a9eb2008-03-09 01:38:09 +000012085sed 's/^/| /' conftest.$ac_ext >&5
12086
12087 eval "$as_ac_var=no"
12088fi
12089
mlcreech636a9952008-05-05 22:52:56 +000012090rm -rf conftest.dSYM
mlcreech5b0a9eb2008-03-09 01:38:09 +000012091rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12092 conftest$ac_exeext conftest.$ac_ext
12093fi
mlcreech636a9952008-05-05 22:52:56 +000012094ac_res=`eval 'as_val=${'$as_ac_var'}
12095 $as_echo "$as_val"'`
12096 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12097$as_echo "$ac_res" >&6; }
12098if test `eval 'as_val=${'$as_ac_var'}
12099 $as_echo "$as_val"'` = yes; then
mlcreech5b0a9eb2008-03-09 01:38:09 +000012100 cat >>confdefs.h <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000012101#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000012102_ACEOF
12103
12104fi
12105done
12106
12107
mlcreechab1c47b2008-03-09 02:51:10 +000012108#########
mlcreechf3868112008-03-11 18:03:30 +000012109# By default, we use the amalgamation (this may be changed below...)
12110#
12111USE_AMALGAMATION=1
12112
12113#########
mlcreechab1c47b2008-03-09 02:51:10 +000012114# See whether we can run specific tclsh versions known to work well;
12115# if not, then we fall back to plain tclsh.
12116# TODO: try other versions before falling back?
12117#
12118for ac_prog in tclsh8.4 tclsh
12119do
12120 # Extract the first word of "$ac_prog", so it can be a program name with args.
12121set dummy $ac_prog; ac_word=$2
mlcreech636a9952008-05-05 22:52:56 +000012122{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12123$as_echo_n "checking for $ac_word... " >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000012124if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +000012125 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000012126else
12127 if test -n "$TCLSH_CMD"; then
12128 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
12129else
12130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12131for as_dir in $PATH
12132do
12133 IFS=$as_save_IFS
12134 test -z "$as_dir" && as_dir=.
12135 for ac_exec_ext in '' $ac_executable_extensions; do
12136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12137 ac_cv_prog_TCLSH_CMD="$ac_prog"
mlcreech636a9952008-05-05 22:52:56 +000012138 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000012139 break 2
12140 fi
12141done
12142done
12143IFS=$as_save_IFS
12144
12145fi
12146fi
12147TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
12148if test -n "$TCLSH_CMD"; then
mlcreech636a9952008-05-05 22:52:56 +000012149 { $as_echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5
12150$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000012151else
mlcreech636a9952008-05-05 22:52:56 +000012152 { $as_echo "$as_me:$LINENO: result: no" >&5
12153$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000012154fi
12155
12156
12157 test -n "$TCLSH_CMD" && break
12158done
mlcreechf3868112008-03-11 18:03:30 +000012159test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000012160
mlcreechf3868112008-03-11 18:03:30 +000012161if test "$TCLSH_CMD" = "none"; then
12162 # If we can't find a local tclsh, then building the amalgamation will fail.
12163 # We act as though --disable-amalgamation has been used.
12164 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
12165 USE_AMALGAMATION=0
12166 TCLSH_CMD="tclsh"
12167fi
mlcreechab1c47b2008-03-09 02:51:10 +000012168
12169
mlcreech5b0a9eb2008-03-09 01:38:09 +000012170
12171#########
drh75897232000-05-29 14:26:00 +000012172# Set up an appropriate program prefix
12173#
12174if test "$program_prefix" = "NONE"; then
12175 program_prefix=""
12176fi
12177
a.rottmann84e63352003-03-24 09:42:16 +000012178
drh4b2266a2004-11-27 15:52:16 +000012179VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
12180echo "Version set to $VERSION"
12181
12182RELEASE=`cat $srcdir/VERSION`
12183echo "Release set to $RELEASE"
a.rottmann84e63352003-03-24 09:42:16 +000012184
danielk197799ba19e2005-02-05 07:33:34 +000012185VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000012186 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000012187 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
danielk197799ba19e2005-02-05 07:33:34 +000012188echo "Version number set to $VERSION_NUMBER"
a.rottmann84e63352003-03-24 09:42:16 +000012189
drh26d0e2a2005-07-06 13:51:27 +000012190
drh75897232000-05-29 14:26:00 +000012191#########
12192# Check to see if the --with-hints=FILE option is used. If there is none,
12193# then check for a files named "$host.hints" and ../$hosts.hints where
12194# $host is the hostname of the build system. If still no hints are
12195# found, try looking in $system.hints and ../$system.hints where
12196# $system is the result of uname -s.
12197#
drh71eb93e2001-09-28 01:34:43 +000012198
mlcreech94984912008-03-04 19:03:08 +000012199# Check whether --with-hints was given.
drh75897232000-05-29 14:26:00 +000012200if test "${with_hints+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000012201 withval=$with_hints; hints=$withval
12202fi
12203
drh75897232000-05-29 14:26:00 +000012204if test "$hints" = ""; then
12205 host=`hostname | sed 's/\..*//'`
12206 if test -r $host.hints; then
12207 hints=$host.hints
12208 else
12209 if test -r ../$host.hints; then
12210 hints=../$host.hints
12211 fi
12212 fi
12213fi
12214if test "$hints" = ""; then
12215 sys=`uname -s`
12216 if test -r $sys.hints; then
12217 hints=$sys.hints
12218 else
12219 if test -r ../$sys.hints; then
12220 hints=../$sys.hints
12221 fi
12222 fi
12223fi
12224if test "$hints" != ""; then
mlcreech636a9952008-05-05 22:52:56 +000012225 { $as_echo "$as_me:$LINENO: result: reading hints from $hints" >&5
12226$as_echo "reading hints from $hints" >&6; }
drh75897232000-05-29 14:26:00 +000012227 . $hints
12228fi
12229
12230#########
12231# Locate a compiler for the build machine. This compiler should
12232# generate command-line programs that run on the build machine.
12233#
vapier7f19c022007-02-17 14:46:31 +000012234if test x"$cross_compiling" = xno; then
12235 BUILD_CC=$CC
12236 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000012237else
vapier7f19c022007-02-17 14:46:31 +000012238 if test "${BUILD_CC+set}" != set; then
12239 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000012240do
12241 # Extract the first word of "$ac_prog", so it can be a program name with args.
12242set dummy $ac_prog; ac_word=$2
mlcreech636a9952008-05-05 22:52:56 +000012243{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12244$as_echo_n "checking for $ac_word... " >&6; }
vapier7f19c022007-02-17 14:46:31 +000012245if test "${ac_cv_prog_BUILD_CC+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +000012246 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000012247else
vapier7f19c022007-02-17 14:46:31 +000012248 if test -n "$BUILD_CC"; then
12249 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000012250else
a.rottmann84e63352003-03-24 09:42:16 +000012251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12252for as_dir in $PATH
12253do
12254 IFS=$as_save_IFS
12255 test -z "$as_dir" && as_dir=.
12256 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +000012257 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 +000012258 ac_cv_prog_BUILD_CC="$ac_prog"
mlcreech636a9952008-05-05 22:52:56 +000012259 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000012260 break 2
12261 fi
12262done
drh71eb93e2001-09-28 01:34:43 +000012263done
mlcreech94984912008-03-04 19:03:08 +000012264IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000012265
drh71eb93e2001-09-28 01:34:43 +000012266fi
12267fi
vapier7f19c022007-02-17 14:46:31 +000012268BUILD_CC=$ac_cv_prog_BUILD_CC
12269if test -n "$BUILD_CC"; then
mlcreech636a9952008-05-05 22:52:56 +000012270 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
12271$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000012272else
mlcreech636a9952008-05-05 22:52:56 +000012273 { $as_echo "$as_me:$LINENO: result: no" >&5
12274$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000012275fi
drh75897232000-05-29 14:26:00 +000012276
mlcreech94984912008-03-04 19:03:08 +000012277
vapier7f19c022007-02-17 14:46:31 +000012278 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000012279done
drh75897232000-05-29 14:26:00 +000012280
vapier7f19c022007-02-17 14:46:31 +000012281 fi
12282 if test "${BUILD_CFLAGS+set}" != set; then
12283 BUILD_CFLAGS="-g"
12284 fi
drh71eb93e2001-09-28 01:34:43 +000012285fi
12286
a.rottmann84e63352003-03-24 09:42:16 +000012287
drh297ecf12001-04-05 15:57:13 +000012288##########
dougcurrie0f290bf2004-06-21 18:57:29 +000012289# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000012290#
mlcreech94984912008-03-04 19:03:08 +000012291# Check whether --enable-threadsafe was given.
dougcurrie0f290bf2004-06-21 18:57:29 +000012292if test "${enable_threadsafe+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000012293 enableval=$enable_threadsafe;
drh297ecf12001-04-05 15:57:13 +000012294else
drh5a3032b2007-09-03 16:12:09 +000012295 enable_threadsafe=yes
mlcreech94984912008-03-04 19:03:08 +000012296fi
12297
mlcreech636a9952008-05-05 22:52:56 +000012298{ $as_echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
12299$as_echo_n "checking whether to support threadsafe operation... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000012300if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000012301 SQLITE_THREADSAFE=0
mlcreech636a9952008-05-05 22:52:56 +000012302 { $as_echo "$as_me:$LINENO: result: no" >&5
12303$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012304else
drh5a3032b2007-09-03 16:12:09 +000012305 SQLITE_THREADSAFE=1
mlcreech636a9952008-05-05 22:52:56 +000012306 { $as_echo "$as_me:$LINENO: result: yes" >&5
12307$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012308fi
12309
a.rottmann964dbb12004-02-26 19:47:42 +000012310
drh5a3032b2007-09-03 16:12:09 +000012311if test "$SQLITE_THREADSAFE" = "1"; then
mlcreech636a9952008-05-05 22:52:56 +000012312 { $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
12313$as_echo_n "checking for library containing pthread_create... " >&6; }
mlcreechc658b0f2008-03-09 02:20:11 +000012314if test "${ac_cv_search_pthread_create+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +000012315 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000012316else
mlcreechc658b0f2008-03-09 02:20:11 +000012317 ac_func_search_save_LIBS=$LIBS
dougcurrie65623c72004-09-20 14:57:23 +000012318cat >conftest.$ac_ext <<_ACEOF
12319/* confdefs.h. */
12320_ACEOF
12321cat confdefs.h >>conftest.$ac_ext
12322cat >>conftest.$ac_ext <<_ACEOF
12323/* end confdefs.h. */
12324
mlcreech94984912008-03-04 19:03:08 +000012325/* Override any GCC internal prototype to avoid an error.
12326 Use char because int might match the return type of a GCC
12327 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000012328#ifdef __cplusplus
12329extern "C"
12330#endif
dougcurrie65623c72004-09-20 14:57:23 +000012331char pthread_create ();
12332int
12333main ()
12334{
mlcreech94984912008-03-04 19:03:08 +000012335return pthread_create ();
dougcurrie65623c72004-09-20 14:57:23 +000012336 ;
12337 return 0;
12338}
12339_ACEOF
mlcreechc658b0f2008-03-09 02:20:11 +000012340for ac_lib in '' pthread; do
12341 if test -z "$ac_lib"; then
12342 ac_res="none required"
12343 else
12344 ac_res=-l$ac_lib
12345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12346 fi
12347 rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000012348if { (ac_try="$ac_link"
12349case "(($ac_try" in
12350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351 *) ac_try_echo=$ac_try;;
12352esac
mlcreech636a9952008-05-05 22:52:56 +000012353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12354$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +000012355 (eval "$ac_link") 2>conftest.er1
dougcurrie65623c72004-09-20 14:57:23 +000012356 ac_status=$?
12357 grep -v '^ *+' conftest.er1 >conftest.err
12358 rm -f conftest.er1
12359 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +000012360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000012361 (exit $ac_status); } && {
12362 test -z "$ac_c_werror_flag" ||
12363 test ! -s conftest.err
mlcreech636a9952008-05-05 22:52:56 +000012364 } && test -s conftest$ac_exeext && {
12365 test "$cross_compiling" = yes ||
12366 $as_test_x conftest$ac_exeext
12367 }; then
mlcreechc658b0f2008-03-09 02:20:11 +000012368 ac_cv_search_pthread_create=$ac_res
dougcurrie65623c72004-09-20 14:57:23 +000012369else
mlcreech636a9952008-05-05 22:52:56 +000012370 $as_echo "$as_me: failed program was:" >&5
dougcurrie65623c72004-09-20 14:57:23 +000012371sed 's/^/| /' conftest.$ac_ext >&5
12372
mlcreechc658b0f2008-03-09 02:20:11 +000012373
dougcurrie65623c72004-09-20 14:57:23 +000012374fi
mlcreech94984912008-03-04 19:03:08 +000012375
mlcreech636a9952008-05-05 22:52:56 +000012376rm -rf conftest.dSYM
mlcreech94984912008-03-04 19:03:08 +000012377rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mlcreechc658b0f2008-03-09 02:20:11 +000012378 conftest$ac_exeext
12379 if test "${ac_cv_search_pthread_create+set}" = set; then
12380 break
dougcurrie65623c72004-09-20 14:57:23 +000012381fi
mlcreechc658b0f2008-03-09 02:20:11 +000012382done
12383if test "${ac_cv_search_pthread_create+set}" = set; then
12384 :
dougcurrie65623c72004-09-20 14:57:23 +000012385else
mlcreechc658b0f2008-03-09 02:20:11 +000012386 ac_cv_search_pthread_create=no
12387fi
12388rm conftest.$ac_ext
12389LIBS=$ac_func_search_save_LIBS
12390fi
mlcreech636a9952008-05-05 22:52:56 +000012391{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
12392$as_echo "$ac_cv_search_pthread_create" >&6; }
mlcreechc658b0f2008-03-09 02:20:11 +000012393ac_res=$ac_cv_search_pthread_create
12394if test "$ac_res" != no; then
12395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12396
dougcurrie65623c72004-09-20 14:57:23 +000012397fi
12398
mlcreechc658b0f2008-03-09 02:20:11 +000012399fi
dougcurrie65623c72004-09-20 14:57:23 +000012400
xdong28f79f72003-09-23 00:35:21 +000012401##########
drh91636d52005-11-24 23:14:00 +000012402# Do we want to allow a connection created in one thread to be used
12403# in another thread. This does not work on many Linux systems (ex: RedHat 9)
12404# due to bugs in the threading implementations. This is thus off by default.
12405#
mlcreech94984912008-03-04 19:03:08 +000012406# Check whether --enable-cross-thread-connections was given.
drh91636d52005-11-24 23:14:00 +000012407if test "${enable_cross_thread_connections+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000012408 enableval=$enable_cross_thread_connections;
drh91636d52005-11-24 23:14:00 +000012409else
12410 enable_xthreadconnect=no
mlcreech94984912008-03-04 19:03:08 +000012411fi
12412
mlcreech636a9952008-05-05 22:52:56 +000012413{ $as_echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
12414$as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
drh91636d52005-11-24 23:14:00 +000012415if test "$enable_xthreadconnect" = "no"; then
12416 XTHREADCONNECT=''
mlcreech636a9952008-05-05 22:52:56 +000012417 { $as_echo "$as_me:$LINENO: result: no" >&5
12418$as_echo "no" >&6; }
drh91636d52005-11-24 23:14:00 +000012419else
12420 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
mlcreech636a9952008-05-05 22:52:56 +000012421 { $as_echo "$as_me:$LINENO: result: yes" >&5
12422$as_echo "yes" >&6; }
drh91636d52005-11-24 23:14:00 +000012423fi
12424
12425
12426##########
drh8e2e2a12006-02-01 01:55:17 +000012427# Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by
12428# default. Normally, a test at runtime is performed to determine the
12429# appropriate value of this variable. Use this option only if you're sure that
12430# threads can safely override each others locks in all runtime situations.
12431#
mlcreech94984912008-03-04 19:03:08 +000012432# Check whether --enable-threads-override-locks was given.
drh8e2e2a12006-02-01 01:55:17 +000012433if test "${enable_threads_override_locks+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000012434 enableval=$enable_threads_override_locks;
drh8e2e2a12006-02-01 01:55:17 +000012435else
12436 enable_threads_override_locks=no
mlcreech94984912008-03-04 19:03:08 +000012437fi
12438
mlcreech636a9952008-05-05 22:52:56 +000012439{ $as_echo "$as_me:$LINENO: checking whether threads can override each others locks" >&5
12440$as_echo_n "checking whether threads can override each others locks... " >&6; }
drh8e2e2a12006-02-01 01:55:17 +000012441if test "$enable_threads_override_locks" = "no"; then
12442 THREADSOVERRIDELOCKS='-1'
mlcreech636a9952008-05-05 22:52:56 +000012443 { $as_echo "$as_me:$LINENO: result: no" >&5
12444$as_echo "no" >&6; }
drh8e2e2a12006-02-01 01:55:17 +000012445else
12446 THREADSOVERRIDELOCKS='1'
mlcreech636a9952008-05-05 22:52:56 +000012447 { $as_echo "$as_me:$LINENO: result: yes" >&5
12448$as_echo "yes" >&6; }
drh8e2e2a12006-02-01 01:55:17 +000012449fi
12450
12451
12452##########
xdong28f79f72003-09-23 00:35:21 +000012453# Do we want to support release
12454#
mlcreech94984912008-03-04 19:03:08 +000012455# Check whether --enable-releasemode was given.
xdong28f79f72003-09-23 00:35:21 +000012456if test "${enable_releasemode+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000012457 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000012458else
12459 enable_releasemode=no
mlcreech94984912008-03-04 19:03:08 +000012460fi
12461
mlcreech636a9952008-05-05 22:52:56 +000012462{ $as_echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
12463$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
xdong28f79f72003-09-23 00:35:21 +000012464if test "$enable_releasemode" = "no"; then
12465 ALLOWRELEASE=""
mlcreech636a9952008-05-05 22:52:56 +000012466 { $as_echo "$as_me:$LINENO: result: no" >&5
12467$as_echo "no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000012468else
drh0b47d342007-11-27 14:50:06 +000012469 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
mlcreech636a9952008-05-05 22:52:56 +000012470 { $as_echo "$as_me:$LINENO: result: yes" >&5
12471$as_echo "yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000012472fi
paulb0208cc2003-04-13 18:26:49 +000012473
a.rottmann964dbb12004-02-26 19:47:42 +000012474
paulb0208cc2003-04-13 18:26:49 +000012475##########
12476# Do we want temporary databases in memory
12477#
mlcreech94984912008-03-04 19:03:08 +000012478# Check whether --enable-tempstore was given.
dougcurrie0f290bf2004-06-21 18:57:29 +000012479if test "${enable_tempstore+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000012480 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000012481else
drh54414bb2005-10-10 00:05:50 +000012482 enable_tempstore=no
mlcreech94984912008-03-04 19:03:08 +000012483fi
12484
mlcreech636a9952008-05-05 22:52:56 +000012485{ $as_echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
12486$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000012487case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000012488 never )
paul2dc96f92003-04-20 11:46:34 +000012489 TEMP_STORE=0
mlcreech636a9952008-05-05 22:52:56 +000012490 { $as_echo "$as_me:$LINENO: result: never" >&5
12491$as_echo "never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012492 ;;
12493 no )
paul2dc96f92003-04-20 11:46:34 +000012494 TEMP_STORE=1
mlcreech636a9952008-05-05 22:52:56 +000012495 { $as_echo "$as_me:$LINENO: result: no" >&5
12496$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012497 ;;
12498 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000012499 TEMP_STORE=3
mlcreech636a9952008-05-05 22:52:56 +000012500 { $as_echo "$as_me:$LINENO: result: always" >&5
12501$as_echo "always" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012502 ;;
drh54414bb2005-10-10 00:05:50 +000012503 yes )
12504 TEMP_STORE=3
mlcreech636a9952008-05-05 22:52:56 +000012505 { $as_echo "$as_me:$LINENO: result: always" >&5
12506$as_echo "always" >&6; }
drh54414bb2005-10-10 00:05:50 +000012507 ;;
paulb0208cc2003-04-13 18:26:49 +000012508 * )
drh54414bb2005-10-10 00:05:50 +000012509 TEMP_STORE=1
mlcreech636a9952008-05-05 22:52:56 +000012510 { $as_echo "$as_me:$LINENO: result: yes" >&5
12511$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012512 ;;
12513esac
12514
12515
12516
drh75897232000-05-29 14:26:00 +000012517###########
12518# Lots of things are different if we are compiling for Windows using
12519# the CYGWIN environment. So check for that special case and handle
12520# things accordingly.
12521#
mlcreech636a9952008-05-05 22:52:56 +000012522{ $as_echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
12523$as_echo_n "checking if executables have the .exe suffix... " >&6; }
drh75897232000-05-29 14:26:00 +000012524if test "$config_BUILD_EXEEXT" = ".exe"; then
12525 CYGWIN=yes
mlcreech636a9952008-05-05 22:52:56 +000012526 { $as_echo "$as_me:$LINENO: result: yes" >&5
12527$as_echo "yes" >&6; }
drh75897232000-05-29 14:26:00 +000012528else
mlcreech636a9952008-05-05 22:52:56 +000012529 { $as_echo "$as_me:$LINENO: result: unknown" >&5
12530$as_echo "unknown" >&6; }
drh75897232000-05-29 14:26:00 +000012531fi
12532if test "$CYGWIN" != "yes"; then
mlcreech636a9952008-05-05 22:52:56 +000012533 { $as_echo "$as_me:$LINENO: checking host system type" >&5
12534$as_echo_n "checking host system type... " >&6; }
mlcreech94984912008-03-04 19:03:08 +000012535if test "${ac_cv_host+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +000012536 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +000012537else
12538 if test "x$host_alias" = x; then
12539 ac_cv_host=$ac_cv_build
12540else
12541 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
mlcreech636a9952008-05-05 22:52:56 +000012542 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12543$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
mlcreech94984912008-03-04 19:03:08 +000012544 { (exit 1); exit 1; }; }
12545fi
12546
12547fi
mlcreech636a9952008-05-05 22:52:56 +000012548{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12549$as_echo "$ac_cv_host" >&6; }
mlcreech94984912008-03-04 19:03:08 +000012550case $ac_cv_host in
12551*-*-*) ;;
mlcreech636a9952008-05-05 22:52:56 +000012552*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12553$as_echo "$as_me: error: invalid value of canonical host" >&2;}
mlcreech94984912008-03-04 19:03:08 +000012554 { (exit 1); exit 1; }; };;
12555esac
12556host=$ac_cv_host
12557ac_save_IFS=$IFS; IFS='-'
12558set x $ac_cv_host
12559shift
12560host_cpu=$1
12561host_vendor=$2
12562shift; shift
12563# Remember, the first character of IFS is used to create $*,
12564# except with old shells:
12565host_os=$*
12566IFS=$ac_save_IFS
12567case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12568
a.rottmann84e63352003-03-24 09:42:16 +000012569
12570case $host_os in
drh71eb93e2001-09-28 01:34:43 +000012571 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000012572 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000012573esac
drh75897232000-05-29 14:26:00 +000012574
drh75897232000-05-29 14:26:00 +000012575fi
12576if test "$CYGWIN" = "yes"; then
12577 BUILD_EXEEXT=.exe
12578else
dougcurrie6194a5f2003-12-19 20:09:51 +000012579 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000012580fi
vapier7f19c022007-02-17 14:46:31 +000012581if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000012582 TARGET_EXEEXT=$BUILD_EXEEXT
12583else
12584 TARGET_EXEEXT=$config_TARGET_EXEEXT
12585fi
12586if test "$TARGET_EXEEXT" = ".exe"; then
drh60a1e4b2006-06-03 18:02:15 +000012587 if test $OS2_SHELL ; then
12588 OS_UNIX=0
12589 OS_WIN=0
12590 OS_OS2=1
mlcreech8390bc32008-03-06 08:54:38 +000012591 CFLAGS="$CFLAGS -DOS_OS2=1"
mlcreech57ee0522008-04-14 22:57:55 +000012592 if test "$ac_compiler_gnu" = "yes" ; then
mlcreech8390bc32008-03-06 08:54:38 +000012593 CFLAGS="$CFLAGS -Zomf -Zexe -Zmap"
drh60a1e4b2006-06-03 18:02:15 +000012594 BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe"
12595 fi
12596 else
12597 OS_UNIX=0
12598 OS_WIN=1
12599 OS_OS2=0
12600 tclsubdir=win
mlcreech8390bc32008-03-06 08:54:38 +000012601 CFLAGS="$CFLAGS -DOS_WIN=1"
drh60a1e4b2006-06-03 18:02:15 +000012602 fi
drh75897232000-05-29 14:26:00 +000012603else
12604 OS_UNIX=1
12605 OS_WIN=0
drh60a1e4b2006-06-03 18:02:15 +000012606 OS_OS2=0
drh75897232000-05-29 14:26:00 +000012607 tclsubdir=unix
mlcreech8390bc32008-03-06 08:54:38 +000012608 CFLAGS="$CFLAGS -DOS_UNIX=1"
drh75897232000-05-29 14:26:00 +000012609fi
drh75897232000-05-29 14:26:00 +000012610
a.rottmann84e63352003-03-24 09:42:16 +000012611
12612
12613
12614
12615
drh75897232000-05-29 14:26:00 +000012616
drh75897232000-05-29 14:26:00 +000012617##########
drh7b5717e2004-11-25 13:50:01 +000012618# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000012619#
drh7b5717e2004-11-25 13:50:01 +000012620# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
12621# macros in the in the tcl.m4 file of the standard TCL distribution.
12622# Those macros could not be used directly since we have to make some
12623# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000012624#
mlcreech94984912008-03-04 19:03:08 +000012625# Check whether --enable-tcl was given.
drh7b5717e2004-11-25 13:50:01 +000012626if test "${enable_tcl+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000012627 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000012628else
drh7b5717e2004-11-25 13:50:01 +000012629 use_tcl=yes
mlcreech94984912008-03-04 19:03:08 +000012630fi
12631
drh7b5717e2004-11-25 13:50:01 +000012632if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000012633
mlcreech94984912008-03-04 19:03:08 +000012634# Check whether --with-tcl was given.
drh7b5717e2004-11-25 13:50:01 +000012635if test "${with_tcl+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000012636 withval=$with_tcl; with_tclconfig=${withval}
12637fi
12638
mlcreech636a9952008-05-05 22:52:56 +000012639 { $as_echo "$as_me:$LINENO: checking for Tcl configuration" >&5
12640$as_echo_n "checking for Tcl configuration... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000012641 if test "${ac_cv_c_tclconfig+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +000012642 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000012643else
a.rottmann84e63352003-03-24 09:42:16 +000012644
drh7b5717e2004-11-25 13:50:01 +000012645 # First check to see if --with-tcl was specified.
12646 if test x"${with_tclconfig}" != x ; then
12647 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12648 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12649 else
mlcreech636a9952008-05-05 22:52:56 +000012650 { { $as_echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
12651$as_echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
xdong28f79f72003-09-23 00:35:21 +000012652 { (exit 1); exit 1; }; }
drh7b5717e2004-11-25 13:50:01 +000012653 fi
12654 fi
12655 # then check for a private Tcl installation
12656 if test x"${ac_cv_c_tclconfig}" = x ; then
12657 for i in \
12658 ../tcl \
12659 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12660 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12661 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12662 ../../tcl \
12663 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12664 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12665 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12666 ../../../tcl \
12667 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12668 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12669 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
12670 do
12671 if test -f "$i/unix/tclConfig.sh" ; then
12672 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12673 break
12674 fi
12675 done
12676 fi
12677
12678 # check in a few common install locations
12679 if test x"${ac_cv_c_tclconfig}" = x ; then
12680 for i in \
12681 `ls -d ${libdir} 2>/dev/null` \
12682 `ls -d /usr/local/lib 2>/dev/null` \
12683 `ls -d /usr/contrib/lib 2>/dev/null` \
12684 `ls -d /usr/lib 2>/dev/null`
12685 do
12686 if test -f "$i/tclConfig.sh" ; then
12687 ac_cv_c_tclconfig=`(cd $i; pwd)`
12688 break
12689 fi
12690 done
12691 fi
12692
12693 # check in a few other private locations
12694 if test x"${ac_cv_c_tclconfig}" = x ; then
12695 for i in \
12696 ${srcdir}/../tcl \
12697 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12698 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12699 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
12700 do
12701 if test -f "$i/unix/tclConfig.sh" ; then
12702 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12703 break
12704 fi
12705 done
12706 fi
12707
drh75897232000-05-29 14:26:00 +000012708fi
12709
drh7b5717e2004-11-25 13:50:01 +000012710
12711 if test x"${ac_cv_c_tclconfig}" = x ; then
12712 use_tcl=no
mlcreech636a9952008-05-05 22:52:56 +000012713 { $as_echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
12714$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
12715 { $as_echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
12716$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
12717 { $as_echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
12718$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000012719 else
12720 TCL_BIN_DIR=${ac_cv_c_tclconfig}
mlcreech636a9952008-05-05 22:52:56 +000012721 { $as_echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
12722$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000012723
mlcreech636a9952008-05-05 22:52:56 +000012724 { $as_echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
12725$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000012726 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
mlcreech636a9952008-05-05 22:52:56 +000012727 { $as_echo "$as_me:$LINENO: result: loading" >&5
12728$as_echo "loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000012729 . $TCL_BIN_DIR/tclConfig.sh
12730 else
mlcreech636a9952008-05-05 22:52:56 +000012731 { $as_echo "$as_me:$LINENO: result: file not found" >&5
12732$as_echo "file not found" >&6; }
drh75897232000-05-29 14:26:00 +000012733 fi
drh7b5717e2004-11-25 13:50:01 +000012734
12735 #
12736 # If the TCL_BIN_DIR is the build directory (not the install directory),
12737 # then set the common variable name to the value of the build variables.
12738 # For example, the variable TCL_LIB_SPEC will be set to the value
12739 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12740 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12741 # installed and uninstalled version of Tcl.
12742 #
12743
mlcreechab1c47b2008-03-09 02:51:10 +000012744 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000012745 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
12746 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
12747 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
12748 fi
12749
12750 #
12751 # eval is required to do the TCL_DBGX substitution
12752 #
12753
12754 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12755 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12756 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12757
12758 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12759 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12760 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775 fi
drh75897232000-05-29 14:26:00 +000012776fi
drh7b5717e2004-11-25 13:50:01 +000012777if test "${use_tcl}" = "no" ; then
12778 HAVE_TCL=""
12779else
12780 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000012781fi
drh75897232000-05-29 14:26:00 +000012782
a.rottmann84e63352003-03-24 09:42:16 +000012783
drh75897232000-05-29 14:26:00 +000012784##########
12785# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000012786# that use "readline()" library.
12787#
vapier7f19c022007-02-17 14:46:31 +000012788TARGET_READLINE_LIBS=""
12789TARGET_READLINE_INC=""
12790TARGET_HAVE_READLINE=0
mlcreech94984912008-03-04 19:03:08 +000012791# Check whether --enable-readline was given.
vapier7f19c022007-02-17 14:46:31 +000012792if test "${enable_readline+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000012793 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000012794else
vapier7f19c022007-02-17 14:46:31 +000012795 with_readline=auto
mlcreech94984912008-03-04 19:03:08 +000012796fi
12797
vapier7f19c022007-02-17 14:46:31 +000012798
12799if test x"$with_readline" != xno; then
12800 found="yes"
12801
12802
mlcreech94984912008-03-04 19:03:08 +000012803# Check whether --with-readline-lib was given.
vapier7f19c022007-02-17 14:46:31 +000012804if test "${with_readline_lib+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000012805 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000012806else
12807 with_readline_lib="auto"
mlcreech94984912008-03-04 19:03:08 +000012808fi
12809
vapier7f19c022007-02-17 14:46:31 +000012810 if test "x$with_readline_lib" = xauto; then
12811 save_LIBS="$LIBS"
12812 LIBS=""
mlcreech636a9952008-05-05 22:52:56 +000012813 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
12814$as_echo_n "checking for library containing tgetent... " >&6; }
paul38372372003-04-22 08:04:49 +000012815if test "${ac_cv_search_tgetent+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +000012816 $as_echo_n "(cached) " >&6
drh75897232000-05-29 14:26:00 +000012817else
drh71eb93e2001-09-28 01:34:43 +000012818 ac_func_search_save_LIBS=$LIBS
paul38372372003-04-22 08:04:49 +000012819cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000012820/* confdefs.h. */
12821_ACEOF
12822cat confdefs.h >>conftest.$ac_ext
12823cat >>conftest.$ac_ext <<_ACEOF
12824/* end confdefs.h. */
12825
mlcreech94984912008-03-04 19:03:08 +000012826/* Override any GCC internal prototype to avoid an error.
12827 Use char because int might match the return type of a GCC
12828 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000012829#ifdef __cplusplus
12830extern "C"
12831#endif
paul38372372003-04-22 08:04:49 +000012832char tgetent ();
12833int
12834main ()
12835{
mlcreech94984912008-03-04 19:03:08 +000012836return tgetent ();
paul38372372003-04-22 08:04:49 +000012837 ;
12838 return 0;
12839}
12840_ACEOF
mlcreech94984912008-03-04 19:03:08 +000012841for ac_lib in '' readline ncurses curses termcap; do
12842 if test -z "$ac_lib"; then
12843 ac_res="none required"
12844 else
12845 ac_res=-l$ac_lib
drh613a0fe2007-11-23 17:31:17 +000012846 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
mlcreech94984912008-03-04 19:03:08 +000012847 fi
12848 rm -f conftest.$ac_objext conftest$ac_exeext
12849if { (ac_try="$ac_link"
12850case "(($ac_try" in
12851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12852 *) ac_try_echo=$ac_try;;
12853esac
mlcreech636a9952008-05-05 22:52:56 +000012854eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12855$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +000012856 (eval "$ac_link") 2>conftest.er1
drh613a0fe2007-11-23 17:31:17 +000012857 ac_status=$?
12858 grep -v '^ *+' conftest.er1 >conftest.err
12859 rm -f conftest.er1
12860 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +000012861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000012862 (exit $ac_status); } && {
12863 test -z "$ac_c_werror_flag" ||
12864 test ! -s conftest.err
mlcreech636a9952008-05-05 22:52:56 +000012865 } && test -s conftest$ac_exeext && {
12866 test "$cross_compiling" = yes ||
12867 $as_test_x conftest$ac_exeext
12868 }; then
mlcreech94984912008-03-04 19:03:08 +000012869 ac_cv_search_tgetent=$ac_res
vapier7f19c022007-02-17 14:46:31 +000012870else
mlcreech636a9952008-05-05 22:52:56 +000012871 $as_echo "$as_me: failed program was:" >&5
drh613a0fe2007-11-23 17:31:17 +000012872sed 's/^/| /' conftest.$ac_ext >&5
12873
mlcreech94984912008-03-04 19:03:08 +000012874
vapier7f19c022007-02-17 14:46:31 +000012875fi
mlcreech94984912008-03-04 19:03:08 +000012876
mlcreech636a9952008-05-05 22:52:56 +000012877rm -rf conftest.dSYM
mlcreech94984912008-03-04 19:03:08 +000012878rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12879 conftest$ac_exeext
12880 if test "${ac_cv_search_tgetent+set}" = set; then
12881 break
drh613a0fe2007-11-23 17:31:17 +000012882fi
mlcreech94984912008-03-04 19:03:08 +000012883done
12884if test "${ac_cv_search_tgetent+set}" = set; then
12885 :
12886else
12887 ac_cv_search_tgetent=no
12888fi
12889rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000012890LIBS=$ac_func_search_save_LIBS
12891fi
mlcreech636a9952008-05-05 22:52:56 +000012892{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
12893$as_echo "$ac_cv_search_tgetent" >&6; }
mlcreech94984912008-03-04 19:03:08 +000012894ac_res=$ac_cv_search_tgetent
12895if test "$ac_res" != no; then
12896 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000012897 term_LIBS="$LIBS"
12898else
12899 term_LIBS=""
paul38372372003-04-22 08:04:49 +000012900fi
12901
mlcreech636a9952008-05-05 22:52:56 +000012902 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
12903$as_echo_n "checking for readline in -lreadline... " >&6; }
paul38372372003-04-22 08:04:49 +000012904if test "${ac_cv_lib_readline_readline+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +000012905 $as_echo_n "(cached) " >&6
paul38372372003-04-22 08:04:49 +000012906else
12907 ac_check_lib_save_LIBS=$LIBS
12908LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +000012909cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012910/* confdefs.h. */
12911_ACEOF
12912cat confdefs.h >>conftest.$ac_ext
12913cat >>conftest.$ac_ext <<_ACEOF
12914/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000012915
mlcreech94984912008-03-04 19:03:08 +000012916/* Override any GCC internal prototype to avoid an error.
12917 Use char because int might match the return type of a GCC
12918 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000012919#ifdef __cplusplus
12920extern "C"
12921#endif
drh71eb93e2001-09-28 01:34:43 +000012922char readline ();
12923int
12924main ()
12925{
mlcreech94984912008-03-04 19:03:08 +000012926return readline ();
drh71eb93e2001-09-28 01:34:43 +000012927 ;
12928 return 0;
12929}
12930_ACEOF
12931rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000012932if { (ac_try="$ac_link"
12933case "(($ac_try" in
12934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12935 *) ac_try_echo=$ac_try;;
12936esac
mlcreech636a9952008-05-05 22:52:56 +000012937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12938$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +000012939 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000012940 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000012941 grep -v '^ *+' conftest.er1 >conftest.err
12942 rm -f conftest.er1
12943 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +000012944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000012945 (exit $ac_status); } && {
12946 test -z "$ac_c_werror_flag" ||
12947 test ! -s conftest.err
mlcreech636a9952008-05-05 22:52:56 +000012948 } && test -s conftest$ac_exeext && {
12949 test "$cross_compiling" = yes ||
12950 $as_test_x conftest$ac_exeext
12951 }; then
paul38372372003-04-22 08:04:49 +000012952 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000012953else
mlcreech636a9952008-05-05 22:52:56 +000012954 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000012955sed 's/^/| /' conftest.$ac_ext >&5
12956
mlcreech94984912008-03-04 19:03:08 +000012957 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000012958fi
mlcreech94984912008-03-04 19:03:08 +000012959
mlcreech636a9952008-05-05 22:52:56 +000012960rm -rf conftest.dSYM
mlcreech94984912008-03-04 19:03:08 +000012961rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +000012962 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000012963LIBS=$ac_check_lib_save_LIBS
12964fi
mlcreech636a9952008-05-05 22:52:56 +000012965{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
12966$as_echo "$ac_cv_lib_readline_readline" >&6; }
paul38372372003-04-22 08:04:49 +000012967if test $ac_cv_lib_readline_readline = yes; then
vapier7f19c022007-02-17 14:46:31 +000012968 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000012969else
vapier7f19c022007-02-17 14:46:31 +000012970 found="no"
12971fi
drhf1878b42006-01-23 18:06:52 +000012972
vapier7f19c022007-02-17 14:46:31 +000012973 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
12974 LIBS="$save_LIBS"
12975 else
12976 TARGET_READLINE_LIBS="$with_readline_lib"
12977 fi
12978
12979
mlcreech94984912008-03-04 19:03:08 +000012980# Check whether --with-readline-inc was given.
vapier7f19c022007-02-17 14:46:31 +000012981if test "${with_readline_inc+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000012982 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000012983else
vapier7f19c022007-02-17 14:46:31 +000012984 with_readline_inc="auto"
mlcreech94984912008-03-04 19:03:08 +000012985fi
12986
vapier7f19c022007-02-17 14:46:31 +000012987 if test "x$with_readline_inc" = xauto; then
12988 if test "${ac_cv_header_readline_h+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +000012989 { $as_echo "$as_me:$LINENO: checking for readline.h" >&5
12990$as_echo_n "checking for readline.h... " >&6; }
drh71eb93e2001-09-28 01:34:43 +000012991if test "${ac_cv_header_readline_h+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +000012992 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000012993fi
mlcreech636a9952008-05-05 22:52:56 +000012994{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
12995$as_echo "$ac_cv_header_readline_h" >&6; }
drh75897232000-05-29 14:26:00 +000012996else
a.rottmann84e63352003-03-24 09:42:16 +000012997 # Is the header compilable?
mlcreech636a9952008-05-05 22:52:56 +000012998{ $as_echo "$as_me:$LINENO: checking readline.h usability" >&5
12999$as_echo_n "checking readline.h usability... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013000cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000013001/* confdefs.h. */
13002_ACEOF
13003cat confdefs.h >>conftest.$ac_ext
13004cat >>conftest.$ac_ext <<_ACEOF
13005/* end confdefs.h. */
13006$ac_includes_default
drh75897232000-05-29 14:26:00 +000013007#include <readline.h>
drh71eb93e2001-09-28 01:34:43 +000013008_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000013009rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +000013010if { (ac_try="$ac_compile"
13011case "(($ac_try" in
13012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13013 *) ac_try_echo=$ac_try;;
13014esac
mlcreech636a9952008-05-05 22:52:56 +000013015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13016$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +000013017 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000013018 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000013019 grep -v '^ *+' conftest.er1 >conftest.err
13020 rm -f conftest.er1
13021 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +000013022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000013023 (exit $ac_status); } && {
13024 test -z "$ac_c_werror_flag" ||
13025 test ! -s conftest.err
13026 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +000013027 ac_header_compiler=yes
13028else
mlcreech636a9952008-05-05 22:52:56 +000013029 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000013030sed 's/^/| /' conftest.$ac_ext >&5
13031
mlcreech94984912008-03-04 19:03:08 +000013032 ac_header_compiler=no
a.rottmann84e63352003-03-24 09:42:16 +000013033fi
mlcreech94984912008-03-04 19:03:08 +000013034
13035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000013036{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13037$as_echo "$ac_header_compiler" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013038
13039# Is the header present?
mlcreech636a9952008-05-05 22:52:56 +000013040{ $as_echo "$as_me:$LINENO: checking readline.h presence" >&5
13041$as_echo_n "checking readline.h presence... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013042cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000013043/* confdefs.h. */
13044_ACEOF
13045cat confdefs.h >>conftest.$ac_ext
13046cat >>conftest.$ac_ext <<_ACEOF
13047/* end confdefs.h. */
13048#include <readline.h>
13049_ACEOF
mlcreech94984912008-03-04 19:03:08 +000013050if { (ac_try="$ac_cpp conftest.$ac_ext"
13051case "(($ac_try" in
13052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053 *) ac_try_echo=$ac_try;;
13054esac
mlcreech636a9952008-05-05 22:52:56 +000013055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13056$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +000013057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000013058 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000013059 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +000013060 rm -f conftest.er1
13061 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +000013062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000013063 (exit $ac_status); } >/dev/null && {
13064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13065 test ! -s conftest.err
13066 }; then
a.rottmann84e63352003-03-24 09:42:16 +000013067 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +000013068else
mlcreech636a9952008-05-05 22:52:56 +000013069 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000013070sed 's/^/| /' conftest.$ac_ext >&5
13071
13072 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +000013073fi
mlcreech94984912008-03-04 19:03:08 +000013074
drh71eb93e2001-09-28 01:34:43 +000013075rm -f conftest.err conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000013076{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13077$as_echo "$ac_header_preproc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013078
13079# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +000013080case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13081 yes:no: )
mlcreech636a9952008-05-05 22:52:56 +000013082 { $as_echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13083$as_echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13084 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
13085$as_echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000013086 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +000013087 ;;
a.rottmann964dbb12004-02-26 19:47:42 +000013088 no:yes:* )
mlcreech636a9952008-05-05 22:52:56 +000013089 { $as_echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
13090$as_echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
13091 { $as_echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
13092$as_echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
13093 { $as_echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
13094$as_echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
13095 { $as_echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
13096$as_echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13097 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
13098$as_echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
13099 { $as_echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
13100$as_echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
mlcreech94984912008-03-04 19:03:08 +000013101
a.rottmann84e63352003-03-24 09:42:16 +000013102 ;;
13103esac
mlcreech636a9952008-05-05 22:52:56 +000013104{ $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13105$as_echo_n "checking for readline.h... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013106if test "${ac_cv_header_readline_h+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +000013107 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000013108else
13109 ac_cv_header_readline_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +000013110fi
mlcreech636a9952008-05-05 22:52:56 +000013111{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13112$as_echo "$ac_cv_header_readline_h" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013113
13114fi
drh71eb93e2001-09-28 01:34:43 +000013115if test $ac_cv_header_readline_h = yes; then
vapier7f19c022007-02-17 14:46:31 +000013116 found="yes"
13117else
drh75897232000-05-29 14:26:00 +000013118
vapier7f19c022007-02-17 14:46:31 +000013119 found="no"
13120 if test "$cross_compiling" != yes; then
13121 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
13122 for subdir in include include/readline; do
mlcreech636a9952008-05-05 22:52:56 +000013123 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
13124{ $as_echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5
13125$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
mlcreech94984912008-03-04 19:03:08 +000013126if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
mlcreech636a9952008-05-05 22:52:56 +000013127 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000013128else
13129 test "$cross_compiling" = yes &&
mlcreech636a9952008-05-05 22:52:56 +000013130 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
13131$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
xdong28f79f72003-09-23 00:35:21 +000013132 { (exit 1); exit 1; }; }
vapier7f19c022007-02-17 14:46:31 +000013133if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000013134 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000013135else
drh71eb93e2001-09-28 01:34:43 +000013136 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000013137fi
13138fi
mlcreech636a9952008-05-05 22:52:56 +000013139ac_res=`eval 'as_val=${'$as_ac_File'}
13140 $as_echo "$as_val"'`
13141 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13142$as_echo "$ac_res" >&6; }
13143if test `eval 'as_val=${'$as_ac_File'}
13144 $as_echo "$as_val"'` = yes; then
drh75897232000-05-29 14:26:00 +000013145 found=yes
drh75897232000-05-29 14:26:00 +000013146fi
13147
vapier7f19c022007-02-17 14:46:31 +000013148 if test "$found" = "yes"; then
13149 TARGET_READLINE_INC="-I$dir/$subdir"
13150 break
13151 fi
13152 done
13153 test "$found" = "yes" && break
13154 done
13155 fi
13156
13157fi
13158
13159
13160 else
13161 TARGET_READLINE_INC="$with_readline_inc"
13162 fi
13163
13164 if test x"$found" = xno; then
13165 TARGET_READLINE_LIBS=""
13166 TARGET_READLINE_INC=""
13167 TARGET_HAVE_READLINE=0
13168 else
13169 TARGET_HAVE_READLINE=1
13170 fi
13171fi
13172
13173
13174
13175
13176
13177##########
13178# Figure out what C libraries are required to compile programs
13179# that use "fdatasync()" function.
13180#
mlcreech636a9952008-05-05 22:52:56 +000013181{ $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
13182$as_echo_n "checking for library containing fdatasync... " >&6; }
vapier7f19c022007-02-17 14:46:31 +000013183if test "${ac_cv_search_fdatasync+set}" = set; then
mlcreech636a9952008-05-05 22:52:56 +000013184 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000013185else
vapier7f19c022007-02-17 14:46:31 +000013186 ac_func_search_save_LIBS=$LIBS
13187cat >conftest.$ac_ext <<_ACEOF
13188/* confdefs.h. */
13189_ACEOF
13190cat confdefs.h >>conftest.$ac_ext
13191cat >>conftest.$ac_ext <<_ACEOF
13192/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000013193
mlcreech94984912008-03-04 19:03:08 +000013194/* Override any GCC internal prototype to avoid an error.
13195 Use char because int might match the return type of a GCC
13196 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000013197#ifdef __cplusplus
13198extern "C"
13199#endif
13200char fdatasync ();
13201int
13202main ()
13203{
mlcreech94984912008-03-04 19:03:08 +000013204return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000013205 ;
13206 return 0;
13207}
13208_ACEOF
mlcreech94984912008-03-04 19:03:08 +000013209for ac_lib in '' rt; do
13210 if test -z "$ac_lib"; then
13211 ac_res="none required"
13212 else
13213 ac_res=-l$ac_lib
drh613a0fe2007-11-23 17:31:17 +000013214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
mlcreech94984912008-03-04 19:03:08 +000013215 fi
13216 rm -f conftest.$ac_objext conftest$ac_exeext
13217if { (ac_try="$ac_link"
13218case "(($ac_try" in
13219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220 *) ac_try_echo=$ac_try;;
13221esac
mlcreech636a9952008-05-05 22:52:56 +000013222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13223$as_echo "$ac_try_echo") >&5
mlcreech94984912008-03-04 19:03:08 +000013224 (eval "$ac_link") 2>conftest.er1
drh613a0fe2007-11-23 17:31:17 +000013225 ac_status=$?
13226 grep -v '^ *+' conftest.er1 >conftest.err
13227 rm -f conftest.er1
13228 cat conftest.err >&5
mlcreech636a9952008-05-05 22:52:56 +000013229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000013230 (exit $ac_status); } && {
13231 test -z "$ac_c_werror_flag" ||
13232 test ! -s conftest.err
mlcreech636a9952008-05-05 22:52:56 +000013233 } && test -s conftest$ac_exeext && {
13234 test "$cross_compiling" = yes ||
13235 $as_test_x conftest$ac_exeext
13236 }; then
mlcreech94984912008-03-04 19:03:08 +000013237 ac_cv_search_fdatasync=$ac_res
vapier7f19c022007-02-17 14:46:31 +000013238else
mlcreech636a9952008-05-05 22:52:56 +000013239 $as_echo "$as_me: failed program was:" >&5
drh613a0fe2007-11-23 17:31:17 +000013240sed 's/^/| /' conftest.$ac_ext >&5
13241
mlcreech94984912008-03-04 19:03:08 +000013242
vapier7f19c022007-02-17 14:46:31 +000013243fi
mlcreech94984912008-03-04 19:03:08 +000013244
mlcreech636a9952008-05-05 22:52:56 +000013245rm -rf conftest.dSYM
mlcreech94984912008-03-04 19:03:08 +000013246rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13247 conftest$ac_exeext
13248 if test "${ac_cv_search_fdatasync+set}" = set; then
13249 break
drh613a0fe2007-11-23 17:31:17 +000013250fi
mlcreech94984912008-03-04 19:03:08 +000013251done
13252if test "${ac_cv_search_fdatasync+set}" = set; then
13253 :
13254else
13255 ac_cv_search_fdatasync=no
13256fi
13257rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000013258LIBS=$ac_func_search_save_LIBS
13259fi
mlcreech636a9952008-05-05 22:52:56 +000013260{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
13261$as_echo "$ac_cv_search_fdatasync" >&6; }
mlcreech94984912008-03-04 19:03:08 +000013262ac_res=$ac_cv_search_fdatasync
13263if test "$ac_res" != no; then
13264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000013265
vapier7f19c022007-02-17 14:46:31 +000013266fi
13267
a.rottmann84e63352003-03-24 09:42:16 +000013268
drh75897232000-05-29 14:26:00 +000013269#########
tpoindex9d9f76c2005-01-03 21:28:56 +000013270# check for debug enabled
mlcreech94984912008-03-04 19:03:08 +000013271# Check whether --enable-debug was given.
tpoindex9d9f76c2005-01-03 21:28:56 +000013272if test "${enable_debug+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000013273 enableval=$enable_debug; use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000013274else
13275 use_debug=no
mlcreech94984912008-03-04 19:03:08 +000013276fi
13277
tpoindex9d9f76c2005-01-03 21:28:56 +000013278if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000013279 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000013280else
13281 TARGET_DEBUG="-DNDEBUG"
13282fi
13283
13284
13285#########
mlcreech94984912008-03-04 19:03:08 +000013286# See whether we should use the amalgamation to build
13287# Check whether --enable-amalgamation was given.
13288if test "${enable_amalgamation+set}" = set; then
13289 enableval=$enable_amalgamation; use_amalgamation=$enableval
13290else
13291 use_amalgamation=yes
13292fi
13293
mlcreechf3868112008-03-11 18:03:30 +000013294if test "${use_amalgamation}" != "yes" ; then
mlcreech94984912008-03-04 19:03:08 +000013295 USE_AMALGAMATION=0
13296fi
13297
13298
13299#########
mlcreecha4edab02008-03-06 04:14:17 +000013300# See whether we should allow loadable extensions
13301# Check whether --enable-load-extension was given.
13302if test "${enable_load_extension+set}" = set; then
13303 enableval=$enable_load_extension; use_loadextension=$enableval
13304else
13305 use_loadextension=no
13306fi
13307
13308if test "${use_loadextension}" = "yes" ; then
13309 LOADEXTENSION_FLAGS=""
13310else
13311 LOADEXTENSION_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
13312fi
13313
13314
mlcreechaac7b932008-04-01 02:45:22 +000013315#########
13316# See whether we should allow loadable extensions
13317# Check whether --enable-gcov was given.
13318if test "${enable_gcov+set}" = set; then
13319 enableval=$enable_gcov; use_gcov=$enableval
13320else
13321 use_gcov=no
13322fi
13323
13324if test "${use_gcov}" = "yes" ; then
13325 USE_GCOV=1
13326else
13327 USE_GCOV=0
13328fi
13329
13330
drhaf6edf52005-10-04 18:38:49 +000013331
drh2dfbbca2000-07-28 14:32:48 +000013332#########
mlcreechb87057f2008-03-06 07:19:20 +000013333# Output the config header
mlcreech23797062008-03-20 02:25:35 +000013334ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000013335
13336
13337#########
drh75897232000-05-29 14:26:00 +000013338# Generate the output files.
13339#
mlcreechdf59c7c2008-03-06 07:51:15 +000013340
mlcreech94984912008-03-04 19:03:08 +000013341ac_config_files="$ac_config_files Makefile sqlite3.pc"
13342
drh71eb93e2001-09-28 01:34:43 +000013343cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000013344# This file is a shell script that caches the results of configure
13345# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000013346# scripts and configure runs, see configure's option --config-cache.
13347# It is not useful on other systems. If it contains results you don't
13348# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000013349#
drh71eb93e2001-09-28 01:34:43 +000013350# config.status only pays attention to the cache file if you give it
13351# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000013352#
a.rottmann84e63352003-03-24 09:42:16 +000013353# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000013354# loading this file, other *unset* `ac_cv_foo' will be assigned the
13355# following values.
13356
13357_ACEOF
13358
drh75897232000-05-29 14:26:00 +000013359# The following way of writing the cache mishandles newlines in values,
13360# but we know of no workaround that is simple, portable, and efficient.
mlcreech94984912008-03-04 19:03:08 +000013361# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000013362# Ultrix sh set writes to stderr and can't be redirected directly,
13363# and sets the high bit in the cache file unless we assign to the vars.
mlcreech94984912008-03-04 19:03:08 +000013364(
13365 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13366 eval ac_val=\$$ac_var
13367 case $ac_val in #(
13368 *${as_nl}*)
13369 case $ac_var in #(
mlcreech636a9952008-05-05 22:52:56 +000013370 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13371$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
mlcreech94984912008-03-04 19:03:08 +000013372 esac
13373 case $ac_var in #(
13374 _ | IFS | as_nl) ;; #(
mlcreech636a9952008-05-05 22:52:56 +000013375 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
mlcreech94984912008-03-04 19:03:08 +000013376 *) $as_unset $ac_var ;;
13377 esac ;;
13378 esac
13379 done
13380
drh71eb93e2001-09-28 01:34:43 +000013381 (set) 2>&1 |
mlcreech94984912008-03-04 19:03:08 +000013382 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13383 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +000013384 # `set' does not quote correctly, so add quotes (double-quote
13385 # substitution turns \\\\ into \\, and sed turns \\ into \).
13386 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000013387 "s/'/'\\\\''/g;
13388 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mlcreech94984912008-03-04 19:03:08 +000013389 ;; #(
drh71eb93e2001-09-28 01:34:43 +000013390 *)
13391 # `set' quotes correctly as required by POSIX, so do not add quotes.
mlcreech94984912008-03-04 19:03:08 +000013392 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000013393 ;;
mlcreech94984912008-03-04 19:03:08 +000013394 esac |
13395 sort
13396) |
drh71eb93e2001-09-28 01:34:43 +000013397 sed '
mlcreech94984912008-03-04 19:03:08 +000013398 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000013399 t clear
mlcreech94984912008-03-04 19:03:08 +000013400 :clear
drh71eb93e2001-09-28 01:34:43 +000013401 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13402 t end
mlcreech94984912008-03-04 19:03:08 +000013403 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13404 :end' >>confcache
13405if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13406 if test -w "$cache_file"; then
13407 test "x$cache_file" != "x/dev/null" &&
mlcreech636a9952008-05-05 22:52:56 +000013408 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13409$as_echo "$as_me: updating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +000013410 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +000013411 else
mlcreech636a9952008-05-05 22:52:56 +000013412 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13413$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000013414 fi
13415fi
13416rm -f confcache
13417
drh75897232000-05-29 14:26:00 +000013418test "x$prefix" = xNONE && prefix=$ac_default_prefix
13419# Let make expand exec_prefix.
13420test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13421
mlcreechb87057f2008-03-06 07:19:20 +000013422DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000013423
13424ac_libobjs=
13425ac_ltlibobjs=
13426for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13427 # 1. Remove the extension, and $U if already installed.
mlcreech94984912008-03-04 19:03:08 +000013428 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
mlcreech636a9952008-05-05 22:52:56 +000013429 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
mlcreech94984912008-03-04 19:03:08 +000013430 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13431 # will be set to the directory where LIBOBJS objects are built.
13432 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13433 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000013434done
13435LIBOBJS=$ac_libobjs
13436
13437LTLIBOBJS=$ac_ltlibobjs
13438
13439
13440
drh75897232000-05-29 14:26:00 +000013441: ${CONFIG_STATUS=./config.status}
mlcreech636a9952008-05-05 22:52:56 +000013442ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000013443ac_clean_files_save=$ac_clean_files
13444ac_clean_files="$ac_clean_files $CONFIG_STATUS"
mlcreech636a9952008-05-05 22:52:56 +000013445{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13446$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13447cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013448#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000013449# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000013450# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000013451# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000013452# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000013453
drh71eb93e2001-09-28 01:34:43 +000013454debug=false
a.rottmann84e63352003-03-24 09:42:16 +000013455ac_cs_recheck=false
13456ac_cs_silent=false
drh71eb93e2001-09-28 01:34:43 +000013457SHELL=\${CONFIG_SHELL-$SHELL}
drh71eb93e2001-09-28 01:34:43 +000013458_ACEOF
drh75897232000-05-29 14:26:00 +000013459
mlcreech636a9952008-05-05 22:52:56 +000013460cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000013461## --------------------- ##
13462## M4sh Initialization. ##
13463## --------------------- ##
13464
mlcreech94984912008-03-04 19:03:08 +000013465# Be more Bourne compatible
13466DUALCASE=1; export DUALCASE # for MKS sh
drh71eb93e2001-09-28 01:34:43 +000013467if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13468 emulate sh
13469 NULLCMD=:
mlcreech636a9952008-05-05 22:52:56 +000013470 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000013471 # is contrary to our usage. Disable this feature.
13472 alias -g '${1+"$@"}'='"$@"'
mlcreech94984912008-03-04 19:03:08 +000013473 setopt NO_GLOB_SUBST
drh613a0fe2007-11-23 17:31:17 +000013474else
mlcreech94984912008-03-04 19:03:08 +000013475 case `(set -o) 2>/dev/null` in
13476 *posix*) set -o posix ;;
13477esac
13478
a.rottmann84e63352003-03-24 09:42:16 +000013479fi
13480
13481
a.rottmann84e63352003-03-24 09:42:16 +000013482
13483
mlcreech94984912008-03-04 19:03:08 +000013484# PATH needs CR
a.rottmann84e63352003-03-24 09:42:16 +000013485# Avoid depending upon Character Ranges.
13486as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13487as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13488as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13489as_cr_digits='0123456789'
13490as_cr_alnum=$as_cr_Letters$as_cr_digits
13491
mlcreech636a9952008-05-05 22:52:56 +000013492as_nl='
13493'
13494export as_nl
13495# Printing a long string crashes Solaris 7 /usr/bin/printf.
13496as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13497as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13498as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13499if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13500 as_echo='printf %s\n'
13501 as_echo_n='printf %s'
13502else
13503 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13504 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13505 as_echo_n='/usr/ucb/echo -n'
13506 else
13507 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13508 as_echo_n_body='eval
13509 arg=$1;
13510 case $arg in
13511 *"$as_nl"*)
13512 expr "X$arg" : "X\\(.*\\)$as_nl";
13513 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13514 esac;
13515 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13516 '
13517 export as_echo_n_body
13518 as_echo_n='sh -c $as_echo_n_body as_echo'
13519 fi
13520 export as_echo_body
13521 as_echo='sh -c $as_echo_body as_echo'
13522fi
13523
a.rottmann84e63352003-03-24 09:42:16 +000013524# The user is always right.
13525if test "${PATH_SEPARATOR+set}" != set; then
mlcreech636a9952008-05-05 22:52:56 +000013526 PATH_SEPARATOR=:
13527 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13528 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13529 PATH_SEPARATOR=';'
13530 }
a.rottmann84e63352003-03-24 09:42:16 +000013531fi
13532
mlcreech94984912008-03-04 19:03:08 +000013533# Support unset when possible.
13534if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13535 as_unset=unset
13536else
13537 as_unset=false
13538fi
a.rottmann84e63352003-03-24 09:42:16 +000013539
mlcreech94984912008-03-04 19:03:08 +000013540
13541# IFS
13542# We need space, tab and new line, in precisely that order. Quoting is
13543# there to prevent editors from complaining about space-tab.
13544# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13545# splitting by setting IFS to empty value.)
mlcreech94984912008-03-04 19:03:08 +000013546IFS=" "" $as_nl"
13547
13548# Find who we are. Look in the path if we contain no directory separator.
13549case $0 in
13550 *[\\/]* ) as_myself=$0 ;;
13551 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann84e63352003-03-24 09:42:16 +000013552for as_dir in $PATH
13553do
13554 IFS=$as_save_IFS
13555 test -z "$as_dir" && as_dir=.
13556 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13557done
mlcreech94984912008-03-04 19:03:08 +000013558IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +000013559
mlcreech94984912008-03-04 19:03:08 +000013560 ;;
13561esac
13562# We did not find ourselves, most probably we were run as `sh COMMAND'
13563# in which case we are not to be found in the path.
13564if test "x$as_myself" = x; then
13565 as_myself=$0
13566fi
13567if test ! -f "$as_myself"; then
mlcreech636a9952008-05-05 22:52:56 +000013568 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
mlcreech94984912008-03-04 19:03:08 +000013569 { (exit 1); exit 1; }
13570fi
13571
13572# Work around bugs in pre-3.0 UWIN ksh.
13573for as_var in ENV MAIL MAILPATH
13574do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13575done
13576PS1='$ '
13577PS2='> '
13578PS4='+ '
13579
13580# NLS nuisances.
mlcreech636a9952008-05-05 22:52:56 +000013581LC_ALL=C
13582export LC_ALL
13583LANGUAGE=C
13584export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000013585
13586# Required to use basename.
13587if expr a : '\(a\)' >/dev/null 2>&1 &&
13588 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13589 as_expr=expr
13590else
13591 as_expr=false
13592fi
13593
13594if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13595 as_basename=basename
13596else
13597 as_basename=false
13598fi
13599
13600
13601# Name of the executable.
13602as_me=`$as_basename -- "$0" ||
13603$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13604 X"$0" : 'X\(//\)$' \| \
13605 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
mlcreech636a9952008-05-05 22:52:56 +000013606$as_echo X/"$0" |
mlcreech94984912008-03-04 19:03:08 +000013607 sed '/^.*\/\([^/][^/]*\)\/*$/{
13608 s//\1/
13609 q
13610 }
13611 /^X\/\(\/\/\)$/{
13612 s//\1/
13613 q
13614 }
13615 /^X\/\(\/\).*/{
13616 s//\1/
13617 q
13618 }
13619 s/.*/./; q'`
13620
13621# CDPATH.
13622$as_unset CDPATH
13623
13624
13625
a.rottmann84e63352003-03-24 09:42:16 +000013626 as_lineno_1=$LINENO
13627 as_lineno_2=$LINENO
a.rottmann84e63352003-03-24 09:42:16 +000013628 test "x$as_lineno_1" != "x$as_lineno_2" &&
mlcreech94984912008-03-04 19:03:08 +000013629 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
a.rottmann84e63352003-03-24 09:42:16 +000013630
13631 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13632 # uniformly replaced by the line number. The first 'sed' inserts a
mlcreech94984912008-03-04 19:03:08 +000013633 # line-number line after each line using $LINENO; the second 'sed'
13634 # does the real work. The second script uses 'N' to pair each
13635 # line-number line with the line containing $LINENO, and appends
13636 # trailing '-' during substitution so that $LINENO is not a special
13637 # case at line end.
a.rottmann84e63352003-03-24 09:42:16 +000013638 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
mlcreech94984912008-03-04 19:03:08 +000013639 # scripts with optimization help from Paolo Bonzini. Blame Lee
13640 # E. McMahon (1931-1989) for sed's syntax. :-)
13641 sed -n '
13642 p
13643 /[$]LINENO/=
13644 ' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +000013645 sed '
mlcreech94984912008-03-04 19:03:08 +000013646 s/[$]LINENO.*/&-/
13647 t lineno
13648 b
13649 :lineno
a.rottmann84e63352003-03-24 09:42:16 +000013650 N
mlcreech94984912008-03-04 19:03:08 +000013651 :loop
13652 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a.rottmann84e63352003-03-24 09:42:16 +000013653 t loop
mlcreech94984912008-03-04 19:03:08 +000013654 s/-\n.*//
a.rottmann84e63352003-03-24 09:42:16 +000013655 ' >$as_me.lineno &&
mlcreech94984912008-03-04 19:03:08 +000013656 chmod +x "$as_me.lineno" ||
mlcreech636a9952008-05-05 22:52:56 +000013657 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
a.rottmann84e63352003-03-24 09:42:16 +000013658 { (exit 1); exit 1; }; }
13659
13660 # Don't try to exec as it changes $[0], causing all sort of problems
13661 # (the dirname of $[0] is not the place where we might find the
mlcreech94984912008-03-04 19:03:08 +000013662 # original and so on. Autoconf is especially sensitive to this).
13663 . "./$as_me.lineno"
a.rottmann84e63352003-03-24 09:42:16 +000013664 # Exit status is that of the last command.
13665 exit
13666}
13667
13668
mlcreech94984912008-03-04 19:03:08 +000013669if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13670 as_dirname=dirname
13671else
13672 as_dirname=false
13673fi
13674
13675ECHO_C= ECHO_N= ECHO_T=
13676case `echo -n x` in
13677-n*)
13678 case `echo 'x\c'` in
13679 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13680 *) ECHO_C='\c';;
13681 esac;;
13682*)
13683 ECHO_N='-n';;
a.rottmann84e63352003-03-24 09:42:16 +000013684esac
mlcreech94984912008-03-04 19:03:08 +000013685if expr a : '\(a\)' >/dev/null 2>&1 &&
13686 test "X`expr 00001 : '.*\(...\)'`" = X001; then
drh71eb93e2001-09-28 01:34:43 +000013687 as_expr=expr
13688else
13689 as_expr=false
13690fi
13691
13692rm -f conf$$ conf$$.exe conf$$.file
mlcreech94984912008-03-04 19:03:08 +000013693if test -d conf$$.dir; then
13694 rm -f conf$$.dir/conf$$.file
13695else
13696 rm -f conf$$.dir
mlcreech636a9952008-05-05 22:52:56 +000013697 mkdir conf$$.dir 2>/dev/null
mlcreech94984912008-03-04 19:03:08 +000013698fi
mlcreech636a9952008-05-05 22:52:56 +000013699if (echo >conf$$.file) 2>/dev/null; then
13700 if ln -s conf$$.file conf$$ 2>/dev/null; then
13701 as_ln_s='ln -s'
13702 # ... but there are two gotchas:
13703 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13704 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13705 # In both cases, we have to default to `cp -p'.
13706 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13707 as_ln_s='cp -p'
13708 elif ln conf$$.file conf$$ 2>/dev/null; then
13709 as_ln_s=ln
13710 else
drh71eb93e2001-09-28 01:34:43 +000013711 as_ln_s='cp -p'
mlcreech636a9952008-05-05 22:52:56 +000013712 fi
drh71eb93e2001-09-28 01:34:43 +000013713else
13714 as_ln_s='cp -p'
13715fi
mlcreech94984912008-03-04 19:03:08 +000013716rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13717rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000013718
a.rottmann84e63352003-03-24 09:42:16 +000013719if mkdir -p . 2>/dev/null; then
13720 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +000013721else
a.rottmann964dbb12004-02-26 19:47:42 +000013722 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000013723 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000013724fi
13725
mlcreech94984912008-03-04 19:03:08 +000013726if test -x / >/dev/null 2>&1; then
13727 as_test_x='test -x'
13728else
13729 if ls -dL / >/dev/null 2>&1; then
13730 as_ls_L_option=L
13731 else
13732 as_ls_L_option=
13733 fi
13734 as_test_x='
13735 eval sh -c '\''
13736 if test -d "$1"; then
mlcreech636a9952008-05-05 22:52:56 +000013737 test -d "$1/.";
mlcreech94984912008-03-04 19:03:08 +000013738 else
13739 case $1 in
mlcreech636a9952008-05-05 22:52:56 +000013740 -*)set "./$1";;
mlcreech94984912008-03-04 19:03:08 +000013741 esac;
13742 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13743 ???[sx]*):;;*)false;;esac;fi
13744 '\'' sh
13745 '
13746fi
13747as_executable_p=$as_test_x
a.rottmann84e63352003-03-24 09:42:16 +000013748
13749# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000013750as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000013751
13752# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000013753as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000013754
drh71eb93e2001-09-28 01:34:43 +000013755
drh71eb93e2001-09-28 01:34:43 +000013756exec 6>&1
13757
mlcreech94984912008-03-04 19:03:08 +000013758# Save the log message, to keep $[0] and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000013759# report actual input values of CONFIG_FILES etc. instead of their
mlcreech94984912008-03-04 19:03:08 +000013760# values after options handling.
13761ac_log="
mlcreech636a9952008-05-05 22:52:56 +000013762This file was extended by sqlite $as_me 3.5.8, which was
13763generated by GNU Autoconf 2.62. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000013764
13765 CONFIG_FILES = $CONFIG_FILES
13766 CONFIG_HEADERS = $CONFIG_HEADERS
13767 CONFIG_LINKS = $CONFIG_LINKS
13768 CONFIG_COMMANDS = $CONFIG_COMMANDS
13769 $ $0 $@
13770
mlcreech94984912008-03-04 19:03:08 +000013771on `(hostname || uname -n) 2>/dev/null | sed 1q`
13772"
13773
drh71eb93e2001-09-28 01:34:43 +000013774_ACEOF
13775
mlcreech636a9952008-05-05 22:52:56 +000013776cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013777# Files that config.status was made for.
mlcreech94984912008-03-04 19:03:08 +000013778config_files="$ac_config_files"
mlcreechb87057f2008-03-06 07:19:20 +000013779config_headers="$ac_config_headers"
mlcreech636a9952008-05-05 22:52:56 +000013780config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000013781
mlcreech94984912008-03-04 19:03:08 +000013782_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013783
mlcreech636a9952008-05-05 22:52:56 +000013784cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013785ac_cs_usage="\
13786\`$as_me' instantiates files from templates according to the
13787current configuration.
13788
13789Usage: $0 [OPTIONS] [FILE]...
13790
13791 -h, --help print this help, then exit
mlcreech94984912008-03-04 19:03:08 +000013792 -V, --version print version number and configuration settings, then exit
a.rottmann84e63352003-03-24 09:42:16 +000013793 -q, --quiet do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000013794 -d, --debug don't remove temporary files
13795 --recheck update $as_me by reconfiguring in the same conditions
13796 --file=FILE[:TEMPLATE]
mlcreech636a9952008-05-05 22:52:56 +000013797 instantiate the configuration file FILE
mlcreechb87057f2008-03-06 07:19:20 +000013798 --header=FILE[:TEMPLATE]
mlcreech636a9952008-05-05 22:52:56 +000013799 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000013800
13801Configuration files:
13802$config_files
13803
mlcreechb87057f2008-03-06 07:19:20 +000013804Configuration headers:
13805$config_headers
13806
mlcreech636a9952008-05-05 22:52:56 +000013807Configuration commands:
13808$config_commands
13809
drh71eb93e2001-09-28 01:34:43 +000013810Report bugs to <bug-autoconf@gnu.org>."
drh613a0fe2007-11-23 17:31:17 +000013811
mlcreech94984912008-03-04 19:03:08 +000013812_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000013813cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013814ac_cs_version="\\
mlcreech636a9952008-05-05 22:52:56 +000013815sqlite config.status 3.5.8
13816configured by $0, generated by GNU Autoconf 2.62,
13817 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
drh75897232000-05-29 14:26:00 +000013818
mlcreech636a9952008-05-05 22:52:56 +000013819Copyright (C) 2008 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000013820This config.status script is free software; the Free Software Foundation
13821gives unlimited permission to copy, distribute and modify it."
mlcreech94984912008-03-04 19:03:08 +000013822
13823ac_pwd='$ac_pwd'
13824srcdir='$srcdir'
13825INSTALL='$INSTALL'
mlcreech636a9952008-05-05 22:52:56 +000013826AWK='$AWK'
13827test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000013828_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013829
mlcreech636a9952008-05-05 22:52:56 +000013830cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13831# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000013832ac_need_defaults=:
13833while test $# != 0
13834do
13835 case $1 in
13836 --*=*)
mlcreech94984912008-03-04 19:03:08 +000013837 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13838 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000013839 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000013840 ;;
mlcreech94984912008-03-04 19:03:08 +000013841 *)
a.rottmann84e63352003-03-24 09:42:16 +000013842 ac_option=$1
13843 ac_optarg=$2
13844 ac_shift=shift
13845 ;;
drh75897232000-05-29 14:26:00 +000013846 esac
13847
a.rottmann84e63352003-03-24 09:42:16 +000013848 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000013849 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000013850 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000013851 ac_cs_recheck=: ;;
mlcreech94984912008-03-04 19:03:08 +000013852 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
mlcreech636a9952008-05-05 22:52:56 +000013853 $as_echo "$ac_cs_version"; exit ;;
mlcreech94984912008-03-04 19:03:08 +000013854 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000013855 debug=: ;;
13856 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000013857 $ac_shift
mlcreech636a9952008-05-05 22:52:56 +000013858 case $ac_optarg in
13859 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13860 esac
13861 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000013862 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000013863 --header | --heade | --head | --hea )
13864 $ac_shift
mlcreech636a9952008-05-05 22:52:56 +000013865 case $ac_optarg in
13866 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13867 esac
13868 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000013869 ac_need_defaults=false;;
13870 --he | --h)
13871 # Conflict between --help and --header
mlcreech636a9952008-05-05 22:52:56 +000013872 { $as_echo "$as_me: error: ambiguous option: $1
mlcreechb87057f2008-03-06 07:19:20 +000013873Try \`$0 --help' for more information." >&2
13874 { (exit 1); exit 1; }; };;
13875 --help | --hel | -h )
mlcreech636a9952008-05-05 22:52:56 +000013876 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000013877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13878 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13879 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000013880
drh71eb93e2001-09-28 01:34:43 +000013881 # This is an error.
mlcreech636a9952008-05-05 22:52:56 +000013882 -*) { $as_echo "$as_me: error: unrecognized option: $1
mlcreech94984912008-03-04 19:03:08 +000013883Try \`$0 --help' for more information." >&2
drh71eb93e2001-09-28 01:34:43 +000013884 { (exit 1); exit 1; }; } ;;
13885
mlcreech94984912008-03-04 19:03:08 +000013886 *) ac_config_targets="$ac_config_targets $1"
13887 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000013888
13889 esac
13890 shift
13891done
13892
a.rottmann84e63352003-03-24 09:42:16 +000013893ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000013894
a.rottmann84e63352003-03-24 09:42:16 +000013895if $ac_cs_silent; then
13896 exec 6>/dev/null
13897 ac_configure_extra_args="$ac_configure_extra_args --silent"
13898fi
drh71eb93e2001-09-28 01:34:43 +000013899
13900_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000013901cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000013902if \$ac_cs_recheck; then
mlcreech636a9952008-05-05 22:52:56 +000013903 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13904 shift
13905 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13906 CONFIG_SHELL='$SHELL'
mlcreech94984912008-03-04 19:03:08 +000013907 export CONFIG_SHELL
mlcreech636a9952008-05-05 22:52:56 +000013908 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000013909fi
drh71eb93e2001-09-28 01:34:43 +000013910
a.rottmann84e63352003-03-24 09:42:16 +000013911_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000013912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000013913exec 5>>config.log
13914{
13915 echo
13916 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13917## Running $as_me. ##
13918_ASBOX
mlcreech636a9952008-05-05 22:52:56 +000013919 $as_echo "$ac_log"
mlcreech94984912008-03-04 19:03:08 +000013920} >&5
a.rottmann84e63352003-03-24 09:42:16 +000013921
mlcreech94984912008-03-04 19:03:08 +000013922_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000013923cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13924#
13925# INIT-COMMANDS
13926#
13927
13928
13929# The HP-UX ksh and POSIX shell print the target directory to stdout
13930# if CDPATH is set.
13931(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13932
13933sed_quote_subst='$sed_quote_subst'
13934double_quote_subst='$double_quote_subst'
13935delay_variable_subst='$delay_variable_subst'
13936macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13937macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13938enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13939enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13940pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13941enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13942host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13943host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13944host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13945build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13946build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13947build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13948SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13949Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13950GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13951EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13952FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13953LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13954NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13955LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13956max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13957ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13958exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13959lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13960lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13961lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13962reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13963reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13964deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13965file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13966AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13967AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13968STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13969RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13970old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13971old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13972old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13973CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13974CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13975compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13976GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13977lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13978lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13979lt_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"`'
13980lt_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"`'
13981objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13982SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13983ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13984MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13985lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13986lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13987lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13988lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13989lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13990need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13991DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13992NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13993LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13994OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13995OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13996libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13997shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13998extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13999archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14000enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14001export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14002whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14003compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14004old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14005old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14006archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14007archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14008module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14009module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14010with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14011allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14012no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14013hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14014hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14015hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14016hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14017hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14018hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14019hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14020hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14021inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14022link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14023fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14024always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14025export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14026exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14027include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14028prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14029file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14030variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14031need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14032need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14033version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14034runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14035shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14036shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14037libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14038library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14039soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14040postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14041postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14042finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14043finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14044hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14045sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14046sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14047hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14048enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14049enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14050enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14051old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14052striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14053
14054LTCC='$LTCC'
14055LTCFLAGS='$LTCFLAGS'
14056compiler='$compiler_DEFAULT'
14057
14058# Quote evaled strings.
14059for var in SED \
14060GREP \
14061EGREP \
14062FGREP \
14063LD \
14064NM \
14065LN_S \
14066lt_SP2NL \
14067lt_NL2SP \
14068reload_flag \
14069deplibs_check_method \
14070file_magic_cmd \
14071AR \
14072AR_FLAGS \
14073STRIP \
14074RANLIB \
14075CC \
14076CFLAGS \
14077compiler \
14078lt_cv_sys_global_symbol_pipe \
14079lt_cv_sys_global_symbol_to_cdecl \
14080lt_cv_sys_global_symbol_to_c_name_address \
14081lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14082SHELL \
14083ECHO \
14084lt_prog_compiler_no_builtin_flag \
14085lt_prog_compiler_wl \
14086lt_prog_compiler_pic \
14087lt_prog_compiler_static \
14088lt_cv_prog_compiler_c_o \
14089need_locks \
14090DSYMUTIL \
14091NMEDIT \
14092LIPO \
14093OTOOL \
14094OTOOL64 \
14095shrext_cmds \
14096export_dynamic_flag_spec \
14097whole_archive_flag_spec \
14098compiler_needs_object \
14099with_gnu_ld \
14100allow_undefined_flag \
14101no_undefined_flag \
14102hardcode_libdir_flag_spec \
14103hardcode_libdir_flag_spec_ld \
14104hardcode_libdir_separator \
14105fix_srcfile_path \
14106exclude_expsyms \
14107include_expsyms \
14108file_list_spec \
14109variables_saved_for_relink \
14110libname_spec \
14111library_names_spec \
14112soname_spec \
14113finish_eval \
14114old_striplib \
14115striplib; do
14116 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14117 *[\\\\\\\`\\"\\\$]*)
14118 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14119 ;;
14120 *)
14121 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14122 ;;
14123 esac
14124done
14125
14126# Double-quote double-evaled strings.
14127for var in reload_cmds \
14128old_postinstall_cmds \
14129old_postuninstall_cmds \
14130old_archive_cmds \
14131extract_expsyms_cmds \
14132old_archive_from_new_cmds \
14133old_archive_from_expsyms_cmds \
14134archive_cmds \
14135archive_expsym_cmds \
14136module_cmds \
14137module_expsym_cmds \
14138export_symbols_cmds \
14139prelink_cmds \
14140postinstall_cmds \
14141postuninstall_cmds \
14142finish_cmds \
14143sys_lib_search_path_spec \
14144sys_lib_dlsearch_path_spec; do
14145 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14146 *[\\\\\\\`\\"\\\$]*)
14147 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14148 ;;
14149 *)
14150 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14151 ;;
14152 esac
14153done
14154
14155# Fix-up fallback echo if it was mangled by the above quoting rules.
14156case \$lt_ECHO in
14157*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14158 ;;
14159esac
14160
14161ac_aux_dir='$ac_aux_dir'
14162xsi_shell='$xsi_shell'
14163lt_shell_append='$lt_shell_append'
14164
14165# See if we are running on zsh, and set the options which allow our
14166# commands through without removal of \ escapes INIT.
14167if test -n "\${ZSH_VERSION+set}" ; then
14168 setopt NO_GLOB_SUBST
14169fi
14170
14171
14172 PACKAGE='$PACKAGE'
14173 VERSION='$VERSION'
14174 TIMESTAMP='$TIMESTAMP'
14175 RM='$RM'
14176 ofile='$ofile'
14177
14178
14179
14180
mlcreech94984912008-03-04 19:03:08 +000014181_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000014182
mlcreech636a9952008-05-05 22:52:56 +000014183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000014184
14185# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000014186for ac_config_target in $ac_config_targets
14187do
mlcreech94984912008-03-04 19:03:08 +000014188 case $ac_config_target in
mlcreech636a9952008-05-05 22:52:56 +000014189 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
mlcreech23797062008-03-20 02:25:35 +000014190 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
mlcreech94984912008-03-04 19:03:08 +000014191 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14192 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
14193
mlcreech636a9952008-05-05 22:52:56 +000014194 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14195$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
drh71eb93e2001-09-28 01:34:43 +000014196 { (exit 1); exit 1; }; };;
14197 esac
14198done
14199
mlcreech94984912008-03-04 19:03:08 +000014200
drh71eb93e2001-09-28 01:34:43 +000014201# If the user did not use the arguments to specify the items to instantiate,
14202# then the envvar interface is used. Set only those that are not.
14203# We use the long form for the default assignment because of an extremely
14204# bizarre bug on SunOS 4.1.3.
14205if $ac_need_defaults; then
14206 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000014207 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000014208 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000014209fi
14210
a.rottmann84e63352003-03-24 09:42:16 +000014211# Have a temporary directory for convenience. Make it in the build tree
mlcreech94984912008-03-04 19:03:08 +000014212# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000014213# creating and moving files from /tmp can sometimes cause problems.
mlcreech94984912008-03-04 19:03:08 +000014214# Hook for its removal unless debugging.
14215# Note that there is a small window in which the directory will not be cleaned:
14216# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000014217$debug ||
14218{
mlcreech94984912008-03-04 19:03:08 +000014219 tmp=
14220 trap 'exit_status=$?
14221 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14222' 0
drh71eb93e2001-09-28 01:34:43 +000014223 trap '{ (exit 1); exit 1; }' 1 2 13 15
14224}
drh71eb93e2001-09-28 01:34:43 +000014225# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000014226
drh71eb93e2001-09-28 01:34:43 +000014227{
mlcreech94984912008-03-04 19:03:08 +000014228 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drh71eb93e2001-09-28 01:34:43 +000014229 test -n "$tmp" && test -d "$tmp"
14230} ||
14231{
mlcreech94984912008-03-04 19:03:08 +000014232 tmp=./conf$$-$RANDOM
14233 (umask 077 && mkdir "$tmp")
drh71eb93e2001-09-28 01:34:43 +000014234} ||
14235{
mlcreech636a9952008-05-05 22:52:56 +000014236 $as_echo "$as_me: cannot create a temporary directory in ." >&2
drh71eb93e2001-09-28 01:34:43 +000014237 { (exit 1); exit 1; }
14238}
14239
mlcreech636a9952008-05-05 22:52:56 +000014240# Set up the scripts for CONFIG_FILES section.
14241# No need to generate them if there are no CONFIG_FILES.
14242# This happens for instance with `./config.status config.h'.
mlcreech94984912008-03-04 19:03:08 +000014243if test -n "$CONFIG_FILES"; then
drh71eb93e2001-09-28 01:34:43 +000014244
mlcreech636a9952008-05-05 22:52:56 +000014245
14246ac_cr=' '
14247ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14248if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14249 ac_cs_awk_cr='\\r'
14250else
14251 ac_cs_awk_cr=$ac_cr
14252fi
14253
14254echo 'BEGIN {' >"$tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000014255_ACEOF
drh71eb93e2001-09-28 01:34:43 +000014256
mlcreech94984912008-03-04 19:03:08 +000014257
mlcreech636a9952008-05-05 22:52:56 +000014258{
14259 echo "cat >conf$$subs.awk <<_ACEOF" &&
14260 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14261 echo "_ACEOF"
14262} >conf$$subs.sh ||
14263 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14264$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14265 { (exit 1); exit 1; }; }
14266ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
mlcreech94984912008-03-04 19:03:08 +000014267ac_delim='%!_!# '
14268for ac_last_try in false false false false false :; do
mlcreech636a9952008-05-05 22:52:56 +000014269 . ./conf$$subs.sh ||
14270 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14271$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14272 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +000014273
mlcreech636a9952008-05-05 22:52:56 +000014274 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
mlcreech94984912008-03-04 19:03:08 +000014275 break
14276 elif $ac_last_try; then
mlcreech636a9952008-05-05 22:52:56 +000014277 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14278$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
mlcreech94984912008-03-04 19:03:08 +000014279 { (exit 1); exit 1; }; }
14280 else
14281 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000014282 fi
mlcreech94984912008-03-04 19:03:08 +000014283done
mlcreech636a9952008-05-05 22:52:56 +000014284rm -f conf$$subs.sh
mlcreech94984912008-03-04 19:03:08 +000014285
mlcreech636a9952008-05-05 22:52:56 +000014286cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14287cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
mlcreech94984912008-03-04 19:03:08 +000014288_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000014289sed -n '
14290h
14291s/^/S["/; s/!.*/"]=/
14292p
14293g
14294s/^[^!]*!//
14295:repl
14296t repl
14297s/'"$ac_delim"'$//
14298t delim
14299:nl
14300h
14301s/\(.\{148\}\).*/\1/
14302t more1
14303s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14304p
14305n
14306b repl
14307:more1
14308s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14309p
14310g
14311s/.\{148\}//
14312t nl
14313:delim
14314h
14315s/\(.\{148\}\).*/\1/
14316t more2
14317s/["\\]/\\&/g; s/^/"/; s/$/"/
14318p
14319b
14320:more2
14321s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14322p
14323g
14324s/.\{148\}//
14325t delim
14326' <conf$$subs.awk | sed '
14327/^[^""]/{
14328 N
14329 s/\n//
14330}
14331' >>$CONFIG_STATUS || ac_write_fail=1
14332rm -f conf$$subs.awk
14333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14334_ACAWK
14335cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14336 for (key in S) S_is_set[key] = 1
14337 FS = ""
14338
14339}
14340{
14341 line = $ 0
14342 nfields = split(line, field, "@")
14343 substed = 0
14344 len = length(field[1])
14345 for (i = 2; i < nfields; i++) {
14346 key = field[i]
14347 keylen = length(key)
14348 if (S_is_set[key]) {
14349 value = S[key]
14350 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14351 len += length(value) + length(field[++i])
14352 substed = 1
14353 } else
14354 len += 1 + keylen
14355 }
14356
14357 print line
14358}
14359
14360_ACAWK
mlcreech94984912008-03-04 19:03:08 +000014361_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000014362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14363if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14364 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14365else
14366 cat
14367fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14368 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14369$as_echo "$as_me: error: could not setup config files machinery" >&2;}
mlcreech94984912008-03-04 19:03:08 +000014370 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +000014371_ACEOF
mlcreech94984912008-03-04 19:03:08 +000014372
14373# VPATH may cause trouble with some makes, so we remove $(srcdir),
14374# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14375# trailing colons and then remove the whole line if VPATH becomes empty
14376# (actually we leave an empty line to preserve line numbers).
14377if test "x$srcdir" = x.; then
14378 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14379s/:*\$(srcdir):*/:/
14380s/:*\${srcdir}:*/:/
14381s/:*@srcdir@:*/:/
14382s/^\([^=]*=[ ]*\):*/\1/
14383s/:*$//
14384s/^[^=]*=[ ]*$//
14385}'
14386fi
14387
mlcreech636a9952008-05-05 22:52:56 +000014388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000014389fi # test -n "$CONFIG_FILES"
14390
mlcreech636a9952008-05-05 22:52:56 +000014391# Set up the scripts for CONFIG_HEADERS section.
14392# No need to generate them if there are no CONFIG_HEADERS.
14393# This happens for instance with `./config.status Makefile'.
14394if test -n "$CONFIG_HEADERS"; then
14395cat >"$tmp/defines.awk" <<\_ACAWK ||
14396BEGIN {
14397_ACEOF
mlcreech94984912008-03-04 19:03:08 +000014398
mlcreech636a9952008-05-05 22:52:56 +000014399# Transform confdefs.h into an awk script `defines.awk', embedded as
14400# here-document in config.status, that substitutes the proper values into
14401# config.h.in to produce config.h.
14402
14403# Create a delimiter string that does not exist in confdefs.h, to ease
14404# handling of long lines.
14405ac_delim='%!_!# '
14406for ac_last_try in false false :; do
14407 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14408 if test -z "$ac_t"; then
14409 break
14410 elif $ac_last_try; then
14411 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14412$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14413 { (exit 1); exit 1; }; }
14414 else
14415 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14416 fi
14417done
14418
14419# For the awk script, D is an array of macro values keyed by name,
14420# likewise P contains macro parameters if any. Preserve backslash
14421# newline sequences.
14422
14423ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14424sed -n '
14425s/.\{148\}/&'"$ac_delim"'/g
14426t rset
14427:rset
14428s/^[ ]*#[ ]*define[ ][ ]*/ /
14429t def
14430d
14431:def
14432s/\\$//
14433t bsnl
14434s/["\\]/\\&/g
14435s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14436D["\1"]=" \3"/p
14437s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14438d
14439:bsnl
14440s/["\\]/\\&/g
14441s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14442D["\1"]=" \3\\\\\\n"\\/p
14443t cont
14444s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14445t cont
14446d
14447:cont
14448n
14449s/.\{148\}/&'"$ac_delim"'/g
14450t clear
14451:clear
14452s/\\$//
14453t bsnlc
14454s/["\\]/\\&/g; s/^/"/; s/$/"/p
14455d
14456:bsnlc
14457s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14458b cont
14459' <confdefs.h | sed '
14460s/'"$ac_delim"'/"\\\
14461"/g' >>$CONFIG_STATUS || ac_write_fail=1
14462
14463cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14464 for (key in D) D_is_set[key] = 1
14465 FS = ""
14466}
14467/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14468 line = \$ 0
14469 split(line, arg, " ")
14470 if (arg[1] == "#") {
14471 defundef = arg[2]
14472 mac1 = arg[3]
14473 } else {
14474 defundef = substr(arg[1], 2)
14475 mac1 = arg[2]
14476 }
14477 split(mac1, mac2, "(") #)
14478 macro = mac2[1]
14479 if (D_is_set[macro]) {
14480 # Preserve the white space surrounding the "#".
14481 prefix = substr(line, 1, index(line, defundef) - 1)
14482 print prefix "define", macro P[macro] D[macro]
14483 next
14484 } else {
14485 # Replace #undef with comments. This is necessary, for example,
14486 # in the case of _POSIX_SOURCE, which is predefined and required
14487 # on some systems where configure will not decide to define it.
14488 if (defundef == "undef") {
14489 print "/*", line, "*/"
14490 next
14491 }
14492 }
14493}
14494{ print }
14495_ACAWK
14496_ACEOF
14497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14498 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14499$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14500 { (exit 1); exit 1; }; }
14501fi # test -n "$CONFIG_HEADERS"
14502
14503
14504eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14505shift
14506for ac_tag
mlcreech94984912008-03-04 19:03:08 +000014507do
14508 case $ac_tag in
14509 :[FHLC]) ac_mode=$ac_tag; continue;;
14510 esac
14511 case $ac_mode$ac_tag in
14512 :[FHL]*:*);;
mlcreech636a9952008-05-05 22:52:56 +000014513 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14514$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
mlcreech94984912008-03-04 19:03:08 +000014515 { (exit 1); exit 1; }; };;
14516 :[FH]-) ac_tag=-:-;;
14517 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14518 esac
14519 ac_save_IFS=$IFS
14520 IFS=:
14521 set x $ac_tag
14522 IFS=$ac_save_IFS
14523 shift
14524 ac_file=$1
14525 shift
14526
14527 case $ac_mode in
14528 :L) ac_source=$1;;
14529 :[FH])
14530 ac_file_inputs=
14531 for ac_f
14532 do
14533 case $ac_f in
14534 -) ac_f="$tmp/stdin";;
14535 *) # Look for the file first in the build tree, then in the source tree
14536 # (if the path is not absolute). The absolute path cannot be DOS-style,
14537 # because $ac_f cannot contain `:'.
14538 test -f "$ac_f" ||
14539 case $ac_f in
14540 [\\/$]*) false;;
14541 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14542 esac ||
mlcreech636a9952008-05-05 22:52:56 +000014543 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14544$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
mlcreech94984912008-03-04 19:03:08 +000014545 { (exit 1); exit 1; }; };;
14546 esac
mlcreech636a9952008-05-05 22:52:56 +000014547 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14548 ac_file_inputs="$ac_file_inputs '$ac_f'"
mlcreech94984912008-03-04 19:03:08 +000014549 done
14550
14551 # Let's still pretend it is `configure' which instantiates (i.e., don't
14552 # use $as_me), people would be surprised to read:
14553 # /* config.h. Generated by config.status. */
mlcreech636a9952008-05-05 22:52:56 +000014554 configure_input='Generated from '`
14555 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14556 `' by configure.'
mlcreech94984912008-03-04 19:03:08 +000014557 if test x"$ac_file" != x-; then
14558 configure_input="$ac_file. $configure_input"
mlcreech636a9952008-05-05 22:52:56 +000014559 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14560$as_echo "$as_me: creating $ac_file" >&6;}
mlcreech94984912008-03-04 19:03:08 +000014561 fi
mlcreech636a9952008-05-05 22:52:56 +000014562 # Neutralize special characters interpreted by sed in replacement strings.
14563 case $configure_input in #(
14564 *\&* | *\|* | *\\* )
14565 ac_sed_conf_input=`$as_echo "$configure_input" |
14566 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14567 *) ac_sed_conf_input=$configure_input;;
14568 esac
mlcreech94984912008-03-04 19:03:08 +000014569
14570 case $ac_tag in
mlcreech636a9952008-05-05 22:52:56 +000014571 *:-:* | *:-) cat >"$tmp/stdin" \
14572 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14573$as_echo "$as_me: error: could not create $ac_file" >&2;}
14574 { (exit 1); exit 1; }; } ;;
mlcreech94984912008-03-04 19:03:08 +000014575 esac
14576 ;;
drh71eb93e2001-09-28 01:34:43 +000014577 esac
14578
mlcreech94984912008-03-04 19:03:08 +000014579 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000014580$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000014581 X"$ac_file" : 'X\(//\)[^/]' \| \
14582 X"$ac_file" : 'X\(//\)$' \| \
mlcreech94984912008-03-04 19:03:08 +000014583 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
mlcreech636a9952008-05-05 22:52:56 +000014584$as_echo X"$ac_file" |
mlcreech94984912008-03-04 19:03:08 +000014585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14586 s//\1/
14587 q
14588 }
14589 /^X\(\/\/\)[^/].*/{
14590 s//\1/
14591 q
14592 }
14593 /^X\(\/\/\)$/{
14594 s//\1/
14595 q
14596 }
14597 /^X\(\/\).*/{
14598 s//\1/
14599 q
14600 }
14601 s/.*/./; q'`
14602 { as_dir="$ac_dir"
14603 case $as_dir in #(
14604 -*) as_dir=./$as_dir;;
14605 esac
14606 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
a.rottmann84e63352003-03-24 09:42:16 +000014607 as_dirs=
mlcreech94984912008-03-04 19:03:08 +000014608 while :; do
14609 case $as_dir in #(
mlcreech636a9952008-05-05 22:52:56 +000014610 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
mlcreech94984912008-03-04 19:03:08 +000014611 *) as_qdir=$as_dir;;
14612 esac
14613 as_dirs="'$as_qdir' $as_dirs"
14614 as_dir=`$as_dirname -- "$as_dir" ||
a.rottmann84e63352003-03-24 09:42:16 +000014615$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000014616 X"$as_dir" : 'X\(//\)[^/]' \| \
14617 X"$as_dir" : 'X\(//\)$' \| \
mlcreech94984912008-03-04 19:03:08 +000014618 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
mlcreech636a9952008-05-05 22:52:56 +000014619$as_echo X"$as_dir" |
mlcreech94984912008-03-04 19:03:08 +000014620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14621 s//\1/
14622 q
14623 }
14624 /^X\(\/\/\)[^/].*/{
14625 s//\1/
14626 q
14627 }
14628 /^X\(\/\/\)$/{
14629 s//\1/
14630 q
14631 }
14632 /^X\(\/\).*/{
14633 s//\1/
14634 q
14635 }
14636 s/.*/./; q'`
14637 test -d "$as_dir" && break
a.rottmann84e63352003-03-24 09:42:16 +000014638 done
mlcreech94984912008-03-04 19:03:08 +000014639 test -z "$as_dirs" || eval "mkdir $as_dirs"
mlcreech636a9952008-05-05 22:52:56 +000014640 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14641$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000014642 { (exit 1); exit 1; }; }; }
a.rottmann84e63352003-03-24 09:42:16 +000014643 ac_builddir=.
14644
mlcreech94984912008-03-04 19:03:08 +000014645case "$ac_dir" in
14646.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14647*)
mlcreech636a9952008-05-05 22:52:56 +000014648 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
mlcreech94984912008-03-04 19:03:08 +000014649 # A ".." for each directory in $ac_dir_suffix.
mlcreech636a9952008-05-05 22:52:56 +000014650 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
mlcreech94984912008-03-04 19:03:08 +000014651 case $ac_top_builddir_sub in
14652 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14653 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14654 esac ;;
14655esac
14656ac_abs_top_builddir=$ac_pwd
14657ac_abs_builddir=$ac_pwd$ac_dir_suffix
14658# for backward compatibility:
14659ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000014660
14661case $srcdir in
mlcreech94984912008-03-04 19:03:08 +000014662 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000014663 ac_srcdir=.
mlcreech94984912008-03-04 19:03:08 +000014664 ac_top_srcdir=$ac_top_builddir_sub
14665 ac_abs_top_srcdir=$ac_pwd ;;
14666 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000014667 ac_srcdir=$srcdir$ac_dir_suffix;
mlcreech94984912008-03-04 19:03:08 +000014668 ac_top_srcdir=$srcdir
14669 ac_abs_top_srcdir=$srcdir ;;
14670 *) # Relative name.
14671 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14672 ac_top_srcdir=$ac_top_build_prefix$srcdir
14673 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000014674esac
mlcreech94984912008-03-04 19:03:08 +000014675ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000014676
a.rottmann84e63352003-03-24 09:42:16 +000014677
mlcreech94984912008-03-04 19:03:08 +000014678 case $ac_mode in
14679 :F)
14680 #
14681 # CONFIG_FILE
14682 #
drh75897232000-05-29 14:26:00 +000014683
drh71eb93e2001-09-28 01:34:43 +000014684 case $INSTALL in
14685 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
mlcreech94984912008-03-04 19:03:08 +000014686 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000014687 esac
vapier7f19c022007-02-17 14:46:31 +000014688_ACEOF
mlcreech94984912008-03-04 19:03:08 +000014689
mlcreech636a9952008-05-05 22:52:56 +000014690cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000014691# If the template does not know about datarootdir, expand it.
14692# FIXME: This hack should be removed a few years after 2.60.
14693ac_datarootdir_hack=; ac_datarootdir_seen=
14694
mlcreech636a9952008-05-05 22:52:56 +000014695ac_sed_dataroot='
14696/datarootdir/ {
mlcreech94984912008-03-04 19:03:08 +000014697 p
14698 q
14699}
14700/@datadir@/p
14701/@docdir@/p
14702/@infodir@/p
14703/@localedir@/p
14704/@mandir@/p
mlcreech636a9952008-05-05 22:52:56 +000014705'
14706case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
mlcreech94984912008-03-04 19:03:08 +000014707*datarootdir*) ac_datarootdir_seen=yes;;
14708*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
mlcreech636a9952008-05-05 22:52:56 +000014709 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14710$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
mlcreech94984912008-03-04 19:03:08 +000014711_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000014712cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000014713 ac_datarootdir_hack='
14714 s&@datadir@&$datadir&g
14715 s&@docdir@&$docdir&g
14716 s&@infodir@&$infodir&g
14717 s&@localedir@&$localedir&g
14718 s&@mandir@&$mandir&g
14719 s&\\\${datarootdir}&$datarootdir&g' ;;
14720esac
14721_ACEOF
14722
14723# Neutralize VPATH when `$srcdir' = `.'.
14724# Shell code in configure.ac might set extrasub.
14725# FIXME: do we really want to maintain this feature?
mlcreech636a9952008-05-05 22:52:56 +000014726cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14727ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000014728$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000014729_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000014730cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000014731:t
14732/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
mlcreech636a9952008-05-05 22:52:56 +000014733s|@configure_input@|$ac_sed_conf_input|;t t
mlcreech94984912008-03-04 19:03:08 +000014734s&@top_builddir@&$ac_top_builddir_sub&;t t
mlcreech636a9952008-05-05 22:52:56 +000014735s&@top_build_prefix@&$ac_top_build_prefix&;t t
mlcreech94984912008-03-04 19:03:08 +000014736s&@srcdir@&$ac_srcdir&;t t
14737s&@abs_srcdir@&$ac_abs_srcdir&;t t
14738s&@top_srcdir@&$ac_top_srcdir&;t t
14739s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14740s&@builddir@&$ac_builddir&;t t
14741s&@abs_builddir@&$ac_abs_builddir&;t t
14742s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14743s&@INSTALL@&$ac_INSTALL&;t t
14744$ac_datarootdir_hack
mlcreech636a9952008-05-05 22:52:56 +000014745"
14746eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14747 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14748$as_echo "$as_me: error: could not create $ac_file" >&2;}
14749 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +000014750
mlcreech94984912008-03-04 19:03:08 +000014751test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14752 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14753 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
mlcreech636a9952008-05-05 22:52:56 +000014754 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
mlcreech94984912008-03-04 19:03:08 +000014755which seems to be undefined. Please make sure it is defined." >&5
mlcreech636a9952008-05-05 22:52:56 +000014756$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
mlcreech94984912008-03-04 19:03:08 +000014757which seems to be undefined. Please make sure it is defined." >&2;}
drh71eb93e2001-09-28 01:34:43 +000014758
mlcreech94984912008-03-04 19:03:08 +000014759 rm -f "$tmp/stdin"
14760 case $ac_file in
mlcreech636a9952008-05-05 22:52:56 +000014761 -) cat "$tmp/out" && rm -f "$tmp/out";;
14762 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14763 esac \
14764 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14765$as_echo "$as_me: error: could not create $ac_file" >&2;}
14766 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +000014767 ;;
mlcreechb87057f2008-03-06 07:19:20 +000014768 :H)
14769 #
14770 # CONFIG_HEADER
14771 #
mlcreechb87057f2008-03-06 07:19:20 +000014772 if test x"$ac_file" != x-; then
mlcreech636a9952008-05-05 22:52:56 +000014773 {
14774 $as_echo "/* $configure_input */" \
14775 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14776 } >"$tmp/config.h" \
14777 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14778$as_echo "$as_me: error: could not create $ac_file" >&2;}
14779 { (exit 1); exit 1; }; }
14780 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14781 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14782$as_echo "$as_me: $ac_file is unchanged" >&6;}
mlcreechb87057f2008-03-06 07:19:20 +000014783 else
mlcreech636a9952008-05-05 22:52:56 +000014784 rm -f "$ac_file"
14785 mv "$tmp/config.h" "$ac_file" \
14786 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14787$as_echo "$as_me: error: could not create $ac_file" >&2;}
14788 { (exit 1); exit 1; }; }
mlcreechb87057f2008-03-06 07:19:20 +000014789 fi
14790 else
mlcreech636a9952008-05-05 22:52:56 +000014791 $as_echo "/* $configure_input */" \
14792 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14793 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14794$as_echo "$as_me: error: could not create -" >&2;}
14795 { (exit 1); exit 1; }; }
mlcreechb87057f2008-03-06 07:19:20 +000014796 fi
mlcreechb87057f2008-03-06 07:19:20 +000014797 ;;
mlcreech94984912008-03-04 19:03:08 +000014798
mlcreech636a9952008-05-05 22:52:56 +000014799 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14800$as_echo "$as_me: executing $ac_file commands" >&6;}
14801 ;;
mlcreech94984912008-03-04 19:03:08 +000014802 esac
14803
mlcreech636a9952008-05-05 22:52:56 +000014804
14805 case $ac_file$ac_mode in
14806 "libtool":C)
14807
14808 # See if we are running on zsh, and set the options which allow our
14809 # commands through without removal of \ escapes.
14810 if test -n "${ZSH_VERSION+set}" ; then
14811 setopt NO_GLOB_SUBST
14812 fi
14813
14814 cfgfile="${ofile}T"
14815 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14816 $RM "$cfgfile"
14817
14818 cat <<_LT_EOF >> "$cfgfile"
14819#! $SHELL
14820
14821# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14822# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14823# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14824# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14825#
14826# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14827# 2006, 2007, 2008 Free Software Foundation, Inc.
14828# Written by Gordon Matzigkeit, 1996
14829#
14830# This file is part of GNU Libtool.
14831#
14832# GNU Libtool is free software; you can redistribute it and/or
14833# modify it under the terms of the GNU General Public License as
14834# published by the Free Software Foundation; either version 2 of
14835# the License, or (at your option) any later version.
14836#
14837# As a special exception to the GNU General Public License,
14838# if you distribute this file as part of a program or library that
14839# is built using GNU Libtool, you may include this file under the
14840# same distribution terms that you use for the rest of that program.
14841#
14842# GNU Libtool is distributed in the hope that it will be useful,
14843# but WITHOUT ANY WARRANTY; without even the implied warranty of
14844# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14845# GNU General Public License for more details.
14846#
14847# You should have received a copy of the GNU General Public License
14848# along with GNU Libtool; see the file COPYING. If not, a copy
14849# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14850# obtained by writing to the Free Software Foundation, Inc.,
14851# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14852
14853
14854# The names of the tagged configurations supported by this script.
14855available_tags=""
14856
14857# ### BEGIN LIBTOOL CONFIG
14858
14859# Which release of libtool.m4 was used?
14860macro_version=$macro_version
14861macro_revision=$macro_revision
14862
14863# Whether or not to build shared libraries.
14864build_libtool_libs=$enable_shared
14865
14866# Whether or not to build static libraries.
14867build_old_libs=$enable_static
14868
14869# What type of objects to build.
14870pic_mode=$pic_mode
14871
14872# Whether or not to optimize for fast installation.
14873fast_install=$enable_fast_install
14874
14875# The host system.
14876host_alias=$host_alias
14877host=$host
14878host_os=$host_os
14879
14880# The build system.
14881build_alias=$build_alias
14882build=$build
14883build_os=$build_os
14884
14885# A sed program that does not truncate output.
14886SED=$lt_SED
14887
14888# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14889Xsed="\$SED -e 1s/^X//"
14890
14891# A grep program that handles long lines.
14892GREP=$lt_GREP
14893
14894# An ERE matcher.
14895EGREP=$lt_EGREP
14896
14897# A literal string matcher.
14898FGREP=$lt_FGREP
14899
14900# A BSD- or MS-compatible name lister.
14901NM=$lt_NM
14902
14903# Whether we need soft or hard links.
14904LN_S=$lt_LN_S
14905
14906# What is the maximum length of a command?
14907max_cmd_len=$max_cmd_len
14908
14909# Object file suffix (normally "o").
14910objext=$ac_objext
14911
14912# Executable file suffix (normally "").
14913exeext=$exeext
14914
14915# whether the shell understands "unset".
14916lt_unset=$lt_unset
14917
14918# turn spaces into newlines.
14919SP2NL=$lt_lt_SP2NL
14920
14921# turn newlines into spaces.
14922NL2SP=$lt_lt_NL2SP
14923
14924# How to create reloadable object files.
14925reload_flag=$lt_reload_flag
14926reload_cmds=$lt_reload_cmds
14927
14928# Method to check whether dependent libraries are shared objects.
14929deplibs_check_method=$lt_deplibs_check_method
14930
14931# Command to use when deplibs_check_method == "file_magic".
14932file_magic_cmd=$lt_file_magic_cmd
14933
14934# The archiver.
14935AR=$lt_AR
14936AR_FLAGS=$lt_AR_FLAGS
14937
14938# A symbol stripping program.
14939STRIP=$lt_STRIP
14940
14941# Commands used to install an old-style archive.
14942RANLIB=$lt_RANLIB
14943old_postinstall_cmds=$lt_old_postinstall_cmds
14944old_postuninstall_cmds=$lt_old_postuninstall_cmds
14945
14946# A C compiler.
14947LTCC=$lt_CC
14948
14949# LTCC compiler flags.
14950LTCFLAGS=$lt_CFLAGS
14951
14952# Take the output of nm and produce a listing of raw symbols and C names.
14953global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14954
14955# Transform the output of nm in a proper C declaration.
14956global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14957
14958# Transform the output of nm in a C name address pair.
14959global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14960
14961# Transform the output of nm in a C name address pair when lib prefix is needed.
14962global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14963
14964# The name of the directory that contains temporary libtool files.
14965objdir=$objdir
14966
14967# Shell to use when invoking shell scripts.
14968SHELL=$lt_SHELL
14969
14970# An echo program that does not interpret backslashes.
14971ECHO=$lt_ECHO
14972
14973# Used to examine libraries when file_magic_cmd begins with "file".
14974MAGIC_CMD=$MAGIC_CMD
14975
14976# Must we lock files when doing compilation?
14977need_locks=$lt_need_locks
14978
14979# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14980DSYMUTIL=$lt_DSYMUTIL
14981
14982# Tool to change global to local symbols on Mac OS X.
14983NMEDIT=$lt_NMEDIT
14984
14985# Tool to manipulate fat objects and archives on Mac OS X.
14986LIPO=$lt_LIPO
14987
14988# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14989OTOOL=$lt_OTOOL
14990
14991# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14992OTOOL64=$lt_OTOOL64
14993
14994# Old archive suffix (normally "a").
14995libext=$libext
14996
14997# Shared library suffix (normally ".so").
14998shrext_cmds=$lt_shrext_cmds
14999
15000# The commands to extract the exported symbol list from a shared archive.
15001extract_expsyms_cmds=$lt_extract_expsyms_cmds
15002
15003# Variables whose values should be saved in libtool wrapper scripts and
15004# restored at link time.
15005variables_saved_for_relink=$lt_variables_saved_for_relink
15006
15007# Do we need the "lib" prefix for modules?
15008need_lib_prefix=$need_lib_prefix
15009
15010# Do we need a version for libraries?
15011need_version=$need_version
15012
15013# Library versioning type.
15014version_type=$version_type
15015
15016# Shared library runtime path variable.
15017runpath_var=$runpath_var
15018
15019# Shared library path variable.
15020shlibpath_var=$shlibpath_var
15021
15022# Is shlibpath searched before the hard-coded library search path?
15023shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15024
15025# Format of library name prefix.
15026libname_spec=$lt_libname_spec
15027
15028# List of archive names. First name is the real one, the rest are links.
15029# The last name is the one that the linker finds with -lNAME
15030library_names_spec=$lt_library_names_spec
15031
15032# The coded name of the library, if different from the real name.
15033soname_spec=$lt_soname_spec
15034
15035# Command to use after installation of a shared archive.
15036postinstall_cmds=$lt_postinstall_cmds
15037
15038# Command to use after uninstallation of a shared archive.
15039postuninstall_cmds=$lt_postuninstall_cmds
15040
15041# Commands used to finish a libtool library installation in a directory.
15042finish_cmds=$lt_finish_cmds
15043
15044# As "finish_cmds", except a single script fragment to be evaled but
15045# not shown.
15046finish_eval=$lt_finish_eval
15047
15048# Whether we should hardcode library paths into libraries.
15049hardcode_into_libs=$hardcode_into_libs
15050
15051# Compile-time system search path for libraries.
15052sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15053
15054# Run-time system search path for libraries.
15055sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15056
15057# Whether dlopen is supported.
15058dlopen_support=$enable_dlopen
15059
15060# Whether dlopen of programs is supported.
15061dlopen_self=$enable_dlopen_self
15062
15063# Whether dlopen of statically linked programs is supported.
15064dlopen_self_static=$enable_dlopen_self_static
15065
15066# Commands to strip libraries.
15067old_striplib=$lt_old_striplib
15068striplib=$lt_striplib
15069
15070
15071# The linker used to build libraries.
15072LD=$lt_LD
15073
15074# Commands used to build an old-style archive.
15075old_archive_cmds=$lt_old_archive_cmds
15076
15077# A language specific compiler.
15078CC=$lt_compiler
15079
15080# Is the compiler the GNU compiler?
15081with_gcc=$GCC
15082
15083# Compiler flag to turn off builtin functions.
15084no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15085
15086# How to pass a linker flag through the compiler.
15087wl=$lt_lt_prog_compiler_wl
15088
15089# Additional compiler flags for building library objects.
15090pic_flag=$lt_lt_prog_compiler_pic
15091
15092# Compiler flag to prevent dynamic linking.
15093link_static_flag=$lt_lt_prog_compiler_static
15094
15095# Does compiler simultaneously support -c and -o options?
15096compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15097
15098# Whether or not to add -lc for building shared libraries.
15099build_libtool_need_lc=$archive_cmds_need_lc
15100
15101# Whether or not to disallow shared libs when runtime libs are static.
15102allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15103
15104# Compiler flag to allow reflexive dlopens.
15105export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15106
15107# Compiler flag to generate shared objects directly from archives.
15108whole_archive_flag_spec=$lt_whole_archive_flag_spec
15109
15110# Whether the compiler copes with passing no objects directly.
15111compiler_needs_object=$lt_compiler_needs_object
15112
15113# Create an old-style archive from a shared archive.
15114old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15115
15116# Create a temporary old-style archive to link instead of a shared archive.
15117old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15118
15119# Commands used to build a shared archive.
15120archive_cmds=$lt_archive_cmds
15121archive_expsym_cmds=$lt_archive_expsym_cmds
15122
15123# Commands used to build a loadable module if different from building
15124# a shared archive.
15125module_cmds=$lt_module_cmds
15126module_expsym_cmds=$lt_module_expsym_cmds
15127
15128# Whether we are building with GNU ld or not.
15129with_gnu_ld=$lt_with_gnu_ld
15130
15131# Flag that allows shared libraries with undefined symbols to be built.
15132allow_undefined_flag=$lt_allow_undefined_flag
15133
15134# Flag that enforces no undefined symbols.
15135no_undefined_flag=$lt_no_undefined_flag
15136
15137# Flag to hardcode \$libdir into a binary during linking.
15138# This must work even if \$libdir does not exist
15139hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15140
15141# If ld is used when linking, flag to hardcode \$libdir into a binary
15142# during linking. This must work even if \$libdir does not exist.
15143hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15144
15145# Whether we need a single "-rpath" flag with a separated argument.
15146hardcode_libdir_separator=$lt_hardcode_libdir_separator
15147
15148# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15149# DIR into the resulting binary.
15150hardcode_direct=$hardcode_direct
15151
15152# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15153# DIR into the resulting binary and the resulting library dependency is
15154# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15155# library is relocated.
15156hardcode_direct_absolute=$hardcode_direct_absolute
15157
15158# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15159# into the resulting binary.
15160hardcode_minus_L=$hardcode_minus_L
15161
15162# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15163# into the resulting binary.
15164hardcode_shlibpath_var=$hardcode_shlibpath_var
15165
15166# Set to "yes" if building a shared library automatically hardcodes DIR
15167# into the library and all subsequent libraries and executables linked
15168# against it.
15169hardcode_automatic=$hardcode_automatic
15170
15171# Set to yes if linker adds runtime paths of dependent libraries
15172# to runtime path list.
15173inherit_rpath=$inherit_rpath
15174
15175# Whether libtool must link a program against all its dependency libraries.
15176link_all_deplibs=$link_all_deplibs
15177
15178# Fix the shell variable \$srcfile for the compiler.
15179fix_srcfile_path=$lt_fix_srcfile_path
15180
15181# Set to "yes" if exported symbols are required.
15182always_export_symbols=$always_export_symbols
15183
15184# The commands to list exported symbols.
15185export_symbols_cmds=$lt_export_symbols_cmds
15186
15187# Symbols that should not be listed in the preloaded symbols.
15188exclude_expsyms=$lt_exclude_expsyms
15189
15190# Symbols that must always be exported.
15191include_expsyms=$lt_include_expsyms
15192
15193# Commands necessary for linking programs (against libraries) with templates.
15194prelink_cmds=$lt_prelink_cmds
15195
15196# Specify filename containing input files.
15197file_list_spec=$lt_file_list_spec
15198
15199# How to hardcode a shared library path into an executable.
15200hardcode_action=$hardcode_action
15201
15202# ### END LIBTOOL CONFIG
15203
15204_LT_EOF
15205
15206 case $host_os in
15207 aix3*)
15208 cat <<\_LT_EOF >> "$cfgfile"
15209# AIX sometimes has problems with the GCC collect2 program. For some
15210# reason, if we set the COLLECT_NAMES environment variable, the problems
15211# vanish in a puff of smoke.
15212if test "X${COLLECT_NAMES+set}" != Xset; then
15213 COLLECT_NAMES=
15214 export COLLECT_NAMES
15215fi
15216_LT_EOF
15217 ;;
15218 esac
15219
15220
15221ltmain="$ac_aux_dir/ltmain.sh"
15222
15223
15224 # We use sed instead of cat because bash on DJGPP gets confused if
15225 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15226 # text mode, it properly converts lines to CR/LF. This bash problem
15227 # is reportedly fixed, but why not run on old versions too?
15228 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15229 || (rm -f "$cfgfile"; exit 1)
15230
15231 case $xsi_shell in
15232 yes)
15233 cat << \_LT_EOF >> "$cfgfile"
15234
15235# func_dirname file append nondir_replacement
15236# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15237# otherwise set result to NONDIR_REPLACEMENT.
15238func_dirname ()
15239{
15240 case ${1} in
15241 */*) func_dirname_result="${1%/*}${2}" ;;
15242 * ) func_dirname_result="${3}" ;;
15243 esac
15244}
15245
15246# func_basename file
15247func_basename ()
15248{
15249 func_basename_result="${1##*/}"
15250}
15251
15252# func_dirname_and_basename file append nondir_replacement
15253# perform func_basename and func_dirname in a single function
15254# call:
15255# dirname: Compute the dirname of FILE. If nonempty,
15256# add APPEND to the result, otherwise set result
15257# to NONDIR_REPLACEMENT.
15258# value returned in "$func_dirname_result"
15259# basename: Compute filename of FILE.
15260# value retuned in "$func_basename_result"
15261# Implementation must be kept synchronized with func_dirname
15262# and func_basename. For efficiency, we do not delegate to
15263# those functions but instead duplicate the functionality here.
15264func_dirname_and_basename ()
15265{
15266 case ${1} in
15267 */*) func_dirname_result="${1%/*}${2}" ;;
15268 * ) func_dirname_result="${3}" ;;
15269 esac
15270 func_basename_result="${1##*/}"
15271}
15272
15273# func_stripname prefix suffix name
15274# strip PREFIX and SUFFIX off of NAME.
15275# PREFIX and SUFFIX must not contain globbing or regex special
15276# characters, hashes, percent signs, but SUFFIX may contain a leading
15277# dot (in which case that matches only a dot).
15278func_stripname ()
15279{
15280 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15281 # positional parameters, so assign one to ordinary parameter first.
15282 func_stripname_result=${3}
15283 func_stripname_result=${func_stripname_result#"${1}"}
15284 func_stripname_result=${func_stripname_result%"${2}"}
15285}
15286
15287# func_opt_split
15288func_opt_split ()
15289{
15290 func_opt_split_opt=${1%%=*}
15291 func_opt_split_arg=${1#*=}
15292}
15293
15294# func_lo2o object
15295func_lo2o ()
15296{
15297 case ${1} in
15298 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15299 *) func_lo2o_result=${1} ;;
15300 esac
15301}
15302
15303# func_xform libobj-or-source
15304func_xform ()
15305{
15306 func_xform_result=${1%.*}.lo
15307}
15308
15309# func_arith arithmetic-term...
15310func_arith ()
15311{
15312 func_arith_result=$(( $* ))
15313}
15314
15315# func_len string
15316# STRING may not start with a hyphen.
15317func_len ()
15318{
15319 func_len_result=${#1}
15320}
15321
15322_LT_EOF
15323 ;;
15324 *) # Bourne compatible functions.
15325 cat << \_LT_EOF >> "$cfgfile"
15326
15327# func_dirname file append nondir_replacement
15328# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15329# otherwise set result to NONDIR_REPLACEMENT.
15330func_dirname ()
15331{
15332 # Extract subdirectory from the argument.
15333 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15334 if test "X$func_dirname_result" = "X${1}"; then
15335 func_dirname_result="${3}"
15336 else
15337 func_dirname_result="$func_dirname_result${2}"
15338 fi
15339}
15340
15341# func_basename file
15342func_basename ()
15343{
15344 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15345}
15346
15347
15348# func_stripname prefix suffix name
15349# strip PREFIX and SUFFIX off of NAME.
15350# PREFIX and SUFFIX must not contain globbing or regex special
15351# characters, hashes, percent signs, but SUFFIX may contain a leading
15352# dot (in which case that matches only a dot).
15353# func_strip_suffix prefix name
15354func_stripname ()
15355{
15356 case ${2} in
15357 .*) func_stripname_result=`$ECHO "X${3}" \
15358 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15359 *) func_stripname_result=`$ECHO "X${3}" \
15360 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15361 esac
15362}
15363
15364# sed scripts:
15365my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15366my_sed_long_arg='1s/^-[^=]*=//'
15367
15368# func_opt_split
15369func_opt_split ()
15370{
15371 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15372 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15373}
15374
15375# func_lo2o object
15376func_lo2o ()
15377{
15378 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15379}
15380
15381# func_xform libobj-or-source
15382func_xform ()
15383{
15384 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15385}
15386
15387# func_arith arithmetic-term...
15388func_arith ()
15389{
15390 func_arith_result=`expr "$@"`
15391}
15392
15393# func_len string
15394# STRING may not start with a hyphen.
15395func_len ()
15396{
15397 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15398}
15399
15400_LT_EOF
15401esac
15402
15403case $lt_shell_append in
15404 yes)
15405 cat << \_LT_EOF >> "$cfgfile"
15406
15407# func_append var value
15408# Append VALUE to the end of shell variable VAR.
15409func_append ()
15410{
15411 eval "$1+=\$2"
15412}
15413_LT_EOF
15414 ;;
15415 *)
15416 cat << \_LT_EOF >> "$cfgfile"
15417
15418# func_append var value
15419# Append VALUE to the end of shell variable VAR.
15420func_append ()
15421{
15422 eval "$1=\$$1\$2"
15423}
15424
15425_LT_EOF
15426 ;;
15427 esac
15428
15429
15430 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15431 || (rm -f "$cfgfile"; exit 1)
15432
15433 mv -f "$cfgfile" "$ofile" ||
15434 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15435 chmod +x "$ofile"
15436
15437 ;;
15438
15439 esac
mlcreech94984912008-03-04 19:03:08 +000015440done # for ac_tag
15441
drh71eb93e2001-09-28 01:34:43 +000015442
15443{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000015444_ACEOF
drh75897232000-05-29 14:26:00 +000015445chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000015446ac_clean_files=$ac_clean_files_save
15447
mlcreech636a9952008-05-05 22:52:56 +000015448test $ac_write_fail = 0 ||
15449 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15450$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15451 { (exit 1); exit 1; }; }
15452
a.rottmann84e63352003-03-24 09:42:16 +000015453
drh71eb93e2001-09-28 01:34:43 +000015454# configure is writing to config.log, and then calls config.status.
15455# config.status does its own redirection, appending to config.log.
15456# Unfortunately, on DOS this fails, as config.log is still kept open
15457# by configure, so config.status won't be able to write to it; its
15458# output is simply discarded. So we exec the FD to /dev/null,
15459# effectively closing config.log, so it can be properly (re)opened and
15460# appended to by config.status. When coming back to configure, we
15461# need to make the FD available again.
15462if test "$no_create" != yes; then
15463 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000015464 ac_config_status_args=
15465 test "$silent" = yes &&
15466 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000015467 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000015468 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000015469 exec 5>>config.log
15470 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15471 # would make configure fail if this is the last instruction.
15472 $ac_cs_success || { (exit 1); exit 1; }
15473fi
mlcreech636a9952008-05-05 22:52:56 +000015474if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15475 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
15476$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
15477fi
drh613a0fe2007-11-23 17:31:17 +000015478