blob: 5100ddd847a6c27c4c3734f534620980ca71249e [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.
drhbc7a22d2009-10-13 22:47:13 +00003# Generated by GNU Autoconf 2.62 for sqlite 3.6.19.
drh75897232000-05-29 14:26:00 +00004#
drh8b727472009-01-19 18:18:40 +00005# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 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. ##
drhbc7a22d2009-10-13 22:47:13 +000011## --------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000012
drh8b727472009-01-19 18:18:40 +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=:
drh8b727472009-01-19 18:18:40 +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+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000021 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
a.rottmann84e63352003-03-24 09:42:16 +000027fi
drh8b727472009-01-19 18:18:40 +000028
29
30
31
32# PATH needs CR
33# 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
40as_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
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
a.rottmann84e63352003-03-24 09:42:16 +000080
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
drh8b727472009-01-19 18:18:40 +000089# 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.)
94IFS=" "" $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
100for 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
106IFS=$as_save_IFS
107
108 ;;
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
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118fi
119
mlcreech94984912008-03-04 19:03:08 +0000120# Work around bugs in pre-3.0 UWIN ksh.
drh8b727472009-01-19 18:18:40 +0000121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
mlcreech94984912008-03-04 19:03:08 +0000124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
drh8b727472009-01-19 18:18:40 +0000129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +0000133
134# Required to use basename.
drh8b727472009-01-19 18:18:40 +0000135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +0000137 as_expr=expr
138else
139 as_expr=false
140fi
141
drh8b727472009-01-19 18:18:40 +0000142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +0000143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
drh8b727472009-01-19 18:18:40 +0000150as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +0000151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +0000153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155 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
mlcreech94984912008-03-04 19:03:08 +0000171
172
drh8b727472009-01-19 18:18:40 +0000173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
mlcreech94984912008-03-04 19:03:08 +0000178fi
179
drh8b727472009-01-19 18:18:40 +0000180 if test $as_have_required = yes && (eval ":
181(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}
mlcreech94984912008-03-04 19:03:08 +0000196
drh8b727472009-01-19 18:18:40 +0000197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
mlcreech94984912008-03-04 19:03:08 +0000204
drh8b727472009-01-19 18:18:40 +0000205if 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=.
drh8b727472009-01-19 18:18:40 +0000245 case $as_dir in
a.rottmann84e63352003-03-24 09:42:16 +0000246 /*)
drh8b727472009-01-19 18:18:40 +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=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # 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=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # 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(
drh866108f2008-05-13 00:57:21 +0000347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
drh866108f2008-05-13 00:57:21 +0000349 test "x$as_lineno_1" != "x$as_lineno_2" &&
drh8b727472009-01-19 18:18:40 +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
363 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+"$@"}
367fi
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.
435 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.
439}
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
drh8b727472009-01-19 18:18:40 +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
drh8b727472009-01-19 18:18:40 +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 '
drh8b727472009-01-19 18:18:40 +0000463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
a.rottmann84e63352003-03-24 09:42:16 +0000467 N
drh8b727472009-01-19 18:18:40 +0000468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a.rottmann84e63352003-03-24 09:42:16 +0000470 t loop
drh8b727472009-01-19 18:18:40 +0000471 s/-\n.*//
a.rottmann84e63352003-03-24 09:42:16 +0000472 ' >$as_me.lineno &&
drh8b727472009-01-19 18:18:40 +0000473 chmod +x "$as_me.lineno" ||
474 { $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
drh8b727472009-01-19 18:18:40 +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
drh8b727472009-01-19 18:18:40 +0000486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
drh866108f2008-05-13 00:57:21 +0000491
drh8b727472009-01-19 18:18:40 +0000492ECHO_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';;
501esac
502if 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
drh8b727472009-01-19 18:18:40 +0000510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +0000518 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +0000519 # ... 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
528 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
drh8b727472009-01-19 18:18:40 +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
drh8b727472009-01-19 18:18:40 +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
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 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
drh8b727472009-01-19 18:18:40 +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
drh8b727472009-01-19 18:18:40 +0000734ac_clean_files=
a.rottmann84e63352003-03-24 09:42:16 +0000735ac_config_libobj_dir=.
drh8b727472009-01-19 18:18:40 +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'
drhbc7a22d2009-10-13 22:47:13 +0000746PACKAGE_VERSION='3.6.19'
747PACKAGE_STRING='sqlite 3.6.19'
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>
drh8b727472009-01-19 18:18:40 +0000753#ifdef HAVE_SYS_TYPES_H
danielk197733a14782008-08-04 14:50:05 +0000754# include <sys/types.h>
755#endif
drh8b727472009-01-19 18:18:40 +0000756#ifdef HAVE_SYS_STAT_H
a.rottmann84e63352003-03-24 09:42:16 +0000757# include <sys/stat.h>
758#endif
drh8b727472009-01-19 18:18:40 +0000759#ifdef STDC_HEADERS
a.rottmann84e63352003-03-24 09:42:16 +0000760# include <stdlib.h>
761# include <stddef.h>
762#else
drh8b727472009-01-19 18:18:40 +0000763# ifdef HAVE_STDLIB_H
danielk197733a14782008-08-04 14:50:05 +0000764# include <stdlib.h>
765# endif
a.rottmann84e63352003-03-24 09:42:16 +0000766#endif
drh8b727472009-01-19 18:18:40 +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
drh8b727472009-01-19 18:18:40 +0000773#ifdef HAVE_STRINGS_H
a.rottmann84e63352003-03-24 09:42:16 +0000774# include <strings.h>
775#endif
drh8b727472009-01-19 18:18:40 +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
drh8b727472009-01-19 18:18:40 +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
drh934c5442009-04-13 09:09:24 +0000786ac_subst_vars='SHELL
vapier6acb2cf2009-01-28 04:46:28 +0000787PATH_SEPARATOR
drh934c5442009-04-13 09:09:24 +0000788PACKAGE_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
823LIBTOOL
824build
825build_cpu
826build_vendor
827build_os
828host
829host_cpu
830host_vendor
831host_os
832CC
833CFLAGS
834LDFLAGS
835CPPFLAGS
836ac_ct_CC
837EXEEXT
838OBJEXT
839SED
840GREP
841EGREP
842FGREP
843LD
844DUMPBIN
845ac_ct_DUMPBIN
846NM
847LN_S
848OBJDUMP
849AR
850STRIP
851RANLIB
852lt_ECHO
853DSYMUTIL
854NMEDIT
855LIPO
856OTOOL
857OTOOL64
858CPP
859INSTALL_PROGRAM
860INSTALL_SCRIPT
861INSTALL_DATA
862AWK
863TCLSH_CMD
864TCLLIBDIR
865program_prefix
866VERSION
867RELEASE
868VERSION_NUMBER
869BUILD_CC
870SQLITE_THREADSAFE
871XTHREADCONNECT
872THREADSOVERRIDELOCKS
873ALLOWRELEASE
874TEMP_STORE
875BUILD_EXEEXT
876SQLITE_OS_UNIX
877SQLITE_OS_WIN
878SQLITE_OS_OS2
879TARGET_EXEEXT
880TCL_VERSION
881TCL_BIN_DIR
882TCL_SRC_DIR
883TCL_LIBS
884TCL_INCLUDE_SPEC
885TCL_LIB_FILE
886TCL_LIB_FLAG
887TCL_LIB_SPEC
888TCL_STUB_LIB_FILE
889TCL_STUB_LIB_FLAG
890TCL_STUB_LIB_SPEC
891HAVE_TCL
892TARGET_READLINE_LIBS
893TARGET_READLINE_INC
894TARGET_HAVE_READLINE
895TARGET_DEBUG
896USE_AMALGAMATION
897OPT_FEATURE_FLAGS
898USE_GCOV
899BUILD_CFLAGS
900LIBOBJS
901LTLIBOBJS'
a.rottmann84e63352003-03-24 09:42:16 +0000902ac_subst_files=''
drh8b727472009-01-19 18:18:40 +0000903ac_user_opts='
904enable_option_checking
905enable_shared
906enable_static
907with_pic
908enable_fast_install
909with_gnu_ld
910enable_libtool_lock
911enable_largefile
912with_hints
913enable_threadsafe
914enable_cross_thread_connections
915enable_threads_override_locks
916enable_releasemode
917enable_tempstore
918enable_tcl
919with_tcl
920enable_readline
921with_readline_lib
922with_readline_inc
923enable_debug
924enable_amalgamation
925enable_load_extension
926enable_gcov
927'
928 ac_precious_vars='build_alias
929host_alias
930target_alias
931CC
932CFLAGS
933LDFLAGS
934LIBS
935CPPFLAGS
vapier6acb2cf2009-01-28 04:46:28 +0000936CPP
937TCLLIBDIR'
drh8b727472009-01-19 18:18:40 +0000938
drh75897232000-05-29 14:26:00 +0000939
940# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000941ac_init_help=
942ac_init_version=false
drh8b727472009-01-19 18:18:40 +0000943ac_unrecognized_opts=
944ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000945# The variables have the same names as the options, with
946# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000947cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000948exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000949no_create=
drh75897232000-05-29 14:26:00 +0000950no_recursion=
951prefix=NONE
952program_prefix=NONE
953program_suffix=NONE
954program_transform_name=s,x,x,
955silent=
956site=
957srcdir=
drh75897232000-05-29 14:26:00 +0000958verbose=
959x_includes=NONE
960x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000961
962# Installation directory options.
963# These are left unexpanded so users can "make install exec_prefix=/foo"
964# and all the variables that are supposed to be based on exec_prefix
965# by default will actually change.
966# Use braces instead of parens because sh, perl, etc. also accept them.
drh8b727472009-01-19 18:18:40 +0000967# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000968bindir='${exec_prefix}/bin'
969sbindir='${exec_prefix}/sbin'
970libexecdir='${exec_prefix}/libexec'
drh8b727472009-01-19 18:18:40 +0000971datarootdir='${prefix}/share'
972datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000973sysconfdir='${prefix}/etc'
974sharedstatedir='${prefix}/com'
975localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000976includedir='${prefix}/include'
977oldincludedir='/usr/include'
drh8b727472009-01-19 18:18:40 +0000978docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
979infodir='${datarootdir}/info'
980htmldir='${docdir}'
981dvidir='${docdir}'
982pdfdir='${docdir}'
983psdir='${docdir}'
984libdir='${exec_prefix}/lib'
985localedir='${datarootdir}/locale'
986mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000987
drh75897232000-05-29 14:26:00 +0000988ac_prev=
drh8b727472009-01-19 18:18:40 +0000989ac_dashdash=
drh75897232000-05-29 14:26:00 +0000990for ac_option
991do
drh75897232000-05-29 14:26:00 +0000992 # If the previous option needs an argument, assign it.
993 if test -n "$ac_prev"; then
drh8b727472009-01-19 18:18:40 +0000994 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000995 ac_prev=
996 continue
997 fi
998
drh8b727472009-01-19 18:18:40 +0000999 case $ac_option in
1000 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001 *) ac_optarg=yes ;;
1002 esac
drh75897232000-05-29 14:26:00 +00001003
1004 # Accept the important Cygnus configure options, so we can diagnose typos.
1005
drh8b727472009-01-19 18:18:40 +00001006 case $ac_dashdash$ac_option in
1007 --)
1008 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +00001009
1010 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1011 ac_prev=bindir ;;
1012 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +00001013 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001014
1015 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +00001016 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +00001017 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +00001018 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001019
1020 -cache-file | --cache-file | --cache-fil | --cache-fi \
1021 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1022 ac_prev=cache_file ;;
1023 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1024 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +00001025 cache_file=$ac_optarg ;;
1026
1027 --config-cache | -C)
1028 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +00001029
drh8b727472009-01-19 18:18:40 +00001030 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +00001031 ac_prev=datadir ;;
drh8b727472009-01-19 18:18:40 +00001032 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +00001033 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001034
drh8b727472009-01-19 18:18:40 +00001035 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1036 | --dataroo | --dataro | --datar)
1037 ac_prev=datarootdir ;;
1038 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1039 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1040 datarootdir=$ac_optarg ;;
1041
drh75897232000-05-29 14:26:00 +00001042 -disable-* | --disable-*)
drh8b727472009-01-19 18:18:40 +00001043 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001044 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
drh71eb93e2001-09-28 01:34:43 +00001047 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1051 *"
1052"enable_$ac_useropt"
1053"*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1056 esac
1057 eval enable_$ac_useropt=no ;;
1058
1059 -docdir | --docdir | --docdi | --doc | --do)
1060 ac_prev=docdir ;;
1061 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062 docdir=$ac_optarg ;;
1063
1064 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065 ac_prev=dvidir ;;
1066 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001068
1069 -enable-* | --enable-*)
drh8b727472009-01-19 18:18:40 +00001070 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001071 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
drh71eb93e2001-09-28 01:34:43 +00001074 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1078 *"
1079"enable_$ac_useropt"
1080"*) ;;
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001083 esac
drh8b727472009-01-19 18:18:40 +00001084 eval enable_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001085
1086 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088 | --exec | --exe | --ex)
1089 ac_prev=exec_prefix ;;
1090 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001093 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001094
1095 -gas | --gas | --ga | --g)
1096 # Obsolete; use --with-gas.
1097 with_gas=yes ;;
1098
drh71eb93e2001-09-28 01:34:43 +00001099 -help | --help | --hel | --he | -h)
1100 ac_init_help=long ;;
1101 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102 ac_init_help=recursive ;;
1103 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001105
1106 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001107 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001108 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001109 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001110
drh8b727472009-01-19 18:18:40 +00001111 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112 ac_prev=htmldir ;;
1113 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114 | --ht=*)
1115 htmldir=$ac_optarg ;;
1116
drh75897232000-05-29 14:26:00 +00001117 -includedir | --includedir | --includedi | --included | --include \
1118 | --includ | --inclu | --incl | --inc)
1119 ac_prev=includedir ;;
1120 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001122 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001123
1124 -infodir | --infodir | --infodi | --infod | --info | --inf)
1125 ac_prev=infodir ;;
1126 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001127 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001128
1129 -libdir | --libdir | --libdi | --libd)
1130 ac_prev=libdir ;;
1131 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001132 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001133
1134 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135 | --libexe | --libex | --libe)
1136 ac_prev=libexecdir ;;
1137 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001139 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001140
drh8b727472009-01-19 18:18:40 +00001141 -localedir | --localedir | --localedi | --localed | --locale)
1142 ac_prev=localedir ;;
1143 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144 localedir=$ac_optarg ;;
1145
drh75897232000-05-29 14:26:00 +00001146 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh8b727472009-01-19 18:18:40 +00001147 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001148 ac_prev=localstatedir ;;
1149 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh8b727472009-01-19 18:18:40 +00001150 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001151 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001152
1153 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154 ac_prev=mandir ;;
1155 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001156 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001157
1158 -nfp | --nfp | --nf)
1159 # Obsolete; use --without-fp.
1160 with_fp=no ;;
1161
1162 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001163 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001164 no_create=yes ;;
1165
1166 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168 no_recursion=yes ;;
1169
1170 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172 | --oldin | --oldi | --old | --ol | --o)
1173 ac_prev=oldincludedir ;;
1174 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001177 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001178
1179 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180 ac_prev=prefix ;;
1181 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001182 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001183
1184 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185 | --program-pre | --program-pr | --program-p)
1186 ac_prev=program_prefix ;;
1187 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001189 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001190
1191 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192 | --program-suf | --program-su | --program-s)
1193 ac_prev=program_suffix ;;
1194 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001196 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001197
1198 -program-transform-name | --program-transform-name \
1199 | --program-transform-nam | --program-transform-na \
1200 | --program-transform-n | --program-transform- \
1201 | --program-transform | --program-transfor \
1202 | --program-transfo | --program-transf \
1203 | --program-trans | --program-tran \
1204 | --progr-tra | --program-tr | --program-t)
1205 ac_prev=program_transform_name ;;
1206 -program-transform-name=* | --program-transform-name=* \
1207 | --program-transform-nam=* | --program-transform-na=* \
1208 | --program-transform-n=* | --program-transform-=* \
1209 | --program-transform=* | --program-transfor=* \
1210 | --program-transfo=* | --program-transf=* \
1211 | --program-trans=* | --program-tran=* \
1212 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001213 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001214
drh8b727472009-01-19 18:18:40 +00001215 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216 ac_prev=pdfdir ;;
1217 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218 pdfdir=$ac_optarg ;;
1219
1220 -psdir | --psdir | --psdi | --psd | --ps)
1221 ac_prev=psdir ;;
1222 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223 psdir=$ac_optarg ;;
1224
drh75897232000-05-29 14:26:00 +00001225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1227 silent=yes ;;
1228
1229 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230 ac_prev=sbindir ;;
1231 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001233 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001234
1235 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237 | --sharedst | --shareds | --shared | --share | --shar \
1238 | --sha | --sh)
1239 ac_prev=sharedstatedir ;;
1240 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001244 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001245
1246 -site | --site | --sit)
1247 ac_prev=site ;;
1248 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001249 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001250
1251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252 ac_prev=srcdir ;;
1253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001254 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001255
1256 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257 | --syscon | --sysco | --sysc | --sys | --sy)
1258 ac_prev=sysconfdir ;;
1259 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001261 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001262
1263 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001264 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001265 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001266 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001267
1268 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269 verbose=yes ;;
1270
drh71eb93e2001-09-28 01:34:43 +00001271 -version | --version | --versio | --versi | --vers | -V)
1272 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001273
1274 -with-* | --with-*)
drh8b727472009-01-19 18:18:40 +00001275 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001276 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
drh71eb93e2001-09-28 01:34:43 +00001279 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1283 *"
1284"with_$ac_useropt"
1285"*) ;;
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001288 esac
drh8b727472009-01-19 18:18:40 +00001289 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001290
1291 -without-* | --without-*)
drh8b727472009-01-19 18:18:40 +00001292 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001293 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
drh71eb93e2001-09-28 01:34:43 +00001296 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1300 *"
1301"with_$ac_useropt"
1302"*) ;;
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1305 esac
1306 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001307
1308 --x)
1309 # Obsolete; use --with-x.
1310 with_x=yes ;;
1311
1312 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313 | --x-incl | --x-inc | --x-in | --x-i)
1314 ac_prev=x_includes ;;
1315 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001317 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001318
1319 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321 ac_prev=x_libraries ;;
1322 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001324 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001325
drh8b727472009-01-19 18:18:40 +00001326 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
drh71eb93e2001-09-28 01:34:43 +00001327Try \`$0 --help' for more information." >&2
1328 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001329 ;;
1330
drh71eb93e2001-09-28 01:34:43 +00001331 *=*)
1332 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1333 # Reject names that are not valid shell variable names.
1334 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001335 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
drh71eb93e2001-09-28 01:34:43 +00001336 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001337 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001338 export $ac_envvar ;;
1339
drh75897232000-05-29 14:26:00 +00001340 *)
drh71eb93e2001-09-28 01:34:43 +00001341 # FIXME: should be removed in autoconf 3.0.
drh8b727472009-01-19 18:18:40 +00001342 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001343 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001344 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drh71eb93e2001-09-28 01:34:43 +00001345 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
drh75897232000-05-29 14:26:00 +00001346 ;;
1347
1348 esac
1349done
1350
1351if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001352 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drh8b727472009-01-19 18:18:40 +00001353 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
drh71eb93e2001-09-28 01:34:43 +00001354 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001355fi
1356
drh8b727472009-01-19 18:18:40 +00001357if test -n "$ac_unrecognized_opts"; then
1358 case $enable_option_checking in
1359 no) ;;
drh934c5442009-04-13 09:09:24 +00001360 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
drh8b727472009-01-19 18:18:40 +00001361 { (exit 1); exit 1; }; } ;;
drh934c5442009-04-13 09:09:24 +00001362 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
mlcreech636a9952008-05-05 22:52:56 +00001363 esac
drh8b727472009-01-19 18:18:40 +00001364fi
drh866108f2008-05-13 00:57:21 +00001365
drh8b727472009-01-19 18:18:40 +00001366# Check all directory arguments for consistency.
1367for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1368 datadir sysconfdir sharedstatedir localstatedir includedir \
1369 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1370 libdir localedir mandir
drh866108f2008-05-13 00:57:21 +00001371do
drh8b727472009-01-19 18:18:40 +00001372 eval ac_val=\$$ac_var
1373 # Remove trailing slashes.
drh71eb93e2001-09-28 01:34:43 +00001374 case $ac_val in
drh8b727472009-01-19 18:18:40 +00001375 */ )
1376 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1377 eval $ac_var=\$ac_val;;
drh75897232000-05-29 14:26:00 +00001378 esac
drh8b727472009-01-19 18:18:40 +00001379 # Be sure to have absolute directory names.
1380 case $ac_val in
1381 [\\/$]* | ?:[\\/]* ) continue;;
1382 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1383 esac
1384 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1385 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00001386done
drh75897232000-05-29 14:26:00 +00001387
drh71eb93e2001-09-28 01:34:43 +00001388# There might be people who depend on the old broken behavior: `$host'
1389# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001390# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001391build=$build_alias
1392host=$host_alias
1393target=$target_alias
drh75897232000-05-29 14:26:00 +00001394
a.rottmann84e63352003-03-24 09:42:16 +00001395# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001396if test "x$host_alias" != x; then
1397 if test "x$build_alias" = x; then
1398 cross_compiling=maybe
drh8b727472009-01-19 18:18:40 +00001399 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
drh71eb93e2001-09-28 01:34:43 +00001400 If a cross compiler is detected then cross compile mode will be used." >&2
1401 elif test "x$build_alias" != "x$host_alias"; then
1402 cross_compiling=yes
1403 fi
1404fi
1405
1406ac_tool_prefix=
1407test -n "$host_alias" && ac_tool_prefix=$host_alias-
1408
1409test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001410
a.rottmann84e63352003-03-24 09:42:16 +00001411
drh8b727472009-01-19 18:18:40 +00001412ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413ac_ls_di=`ls -di .` &&
1414ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
drh934c5442009-04-13 09:09:24 +00001415 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
drh8b727472009-01-19 18:18:40 +00001416 { (exit 1); exit 1; }; }
1417test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1418 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1419 { (exit 1); exit 1; }; }
1420
1421
drh75897232000-05-29 14:26:00 +00001422# Find the source files, if location was not specified.
1423if test -z "$srcdir"; then
1424 ac_srcdir_defaulted=yes
drh8b727472009-01-19 18:18:40 +00001425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir=`$as_dirname -- "$as_myself" ||
1427$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431$as_echo X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\/\)[^/].*/{
1437 s//\1/
1438 q
1439 }
1440 /^X\(\/\/\)$/{
1441 s//\1/
1442 q
1443 }
1444 /^X\(\/\).*/{
1445 s//\1/
1446 q
1447 }
1448 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001449 srcdir=$ac_confdir
drh8b727472009-01-19 18:18:40 +00001450 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001451 srcdir=..
1452 fi
1453else
1454 ac_srcdir_defaulted=no
1455fi
drh8b727472009-01-19 18:18:40 +00001456if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
drh71eb93e2001-09-28 01:34:43 +00001459 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001460fi
drh8b727472009-01-19 18:18:40 +00001461ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1462ac_abs_confdir=`(
1463 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
drh866108f2008-05-13 00:57:21 +00001464 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001465 pwd)`
1466# When building in place, set srcdir=.
1467if test "$ac_abs_confdir" = "$ac_pwd"; then
1468 srcdir=.
1469fi
1470# Remove unnecessary trailing slashes from srcdir.
1471# Double slashes in file names in object file debugging info
1472# mess up M-x gdb in Emacs.
1473case $srcdir in
1474*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1475esac
1476for ac_var in $ac_precious_vars; do
1477 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_env_${ac_var}_value=\$${ac_var}
1479 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1480 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1481done
drh75897232000-05-29 14:26:00 +00001482
drh71eb93e2001-09-28 01:34:43 +00001483#
1484# Report the --help message.
1485#
1486if test "$ac_init_help" = "long"; then
1487 # Omit some internal or obsolete options to make the list less imposing.
1488 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001489 cat <<_ACEOF
drhbc7a22d2009-10-13 22:47:13 +00001490\`configure' configures sqlite 3.6.19 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001491
1492Usage: $0 [OPTION]... [VAR=VALUE]...
1493
1494To assign environment variables (e.g., CC, CFLAGS...), specify them as
1495VAR=VALUE. See below for descriptions of some of the useful variables.
1496
1497Defaults for the options are specified in brackets.
1498
1499Configuration:
1500 -h, --help display this help and exit
1501 --help=short display options specific to this package
1502 --help=recursive display the short help of all the included packages
1503 -V, --version display version information and exit
1504 -q, --quiet, --silent do not print \`checking...' messages
1505 --cache-file=FILE cache test results in FILE [disabled]
1506 -C, --config-cache alias for \`--cache-file=config.cache'
1507 -n, --no-create do not create output files
1508 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1509
drh71eb93e2001-09-28 01:34:43 +00001510Installation directories:
1511 --prefix=PREFIX install architecture-independent files in PREFIX
drh8b727472009-01-19 18:18:40 +00001512 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001513 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh8b727472009-01-19 18:18:40 +00001514 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001515
1516By default, \`make install' will install all the files in
1517\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1518an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1519for instance \`--prefix=\$HOME'.
1520
1521For better control, use the options below.
1522
1523Fine tuning of the installation directories:
drh8b727472009-01-19 18:18:40 +00001524 --bindir=DIR user executables [EPREFIX/bin]
1525 --sbindir=DIR system admin executables [EPREFIX/sbin]
1526 --libexecdir=DIR program executables [EPREFIX/libexec]
1527 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1528 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1529 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1530 --libdir=DIR object code libraries [EPREFIX/lib]
1531 --includedir=DIR C header files [PREFIX/include]
1532 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1533 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1534 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1535 --infodir=DIR info documentation [DATAROOTDIR/info]
1536 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1537 --mandir=DIR man documentation [DATAROOTDIR/man]
1538 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1539 --htmldir=DIR html documentation [DOCDIR]
1540 --dvidir=DIR dvi documentation [DOCDIR]
1541 --pdfdir=DIR pdf documentation [DOCDIR]
1542 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001543_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001544
a.rottmann84e63352003-03-24 09:42:16 +00001545 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001546
1547System types:
1548 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001549 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1550_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001551fi
1552
1553if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001554 case $ac_init_help in
drhbc7a22d2009-10-13 22:47:13 +00001555 short | recursive ) echo "Configuration of sqlite 3.6.19:";;
mlcreechb87057f2008-03-06 07:19:20 +00001556 esac
a.rottmann84e63352003-03-24 09:42:16 +00001557 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001558
1559Optional Features:
drh8b727472009-01-19 18:18:40 +00001560 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001561 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1562 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh8b727472009-01-19 18:18:40 +00001563 --enable-shared[=PKGS] build shared libraries [default=yes]
1564 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001565 --enable-fast-install[=PKGS]
1566 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001567 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001568 --disable-largefile omit support for large files
drh94e4f822006-02-15 02:00:25 +00001569 --enable-threadsafe Support threadsafe operation
1570 --enable-cross-thread-connections
1571 Allow connection sharing across threads
1572 --enable-threads-override-locks
1573 Threads can override each others locks
1574 --enable-releasemode Support libtool link to release mode
1575 --enable-tempstore Use an in-ram database for temporary tables
1576 (never,no,yes,always)
1577 --disable-tcl do not build TCL extension
vapier7f19c022007-02-17 14:46:31 +00001578 --disable-readline disable readline support [default=detect]
drh94e4f822006-02-15 02:00:25 +00001579 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001580 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001581 separately
mlcreecha4edab02008-03-06 04:14:17 +00001582 --enable-load-extension Enable loading of external extensions
mlcreechaac7b932008-04-01 02:45:22 +00001583 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001584
1585Optional Packages:
1586 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1587 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001588 --with-pic try to use only PIC/non-PIC objects [default=use
1589 both]
mlcreech636a9952008-05-05 22:52:56 +00001590 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh71eb93e2001-09-28 01:34:43 +00001591 --with-hints=FILE Read configuration options from FILE
drh94e4f822006-02-15 02:00:25 +00001592 --with-tcl=DIR directory containing tcl configuration
1593 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001594 --with-readline-lib specify readline library
1595 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001596
1597Some influential environment variables:
1598 CC C compiler command
1599 CFLAGS C compiler flags
1600 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1601 nonstandard directory <lib dir>
drh8b727472009-01-19 18:18:40 +00001602 LIBS libraries to pass to the linker, e.g. -l<library>
1603 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1604 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001605 CPP C preprocessor
vapier6acb2cf2009-01-28 04:46:28 +00001606 TCLLIBDIR Where to install tcl plugin
drh71eb93e2001-09-28 01:34:43 +00001607
1608Use these variables to override the choices made by `configure' or to help
1609it to find libraries and programs with nonstandard names/locations.
1610
a.rottmann84e63352003-03-24 09:42:16 +00001611_ACEOF
drh8b727472009-01-19 18:18:40 +00001612ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001613fi
1614
1615if test "$ac_init_help" = "recursive"; then
1616 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001617 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh8b727472009-01-19 18:18:40 +00001618 test -d "$ac_dir" ||
1619 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1620 continue
a.rottmann84e63352003-03-24 09:42:16 +00001621 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001622
drh8b727472009-01-19 18:18:40 +00001623case "$ac_dir" in
1624.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625*)
1626 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1627 # A ".." for each directory in $ac_dir_suffix.
1628 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1629 case $ac_top_builddir_sub in
1630 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1632 esac ;;
1633esac
1634ac_abs_top_builddir=$ac_pwd
1635ac_abs_builddir=$ac_pwd$ac_dir_suffix
1636# for backward compatibility:
1637ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001638
a.rottmann84e63352003-03-24 09:42:16 +00001639case $srcdir in
drh8b727472009-01-19 18:18:40 +00001640 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001641 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +00001642 ac_top_srcdir=$ac_top_builddir_sub
1643 ac_abs_top_srcdir=$ac_pwd ;;
1644 [\\/]* | ?:[\\/]* ) # Absolute name.
drh866108f2008-05-13 00:57:21 +00001645 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +00001646 ac_top_srcdir=$srcdir
1647 ac_abs_top_srcdir=$srcdir ;;
1648 *) # Relative name.
1649 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1650 ac_top_srcdir=$ac_top_build_prefix$srcdir
1651 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
drh866108f2008-05-13 00:57:21 +00001652esac
drh8b727472009-01-19 18:18:40 +00001653ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
drh866108f2008-05-13 00:57:21 +00001654
drh8b727472009-01-19 18:18:40 +00001655 cd "$ac_dir" || { ac_status=$?; continue; }
1656 # Check for guested configure.
1657 if test -f "$ac_srcdir/configure.gnu"; then
1658 echo &&
1659 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1660 elif test -f "$ac_srcdir/configure"; then
1661 echo &&
1662 $SHELL "$ac_srcdir/configure" --help=recursive
drh866108f2008-05-13 00:57:21 +00001663 else
drh8b727472009-01-19 18:18:40 +00001664 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1665 fi || ac_status=$?
1666 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001667 done
1668fi
1669
drh8b727472009-01-19 18:18:40 +00001670test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001671if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001672 cat <<\_ACEOF
drhbc7a22d2009-10-13 22:47:13 +00001673sqlite configure 3.6.19
drh934c5442009-04-13 09:09:24 +00001674generated by GNU Autoconf 2.62
drh71eb93e2001-09-28 01:34:43 +00001675
drh8b727472009-01-19 18:18:40 +00001676Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16772002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001678This configure script is free software; the Free Software Foundation
1679gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001680_ACEOF
drh8b727472009-01-19 18:18:40 +00001681 exit
drh71eb93e2001-09-28 01:34:43 +00001682fi
drh8b727472009-01-19 18:18:40 +00001683cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001684This file contains any messages produced by compilers while
1685running configure, to aid debugging if configure makes a mistake.
1686
drhbc7a22d2009-10-13 22:47:13 +00001687It was created by sqlite $as_me 3.6.19, which was
drh934c5442009-04-13 09:09:24 +00001688generated by GNU Autoconf 2.62. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001689
1690 $ $0 $@
1691
a.rottmann84e63352003-03-24 09:42:16 +00001692_ACEOF
drh8b727472009-01-19 18:18:40 +00001693exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00001694{
1695cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001696## --------- ##
1697## Platform. ##
1698## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001699
1700hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1701uname -m = `(uname -m) 2>/dev/null || echo unknown`
1702uname -r = `(uname -r) 2>/dev/null || echo unknown`
1703uname -s = `(uname -s) 2>/dev/null || echo unknown`
1704uname -v = `(uname -v) 2>/dev/null || echo unknown`
1705
1706/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1707/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1708
1709/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1710/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1711/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh8b727472009-01-19 18:18:40 +00001712/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00001713/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1714/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1715/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1716
drh71eb93e2001-09-28 01:34:43 +00001717_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001718
1719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720for as_dir in $PATH
1721do
1722 IFS=$as_save_IFS
1723 test -z "$as_dir" && as_dir=.
drh8b727472009-01-19 18:18:40 +00001724 $as_echo "PATH: $as_dir"
a.rottmann84e63352003-03-24 09:42:16 +00001725done
drh8b727472009-01-19 18:18:40 +00001726IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00001727
drh71eb93e2001-09-28 01:34:43 +00001728} >&5
1729
a.rottmann84e63352003-03-24 09:42:16 +00001730cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001731
a.rottmann84e63352003-03-24 09:42:16 +00001732
1733## ----------- ##
1734## Core tests. ##
1735## ----------- ##
1736
1737_ACEOF
1738
drh71eb93e2001-09-28 01:34:43 +00001739
1740# Keep a trace of the command line.
1741# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001742# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001743# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001744# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001745ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001746ac_configure_args0=
1747ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00001748ac_must_keep_next=false
1749for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001750do
a.rottmann84e63352003-03-24 09:42:16 +00001751 for ac_arg
1752 do
1753 case $ac_arg in
1754 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1755 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1756 | -silent | --silent | --silen | --sile | --sil)
1757 continue ;;
drh8b727472009-01-19 18:18:40 +00001758 *\'*)
1759 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00001760 esac
1761 case $ac_pass in
1762 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1763 2)
1764 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1765 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00001766 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00001767 else
a.rottmann964dbb12004-02-26 19:47:42 +00001768 case $ac_arg in
1769 *=* | --config-cache | -C | -disable-* | --disable-* \
1770 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1771 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1772 | -with-* | --with-* | -without-* | --without-* | --x)
1773 case "$ac_configure_args0 " in
1774 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1775 esac
1776 ;;
1777 -* ) ac_must_keep_next=true ;;
1778 esac
a.rottmann84e63352003-03-24 09:42:16 +00001779 fi
drh8b727472009-01-19 18:18:40 +00001780 ac_configure_args="$ac_configure_args '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00001781 ;;
1782 esac
1783 done
drh71eb93e2001-09-28 01:34:43 +00001784done
a.rottmann84e63352003-03-24 09:42:16 +00001785$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1786$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001787
1788# When interrupted or exit'd, cleanup temporary files, and complete
1789# config.log. We remove comments because anyway the quotes in there
1790# would cause problems or look ugly.
drh8b727472009-01-19 18:18:40 +00001791# WARNING: Use '\'' to represent an apostrophe within the trap.
1792# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00001793trap 'exit_status=$?
1794 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001795 {
1796 echo
1797
1798 cat <<\_ASBOX
1799## ---------------- ##
1800## Cache variables. ##
1801## ---------------- ##
1802_ASBOX
1803 echo
1804 # The following way of writing the cache mishandles newlines in values,
drh8b727472009-01-19 18:18:40 +00001805(
1806 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1807 eval ac_val=\$$ac_var
1808 case $ac_val in #(
1809 *${as_nl}*)
1810 case $ac_var in #(
drh934c5442009-04-13 09:09:24 +00001811 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1812$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
drh8b727472009-01-19 18:18:40 +00001813 esac
1814 case $ac_var in #(
1815 _ | IFS | as_nl) ;; #(
1816 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1817 *) $as_unset $ac_var ;;
1818 esac ;;
1819 esac
1820 done
drh71eb93e2001-09-28 01:34:43 +00001821 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +00001822 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1823 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00001824 sed -n \
drh8b727472009-01-19 18:18:40 +00001825 "s/'\''/'\''\\\\'\'''\''/g;
1826 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1827 ;; #(
drh866108f2008-05-13 00:57:21 +00001828 *)
drh8b727472009-01-19 18:18:40 +00001829 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh866108f2008-05-13 00:57:21 +00001830 ;;
drh8b727472009-01-19 18:18:40 +00001831 esac |
1832 sort
1833)
a.rottmann84e63352003-03-24 09:42:16 +00001834 echo
1835
1836 cat <<\_ASBOX
1837## ----------------- ##
1838## Output variables. ##
1839## ----------------- ##
1840_ASBOX
1841 echo
1842 for ac_var in $ac_subst_vars
1843 do
drh8b727472009-01-19 18:18:40 +00001844 eval ac_val=\$$ac_var
1845 case $ac_val in
1846 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1847 esac
1848 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001849 done | sort
1850 echo
1851
1852 if test -n "$ac_subst_files"; then
1853 cat <<\_ASBOX
drh8b727472009-01-19 18:18:40 +00001854## ------------------- ##
1855## File substitutions. ##
1856## ------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00001857_ASBOX
1858 echo
1859 for ac_var in $ac_subst_files
1860 do
drh8b727472009-01-19 18:18:40 +00001861 eval ac_val=\$$ac_var
1862 case $ac_val in
1863 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1864 esac
1865 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001866 done | sort
1867 echo
1868 fi
1869
1870 if test -s confdefs.h; then
1871 cat <<\_ASBOX
1872## ----------- ##
1873## confdefs.h. ##
1874## ----------- ##
1875_ASBOX
1876 echo
drh8b727472009-01-19 18:18:40 +00001877 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00001878 echo
1879 fi
1880 test "$ac_signal" != 0 &&
drh8b727472009-01-19 18:18:40 +00001881 $as_echo "$as_me: caught signal $ac_signal"
1882 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00001883 } >&5
drh8b727472009-01-19 18:18:40 +00001884 rm -f core *.core core.conftest.* &&
1885 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001886 exit $exit_status
drh8b727472009-01-19 18:18:40 +00001887' 0
drh71eb93e2001-09-28 01:34:43 +00001888for ac_signal in 1 2 13 15; do
1889 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1890done
1891ac_signal=0
1892
1893# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh8b727472009-01-19 18:18:40 +00001894rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00001895
a.rottmann84e63352003-03-24 09:42:16 +00001896# Predefined preprocessor variables.
1897
1898cat >>confdefs.h <<_ACEOF
1899#define PACKAGE_NAME "$PACKAGE_NAME"
1900_ACEOF
1901
1902
1903cat >>confdefs.h <<_ACEOF
1904#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1905_ACEOF
1906
1907
1908cat >>confdefs.h <<_ACEOF
1909#define PACKAGE_VERSION "$PACKAGE_VERSION"
1910_ACEOF
1911
1912
1913cat >>confdefs.h <<_ACEOF
1914#define PACKAGE_STRING "$PACKAGE_STRING"
1915_ACEOF
1916
1917
1918cat >>confdefs.h <<_ACEOF
1919#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1920_ACEOF
1921
1922
drh71eb93e2001-09-28 01:34:43 +00001923# Let the site file select an alternate cache file if it wants to.
drh8b727472009-01-19 18:18:40 +00001924# Prefer an explicitly selected file to automatically selected ones.
1925ac_site_file1=NONE
1926ac_site_file2=NONE
1927if test -n "$CONFIG_SITE"; then
1928 ac_site_file1=$CONFIG_SITE
1929elif test "x$prefix" != xNONE; then
1930 ac_site_file1=$prefix/share/config.site
1931 ac_site_file2=$prefix/etc/config.site
1932else
1933 ac_site_file1=$ac_default_prefix/share/config.site
1934 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00001935fi
drh8b727472009-01-19 18:18:40 +00001936for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1937do
1938 test "x$ac_site_file" = xNONE && continue
drh75897232000-05-29 14:26:00 +00001939 if test -r "$ac_site_file"; then
drh8b727472009-01-19 18:18:40 +00001940 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1941$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001942 sed 's/^/| /' "$ac_site_file" >&5
drh75897232000-05-29 14:26:00 +00001943 . "$ac_site_file"
1944 fi
1945done
1946
1947if test -r "$cache_file"; then
drh71eb93e2001-09-28 01:34:43 +00001948 # Some versions of bash will fail to source /dev/null (special
1949 # files actually), so we avoid doing that.
1950 if test -f "$cache_file"; then
drh8b727472009-01-19 18:18:40 +00001951 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1952$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00001953 case $cache_file in
drh8b727472009-01-19 18:18:40 +00001954 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1955 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00001956 esac
1957 fi
drh75897232000-05-29 14:26:00 +00001958else
drh8b727472009-01-19 18:18:40 +00001959 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1960$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00001961 >$cache_file
1962fi
1963
1964# Check that the precious variables saved in the cache have kept the same
1965# value.
1966ac_cache_corrupted=false
drh8b727472009-01-19 18:18:40 +00001967for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00001968 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1969 eval ac_new_set=\$ac_env_${ac_var}_set
drh8b727472009-01-19 18:18:40 +00001970 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1971 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00001972 case $ac_old_set,$ac_new_set in
1973 set,)
drh8b727472009-01-19 18:18:40 +00001974 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1975$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001976 ac_cache_corrupted=: ;;
1977 ,set)
drh8b727472009-01-19 18:18:40 +00001978 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1979$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001980 ac_cache_corrupted=: ;;
1981 ,);;
1982 *)
1983 if test "x$ac_old_val" != "x$ac_new_val"; then
drh8b727472009-01-19 18:18:40 +00001984 # differences in whitespace do not lead to failure.
1985 ac_old_val_w=`echo x $ac_old_val`
1986 ac_new_val_w=`echo x $ac_new_val`
1987 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1988 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1989$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1990 ac_cache_corrupted=:
1991 else
1992 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1993$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1994 eval $ac_var=\$ac_old_val
1995 fi
1996 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1997$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1998 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1999$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002000 fi;;
2001 esac
a.rottmann84e63352003-03-24 09:42:16 +00002002 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00002003 if test "$ac_new_set" = set; then
2004 case $ac_new_val in
drh8b727472009-01-19 18:18:40 +00002005 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002006 *) ac_arg=$ac_var=$ac_new_val ;;
2007 esac
2008 case " $ac_configure_args " in
2009 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2010 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002011 esac
2012 fi
2013done
2014if $ac_cache_corrupted; then
drh8b727472009-01-19 18:18:40 +00002015 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2016$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2017 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2018$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002019 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00002020fi
2021
drh8b727472009-01-19 18:18:40 +00002022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
drh75897232000-05-29 14:26:00 +00002046ac_ext=c
drh75897232000-05-29 14:26:00 +00002047ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002051
a.rottmann84e63352003-03-24 09:42:16 +00002052
2053
drh04446102009-06-15 00:04:06 +00002054sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
vapierfaa68db2009-04-01 07:38:31 +00002055if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2056{ { $as_echo "$as_me:$LINENO: error: configure script is out of date:
2057 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2058 top level VERSION file = $sqlite_version_sanity_check
2059please regen with autoconf" >&5
2060$as_echo "$as_me: error: configure script is out of date:
2061 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2062 top level VERSION file = $sqlite_version_sanity_check
2063please regen with autoconf" >&2;}
2064 { (exit 1); exit 1; }; }
2065fi
2066
drh75897232000-05-29 14:26:00 +00002067# The following RCS revision string applies to configure.in
drhcee4c932009-08-24 19:37:20 +00002068# $Revision: 1.56 $
drh75897232000-05-29 14:26:00 +00002069
2070#########
drh71eb93e2001-09-28 01:34:43 +00002071# Programs needed
drh75897232000-05-29 14:26:00 +00002072#
mlcreech636a9952008-05-05 22:52:56 +00002073case `pwd` in
2074 *\ * | *\ *)
drh8b727472009-01-19 18:18:40 +00002075 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2076$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00002077esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002078
mlcreech94984912008-03-04 19:03:08 +00002079
mlcreech636a9952008-05-05 22:52:56 +00002080
vapier6acb2cf2009-01-28 04:46:28 +00002081macro_version='2.2.6'
2082macro_revision='1.3012'
a.rottmann9bc8b932004-02-29 15:18:31 +00002083
mlcreech94984912008-03-04 19:03:08 +00002084
mlcreech94984912008-03-04 19:03:08 +00002085
a.rottmann9bc8b932004-02-29 15:18:31 +00002086
mlcreech636a9952008-05-05 22:52:56 +00002087
2088
2089
2090
2091
2092
2093
2094
2095
2096ltmain="$ac_aux_dir/ltmain.sh"
2097
drh71eb93e2001-09-28 01:34:43 +00002098ac_aux_dir=
drh8b727472009-01-19 18:18:40 +00002099for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2100 if test -f "$ac_dir/install-sh"; then
drh71eb93e2001-09-28 01:34:43 +00002101 ac_aux_dir=$ac_dir
2102 ac_install_sh="$ac_aux_dir/install-sh -c"
2103 break
drh8b727472009-01-19 18:18:40 +00002104 elif test -f "$ac_dir/install.sh"; then
drh71eb93e2001-09-28 01:34:43 +00002105 ac_aux_dir=$ac_dir
2106 ac_install_sh="$ac_aux_dir/install.sh -c"
2107 break
drh8b727472009-01-19 18:18:40 +00002108 elif test -f "$ac_dir/shtool"; then
drh71eb93e2001-09-28 01:34:43 +00002109 ac_aux_dir=$ac_dir
2110 ac_install_sh="$ac_aux_dir/shtool install -c"
2111 break
2112 fi
2113done
2114if test -z "$ac_aux_dir"; then
drh8b727472009-01-19 18:18:40 +00002115 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2116$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002117 { (exit 1); exit 1; }; }
2118fi
drh8b727472009-01-19 18:18:40 +00002119
2120# These three variables are undocumented and unsupported,
2121# and are intended to be withdrawn in a future Autoconf release.
2122# They can cause serious problems if a builder's source tree is in a directory
2123# whose full name contains unusual characters.
2124ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2125ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2126ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2127
drh71eb93e2001-09-28 01:34:43 +00002128
2129# Make sure we can run config.sub.
drh8b727472009-01-19 18:18:40 +00002130$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2131 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2132$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002133 { (exit 1); exit 1; }; }
2134
drh8b727472009-01-19 18:18:40 +00002135{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2136$as_echo_n "checking build system type... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002137if test "${ac_cv_build+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002138 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002139else
drh8b727472009-01-19 18:18:40 +00002140 ac_build_alias=$build_alias
2141test "x$ac_build_alias" = x &&
2142 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2143test "x$ac_build_alias" = x &&
2144 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2145$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002146 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00002147ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2148 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2149$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002150 { (exit 1); exit 1; }; }
2151
2152fi
drh8b727472009-01-19 18:18:40 +00002153{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2154$as_echo "$ac_cv_build" >&6; }
2155case $ac_cv_build in
2156*-*-*) ;;
2157*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2158$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2159 { (exit 1); exit 1; }; };;
2160esac
drh71eb93e2001-09-28 01:34:43 +00002161build=$ac_cv_build
drh8b727472009-01-19 18:18:40 +00002162ac_save_IFS=$IFS; IFS='-'
2163set x $ac_cv_build
2164shift
2165build_cpu=$1
2166build_vendor=$2
2167shift; shift
2168# Remember, the first character of IFS is used to create $*,
2169# except with old shells:
2170build_os=$*
2171IFS=$ac_save_IFS
2172case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002173
a.rottmann84e63352003-03-24 09:42:16 +00002174
drh8b727472009-01-19 18:18:40 +00002175{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2176$as_echo_n "checking host system type... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002177if test "${ac_cv_host+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002178 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002179else
drh8b727472009-01-19 18:18:40 +00002180 if test "x$host_alias" = x; then
2181 ac_cv_host=$ac_cv_build
2182else
2183 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2184 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2185$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002186 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00002187fi
drh71eb93e2001-09-28 01:34:43 +00002188
2189fi
drh8b727472009-01-19 18:18:40 +00002190{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2191$as_echo "$ac_cv_host" >&6; }
2192case $ac_cv_host in
2193*-*-*) ;;
2194*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2195$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2196 { (exit 1); exit 1; }; };;
2197esac
drh71eb93e2001-09-28 01:34:43 +00002198host=$ac_cv_host
drh8b727472009-01-19 18:18:40 +00002199ac_save_IFS=$IFS; IFS='-'
2200set x $ac_cv_host
2201shift
2202host_cpu=$1
2203host_vendor=$2
2204shift; shift
2205# Remember, the first character of IFS is used to create $*,
2206# except with old shells:
2207host_os=$*
2208IFS=$ac_save_IFS
2209case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002210
a.rottmann84e63352003-03-24 09:42:16 +00002211
drh71eb93e2001-09-28 01:34:43 +00002212ac_ext=c
2213ac_cpp='$CPP $CPPFLAGS'
2214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2216ac_compiler_gnu=$ac_cv_c_compiler_gnu
2217if test -n "$ac_tool_prefix"; then
2218 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2219set dummy ${ac_tool_prefix}gcc; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002220{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2221$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002222if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002223 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002224else
2225 if test -n "$CC"; then
2226 ac_cv_prog_CC="$CC" # Let the user override the test.
2227else
a.rottmann84e63352003-03-24 09:42:16 +00002228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229for as_dir in $PATH
2230do
2231 IFS=$as_save_IFS
2232 test -z "$as_dir" && as_dir=.
2233 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002234 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 +00002235 ac_cv_prog_CC="${ac_tool_prefix}gcc"
drh8b727472009-01-19 18:18:40 +00002236 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002237 break 2
2238 fi
2239done
drh71eb93e2001-09-28 01:34:43 +00002240done
drh8b727472009-01-19 18:18:40 +00002241IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002242
2243fi
2244fi
2245CC=$ac_cv_prog_CC
2246if test -n "$CC"; then
drh8b727472009-01-19 18:18:40 +00002247 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2248$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002249else
drh8b727472009-01-19 18:18:40 +00002250 { $as_echo "$as_me:$LINENO: result: no" >&5
2251$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002252fi
2253
drh8b727472009-01-19 18:18:40 +00002254
drh71eb93e2001-09-28 01:34:43 +00002255fi
2256if test -z "$ac_cv_prog_CC"; then
2257 ac_ct_CC=$CC
2258 # Extract the first word of "gcc", so it can be a program name with args.
2259set dummy gcc; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002260{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2261$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002262if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002263 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002264else
2265 if test -n "$ac_ct_CC"; then
2266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2267else
a.rottmann84e63352003-03-24 09:42:16 +00002268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269for as_dir in $PATH
2270do
2271 IFS=$as_save_IFS
2272 test -z "$as_dir" && as_dir=.
2273 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002274 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 +00002275 ac_cv_prog_ac_ct_CC="gcc"
drh8b727472009-01-19 18:18:40 +00002276 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002277 break 2
2278 fi
2279done
drh71eb93e2001-09-28 01:34:43 +00002280done
drh8b727472009-01-19 18:18:40 +00002281IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002282
2283fi
2284fi
2285ac_ct_CC=$ac_cv_prog_ac_ct_CC
2286if test -n "$ac_ct_CC"; then
drh8b727472009-01-19 18:18:40 +00002287 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2288$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002289else
drh8b727472009-01-19 18:18:40 +00002290 { $as_echo "$as_me:$LINENO: result: no" >&5
2291$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002292fi
2293
drh8b727472009-01-19 18:18:40 +00002294 if test "x$ac_ct_CC" = x; then
2295 CC=""
2296 else
2297 case $cross_compiling:$ac_tool_warned in
2298yes:)
drh934c5442009-04-13 09:09:24 +00002299{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2300whose name does not start with the host triplet. If you think this
2301configuration is useful to you, please write to autoconf@gnu.org." >&5
2302$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2303whose name does not start with the host triplet. If you think this
2304configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00002305ac_tool_warned=yes ;;
2306esac
2307 CC=$ac_ct_CC
2308 fi
drh71eb93e2001-09-28 01:34:43 +00002309else
2310 CC="$ac_cv_prog_CC"
2311fi
2312
2313if test -z "$CC"; then
drh8b727472009-01-19 18:18:40 +00002314 if test -n "$ac_tool_prefix"; then
2315 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002316set dummy ${ac_tool_prefix}cc; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002317{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2318$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002319if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002320 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002321else
2322 if test -n "$CC"; then
2323 ac_cv_prog_CC="$CC" # Let the user override the test.
2324else
a.rottmann84e63352003-03-24 09:42:16 +00002325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326for as_dir in $PATH
2327do
2328 IFS=$as_save_IFS
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002331 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 +00002332 ac_cv_prog_CC="${ac_tool_prefix}cc"
drh8b727472009-01-19 18:18:40 +00002333 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002334 break 2
2335 fi
2336done
drh71eb93e2001-09-28 01:34:43 +00002337done
drh8b727472009-01-19 18:18:40 +00002338IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002339
2340fi
2341fi
2342CC=$ac_cv_prog_CC
2343if test -n "$CC"; then
drh8b727472009-01-19 18:18:40 +00002344 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2345$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002346else
drh8b727472009-01-19 18:18:40 +00002347 { $as_echo "$as_me:$LINENO: result: no" >&5
2348$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002349fi
2350
drh8b727472009-01-19 18:18:40 +00002351
a.rottmann84e63352003-03-24 09:42:16 +00002352 fi
drh71eb93e2001-09-28 01:34:43 +00002353fi
2354if test -z "$CC"; then
2355 # Extract the first word of "cc", so it can be a program name with args.
2356set dummy cc; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002357{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2358$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002359if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002360 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002361else
2362 if test -n "$CC"; then
2363 ac_cv_prog_CC="$CC" # Let the user override the test.
2364else
2365 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367for as_dir in $PATH
2368do
2369 IFS=$as_save_IFS
2370 test -z "$as_dir" && as_dir=.
2371 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002372 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 +00002373 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2374 ac_prog_rejected=yes
2375 continue
2376 fi
2377 ac_cv_prog_CC="cc"
drh8b727472009-01-19 18:18:40 +00002378 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002379 break 2
2380 fi
2381done
drh71eb93e2001-09-28 01:34:43 +00002382done
drh8b727472009-01-19 18:18:40 +00002383IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002384
2385if test $ac_prog_rejected = yes; then
2386 # We found a bogon in the path, so make sure we never use it.
2387 set dummy $ac_cv_prog_CC
2388 shift
2389 if test $# != 0; then
2390 # We chose a different compiler from the bogus one.
2391 # However, it has the same basename, so the bogon will be chosen
2392 # first if we set CC to just the basename; use the full file name.
2393 shift
a.rottmann84e63352003-03-24 09:42:16 +00002394 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002395 fi
2396fi
2397fi
2398fi
2399CC=$ac_cv_prog_CC
2400if test -n "$CC"; then
drh8b727472009-01-19 18:18:40 +00002401 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2402$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002403else
drh8b727472009-01-19 18:18:40 +00002404 { $as_echo "$as_me:$LINENO: result: no" >&5
2405$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002406fi
2407
drh8b727472009-01-19 18:18:40 +00002408
drh71eb93e2001-09-28 01:34:43 +00002409fi
2410if test -z "$CC"; then
2411 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00002412 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002413 do
2414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2415set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002416{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2417$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002418if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002419 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002420else
2421 if test -n "$CC"; then
2422 ac_cv_prog_CC="$CC" # Let the user override the test.
2423else
a.rottmann84e63352003-03-24 09:42:16 +00002424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425for as_dir in $PATH
2426do
2427 IFS=$as_save_IFS
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002430 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 +00002431 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
drh8b727472009-01-19 18:18:40 +00002432 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002433 break 2
2434 fi
2435done
drh71eb93e2001-09-28 01:34:43 +00002436done
drh8b727472009-01-19 18:18:40 +00002437IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002438
2439fi
2440fi
2441CC=$ac_cv_prog_CC
2442if test -n "$CC"; then
drh8b727472009-01-19 18:18:40 +00002443 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2444$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002445else
drh8b727472009-01-19 18:18:40 +00002446 { $as_echo "$as_me:$LINENO: result: no" >&5
2447$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002448fi
2449
drh8b727472009-01-19 18:18:40 +00002450
drh71eb93e2001-09-28 01:34:43 +00002451 test -n "$CC" && break
2452 done
2453fi
2454if test -z "$CC"; then
2455 ac_ct_CC=$CC
drh8b727472009-01-19 18:18:40 +00002456 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002457do
2458 # Extract the first word of "$ac_prog", so it can be a program name with args.
2459set dummy $ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002460{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2461$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002462if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002463 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002464else
2465 if test -n "$ac_ct_CC"; then
2466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2467else
a.rottmann84e63352003-03-24 09:42:16 +00002468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469for as_dir in $PATH
2470do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002474 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 +00002475 ac_cv_prog_ac_ct_CC="$ac_prog"
drh8b727472009-01-19 18:18:40 +00002476 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002477 break 2
2478 fi
2479done
drh71eb93e2001-09-28 01:34:43 +00002480done
drh8b727472009-01-19 18:18:40 +00002481IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002482
2483fi
2484fi
2485ac_ct_CC=$ac_cv_prog_ac_ct_CC
2486if test -n "$ac_ct_CC"; then
drh8b727472009-01-19 18:18:40 +00002487 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2488$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002489else
drh8b727472009-01-19 18:18:40 +00002490 { $as_echo "$as_me:$LINENO: result: no" >&5
2491$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002492fi
2493
drh8b727472009-01-19 18:18:40 +00002494
drh71eb93e2001-09-28 01:34:43 +00002495 test -n "$ac_ct_CC" && break
2496done
2497
drh8b727472009-01-19 18:18:40 +00002498 if test "x$ac_ct_CC" = x; then
2499 CC=""
2500 else
2501 case $cross_compiling:$ac_tool_warned in
2502yes:)
drh934c5442009-04-13 09:09:24 +00002503{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2504whose name does not start with the host triplet. If you think this
2505configuration is useful to you, please write to autoconf@gnu.org." >&5
2506$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2507whose name does not start with the host triplet. If you think this
2508configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00002509ac_tool_warned=yes ;;
2510esac
2511 CC=$ac_ct_CC
2512 fi
drh71eb93e2001-09-28 01:34:43 +00002513fi
2514
2515fi
2516
a.rottmann84e63352003-03-24 09:42:16 +00002517
drh934c5442009-04-13 09:09:24 +00002518test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
a.rottmann84e63352003-03-24 09:42:16 +00002519See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00002520$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
a.rottmann84e63352003-03-24 09:42:16 +00002521See \`config.log' for more details." >&2;}
drh934c5442009-04-13 09:09:24 +00002522 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002523
2524# Provide some information about the compiler.
drh8b727472009-01-19 18:18:40 +00002525$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2526set X $ac_compile
2527ac_compiler=$2
2528{ (ac_try="$ac_compiler --version >&5"
2529case "(($ac_try" in
2530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531 *) ac_try_echo=$ac_try;;
2532esac
2533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2534$as_echo "$ac_try_echo") >&5
2535 (eval "$ac_compiler --version >&5") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002536 ac_status=$?
drh8b727472009-01-19 18:18:40 +00002537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002538 (exit $ac_status); }
drh8b727472009-01-19 18:18:40 +00002539{ (ac_try="$ac_compiler -v >&5"
2540case "(($ac_try" in
2541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542 *) ac_try_echo=$ac_try;;
2543esac
2544eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2545$as_echo "$ac_try_echo") >&5
2546 (eval "$ac_compiler -v >&5") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002547 ac_status=$?
drh8b727472009-01-19 18:18:40 +00002548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002549 (exit $ac_status); }
drh8b727472009-01-19 18:18:40 +00002550{ (ac_try="$ac_compiler -V >&5"
2551case "(($ac_try" in
2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553 *) ac_try_echo=$ac_try;;
2554esac
2555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2556$as_echo "$ac_try_echo") >&5
2557 (eval "$ac_compiler -V >&5") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002558 ac_status=$?
drh8b727472009-01-19 18:18:40 +00002559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002560 (exit $ac_status); }
2561
2562cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002563/* confdefs.h. */
2564_ACEOF
2565cat confdefs.h >>conftest.$ac_ext
2566cat >>conftest.$ac_ext <<_ACEOF
2567/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002568
2569int
2570main ()
2571{
2572
2573 ;
2574 return 0;
2575}
2576_ACEOF
2577ac_clean_files_save=$ac_clean_files
drh8b727472009-01-19 18:18:40 +00002578ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002579# Try to create an executable without -o first, disregard a.out.
2580# It will help us diagnose broken compilers, and finding out an intuition
2581# of exeext.
drh8b727472009-01-19 18:18:40 +00002582{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2583$as_echo_n "checking for C compiler default output file name... " >&6; }
2584ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
drh866108f2008-05-13 00:57:21 +00002585
drh8b727472009-01-19 18:18:40 +00002586# The possible output files:
2587ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2588
2589ac_rmfiles=
2590for ac_file in $ac_files
2591do
2592 case $ac_file in
2593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2594 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2595 esac
2596done
2597rm -f $ac_rmfiles
2598
2599if { (ac_try="$ac_link_default"
2600case "(($ac_try" in
2601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2602 *) ac_try_echo=$ac_try;;
2603esac
2604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2605$as_echo "$ac_try_echo") >&5
2606 (eval "$ac_link_default") 2>&5
2607 ac_status=$?
2608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; then
2610 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2611# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2612# in a Makefile. We should not override ac_cv_exeext if it was cached,
2613# so that the user can short-circuit this test for compilers unknown to
2614# Autoconf.
2615for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002616do
2617 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002618 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002619 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002620 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002621 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002622 # We found the default executable, but exeext='' is most
2623 # certainly right.
2624 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002625 *.* )
drh8b727472009-01-19 18:18:40 +00002626 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2627 then :; else
2628 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2629 fi
2630 # We set ac_cv_exeext here because the later test for it is not
2631 # safe: cross compilers may not add the suffix if given an `-o'
2632 # argument, so we may need to know it at that point already.
2633 # Even if this section looks crufty: it has the advantage of
2634 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002635 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002636 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002637 break;;
drh71eb93e2001-09-28 01:34:43 +00002638 esac
2639done
drh8b727472009-01-19 18:18:40 +00002640test "$ac_cv_exeext" = no && ac_cv_exeext=
2641
drh71eb93e2001-09-28 01:34:43 +00002642else
drh8b727472009-01-19 18:18:40 +00002643 ac_file=''
2644fi
2645
2646{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2647$as_echo "$ac_file" >&6; }
2648if test -z "$ac_file"; then
2649 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002650sed 's/^/| /' conftest.$ac_ext >&5
2651
drh8b727472009-01-19 18:18:40 +00002652{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
a.rottmann84e63352003-03-24 09:42:16 +00002653See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00002654$as_echo "$as_me: error: C compiler cannot create executables
a.rottmann84e63352003-03-24 09:42:16 +00002655See \`config.log' for more details." >&2;}
drh934c5442009-04-13 09:09:24 +00002656 { (exit 77); exit 77; }; }
drh71eb93e2001-09-28 01:34:43 +00002657fi
2658
2659ac_exeext=$ac_cv_exeext
drh71eb93e2001-09-28 01:34:43 +00002660
drh8b727472009-01-19 18:18:40 +00002661# Check that the compiler produces executables we can run. If not, either
drh71eb93e2001-09-28 01:34:43 +00002662# the compiler is broken, or we cross compile.
drh8b727472009-01-19 18:18:40 +00002663{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2664$as_echo_n "checking whether the C compiler works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002665# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2666# If not cross compiling, check that we can run a simple program.
2667if test "$cross_compiling" != yes; then
2668 if { ac_try='./$ac_file'
drh8b727472009-01-19 18:18:40 +00002669 { (case "(($ac_try" in
2670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671 *) ac_try_echo=$ac_try;;
2672esac
2673eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2674$as_echo "$ac_try_echo") >&5
2675 (eval "$ac_try") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002676 ac_status=$?
drh8b727472009-01-19 18:18:40 +00002677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002678 (exit $ac_status); }; }; then
2679 cross_compiling=no
2680 else
2681 if test "$cross_compiling" = maybe; then
2682 cross_compiling=yes
2683 else
drh934c5442009-04-13 09:09:24 +00002684 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002685If you meant to cross compile, use \`--host'.
2686See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00002687$as_echo "$as_me: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002688If you meant to cross compile, use \`--host'.
2689See \`config.log' for more details." >&2;}
drh934c5442009-04-13 09:09:24 +00002690 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002691 fi
2692 fi
2693fi
drh8b727472009-01-19 18:18:40 +00002694{ $as_echo "$as_me:$LINENO: result: yes" >&5
2695$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002696
drh8b727472009-01-19 18:18:40 +00002697rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002698ac_clean_files=$ac_clean_files_save
drh8b727472009-01-19 18:18:40 +00002699# Check that the compiler produces executables we can run. If not, either
drh71eb93e2001-09-28 01:34:43 +00002700# the compiler is broken, or we cross compile.
drh8b727472009-01-19 18:18:40 +00002701{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2702$as_echo_n "checking whether we are cross compiling... " >&6; }
2703{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2704$as_echo "$cross_compiling" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002705
drh8b727472009-01-19 18:18:40 +00002706{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2707$as_echo_n "checking for suffix of executables... " >&6; }
2708if { (ac_try="$ac_link"
2709case "(($ac_try" in
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2712esac
2713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2714$as_echo "$ac_try_echo") >&5
2715 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002716 ac_status=$?
drh8b727472009-01-19 18:18:40 +00002717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002718 (exit $ac_status); }; then
2719 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2720# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2721# work properly (i.e., refer to `conftest.exe'), while it won't with
2722# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002723for ac_file in conftest.exe conftest conftest.*; do
2724 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002725 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002726 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002727 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00002728 break;;
drh71eb93e2001-09-28 01:34:43 +00002729 * ) break;;
2730 esac
2731done
2732else
drh934c5442009-04-13 09:09:24 +00002733 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
a.rottmann84e63352003-03-24 09:42:16 +00002734See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00002735$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
a.rottmann84e63352003-03-24 09:42:16 +00002736See \`config.log' for more details." >&2;}
drh934c5442009-04-13 09:09:24 +00002737 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002738fi
2739
2740rm -f conftest$ac_cv_exeext
drh8b727472009-01-19 18:18:40 +00002741{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2742$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002743
2744rm -f conftest.$ac_ext
2745EXEEXT=$ac_cv_exeext
2746ac_exeext=$EXEEXT
drh8b727472009-01-19 18:18:40 +00002747{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2748$as_echo_n "checking for suffix of object files... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002749if test "${ac_cv_objext+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002750 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002751else
2752 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002753/* confdefs.h. */
2754_ACEOF
2755cat confdefs.h >>conftest.$ac_ext
2756cat >>conftest.$ac_ext <<_ACEOF
2757/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002758
2759int
2760main ()
2761{
2762
2763 ;
2764 return 0;
2765}
2766_ACEOF
2767rm -f conftest.o conftest.obj
drh8b727472009-01-19 18:18:40 +00002768if { (ac_try="$ac_compile"
2769case "(($ac_try" in
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2772esac
2773eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2774$as_echo "$ac_try_echo") >&5
2775 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002776 ac_status=$?
drh8b727472009-01-19 18:18:40 +00002777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002778 (exit $ac_status); }; then
drh8b727472009-01-19 18:18:40 +00002779 for ac_file in conftest.o conftest.obj conftest.*; do
2780 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00002781 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00002783 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2784 break;;
2785 esac
2786done
2787else
drh8b727472009-01-19 18:18:40 +00002788 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002789sed 's/^/| /' conftest.$ac_ext >&5
2790
drh8b727472009-01-19 18:18:40 +00002791{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
a.rottmann84e63352003-03-24 09:42:16 +00002792See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00002793$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
a.rottmann84e63352003-03-24 09:42:16 +00002794See \`config.log' for more details." >&2;}
drh934c5442009-04-13 09:09:24 +00002795 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002796fi
2797
2798rm -f conftest.$ac_cv_objext conftest.$ac_ext
2799fi
drh8b727472009-01-19 18:18:40 +00002800{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2801$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002802OBJEXT=$ac_cv_objext
2803ac_objext=$OBJEXT
drh8b727472009-01-19 18:18:40 +00002804{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2805$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002806if test "${ac_cv_c_compiler_gnu+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002807 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002808else
2809 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002810/* confdefs.h. */
2811_ACEOF
2812cat confdefs.h >>conftest.$ac_ext
2813cat >>conftest.$ac_ext <<_ACEOF
2814/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002815
2816int
2817main ()
2818{
2819#ifndef __GNUC__
2820 choke me
2821#endif
2822
2823 ;
2824 return 0;
2825}
2826_ACEOF
2827rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00002828if { (ac_try="$ac_compile"
2829case "(($ac_try" in
2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831 *) ac_try_echo=$ac_try;;
2832esac
2833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2834$as_echo "$ac_try_echo") >&5
2835 (eval "$ac_compile") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002836 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002837 grep -v '^ *+' conftest.er1 >conftest.err
2838 rm -f conftest.er1
2839 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00002840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } && {
2842 test -z "$ac_c_werror_flag" ||
2843 test ! -s conftest.err
2844 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002845 ac_compiler_gnu=yes
2846else
drh8b727472009-01-19 18:18:40 +00002847 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002848sed 's/^/| /' conftest.$ac_ext >&5
2849
drh8b727472009-01-19 18:18:40 +00002850 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00002851fi
drh8b727472009-01-19 18:18:40 +00002852
2853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002854ac_cv_c_compiler_gnu=$ac_compiler_gnu
2855
2856fi
drh8b727472009-01-19 18:18:40 +00002857{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2858$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2859if test $ac_compiler_gnu = yes; then
2860 GCC=yes
2861else
2862 GCC=
2863fi
drh71eb93e2001-09-28 01:34:43 +00002864ac_test_CFLAGS=${CFLAGS+set}
2865ac_save_CFLAGS=$CFLAGS
drh8b727472009-01-19 18:18:40 +00002866{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2867$as_echo_n "checking whether $CC accepts -g... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002868if test "${ac_cv_prog_cc_g+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002869 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002870else
drh8b727472009-01-19 18:18:40 +00002871 ac_save_c_werror_flag=$ac_c_werror_flag
2872 ac_c_werror_flag=yes
2873 ac_cv_prog_cc_g=no
2874 CFLAGS="-g"
2875 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002876/* confdefs.h. */
2877_ACEOF
2878cat confdefs.h >>conftest.$ac_ext
2879cat >>conftest.$ac_ext <<_ACEOF
2880/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002881
2882int
2883main ()
2884{
2885
2886 ;
2887 return 0;
2888}
2889_ACEOF
2890rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00002891if { (ac_try="$ac_compile"
2892case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2895esac
2896eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2897$as_echo "$ac_try_echo") >&5
2898 (eval "$ac_compile") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002899 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002900 grep -v '^ *+' conftest.er1 >conftest.err
2901 rm -f conftest.er1
2902 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00002903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } && {
2905 test -z "$ac_c_werror_flag" ||
2906 test ! -s conftest.err
2907 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002908 ac_cv_prog_cc_g=yes
2909else
drh8b727472009-01-19 18:18:40 +00002910 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002911sed 's/^/| /' conftest.$ac_ext >&5
2912
drh8b727472009-01-19 18:18:40 +00002913 CFLAGS=""
2914 cat >conftest.$ac_ext <<_ACEOF
2915/* confdefs.h. */
2916_ACEOF
2917cat confdefs.h >>conftest.$ac_ext
2918cat >>conftest.$ac_ext <<_ACEOF
2919/* end confdefs.h. */
2920
2921int
2922main ()
2923{
2924
2925 ;
2926 return 0;
2927}
2928_ACEOF
2929rm -f conftest.$ac_objext
2930if { (ac_try="$ac_compile"
2931case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2934esac
2935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2936$as_echo "$ac_try_echo") >&5
2937 (eval "$ac_compile") 2>conftest.er1
2938 ac_status=$?
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
2942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } && {
2944 test -z "$ac_c_werror_flag" ||
2945 test ! -s conftest.err
2946 } && test -s conftest.$ac_objext; then
2947 :
2948else
2949 $as_echo "$as_me: failed program was:" >&5
2950sed 's/^/| /' conftest.$ac_ext >&5
2951
2952 ac_c_werror_flag=$ac_save_c_werror_flag
2953 CFLAGS="-g"
2954 cat >conftest.$ac_ext <<_ACEOF
2955/* confdefs.h. */
2956_ACEOF
2957cat confdefs.h >>conftest.$ac_ext
2958cat >>conftest.$ac_ext <<_ACEOF
2959/* end confdefs.h. */
2960
2961int
2962main ()
2963{
2964
2965 ;
2966 return 0;
2967}
2968_ACEOF
2969rm -f conftest.$ac_objext
2970if { (ac_try="$ac_compile"
2971case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2974esac
2975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2976$as_echo "$ac_try_echo") >&5
2977 (eval "$ac_compile") 2>conftest.er1
2978 ac_status=$?
2979 grep -v '^ *+' conftest.er1 >conftest.err
2980 rm -f conftest.er1
2981 cat conftest.err >&5
2982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } && {
2984 test -z "$ac_c_werror_flag" ||
2985 test ! -s conftest.err
2986 } && test -s conftest.$ac_objext; then
2987 ac_cv_prog_cc_g=yes
2988else
2989 $as_echo "$as_me: failed program was:" >&5
2990sed 's/^/| /' conftest.$ac_ext >&5
2991
2992
drh71eb93e2001-09-28 01:34:43 +00002993fi
drh8b727472009-01-19 18:18:40 +00002994
2995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002996fi
drh8b727472009-01-19 18:18:40 +00002997
2998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2999fi
3000
3001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3002 ac_c_werror_flag=$ac_save_c_werror_flag
3003fi
3004{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3005$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003006if test "$ac_test_CFLAGS" = set; then
3007 CFLAGS=$ac_save_CFLAGS
3008elif test $ac_cv_prog_cc_g = yes; then
3009 if test "$GCC" = yes; then
3010 CFLAGS="-g -O2"
3011 else
3012 CFLAGS="-g"
3013 fi
3014else
3015 if test "$GCC" = yes; then
3016 CFLAGS="-O2"
3017 else
3018 CFLAGS=
3019 fi
3020fi
drh8b727472009-01-19 18:18:40 +00003021{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3022$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3023if test "${ac_cv_prog_cc_c89+set}" = set; then
3024 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003025else
drh8b727472009-01-19 18:18:40 +00003026 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003027ac_save_CC=$CC
3028cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003029/* confdefs.h. */
3030_ACEOF
3031cat confdefs.h >>conftest.$ac_ext
3032cat >>conftest.$ac_ext <<_ACEOF
3033/* end confdefs.h. */
3034#include <stdarg.h>
3035#include <stdio.h>
3036#include <sys/types.h>
3037#include <sys/stat.h>
3038/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3039struct buf { int x; };
3040FILE * (*rcsopen) (struct buf *, struct stat *, int);
3041static char *e (p, i)
3042 char **p;
3043 int i;
3044{
3045 return p[i];
3046}
3047static char *f (char * (*g) (char **, int), char **p, ...)
3048{
3049 char *s;
3050 va_list v;
3051 va_start (v,p);
3052 s = g (p, va_arg (v,int));
3053 va_end (v);
3054 return s;
3055}
a.rottmann964dbb12004-02-26 19:47:42 +00003056
3057/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3058 function prototypes and stuff, but not '\xHH' hex character constants.
3059 These don't provoke an error unfortunately, instead are silently treated
drh8b727472009-01-19 18:18:40 +00003060 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003061 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3062 array size at least. It's necessary to write '\x00'==0 to get something
drh8b727472009-01-19 18:18:40 +00003063 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003064int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3065
drh8b727472009-01-19 18:18:40 +00003066/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3067 inside strings and character constants. */
3068#define FOO(x) 'x'
3069int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3070
a.rottmann84e63352003-03-24 09:42:16 +00003071int test (int i, double x);
3072struct s1 {int (*f) (int a);};
3073struct s2 {int (*f) (double a);};
3074int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3075int argc;
3076char **argv;
3077int
3078main ()
3079{
3080return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3081 ;
3082 return 0;
3083}
3084_ACEOF
drh8b727472009-01-19 18:18:40 +00003085for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3086 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003087do
3088 CC="$ac_save_CC $ac_arg"
3089 rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00003090if { (ac_try="$ac_compile"
3091case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094esac
3095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3096$as_echo "$ac_try_echo") >&5
3097 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003098 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003099 grep -v '^ *+' conftest.er1 >conftest.err
3100 rm -f conftest.er1
3101 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00003102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } && {
3104 test -z "$ac_c_werror_flag" ||
3105 test ! -s conftest.err
3106 } && test -s conftest.$ac_objext; then
3107 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003108else
drh8b727472009-01-19 18:18:40 +00003109 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00003110sed 's/^/| /' conftest.$ac_ext >&5
3111
drh8b727472009-01-19 18:18:40 +00003112
a.rottmann84e63352003-03-24 09:42:16 +00003113fi
drh8b727472009-01-19 18:18:40 +00003114
3115rm -f core conftest.err conftest.$ac_objext
3116 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003117done
drh8b727472009-01-19 18:18:40 +00003118rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003119CC=$ac_save_CC
3120
3121fi
drh8b727472009-01-19 18:18:40 +00003122# AC_CACHE_VAL
3123case "x$ac_cv_prog_cc_c89" in
3124 x)
3125 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3126$as_echo "none needed" >&6; } ;;
3127 xno)
3128 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3129$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003130 *)
drh8b727472009-01-19 18:18:40 +00003131 CC="$CC $ac_cv_prog_cc_c89"
3132 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3133$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003134esac
3135
a.rottmann84e63352003-03-24 09:42:16 +00003136
drh71eb93e2001-09-28 01:34:43 +00003137ac_ext=c
3138ac_cpp='$CPP $CPPFLAGS'
3139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142
drh8b727472009-01-19 18:18:40 +00003143{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3144$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3145if test "${ac_cv_path_SED+set}" = set; then
3146 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003147else
drh8b727472009-01-19 18:18:40 +00003148 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3149 for ac_i in 1 2 3 4 5 6 7; do
3150 ac_script="$ac_script$as_nl$ac_script"
3151 done
3152 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3153 $as_unset ac_script || ac_script=
3154 if test -z "$SED"; then
3155 ac_path_SED_found=false
3156 # Loop through the user's path and test for each of PROGNAME-LIST
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003158for as_dir in $PATH
3159do
3160 IFS=$as_save_IFS
3161 test -z "$as_dir" && as_dir=.
drh8b727472009-01-19 18:18:40 +00003162 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003163 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003164 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3165 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3166# Check for GNU ac_path_SED and select it if it is found.
3167 # Check for GNU $ac_path_SED
3168case `"$ac_path_SED" --version 2>&1` in
3169*GNU*)
3170 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3171*)
3172 ac_count=0
3173 $as_echo_n 0123456789 >"conftest.in"
3174 while :
3175 do
3176 cat "conftest.in" "conftest.in" >"conftest.tmp"
3177 mv "conftest.tmp" "conftest.in"
3178 cp "conftest.in" "conftest.nl"
3179 $as_echo '' >> "conftest.nl"
3180 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3181 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3182 ac_count=`expr $ac_count + 1`
3183 if test $ac_count -gt ${ac_path_SED_max-0}; then
3184 # Best one so far, save it but keep looking for a better one
3185 ac_cv_path_SED="$ac_path_SED"
3186 ac_path_SED_max=$ac_count
3187 fi
3188 # 10*(2^10) chars as input seems more than enough
3189 test $ac_count -gt 10 && break
3190 done
3191 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3192esac
3193
3194 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003195 done
3196 done
3197done
mlcreech636a9952008-05-05 22:52:56 +00003198IFS=$as_save_IFS
drh8b727472009-01-19 18:18:40 +00003199 if test -z "$ac_cv_path_SED"; then
3200 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3201$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3202 { (exit 1); exit 1; }; }
a.rottmann9bc8b932004-02-29 15:18:31 +00003203 fi
drh8b727472009-01-19 18:18:40 +00003204else
3205 ac_cv_path_SED=$SED
mlcreech636a9952008-05-05 22:52:56 +00003206fi
drh866108f2008-05-13 00:57:21 +00003207
drh8b727472009-01-19 18:18:40 +00003208fi
3209{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3210$as_echo "$ac_cv_path_SED" >&6; }
3211 SED="$ac_cv_path_SED"
3212 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003213
mlcreech636a9952008-05-05 22:52:56 +00003214test -z "$SED" && SED=sed
3215Xsed="$SED -e 1s/^X//"
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
drh8b727472009-01-19 18:18:40 +00003227{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3228$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3229if test "${ac_cv_path_GREP+set}" = set; then
3230 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003231else
drh8b727472009-01-19 18:18:40 +00003232 if test -z "$GREP"; then
3233 ac_path_GREP_found=false
3234 # Loop through the user's path and test for each of PROGNAME-LIST
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3237do
3238 IFS=$as_save_IFS
3239 test -z "$as_dir" && as_dir=.
3240 for ac_prog in grep ggrep; do
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3243 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3244# Check for GNU ac_path_GREP and select it if it is found.
3245 # Check for GNU $ac_path_GREP
3246case `"$ac_path_GREP" --version 2>&1` in
3247*GNU*)
3248 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3249*)
3250 ac_count=0
3251 $as_echo_n 0123456789 >"conftest.in"
3252 while :
3253 do
3254 cat "conftest.in" "conftest.in" >"conftest.tmp"
3255 mv "conftest.tmp" "conftest.in"
3256 cp "conftest.in" "conftest.nl"
3257 $as_echo 'GREP' >> "conftest.nl"
3258 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3259 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3260 ac_count=`expr $ac_count + 1`
3261 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3262 # Best one so far, save it but keep looking for a better one
3263 ac_cv_path_GREP="$ac_path_GREP"
3264 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003265 fi
drh8b727472009-01-19 18:18:40 +00003266 # 10*(2^10) chars as input seems more than enough
3267 test $ac_count -gt 10 && break
3268 done
3269 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3270esac
3271
3272 $ac_path_GREP_found && break 3
3273 done
3274 done
3275done
3276IFS=$as_save_IFS
3277 if test -z "$ac_cv_path_GREP"; then
3278 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3279$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3280 { (exit 1); exit 1; }; }
3281 fi
3282else
3283 ac_cv_path_GREP=$GREP
mlcreech94984912008-03-04 19:03:08 +00003284fi
drh8b727472009-01-19 18:18:40 +00003285
3286fi
3287{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3288$as_echo "$ac_cv_path_GREP" >&6; }
3289 GREP="$ac_cv_path_GREP"
mlcreech94984912008-03-04 19:03:08 +00003290
3291
drh8b727472009-01-19 18:18:40 +00003292{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3293$as_echo_n "checking for egrep... " >&6; }
3294if test "${ac_cv_path_EGREP+set}" = set; then
3295 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003296else
drh8b727472009-01-19 18:18:40 +00003297 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3298 then ac_cv_path_EGREP="$GREP -E"
3299 else
3300 if test -z "$EGREP"; then
3301 ac_path_EGREP_found=false
3302 # Loop through the user's path and test for each of PROGNAME-LIST
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3305do
3306 IFS=$as_save_IFS
3307 test -z "$as_dir" && as_dir=.
3308 for ac_prog in egrep; do
3309 for ac_exec_ext in '' $ac_executable_extensions; do
3310 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3311 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3312# Check for GNU ac_path_EGREP and select it if it is found.
3313 # Check for GNU $ac_path_EGREP
3314case `"$ac_path_EGREP" --version 2>&1` in
3315*GNU*)
3316 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3317*)
3318 ac_count=0
3319 $as_echo_n 0123456789 >"conftest.in"
3320 while :
3321 do
3322 cat "conftest.in" "conftest.in" >"conftest.tmp"
3323 mv "conftest.tmp" "conftest.in"
3324 cp "conftest.in" "conftest.nl"
3325 $as_echo 'EGREP' >> "conftest.nl"
3326 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3328 ac_count=`expr $ac_count + 1`
3329 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3330 # Best one so far, save it but keep looking for a better one
3331 ac_cv_path_EGREP="$ac_path_EGREP"
3332 ac_path_EGREP_max=$ac_count
mlcreech94984912008-03-04 19:03:08 +00003333 fi
drh8b727472009-01-19 18:18:40 +00003334 # 10*(2^10) chars as input seems more than enough
3335 test $ac_count -gt 10 && break
3336 done
3337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3338esac
3339
3340 $ac_path_EGREP_found && break 3
3341 done
3342 done
3343done
3344IFS=$as_save_IFS
3345 if test -z "$ac_cv_path_EGREP"; then
3346 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3347$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3348 { (exit 1); exit 1; }; }
3349 fi
3350else
3351 ac_cv_path_EGREP=$EGREP
mlcreech94984912008-03-04 19:03:08 +00003352fi
drh8b727472009-01-19 18:18:40 +00003353
3354 fi
3355fi
3356{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3357$as_echo "$ac_cv_path_EGREP" >&6; }
3358 EGREP="$ac_cv_path_EGREP"
3359
3360
3361{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3362$as_echo_n "checking for fgrep... " >&6; }
3363if test "${ac_cv_path_FGREP+set}" = set; then
3364 $as_echo_n "(cached) " >&6
3365else
3366 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3367 then ac_cv_path_FGREP="$GREP -F"
3368 else
3369 if test -z "$FGREP"; then
3370 ac_path_FGREP_found=false
3371 # Loop through the user's path and test for each of PROGNAME-LIST
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3374do
3375 IFS=$as_save_IFS
3376 test -z "$as_dir" && as_dir=.
3377 for ac_prog in fgrep; do
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3380 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3381# Check for GNU ac_path_FGREP and select it if it is found.
3382 # Check for GNU $ac_path_FGREP
3383case `"$ac_path_FGREP" --version 2>&1` in
3384*GNU*)
3385 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3386*)
3387 ac_count=0
3388 $as_echo_n 0123456789 >"conftest.in"
3389 while :
3390 do
3391 cat "conftest.in" "conftest.in" >"conftest.tmp"
3392 mv "conftest.tmp" "conftest.in"
3393 cp "conftest.in" "conftest.nl"
3394 $as_echo 'FGREP' >> "conftest.nl"
3395 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3396 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3397 ac_count=`expr $ac_count + 1`
3398 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3399 # Best one so far, save it but keep looking for a better one
3400 ac_cv_path_FGREP="$ac_path_FGREP"
3401 ac_path_FGREP_max=$ac_count
3402 fi
3403 # 10*(2^10) chars as input seems more than enough
3404 test $ac_count -gt 10 && break
3405 done
3406 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3407esac
3408
3409 $ac_path_FGREP_found && break 3
3410 done
3411 done
3412done
3413IFS=$as_save_IFS
3414 if test -z "$ac_cv_path_FGREP"; then
3415 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3416$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3417 { (exit 1); exit 1; }; }
3418 fi
3419else
3420 ac_cv_path_FGREP=$FGREP
3421fi
3422
3423 fi
3424fi
3425{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3426$as_echo "$ac_cv_path_FGREP" >&6; }
3427 FGREP="$ac_cv_path_FGREP"
mlcreech636a9952008-05-05 22:52:56 +00003428
3429
3430test -z "$GREP" && GREP=grep
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
a.rottmann9bc8b932004-02-29 15:18:31 +00003447
3448
a.rottmann84e63352003-03-24 09:42:16 +00003449
drh8b727472009-01-19 18:18:40 +00003450# Check whether --with-gnu-ld was given.
drh71eb93e2001-09-28 01:34:43 +00003451if test "${with_gnu_ld+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003452 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003453else
3454 with_gnu_ld=no
drh8b727472009-01-19 18:18:40 +00003455fi
3456
drh71eb93e2001-09-28 01:34:43 +00003457ac_prog=ld
3458if test "$GCC" = yes; then
3459 # Check if gcc -print-prog-name=ld gives a path.
drh8b727472009-01-19 18:18:40 +00003460 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3461$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003462 case $host in
3463 *-*-mingw*)
3464 # gcc leaves a trailing carriage return which upsets mingw
3465 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3466 *)
3467 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3468 esac
3469 case $ac_prog in
3470 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003471 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003472 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003473 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003474 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3475 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3476 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003477 done
3478 test -z "$LD" && LD="$ac_prog"
3479 ;;
3480 "")
3481 # If it fails, then pretend we aren't using GCC.
3482 ac_prog=ld
3483 ;;
3484 *)
3485 # If it is relative, then search for the first ld in PATH.
3486 with_gnu_ld=unknown
3487 ;;
3488 esac
3489elif test "$with_gnu_ld" = yes; then
drh8b727472009-01-19 18:18:40 +00003490 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3491$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003492else
drh8b727472009-01-19 18:18:40 +00003493 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3494$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003495fi
3496if test "${lt_cv_path_LD+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003497 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003498else
3499 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003500 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003501 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003502 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003503 test -z "$ac_dir" && ac_dir=.
3504 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3505 lt_cv_path_LD="$ac_dir/$ac_prog"
3506 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003507 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003508 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003509 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3510 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003511 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003512 ;;
3513 *)
drh71eb93e2001-09-28 01:34:43 +00003514 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003515 ;;
3516 esac
drh71eb93e2001-09-28 01:34:43 +00003517 fi
3518 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003519 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003520else
3521 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3522fi
3523fi
3524
3525LD="$lt_cv_path_LD"
3526if test -n "$LD"; then
drh8b727472009-01-19 18:18:40 +00003527 { $as_echo "$as_me:$LINENO: result: $LD" >&5
3528$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003529else
drh8b727472009-01-19 18:18:40 +00003530 { $as_echo "$as_me:$LINENO: result: no" >&5
3531$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003532fi
drh8b727472009-01-19 18:18:40 +00003533test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3534$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
drh71eb93e2001-09-28 01:34:43 +00003535 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00003536{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3537$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003538if test "${lt_cv_prog_gnu_ld+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003539 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003540else
vapier7f19c022007-02-17 14:46:31 +00003541 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003542case `$LD -v 2>&1 </dev/null` in
3543*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003544 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003545 ;;
3546*)
drh71eb93e2001-09-28 01:34:43 +00003547 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003548 ;;
3549esac
drh71eb93e2001-09-28 01:34:43 +00003550fi
drh8b727472009-01-19 18:18:40 +00003551{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3552$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003553with_gnu_ld=$lt_cv_prog_gnu_ld
3554
a.rottmann84e63352003-03-24 09:42:16 +00003555
drh71eb93e2001-09-28 01:34:43 +00003556
mlcreech636a9952008-05-05 22:52:56 +00003557
3558
3559
3560
3561
3562
drh8b727472009-01-19 18:18:40 +00003563{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3564$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003565if test "${lt_cv_path_NM+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003566 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003567else
3568 if test -n "$NM"; then
3569 # Let the user override the test.
3570 lt_cv_path_NM="$NM"
3571else
vapier7f19c022007-02-17 14:46:31 +00003572 lt_nm_to_check="${ac_tool_prefix}nm"
3573 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3574 lt_nm_to_check="$lt_nm_to_check nm"
3575 fi
3576 for lt_tmp_nm in $lt_nm_to_check; do
3577 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3578 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3579 IFS="$lt_save_ifs"
3580 test -z "$ac_dir" && ac_dir=.
3581 tmp_nm="$ac_dir/$lt_tmp_nm"
3582 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3583 # Check to see if the nm accepts a BSD-compat flag.
3584 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3585 # nm: unknown option "B" ignored
3586 # Tru64's nm complains that /dev/null is an invalid object file
3587 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3588 */dev/null* | *'Invalid file or object type'*)
3589 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003590 break
3591 ;;
3592 *)
vapier7f19c022007-02-17 14:46:31 +00003593 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3594 */dev/null*)
3595 lt_cv_path_NM="$tmp_nm -p"
3596 break
3597 ;;
3598 *)
3599 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3600 continue # so that we can try to find one that supports BSD flags
3601 ;;
3602 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003603 ;;
3604 esac
vapier7f19c022007-02-17 14:46:31 +00003605 fi
3606 done
3607 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003608 done
mlcreech636a9952008-05-05 22:52:56 +00003609 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003610fi
3611fi
drh8b727472009-01-19 18:18:40 +00003612{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3613$as_echo "$lt_cv_path_NM" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003614if test "$lt_cv_path_NM" != "no"; then
3615 NM="$lt_cv_path_NM"
3616else
3617 # Didn't find any BSD compatible name lister, look for dumpbin.
3618 if test -n "$ac_tool_prefix"; then
3619 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3620 do
3621 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3622set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +00003623{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3624$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003625if test "${ac_cv_prog_DUMPBIN+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003626 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003627else
3628 if test -n "$DUMPBIN"; then
3629 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3630else
3631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632for as_dir in $PATH
3633do
3634 IFS=$as_save_IFS
3635 test -z "$as_dir" && as_dir=.
3636 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00003638 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
drh8b727472009-01-19 18:18:40 +00003639 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003640 break 2
3641 fi
3642done
3643done
drh8b727472009-01-19 18:18:40 +00003644IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003645
mlcreech636a9952008-05-05 22:52:56 +00003646fi
3647fi
3648DUMPBIN=$ac_cv_prog_DUMPBIN
3649if test -n "$DUMPBIN"; then
drh8b727472009-01-19 18:18:40 +00003650 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3651$as_echo "$DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003652else
drh8b727472009-01-19 18:18:40 +00003653 { $as_echo "$as_me:$LINENO: result: no" >&5
3654$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003655fi
3656
drh8b727472009-01-19 18:18:40 +00003657
mlcreech636a9952008-05-05 22:52:56 +00003658 test -n "$DUMPBIN" && break
3659 done
3660fi
3661if test -z "$DUMPBIN"; then
3662 ac_ct_DUMPBIN=$DUMPBIN
3663 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3664do
3665 # Extract the first word of "$ac_prog", so it can be a program name with args.
3666set dummy $ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +00003667{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3668$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003669if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003670 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003671else
3672 if test -n "$ac_ct_DUMPBIN"; then
3673 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3674else
3675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676for as_dir in $PATH
3677do
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
3680 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00003682 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
drh8b727472009-01-19 18:18:40 +00003683 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003684 break 2
3685 fi
3686done
3687done
drh8b727472009-01-19 18:18:40 +00003688IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003689
3690fi
3691fi
3692ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3693if test -n "$ac_ct_DUMPBIN"; then
drh8b727472009-01-19 18:18:40 +00003694 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3695$as_echo "$ac_ct_DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003696else
drh8b727472009-01-19 18:18:40 +00003697 { $as_echo "$as_me:$LINENO: result: no" >&5
3698$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003699fi
3700
drh8b727472009-01-19 18:18:40 +00003701
mlcreech636a9952008-05-05 22:52:56 +00003702 test -n "$ac_ct_DUMPBIN" && break
3703done
3704
drh8b727472009-01-19 18:18:40 +00003705 if test "x$ac_ct_DUMPBIN" = x; then
3706 DUMPBIN=":"
3707 else
3708 case $cross_compiling:$ac_tool_warned in
3709yes:)
drh934c5442009-04-13 09:09:24 +00003710{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3711whose name does not start with the host triplet. If you think this
3712configuration is useful to you, please write to autoconf@gnu.org." >&5
3713$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3714whose name does not start with the host triplet. If you think this
3715configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00003716ac_tool_warned=yes ;;
3717esac
3718 DUMPBIN=$ac_ct_DUMPBIN
3719 fi
mlcreech636a9952008-05-05 22:52:56 +00003720fi
3721
3722
3723 if test "$DUMPBIN" != ":"; then
3724 NM="$DUMPBIN"
3725 fi
3726fi
3727test -z "$NM" && NM=nm
3728
3729
3730
3731
3732
3733
drh8b727472009-01-19 18:18:40 +00003734{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3735$as_echo_n "checking the name lister ($NM) interface... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003736if test "${lt_cv_nm_interface+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003737 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003738else
3739 lt_cv_nm_interface="BSD nm"
3740 echo "int some_variable = 0;" > conftest.$ac_ext
vapierfaa68db2009-04-01 07:38:31 +00003741 (eval echo "\"\$as_me:3741: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003742 (eval "$ac_compile" 2>conftest.err)
3743 cat conftest.err >&5
vapierfaa68db2009-04-01 07:38:31 +00003744 (eval echo "\"\$as_me:3744: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003745 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3746 cat conftest.err >&5
vapierfaa68db2009-04-01 07:38:31 +00003747 (eval echo "\"\$as_me:3747: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003748 cat conftest.out >&5
3749 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3750 lt_cv_nm_interface="MS dumpbin"
3751 fi
3752 rm -f conftest*
3753fi
drh8b727472009-01-19 18:18:40 +00003754{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3755$as_echo "$lt_cv_nm_interface" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003756
drh8b727472009-01-19 18:18:40 +00003757{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3758$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003759LN_S=$as_ln_s
3760if test "$LN_S" = "ln -s"; then
drh8b727472009-01-19 18:18:40 +00003761 { $as_echo "$as_me:$LINENO: result: yes" >&5
3762$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003763else
drh8b727472009-01-19 18:18:40 +00003764 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3765$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003766fi
3767
mlcreech636a9952008-05-05 22:52:56 +00003768# find the maximum length of command line arguments
drh8b727472009-01-19 18:18:40 +00003769{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3770$as_echo_n "checking the maximum length of command line arguments... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003771if test "${lt_cv_sys_max_cmd_len+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003772 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003773else
3774 i=0
3775 teststring="ABCD"
3776
3777 case $build_os in
3778 msdosdjgpp*)
3779 # On DJGPP, this test can blow up pretty badly due to problems in libc
3780 # (any single argument exceeding 2000 bytes causes a buffer overrun
3781 # during glob expansion). Even if it were fixed, the result of this
3782 # check would be larger than it should be.
3783 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3784 ;;
3785
3786 gnu*)
3787 # Under GNU Hurd, this test is not required because there is
3788 # no limit to the length of command line arguments.
3789 # Libtool will interpret -1 as no limit whatsoever
3790 lt_cv_sys_max_cmd_len=-1;
3791 ;;
3792
vapier6acb2cf2009-01-28 04:46:28 +00003793 cygwin* | mingw* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00003794 # On Win9x/ME, this test blows up -- it succeeds, but takes
3795 # about 5 minutes as the teststring grows exponentially.
3796 # Worse, since 9x/ME are not pre-emptively multitasking,
3797 # you end up with a "frozen" computer, even though with patience
3798 # the test eventually succeeds (with a max line length of 256k).
3799 # Instead, let's just punt: use the minimum linelength reported by
3800 # all of the supported platforms: 8192 (on NT/2K/XP).
3801 lt_cv_sys_max_cmd_len=8192;
3802 ;;
3803
3804 amigaos*)
3805 # On AmigaOS with pdksh, this test takes hours, literally.
3806 # So we just punt and use a minimum line length of 8192.
3807 lt_cv_sys_max_cmd_len=8192;
3808 ;;
3809
3810 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3811 # This has been around since 386BSD, at least. Likely further.
3812 if test -x /sbin/sysctl; then
3813 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3814 elif test -x /usr/sbin/sysctl; then
3815 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3816 else
3817 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3818 fi
3819 # And add a safety zone
3820 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3821 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3822 ;;
3823
3824 interix*)
3825 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3826 lt_cv_sys_max_cmd_len=196608
3827 ;;
3828
3829 osf*)
3830 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3831 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3832 # nice to cause kernel panics so lets avoid the loop below.
3833 # First set a reasonable default.
3834 lt_cv_sys_max_cmd_len=16384
3835 #
3836 if test -x /sbin/sysconfig; then
3837 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3838 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3839 esac
3840 fi
3841 ;;
3842 sco3.2v5*)
3843 lt_cv_sys_max_cmd_len=102400
3844 ;;
3845 sysv5* | sco5v6* | sysv4.2uw2*)
3846 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3847 if test -n "$kargmax"; then
3848 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3849 else
3850 lt_cv_sys_max_cmd_len=32768
3851 fi
3852 ;;
3853 *)
3854 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3855 if test -n "$lt_cv_sys_max_cmd_len"; then
3856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3858 else
3859 # Make teststring a little bigger before we do anything with it.
3860 # a 1K string should be a reasonable start.
3861 for i in 1 2 3 4 5 6 7 8 ; do
3862 teststring=$teststring$teststring
3863 done
3864 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3865 # If test is not a shell built-in, we'll probably end up computing a
3866 # maximum length that is only half of the actual maximum length, but
3867 # we can't tell.
3868 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3869 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3870 test $i != 17 # 1/2 MB should be enough
3871 do
3872 i=`expr $i + 1`
3873 teststring=$teststring$teststring
3874 done
3875 # Only check the string length outside the loop.
3876 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3877 teststring=
3878 # Add a significant safety factor because C++ compilers can tack on
3879 # massive amounts of additional arguments before passing them to the
3880 # linker. It appears as though 1/2 is a usable value.
3881 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3882 fi
3883 ;;
3884 esac
3885
3886fi
3887
3888if test -n $lt_cv_sys_max_cmd_len ; then
drh8b727472009-01-19 18:18:40 +00003889 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3890$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003891else
drh8b727472009-01-19 18:18:40 +00003892 { $as_echo "$as_me:$LINENO: result: none" >&5
3893$as_echo "none" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003894fi
3895max_cmd_len=$lt_cv_sys_max_cmd_len
3896
3897
3898
3899
3900
3901
3902: ${CP="cp -f"}
3903: ${MV="mv -f"}
3904: ${RM="rm -f"}
3905
drh8b727472009-01-19 18:18:40 +00003906{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3907$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003908# Try some XSI features
3909xsi_shell=no
3910( _lt_dummy="a/b/c"
3911 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3912 = c,a/b,, \
3913 && eval 'test $(( 1 + 1 )) -eq 2 \
3914 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3915 && xsi_shell=yes
drh8b727472009-01-19 18:18:40 +00003916{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
3917$as_echo "$xsi_shell" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003918
3919
drh8b727472009-01-19 18:18:40 +00003920{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3921$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003922lt_shell_append=no
3923( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3924 >/dev/null 2>&1 \
3925 && lt_shell_append=yes
drh8b727472009-01-19 18:18:40 +00003926{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3927$as_echo "$lt_shell_append" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003928
3929
3930if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3931 lt_unset=unset
3932else
3933 lt_unset=false
3934fi
3935
3936
3937
3938
3939
3940# test EBCDIC or ASCII
3941case `echo X|tr X '\101'` in
3942 A) # ASCII based system
3943 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3944 lt_SP2NL='tr \040 \012'
3945 lt_NL2SP='tr \015\012 \040\040'
3946 ;;
3947 *) # EBCDIC based system
3948 lt_SP2NL='tr \100 \n'
3949 lt_NL2SP='tr \r\n \100\100'
3950 ;;
3951esac
3952
3953
3954
3955
3956
3957
3958
3959
3960
drh8b727472009-01-19 18:18:40 +00003961{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3962$as_echo_n "checking for $LD option to reload object files... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003963if test "${lt_cv_ld_reload_flag+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003964 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003965else
3966 lt_cv_ld_reload_flag='-r'
3967fi
drh8b727472009-01-19 18:18:40 +00003968{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3969$as_echo "$lt_cv_ld_reload_flag" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003970reload_flag=$lt_cv_ld_reload_flag
3971case $reload_flag in
3972"" | " "*) ;;
3973*) reload_flag=" $reload_flag" ;;
3974esac
3975reload_cmds='$LD$reload_flag -o $output$reload_objs'
3976case $host_os in
3977 darwin*)
3978 if test "$GCC" = yes; then
3979 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3980 else
3981 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3982 fi
3983 ;;
3984esac
3985
3986
3987
3988
3989
3990
3991
3992
3993
vapier6acb2cf2009-01-28 04:46:28 +00003994if test -n "$ac_tool_prefix"; then
3995 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3996set dummy ${ac_tool_prefix}objdump; ac_word=$2
3997{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3998$as_echo_n "checking for $ac_word... " >&6; }
3999if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4000 $as_echo_n "(cached) " >&6
4001else
4002 if test -n "$OBJDUMP"; then
4003 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4004else
4005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006for as_dir in $PATH
4007do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4013 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4014 break 2
4015 fi
4016done
4017done
4018IFS=$as_save_IFS
4019
4020fi
4021fi
4022OBJDUMP=$ac_cv_prog_OBJDUMP
4023if test -n "$OBJDUMP"; then
4024 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4025$as_echo "$OBJDUMP" >&6; }
4026else
4027 { $as_echo "$as_me:$LINENO: result: no" >&5
4028$as_echo "no" >&6; }
4029fi
4030
4031
4032fi
4033if test -z "$ac_cv_prog_OBJDUMP"; then
4034 ac_ct_OBJDUMP=$OBJDUMP
4035 # Extract the first word of "objdump", so it can be a program name with args.
4036set dummy objdump; ac_word=$2
4037{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4038$as_echo_n "checking for $ac_word... " >&6; }
4039if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4040 $as_echo_n "(cached) " >&6
4041else
4042 if test -n "$ac_ct_OBJDUMP"; then
4043 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4044else
4045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046for as_dir in $PATH
4047do
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4052 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4053 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 break 2
4055 fi
4056done
4057done
4058IFS=$as_save_IFS
4059
4060fi
4061fi
4062ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4063if test -n "$ac_ct_OBJDUMP"; then
4064 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4065$as_echo "$ac_ct_OBJDUMP" >&6; }
4066else
4067 { $as_echo "$as_me:$LINENO: result: no" >&5
4068$as_echo "no" >&6; }
4069fi
4070
4071 if test "x$ac_ct_OBJDUMP" = x; then
4072 OBJDUMP="false"
4073 else
4074 case $cross_compiling:$ac_tool_warned in
4075yes:)
drh934c5442009-04-13 09:09:24 +00004076{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4077whose name does not start with the host triplet. If you think this
4078configuration is useful to you, please write to autoconf@gnu.org." >&5
4079$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4080whose name does not start with the host triplet. If you think this
4081configuration is useful to you, please write to autoconf@gnu.org." >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00004082ac_tool_warned=yes ;;
4083esac
4084 OBJDUMP=$ac_ct_OBJDUMP
4085 fi
4086else
4087 OBJDUMP="$ac_cv_prog_OBJDUMP"
4088fi
4089
4090test -z "$OBJDUMP" && OBJDUMP=objdump
4091
4092
4093
4094
4095
4096
4097
4098
mlcreech636a9952008-05-05 22:52:56 +00004099
drh8b727472009-01-19 18:18:40 +00004100{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4101$as_echo_n "checking how to recognize dependent libraries... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00004102if test "${lt_cv_deplibs_check_method+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004103 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00004104else
4105 lt_cv_file_magic_cmd='$MAGIC_CMD'
4106lt_cv_file_magic_test_file=
4107lt_cv_deplibs_check_method='unknown'
4108# Need to set the preceding variable on all platforms that support
4109# interlibrary dependencies.
4110# 'none' -- dependencies not supported.
4111# `unknown' -- same as none, but documents that we really don't know.
4112# 'pass_all' -- all dependencies passed with no checks.
4113# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00004114# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00004115# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00004116# If you have `file' or equivalent on your system and you're not sure
4117# whether `pass_all' will *always* work, you probably want this one.
4118
4119case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00004120aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00004121 lt_cv_deplibs_check_method=pass_all
4122 ;;
4123
4124beos*)
4125 lt_cv_deplibs_check_method=pass_all
4126 ;;
4127
vapier7f19c022007-02-17 14:46:31 +00004128bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00004129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4130 lt_cv_file_magic_cmd='/usr/bin/file -L'
4131 lt_cv_file_magic_test_file=/shlib/libc.so
4132 ;;
4133
a.rottmann9bc8b932004-02-29 15:18:31 +00004134cygwin*)
vapier7f19c022007-02-17 14:46:31 +00004135 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00004136 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00004137 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00004138 ;;
4139
4140mingw* | pw32*)
4141 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00004142 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4143 # unless we find 'file', for example because we are cross-compiling.
4144 if ( file / ) >/dev/null 2>&1; then
4145 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4146 lt_cv_file_magic_cmd='func_win32_libid'
4147 else
4148 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4149 lt_cv_file_magic_cmd='$OBJDUMP -f'
4150 fi
drh71eb93e2001-09-28 01:34:43 +00004151 ;;
4152
vapier6acb2cf2009-01-28 04:46:28 +00004153cegcc)
4154 # use the weaker test based on 'objdump'. See mingw*.
4155 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4156 lt_cv_file_magic_cmd='$OBJDUMP -f'
4157 ;;
4158
drh71eb93e2001-09-28 01:34:43 +00004159darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004160 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004161 ;;
4162
mlcreech636a9952008-05-05 22:52:56 +00004163freebsd* | dragonfly*)
4164 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004165 case $host_cpu in
4166 i*86 )
4167 # Not sure whether the presence of OpenBSD here was a mistake.
4168 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00004169 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 +00004170 lt_cv_file_magic_cmd=/usr/bin/file
4171 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4172 ;;
4173 esac
4174 else
4175 lt_cv_deplibs_check_method=pass_all
4176 fi
4177 ;;
4178
4179gnu*)
4180 lt_cv_deplibs_check_method=pass_all
4181 ;;
4182
a.rottmann9bc8b932004-02-29 15:18:31 +00004183hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00004184 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00004185 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00004186 ia64*)
4187 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4188 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4189 ;;
4190 hppa*64*)
4191 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]'
4192 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4193 ;;
4194 *)
4195 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4196 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4197 ;;
4198 esac
drh71eb93e2001-09-28 01:34:43 +00004199 ;;
4200
mlcreech636a9952008-05-05 22:52:56 +00004201interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00004202 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4203 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4204 ;;
4205
a.rottmann84e63352003-03-24 09:42:16 +00004206irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004207 case $LD in
4208 *-32|*"-32 ") libmagic=32-bit;;
4209 *-n32|*"-n32 ") libmagic=N32;;
4210 *-64|*"-64 ") libmagic=64-bit;;
4211 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00004212 esac
drh71eb93e2001-09-28 01:34:43 +00004213 lt_cv_deplibs_check_method=pass_all
4214 ;;
4215
4216# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00004217linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00004218 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004219 ;;
4220
vapier7f19c022007-02-17 14:46:31 +00004221netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004222 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004223 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004224 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004225 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004226 fi
4227 ;;
4228
4229newos6*)
4230 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4231 lt_cv_file_magic_cmd=/usr/bin/file
4232 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4233 ;;
4234
mlcreech636a9952008-05-05 22:52:56 +00004235*nto* | *qnx*)
4236 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00004237 ;;
4238
a.rottmann84e63352003-03-24 09:42:16 +00004239openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004240 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00004241 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004242 else
vapier7f19c022007-02-17 14:46:31 +00004243 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004244 fi
drh71eb93e2001-09-28 01:34:43 +00004245 ;;
4246
4247osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004248 lt_cv_deplibs_check_method=pass_all
4249 ;;
4250
mlcreech636a9952008-05-05 22:52:56 +00004251rdos*)
4252 lt_cv_deplibs_check_method=pass_all
4253 ;;
4254
drh71eb93e2001-09-28 01:34:43 +00004255solaris*)
4256 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00004257 ;;
4258
mlcreech636a9952008-05-05 22:52:56 +00004259sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4260 lt_cv_deplibs_check_method=pass_all
4261 ;;
4262
vapier7f19c022007-02-17 14:46:31 +00004263sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00004264 case $host_vendor in
4265 motorola)
4266 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]'
4267 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4268 ;;
4269 ncr)
4270 lt_cv_deplibs_check_method=pass_all
4271 ;;
4272 sequent)
4273 lt_cv_file_magic_cmd='/bin/file'
4274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4275 ;;
4276 sni)
4277 lt_cv_file_magic_cmd='/bin/file'
4278 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4279 lt_cv_file_magic_test_file=/lib/libc.so
4280 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004281 siemens)
4282 lt_cv_deplibs_check_method=pass_all
4283 ;;
vapier7f19c022007-02-17 14:46:31 +00004284 pc)
4285 lt_cv_deplibs_check_method=pass_all
4286 ;;
drh71eb93e2001-09-28 01:34:43 +00004287 esac
4288 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004289
mlcreech636a9952008-05-05 22:52:56 +00004290tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004291 lt_cv_deplibs_check_method=pass_all
4292 ;;
drh71eb93e2001-09-28 01:34:43 +00004293esac
4294
4295fi
drh8b727472009-01-19 18:18:40 +00004296{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4297$as_echo "$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004298file_magic_cmd=$lt_cv_file_magic_cmd
4299deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00004300test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00004301
drh71eb93e2001-09-28 01:34:43 +00004302
drh71eb93e2001-09-28 01:34:43 +00004303
drh71eb93e2001-09-28 01:34:43 +00004304
mlcreech636a9952008-05-05 22:52:56 +00004305
4306
4307
4308
4309
4310
4311
4312
4313if test -n "$ac_tool_prefix"; then
4314 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4315set dummy ${ac_tool_prefix}ar; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004316{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4317$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004318if test "${ac_cv_prog_AR+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004319 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004320else
4321 if test -n "$AR"; then
4322 ac_cv_prog_AR="$AR" # Let the user override the test.
4323else
4324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325for as_dir in $PATH
4326do
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004331 ac_cv_prog_AR="${ac_tool_prefix}ar"
drh8b727472009-01-19 18:18:40 +00004332 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004333 break 2
4334 fi
4335done
4336done
drh8b727472009-01-19 18:18:40 +00004337IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004338
4339fi
4340fi
4341AR=$ac_cv_prog_AR
4342if test -n "$AR"; then
drh8b727472009-01-19 18:18:40 +00004343 { $as_echo "$as_me:$LINENO: result: $AR" >&5
4344$as_echo "$AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004345else
drh8b727472009-01-19 18:18:40 +00004346 { $as_echo "$as_me:$LINENO: result: no" >&5
4347$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004348fi
4349
drh8b727472009-01-19 18:18:40 +00004350
mlcreech636a9952008-05-05 22:52:56 +00004351fi
4352if test -z "$ac_cv_prog_AR"; then
4353 ac_ct_AR=$AR
4354 # Extract the first word of "ar", so it can be a program name with args.
4355set dummy ar; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004356{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4357$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004358if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004359 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004360else
4361 if test -n "$ac_ct_AR"; then
4362 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4363else
4364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365for as_dir in $PATH
4366do
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004371 ac_cv_prog_ac_ct_AR="ar"
drh8b727472009-01-19 18:18:40 +00004372 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004373 break 2
4374 fi
4375done
4376done
drh8b727472009-01-19 18:18:40 +00004377IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004378
4379fi
4380fi
4381ac_ct_AR=$ac_cv_prog_ac_ct_AR
4382if test -n "$ac_ct_AR"; then
drh8b727472009-01-19 18:18:40 +00004383 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4384$as_echo "$ac_ct_AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004385else
drh8b727472009-01-19 18:18:40 +00004386 { $as_echo "$as_me:$LINENO: result: no" >&5
4387$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004388fi
4389
drh8b727472009-01-19 18:18:40 +00004390 if test "x$ac_ct_AR" = x; then
4391 AR="false"
4392 else
4393 case $cross_compiling:$ac_tool_warned in
4394yes:)
drh934c5442009-04-13 09:09:24 +00004395{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4396whose name does not start with the host triplet. If you think this
4397configuration is useful to you, please write to autoconf@gnu.org." >&5
4398$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4399whose name does not start with the host triplet. If you think this
4400configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00004401ac_tool_warned=yes ;;
4402esac
4403 AR=$ac_ct_AR
4404 fi
mlcreech636a9952008-05-05 22:52:56 +00004405else
4406 AR="$ac_cv_prog_AR"
4407fi
4408
4409test -z "$AR" && AR=ar
4410test -z "$AR_FLAGS" && AR_FLAGS=cru
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422if test -n "$ac_tool_prefix"; then
4423 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4424set dummy ${ac_tool_prefix}strip; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004425{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4426$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004427if test "${ac_cv_prog_STRIP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004428 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004429else
4430 if test -n "$STRIP"; then
4431 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4432else
4433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH
4435do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004440 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
drh8b727472009-01-19 18:18:40 +00004441 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004442 break 2
4443 fi
4444done
4445done
drh8b727472009-01-19 18:18:40 +00004446IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004447
4448fi
4449fi
4450STRIP=$ac_cv_prog_STRIP
4451if test -n "$STRIP"; then
drh8b727472009-01-19 18:18:40 +00004452 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4453$as_echo "$STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004454else
drh8b727472009-01-19 18:18:40 +00004455 { $as_echo "$as_me:$LINENO: result: no" >&5
4456$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004457fi
4458
drh8b727472009-01-19 18:18:40 +00004459
mlcreech636a9952008-05-05 22:52:56 +00004460fi
4461if test -z "$ac_cv_prog_STRIP"; then
4462 ac_ct_STRIP=$STRIP
4463 # Extract the first word of "strip", so it can be a program name with args.
4464set dummy strip; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004465{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4466$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004467if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004468 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004469else
4470 if test -n "$ac_ct_STRIP"; then
4471 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4472else
4473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474for as_dir in $PATH
4475do
4476 IFS=$as_save_IFS
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004480 ac_cv_prog_ac_ct_STRIP="strip"
drh8b727472009-01-19 18:18:40 +00004481 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004482 break 2
4483 fi
4484done
4485done
drh8b727472009-01-19 18:18:40 +00004486IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004487
4488fi
4489fi
4490ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4491if test -n "$ac_ct_STRIP"; then
drh8b727472009-01-19 18:18:40 +00004492 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4493$as_echo "$ac_ct_STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004494else
drh8b727472009-01-19 18:18:40 +00004495 { $as_echo "$as_me:$LINENO: result: no" >&5
4496$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004497fi
4498
drh8b727472009-01-19 18:18:40 +00004499 if test "x$ac_ct_STRIP" = x; then
4500 STRIP=":"
4501 else
4502 case $cross_compiling:$ac_tool_warned in
4503yes:)
drh934c5442009-04-13 09:09:24 +00004504{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4505whose name does not start with the host triplet. If you think this
4506configuration is useful to you, please write to autoconf@gnu.org." >&5
4507$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4508whose name does not start with the host triplet. If you think this
4509configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00004510ac_tool_warned=yes ;;
4511esac
4512 STRIP=$ac_ct_STRIP
4513 fi
mlcreech636a9952008-05-05 22:52:56 +00004514else
4515 STRIP="$ac_cv_prog_STRIP"
4516fi
4517
4518test -z "$STRIP" && STRIP=:
4519
4520
4521
4522
4523
4524
4525if test -n "$ac_tool_prefix"; then
4526 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4527set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004528{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4529$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004530if test "${ac_cv_prog_RANLIB+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004531 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004532else
4533 if test -n "$RANLIB"; then
4534 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4535else
4536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537for as_dir in $PATH
4538do
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004543 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
drh8b727472009-01-19 18:18:40 +00004544 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004545 break 2
4546 fi
4547done
4548done
drh8b727472009-01-19 18:18:40 +00004549IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004550
4551fi
4552fi
4553RANLIB=$ac_cv_prog_RANLIB
4554if test -n "$RANLIB"; then
drh8b727472009-01-19 18:18:40 +00004555 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4556$as_echo "$RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004557else
drh8b727472009-01-19 18:18:40 +00004558 { $as_echo "$as_me:$LINENO: result: no" >&5
4559$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004560fi
4561
drh8b727472009-01-19 18:18:40 +00004562
mlcreech636a9952008-05-05 22:52:56 +00004563fi
4564if test -z "$ac_cv_prog_RANLIB"; then
4565 ac_ct_RANLIB=$RANLIB
4566 # Extract the first word of "ranlib", so it can be a program name with args.
4567set dummy ranlib; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004568{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4569$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004570if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004571 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004572else
4573 if test -n "$ac_ct_RANLIB"; then
4574 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4575else
4576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577for as_dir in $PATH
4578do
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004583 ac_cv_prog_ac_ct_RANLIB="ranlib"
drh8b727472009-01-19 18:18:40 +00004584 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004585 break 2
4586 fi
4587done
4588done
drh8b727472009-01-19 18:18:40 +00004589IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004590
4591fi
4592fi
4593ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4594if test -n "$ac_ct_RANLIB"; then
drh8b727472009-01-19 18:18:40 +00004595 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4596$as_echo "$ac_ct_RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004597else
drh8b727472009-01-19 18:18:40 +00004598 { $as_echo "$as_me:$LINENO: result: no" >&5
4599$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004600fi
4601
drh8b727472009-01-19 18:18:40 +00004602 if test "x$ac_ct_RANLIB" = x; then
4603 RANLIB=":"
4604 else
4605 case $cross_compiling:$ac_tool_warned in
4606yes:)
drh934c5442009-04-13 09:09:24 +00004607{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4608whose name does not start with the host triplet. If you think this
4609configuration is useful to you, please write to autoconf@gnu.org." >&5
4610$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4611whose name does not start with the host triplet. If you think this
4612configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00004613ac_tool_warned=yes ;;
4614esac
4615 RANLIB=$ac_ct_RANLIB
4616 fi
mlcreech636a9952008-05-05 22:52:56 +00004617else
4618 RANLIB="$ac_cv_prog_RANLIB"
4619fi
4620
4621test -z "$RANLIB" && RANLIB=:
4622
4623
4624
4625
4626
4627
4628# Determine commands to create old-style static archives.
4629old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4630old_postinstall_cmds='chmod 644 $oldlib'
4631old_postuninstall_cmds=
4632
4633if test -n "$RANLIB"; then
4634 case $host_os in
4635 openbsd*)
4636 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4637 ;;
4638 *)
4639 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4640 ;;
4641 esac
4642 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4643fi
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
a.rottmann9bc8b932004-02-29 15:18:31 +00004678# If no C compiler was specified, use CC.
4679LTCC=${LTCC-"$CC"}
4680
vapier7f19c022007-02-17 14:46:31 +00004681# If no C compiler flags were specified, use CFLAGS.
4682LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4683
a.rottmann9bc8b932004-02-29 15:18:31 +00004684# Allow CC to be a program name with arguments.
4685compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004686
drh71eb93e2001-09-28 01:34:43 +00004687
mlcreech636a9952008-05-05 22:52:56 +00004688# Check for command to grab the raw symbol name followed by C symbol from nm.
drh8b727472009-01-19 18:18:40 +00004689{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4690$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004691if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004692 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004693else
4694
4695# These are sane defaults that work on at least a few old systems.
4696# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4697
4698# Character class describing NM global symbol codes.
4699symcode='[BCDEGRST]'
4700
4701# Regexp to match symbols that can be accessed directly from C.
4702sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4703
4704# Define system-specific variables.
4705case $host_os in
4706aix*)
4707 symcode='[BCDT]'
4708 ;;
vapier6acb2cf2009-01-28 04:46:28 +00004709cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00004710 symcode='[ABCDGISTW]'
4711 ;;
4712hpux*)
4713 if test "$host_cpu" = ia64; then
4714 symcode='[ABCDEGRST]'
4715 fi
4716 ;;
4717irix* | nonstopux*)
4718 symcode='[BCDEGRST]'
4719 ;;
4720osf*)
4721 symcode='[BCDEGQRST]'
4722 ;;
4723solaris*)
4724 symcode='[BDRT]'
4725 ;;
4726sco3.2v5*)
4727 symcode='[DT]'
4728 ;;
4729sysv4.2uw2*)
4730 symcode='[DT]'
4731 ;;
4732sysv5* | sco5v6* | unixware* | OpenUNIX*)
4733 symcode='[ABDT]'
4734 ;;
4735sysv4)
4736 symcode='[DFNSTU]'
4737 ;;
4738esac
4739
4740# If we're using GNU nm, then use its standard symbol codes.
4741case `$NM -V 2>&1` in
4742*GNU* | *'with BFD'*)
4743 symcode='[ABCDGIRSTW]' ;;
4744esac
4745
4746# Transform an extracted symbol line into a proper C declaration.
4747# Some systems (esp. on ia64) link data and code symbols differently,
4748# so use this general approach.
4749lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4750
4751# Transform an extracted symbol line into symbol name and symbol address
4752lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4753lt_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'"
4754
4755# Handle CRLF in mingw tool chain
4756opt_cr=
4757case $build_os in
4758mingw*)
4759 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4760 ;;
4761esac
4762
4763# Try without a prefix underscore, then with it.
4764for ac_symprfx in "" "_"; do
4765
4766 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4767 symxfrm="\\1 $ac_symprfx\\2 \\2"
4768
4769 # Write the raw and C identifiers.
4770 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4771 # Fake it for dumpbin and say T for any non-static function
4772 # and D for any global variable.
4773 # Also find C++ and __fastcall symbols from MSVC++,
4774 # which start with @ or ?.
4775 lt_cv_sys_global_symbol_pipe="$AWK '"\
4776" {last_section=section; section=\$ 3};"\
4777" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4778" \$ 0!~/External *\|/{next};"\
4779" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4780" {if(hide[section]) next};"\
4781" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4782" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4783" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4784" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4785" ' prfx=^$ac_symprfx"
4786 else
4787 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4788 fi
4789
4790 # Check to see that the pipe works correctly.
4791 pipe_works=no
4792
4793 rm -f conftest*
4794 cat > conftest.$ac_ext <<_LT_EOF
4795#ifdef __cplusplus
4796extern "C" {
4797#endif
4798char nm_test_var;
4799void nm_test_func(void);
4800void nm_test_func(void){}
4801#ifdef __cplusplus
4802}
4803#endif
4804int main(){nm_test_var='a';nm_test_func();return(0);}
4805_LT_EOF
4806
4807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4808 (eval $ac_compile) 2>&5
4809 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00004811 (exit $ac_status); }; then
4812 # Now try to grab the symbols.
4813 nlist=conftest.nm
4814 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4815 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4816 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00004818 (exit $ac_status); } && test -s "$nlist"; then
4819 # Try sorting and uniquifying the output.
4820 if sort "$nlist" | uniq > "$nlist"T; then
4821 mv -f "$nlist"T "$nlist"
4822 else
4823 rm -f "$nlist"T
4824 fi
4825
4826 # Make sure that we snagged all the symbols we need.
4827 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4828 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4829 cat <<_LT_EOF > conftest.$ac_ext
4830#ifdef __cplusplus
4831extern "C" {
4832#endif
4833
4834_LT_EOF
4835 # Now generate the symbol file.
4836 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4837
4838 cat <<_LT_EOF >> conftest.$ac_ext
4839
4840/* The mapping between symbol names and symbols. */
4841const struct {
4842 const char *name;
4843 void *address;
4844}
4845lt__PROGRAM__LTX_preloaded_symbols[] =
4846{
4847 { "@PROGRAM@", (void *) 0 },
4848_LT_EOF
4849 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4850 cat <<\_LT_EOF >> conftest.$ac_ext
4851 {0, (void *) 0}
4852};
4853
4854/* This works around a problem in FreeBSD linker */
4855#ifdef FREEBSD_WORKAROUND
4856static const void *lt_preloaded_setup() {
4857 return lt__PROGRAM__LTX_preloaded_symbols;
4858}
4859#endif
4860
4861#ifdef __cplusplus
4862}
4863#endif
4864_LT_EOF
4865 # Now try linking the two files.
4866 mv conftest.$ac_objext conftstm.$ac_objext
4867 lt_save_LIBS="$LIBS"
4868 lt_save_CFLAGS="$CFLAGS"
4869 LIBS="conftstm.$ac_objext"
4870 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4872 (eval $ac_link) 2>&5
4873 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00004875 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4876 pipe_works=yes
4877 fi
4878 LIBS="$lt_save_LIBS"
4879 CFLAGS="$lt_save_CFLAGS"
4880 else
4881 echo "cannot find nm_test_func in $nlist" >&5
4882 fi
4883 else
4884 echo "cannot find nm_test_var in $nlist" >&5
4885 fi
4886 else
4887 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4888 fi
4889 else
4890 echo "$progname: failed program was:" >&5
4891 cat conftest.$ac_ext >&5
4892 fi
4893 rm -rf conftest* conftst*
4894
4895 # Do not use the global_symbol_pipe unless it works.
4896 if test "$pipe_works" = yes; then
4897 break
4898 else
4899 lt_cv_sys_global_symbol_pipe=
4900 fi
4901done
4902
4903fi
4904
4905if test -z "$lt_cv_sys_global_symbol_pipe"; then
4906 lt_cv_sys_global_symbol_to_cdecl=
4907fi
4908if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drh8b727472009-01-19 18:18:40 +00004909 { $as_echo "$as_me:$LINENO: result: failed" >&5
4910$as_echo "failed" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004911else
drh8b727472009-01-19 18:18:40 +00004912 { $as_echo "$as_me:$LINENO: result: ok" >&5
4913$as_echo "ok" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004914fi
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
drh8b727472009-01-19 18:18:40 +00004938# Check whether --enable-libtool-lock was given.
a.rottmann9bc8b932004-02-29 15:18:31 +00004939if test "${enable_libtool_lock+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004940 enableval=$enable_libtool_lock;
4941fi
drh71eb93e2001-09-28 01:34:43 +00004942
a.rottmann9bc8b932004-02-29 15:18:31 +00004943test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00004944
a.rottmann9bc8b932004-02-29 15:18:31 +00004945# Some flags need to be propagated to the compiler or linker for good
4946# libtool support.
4947case $host in
4948ia64-*-hpux*)
4949 # Find out which ABI we are using.
4950 echo 'int i;' > conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00004951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00004952 (eval $ac_compile) 2>&5
4953 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00004955 (exit $ac_status); }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004956 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00004957 *ELF-32*)
4958 HPUX_IA64_MODE="32"
4959 ;;
4960 *ELF-64*)
4961 HPUX_IA64_MODE="64"
4962 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004963 esac
4964 fi
4965 rm -rf conftest*
4966 ;;
4967*-*-irix6*)
4968 # Find out which ABI we are using.
drh934c5442009-04-13 09:09:24 +00004969 echo '#line 4969 "configure"' > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00004970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4971 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00004972 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004974 (exit $ac_status); }; then
mlcreech636a9952008-05-05 22:52:56 +00004975 if test "$lt_cv_prog_gnu_ld" = yes; then
4976 case `/usr/bin/file conftest.$ac_objext` in
4977 *32-bit*)
4978 LD="${LD-ld} -melf32bsmip"
4979 ;;
4980 *N32*)
4981 LD="${LD-ld} -melf32bmipn32"
4982 ;;
4983 *64-bit*)
4984 LD="${LD-ld} -melf64bmip"
4985 ;;
4986 esac
4987 else
4988 case `/usr/bin/file conftest.$ac_objext` in
4989 *32-bit*)
4990 LD="${LD-ld} -32"
4991 ;;
4992 *N32*)
4993 LD="${LD-ld} -n32"
4994 ;;
4995 *64-bit*)
4996 LD="${LD-ld} -64"
4997 ;;
4998 esac
4999 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005000 fi
5001 rm -rf conftest*
5002 ;;
drh71eb93e2001-09-28 01:34:43 +00005003
mlcreech636a9952008-05-05 22:52:56 +00005004x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5005s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005006 # 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=$?
drh8b727472009-01-19 18:18:40 +00005011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005012 (exit $ac_status); }; then
vapier7f19c022007-02-17 14:46:31 +00005013 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00005014 *32-bit*)
5015 case $host in
5016 x86_64-*kfreebsd*-gnu)
5017 LD="${LD-ld} -m elf_i386_fbsd"
5018 ;;
5019 x86_64-*linux*)
5020 LD="${LD-ld} -m elf_i386"
5021 ;;
5022 ppc64-*linux*|powerpc64-*linux*)
5023 LD="${LD-ld} -m elf32ppclinux"
5024 ;;
5025 s390x-*linux*)
5026 LD="${LD-ld} -m elf_s390"
5027 ;;
5028 sparc64-*linux*)
5029 LD="${LD-ld} -m elf32_sparc"
5030 ;;
5031 esac
5032 ;;
5033 *64-bit*)
5034 case $host in
5035 x86_64-*kfreebsd*-gnu)
5036 LD="${LD-ld} -m elf_x86_64_fbsd"
5037 ;;
5038 x86_64-*linux*)
5039 LD="${LD-ld} -m elf_x86_64"
5040 ;;
5041 ppc*-*linux*|powerpc*-*linux*)
5042 LD="${LD-ld} -m elf64ppc"
5043 ;;
5044 s390*-*linux*|s390*-*tpf*)
5045 LD="${LD-ld} -m elf64_s390"
5046 ;;
5047 sparc*-*linux*)
5048 LD="${LD-ld} -m elf64_sparc"
5049 ;;
5050 esac
5051 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005052 esac
5053 fi
5054 rm -rf conftest*
5055 ;;
drh71eb93e2001-09-28 01:34:43 +00005056
a.rottmann9bc8b932004-02-29 15:18:31 +00005057*-*-sco3.2v5*)
5058 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5059 SAVE_CFLAGS="$CFLAGS"
5060 CFLAGS="$CFLAGS -belf"
drh8b727472009-01-19 18:18:40 +00005061 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5062$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005063if test "${lt_cv_cc_needs_belf+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005064 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005065else
5066 ac_ext=c
5067ac_cpp='$CPP $CPPFLAGS'
5068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5070ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00005071
a.rottmann9bc8b932004-02-29 15:18:31 +00005072 cat >conftest.$ac_ext <<_ACEOF
5073/* confdefs.h. */
5074_ACEOF
5075cat confdefs.h >>conftest.$ac_ext
5076cat >>conftest.$ac_ext <<_ACEOF
5077/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00005078
a.rottmann9bc8b932004-02-29 15:18:31 +00005079int
5080main ()
drh71eb93e2001-09-28 01:34:43 +00005081{
drh71eb93e2001-09-28 01:34:43 +00005082
a.rottmann9bc8b932004-02-29 15:18:31 +00005083 ;
5084 return 0;
drh71eb93e2001-09-28 01:34:43 +00005085}
a.rottmann9bc8b932004-02-29 15:18:31 +00005086_ACEOF
5087rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00005088if { (ac_try="$ac_link"
5089case "(($ac_try" in
5090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5091 *) ac_try_echo=$ac_try;;
5092esac
5093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5094$as_echo "$ac_try_echo") >&5
5095 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00005096 ac_status=$?
5097 grep -v '^ *+' conftest.er1 >conftest.err
5098 rm -f conftest.er1
5099 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } && {
5102 test -z "$ac_c_werror_flag" ||
5103 test ! -s conftest.err
5104 } && test -s conftest$ac_exeext && {
5105 test "$cross_compiling" = yes ||
5106 $as_test_x conftest$ac_exeext
5107 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005108 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00005109else
drh8b727472009-01-19 18:18:40 +00005110 $as_echo "$as_me: failed program was:" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005111sed 's/^/| /' conftest.$ac_ext >&5
5112
drh8b727472009-01-19 18:18:40 +00005113 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00005114fi
drh8b727472009-01-19 18:18:40 +00005115
5116rm -rf conftest.dSYM
5117rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00005118 conftest$ac_exeext conftest.$ac_ext
5119 ac_ext=c
5120ac_cpp='$CPP $CPPFLAGS'
5121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123ac_compiler_gnu=$ac_cv_c_compiler_gnu
5124
drh71eb93e2001-09-28 01:34:43 +00005125fi
drh8b727472009-01-19 18:18:40 +00005126{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5127$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005128 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5129 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5130 CFLAGS="$SAVE_CFLAGS"
5131 fi
5132 ;;
vapier7f19c022007-02-17 14:46:31 +00005133sparc*-*solaris*)
5134 # Find out which ABI we are using.
5135 echo 'int i;' > conftest.$ac_ext
5136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5137 (eval $ac_compile) 2>&5
5138 ac_status=$?
drh8b727472009-01-19 18:18:40 +00005139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
vapier7f19c022007-02-17 14:46:31 +00005140 (exit $ac_status); }; then
5141 case `/usr/bin/file conftest.o` in
5142 *64-bit*)
5143 case $lt_cv_prog_gnu_ld in
5144 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005145 *)
5146 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5147 LD="${LD-ld} -64"
5148 fi
5149 ;;
vapier7f19c022007-02-17 14:46:31 +00005150 esac
5151 ;;
5152 esac
5153 fi
5154 rm -rf conftest*
5155 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005156esac
5157
5158need_locks="$enable_libtool_lock"
5159
drh71eb93e2001-09-28 01:34:43 +00005160
mlcreech636a9952008-05-05 22:52:56 +00005161 case $host_os in
5162 rhapsody* | darwin*)
5163 if test -n "$ac_tool_prefix"; then
5164 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5165set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005166{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5167$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005168if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005169 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005170else
5171 if test -n "$DSYMUTIL"; then
5172 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5173else
5174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175for as_dir in $PATH
5176do
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005181 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
drh8b727472009-01-19 18:18:40 +00005182 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005183 break 2
5184 fi
5185done
5186done
drh8b727472009-01-19 18:18:40 +00005187IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005188
5189fi
5190fi
5191DSYMUTIL=$ac_cv_prog_DSYMUTIL
5192if test -n "$DSYMUTIL"; then
drh8b727472009-01-19 18:18:40 +00005193 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5194$as_echo "$DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005195else
drh8b727472009-01-19 18:18:40 +00005196 { $as_echo "$as_me:$LINENO: result: no" >&5
5197$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005198fi
5199
drh8b727472009-01-19 18:18:40 +00005200
mlcreech636a9952008-05-05 22:52:56 +00005201fi
5202if test -z "$ac_cv_prog_DSYMUTIL"; then
5203 ac_ct_DSYMUTIL=$DSYMUTIL
5204 # Extract the first word of "dsymutil", so it can be a program name with args.
5205set dummy dsymutil; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005206{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5207$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005208if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005209 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005210else
5211 if test -n "$ac_ct_DSYMUTIL"; then
5212 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5213else
5214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215for as_dir in $PATH
5216do
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005221 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
drh8b727472009-01-19 18:18:40 +00005222 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005223 break 2
5224 fi
5225done
5226done
drh8b727472009-01-19 18:18:40 +00005227IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005228
5229fi
5230fi
5231ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5232if test -n "$ac_ct_DSYMUTIL"; then
drh8b727472009-01-19 18:18:40 +00005233 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5234$as_echo "$ac_ct_DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005235else
drh8b727472009-01-19 18:18:40 +00005236 { $as_echo "$as_me:$LINENO: result: no" >&5
5237$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005238fi
5239
drh8b727472009-01-19 18:18:40 +00005240 if test "x$ac_ct_DSYMUTIL" = x; then
5241 DSYMUTIL=":"
5242 else
5243 case $cross_compiling:$ac_tool_warned in
5244yes:)
drh934c5442009-04-13 09:09:24 +00005245{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5246whose name does not start with the host triplet. If you think this
5247configuration is useful to you, please write to autoconf@gnu.org." >&5
5248$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5249whose name does not start with the host triplet. If you think this
5250configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005251ac_tool_warned=yes ;;
5252esac
5253 DSYMUTIL=$ac_ct_DSYMUTIL
5254 fi
mlcreech636a9952008-05-05 22:52:56 +00005255else
5256 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5257fi
5258
5259 if test -n "$ac_tool_prefix"; then
5260 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5261set dummy ${ac_tool_prefix}nmedit; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005262{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5263$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005264if test "${ac_cv_prog_NMEDIT+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005265 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005266else
5267 if test -n "$NMEDIT"; then
5268 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5269else
5270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271for as_dir in $PATH
5272do
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005277 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
drh8b727472009-01-19 18:18:40 +00005278 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005279 break 2
5280 fi
5281done
5282done
drh8b727472009-01-19 18:18:40 +00005283IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005284
5285fi
5286fi
5287NMEDIT=$ac_cv_prog_NMEDIT
5288if test -n "$NMEDIT"; then
drh8b727472009-01-19 18:18:40 +00005289 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5290$as_echo "$NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005291else
drh8b727472009-01-19 18:18:40 +00005292 { $as_echo "$as_me:$LINENO: result: no" >&5
5293$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005294fi
5295
drh8b727472009-01-19 18:18:40 +00005296
mlcreech636a9952008-05-05 22:52:56 +00005297fi
5298if test -z "$ac_cv_prog_NMEDIT"; then
5299 ac_ct_NMEDIT=$NMEDIT
5300 # Extract the first word of "nmedit", so it can be a program name with args.
5301set dummy nmedit; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005302{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5303$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005304if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005305 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005306else
5307 if test -n "$ac_ct_NMEDIT"; then
5308 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5309else
5310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311for as_dir in $PATH
5312do
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005317 ac_cv_prog_ac_ct_NMEDIT="nmedit"
drh8b727472009-01-19 18:18:40 +00005318 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005319 break 2
5320 fi
5321done
5322done
drh8b727472009-01-19 18:18:40 +00005323IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005324
5325fi
5326fi
5327ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5328if test -n "$ac_ct_NMEDIT"; then
drh8b727472009-01-19 18:18:40 +00005329 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5330$as_echo "$ac_ct_NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005331else
drh8b727472009-01-19 18:18:40 +00005332 { $as_echo "$as_me:$LINENO: result: no" >&5
5333$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005334fi
5335
drh8b727472009-01-19 18:18:40 +00005336 if test "x$ac_ct_NMEDIT" = x; then
5337 NMEDIT=":"
5338 else
5339 case $cross_compiling:$ac_tool_warned in
5340yes:)
drh934c5442009-04-13 09:09:24 +00005341{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5342whose name does not start with the host triplet. If you think this
5343configuration is useful to you, please write to autoconf@gnu.org." >&5
5344$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5345whose name does not start with the host triplet. If you think this
5346configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005347ac_tool_warned=yes ;;
5348esac
5349 NMEDIT=$ac_ct_NMEDIT
5350 fi
mlcreech636a9952008-05-05 22:52:56 +00005351else
5352 NMEDIT="$ac_cv_prog_NMEDIT"
5353fi
5354
5355 if test -n "$ac_tool_prefix"; then
5356 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5357set dummy ${ac_tool_prefix}lipo; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005358{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5359$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005360if test "${ac_cv_prog_LIPO+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005361 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005362else
5363 if test -n "$LIPO"; then
5364 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5365else
5366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367for as_dir in $PATH
5368do
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005373 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
drh8b727472009-01-19 18:18:40 +00005374 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005375 break 2
5376 fi
5377done
5378done
drh8b727472009-01-19 18:18:40 +00005379IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005380
5381fi
5382fi
5383LIPO=$ac_cv_prog_LIPO
5384if test -n "$LIPO"; then
drh8b727472009-01-19 18:18:40 +00005385 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
5386$as_echo "$LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005387else
drh8b727472009-01-19 18:18:40 +00005388 { $as_echo "$as_me:$LINENO: result: no" >&5
5389$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005390fi
5391
drh8b727472009-01-19 18:18:40 +00005392
mlcreech636a9952008-05-05 22:52:56 +00005393fi
5394if test -z "$ac_cv_prog_LIPO"; then
5395 ac_ct_LIPO=$LIPO
5396 # Extract the first word of "lipo", so it can be a program name with args.
5397set dummy lipo; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005398{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5399$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005400if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005401 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005402else
5403 if test -n "$ac_ct_LIPO"; then
5404 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5405else
5406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407for as_dir in $PATH
5408do
5409 IFS=$as_save_IFS
5410 test -z "$as_dir" && as_dir=.
5411 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005413 ac_cv_prog_ac_ct_LIPO="lipo"
drh8b727472009-01-19 18:18:40 +00005414 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005415 break 2
5416 fi
5417done
5418done
drh8b727472009-01-19 18:18:40 +00005419IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005420
5421fi
5422fi
5423ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5424if test -n "$ac_ct_LIPO"; then
drh8b727472009-01-19 18:18:40 +00005425 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5426$as_echo "$ac_ct_LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005427else
drh8b727472009-01-19 18:18:40 +00005428 { $as_echo "$as_me:$LINENO: result: no" >&5
5429$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005430fi
5431
drh8b727472009-01-19 18:18:40 +00005432 if test "x$ac_ct_LIPO" = x; then
5433 LIPO=":"
5434 else
5435 case $cross_compiling:$ac_tool_warned in
5436yes:)
drh934c5442009-04-13 09:09:24 +00005437{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5438whose name does not start with the host triplet. If you think this
5439configuration is useful to you, please write to autoconf@gnu.org." >&5
5440$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5441whose name does not start with the host triplet. If you think this
5442configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005443ac_tool_warned=yes ;;
5444esac
5445 LIPO=$ac_ct_LIPO
5446 fi
mlcreech636a9952008-05-05 22:52:56 +00005447else
5448 LIPO="$ac_cv_prog_LIPO"
5449fi
5450
5451 if test -n "$ac_tool_prefix"; then
5452 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5453set dummy ${ac_tool_prefix}otool; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005454{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5455$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005456if test "${ac_cv_prog_OTOOL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005457 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005458else
5459 if test -n "$OTOOL"; then
5460 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5461else
5462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463for as_dir in $PATH
5464do
5465 IFS=$as_save_IFS
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005469 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
drh8b727472009-01-19 18:18:40 +00005470 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005471 break 2
5472 fi
5473done
5474done
drh8b727472009-01-19 18:18:40 +00005475IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005476
5477fi
5478fi
5479OTOOL=$ac_cv_prog_OTOOL
5480if test -n "$OTOOL"; then
drh8b727472009-01-19 18:18:40 +00005481 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
5482$as_echo "$OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005483else
drh8b727472009-01-19 18:18:40 +00005484 { $as_echo "$as_me:$LINENO: result: no" >&5
5485$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005486fi
5487
drh8b727472009-01-19 18:18:40 +00005488
mlcreech636a9952008-05-05 22:52:56 +00005489fi
5490if test -z "$ac_cv_prog_OTOOL"; then
5491 ac_ct_OTOOL=$OTOOL
5492 # Extract the first word of "otool", so it can be a program name with args.
5493set dummy otool; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005494{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5495$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005496if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005497 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005498else
5499 if test -n "$ac_ct_OTOOL"; then
5500 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5501else
5502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503for as_dir in $PATH
5504do
5505 IFS=$as_save_IFS
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005509 ac_cv_prog_ac_ct_OTOOL="otool"
drh8b727472009-01-19 18:18:40 +00005510 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005511 break 2
5512 fi
5513done
5514done
drh8b727472009-01-19 18:18:40 +00005515IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005516
5517fi
5518fi
5519ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5520if test -n "$ac_ct_OTOOL"; then
drh8b727472009-01-19 18:18:40 +00005521 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5522$as_echo "$ac_ct_OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005523else
drh8b727472009-01-19 18:18:40 +00005524 { $as_echo "$as_me:$LINENO: result: no" >&5
5525$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005526fi
5527
drh8b727472009-01-19 18:18:40 +00005528 if test "x$ac_ct_OTOOL" = x; then
5529 OTOOL=":"
5530 else
5531 case $cross_compiling:$ac_tool_warned in
5532yes:)
drh934c5442009-04-13 09:09:24 +00005533{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5534whose name does not start with the host triplet. If you think this
5535configuration is useful to you, please write to autoconf@gnu.org." >&5
5536$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5537whose name does not start with the host triplet. If you think this
5538configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005539ac_tool_warned=yes ;;
5540esac
5541 OTOOL=$ac_ct_OTOOL
5542 fi
mlcreech636a9952008-05-05 22:52:56 +00005543else
5544 OTOOL="$ac_cv_prog_OTOOL"
5545fi
5546
5547 if test -n "$ac_tool_prefix"; then
5548 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5549set dummy ${ac_tool_prefix}otool64; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005550{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5551$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005552if test "${ac_cv_prog_OTOOL64+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005553 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005554else
5555 if test -n "$OTOOL64"; then
5556 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5557else
5558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559for as_dir in $PATH
5560do
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
5563 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005565 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
drh8b727472009-01-19 18:18:40 +00005566 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005567 break 2
5568 fi
5569done
5570done
drh8b727472009-01-19 18:18:40 +00005571IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005572
5573fi
5574fi
5575OTOOL64=$ac_cv_prog_OTOOL64
5576if test -n "$OTOOL64"; then
drh8b727472009-01-19 18:18:40 +00005577 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
5578$as_echo "$OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005579else
drh8b727472009-01-19 18:18:40 +00005580 { $as_echo "$as_me:$LINENO: result: no" >&5
5581$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005582fi
5583
drh8b727472009-01-19 18:18:40 +00005584
mlcreech636a9952008-05-05 22:52:56 +00005585fi
5586if test -z "$ac_cv_prog_OTOOL64"; then
5587 ac_ct_OTOOL64=$OTOOL64
5588 # Extract the first word of "otool64", so it can be a program name with args.
5589set dummy otool64; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005590{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5591$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005592if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005593 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005594else
5595 if test -n "$ac_ct_OTOOL64"; then
5596 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5597else
5598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599for as_dir in $PATH
5600do
5601 IFS=$as_save_IFS
5602 test -z "$as_dir" && as_dir=.
5603 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005605 ac_cv_prog_ac_ct_OTOOL64="otool64"
drh8b727472009-01-19 18:18:40 +00005606 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005607 break 2
5608 fi
5609done
5610done
drh8b727472009-01-19 18:18:40 +00005611IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005612
5613fi
5614fi
5615ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5616if test -n "$ac_ct_OTOOL64"; then
drh8b727472009-01-19 18:18:40 +00005617 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5618$as_echo "$ac_ct_OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005619else
drh8b727472009-01-19 18:18:40 +00005620 { $as_echo "$as_me:$LINENO: result: no" >&5
5621$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005622fi
5623
drh8b727472009-01-19 18:18:40 +00005624 if test "x$ac_ct_OTOOL64" = x; then
5625 OTOOL64=":"
5626 else
5627 case $cross_compiling:$ac_tool_warned in
5628yes:)
drh934c5442009-04-13 09:09:24 +00005629{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5630whose name does not start with the host triplet. If you think this
5631configuration is useful to you, please write to autoconf@gnu.org." >&5
5632$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5633whose name does not start with the host triplet. If you think this
5634configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005635ac_tool_warned=yes ;;
5636esac
5637 OTOOL64=$ac_ct_OTOOL64
5638 fi
mlcreech636a9952008-05-05 22:52:56 +00005639else
5640 OTOOL64="$ac_cv_prog_OTOOL64"
5641fi
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
drh8b727472009-01-19 18:18:40 +00005669 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5670$as_echo_n "checking for -single_module linker flag... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005671if test "${lt_cv_apple_cc_single_mod+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005672 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005673else
5674 lt_cv_apple_cc_single_mod=no
5675 if test -z "${LT_MULTI_MODULE}"; then
5676 # By default we will add the -single_module flag. You can override
5677 # by either setting the environment variable LT_MULTI_MODULE
5678 # non-empty at configure time, or by adding -multi_module to the
5679 # link flags.
5680 rm -rf libconftest.dylib*
5681 echo "int foo(void){return 1;}" > conftest.c
5682 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5683-dynamiclib -Wl,-single_module conftest.c" >&5
5684 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5685 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5686 _lt_result=$?
5687 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5688 lt_cv_apple_cc_single_mod=yes
5689 else
5690 cat conftest.err >&5
5691 fi
5692 rm -rf libconftest.dylib*
5693 rm -f conftest.*
5694 fi
5695fi
drh8b727472009-01-19 18:18:40 +00005696{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5697$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5698 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5699$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005700if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005701 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005702else
5703 lt_cv_ld_exported_symbols_list=no
5704 save_LDFLAGS=$LDFLAGS
5705 echo "_main" > conftest.sym
5706 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5707 cat >conftest.$ac_ext <<_ACEOF
5708/* confdefs.h. */
5709_ACEOF
5710cat confdefs.h >>conftest.$ac_ext
5711cat >>conftest.$ac_ext <<_ACEOF
5712/* end confdefs.h. */
5713
5714int
5715main ()
5716{
5717
5718 ;
5719 return 0;
5720}
5721_ACEOF
5722rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00005723if { (ac_try="$ac_link"
5724case "(($ac_try" in
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5727esac
5728eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5729$as_echo "$ac_try_echo") >&5
5730 (eval "$ac_link") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00005731 ac_status=$?
5732 grep -v '^ *+' conftest.er1 >conftest.err
5733 rm -f conftest.er1
5734 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } && {
5737 test -z "$ac_c_werror_flag" ||
5738 test ! -s conftest.err
5739 } && test -s conftest$ac_exeext && {
5740 test "$cross_compiling" = yes ||
5741 $as_test_x conftest$ac_exeext
5742 }; then
mlcreech636a9952008-05-05 22:52:56 +00005743 lt_cv_ld_exported_symbols_list=yes
5744else
drh8b727472009-01-19 18:18:40 +00005745 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00005746sed 's/^/| /' conftest.$ac_ext >&5
5747
drh8b727472009-01-19 18:18:40 +00005748 lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00005749fi
drh8b727472009-01-19 18:18:40 +00005750
5751rm -rf conftest.dSYM
5752rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mlcreech636a9952008-05-05 22:52:56 +00005753 conftest$ac_exeext conftest.$ac_ext
5754 LDFLAGS="$save_LDFLAGS"
5755
5756fi
drh8b727472009-01-19 18:18:40 +00005757{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5758$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005759 case $host_os in
5760 rhapsody* | darwin1.[012])
5761 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5762 darwin1.*)
5763 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5764 darwin*) # darwin 5.x on
5765 # if running on 10.5 or later, the deployment target defaults
5766 # to the OS version, if on x86, and 10.4, the deployment
5767 # target defaults to 10.4. Don't you love it?
5768 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5769 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5770 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5771 10.[012]*)
5772 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5773 10.*)
5774 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5775 esac
5776 ;;
5777 esac
5778 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5779 _lt_dar_single_mod='$single_module'
5780 fi
5781 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5782 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5783 else
5784 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5785 fi
5786 if test "$DSYMUTIL" != ":"; then
5787 _lt_dsymutil='~$DSYMUTIL $lib || :'
5788 else
5789 _lt_dsymutil=
5790 fi
5791 ;;
5792 esac
5793
a.rottmann84e63352003-03-24 09:42:16 +00005794ac_ext=c
5795ac_cpp='$CPP $CPPFLAGS'
5796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5798ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh8b727472009-01-19 18:18:40 +00005799{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5800$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005801# On Suns, sometimes $CPP names a directory.
5802if test -n "$CPP" && test -d "$CPP"; then
5803 CPP=
5804fi
5805if test -z "$CPP"; then
5806 if test "${ac_cv_prog_CPP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005807 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005808else
a.rottmann84e63352003-03-24 09:42:16 +00005809 # Double quotes because CPP needs to be expanded
5810 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5811 do
5812 ac_preproc_ok=false
5813for ac_c_preproc_warn_flag in '' yes
5814do
5815 # Use a header file that comes with gcc, so configuring glibc
5816 # with a fresh cross-compiler works.
5817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5818 # <limits.h> exists even on freestanding compilers.
5819 # On the NeXT, cc -E runs the code through the compiler's parser,
5820 # not just through cpp. "Syntax error" is here to catch this case.
5821 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005822/* confdefs.h. */
5823_ACEOF
5824cat confdefs.h >>conftest.$ac_ext
5825cat >>conftest.$ac_ext <<_ACEOF
5826/* end confdefs.h. */
5827#ifdef __STDC__
5828# include <limits.h>
5829#else
5830# include <assert.h>
5831#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005832 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005833_ACEOF
drh8b727472009-01-19 18:18:40 +00005834if { (ac_try="$ac_cpp conftest.$ac_ext"
5835case "(($ac_try" in
5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5838esac
5839eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5840$as_echo "$ac_try_echo") >&5
5841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005842 ac_status=$?
5843 grep -v '^ *+' conftest.er1 >conftest.err
5844 rm -f conftest.er1
5845 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } >/dev/null && {
5848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5849 test ! -s conftest.err
5850 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005851 :
5852else
drh8b727472009-01-19 18:18:40 +00005853 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005854sed 's/^/| /' conftest.$ac_ext >&5
5855
5856 # Broken: fails on valid input.
5857continue
5858fi
drh8b727472009-01-19 18:18:40 +00005859
a.rottmann84e63352003-03-24 09:42:16 +00005860rm -f conftest.err conftest.$ac_ext
5861
drh8b727472009-01-19 18:18:40 +00005862 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005863 # can be detected and how.
5864 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005865/* confdefs.h. */
5866_ACEOF
5867cat confdefs.h >>conftest.$ac_ext
5868cat >>conftest.$ac_ext <<_ACEOF
5869/* end confdefs.h. */
5870#include <ac_nonexistent.h>
5871_ACEOF
drh8b727472009-01-19 18:18:40 +00005872if { (ac_try="$ac_cpp conftest.$ac_ext"
5873case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5876esac
5877eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5878$as_echo "$ac_try_echo") >&5
5879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005880 ac_status=$?
5881 grep -v '^ *+' conftest.er1 >conftest.err
5882 rm -f conftest.er1
5883 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); } >/dev/null && {
5886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5887 test ! -s conftest.err
5888 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005889 # Broken: success on invalid input.
5890continue
5891else
drh8b727472009-01-19 18:18:40 +00005892 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005893sed 's/^/| /' conftest.$ac_ext >&5
5894
5895 # Passes both tests.
5896ac_preproc_ok=:
5897break
5898fi
drh8b727472009-01-19 18:18:40 +00005899
a.rottmann84e63352003-03-24 09:42:16 +00005900rm -f conftest.err conftest.$ac_ext
5901
5902done
5903# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5904rm -f conftest.err conftest.$ac_ext
5905if $ac_preproc_ok; then
5906 break
5907fi
5908
5909 done
5910 ac_cv_prog_CPP=$CPP
5911
5912fi
5913 CPP=$ac_cv_prog_CPP
5914else
5915 ac_cv_prog_CPP=$CPP
5916fi
drh8b727472009-01-19 18:18:40 +00005917{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
5918$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005919ac_preproc_ok=false
5920for ac_c_preproc_warn_flag in '' yes
5921do
5922 # Use a header file that comes with gcc, so configuring glibc
5923 # with a fresh cross-compiler works.
5924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5925 # <limits.h> exists even on freestanding compilers.
5926 # On the NeXT, cc -E runs the code through the compiler's parser,
5927 # not just through cpp. "Syntax error" is here to catch this case.
5928 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005929/* confdefs.h. */
5930_ACEOF
5931cat confdefs.h >>conftest.$ac_ext
5932cat >>conftest.$ac_ext <<_ACEOF
5933/* end confdefs.h. */
5934#ifdef __STDC__
5935# include <limits.h>
5936#else
5937# include <assert.h>
5938#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005939 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005940_ACEOF
drh8b727472009-01-19 18:18:40 +00005941if { (ac_try="$ac_cpp conftest.$ac_ext"
5942case "(($ac_try" in
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5945esac
5946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5947$as_echo "$ac_try_echo") >&5
5948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005949 ac_status=$?
5950 grep -v '^ *+' conftest.er1 >conftest.err
5951 rm -f conftest.er1
5952 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } >/dev/null && {
5955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5956 test ! -s conftest.err
5957 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005958 :
5959else
drh8b727472009-01-19 18:18:40 +00005960 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005961sed 's/^/| /' conftest.$ac_ext >&5
5962
5963 # Broken: fails on valid input.
5964continue
5965fi
drh8b727472009-01-19 18:18:40 +00005966
a.rottmann84e63352003-03-24 09:42:16 +00005967rm -f conftest.err conftest.$ac_ext
5968
drh8b727472009-01-19 18:18:40 +00005969 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005970 # can be detected and how.
5971 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005972/* confdefs.h. */
5973_ACEOF
5974cat confdefs.h >>conftest.$ac_ext
5975cat >>conftest.$ac_ext <<_ACEOF
5976/* end confdefs.h. */
5977#include <ac_nonexistent.h>
5978_ACEOF
drh8b727472009-01-19 18:18:40 +00005979if { (ac_try="$ac_cpp conftest.$ac_ext"
5980case "(($ac_try" in
5981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5982 *) ac_try_echo=$ac_try;;
5983esac
5984eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5985$as_echo "$ac_try_echo") >&5
5986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005987 ac_status=$?
5988 grep -v '^ *+' conftest.er1 >conftest.err
5989 rm -f conftest.er1
5990 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } >/dev/null && {
5993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5994 test ! -s conftest.err
5995 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005996 # Broken: success on invalid input.
5997continue
5998else
drh8b727472009-01-19 18:18:40 +00005999 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006000sed 's/^/| /' conftest.$ac_ext >&5
6001
6002 # Passes both tests.
6003ac_preproc_ok=:
6004break
6005fi
drh8b727472009-01-19 18:18:40 +00006006
a.rottmann84e63352003-03-24 09:42:16 +00006007rm -f conftest.err conftest.$ac_ext
6008
6009done
6010# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6011rm -f conftest.err conftest.$ac_ext
6012if $ac_preproc_ok; then
6013 :
6014else
drh934c5442009-04-13 09:09:24 +00006015 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
a.rottmann84e63352003-03-24 09:42:16 +00006016See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00006017$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
a.rottmann84e63352003-03-24 09:42:16 +00006018See \`config.log' for more details." >&2;}
drh934c5442009-04-13 09:09:24 +00006019 { (exit 1); exit 1; }; }
a.rottmann84e63352003-03-24 09:42:16 +00006020fi
6021
6022ac_ext=c
6023ac_cpp='$CPP $CPPFLAGS'
6024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6026ac_compiler_gnu=$ac_cv_c_compiler_gnu
6027
6028
drh8b727472009-01-19 18:18:40 +00006029{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6030$as_echo_n "checking for ANSI C header files... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006031if test "${ac_cv_header_stdc+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006032 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006033else
6034 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006035/* confdefs.h. */
6036_ACEOF
6037cat confdefs.h >>conftest.$ac_ext
6038cat >>conftest.$ac_ext <<_ACEOF
6039/* end confdefs.h. */
6040#include <stdlib.h>
6041#include <stdarg.h>
6042#include <string.h>
6043#include <float.h>
6044
6045int
6046main ()
6047{
6048
6049 ;
6050 return 0;
6051}
6052_ACEOF
6053rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00006054if { (ac_try="$ac_compile"
6055case "(($ac_try" in
6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057 *) ac_try_echo=$ac_try;;
6058esac
6059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6060$as_echo "$ac_try_echo") >&5
6061 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006062 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006063 grep -v '^ *+' conftest.er1 >conftest.err
6064 rm -f conftest.er1
6065 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00006066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } && {
6068 test -z "$ac_c_werror_flag" ||
6069 test ! -s conftest.err
6070 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00006071 ac_cv_header_stdc=yes
6072else
drh8b727472009-01-19 18:18:40 +00006073 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006074sed 's/^/| /' conftest.$ac_ext >&5
6075
drh8b727472009-01-19 18:18:40 +00006076 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006077fi
drh8b727472009-01-19 18:18:40 +00006078
6079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006080
6081if test $ac_cv_header_stdc = yes; then
6082 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6083 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006084/* confdefs.h. */
6085_ACEOF
6086cat confdefs.h >>conftest.$ac_ext
6087cat >>conftest.$ac_ext <<_ACEOF
6088/* end confdefs.h. */
6089#include <string.h>
6090
6091_ACEOF
6092if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6093 $EGREP "memchr" >/dev/null 2>&1; then
6094 :
6095else
6096 ac_cv_header_stdc=no
6097fi
6098rm -f conftest*
6099
6100fi
6101
6102if test $ac_cv_header_stdc = yes; then
6103 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6104 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006105/* confdefs.h. */
6106_ACEOF
6107cat confdefs.h >>conftest.$ac_ext
6108cat >>conftest.$ac_ext <<_ACEOF
6109/* end confdefs.h. */
6110#include <stdlib.h>
6111
6112_ACEOF
6113if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6114 $EGREP "free" >/dev/null 2>&1; then
6115 :
6116else
6117 ac_cv_header_stdc=no
6118fi
6119rm -f conftest*
6120
6121fi
6122
6123if test $ac_cv_header_stdc = yes; then
6124 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6125 if test "$cross_compiling" = yes; then
6126 :
6127else
6128 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006129/* confdefs.h. */
6130_ACEOF
6131cat confdefs.h >>conftest.$ac_ext
6132cat >>conftest.$ac_ext <<_ACEOF
6133/* end confdefs.h. */
6134#include <ctype.h>
drh8b727472009-01-19 18:18:40 +00006135#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006136#if ((' ' & 0x0FF) == 0x020)
6137# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6138# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6139#else
6140# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006141 (('a' <= (c) && (c) <= 'i') \
6142 || ('j' <= (c) && (c) <= 'r') \
6143 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006144# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6145#endif
6146
6147#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6148int
6149main ()
6150{
6151 int i;
6152 for (i = 0; i < 256; i++)
6153 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006154 || toupper (i) != TOUPPER (i))
drh8b727472009-01-19 18:18:40 +00006155 return 2;
6156 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006157}
6158_ACEOF
6159rm -f conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00006160if { (ac_try="$ac_link"
6161case "(($ac_try" in
6162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163 *) ac_try_echo=$ac_try;;
6164esac
6165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6166$as_echo "$ac_try_echo") >&5
6167 (eval "$ac_link") 2>&5
a.rottmann84e63352003-03-24 09:42:16 +00006168 ac_status=$?
drh8b727472009-01-19 18:18:40 +00006169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
drh8b727472009-01-19 18:18:40 +00006171 { (case "(($ac_try" in
6172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6173 *) ac_try_echo=$ac_try;;
6174esac
6175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6176$as_echo "$ac_try_echo") >&5
6177 (eval "$ac_try") 2>&5
a.rottmann84e63352003-03-24 09:42:16 +00006178 ac_status=$?
drh8b727472009-01-19 18:18:40 +00006179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006180 (exit $ac_status); }; }; then
6181 :
6182else
drh8b727472009-01-19 18:18:40 +00006183 $as_echo "$as_me: program exited with status $ac_status" >&5
6184$as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006185sed 's/^/| /' conftest.$ac_ext >&5
6186
6187( exit $ac_status )
6188ac_cv_header_stdc=no
6189fi
drh8b727472009-01-19 18:18:40 +00006190rm -rf conftest.dSYM
6191rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6192fi
6193
6194
a.rottmann84e63352003-03-24 09:42:16 +00006195fi
6196fi
drh8b727472009-01-19 18:18:40 +00006197{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6198$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006199if test $ac_cv_header_stdc = yes; then
6200
6201cat >>confdefs.h <<\_ACEOF
6202#define STDC_HEADERS 1
6203_ACEOF
6204
6205fi
6206
6207# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006218 inttypes.h stdint.h unistd.h
a.rottmann84e63352003-03-24 09:42:16 +00006219do
drh8b727472009-01-19 18:18:40 +00006220as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6221{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6222$as_echo_n "checking for $ac_header... " >&6; }
6223if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6224 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006225else
6226 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006227/* confdefs.h. */
6228_ACEOF
6229cat confdefs.h >>conftest.$ac_ext
6230cat >>conftest.$ac_ext <<_ACEOF
6231/* end confdefs.h. */
6232$ac_includes_default
6233
6234#include <$ac_header>
6235_ACEOF
6236rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00006237if { (ac_try="$ac_compile"
6238case "(($ac_try" in
6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6241esac
6242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6243$as_echo "$ac_try_echo") >&5
6244 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006245 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006246 grep -v '^ *+' conftest.er1 >conftest.err
6247 rm -f conftest.er1
6248 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00006249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } && {
6251 test -z "$ac_c_werror_flag" ||
6252 test ! -s conftest.err
6253 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00006254 eval "$as_ac_Header=yes"
6255else
drh8b727472009-01-19 18:18:40 +00006256 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006257sed 's/^/| /' conftest.$ac_ext >&5
6258
drh8b727472009-01-19 18:18:40 +00006259 eval "$as_ac_Header=no"
a.rottmann84e63352003-03-24 09:42:16 +00006260fi
drh8b727472009-01-19 18:18:40 +00006261
6262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006263fi
drh8b727472009-01-19 18:18:40 +00006264ac_res=`eval 'as_val=${'$as_ac_Header'}
6265 $as_echo "$as_val"'`
6266 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6267$as_echo "$ac_res" >&6; }
drh934c5442009-04-13 09:09:24 +00006268if test `eval 'as_val=${'$as_ac_Header'}
6269 $as_echo "$as_val"'` = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00006270 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006271#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006272_ACEOF
6273
6274fi
6275
6276done
6277
6278
6279
6280for ac_header in dlfcn.h
6281do
drh8b727472009-01-19 18:18:40 +00006282as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6283{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6284$as_echo_n "checking for $ac_header... " >&6; }
6285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6286 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006287else
mlcreech636a9952008-05-05 22:52:56 +00006288 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006289/* confdefs.h. */
6290_ACEOF
6291cat confdefs.h >>conftest.$ac_ext
6292cat >>conftest.$ac_ext <<_ACEOF
6293/* end confdefs.h. */
6294$ac_includes_default
mlcreech636a9952008-05-05 22:52:56 +00006295
a.rottmann84e63352003-03-24 09:42:16 +00006296#include <$ac_header>
6297_ACEOF
6298rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00006299if { (ac_try="$ac_compile"
6300case "(($ac_try" in
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6303esac
6304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6305$as_echo "$ac_try_echo") >&5
6306 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006307 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006308 grep -v '^ *+' conftest.er1 >conftest.err
6309 rm -f conftest.er1
6310 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00006311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } && {
6313 test -z "$ac_c_werror_flag" ||
6314 test ! -s conftest.err
6315 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +00006316 eval "$as_ac_Header=yes"
a.rottmann84e63352003-03-24 09:42:16 +00006317else
drh8b727472009-01-19 18:18:40 +00006318 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006319sed 's/^/| /' conftest.$ac_ext >&5
6320
drh8b727472009-01-19 18:18:40 +00006321 eval "$as_ac_Header=no"
a.rottmann84e63352003-03-24 09:42:16 +00006322fi
drh8b727472009-01-19 18:18:40 +00006323
6324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006325fi
drh8b727472009-01-19 18:18:40 +00006326ac_res=`eval 'as_val=${'$as_ac_Header'}
6327 $as_echo "$as_val"'`
6328 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6329$as_echo "$ac_res" >&6; }
drh934c5442009-04-13 09:09:24 +00006330if test `eval 'as_val=${'$as_ac_Header'}
6331 $as_echo "$as_val"'` = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00006332 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006333#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006334_ACEOF
6335
6336fi
6337
drh71eb93e2001-09-28 01:34:43 +00006338done
6339
drh71eb93e2001-09-28 01:34:43 +00006340
drh71eb93e2001-09-28 01:34:43 +00006341
mlcreech636a9952008-05-05 22:52:56 +00006342# Set options
mlcreech94984912008-03-04 19:03:08 +00006343
drh71eb93e2001-09-28 01:34:43 +00006344
drh71eb93e2001-09-28 01:34:43 +00006345
mlcreech636a9952008-05-05 22:52:56 +00006346 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006347
a.rottmann9bc8b932004-02-29 15:18:31 +00006348
mlcreech636a9952008-05-05 22:52:56 +00006349 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006350
a.rottmann9bc8b932004-02-29 15:18:31 +00006351
drh8b727472009-01-19 18:18:40 +00006352 # Check whether --enable-shared was given.
mlcreech636a9952008-05-05 22:52:56 +00006353if test "${enable_shared+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006354 enableval=$enable_shared; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006355 case $enableval in
6356 yes) enable_shared=yes ;;
6357 no) enable_shared=no ;;
6358 *)
6359 enable_shared=no
6360 # Look at the argument we got. We use all the common list separators.
6361 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6362 for pkg in $enableval; do
6363 IFS="$lt_save_ifs"
6364 if test "X$pkg" = "X$p"; then
6365 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006366 fi
mlcreech636a9952008-05-05 22:52:56 +00006367 done
6368 IFS="$lt_save_ifs"
6369 ;;
6370 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006371else
mlcreech636a9952008-05-05 22:52:56 +00006372 enable_shared=yes
drh8b727472009-01-19 18:18:40 +00006373fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006374
mlcreech636a9952008-05-05 22:52:56 +00006375
6376
6377
6378
6379
6380
6381
drh8b727472009-01-19 18:18:40 +00006382
6383 # Check whether --enable-static was given.
mlcreech636a9952008-05-05 22:52:56 +00006384if test "${enable_static+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006385 enableval=$enable_static; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006386 case $enableval in
6387 yes) enable_static=yes ;;
6388 no) enable_static=no ;;
6389 *)
6390 enable_static=no
6391 # Look at the argument we got. We use all the common list separators.
6392 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6393 for pkg in $enableval; do
6394 IFS="$lt_save_ifs"
6395 if test "X$pkg" = "X$p"; then
6396 enable_static=yes
6397 fi
6398 done
6399 IFS="$lt_save_ifs"
6400 ;;
6401 esac
6402else
6403 enable_static=yes
drh8b727472009-01-19 18:18:40 +00006404fi
mlcreech636a9952008-05-05 22:52:56 +00006405
6406
6407
6408
6409
6410
6411
6412
6413
drh8b727472009-01-19 18:18:40 +00006414
6415# Check whether --with-pic was given.
mlcreech636a9952008-05-05 22:52:56 +00006416if test "${with_pic+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006417 withval=$with_pic; pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00006418else
6419 pic_mode=default
drh8b727472009-01-19 18:18:40 +00006420fi
6421
mlcreech636a9952008-05-05 22:52:56 +00006422
6423test -z "$pic_mode" && pic_mode=default
6424
6425
6426
6427
6428
6429
6430
drh8b727472009-01-19 18:18:40 +00006431 # Check whether --enable-fast-install was given.
mlcreech636a9952008-05-05 22:52:56 +00006432if test "${enable_fast_install+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006433 enableval=$enable_fast_install; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006434 case $enableval in
6435 yes) enable_fast_install=yes ;;
6436 no) enable_fast_install=no ;;
6437 *)
6438 enable_fast_install=no
6439 # Look at the argument we got. We use all the common list separators.
6440 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6441 for pkg in $enableval; do
6442 IFS="$lt_save_ifs"
6443 if test "X$pkg" = "X$p"; then
6444 enable_fast_install=yes
6445 fi
6446 done
6447 IFS="$lt_save_ifs"
6448 ;;
6449 esac
6450else
6451 enable_fast_install=yes
drh8b727472009-01-19 18:18:40 +00006452fi
6453
mlcreech636a9952008-05-05 22:52:56 +00006454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464# This can be used to rebuild libtool when needed
6465LIBTOOL_DEPS="$ltmain"
6466
6467# Always use our own libtool.
6468LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494test -z "$LN_S" && LN_S="ln -s"
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509if test -n "${ZSH_VERSION+set}" ; then
6510 setopt NO_GLOB_SUBST
6511fi
6512
drh8b727472009-01-19 18:18:40 +00006513{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6514$as_echo_n "checking for objdir... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006515if test "${lt_cv_objdir+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006516 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006517else
6518 rm -f .libs 2>/dev/null
6519mkdir .libs 2>/dev/null
6520if test -d .libs; then
6521 lt_cv_objdir=.libs
6522else
6523 # MS-DOS does not allow filenames that begin with a dot.
6524 lt_cv_objdir=_libs
6525fi
6526rmdir .libs 2>/dev/null
6527fi
drh8b727472009-01-19 18:18:40 +00006528{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6529$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006530objdir=$lt_cv_objdir
6531
6532
6533
6534
6535
mlcreech636a9952008-05-05 22:52:56 +00006536cat >>confdefs.h <<_ACEOF
6537#define LT_OBJDIR "$lt_cv_objdir/"
6538_ACEOF
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
a.rottmann9bc8b932004-02-29 15:18:31 +00006556case $host_os in
6557aix3*)
6558 # AIX sometimes has problems with the GCC collect2 program. For some
6559 # reason, if we set the COLLECT_NAMES environment variable, the problems
6560 # vanish in a puff of smoke.
6561 if test "X${COLLECT_NAMES+set}" != Xset; then
6562 COLLECT_NAMES=
6563 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006564 fi
6565 ;;
6566esac
6567
a.rottmann9bc8b932004-02-29 15:18:31 +00006568# Sed substitution that helps us do robust quoting. It backslashifies
6569# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006570sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006571
6572# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006573double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006574
6575# Sed substitution to delay expansion of an escaped shell variable in a
6576# double_quote_subst'ed string.
6577delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6578
mlcreech636a9952008-05-05 22:52:56 +00006579# Sed substitution to delay expansion of an escaped single quote.
6580delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6581
a.rottmann9bc8b932004-02-29 15:18:31 +00006582# Sed substitution to avoid accidental globbing in evaled expressions
6583no_glob_subst='s/\*/\\\*/g'
6584
a.rottmann9bc8b932004-02-29 15:18:31 +00006585# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006586ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006587can_build_shared=yes
6588
vapier7f19c022007-02-17 14:46:31 +00006589# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006590# which needs '.lib').
6591libext=a
mlcreech636a9952008-05-05 22:52:56 +00006592
a.rottmann9bc8b932004-02-29 15:18:31 +00006593with_gnu_ld="$lt_cv_prog_gnu_ld"
6594
a.rottmann84e63352003-03-24 09:42:16 +00006595old_CC="$CC"
6596old_CFLAGS="$CFLAGS"
6597
6598# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006599test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006600test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006601test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006602test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006603test -z "$ac_objext" && ac_objext=o
6604
vapier7f19c022007-02-17 14:46:31 +00006605for cc_temp in $compiler""; do
6606 case $cc_temp in
6607 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6608 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6609 \-*) ;;
6610 *) break;;
6611 esac
6612done
mlcreech636a9952008-05-05 22:52:56 +00006613cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006614
6615
a.rottmann9bc8b932004-02-29 15:18:31 +00006616# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006617test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006618case $deplibs_check_method in
6619file_magic*)
6620 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drh8b727472009-01-19 18:18:40 +00006621 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6622$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006623if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006624 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006625else
a.rottmann9bc8b932004-02-29 15:18:31 +00006626 case $MAGIC_CMD in
6627[\\/*] | ?:[\\/]*)
6628 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6629 ;;
6630*)
6631 lt_save_MAGIC_CMD="$MAGIC_CMD"
6632 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6633 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6634 for ac_dir in $ac_dummy; do
6635 IFS="$lt_save_ifs"
6636 test -z "$ac_dir" && ac_dir=.
6637 if test -f $ac_dir/${ac_tool_prefix}file; then
6638 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6639 if test -n "$file_magic_test_file"; then
6640 case $deplibs_check_method in
6641 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006642 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006643 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6644 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6645 $EGREP "$file_magic_regex" > /dev/null; then
6646 :
6647 else
mlcreech636a9952008-05-05 22:52:56 +00006648 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006649
a.rottmann9bc8b932004-02-29 15:18:31 +00006650*** Warning: the command libtool uses to detect shared libraries,
6651*** $file_magic_cmd, produces output that libtool cannot recognize.
6652*** The result is that libtool may fail to recognize shared libraries
6653*** as such. This will affect the creation of libtool libraries that
6654*** depend on shared libraries, but programs linked with such libtool
6655*** libraries will work regardless of this problem. Nevertheless, you
6656*** may want to report the problem to your system manager and/or to
6657*** bug-libtool@gnu.org
6658
mlcreech636a9952008-05-05 22:52:56 +00006659_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006660 fi ;;
6661 esac
6662 fi
6663 break
6664 fi
6665 done
6666 IFS="$lt_save_ifs"
6667 MAGIC_CMD="$lt_save_MAGIC_CMD"
6668 ;;
6669esac
6670fi
6671
6672MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6673if test -n "$MAGIC_CMD"; then
drh8b727472009-01-19 18:18:40 +00006674 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6675$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006676else
drh8b727472009-01-19 18:18:40 +00006677 { $as_echo "$as_me:$LINENO: result: no" >&5
6678$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006679fi
6680
mlcreech636a9952008-05-05 22:52:56 +00006681
6682
6683
6684
a.rottmann9bc8b932004-02-29 15:18:31 +00006685if test -z "$lt_cv_path_MAGIC_CMD"; then
6686 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00006687 { $as_echo "$as_me:$LINENO: checking for file" >&5
6688$as_echo_n "checking for file... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006689if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006690 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006691else
6692 case $MAGIC_CMD in
6693[\\/*] | ?:[\\/]*)
6694 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6695 ;;
6696*)
6697 lt_save_MAGIC_CMD="$MAGIC_CMD"
6698 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6699 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6700 for ac_dir in $ac_dummy; do
6701 IFS="$lt_save_ifs"
6702 test -z "$ac_dir" && ac_dir=.
6703 if test -f $ac_dir/file; then
6704 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6705 if test -n "$file_magic_test_file"; then
6706 case $deplibs_check_method in
6707 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006708 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006709 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6710 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6711 $EGREP "$file_magic_regex" > /dev/null; then
6712 :
6713 else
mlcreech636a9952008-05-05 22:52:56 +00006714 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006715
6716*** Warning: the command libtool uses to detect shared libraries,
6717*** $file_magic_cmd, produces output that libtool cannot recognize.
6718*** The result is that libtool may fail to recognize shared libraries
6719*** as such. This will affect the creation of libtool libraries that
6720*** depend on shared libraries, but programs linked with such libtool
6721*** libraries will work regardless of this problem. Nevertheless, you
6722*** may want to report the problem to your system manager and/or to
6723*** bug-libtool@gnu.org
6724
mlcreech636a9952008-05-05 22:52:56 +00006725_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006726 fi ;;
6727 esac
6728 fi
6729 break
6730 fi
6731 done
6732 IFS="$lt_save_ifs"
6733 MAGIC_CMD="$lt_save_MAGIC_CMD"
6734 ;;
6735esac
6736fi
6737
6738MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6739if test -n "$MAGIC_CMD"; then
drh8b727472009-01-19 18:18:40 +00006740 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6741$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006742else
drh8b727472009-01-19 18:18:40 +00006743 { $as_echo "$as_me:$LINENO: result: no" >&5
6744$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006745fi
6746
mlcreech636a9952008-05-05 22:52:56 +00006747
a.rottmann9bc8b932004-02-29 15:18:31 +00006748 else
6749 MAGIC_CMD=:
6750 fi
6751fi
6752
6753 fi
6754 ;;
6755esac
6756
a.rottmann9bc8b932004-02-29 15:18:31 +00006757# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006758
a.rottmann9bc8b932004-02-29 15:18:31 +00006759lt_save_CC="$CC"
6760ac_ext=c
6761ac_cpp='$CPP $CPPFLAGS'
6762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6764ac_compiler_gnu=$ac_cv_c_compiler_gnu
6765
6766
6767# Source file extension for C test sources.
6768ac_ext=c
6769
6770# Object file extension for compiled C test sources.
6771objext=o
6772objext=$objext
6773
6774# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006775lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006776
6777# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006778lt_simple_link_test_code='int main(){return(0);}'
6779
6780
6781
6782
6783
a.rottmann9bc8b932004-02-29 15:18:31 +00006784
6785
6786# If no C compiler was specified, use CC.
6787LTCC=${LTCC-"$CC"}
6788
vapier7f19c022007-02-17 14:46:31 +00006789# If no C compiler flags were specified, use CFLAGS.
6790LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6791
a.rottmann9bc8b932004-02-29 15:18:31 +00006792# Allow CC to be a program name with arguments.
6793compiler=$CC
6794
mlcreech636a9952008-05-05 22:52:56 +00006795# Save the default compiler, since it gets overwritten when the other
6796# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6797compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006798
vapier7f19c022007-02-17 14:46:31 +00006799# save warnings/boilerplate of simple test code
6800ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006801echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006802eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6803_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006804$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006805
vapier7f19c022007-02-17 14:46:31 +00006806ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006807echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006808eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6809_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006810$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006811
6812
mlcreech636a9952008-05-05 22:52:56 +00006813if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006814
6815lt_prog_compiler_no_builtin_flag=
6816
6817if test "$GCC" = yes; then
6818 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6819
drh8b727472009-01-19 18:18:40 +00006820 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6821$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006822if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006823 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006824else
6825 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006826 ac_outfile=conftest.$ac_objext
6827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006828 lt_compiler_flag="-fno-rtti -fno-exceptions"
6829 # Insert the option either (1) after the last *FLAGS variable, or
6830 # (2) before a word containing "conftest.", or (3) at the end.
6831 # Note that $ac_compile itself does not contain backslashes and begins
6832 # with a dollar sign (not a hyphen), so the echo should work correctly.
6833 # The option is referenced via a variable to avoid confusing sed.
6834 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6837 -e 's:$: $lt_compiler_flag:'`
drh934c5442009-04-13 09:09:24 +00006838 (eval echo "\"\$as_me:6838: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006839 (eval "$lt_compile" 2>conftest.err)
6840 ac_status=$?
6841 cat conftest.err >&5
drh934c5442009-04-13 09:09:24 +00006842 echo "$as_me:6842: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006843 if (exit $ac_status) && test -s "$ac_outfile"; then
6844 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006845 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006846 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006847 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6848 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006849 lt_cv_prog_compiler_rtti_exceptions=yes
6850 fi
6851 fi
mlcreech636a9952008-05-05 22:52:56 +00006852 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006853
6854fi
drh8b727472009-01-19 18:18:40 +00006855{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6856$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006857
6858if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6859 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6860else
6861 :
6862fi
6863
6864fi
6865
mlcreech636a9952008-05-05 22:52:56 +00006866
6867
6868
6869
6870
6871 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006872lt_prog_compiler_pic=
6873lt_prog_compiler_static=
6874
drh8b727472009-01-19 18:18:40 +00006875{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6876$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006877
drh71eb93e2001-09-28 01:34:43 +00006878 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006879 lt_prog_compiler_wl='-Wl,'
6880 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006881
6882 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006883 aix*)
6884 # All AIX code is PIC.
6885 if test "$host_cpu" = ia64; then
6886 # AIX 5 now supports IA64 processor
6887 lt_prog_compiler_static='-Bstatic'
6888 fi
drh71eb93e2001-09-28 01:34:43 +00006889 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006890
drh71eb93e2001-09-28 01:34:43 +00006891 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006892 case $host_cpu in
6893 powerpc)
6894 # see comment about AmigaOS4 .so support
6895 lt_prog_compiler_pic='-fPIC'
6896 ;;
6897 m68k)
6898 # FIXME: we need at least 68020 code to build shared libraries, but
6899 # adding the `-m68020' flag to GCC prevents building anything better,
6900 # like `-m68040'.
6901 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6902 ;;
6903 esac
drh71eb93e2001-09-28 01:34:43 +00006904 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006905
mlcreech636a9952008-05-05 22:52:56 +00006906 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006907 # PIC is the default for these OSes.
6908 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006909
vapier6acb2cf2009-01-28 04:46:28 +00006910 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006911 # This hack is so that the source file can tell whether it is being
6912 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006913 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6914 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006915 lt_prog_compiler_pic='-DDLL_EXPORT'
6916 ;;
6917
drh71eb93e2001-09-28 01:34:43 +00006918 darwin* | rhapsody*)
6919 # PIC is the default on this platform
6920 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006921 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006922 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006923
a.rottmann9bc8b932004-02-29 15:18:31 +00006924 hpux*)
vapier6acb2cf2009-01-28 04:46:28 +00006925 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6926 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6927 # sets the default TLS model and affects inlining.
vapier7f19c022007-02-17 14:46:31 +00006928 case $host_cpu in
vapier6acb2cf2009-01-28 04:46:28 +00006929 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006930 # +Z the default
6931 ;;
6932 *)
6933 lt_prog_compiler_pic='-fPIC'
6934 ;;
6935 esac
6936 ;;
6937
mlcreech636a9952008-05-05 22:52:56 +00006938 interix[3-9]*)
6939 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6940 # Instead, we relocate shared libraries at runtime.
6941 ;;
6942
6943 msdosdjgpp*)
6944 # Just because we use GCC doesn't mean we suddenly get shared libraries
6945 # on systems that don't support them.
6946 lt_prog_compiler_can_build_shared=no
6947 enable_shared=no
6948 ;;
6949
6950 *nto* | *qnx*)
6951 # QNX uses GNU C++, but need to define -shared option too, otherwise
6952 # it will coredump.
6953 lt_prog_compiler_pic='-fPIC -shared'
6954 ;;
6955
6956 sysv4*MP*)
6957 if test -d /usr/nec; then
6958 lt_prog_compiler_pic=-Kconform_pic
6959 fi
6960 ;;
6961
drh71eb93e2001-09-28 01:34:43 +00006962 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006963 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006964 ;;
6965 esac
6966 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006967 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006968 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006969 aix*)
6970 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006971 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006972 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006973 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006974 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006975 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006976 fi
6977 ;;
6978
vapier6acb2cf2009-01-28 04:46:28 +00006979 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006980 # This hack is so that the source file can tell whether it is being
6981 # built for inclusion in a dll (and should export symbols for example).
6982 lt_prog_compiler_pic='-DDLL_EXPORT'
6983 ;;
6984
a.rottmann84e63352003-03-24 09:42:16 +00006985 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006986 lt_prog_compiler_wl='-Wl,'
6987 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6988 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006989 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006990 hppa*64*|ia64*)
6991 # +Z the default
6992 ;;
6993 *)
6994 lt_prog_compiler_pic='+Z'
6995 ;;
6996 esac
6997 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6998 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006999 ;;
7000
7001 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007002 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00007003 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00007004 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00007005 ;;
7006
mlcreech636a9952008-05-05 22:52:56 +00007007 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00007008 case $cc_basename in
vapier6acb2cf2009-01-28 04:46:28 +00007009 # old Intel for x86_64 which still supported -KPIC.
7010 ecc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007011 lt_prog_compiler_wl='-Wl,'
7012 lt_prog_compiler_pic='-KPIC'
7013 lt_prog_compiler_static='-static'
7014 ;;
vapier6acb2cf2009-01-28 04:46:28 +00007015 # icc used to be incompatible with GCC.
7016 # ICC 10 doesn't accept -KPIC any more.
7017 icc* | ifort*)
7018 lt_prog_compiler_wl='-Wl,'
7019 lt_prog_compiler_pic='-fPIC'
7020 lt_prog_compiler_static='-static'
7021 ;;
7022 # Lahey Fortran 8.1.
7023 lf95*)
7024 lt_prog_compiler_wl='-Wl,'
7025 lt_prog_compiler_pic='--shared'
7026 lt_prog_compiler_static='--static'
7027 ;;
vapier7f19c022007-02-17 14:46:31 +00007028 pgcc* | pgf77* | pgf90* | pgf95*)
7029 # Portland Group compilers (*not* the Pentium gcc compiler,
7030 # which looks to be a dead project)
7031 lt_prog_compiler_wl='-Wl,'
7032 lt_prog_compiler_pic='-fpic'
7033 lt_prog_compiler_static='-Bstatic'
7034 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007035 ccc*)
7036 lt_prog_compiler_wl='-Wl,'
7037 # All Alpha code is PIC.
7038 lt_prog_compiler_static='-non_shared'
7039 ;;
mlcreech636a9952008-05-05 22:52:56 +00007040 xl*)
7041 # IBM XL C 8.0/Fortran 10.1 on PPC
7042 lt_prog_compiler_wl='-Wl,'
7043 lt_prog_compiler_pic='-qpic'
7044 lt_prog_compiler_static='-qstaticlink'
7045 ;;
7046 *)
7047 case `$CC -V 2>&1 | sed 5q` in
7048 *Sun\ C*)
7049 # Sun C 5.9
7050 lt_prog_compiler_pic='-KPIC'
7051 lt_prog_compiler_static='-Bstatic'
7052 lt_prog_compiler_wl='-Wl,'
7053 ;;
7054 *Sun\ F*)
7055 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7056 lt_prog_compiler_pic='-KPIC'
7057 lt_prog_compiler_static='-Bstatic'
7058 lt_prog_compiler_wl=''
7059 ;;
7060 esac
7061 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007062 esac
drh71eb93e2001-09-28 01:34:43 +00007063 ;;
7064
mlcreech636a9952008-05-05 22:52:56 +00007065 newsos6)
7066 lt_prog_compiler_pic='-KPIC'
7067 lt_prog_compiler_static='-Bstatic'
7068 ;;
7069
7070 *nto* | *qnx*)
7071 # QNX uses GNU C++, but need to define -shared option too, otherwise
7072 # it will coredump.
7073 lt_prog_compiler_pic='-fPIC -shared'
7074 ;;
7075
drh71eb93e2001-09-28 01:34:43 +00007076 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007077 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00007078 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00007079 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00007080 ;;
7081
mlcreech636a9952008-05-05 22:52:56 +00007082 rdos*)
7083 lt_prog_compiler_static='-non_shared'
7084 ;;
7085
drh71eb93e2001-09-28 01:34:43 +00007086 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007087 lt_prog_compiler_pic='-KPIC'
7088 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00007089 case $cc_basename in
7090 f77* | f90* | f95*)
7091 lt_prog_compiler_wl='-Qoption ld ';;
7092 *)
7093 lt_prog_compiler_wl='-Wl,';;
7094 esac
drh71eb93e2001-09-28 01:34:43 +00007095 ;;
7096
7097 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007098 lt_prog_compiler_wl='-Qoption ld '
7099 lt_prog_compiler_pic='-PIC'
7100 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00007101 ;;
7102
vapier7f19c022007-02-17 14:46:31 +00007103 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007104 lt_prog_compiler_wl='-Wl,'
7105 lt_prog_compiler_pic='-KPIC'
7106 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00007107 ;;
7108
7109 sysv4*MP*)
7110 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00007111 lt_prog_compiler_pic='-Kconform_pic'
7112 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00007113 fi
7114 ;;
7115
vapier7f19c022007-02-17 14:46:31 +00007116 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7117 lt_prog_compiler_wl='-Wl,'
7118 lt_prog_compiler_pic='-KPIC'
7119 lt_prog_compiler_static='-Bstatic'
7120 ;;
7121
7122 unicos*)
7123 lt_prog_compiler_wl='-Wl,'
7124 lt_prog_compiler_can_build_shared=no
7125 ;;
7126
a.rottmann9bc8b932004-02-29 15:18:31 +00007127 uts4*)
7128 lt_prog_compiler_pic='-pic'
7129 lt_prog_compiler_static='-Bstatic'
7130 ;;
7131
drh71eb93e2001-09-28 01:34:43 +00007132 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007133 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00007134 ;;
7135 esac
7136 fi
7137
mlcreech636a9952008-05-05 22:52:56 +00007138case $host_os in
7139 # For platforms which do not support PIC, -DPIC is meaningless:
7140 *djgpp*)
7141 lt_prog_compiler_pic=
7142 ;;
7143 *)
7144 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7145 ;;
7146esac
drh8b727472009-01-19 18:18:40 +00007147{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7148$as_echo "$lt_prog_compiler_pic" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007149
7150
7151
7152
7153
drh71eb93e2001-09-28 01:34:43 +00007154
a.rottmann9bc8b932004-02-29 15:18:31 +00007155#
7156# Check to make sure the PIC flag actually works.
7157#
7158if test -n "$lt_prog_compiler_pic"; then
drh8b727472009-01-19 18:18:40 +00007159 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7160$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007161if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007162 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007163else
mlcreech636a9952008-05-05 22:52:56 +00007164 lt_cv_prog_compiler_pic_works=no
7165 ac_outfile=conftest.$ac_objext
7166 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007167 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7168 # Insert the option either (1) after the last *FLAGS variable, or
7169 # (2) before a word containing "conftest.", or (3) at the end.
7170 # Note that $ac_compile itself does not contain backslashes and begins
7171 # with a dollar sign (not a hyphen), so the echo should work correctly.
7172 # The option is referenced via a variable to avoid confusing sed.
7173 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007174 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007175 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7176 -e 's:$: $lt_compiler_flag:'`
drh934c5442009-04-13 09:09:24 +00007177 (eval echo "\"\$as_me:7177: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007178 (eval "$lt_compile" 2>conftest.err)
7179 ac_status=$?
7180 cat conftest.err >&5
drh934c5442009-04-13 09:09:24 +00007181 echo "$as_me:7181: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007182 if (exit $ac_status) && test -s "$ac_outfile"; then
7183 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00007184 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00007185 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007186 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7187 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007188 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007189 fi
7190 fi
mlcreech636a9952008-05-05 22:52:56 +00007191 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007192
a.rottmann9bc8b932004-02-29 15:18:31 +00007193fi
drh8b727472009-01-19 18:18:40 +00007194{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7195$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007196
mlcreech636a9952008-05-05 22:52:56 +00007197if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007198 case $lt_prog_compiler_pic in
7199 "" | " "*) ;;
7200 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7201 esac
drh71eb93e2001-09-28 01:34:43 +00007202else
a.rottmann9bc8b932004-02-29 15:18:31 +00007203 lt_prog_compiler_pic=
7204 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00007205fi
7206
a.rottmann84e63352003-03-24 09:42:16 +00007207fi
mlcreech636a9952008-05-05 22:52:56 +00007208
7209
7210
7211
7212
a.rottmann84e63352003-03-24 09:42:16 +00007213
vapier7f19c022007-02-17 14:46:31 +00007214#
7215# Check to make sure the static flag actually works.
7216#
7217wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drh8b727472009-01-19 18:18:40 +00007218{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7219$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007220if test "${lt_cv_prog_compiler_static_works+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007221 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007222else
mlcreech636a9952008-05-05 22:52:56 +00007223 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007224 save_LDFLAGS="$LDFLAGS"
7225 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007226 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007227 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7228 # The linker can only warn and ignore the option if not recognized
7229 # So say no if there are warnings
7230 if test -s conftest.err; then
7231 # Append any errors to the config.log.
7232 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007233 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007234 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7235 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007236 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007237 fi
7238 else
mlcreech636a9952008-05-05 22:52:56 +00007239 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007240 fi
7241 fi
mlcreech636a9952008-05-05 22:52:56 +00007242 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007243 LDFLAGS="$save_LDFLAGS"
7244
7245fi
drh8b727472009-01-19 18:18:40 +00007246{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7247$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007248
mlcreech636a9952008-05-05 22:52:56 +00007249if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007250 :
7251else
7252 lt_prog_compiler_static=
7253fi
7254
7255
mlcreech636a9952008-05-05 22:52:56 +00007256
7257
7258
7259
7260
drh8b727472009-01-19 18:18:40 +00007261 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7262$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007263if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007264 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007265else
a.rottmann9bc8b932004-02-29 15:18:31 +00007266 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007267 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007268 mkdir conftest
7269 cd conftest
7270 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007271 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007272
a.rottmann9bc8b932004-02-29 15:18:31 +00007273 lt_compiler_flag="-o out/conftest2.$ac_objext"
7274 # Insert the option either (1) after the last *FLAGS variable, or
7275 # (2) before a word containing "conftest.", or (3) at the end.
7276 # Note that $ac_compile itself does not contain backslashes and begins
7277 # with a dollar sign (not a hyphen), so the echo should work correctly.
7278 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007279 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7281 -e 's:$: $lt_compiler_flag:'`
drh934c5442009-04-13 09:09:24 +00007282 (eval echo "\"\$as_me:7282: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007283 (eval "$lt_compile" 2>out/conftest.err)
7284 ac_status=$?
7285 cat out/conftest.err >&5
drh934c5442009-04-13 09:09:24 +00007286 echo "$as_me:7286: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007287 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7288 then
7289 # The compiler can only warn and ignore the option if not recognized
7290 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007291 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007292 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7293 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007294 lt_cv_prog_compiler_c_o=yes
7295 fi
7296 fi
vapier7f19c022007-02-17 14:46:31 +00007297 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007298 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007299 # SGI C++ compiler will create directory out/ii_files/ for
7300 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007301 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7302 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007303 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007304 $RM -r conftest
7305 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007306
7307fi
drh8b727472009-01-19 18:18:40 +00007308{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7309$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007310
7311
7312
7313
7314
7315
drh8b727472009-01-19 18:18:40 +00007316 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7317$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007318if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007319 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00007320else
7321 lt_cv_prog_compiler_c_o=no
7322 $RM -r conftest 2>/dev/null
7323 mkdir conftest
7324 cd conftest
7325 mkdir out
7326 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7327
7328 lt_compiler_flag="-o out/conftest2.$ac_objext"
7329 # Insert the option either (1) after the last *FLAGS variable, or
7330 # (2) before a word containing "conftest.", or (3) at the end.
7331 # Note that $ac_compile itself does not contain backslashes and begins
7332 # with a dollar sign (not a hyphen), so the echo should work correctly.
7333 lt_compile=`echo "$ac_compile" | $SED \
7334 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7335 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7336 -e 's:$: $lt_compiler_flag:'`
drh934c5442009-04-13 09:09:24 +00007337 (eval echo "\"\$as_me:7337: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00007338 (eval "$lt_compile" 2>out/conftest.err)
7339 ac_status=$?
7340 cat out/conftest.err >&5
drh934c5442009-04-13 09:09:24 +00007341 echo "$as_me:7341: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00007342 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7343 then
7344 # The compiler can only warn and ignore the option if not recognized
7345 # So say no if there are warnings
7346 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7347 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7348 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7349 lt_cv_prog_compiler_c_o=yes
7350 fi
7351 fi
7352 chmod u+w . 2>&5
7353 $RM conftest*
7354 # SGI C++ compiler will create directory out/ii_files/ for
7355 # template instantiation
7356 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7357 $RM out/* && rmdir out
7358 cd ..
7359 $RM -r conftest
7360 $RM conftest*
7361
7362fi
drh8b727472009-01-19 18:18:40 +00007363{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7364$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007365
7366
drh71eb93e2001-09-28 01:34:43 +00007367
a.rottmann84e63352003-03-24 09:42:16 +00007368
drh71eb93e2001-09-28 01:34:43 +00007369hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007370if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007371 # do not overwrite the value of need_locks provided by the user
drh8b727472009-01-19 18:18:40 +00007372 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7373$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007374 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007375 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007376 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7377 touch conftest.a
7378 ln conftest.a conftest.b 2>&5 || hard_links=no
7379 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drh8b727472009-01-19 18:18:40 +00007380 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7381$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007382 if test "$hard_links" = no; then
drh8b727472009-01-19 18:18:40 +00007383 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7384$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007385 need_locks=warn
7386 fi
7387else
7388 need_locks=no
7389fi
7390
mlcreech636a9952008-05-05 22:52:56 +00007391
7392
7393
7394
7395
drh8b727472009-01-19 18:18:40 +00007396 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7397$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007398
7399 runpath_var=
7400 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007401 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007402 archive_cmds=
7403 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007404 compiler_needs_object=no
7405 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007406 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007407 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7408 hardcode_automatic=no
7409 hardcode_direct=no
7410 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007411 hardcode_libdir_flag_spec=
7412 hardcode_libdir_flag_spec_ld=
7413 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007414 hardcode_minus_L=no
7415 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007416 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007417 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007418 module_cmds=
7419 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007420 old_archive_from_new_cmds=
7421 old_archive_from_expsyms_cmds=
7422 thread_safe_flag_spec=
7423 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007424 # include_expsyms should be a list of space-separated symbols to be *always*
7425 # included in the symbol list
7426 include_expsyms=
7427 # exclude_expsyms can be an extended regexp of symbols to exclude
7428 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7429 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7430 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007431 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007432 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7433 # platforms (ab)use it in PIC code, but their linkers get confused if
7434 # the symbol is explicitly referenced. Since portable code cannot
7435 # rely on this symbol name, it's probably fine to never include it in
7436 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007437 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007438 extract_expsyms_cmds=
7439
7440 case $host_os in
vapier6acb2cf2009-01-28 04:46:28 +00007441 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007442 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7443 # When not using gcc, we currently assume that we are using
7444 # Microsoft Visual C++.
7445 if test "$GCC" != yes; then
7446 with_gnu_ld=no
7447 fi
7448 ;;
vapier7f19c022007-02-17 14:46:31 +00007449 interix*)
7450 # we just hope/assume this is gcc and not c89 (= MSVC++)
7451 with_gnu_ld=yes
7452 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007453 openbsd*)
7454 with_gnu_ld=no
7455 ;;
7456 esac
7457
7458 ld_shlibs=yes
7459 if test "$with_gnu_ld" = yes; then
7460 # If archive_cmds runs LD, not CC, wlarc should be empty
7461 wlarc='${wl}'
7462
vapier7f19c022007-02-17 14:46:31 +00007463 # Set some defaults for GNU ld with shared library support. These
7464 # are reset later if shared libraries are not supported. Putting them
7465 # here allows them to be overridden if necessary.
7466 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007467 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007468 export_dynamic_flag_spec='${wl}--export-dynamic'
7469 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007470 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7471 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7472 else
7473 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007474 fi
7475 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007476 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007477 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7478 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7479 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7480 *\ 2.11.*) ;; # other 2.11 versions
7481 *) supports_anon_versioning=yes ;;
7482 esac
7483
a.rottmann9bc8b932004-02-29 15:18:31 +00007484 # See if GNU ld supports shared libraries.
7485 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007486 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007487 # On AIX/PPC, the GNU linker is very broken
7488 if test "$host_cpu" != ia64; then
7489 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007490 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007491
7492*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7493*** to be unable to reliably create shared libraries on AIX.
7494*** Therefore, libtool is disabling shared libraries support. If you
7495*** really care for shared libraries, you may want to modify your PATH
7496*** so that a non-GNU linker is found, and then restart.
7497
mlcreech636a9952008-05-05 22:52:56 +00007498_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007499 fi
7500 ;;
7501
7502 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007503 case $host_cpu in
7504 powerpc)
7505 # see comment about AmigaOS4 .so support
7506 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7507 archive_expsym_cmds=''
7508 ;;
7509 m68k)
7510 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)'
7511 hardcode_libdir_flag_spec='-L$libdir'
7512 hardcode_minus_L=yes
7513 ;;
7514 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007515 ;;
7516
7517 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007518 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007519 allow_undefined_flag=unsupported
7520 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7521 # support --undefined. This deserves some investigation. FIXME
7522 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7523 else
7524 ld_shlibs=no
7525 fi
7526 ;;
7527
vapier6acb2cf2009-01-28 04:46:28 +00007528 cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00007529 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007530 # as there is no search path for DLLs.
7531 hardcode_libdir_flag_spec='-L$libdir'
7532 allow_undefined_flag=unsupported
7533 always_export_symbols=no
7534 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007535 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 +00007536
mlcreech636a9952008-05-05 22:52:56 +00007537 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007538 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 +00007539 # If the export-symbols file already is a .def file (1st line
7540 # is EXPORTS), use it as is; otherwise, prepend...
7541 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7542 cp $export_symbols $output_objdir/$soname.def;
7543 else
7544 echo EXPORTS > $output_objdir/$soname.def;
7545 cat $export_symbols >> $output_objdir/$soname.def;
7546 fi~
vapier7f19c022007-02-17 14:46:31 +00007547 $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 +00007548 else
7549 ld_shlibs=no
7550 fi
7551 ;;
7552
mlcreech636a9952008-05-05 22:52:56 +00007553 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007554 hardcode_direct=no
7555 hardcode_shlibpath_var=no
7556 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7557 export_dynamic_flag_spec='${wl}-E'
7558 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7559 # Instead, shared libraries are loaded at an image base (0x10000000 by
7560 # default) and relocated if they conflict, which is a slow very memory
7561 # consuming and fragmenting process. To avoid this, we pick a random,
7562 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7563 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7564 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7565 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'
7566 ;;
7567
mlcreech636a9952008-05-05 22:52:56 +00007568 gnu* | linux* | tpf* | k*bsd*-gnu)
7569 tmp_diet=no
7570 if test "$host_os" = linux-dietlibc; then
7571 case $cc_basename in
7572 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7573 esac
7574 fi
7575 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7576 && test "$tmp_diet" = no
7577 then
vapier7f19c022007-02-17 14:46:31 +00007578 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007579 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007580 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007581 pgcc*) # Portland Group C compiler
7582 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 +00007583 tmp_addflag=' $pic_flag'
7584 ;;
7585 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007586 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 +00007587 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007588 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007589 tmp_addflag=' -i_dynamic' ;;
7590 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7591 tmp_addflag=' -i_dynamic -nofor_main' ;;
7592 ifc* | ifort*) # Intel Fortran compiler
7593 tmp_addflag=' -nofor_main' ;;
vapier6acb2cf2009-01-28 04:46:28 +00007594 lf95*) # Lahey Fortran 8.1
7595 whole_archive_flag_spec=
7596 tmp_sharedflag='--shared' ;;
mlcreech636a9952008-05-05 22:52:56 +00007597 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7598 tmp_sharedflag='-qmkshrobj'
7599 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007600 esac
mlcreech636a9952008-05-05 22:52:56 +00007601 case `$CC -V 2>&1 | sed 5q` in
7602 *Sun\ C*) # Sun C 5.9
7603 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'
7604 compiler_needs_object=yes
7605 tmp_sharedflag='-G' ;;
7606 *Sun\ F*) # Sun Fortran 8.3
7607 tmp_sharedflag='-G' ;;
7608 esac
7609 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007610
mlcreech636a9952008-05-05 22:52:56 +00007611 if test "x$supports_anon_versioning" = xyes; then
7612 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7613 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7614 echo "local: *; };" >> $output_objdir/$libname.ver~
7615 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7616 fi
7617
7618 case $cc_basename in
7619 xlf*)
7620 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7621 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7622 hardcode_libdir_flag_spec=
7623 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7624 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7625 if test "x$supports_anon_versioning" = xyes; then
7626 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7627 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7628 echo "local: *; };" >> $output_objdir/$libname.ver~
7629 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7630 fi
7631 ;;
7632 esac
vapier7f19c022007-02-17 14:46:31 +00007633 else
mlcreech636a9952008-05-05 22:52:56 +00007634 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007635 fi
7636 ;;
7637
7638 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007639 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007640 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7641 wlarc=
7642 else
7643 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7644 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7645 fi
7646 ;;
7647
vapier7f19c022007-02-17 14:46:31 +00007648 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007649 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007650 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007651 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007652
7653*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7654*** create shared libraries on Solaris systems. Therefore, libtool
7655*** is disabling shared libraries support. We urge you to upgrade GNU
7656*** binutils to release 2.9.1 or newer. Another option is to modify
7657*** your PATH or compiler configuration so that the native linker is
7658*** used, and then restart.
7659
mlcreech636a9952008-05-05 22:52:56 +00007660_LT_EOF
7661 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7663 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7664 else
7665 ld_shlibs=no
7666 fi
7667 ;;
7668
vapier7f19c022007-02-17 14:46:31 +00007669 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7670 case `$LD -v 2>&1` in
7671 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7672 ld_shlibs=no
7673 cat <<_LT_EOF 1>&2
7674
7675*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7676*** reliably create shared libraries on SCO systems. Therefore, libtool
7677*** is disabling shared libraries support. We urge you to upgrade GNU
7678*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7679*** your PATH or compiler configuration so that the native linker is
7680*** used, and then restart.
7681
7682_LT_EOF
7683 ;;
7684 *)
mlcreech636a9952008-05-05 22:52:56 +00007685 # For security reasons, it is highly recommended that you always
7686 # use absolute paths for naming shared libraries, and exclude the
7687 # DT_RUNPATH tag from executables and libraries. But doing so
7688 # requires that you compile everything twice, which is a pain.
7689 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7690 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7691 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7692 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 +00007693 else
7694 ld_shlibs=no
7695 fi
7696 ;;
7697 esac
7698 ;;
7699
a.rottmann9bc8b932004-02-29 15:18:31 +00007700 sunos4*)
7701 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7702 wlarc=
7703 hardcode_direct=yes
7704 hardcode_shlibpath_var=no
7705 ;;
7706
a.rottmann9bc8b932004-02-29 15:18:31 +00007707 *)
mlcreech636a9952008-05-05 22:52:56 +00007708 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7710 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7711 else
7712 ld_shlibs=no
7713 fi
7714 ;;
7715 esac
7716
vapier7f19c022007-02-17 14:46:31 +00007717 if test "$ld_shlibs" = no; then
7718 runpath_var=
7719 hardcode_libdir_flag_spec=
7720 export_dynamic_flag_spec=
7721 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007722 fi
7723 else
7724 # PORTME fill in a description of your system's linker (not GNU ld)
7725 case $host_os in
7726 aix3*)
7727 allow_undefined_flag=unsupported
7728 always_export_symbols=yes
7729 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'
7730 # Note: this linker hardcodes the directories in LIBPATH if there
7731 # are no directories specified by -L.
7732 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007733 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007734 # Neither direct hardcoding nor static linking is supported with a
7735 # broken collect2.
7736 hardcode_direct=unsupported
7737 fi
7738 ;;
7739
mlcreech636a9952008-05-05 22:52:56 +00007740 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007741 if test "$host_cpu" = ia64; then
7742 # On IA64, the linker does run time linking by default, so we don't
7743 # have to do anything special.
7744 aix_use_runtimelinking=no
7745 exp_sym_flag='-Bexport'
7746 no_entry_flag=""
7747 else
7748 # If we're using GNU nm, then we don't want the "-C" option.
7749 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007750 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7751 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 +00007752 else
mlcreech636a9952008-05-05 22:52:56 +00007753 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 +00007754 fi
7755 aix_use_runtimelinking=no
7756
7757 # Test if we are trying to use run time linking or normal
7758 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7759 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007760 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007761 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007762 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7763 aix_use_runtimelinking=yes
7764 break
7765 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007766 done
vapier7f19c022007-02-17 14:46:31 +00007767 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007768 esac
7769
7770 exp_sym_flag='-bexport'
7771 no_entry_flag='-bnoentry'
7772 fi
7773
7774 # When large executables or shared objects are built, AIX ld can
7775 # have problems creating the table of contents. If linking a library
7776 # or program results in "error TOC overflow" add -mminimal-toc to
7777 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7778 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7779
7780 archive_cmds=''
7781 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007782 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007783 hardcode_libdir_separator=':'
7784 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007785 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007786
7787 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007788 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007789 # We only want to do this on AIX 4.2 and lower, the check
7790 # below for broken collect2 doesn't work under 4.3+
7791 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007792 if test -f "$collect2name" &&
7793 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007794 then
mlcreech636a9952008-05-05 22:52:56 +00007795 # We have reworked collect2
7796 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007797 else
mlcreech636a9952008-05-05 22:52:56 +00007798 # We have old collect2
7799 hardcode_direct=unsupported
7800 # It fails to find uninstalled libraries when the uninstalled
7801 # path is not listed in the libpath. Setting hardcode_minus_L
7802 # to unsupported forces relinking
7803 hardcode_minus_L=yes
7804 hardcode_libdir_flag_spec='-L$libdir'
7805 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007806 fi
vapier7f19c022007-02-17 14:46:31 +00007807 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007808 esac
7809 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007810 if test "$aix_use_runtimelinking" = yes; then
7811 shared_flag="$shared_flag "'${wl}-G'
7812 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007813 else
7814 # not using gcc
7815 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007816 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7817 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007818 shared_flag='-G'
7819 else
vapier7f19c022007-02-17 14:46:31 +00007820 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007821 shared_flag='${wl}-G'
7822 else
7823 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007824 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007825 fi
7826 fi
7827
vapier6acb2cf2009-01-28 04:46:28 +00007828 export_dynamic_flag_spec='${wl}-bexpall'
a.rottmann9bc8b932004-02-29 15:18:31 +00007829 # It seems that -bexpall does not export symbols beginning with
7830 # underscore (_), so it is better to generate a list of symbols to export.
7831 always_export_symbols=yes
7832 if test "$aix_use_runtimelinking" = yes; then
7833 # Warning - without using the other runtime loading flags (-brtl),
7834 # -berok will link without error, but may produce a broken library.
7835 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007836 # Determine the default libpath from the value encoded in an
7837 # empty executable.
7838 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007839/* confdefs.h. */
7840_ACEOF
7841cat confdefs.h >>conftest.$ac_ext
7842cat >>conftest.$ac_ext <<_ACEOF
7843/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007844
a.rottmann84e63352003-03-24 09:42:16 +00007845int
7846main ()
7847{
a.rottmann9bc8b932004-02-29 15:18:31 +00007848
a.rottmann84e63352003-03-24 09:42:16 +00007849 ;
7850 return 0;
7851}
7852_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007853rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00007854if { (ac_try="$ac_link"
7855case "(($ac_try" in
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7858esac
7859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7860$as_echo "$ac_try_echo") >&5
7861 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00007862 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007863 grep -v '^ *+' conftest.er1 >conftest.err
7864 rm -f conftest.er1
7865 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00007866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } && {
7868 test -z "$ac_c_werror_flag" ||
7869 test ! -s conftest.err
7870 } && test -s conftest$ac_exeext && {
7871 test "$cross_compiling" = yes ||
7872 $as_test_x conftest$ac_exeext
7873 }; then
a.rottmann84e63352003-03-24 09:42:16 +00007874
mlcreech636a9952008-05-05 22:52:56 +00007875lt_aix_libpath_sed='
7876 /Import File Strings/,/^$/ {
7877 /^0/ {
7878 s/^0 *\(.*\)$/\1/
7879 p
7880 }
7881 }'
7882aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007883# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007884if test -z "$aix_libpath"; then
7885 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7886fi
a.rottmann84e63352003-03-24 09:42:16 +00007887else
drh8b727472009-01-19 18:18:40 +00007888 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007889sed 's/^/| /' conftest.$ac_ext >&5
7890
drh8b727472009-01-19 18:18:40 +00007891
a.rottmann84e63352003-03-24 09:42:16 +00007892fi
drh8b727472009-01-19 18:18:40 +00007893
7894rm -rf conftest.dSYM
7895rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00007896 conftest$ac_exeext conftest.$ac_ext
7897if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007898
mlcreech636a9952008-05-05 22:52:56 +00007899 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7900 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"
7901 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007902 if test "$host_cpu" = ia64; then
7903 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7904 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007905 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 +00007906 else
mlcreech636a9952008-05-05 22:52:56 +00007907 # Determine the default libpath from the value encoded in an
7908 # empty executable.
a.rottmann9bc8b932004-02-29 15:18:31 +00007909 cat >conftest.$ac_ext <<_ACEOF
7910/* confdefs.h. */
7911_ACEOF
7912cat confdefs.h >>conftest.$ac_ext
7913cat >>conftest.$ac_ext <<_ACEOF
7914/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007915
a.rottmann9bc8b932004-02-29 15:18:31 +00007916int
7917main ()
7918{
a.rottmann84e63352003-03-24 09:42:16 +00007919
a.rottmann9bc8b932004-02-29 15:18:31 +00007920 ;
7921 return 0;
7922}
7923_ACEOF
7924rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00007925if { (ac_try="$ac_link"
7926case "(($ac_try" in
7927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928 *) ac_try_echo=$ac_try;;
7929esac
7930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7931$as_echo "$ac_try_echo") >&5
7932 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00007933 ac_status=$?
7934 grep -v '^ *+' conftest.er1 >conftest.err
7935 rm -f conftest.er1
7936 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00007937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); } && {
7939 test -z "$ac_c_werror_flag" ||
7940 test ! -s conftest.err
7941 } && test -s conftest$ac_exeext && {
7942 test "$cross_compiling" = yes ||
7943 $as_test_x conftest$ac_exeext
7944 }; then
a.rottmann84e63352003-03-24 09:42:16 +00007945
mlcreech636a9952008-05-05 22:52:56 +00007946lt_aix_libpath_sed='
7947 /Import File Strings/,/^$/ {
7948 /^0/ {
7949 s/^0 *\(.*\)$/\1/
7950 p
7951 }
7952 }'
7953aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007954# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007955if test -z "$aix_libpath"; then
7956 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7957fi
a.rottmann84e63352003-03-24 09:42:16 +00007958else
drh8b727472009-01-19 18:18:40 +00007959 $as_echo "$as_me: failed program was:" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007960sed 's/^/| /' conftest.$ac_ext >&5
a.rottmann84e63352003-03-24 09:42:16 +00007961
drh8b727472009-01-19 18:18:40 +00007962
a.rottmann9bc8b932004-02-29 15:18:31 +00007963fi
drh8b727472009-01-19 18:18:40 +00007964
7965rm -rf conftest.dSYM
7966rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00007967 conftest$ac_exeext conftest.$ac_ext
7968if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007969
a.rottmann9bc8b932004-02-29 15:18:31 +00007970 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7971 # Warning - without using the other run time loading flags,
7972 # -berok will link without error, but may produce a broken library.
7973 no_undefined_flag=' ${wl}-bernotok'
7974 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007975 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007976 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007977 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007978 # This is similar to how AIX traditionally builds its shared libraries.
7979 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 +00007980 fi
7981 fi
a.rottmann84e63352003-03-24 09:42:16 +00007982 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007983
7984 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007985 case $host_cpu in
7986 powerpc)
7987 # see comment about AmigaOS4 .so support
7988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7989 archive_expsym_cmds=''
7990 ;;
7991 m68k)
7992 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)'
7993 hardcode_libdir_flag_spec='-L$libdir'
7994 hardcode_minus_L=yes
7995 ;;
7996 esac
a.rottmann84e63352003-03-24 09:42:16 +00007997 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007998
vapier7f19c022007-02-17 14:46:31 +00007999 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008000 export_dynamic_flag_spec=-rdynamic
8001 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008002
vapier6acb2cf2009-01-28 04:46:28 +00008003 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008004 # When not using gcc, we currently assume that we are using
8005 # Microsoft Visual C++.
8006 # hardcode_libdir_flag_spec is actually meaningless, as there is
8007 # no search path for DLLs.
8008 hardcode_libdir_flag_spec=' '
8009 allow_undefined_flag=unsupported
8010 # Tell ltmain to make .lib files, not .a files.
8011 libext=lib
8012 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00008013 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00008014 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00008015 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 +00008016 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00008017 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00008018 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00008019 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008020 fix_srcfile_path='`cygpath -w "$srcfile"`'
8021 enable_shared_with_static_runtimes=yes
8022 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008023
a.rottmann9bc8b932004-02-29 15:18:31 +00008024 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00008025
8026
8027 archive_cmds_need_lc=no
8028 hardcode_direct=no
8029 hardcode_automatic=yes
8030 hardcode_shlibpath_var=unsupported
8031 whole_archive_flag_spec=''
8032 link_all_deplibs=yes
8033 allow_undefined_flag="$_lt_dar_allow_undefined"
vapier6acb2cf2009-01-28 04:46:28 +00008034 case $cc_basename in
8035 ifort*) _lt_dar_can_shared=yes ;;
8036 *) _lt_dar_can_shared=$GCC ;;
8037 esac
8038 if test "$_lt_dar_can_shared" = "yes"; then
mlcreech636a9952008-05-05 22:52:56 +00008039 output_verbose_link_cmd=echo
8040 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8041 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8042 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}"
8043 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}"
8044
8045 else
8046 ld_shlibs=no
8047 fi
8048
a.rottmann9bc8b932004-02-29 15:18:31 +00008049 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008050
a.rottmann9bc8b932004-02-29 15:18:31 +00008051 dgux*)
8052 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8053 hardcode_libdir_flag_spec='-L$libdir'
8054 hardcode_shlibpath_var=no
8055 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008056
a.rottmann9bc8b932004-02-29 15:18:31 +00008057 freebsd1*)
8058 ld_shlibs=no
8059 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008060
a.rottmann9bc8b932004-02-29 15:18:31 +00008061 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8062 # support. Future versions do this automatically, but an explicit c++rt0.o
8063 # does not break anything, and helps significantly (at the cost of a little
8064 # extra space).
8065 freebsd2.2*)
8066 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8067 hardcode_libdir_flag_spec='-R$libdir'
8068 hardcode_direct=yes
8069 hardcode_shlibpath_var=no
8070 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008071
a.rottmann9bc8b932004-02-29 15:18:31 +00008072 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8073 freebsd2*)
8074 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8075 hardcode_direct=yes
8076 hardcode_minus_L=yes
8077 hardcode_shlibpath_var=no
8078 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008079
a.rottmann9bc8b932004-02-29 15:18:31 +00008080 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00008081 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008082 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8083 hardcode_libdir_flag_spec='-R$libdir'
8084 hardcode_direct=yes
8085 hardcode_shlibpath_var=no
8086 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008087
a.rottmann9bc8b932004-02-29 15:18:31 +00008088 hpux9*)
8089 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008090 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 +00008091 else
mlcreech636a9952008-05-05 22:52:56 +00008092 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 +00008093 fi
8094 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8095 hardcode_libdir_separator=:
8096 hardcode_direct=yes
8097
8098 # hardcode_minus_L: Not really in the search PATH,
8099 # but as the default location of the library.
8100 hardcode_minus_L=yes
8101 export_dynamic_flag_spec='${wl}-E'
8102 ;;
8103
vapier7f19c022007-02-17 14:46:31 +00008104 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008105 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00008106 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8107 else
8108 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8109 fi
8110 if test "$with_gnu_ld" = no; then
8111 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00008112 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00008113 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00008114 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00008115 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00008116 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00008117 # hardcode_minus_L: Not really in the search PATH,
8118 # but as the default location of the library.
8119 hardcode_minus_L=yes
8120 fi
8121 ;;
8122
8123 hpux11*)
8124 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8125 case $host_cpu in
8126 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008127 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8128 ;;
vapier7f19c022007-02-17 14:46:31 +00008129 ia64*)
vapier6acb2cf2009-01-28 04:46:28 +00008130 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008131 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008132 *)
8133 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8134 ;;
8135 esac
8136 else
vapier7f19c022007-02-17 14:46:31 +00008137 case $host_cpu in
8138 hppa*64*)
8139 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8140 ;;
8141 ia64*)
8142 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00008143 ;;
8144 *)
vapier7f19c022007-02-17 14:46:31 +00008145 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 +00008146 ;;
8147 esac
8148 fi
8149 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00008150 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8151 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00008152
vapier7f19c022007-02-17 14:46:31 +00008153 case $host_cpu in
8154 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00008155 hardcode_direct=no
8156 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008157 ;;
8158 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008159 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00008160 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00008161 export_dynamic_flag_spec='${wl}-E'
8162
8163 # hardcode_minus_L: Not really in the search PATH,
8164 # but as the default location of the library.
8165 hardcode_minus_L=yes
8166 ;;
8167 esac
8168 fi
8169 ;;
8170
8171 irix5* | irix6* | nonstopux*)
8172 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008173 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'
8174 # Try to use the -exported_symbol ld option, if it does not
8175 # work, assume that -exports_file does not work either and
8176 # implicitly export all symbols.
8177 save_LDFLAGS="$LDFLAGS"
8178 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8179 cat >conftest.$ac_ext <<_ACEOF
8180int foo(void) {}
8181_ACEOF
8182rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00008183if { (ac_try="$ac_link"
8184case "(($ac_try" in
8185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186 *) ac_try_echo=$ac_try;;
8187esac
8188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8189$as_echo "$ac_try_echo") >&5
8190 (eval "$ac_link") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00008191 ac_status=$?
8192 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -f conftest.er1
8194 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00008195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } && {
8197 test -z "$ac_c_werror_flag" ||
8198 test ! -s conftest.err
8199 } && test -s conftest$ac_exeext && {
8200 test "$cross_compiling" = yes ||
8201 $as_test_x conftest$ac_exeext
8202 }; then
mlcreech636a9952008-05-05 22:52:56 +00008203 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'
8204
8205else
drh8b727472009-01-19 18:18:40 +00008206 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00008207sed 's/^/| /' conftest.$ac_ext >&5
8208
drh8b727472009-01-19 18:18:40 +00008209
mlcreech636a9952008-05-05 22:52:56 +00008210fi
drh8b727472009-01-19 18:18:40 +00008211
8212rm -rf conftest.dSYM
8213rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mlcreech636a9952008-05-05 22:52:56 +00008214 conftest$ac_exeext conftest.$ac_ext
8215 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00008216 else
mlcreech636a9952008-05-05 22:52:56 +00008217 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'
8218 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 +00008219 fi
mlcreech636a9952008-05-05 22:52:56 +00008220 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008221 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8222 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00008223 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00008224 link_all_deplibs=yes
8225 ;;
8226
vapier7f19c022007-02-17 14:46:31 +00008227 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00008228 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008229 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8230 else
8231 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8232 fi
8233 hardcode_libdir_flag_spec='-R$libdir'
8234 hardcode_direct=yes
8235 hardcode_shlibpath_var=no
8236 ;;
8237
8238 newsos6)
8239 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8240 hardcode_direct=yes
8241 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8242 hardcode_libdir_separator=:
8243 hardcode_shlibpath_var=no
8244 ;;
8245
mlcreech636a9952008-05-05 22:52:56 +00008246 *nto* | *qnx*)
8247 ;;
8248
a.rottmann9bc8b932004-02-29 15:18:31 +00008249 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00008250 if test -f /usr/libexec/ld.so; then
8251 hardcode_direct=yes
8252 hardcode_shlibpath_var=no
8253 hardcode_direct_absolute=yes
8254 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8255 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8256 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8257 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8258 export_dynamic_flag_spec='${wl}-E'
8259 else
8260 case $host_os in
8261 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8262 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8263 hardcode_libdir_flag_spec='-R$libdir'
8264 ;;
8265 *)
8266 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8267 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8268 ;;
8269 esac
8270 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008271 else
mlcreech636a9952008-05-05 22:52:56 +00008272 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008273 fi
8274 ;;
8275
8276 os2*)
8277 hardcode_libdir_flag_spec='-L$libdir'
8278 hardcode_minus_L=yes
8279 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00008280 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'
8281 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00008282 ;;
8283
8284 osf3*)
8285 if test "$GCC" = yes; then
8286 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008287 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 +00008288 else
8289 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008290 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 +00008291 fi
mlcreech636a9952008-05-05 22:52:56 +00008292 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008293 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8294 hardcode_libdir_separator=:
8295 ;;
8296
8297 osf4* | osf5*) # as osf3* with the addition of -msym flag
8298 if test "$GCC" = yes; then
8299 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008300 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 +00008301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8302 else
8303 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008304 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'
8305 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~
8306 $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 +00008307
8308 # Both c and cxx compiler support -rpath directly
8309 hardcode_libdir_flag_spec='-rpath $libdir'
8310 fi
mlcreech636a9952008-05-05 22:52:56 +00008311 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008312 hardcode_libdir_separator=:
8313 ;;
8314
a.rottmann9bc8b932004-02-29 15:18:31 +00008315 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008316 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008317 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008318 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008319 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8320 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8321 $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 +00008322 else
mlcreech636a9952008-05-05 22:52:56 +00008323 case `$CC -V 2>&1` in
8324 *"Compilers 5.0"*)
8325 wlarc=''
8326 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8327 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8328 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8329 ;;
8330 *)
8331 wlarc='${wl}'
8332 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8333 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8334 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8335 ;;
8336 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008337 fi
8338 hardcode_libdir_flag_spec='-R$libdir'
8339 hardcode_shlibpath_var=no
8340 case $host_os in
8341 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008342 *)
mlcreech636a9952008-05-05 22:52:56 +00008343 # The compiler driver will combine and reorder linker options,
8344 # but understands `-z linker_flag'. GCC discards it without `$wl',
8345 # but is careful enough not to reorder.
8346 # Supported since Solaris 2.6 (maybe 2.5.1?)
8347 if test "$GCC" = yes; then
8348 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8349 else
8350 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8351 fi
8352 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008353 esac
8354 link_all_deplibs=yes
8355 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008356
a.rottmann9bc8b932004-02-29 15:18:31 +00008357 sunos4*)
8358 if test "x$host_vendor" = xsequent; then
8359 # Use $CC to link under sequent, because it throws in some extra .o
8360 # files that make .init and .fini sections work.
8361 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8362 else
8363 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8364 fi
8365 hardcode_libdir_flag_spec='-L$libdir'
8366 hardcode_direct=yes
8367 hardcode_minus_L=yes
8368 hardcode_shlibpath_var=no
8369 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008370
a.rottmann9bc8b932004-02-29 15:18:31 +00008371 sysv4)
8372 case $host_vendor in
8373 sni)
8374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8375 hardcode_direct=yes # is this really true???
8376 ;;
8377 siemens)
8378 ## LD is ld it makes a PLAMLIB
8379 ## CC just makes a GrossModule.
8380 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8381 reload_cmds='$CC -r -o $output$reload_objs'
8382 hardcode_direct=no
8383 ;;
8384 motorola)
8385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8386 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8387 ;;
8388 esac
8389 runpath_var='LD_RUN_PATH'
8390 hardcode_shlibpath_var=no
8391 ;;
8392
8393 sysv4.3*)
8394 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8395 hardcode_shlibpath_var=no
8396 export_dynamic_flag_spec='-Bexport'
8397 ;;
8398
8399 sysv4*MP*)
8400 if test -d /usr/nec; then
8401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8402 hardcode_shlibpath_var=no
8403 runpath_var=LD_RUN_PATH
8404 hardcode_runpath_var=yes
8405 ld_shlibs=yes
8406 fi
8407 ;;
8408
mlcreech636a9952008-05-05 22:52:56 +00008409 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008410 no_undefined_flag='${wl}-z,text'
8411 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008412 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008413 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008414
a.rottmann9bc8b932004-02-29 15:18:31 +00008415 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008416 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8417 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 +00008418 else
vapier7f19c022007-02-17 14:46:31 +00008419 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8420 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 +00008421 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008422 ;;
8423
vapier7f19c022007-02-17 14:46:31 +00008424 sysv5* | sco3.2v5* | sco5v6*)
8425 # Note: We can NOT use -z defs as we might desire, because we do not
8426 # link with -lc, and that would cause any symbols used from libc to
8427 # always be unresolved, which means just about no library would
8428 # ever link correctly. If we're not using GNU ld we use -z text
8429 # though, which does catch some bad symbols but isn't as heavy-handed
8430 # as -z defs.
8431 no_undefined_flag='${wl}-z,text'
8432 allow_undefined_flag='${wl}-z,nodefs'
8433 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008434 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008435 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008436 hardcode_libdir_separator=':'
8437 link_all_deplibs=yes
8438 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008439 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008440
8441 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008442 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8443 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008444 else
mlcreech636a9952008-05-05 22:52:56 +00008445 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8446 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008447 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008448 ;;
8449
8450 uts4*)
8451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8452 hardcode_libdir_flag_spec='-L$libdir'
8453 hardcode_shlibpath_var=no
8454 ;;
8455
8456 *)
8457 ld_shlibs=no
8458 ;;
8459 esac
mlcreech636a9952008-05-05 22:52:56 +00008460
8461 if test x$host_vendor = xsni; then
8462 case $host in
8463 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8464 export_dynamic_flag_spec='${wl}-Blargedynsym'
8465 ;;
8466 esac
8467 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008468 fi
8469
drh8b727472009-01-19 18:18:40 +00008470{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8471$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008472test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008473
mlcreech636a9952008-05-05 22:52:56 +00008474with_gnu_ld=$with_gnu_ld
8475
8476
danielk197733a14782008-08-04 14:50:05 +00008477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
a.rottmann9bc8b932004-02-29 15:18:31 +00008490#
8491# Do we need to explicitly link libc?
8492#
8493case "x$archive_cmds_need_lc" in
8494x|xyes)
8495 # Assume -lc should be added
8496 archive_cmds_need_lc=yes
8497
8498 if test "$enable_shared" = yes && test "$GCC" = yes; then
8499 case $archive_cmds in
8500 *'~'*)
8501 # FIXME: we may have to deal with multi-command sequences.
8502 ;;
8503 '$CC '*)
8504 # Test whether the compiler implicitly links with -lc since on some
8505 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8506 # to ld, don't add -lc before -lgcc.
drh8b727472009-01-19 18:18:40 +00008507 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8508$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008509 $RM conftest*
8510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008511
8512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8513 (eval $ac_compile) 2>&5
8514 ac_status=$?
drh8b727472009-01-19 18:18:40 +00008515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008516 (exit $ac_status); } 2>conftest.err; then
8517 soname=conftest
8518 lib=conftest
8519 libobjs=conftest.$ac_objext
8520 deplibs=
8521 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008522 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008523 compiler_flags=-v
8524 linker_flags=-v
8525 verstring=
8526 output_objdir=.
8527 libname=conftest
8528 lt_save_allow_undefined_flag=$allow_undefined_flag
8529 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00008530 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8531 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008532 ac_status=$?
drh8b727472009-01-19 18:18:40 +00008533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008534 (exit $ac_status); }
8535 then
8536 archive_cmds_need_lc=no
8537 else
8538 archive_cmds_need_lc=yes
8539 fi
8540 allow_undefined_flag=$lt_save_allow_undefined_flag
8541 else
8542 cat conftest.err 1>&5
8543 fi
mlcreech636a9952008-05-05 22:52:56 +00008544 $RM conftest*
drh8b727472009-01-19 18:18:40 +00008545 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8546$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008547 ;;
8548 esac
drh71eb93e2001-09-28 01:34:43 +00008549 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008550 ;;
8551esac
drh71eb93e2001-09-28 01:34:43 +00008552
mlcreech636a9952008-05-05 22:52:56 +00008553
danielk197733a14782008-08-04 14:50:05 +00008554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
drh8b727472009-01-19 18:18:40 +00008709 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8710$as_echo_n "checking dynamic linker characteristics... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008711
8712if test "$GCC" = yes; then
8713 case $host_os in
8714 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8715 *) lt_awk_arg="/^libraries:/" ;;
8716 esac
8717 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8718 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8719 # if the path contains ";" then we assume it to be the separator
8720 # otherwise default to the standard path separator (i.e. ":") - it is
8721 # assumed that no part of a normal pathname contains ";" but that should
8722 # okay in the real world where ";" in dirpaths is itself problematic.
8723 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8724 else
8725 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8726 fi
8727 # Ok, now we have the path, separated by spaces, we can step through it
8728 # and add multilib dir if necessary.
8729 lt_tmp_lt_search_path_spec=
8730 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8731 for lt_sys_path in $lt_search_path_spec; do
8732 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8733 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8734 else
8735 test -d "$lt_sys_path" && \
8736 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8737 fi
8738 done
8739 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8740BEGIN {RS=" "; FS="/|\n";} {
8741 lt_foo="";
8742 lt_count=0;
8743 for (lt_i = NF; lt_i > 0; lt_i--) {
8744 if ($lt_i != "" && $lt_i != ".") {
8745 if ($lt_i == "..") {
8746 lt_count++;
8747 } else {
8748 if (lt_count == 0) {
8749 lt_foo="/" $lt_i lt_foo;
8750 } else {
8751 lt_count--;
8752 }
8753 }
8754 }
8755 }
8756 if (lt_foo != "") { lt_freq[lt_foo]++; }
8757 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8758}'`
8759 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8760else
8761 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8762fi
drh71eb93e2001-09-28 01:34:43 +00008763library_names_spec=
8764libname_spec='lib$name'
8765soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008766shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008767postinstall_cmds=
8768postuninstall_cmds=
8769finish_cmds=
8770finish_eval=
8771shlibpath_var=
8772shlibpath_overrides_runpath=unknown
8773version_type=none
8774dynamic_linker="$host_os ld.so"
8775sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008776need_lib_prefix=unknown
8777hardcode_into_libs=no
8778
8779# when you set need_version to no, make sure it does not cause -set_version
8780# flags to be left without arguments
8781need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008782
8783case $host_os in
8784aix3*)
8785 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008786 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008787 shlibpath_var=LIBPATH
8788
a.rottmann9bc8b932004-02-29 15:18:31 +00008789 # AIX 3 has no versioning support, so we append a major version to the name.
8790 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008791 ;;
8792
mlcreech636a9952008-05-05 22:52:56 +00008793aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008794 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008795 need_lib_prefix=no
8796 need_version=no
8797 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008798 if test "$host_cpu" = ia64; then
8799 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008800 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008801 shlibpath_var=LD_LIBRARY_PATH
8802 else
8803 # With GCC up to 2.95.x, collect2 would create an import file
8804 # for dependence libraries. The import file would start with
8805 # the line `#! .'. This would cause the generated library to
8806 # depend on `.', always an invalid library. This was fixed in
8807 # development snapshots of GCC prior to 3.0.
8808 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008809 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008810 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8811 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008812 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008813 :
8814 else
8815 can_build_shared=no
8816 fi
8817 ;;
drh71eb93e2001-09-28 01:34:43 +00008818 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008819 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8820 # soname into executable. Probably we can add versioning support to
8821 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008822 if test "$aix_use_runtimelinking" = yes; then
8823 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8824 # instead of lib<name>.a to let people know that these are not
8825 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008827 else
8828 # We preserve .a as extension for shared libraries through AIX4.2
8829 # and later when we are not doing run time linking.
8830 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008831 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008832 fi
8833 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008834 fi
8835 ;;
8836
8837amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008838 case $host_cpu in
8839 powerpc)
8840 # Since July 2007 AmigaOS4 officially supports .so libraries.
8841 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8843 ;;
8844 m68k)
8845 library_names_spec='$libname.ixlibrary $libname.a'
8846 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8847 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'
8848 ;;
8849 esac
drh71eb93e2001-09-28 01:34:43 +00008850 ;;
8851
8852beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008853 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008854 dynamic_linker="$host_os ld.so"
8855 shlibpath_var=LIBRARY_PATH
8856 ;;
8857
vapier7f19c022007-02-17 14:46:31 +00008858bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008859 version_type=linux
8860 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8862 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008863 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8864 shlibpath_var=LD_LIBRARY_PATH
8865 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8866 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8867 # the default ld.so.conf also contains /usr/contrib/lib and
8868 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8869 # libtool to hard-code these into programs
8870 ;;
8871
vapier6acb2cf2009-01-28 04:46:28 +00008872cygwin* | mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008873 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008874 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008875 need_version=no
8876 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008877
drh71eb93e2001-09-28 01:34:43 +00008878 case $GCC,$host_os in
vapier6acb2cf2009-01-28 04:46:28 +00008879 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008880 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008881 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8882 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008883 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008884 dldir=$destdir/`dirname \$dlpath`~
8885 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008886 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008887 chmod a+x \$dldir/$dlname~
8888 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8889 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8890 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008891 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008892 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008893 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008894 shlibpath_overrides_runpath=yes
8895
8896 case $host_os in
8897 cygwin*)
8898 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8899 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8900 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8901 ;;
vapier6acb2cf2009-01-28 04:46:28 +00008902 mingw* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008903 # MinGW DLLs use traditional 'lib' prefix
8904 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008905 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8906 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008907 # It is most probably a Windows format PATH printed by
8908 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8909 # path with ; separators, and with drive letters. We can handle the
8910 # drive letters (cygwin fileutils understands them), so leave them,
8911 # especially as we might pass files found there to a mingw objdump,
8912 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008913 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008914 else
mlcreech636a9952008-05-05 22:52:56 +00008915 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008916 fi
8917 ;;
8918 pw32*)
8919 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008920 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 +00008921 ;;
8922 esac
drh71eb93e2001-09-28 01:34:43 +00008923 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008924
drh71eb93e2001-09-28 01:34:43 +00008925 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008926 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008927 ;;
8928 esac
8929 dynamic_linker='Win32 ld.exe'
8930 # FIXME: first we should search . and the directory the executable is in
8931 shlibpath_var=PATH
8932 ;;
8933
8934darwin* | rhapsody*)
8935 dynamic_linker="$host_os dyld"
8936 version_type=darwin
8937 need_lib_prefix=no
8938 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008939 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008940 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008941 shlibpath_overrides_runpath=yes
8942 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008943 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008944
8945 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008946 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8947 ;;
8948
8949dgux*)
8950 version_type=linux
8951 need_lib_prefix=no
8952 need_version=no
8953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8954 soname_spec='${libname}${release}${shared_ext}$major'
8955 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008956 ;;
8957
a.rottmann84e63352003-03-24 09:42:16 +00008958freebsd1*)
8959 dynamic_linker=no
8960 ;;
8961
vapier7f19c022007-02-17 14:46:31 +00008962freebsd* | dragonfly*)
8963 # DragonFly does not have aout. When/if they implement a new
8964 # versioning mechanism, adjust this.
8965 if test -x /usr/bin/objformat; then
8966 objformat=`/usr/bin/objformat`
8967 else
8968 case $host_os in
8969 freebsd[123]*) objformat=aout ;;
8970 *) objformat=elf ;;
8971 esac
8972 fi
8973 # Handle Gentoo/FreeBSD as it was Linux
8974 case $host_vendor in
8975 gentoo)
8976 version_type=linux ;;
8977 *)
8978 version_type=freebsd-$objformat ;;
8979 esac
8980
drh71eb93e2001-09-28 01:34:43 +00008981 case $version_type in
8982 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008984 need_version=no
8985 need_lib_prefix=no
8986 ;;
8987 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008988 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008989 need_version=yes
8990 ;;
vapier7f19c022007-02-17 14:46:31 +00008991 linux)
8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8993 soname_spec='${libname}${release}${shared_ext}$major'
8994 need_lib_prefix=no
8995 need_version=no
8996 ;;
drh71eb93e2001-09-28 01:34:43 +00008997 esac
8998 shlibpath_var=LD_LIBRARY_PATH
8999 case $host_os in
9000 freebsd2*)
9001 shlibpath_overrides_runpath=yes
9002 ;;
vapier7f19c022007-02-17 14:46:31 +00009003 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00009004 shlibpath_overrides_runpath=yes
9005 hardcode_into_libs=yes
9006 ;;
vapier7f19c022007-02-17 14:46:31 +00009007 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9008 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00009009 shlibpath_overrides_runpath=no
9010 hardcode_into_libs=yes
9011 ;;
mlcreech636a9952008-05-05 22:52:56 +00009012 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00009013 shlibpath_overrides_runpath=yes
9014 hardcode_into_libs=yes
9015 ;;
drh71eb93e2001-09-28 01:34:43 +00009016 esac
9017 ;;
9018
9019gnu*)
9020 version_type=linux
9021 need_lib_prefix=no
9022 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9024 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009025 shlibpath_var=LD_LIBRARY_PATH
9026 hardcode_into_libs=yes
9027 ;;
9028
9029hpux9* | hpux10* | hpux11*)
9030 # Give a soname corresponding to the major version so that dld.sl refuses to
9031 # link against other versions.
9032 version_type=sunos
9033 need_lib_prefix=no
9034 need_version=no
vapier7f19c022007-02-17 14:46:31 +00009035 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00009036 ia64*)
vapier7f19c022007-02-17 14:46:31 +00009037 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00009038 hardcode_into_libs=yes
9039 dynamic_linker="$host_os dld.so"
9040 shlibpath_var=LD_LIBRARY_PATH
9041 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9043 soname_spec='${libname}${release}${shared_ext}$major'
9044 if test "X$HPUX_IA64_MODE" = X32; then
9045 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9046 else
9047 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9048 fi
9049 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9050 ;;
mlcreech636a9952008-05-05 22:52:56 +00009051 hppa*64*)
9052 shrext_cmds='.sl'
9053 hardcode_into_libs=yes
9054 dynamic_linker="$host_os dld.sl"
9055 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9056 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9060 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9061 ;;
9062 *)
vapier7f19c022007-02-17 14:46:31 +00009063 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00009064 dynamic_linker="$host_os dld.sl"
9065 shlibpath_var=SHLIB_PATH
9066 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 ;;
9070 esac
drh71eb93e2001-09-28 01:34:43 +00009071 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9072 postinstall_cmds='chmod 555 $lib'
9073 ;;
9074
mlcreech636a9952008-05-05 22:52:56 +00009075interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00009076 version_type=linux
9077 need_lib_prefix=no
9078 need_version=no
9079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9080 soname_spec='${libname}${release}${shared_ext}$major'
9081 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9082 shlibpath_var=LD_LIBRARY_PATH
9083 shlibpath_overrides_runpath=no
9084 hardcode_into_libs=yes
9085 ;;
9086
a.rottmann84e63352003-03-24 09:42:16 +00009087irix5* | irix6* | nonstopux*)
9088 case $host_os in
9089 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009090 *)
9091 if test "$lt_cv_prog_gnu_ld" = yes; then
9092 version_type=linux
9093 else
9094 version_type=irix
9095 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00009096 esac
drh71eb93e2001-09-28 01:34:43 +00009097 need_lib_prefix=no
9098 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009099 soname_spec='${libname}${release}${shared_ext}$major'
9100 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 +00009101 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00009102 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00009103 libsuff= shlibsuff=
9104 ;;
9105 *)
9106 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00009107 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9108 libsuff= shlibsuff= libmagic=32-bit;;
9109 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9110 libsuff=32 shlibsuff=N32 libmagic=N32;;
9111 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9112 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00009113 *) libsuff= shlibsuff= libmagic=never-match;;
9114 esac
9115 ;;
9116 esac
9117 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9118 shlibpath_overrides_runpath=no
9119 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9120 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00009121 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00009122 ;;
9123
9124# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00009125linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00009126 dynamic_linker=no
9127 ;;
9128
9129# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00009130linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00009131 version_type=linux
9132 need_lib_prefix=no
9133 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9137 shlibpath_var=LD_LIBRARY_PATH
9138 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00009139 # Some binutils ld are patched to set DT_RUNPATH
9140 save_LDFLAGS=$LDFLAGS
9141 save_libdir=$libdir
9142 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9143 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9144 cat >conftest.$ac_ext <<_ACEOF
9145/* confdefs.h. */
9146_ACEOF
9147cat confdefs.h >>conftest.$ac_ext
9148cat >>conftest.$ac_ext <<_ACEOF
9149/* end confdefs.h. */
9150
9151int
9152main ()
9153{
9154
9155 ;
9156 return 0;
9157}
9158_ACEOF
9159rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009160if { (ac_try="$ac_link"
9161case "(($ac_try" in
9162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9164esac
9165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9166$as_echo "$ac_try_echo") >&5
9167 (eval "$ac_link") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009168 ac_status=$?
9169 grep -v '^ *+' conftest.er1 >conftest.err
9170 rm -f conftest.er1
9171 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); } && {
9174 test -z "$ac_c_werror_flag" ||
9175 test ! -s conftest.err
9176 } && test -s conftest$ac_exeext && {
9177 test "$cross_compiling" = yes ||
9178 $as_test_x conftest$ac_exeext
9179 }; then
mlcreech636a9952008-05-05 22:52:56 +00009180 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9181 shlibpath_overrides_runpath=yes
9182fi
9183
9184else
drh8b727472009-01-19 18:18:40 +00009185 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00009186sed 's/^/| /' conftest.$ac_ext >&5
9187
drh8b727472009-01-19 18:18:40 +00009188
mlcreech636a9952008-05-05 22:52:56 +00009189fi
drh8b727472009-01-19 18:18:40 +00009190
9191rm -rf conftest.dSYM
9192rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mlcreech636a9952008-05-05 22:52:56 +00009193 conftest$ac_exeext conftest.$ac_ext
9194 LDFLAGS=$save_LDFLAGS
9195 libdir=$save_libdir
9196
drh71eb93e2001-09-28 01:34:43 +00009197 # This implies no fast_install, which is unacceptable.
9198 # Some rework will be needed to allow for fast_install
9199 # before this can be enabled.
9200 hardcode_into_libs=yes
9201
a.rottmann9bc8b932004-02-29 15:18:31 +00009202 # Append ld.so.conf contents to the search path
9203 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00009204 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 +00009205 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00009206 fi
9207
drh71eb93e2001-09-28 01:34:43 +00009208 # We used to test for /lib/ld.so.1 and disable shared libraries on
9209 # powerpc, because MkLinux only supported shared libraries with the
9210 # GNU dynamic linker. Since this was broken with cross compilers,
9211 # most powerpc-linux boxes support dynamic linking these days and
9212 # people can always --disable-shared, the test was removed, and we
9213 # assume the GNU/Linux dynamic linker is in use.
9214 dynamic_linker='GNU/Linux ld.so'
9215 ;;
9216
9217netbsd*)
9218 version_type=sunos
9219 need_lib_prefix=no
9220 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00009221 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9224 dynamic_linker='NetBSD (a.out) ld.so'
9225 else
a.rottmann9bc8b932004-02-29 15:18:31 +00009226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9227 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009228 dynamic_linker='NetBSD ld.elf_so'
9229 fi
9230 shlibpath_var=LD_LIBRARY_PATH
9231 shlibpath_overrides_runpath=yes
9232 hardcode_into_libs=yes
9233 ;;
9234
9235newsos6)
9236 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9238 shlibpath_var=LD_LIBRARY_PATH
9239 shlibpath_overrides_runpath=yes
9240 ;;
9241
mlcreech636a9952008-05-05 22:52:56 +00009242*nto* | *qnx*)
9243 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00009244 need_lib_prefix=no
9245 need_version=no
9246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9247 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009248 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009249 shlibpath_overrides_runpath=no
9250 hardcode_into_libs=yes
9251 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00009252 ;;
9253
drh71eb93e2001-09-28 01:34:43 +00009254openbsd*)
9255 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00009256 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00009257 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00009258 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9259 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00009260 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9261 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00009262 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00009263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9265 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009266 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 +00009267 case $host_os in
9268 openbsd2.[89] | openbsd2.[89].*)
9269 shlibpath_overrides_runpath=no
9270 ;;
9271 *)
9272 shlibpath_overrides_runpath=yes
9273 ;;
9274 esac
a.rottmann84e63352003-03-24 09:42:16 +00009275 else
9276 shlibpath_overrides_runpath=yes
9277 fi
drh71eb93e2001-09-28 01:34:43 +00009278 ;;
9279
9280os2*)
9281 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00009282 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00009283 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009284 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00009285 dynamic_linker='OS/2 ld.exe'
9286 shlibpath_var=LIBPATH
9287 ;;
9288
9289osf3* | osf4* | osf5*)
9290 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00009291 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009292 need_version=no
9293 soname_spec='${libname}${release}${shared_ext}$major'
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00009295 shlibpath_var=LD_LIBRARY_PATH
9296 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9297 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9298 ;;
9299
mlcreech636a9952008-05-05 22:52:56 +00009300rdos*)
9301 dynamic_linker=no
9302 ;;
9303
drh71eb93e2001-09-28 01:34:43 +00009304solaris*)
9305 version_type=linux
9306 need_lib_prefix=no
9307 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009310 shlibpath_var=LD_LIBRARY_PATH
9311 shlibpath_overrides_runpath=yes
9312 hardcode_into_libs=yes
9313 # ldd complains unless libraries are executable
9314 postinstall_cmds='chmod +x $lib'
9315 ;;
9316
9317sunos4*)
9318 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00009319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009320 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9321 shlibpath_var=LD_LIBRARY_PATH
9322 shlibpath_overrides_runpath=yes
9323 if test "$with_gnu_ld" = yes; then
9324 need_lib_prefix=no
9325 fi
9326 need_version=yes
9327 ;;
9328
vapier7f19c022007-02-17 14:46:31 +00009329sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009330 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9332 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009333 shlibpath_var=LD_LIBRARY_PATH
9334 case $host_vendor in
9335 sni)
9336 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009337 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009338 runpath_var=LD_RUN_PATH
9339 ;;
9340 siemens)
9341 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009342 ;;
9343 motorola)
9344 need_lib_prefix=no
9345 need_version=no
9346 shlibpath_overrides_runpath=no
9347 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9348 ;;
9349 esac
9350 ;;
9351
9352sysv4*MP*)
9353 if test -d /usr/nec ;then
9354 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009355 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9356 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009357 shlibpath_var=LD_LIBRARY_PATH
9358 fi
9359 ;;
9360
vapier7f19c022007-02-17 14:46:31 +00009361sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9362 version_type=freebsd-elf
9363 need_lib_prefix=no
9364 need_version=no
9365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9366 soname_spec='${libname}${release}${shared_ext}$major'
9367 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009368 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009369 hardcode_into_libs=yes
9370 if test "$with_gnu_ld" = yes; then
9371 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009372 else
9373 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009374 case $host_os in
9375 sco3.2v5*)
9376 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9377 ;;
9378 esac
9379 fi
9380 sys_lib_dlsearch_path_spec='/usr/lib'
9381 ;;
9382
mlcreech636a9952008-05-05 22:52:56 +00009383tpf*)
9384 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9385 version_type=linux
9386 need_lib_prefix=no
9387 need_version=no
vapier6acb2cf2009-01-28 04:46:28 +00009388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00009389 shlibpath_var=LD_LIBRARY_PATH
9390 shlibpath_overrides_runpath=no
9391 hardcode_into_libs=yes
9392 ;;
9393
a.rottmann9bc8b932004-02-29 15:18:31 +00009394uts4*)
9395 version_type=linux
9396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9397 soname_spec='${libname}${release}${shared_ext}$major'
9398 shlibpath_var=LD_LIBRARY_PATH
9399 ;;
9400
drh71eb93e2001-09-28 01:34:43 +00009401*)
9402 dynamic_linker=no
9403 ;;
9404esac
drh8b727472009-01-19 18:18:40 +00009405{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9406$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009407test "$dynamic_linker" = no && can_build_shared=no
9408
vapier7f19c022007-02-17 14:46:31 +00009409variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9410if test "$GCC" = yes; then
9411 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9412fi
9413
mlcreech636a9952008-05-05 22:52:56 +00009414if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9415 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9416fi
9417if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9418 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9419fi
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
drh8b727472009-01-19 18:18:40 +00009507 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9508$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009509hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009510if test -n "$hardcode_libdir_flag_spec" ||
9511 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009512 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009513
mlcreech636a9952008-05-05 22:52:56 +00009514 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009515 if test "$hardcode_direct" != no &&
9516 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9517 # have to relink, otherwise we might link with an installed library
9518 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009519 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009520 test "$hardcode_minus_L" != no; then
9521 # Linking always hardcodes the temporary library directory.
9522 hardcode_action=relink
9523 else
9524 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9525 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009526 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009527else
9528 # We cannot hardcode anything, or else we can only hardcode existing
9529 # directories.
9530 hardcode_action=unsupported
9531fi
drh8b727472009-01-19 18:18:40 +00009532{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9533$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009534
mlcreech636a9952008-05-05 22:52:56 +00009535if test "$hardcode_action" = relink ||
9536 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009537 # Fast installation is not supported
9538 enable_fast_install=no
9539elif test "$shlibpath_overrides_runpath" = yes ||
9540 test "$enable_shared" = no; then
9541 # Fast installation is not necessary
9542 enable_fast_install=needless
9543fi
9544
a.rottmann84e63352003-03-24 09:42:16 +00009545
mlcreech636a9952008-05-05 22:52:56 +00009546
9547
9548
9549
9550 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009551 enable_dlopen=unknown
9552 enable_dlopen_self=unknown
9553 enable_dlopen_self_static=unknown
9554else
9555 lt_cv_dlopen=no
9556 lt_cv_dlopen_libs=
9557
9558 case $host_os in
9559 beos*)
9560 lt_cv_dlopen="load_add_on"
9561 lt_cv_dlopen_libs=
9562 lt_cv_dlopen_self=yes
9563 ;;
9564
vapier6acb2cf2009-01-28 04:46:28 +00009565 mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00009566 lt_cv_dlopen="LoadLibrary"
9567 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009568 ;;
drh71eb93e2001-09-28 01:34:43 +00009569
a.rottmann9bc8b932004-02-29 15:18:31 +00009570 cygwin*)
9571 lt_cv_dlopen="dlopen"
9572 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009573 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009574
9575 darwin*)
9576 # if libdl is installed we need to link against it
drh8b727472009-01-19 18:18:40 +00009577 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9578$as_echo_n "checking for dlopen in -ldl... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009579if test "${ac_cv_lib_dl_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009580 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009581else
9582 ac_check_lib_save_LIBS=$LIBS
9583LIBS="-ldl $LIBS"
9584cat >conftest.$ac_ext <<_ACEOF
9585/* confdefs.h. */
9586_ACEOF
9587cat confdefs.h >>conftest.$ac_ext
9588cat >>conftest.$ac_ext <<_ACEOF
9589/* end confdefs.h. */
9590
drh8b727472009-01-19 18:18:40 +00009591/* Override any GCC internal prototype to avoid an error.
9592 Use char because int might match the return type of a GCC
9593 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009594#ifdef __cplusplus
9595extern "C"
9596#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009597char dlopen ();
9598int
9599main ()
9600{
drh8b727472009-01-19 18:18:40 +00009601return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009602 ;
9603 return 0;
9604}
9605_ACEOF
9606rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009607if { (ac_try="$ac_link"
9608case "(($ac_try" in
9609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610 *) ac_try_echo=$ac_try;;
9611esac
9612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9613$as_echo "$ac_try_echo") >&5
9614 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00009615 ac_status=$?
9616 grep -v '^ *+' conftest.er1 >conftest.err
9617 rm -f conftest.er1
9618 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); } && {
9621 test -z "$ac_c_werror_flag" ||
9622 test ! -s conftest.err
9623 } && test -s conftest$ac_exeext && {
9624 test "$cross_compiling" = yes ||
9625 $as_test_x conftest$ac_exeext
9626 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009627 ac_cv_lib_dl_dlopen=yes
9628else
drh8b727472009-01-19 18:18:40 +00009629 $as_echo "$as_me: failed program was:" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00009630sed 's/^/| /' conftest.$ac_ext >&5
9631
drh8b727472009-01-19 18:18:40 +00009632 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009633fi
drh8b727472009-01-19 18:18:40 +00009634
9635rm -rf conftest.dSYM
9636rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00009637 conftest$ac_exeext conftest.$ac_ext
9638LIBS=$ac_check_lib_save_LIBS
9639fi
drh8b727472009-01-19 18:18:40 +00009640{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9641$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drh934c5442009-04-13 09:09:24 +00009642if test $ac_cv_lib_dl_dlopen = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009643 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9644else
9645
9646 lt_cv_dlopen="dyld"
9647 lt_cv_dlopen_libs=
9648 lt_cv_dlopen_self=yes
9649
9650fi
9651
mlcreech636a9952008-05-05 22:52:56 +00009652 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009653
drh71eb93e2001-09-28 01:34:43 +00009654 *)
drh8b727472009-01-19 18:18:40 +00009655 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9656$as_echo_n "checking for shl_load... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009657if test "${ac_cv_func_shl_load+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009658 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009659else
9660 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009661/* confdefs.h. */
9662_ACEOF
9663cat confdefs.h >>conftest.$ac_ext
9664cat >>conftest.$ac_ext <<_ACEOF
9665/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00009666/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9668#define shl_load innocuous_shl_load
9669
drh71eb93e2001-09-28 01:34:43 +00009670/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00009671 which can conflict with char shl_load (); below.
9672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9673 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00009674
a.rottmann84e63352003-03-24 09:42:16 +00009675#ifdef __STDC__
9676# include <limits.h>
9677#else
9678# include <assert.h>
9679#endif
a.rottmann964dbb12004-02-26 19:47:42 +00009680
9681#undef shl_load
9682
drh8b727472009-01-19 18:18:40 +00009683/* Override any GCC internal prototype to avoid an error.
9684 Use char because int might match the return type of a GCC
9685 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009686#ifdef __cplusplus
9687extern "C"
9688#endif
drh71eb93e2001-09-28 01:34:43 +00009689char shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009690/* The GNU C library defines this for functions which it implements
9691 to always fail with ENOSYS. Some functions are actually named
9692 something starting with __ and the normal name is an alias. */
drh8b727472009-01-19 18:18:40 +00009693#if defined __stub_shl_load || defined __stub___shl_load
drh71eb93e2001-09-28 01:34:43 +00009694choke me
drh71eb93e2001-09-28 01:34:43 +00009695#endif
9696
a.rottmann84e63352003-03-24 09:42:16 +00009697int
9698main ()
9699{
drh8b727472009-01-19 18:18:40 +00009700return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009701 ;
9702 return 0;
9703}
9704_ACEOF
9705rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009706if { (ac_try="$ac_link"
9707case "(($ac_try" in
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9710esac
9711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9712$as_echo "$ac_try_echo") >&5
9713 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00009714 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009715 grep -v '^ *+' conftest.er1 >conftest.err
9716 rm -f conftest.er1
9717 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); } && {
9720 test -z "$ac_c_werror_flag" ||
9721 test ! -s conftest.err
9722 } && test -s conftest$ac_exeext && {
9723 test "$cross_compiling" = yes ||
9724 $as_test_x conftest$ac_exeext
9725 }; then
drh71eb93e2001-09-28 01:34:43 +00009726 ac_cv_func_shl_load=yes
9727else
drh8b727472009-01-19 18:18:40 +00009728 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009729sed 's/^/| /' conftest.$ac_ext >&5
9730
drh8b727472009-01-19 18:18:40 +00009731 ac_cv_func_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009732fi
drh8b727472009-01-19 18:18:40 +00009733
9734rm -rf conftest.dSYM
9735rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009736 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009737fi
drh8b727472009-01-19 18:18:40 +00009738{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9739$as_echo "$ac_cv_func_shl_load" >&6; }
drh934c5442009-04-13 09:09:24 +00009740if test $ac_cv_func_shl_load = yes; then
drh71eb93e2001-09-28 01:34:43 +00009741 lt_cv_dlopen="shl_load"
9742else
drh8b727472009-01-19 18:18:40 +00009743 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9744$as_echo_n "checking for shl_load in -ldld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009745if test "${ac_cv_lib_dld_shl_load+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009746 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009747else
9748 ac_check_lib_save_LIBS=$LIBS
9749LIBS="-ldld $LIBS"
9750cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009751/* confdefs.h. */
9752_ACEOF
9753cat confdefs.h >>conftest.$ac_ext
9754cat >>conftest.$ac_ext <<_ACEOF
9755/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009756
drh8b727472009-01-19 18:18:40 +00009757/* Override any GCC internal prototype to avoid an error.
9758 Use char because int might match the return type of a GCC
9759 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009760#ifdef __cplusplus
9761extern "C"
9762#endif
drh71eb93e2001-09-28 01:34:43 +00009763char shl_load ();
9764int
9765main ()
9766{
drh8b727472009-01-19 18:18:40 +00009767return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009768 ;
9769 return 0;
9770}
9771_ACEOF
9772rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009773if { (ac_try="$ac_link"
9774case "(($ac_try" in
9775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776 *) ac_try_echo=$ac_try;;
9777esac
9778eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9779$as_echo "$ac_try_echo") >&5
9780 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00009781 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009782 grep -v '^ *+' conftest.er1 >conftest.err
9783 rm -f conftest.er1
9784 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); } && {
9787 test -z "$ac_c_werror_flag" ||
9788 test ! -s conftest.err
9789 } && test -s conftest$ac_exeext && {
9790 test "$cross_compiling" = yes ||
9791 $as_test_x conftest$ac_exeext
9792 }; then
drh71eb93e2001-09-28 01:34:43 +00009793 ac_cv_lib_dld_shl_load=yes
9794else
drh8b727472009-01-19 18:18:40 +00009795 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009796sed 's/^/| /' conftest.$ac_ext >&5
9797
drh8b727472009-01-19 18:18:40 +00009798 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009799fi
drh8b727472009-01-19 18:18:40 +00009800
9801rm -rf conftest.dSYM
9802rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009803 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009804LIBS=$ac_check_lib_save_LIBS
9805fi
drh8b727472009-01-19 18:18:40 +00009806{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9807$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
drh934c5442009-04-13 09:09:24 +00009808if test $ac_cv_lib_dld_shl_load = yes; then
mlcreech636a9952008-05-05 22:52:56 +00009809 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009810else
drh8b727472009-01-19 18:18:40 +00009811 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9812$as_echo_n "checking for dlopen... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009813if test "${ac_cv_func_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009814 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00009815else
9816 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009817/* confdefs.h. */
9818_ACEOF
9819cat confdefs.h >>conftest.$ac_ext
9820cat >>conftest.$ac_ext <<_ACEOF
9821/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00009822/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9824#define dlopen innocuous_dlopen
9825
a.rottmann84e63352003-03-24 09:42:16 +00009826/* System header to define __stub macros and hopefully few prototypes,
9827 which can conflict with char dlopen (); below.
9828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9829 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00009830
a.rottmann84e63352003-03-24 09:42:16 +00009831#ifdef __STDC__
9832# include <limits.h>
9833#else
9834# include <assert.h>
9835#endif
a.rottmann964dbb12004-02-26 19:47:42 +00009836
9837#undef dlopen
9838
drh8b727472009-01-19 18:18:40 +00009839/* Override any GCC internal prototype to avoid an error.
9840 Use char because int might match the return type of a GCC
9841 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009842#ifdef __cplusplus
9843extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00009844#endif
a.rottmann84e63352003-03-24 09:42:16 +00009845char dlopen ();
9846/* The GNU C library defines this for functions which it implements
9847 to always fail with ENOSYS. Some functions are actually named
9848 something starting with __ and the normal name is an alias. */
drh8b727472009-01-19 18:18:40 +00009849#if defined __stub_dlopen || defined __stub___dlopen
a.rottmann84e63352003-03-24 09:42:16 +00009850choke me
a.rottmann84e63352003-03-24 09:42:16 +00009851#endif
9852
9853int
9854main ()
9855{
drh8b727472009-01-19 18:18:40 +00009856return dlopen ();
a.rottmann84e63352003-03-24 09:42:16 +00009857 ;
9858 return 0;
9859}
9860_ACEOF
9861rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009862if { (ac_try="$ac_link"
9863case "(($ac_try" in
9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865 *) ac_try_echo=$ac_try;;
9866esac
9867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9868$as_echo "$ac_try_echo") >&5
9869 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00009870 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009871 grep -v '^ *+' conftest.er1 >conftest.err
9872 rm -f conftest.er1
9873 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } && {
9876 test -z "$ac_c_werror_flag" ||
9877 test ! -s conftest.err
9878 } && test -s conftest$ac_exeext && {
9879 test "$cross_compiling" = yes ||
9880 $as_test_x conftest$ac_exeext
9881 }; then
a.rottmann84e63352003-03-24 09:42:16 +00009882 ac_cv_func_dlopen=yes
9883else
drh8b727472009-01-19 18:18:40 +00009884 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009885sed 's/^/| /' conftest.$ac_ext >&5
9886
drh8b727472009-01-19 18:18:40 +00009887 ac_cv_func_dlopen=no
a.rottmann84e63352003-03-24 09:42:16 +00009888fi
drh8b727472009-01-19 18:18:40 +00009889
9890rm -rf conftest.dSYM
9891rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009892 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009893fi
drh8b727472009-01-19 18:18:40 +00009894{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9895$as_echo "$ac_cv_func_dlopen" >&6; }
drh934c5442009-04-13 09:09:24 +00009896if test $ac_cv_func_dlopen = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009897 lt_cv_dlopen="dlopen"
9898else
drh8b727472009-01-19 18:18:40 +00009899 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9900$as_echo_n "checking for dlopen in -ldl... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009901if test "${ac_cv_lib_dl_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009902 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009903else
9904 ac_check_lib_save_LIBS=$LIBS
9905LIBS="-ldl $LIBS"
9906cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009907/* confdefs.h. */
9908_ACEOF
9909cat confdefs.h >>conftest.$ac_ext
9910cat >>conftest.$ac_ext <<_ACEOF
9911/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009912
drh8b727472009-01-19 18:18:40 +00009913/* Override any GCC internal prototype to avoid an error.
9914 Use char because int might match the return type of a GCC
9915 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009916#ifdef __cplusplus
9917extern "C"
9918#endif
drh71eb93e2001-09-28 01:34:43 +00009919char dlopen ();
9920int
9921main ()
9922{
drh8b727472009-01-19 18:18:40 +00009923return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009924 ;
9925 return 0;
9926}
9927_ACEOF
9928rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009929if { (ac_try="$ac_link"
9930case "(($ac_try" in
9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9933esac
9934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9935$as_echo "$ac_try_echo") >&5
9936 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00009937 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009938 grep -v '^ *+' conftest.er1 >conftest.err
9939 rm -f conftest.er1
9940 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } && {
9943 test -z "$ac_c_werror_flag" ||
9944 test ! -s conftest.err
9945 } && test -s conftest$ac_exeext && {
9946 test "$cross_compiling" = yes ||
9947 $as_test_x conftest$ac_exeext
9948 }; then
drh71eb93e2001-09-28 01:34:43 +00009949 ac_cv_lib_dl_dlopen=yes
9950else
drh8b727472009-01-19 18:18:40 +00009951 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009952sed 's/^/| /' conftest.$ac_ext >&5
9953
drh8b727472009-01-19 18:18:40 +00009954 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009955fi
drh8b727472009-01-19 18:18:40 +00009956
9957rm -rf conftest.dSYM
9958rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009959 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009960LIBS=$ac_check_lib_save_LIBS
9961fi
drh8b727472009-01-19 18:18:40 +00009962{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9963$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drh934c5442009-04-13 09:09:24 +00009964if test $ac_cv_lib_dl_dlopen = yes; then
drh71eb93e2001-09-28 01:34:43 +00009965 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9966else
drh8b727472009-01-19 18:18:40 +00009967 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9968$as_echo_n "checking for dlopen in -lsvld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009969if test "${ac_cv_lib_svld_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009970 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009971else
9972 ac_check_lib_save_LIBS=$LIBS
9973LIBS="-lsvld $LIBS"
9974cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009975/* confdefs.h. */
9976_ACEOF
9977cat confdefs.h >>conftest.$ac_ext
9978cat >>conftest.$ac_ext <<_ACEOF
9979/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009980
drh8b727472009-01-19 18:18:40 +00009981/* Override any GCC internal prototype to avoid an error.
9982 Use char because int might match the return type of a GCC
9983 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009984#ifdef __cplusplus
9985extern "C"
9986#endif
drh71eb93e2001-09-28 01:34:43 +00009987char dlopen ();
9988int
9989main ()
9990{
drh8b727472009-01-19 18:18:40 +00009991return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009992 ;
9993 return 0;
9994}
9995_ACEOF
9996rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009997if { (ac_try="$ac_link"
9998case "(($ac_try" in
9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000 *) ac_try_echo=$ac_try;;
10001esac
10002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10003$as_echo "$ac_try_echo") >&5
10004 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000010005 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000010006 grep -v '^ *+' conftest.er1 >conftest.err
10007 rm -f conftest.er1
10008 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } && {
10011 test -z "$ac_c_werror_flag" ||
10012 test ! -s conftest.err
10013 } && test -s conftest$ac_exeext && {
10014 test "$cross_compiling" = yes ||
10015 $as_test_x conftest$ac_exeext
10016 }; then
drh71eb93e2001-09-28 01:34:43 +000010017 ac_cv_lib_svld_dlopen=yes
10018else
drh8b727472009-01-19 18:18:40 +000010019 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000010020sed 's/^/| /' conftest.$ac_ext >&5
10021
drh8b727472009-01-19 18:18:40 +000010022 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +000010023fi
drh8b727472009-01-19 18:18:40 +000010024
10025rm -rf conftest.dSYM
10026rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +000010027 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000010028LIBS=$ac_check_lib_save_LIBS
10029fi
drh8b727472009-01-19 18:18:40 +000010030{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10031$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
drh934c5442009-04-13 09:09:24 +000010032if test $ac_cv_lib_svld_dlopen = yes; then
drh71eb93e2001-09-28 01:34:43 +000010033 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +000010034else
drh8b727472009-01-19 18:18:40 +000010035 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10036$as_echo_n "checking for dld_link in -ldld... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000010037if test "${ac_cv_lib_dld_dld_link+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010038 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000010039else
10040 ac_check_lib_save_LIBS=$LIBS
10041LIBS="-ldld $LIBS"
10042cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000010043/* confdefs.h. */
10044_ACEOF
10045cat confdefs.h >>conftest.$ac_ext
10046cat >>conftest.$ac_ext <<_ACEOF
10047/* end confdefs.h. */
10048
drh8b727472009-01-19 18:18:40 +000010049/* Override any GCC internal prototype to avoid an error.
10050 Use char because int might match the return type of a GCC
10051 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +000010052#ifdef __cplusplus
10053extern "C"
10054#endif
a.rottmann84e63352003-03-24 09:42:16 +000010055char dld_link ();
10056int
10057main ()
10058{
drh8b727472009-01-19 18:18:40 +000010059return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +000010060 ;
10061 return 0;
10062}
10063_ACEOF
10064rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +000010065if { (ac_try="$ac_link"
10066case "(($ac_try" in
10067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068 *) ac_try_echo=$ac_try;;
10069esac
10070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10071$as_echo "$ac_try_echo") >&5
10072 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000010073 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000010074 grep -v '^ *+' conftest.er1 >conftest.err
10075 rm -f conftest.er1
10076 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); } && {
10079 test -z "$ac_c_werror_flag" ||
10080 test ! -s conftest.err
10081 } && test -s conftest$ac_exeext && {
10082 test "$cross_compiling" = yes ||
10083 $as_test_x conftest$ac_exeext
10084 }; then
a.rottmann84e63352003-03-24 09:42:16 +000010085 ac_cv_lib_dld_dld_link=yes
10086else
drh8b727472009-01-19 18:18:40 +000010087 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000010088sed 's/^/| /' conftest.$ac_ext >&5
10089
drh8b727472009-01-19 18:18:40 +000010090 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +000010091fi
drh8b727472009-01-19 18:18:40 +000010092
10093rm -rf conftest.dSYM
10094rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +000010095 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000010096LIBS=$ac_check_lib_save_LIBS
10097fi
drh8b727472009-01-19 18:18:40 +000010098{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10099$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
drh934c5442009-04-13 09:09:24 +000010100if test $ac_cv_lib_dld_dld_link = yes; then
mlcreech636a9952008-05-05 22:52:56 +000010101 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +000010102fi
10103
drh71eb93e2001-09-28 01:34:43 +000010104
10105fi
10106
drh71eb93e2001-09-28 01:34:43 +000010107
10108fi
10109
a.rottmann84e63352003-03-24 09:42:16 +000010110
10111fi
10112
10113
10114fi
10115
10116
drh71eb93e2001-09-28 01:34:43 +000010117fi
10118
10119 ;;
10120 esac
10121
10122 if test "x$lt_cv_dlopen" != xno; then
10123 enable_dlopen=yes
10124 else
10125 enable_dlopen=no
10126 fi
10127
10128 case $lt_cv_dlopen in
10129 dlopen)
10130 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +000010131 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +000010132
10133 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +000010134 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +000010135
10136 save_LIBS="$LIBS"
10137 LIBS="$lt_cv_dlopen_libs $LIBS"
10138
drh8b727472009-01-19 18:18:40 +000010139 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10140$as_echo_n "checking whether a program can dlopen itself... " >&6; }
drh71eb93e2001-09-28 01:34:43 +000010141if test "${lt_cv_dlopen_self+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010142 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010143else
10144 if test "$cross_compiling" = yes; then :
10145 lt_cv_dlopen_self=cross
10146else
a.rottmann9bc8b932004-02-29 15:18:31 +000010147 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +000010148 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +000010149 cat > conftest.$ac_ext <<_LT_EOF
drh934c5442009-04-13 09:09:24 +000010150#line 10150 "configure"
drh71eb93e2001-09-28 01:34:43 +000010151#include "confdefs.h"
10152
10153#if HAVE_DLFCN_H
10154#include <dlfcn.h>
10155#endif
10156
10157#include <stdio.h>
10158
10159#ifdef RTLD_GLOBAL
10160# define LT_DLGLOBAL RTLD_GLOBAL
10161#else
10162# ifdef DL_GLOBAL
10163# define LT_DLGLOBAL DL_GLOBAL
10164# else
10165# define LT_DLGLOBAL 0
10166# endif
10167#endif
10168
10169/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10170 find out it does not work in some platform. */
10171#ifndef LT_DLLAZY_OR_NOW
10172# ifdef RTLD_LAZY
10173# define LT_DLLAZY_OR_NOW RTLD_LAZY
10174# else
10175# ifdef DL_LAZY
10176# define LT_DLLAZY_OR_NOW DL_LAZY
10177# else
10178# ifdef RTLD_NOW
10179# define LT_DLLAZY_OR_NOW RTLD_NOW
10180# else
10181# ifdef DL_NOW
10182# define LT_DLLAZY_OR_NOW DL_NOW
10183# else
10184# define LT_DLLAZY_OR_NOW 0
10185# endif
10186# endif
10187# endif
10188# endif
10189#endif
10190
drh71eb93e2001-09-28 01:34:43 +000010191void fnord() { int i=42;}
10192int main ()
10193{
10194 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10195 int status = $lt_dlunknown;
10196
10197 if (self)
10198 {
10199 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10200 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10201 /* dlclose (self); */
10202 }
vapier7f19c022007-02-17 14:46:31 +000010203 else
10204 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +000010205
vapier6acb2cf2009-01-28 04:46:28 +000010206 return status;
drh71eb93e2001-09-28 01:34:43 +000010207}
mlcreech636a9952008-05-05 22:52:56 +000010208_LT_EOF
a.rottmann84e63352003-03-24 09:42:16 +000010209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +000010210 (eval $ac_link) 2>&5
10211 ac_status=$?
drh8b727472009-01-19 18:18:40 +000010212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000010213 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +000010214 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000010215 lt_status=$?
10216 case x$lt_status in
10217 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10218 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +000010219 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +000010220 esac
10221 else :
10222 # compilation failed
10223 lt_cv_dlopen_self=no
10224 fi
10225fi
10226rm -fr conftest*
10227
a.rottmann84e63352003-03-24 09:42:16 +000010228
drh71eb93e2001-09-28 01:34:43 +000010229fi
drh8b727472009-01-19 18:18:40 +000010230{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10231$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010232
10233 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +000010234 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drh8b727472009-01-19 18:18:40 +000010235 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10236$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
drh71eb93e2001-09-28 01:34:43 +000010237if test "${lt_cv_dlopen_self_static+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010238 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010239else
10240 if test "$cross_compiling" = yes; then :
10241 lt_cv_dlopen_self_static=cross
10242else
a.rottmann9bc8b932004-02-29 15:18:31 +000010243 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +000010244 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +000010245 cat > conftest.$ac_ext <<_LT_EOF
drh934c5442009-04-13 09:09:24 +000010246#line 10246 "configure"
drh71eb93e2001-09-28 01:34:43 +000010247#include "confdefs.h"
10248
10249#if HAVE_DLFCN_H
10250#include <dlfcn.h>
10251#endif
10252
10253#include <stdio.h>
10254
10255#ifdef RTLD_GLOBAL
10256# define LT_DLGLOBAL RTLD_GLOBAL
10257#else
10258# ifdef DL_GLOBAL
10259# define LT_DLGLOBAL DL_GLOBAL
10260# else
10261# define LT_DLGLOBAL 0
10262# endif
10263#endif
10264
10265/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10266 find out it does not work in some platform. */
10267#ifndef LT_DLLAZY_OR_NOW
10268# ifdef RTLD_LAZY
10269# define LT_DLLAZY_OR_NOW RTLD_LAZY
10270# else
10271# ifdef DL_LAZY
10272# define LT_DLLAZY_OR_NOW DL_LAZY
10273# else
10274# ifdef RTLD_NOW
10275# define LT_DLLAZY_OR_NOW RTLD_NOW
10276# else
10277# ifdef DL_NOW
10278# define LT_DLLAZY_OR_NOW DL_NOW
10279# else
10280# define LT_DLLAZY_OR_NOW 0
10281# endif
10282# endif
10283# endif
10284# endif
10285#endif
10286
drh71eb93e2001-09-28 01:34:43 +000010287void fnord() { int i=42;}
10288int main ()
10289{
10290 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10291 int status = $lt_dlunknown;
10292
10293 if (self)
10294 {
10295 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10296 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10297 /* dlclose (self); */
10298 }
vapier7f19c022007-02-17 14:46:31 +000010299 else
10300 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +000010301
vapier6acb2cf2009-01-28 04:46:28 +000010302 return status;
drh71eb93e2001-09-28 01:34:43 +000010303}
mlcreech636a9952008-05-05 22:52:56 +000010304_LT_EOF
a.rottmann84e63352003-03-24 09:42:16 +000010305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +000010306 (eval $ac_link) 2>&5
10307 ac_status=$?
drh8b727472009-01-19 18:18:40 +000010308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000010309 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +000010310 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000010311 lt_status=$?
10312 case x$lt_status in
10313 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10314 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +000010315 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +000010316 esac
10317 else :
10318 # compilation failed
10319 lt_cv_dlopen_self_static=no
10320 fi
10321fi
10322rm -fr conftest*
10323
a.rottmann84e63352003-03-24 09:42:16 +000010324
drh71eb93e2001-09-28 01:34:43 +000010325fi
drh8b727472009-01-19 18:18:40 +000010326{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10327$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010328 fi
10329
10330 CPPFLAGS="$save_CPPFLAGS"
10331 LDFLAGS="$save_LDFLAGS"
10332 LIBS="$save_LIBS"
10333 ;;
10334 esac
10335
10336 case $lt_cv_dlopen_self in
10337 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10338 *) enable_dlopen_self=unknown ;;
10339 esac
10340
10341 case $lt_cv_dlopen_self_static in
10342 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10343 *) enable_dlopen_self_static=unknown ;;
10344 esac
10345fi
10346
drh71eb93e2001-09-28 01:34:43 +000010347
drh71eb93e2001-09-28 01:34:43 +000010348
a.rottmann9bc8b932004-02-29 15:18:31 +000010349
a.rottmann9bc8b932004-02-29 15:18:31 +000010350
mlcreech636a9952008-05-05 22:52:56 +000010351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363striplib=
10364old_striplib=
drh8b727472009-01-19 18:18:40 +000010365{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10366$as_echo_n "checking whether stripping libraries is possible... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010367if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10368 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10369 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drh8b727472009-01-19 18:18:40 +000010370 { $as_echo "$as_me:$LINENO: result: yes" >&5
10371$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010372else
10373# FIXME - insert some real tests, host_os isn't really good enough
10374 case $host_os in
10375 darwin*)
10376 if test -n "$STRIP" ; then
10377 striplib="$STRIP -x"
10378 old_striplib="$STRIP -S"
drh8b727472009-01-19 18:18:40 +000010379 { $as_echo "$as_me:$LINENO: result: yes" >&5
10380$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010381 else
drh8b727472009-01-19 18:18:40 +000010382 { $as_echo "$as_me:$LINENO: result: no" >&5
10383$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010384 fi
a.rottmann84e63352003-03-24 09:42:16 +000010385 ;;
mlcreech636a9952008-05-05 22:52:56 +000010386 *)
drh8b727472009-01-19 18:18:40 +000010387 { $as_echo "$as_me:$LINENO: result: no" >&5
10388$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010389 ;;
10390 esac
mlcreech636a9952008-05-05 22:52:56 +000010391fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010392
a.rottmann9bc8b932004-02-29 15:18:31 +000010393
drh71eb93e2001-09-28 01:34:43 +000010394
drh71eb93e2001-09-28 01:34:43 +000010395
a.rottmann84e63352003-03-24 09:42:16 +000010396
drh71eb93e2001-09-28 01:34:43 +000010397
drh71eb93e2001-09-28 01:34:43 +000010398
a.rottmann9bc8b932004-02-29 15:18:31 +000010399
drh71eb93e2001-09-28 01:34:43 +000010400
drh71eb93e2001-09-28 01:34:43 +000010401
drh71eb93e2001-09-28 01:34:43 +000010402
drh71eb93e2001-09-28 01:34:43 +000010403
mlcreech636a9952008-05-05 22:52:56 +000010404 # Report which library types will actually be built
drh8b727472009-01-19 18:18:40 +000010405 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10406$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10407 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10408$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010409
drh8b727472009-01-19 18:18:40 +000010410 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10411$as_echo_n "checking whether to build shared libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010412 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +000010413
mlcreech636a9952008-05-05 22:52:56 +000010414 # On AIX, shared libraries and static libraries use the same namespace, and
10415 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +000010416 case $host_os in
10417 aix3*)
vapier7f19c022007-02-17 14:46:31 +000010418 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +000010419 if test -n "$RANLIB"; then
10420 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10421 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +000010422 fi
10423 ;;
10424
mlcreech636a9952008-05-05 22:52:56 +000010425 aix[4-9]*)
10426 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10427 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +000010428 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010429 ;;
10430 esac
drh8b727472009-01-19 18:18:40 +000010431 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10432$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010433
drh8b727472009-01-19 18:18:40 +000010434 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10435$as_echo_n "checking whether to build static libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010436 # Make sure either enable_shared or enable_static is yes.
10437 test "$enable_shared" = yes || enable_static=yes
drh8b727472009-01-19 18:18:40 +000010438 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10439$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +000010440
a.rottmann9bc8b932004-02-29 15:18:31 +000010441
a.rottmann9bc8b932004-02-29 15:18:31 +000010442
a.rottmann9bc8b932004-02-29 15:18:31 +000010443
vapier7f19c022007-02-17 14:46:31 +000010444fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010445ac_ext=c
10446ac_cpp='$CPP $CPPFLAGS'
10447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10449ac_compiler_gnu=$ac_cv_c_compiler_gnu
10450
10451CC="$lt_save_CC"
10452
a.rottmann9bc8b932004-02-29 15:18:31 +000010453
a.rottmann9bc8b932004-02-29 15:18:31 +000010454
10455
a.rottmann9bc8b932004-02-29 15:18:31 +000010456
a.rottmann9bc8b932004-02-29 15:18:31 +000010457
a.rottmann9bc8b932004-02-29 15:18:31 +000010458
a.rottmann9bc8b932004-02-29 15:18:31 +000010459
a.rottmann9bc8b932004-02-29 15:18:31 +000010460
a.rottmann9bc8b932004-02-29 15:18:31 +000010461
vapier7f19c022007-02-17 14:46:31 +000010462
a.rottmann9bc8b932004-02-29 15:18:31 +000010463
10464
drh8b727472009-01-19 18:18:40 +000010465 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +000010466
vapier7f19c022007-02-17 14:46:31 +000010467
10468
vapier7f19c022007-02-17 14:46:31 +000010469
mlcreech636a9952008-05-05 22:52:56 +000010470# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +000010471
10472
drh71eb93e2001-09-28 01:34:43 +000010473# Find a good install program. We prefer a C program (faster),
10474# so one script is as good as another. But avoid the broken or
10475# incompatible versions:
10476# SysV /etc/install, /usr/sbin/install
10477# SunOS /usr/etc/install
10478# IRIX /sbin/install
10479# AIX /bin/install
10480# AmigaOS /C/install, which installs bootblocks on floppy discs
10481# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10482# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10483# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +000010484# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +000010485# ./install, which can be erroneously created by make from ./install.sh.
drh8b727472009-01-19 18:18:40 +000010486# Reject install programs that cannot install multiple files.
10487{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10488$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +000010489if test -z "$INSTALL"; then
10490if test "${ac_cv_path_install+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010491 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010492else
a.rottmann84e63352003-03-24 09:42:16 +000010493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10494for as_dir in $PATH
10495do
10496 IFS=$as_save_IFS
10497 test -z "$as_dir" && as_dir=.
10498 # Account for people who put trailing slashes in PATH elements.
10499case $as_dir/ in
10500 ./ | .// | /cC/* | \
10501 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
a.rottmann964dbb12004-02-26 19:47:42 +000010502 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a.rottmann84e63352003-03-24 09:42:16 +000010503 /usr/ucb/* ) ;;
10504 *)
10505 # OSF1 and SCO ODT 3.0 have their own names for install.
10506 # Don't use installbsd from OSF since it installs stuff as root
10507 # by default.
10508 for ac_prog in ginstall scoinst install; do
10509 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000010510 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 +000010511 if test $ac_prog = install &&
10512 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10513 # AIX install. It has an incompatible calling convention.
10514 :
10515 elif test $ac_prog = install &&
10516 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10517 # program-specific install script used by HP pwplus--don't use.
10518 :
10519 else
drh8b727472009-01-19 18:18:40 +000010520 rm -rf conftest.one conftest.two conftest.dir
10521 echo one > conftest.one
10522 echo two > conftest.two
10523 mkdir conftest.dir
10524 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10525 test -s conftest.one && test -s conftest.two &&
10526 test -s conftest.dir/conftest.one &&
10527 test -s conftest.dir/conftest.two
10528 then
10529 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10530 break 3
10531 fi
a.rottmann964dbb12004-02-26 19:47:42 +000010532 fi
10533 fi
drh71eb93e2001-09-28 01:34:43 +000010534 done
a.rottmann84e63352003-03-24 09:42:16 +000010535 done
10536 ;;
10537esac
a.rottmann84e63352003-03-24 09:42:16 +000010538
drh8b727472009-01-19 18:18:40 +000010539done
10540IFS=$as_save_IFS
10541
10542rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +000010543
10544fi
10545 if test "${ac_cv_path_install+set}" = set; then
10546 INSTALL=$ac_cv_path_install
10547 else
drh8b727472009-01-19 18:18:40 +000010548 # As a last resort, use the slow shell script. Don't cache a
10549 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +000010550 # break other packages using the cache if that directory is
drh8b727472009-01-19 18:18:40 +000010551 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +000010552 INSTALL=$ac_install_sh
10553 fi
10554fi
drh8b727472009-01-19 18:18:40 +000010555{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10556$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010557
10558# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10559# It thinks the first close brace ends the variable substitution.
10560test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10561
10562test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10563
10564test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10565
drhf1878b42006-01-23 18:06:52 +000010566for ac_prog in gawk mawk nawk awk
10567do
10568 # Extract the first word of "$ac_prog", so it can be a program name with args.
10569set dummy $ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +000010570{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10571$as_echo_n "checking for $ac_word... " >&6; }
drhf1878b42006-01-23 18:06:52 +000010572if test "${ac_cv_prog_AWK+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010573 $as_echo_n "(cached) " >&6
drhf1878b42006-01-23 18:06:52 +000010574else
10575 if test -n "$AWK"; then
10576 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10577else
10578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10579for as_dir in $PATH
10580do
10581 IFS=$as_save_IFS
10582 test -z "$as_dir" && as_dir=.
10583 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000010584 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 +000010585 ac_cv_prog_AWK="$ac_prog"
drh8b727472009-01-19 18:18:40 +000010586 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
drhf1878b42006-01-23 18:06:52 +000010587 break 2
10588 fi
10589done
10590done
drh8b727472009-01-19 18:18:40 +000010591IFS=$as_save_IFS
drhf1878b42006-01-23 18:06:52 +000010592
10593fi
10594fi
10595AWK=$ac_cv_prog_AWK
10596if test -n "$AWK"; then
drh8b727472009-01-19 18:18:40 +000010597 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
10598$as_echo "$AWK" >&6; }
drhf1878b42006-01-23 18:06:52 +000010599else
drh8b727472009-01-19 18:18:40 +000010600 { $as_echo "$as_me:$LINENO: result: no" >&5
10601$as_echo "no" >&6; }
drhf1878b42006-01-23 18:06:52 +000010602fi
10603
drh8b727472009-01-19 18:18:40 +000010604
drhf1878b42006-01-23 18:06:52 +000010605 test -n "$AWK" && break
10606done
10607
a.rottmann84e63352003-03-24 09:42:16 +000010608
drh75897232000-05-29 14:26:00 +000010609#########
mlcreech636a9952008-05-05 22:52:56 +000010610# Enable large file support (if special flags are necessary)
10611#
drh8b727472009-01-19 18:18:40 +000010612# Check whether --enable-largefile was given.
mlcreech636a9952008-05-05 22:52:56 +000010613if test "${enable_largefile+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010614 enableval=$enable_largefile;
10615fi
mlcreech636a9952008-05-05 22:52:56 +000010616
10617if test "$enable_largefile" != no; then
10618
drh8b727472009-01-19 18:18:40 +000010619 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10620$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010621if test "${ac_cv_sys_largefile_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010622 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000010623else
mlcreech636a9952008-05-05 22:52:56 +000010624 ac_cv_sys_largefile_CC=no
10625 if test "$GCC" != yes; then
10626 ac_save_CC=$CC
10627 while :; do
drh8b727472009-01-19 18:18:40 +000010628 # IRIX 6.2 and later do not support large files by default,
10629 # so use the C compiler's -n32 option if that helps.
mlcreech636a9952008-05-05 22:52:56 +000010630 cat >conftest.$ac_ext <<_ACEOF
10631/* confdefs.h. */
10632_ACEOF
10633cat confdefs.h >>conftest.$ac_ext
10634cat >>conftest.$ac_ext <<_ACEOF
10635/* end confdefs.h. */
10636#include <sys/types.h>
10637 /* Check that off_t can represent 2**63 - 1 correctly.
10638 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10639 since some C++ compilers masquerading as C compilers
10640 incorrectly reject 9223372036854775807. */
10641#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10643 && LARGE_OFF_T % 2147483647 == 1)
10644 ? 1 : -1];
10645int
10646main ()
10647{
10648
10649 ;
10650 return 0;
10651}
10652_ACEOF
drh8b727472009-01-19 18:18:40 +000010653 rm -f conftest.$ac_objext
10654if { (ac_try="$ac_compile"
10655case "(($ac_try" in
10656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657 *) ac_try_echo=$ac_try;;
10658esac
10659eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10660$as_echo "$ac_try_echo") >&5
10661 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010662 ac_status=$?
10663 grep -v '^ *+' conftest.er1 >conftest.err
10664 rm -f conftest.er1
10665 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } && {
10668 test -z "$ac_c_werror_flag" ||
10669 test ! -s conftest.err
10670 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010671 break
10672else
drh8b727472009-01-19 18:18:40 +000010673 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000010674sed 's/^/| /' conftest.$ac_ext >&5
10675
drh8b727472009-01-19 18:18:40 +000010676
mlcreech636a9952008-05-05 22:52:56 +000010677fi
drh8b727472009-01-19 18:18:40 +000010678
10679rm -f core conftest.err conftest.$ac_objext
10680 CC="$CC -n32"
10681 rm -f conftest.$ac_objext
10682if { (ac_try="$ac_compile"
10683case "(($ac_try" in
10684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685 *) ac_try_echo=$ac_try;;
10686esac
10687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10688$as_echo "$ac_try_echo") >&5
10689 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010690 ac_status=$?
10691 grep -v '^ *+' conftest.er1 >conftest.err
10692 rm -f conftest.er1
10693 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } && {
10696 test -z "$ac_c_werror_flag" ||
10697 test ! -s conftest.err
10698 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010699 ac_cv_sys_largefile_CC=' -n32'; break
10700else
drh8b727472009-01-19 18:18:40 +000010701 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000010702sed 's/^/| /' conftest.$ac_ext >&5
10703
drh8b727472009-01-19 18:18:40 +000010704
mlcreech636a9952008-05-05 22:52:56 +000010705fi
drh8b727472009-01-19 18:18:40 +000010706
10707rm -f core conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +000010708 break
10709 done
10710 CC=$ac_save_CC
10711 rm -f conftest.$ac_ext
10712 fi
10713fi
drh8b727472009-01-19 18:18:40 +000010714{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10715$as_echo "$ac_cv_sys_largefile_CC" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010716 if test "$ac_cv_sys_largefile_CC" != no; then
10717 CC=$CC$ac_cv_sys_largefile_CC
10718 fi
10719
drh8b727472009-01-19 18:18:40 +000010720 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10721$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010722if test "${ac_cv_sys_file_offset_bits+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010723 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010724else
10725 while :; do
mlcreechb87057f2008-03-06 07:19:20 +000010726 cat >conftest.$ac_ext <<_ACEOF
10727/* confdefs.h. */
10728_ACEOF
10729cat confdefs.h >>conftest.$ac_ext
10730cat >>conftest.$ac_ext <<_ACEOF
10731/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010732#include <sys/types.h>
10733 /* Check that off_t can represent 2**63 - 1 correctly.
10734 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10735 since some C++ compilers masquerading as C compilers
10736 incorrectly reject 9223372036854775807. */
10737#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10738 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10739 && LARGE_OFF_T % 2147483647 == 1)
10740 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010741int
10742main ()
10743{
mlcreech636a9952008-05-05 22:52:56 +000010744
mlcreechb87057f2008-03-06 07:19:20 +000010745 ;
10746 return 0;
10747}
10748_ACEOF
10749rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000010750if { (ac_try="$ac_compile"
10751case "(($ac_try" in
10752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753 *) ac_try_echo=$ac_try;;
10754esac
10755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10756$as_echo "$ac_try_echo") >&5
10757 (eval "$ac_compile") 2>conftest.er1
mlcreechb87057f2008-03-06 07:19:20 +000010758 ac_status=$?
10759 grep -v '^ *+' conftest.er1 >conftest.err
10760 rm -f conftest.er1
10761 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } && {
10764 test -z "$ac_c_werror_flag" ||
10765 test ! -s conftest.err
10766 } && test -s conftest.$ac_objext; then
10767 ac_cv_sys_file_offset_bits=no; break
mlcreechb87057f2008-03-06 07:19:20 +000010768else
drh8b727472009-01-19 18:18:40 +000010769 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000010770sed 's/^/| /' conftest.$ac_ext >&5
10771
drh8b727472009-01-19 18:18:40 +000010772
mlcreech636a9952008-05-05 22:52:56 +000010773fi
drh8b727472009-01-19 18:18:40 +000010774
10775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010776 cat >conftest.$ac_ext <<_ACEOF
10777/* confdefs.h. */
10778_ACEOF
10779cat confdefs.h >>conftest.$ac_ext
10780cat >>conftest.$ac_ext <<_ACEOF
10781/* end confdefs.h. */
10782#define _FILE_OFFSET_BITS 64
10783#include <sys/types.h>
10784 /* Check that off_t can represent 2**63 - 1 correctly.
10785 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10786 since some C++ compilers masquerading as C compilers
10787 incorrectly reject 9223372036854775807. */
10788#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10789 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10790 && LARGE_OFF_T % 2147483647 == 1)
10791 ? 1 : -1];
10792int
10793main ()
10794{
10795
10796 ;
10797 return 0;
10798}
10799_ACEOF
10800rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000010801if { (ac_try="$ac_compile"
10802case "(($ac_try" in
10803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804 *) ac_try_echo=$ac_try;;
10805esac
10806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10807$as_echo "$ac_try_echo") >&5
10808 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010809 ac_status=$?
10810 grep -v '^ *+' conftest.er1 >conftest.err
10811 rm -f conftest.er1
10812 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } && {
10815 test -z "$ac_c_werror_flag" ||
10816 test ! -s conftest.err
10817 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010818 ac_cv_sys_file_offset_bits=64; break
10819else
drh8b727472009-01-19 18:18:40 +000010820 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000010821sed 's/^/| /' conftest.$ac_ext >&5
10822
drh8b727472009-01-19 18:18:40 +000010823
mlcreech636a9952008-05-05 22:52:56 +000010824fi
drh8b727472009-01-19 18:18:40 +000010825
10826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10827 ac_cv_sys_file_offset_bits=unknown
mlcreech636a9952008-05-05 22:52:56 +000010828 break
10829done
10830fi
drh8b727472009-01-19 18:18:40 +000010831{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10832$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10833case $ac_cv_sys_file_offset_bits in #(
10834 no | unknown) ;;
10835 *)
mlcreech636a9952008-05-05 22:52:56 +000010836cat >>confdefs.h <<_ACEOF
10837#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10838_ACEOF
drh8b727472009-01-19 18:18:40 +000010839;;
10840esac
10841rm -rf conftest*
10842 if test $ac_cv_sys_file_offset_bits = unknown; then
10843 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10844$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010845if test "${ac_cv_sys_large_files+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010846 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010847else
10848 while :; do
10849 cat >conftest.$ac_ext <<_ACEOF
10850/* confdefs.h. */
10851_ACEOF
10852cat confdefs.h >>conftest.$ac_ext
10853cat >>conftest.$ac_ext <<_ACEOF
10854/* end confdefs.h. */
10855#include <sys/types.h>
10856 /* Check that off_t can represent 2**63 - 1 correctly.
10857 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10858 since some C++ compilers masquerading as C compilers
10859 incorrectly reject 9223372036854775807. */
10860#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10861 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10862 && LARGE_OFF_T % 2147483647 == 1)
10863 ? 1 : -1];
10864int
10865main ()
10866{
10867
10868 ;
10869 return 0;
10870}
10871_ACEOF
10872rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000010873if { (ac_try="$ac_compile"
10874case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;;
10877esac
10878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10879$as_echo "$ac_try_echo") >&5
10880 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010881 ac_status=$?
10882 grep -v '^ *+' conftest.er1 >conftest.err
10883 rm -f conftest.er1
10884 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } && {
10887 test -z "$ac_c_werror_flag" ||
10888 test ! -s conftest.err
10889 } && test -s conftest.$ac_objext; then
10890 ac_cv_sys_large_files=no; break
mlcreech636a9952008-05-05 22:52:56 +000010891else
drh8b727472009-01-19 18:18:40 +000010892 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000010893sed 's/^/| /' conftest.$ac_ext >&5
10894
drh8b727472009-01-19 18:18:40 +000010895
mlcreech636a9952008-05-05 22:52:56 +000010896fi
drh8b727472009-01-19 18:18:40 +000010897
10898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010899 cat >conftest.$ac_ext <<_ACEOF
10900/* confdefs.h. */
10901_ACEOF
10902cat confdefs.h >>conftest.$ac_ext
10903cat >>conftest.$ac_ext <<_ACEOF
10904/* end confdefs.h. */
10905#define _LARGE_FILES 1
10906#include <sys/types.h>
10907 /* Check that off_t can represent 2**63 - 1 correctly.
10908 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10909 since some C++ compilers masquerading as C compilers
10910 incorrectly reject 9223372036854775807. */
10911#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10912 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10913 && LARGE_OFF_T % 2147483647 == 1)
10914 ? 1 : -1];
10915int
10916main ()
10917{
10918
10919 ;
10920 return 0;
10921}
10922_ACEOF
10923rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000010924if { (ac_try="$ac_compile"
10925case "(($ac_try" in
10926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10927 *) ac_try_echo=$ac_try;;
10928esac
10929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10930$as_echo "$ac_try_echo") >&5
10931 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010932 ac_status=$?
10933 grep -v '^ *+' conftest.er1 >conftest.err
10934 rm -f conftest.er1
10935 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } && {
10938 test -z "$ac_c_werror_flag" ||
10939 test ! -s conftest.err
10940 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010941 ac_cv_sys_large_files=1; break
10942else
drh8b727472009-01-19 18:18:40 +000010943 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000010944sed 's/^/| /' conftest.$ac_ext >&5
10945
drh8b727472009-01-19 18:18:40 +000010946
mlcreech636a9952008-05-05 22:52:56 +000010947fi
drh8b727472009-01-19 18:18:40 +000010948
10949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10950 ac_cv_sys_large_files=unknown
mlcreech636a9952008-05-05 22:52:56 +000010951 break
10952done
10953fi
drh8b727472009-01-19 18:18:40 +000010954{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10955$as_echo "$ac_cv_sys_large_files" >&6; }
10956case $ac_cv_sys_large_files in #(
10957 no | unknown) ;;
10958 *)
mlcreech636a9952008-05-05 22:52:56 +000010959cat >>confdefs.h <<_ACEOF
10960#define _LARGE_FILES $ac_cv_sys_large_files
10961_ACEOF
drh8b727472009-01-19 18:18:40 +000010962;;
10963esac
10964rm -rf conftest*
10965 fi
mlcreech636a9952008-05-05 22:52:56 +000010966fi
10967
10968
10969#########
10970# Check for needed/wanted data types
drh8b727472009-01-19 18:18:40 +000010971{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5
10972$as_echo_n "checking for int8_t... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010973if test "${ac_cv_type_int8_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010974 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010975else
drh8b727472009-01-19 18:18:40 +000010976 ac_cv_type_int8_t=no
10977cat >conftest.$ac_ext <<_ACEOF
10978/* confdefs.h. */
10979_ACEOF
10980cat confdefs.h >>conftest.$ac_ext
10981cat >>conftest.$ac_ext <<_ACEOF
10982/* end confdefs.h. */
10983$ac_includes_default
10984int
10985main ()
10986{
10987if (sizeof (int8_t))
10988 return 0;
10989 ;
10990 return 0;
10991}
10992_ACEOF
10993rm -f conftest.$ac_objext
10994if { (ac_try="$ac_compile"
10995case "(($ac_try" in
10996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10998esac
10999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11000$as_echo "$ac_try_echo") >&5
11001 (eval "$ac_compile") 2>conftest.er1
11002 ac_status=$?
11003 grep -v '^ *+' conftest.er1 >conftest.err
11004 rm -f conftest.er1
11005 cat conftest.err >&5
11006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } && {
11008 test -z "$ac_c_werror_flag" ||
11009 test ! -s conftest.err
11010 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011011 cat >conftest.$ac_ext <<_ACEOF
11012/* confdefs.h. */
11013_ACEOF
11014cat confdefs.h >>conftest.$ac_ext
11015cat >>conftest.$ac_ext <<_ACEOF
11016/* end confdefs.h. */
11017$ac_includes_default
11018int
11019main ()
11020{
drh8b727472009-01-19 18:18:40 +000011021if (sizeof ((int8_t)))
11022 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011023 ;
11024 return 0;
11025}
11026_ACEOF
11027rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011028if { (ac_try="$ac_compile"
11029case "(($ac_try" in
11030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11031 *) ac_try_echo=$ac_try;;
11032esac
11033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11034$as_echo "$ac_try_echo") >&5
11035 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011036 ac_status=$?
11037 grep -v '^ *+' conftest.er1 >conftest.err
11038 rm -f conftest.er1
11039 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } && {
11042 test -z "$ac_c_werror_flag" ||
11043 test ! -s conftest.err
11044 } && test -s conftest.$ac_objext; then
11045 :
mlcreech636a9952008-05-05 22:52:56 +000011046else
drh8b727472009-01-19 18:18:40 +000011047 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000011048sed 's/^/| /' conftest.$ac_ext >&5
11049
drh8b727472009-01-19 18:18:40 +000011050 ac_cv_type_int8_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011051fi
drh8b727472009-01-19 18:18:40 +000011052
11053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11054else
11055 $as_echo "$as_me: failed program was:" >&5
11056sed 's/^/| /' conftest.$ac_ext >&5
11057
11058
mlcreechb87057f2008-03-06 07:19:20 +000011059fi
drh8b727472009-01-19 18:18:40 +000011060
11061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11062fi
11063{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11064$as_echo "$ac_cv_type_int8_t" >&6; }
drh934c5442009-04-13 09:09:24 +000011065if test $ac_cv_type_int8_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011066
11067cat >>confdefs.h <<_ACEOF
11068#define HAVE_INT8_T 1
11069_ACEOF
11070
11071
11072fi
drh8b727472009-01-19 18:18:40 +000011073{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
11074$as_echo_n "checking for int16_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011075if test "${ac_cv_type_int16_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011076 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011077else
drh8b727472009-01-19 18:18:40 +000011078 ac_cv_type_int16_t=no
11079cat >conftest.$ac_ext <<_ACEOF
11080/* confdefs.h. */
11081_ACEOF
11082cat confdefs.h >>conftest.$ac_ext
11083cat >>conftest.$ac_ext <<_ACEOF
11084/* end confdefs.h. */
11085$ac_includes_default
11086int
11087main ()
11088{
11089if (sizeof (int16_t))
11090 return 0;
11091 ;
11092 return 0;
11093}
11094_ACEOF
11095rm -f conftest.$ac_objext
11096if { (ac_try="$ac_compile"
11097case "(($ac_try" in
11098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099 *) ac_try_echo=$ac_try;;
11100esac
11101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11102$as_echo "$ac_try_echo") >&5
11103 (eval "$ac_compile") 2>conftest.er1
11104 ac_status=$?
11105 grep -v '^ *+' conftest.er1 >conftest.err
11106 rm -f conftest.er1
11107 cat conftest.err >&5
11108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } && {
11110 test -z "$ac_c_werror_flag" ||
11111 test ! -s conftest.err
11112 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011113 cat >conftest.$ac_ext <<_ACEOF
11114/* confdefs.h. */
11115_ACEOF
11116cat confdefs.h >>conftest.$ac_ext
11117cat >>conftest.$ac_ext <<_ACEOF
11118/* end confdefs.h. */
11119$ac_includes_default
11120int
11121main ()
11122{
drh8b727472009-01-19 18:18:40 +000011123if (sizeof ((int16_t)))
11124 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011125 ;
11126 return 0;
11127}
11128_ACEOF
11129rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011130if { (ac_try="$ac_compile"
11131case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11134esac
11135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11136$as_echo "$ac_try_echo") >&5
11137 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011138 ac_status=$?
11139 grep -v '^ *+' conftest.er1 >conftest.err
11140 rm -f conftest.er1
11141 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); } && {
11144 test -z "$ac_c_werror_flag" ||
11145 test ! -s conftest.err
11146 } && test -s conftest.$ac_objext; then
11147 :
mlcreechb87057f2008-03-06 07:19:20 +000011148else
drh8b727472009-01-19 18:18:40 +000011149 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011150sed 's/^/| /' conftest.$ac_ext >&5
11151
drh8b727472009-01-19 18:18:40 +000011152 ac_cv_type_int16_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011153fi
drh8b727472009-01-19 18:18:40 +000011154
11155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11156else
11157 $as_echo "$as_me: failed program was:" >&5
11158sed 's/^/| /' conftest.$ac_ext >&5
11159
11160
mlcreechb87057f2008-03-06 07:19:20 +000011161fi
drh8b727472009-01-19 18:18:40 +000011162
11163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11164fi
11165{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11166$as_echo "$ac_cv_type_int16_t" >&6; }
drh934c5442009-04-13 09:09:24 +000011167if test $ac_cv_type_int16_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011168
11169cat >>confdefs.h <<_ACEOF
11170#define HAVE_INT16_T 1
11171_ACEOF
11172
11173
11174fi
drh8b727472009-01-19 18:18:40 +000011175{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
11176$as_echo_n "checking for int32_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011177if test "${ac_cv_type_int32_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011178 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011179else
drh8b727472009-01-19 18:18:40 +000011180 ac_cv_type_int32_t=no
11181cat >conftest.$ac_ext <<_ACEOF
11182/* confdefs.h. */
11183_ACEOF
11184cat confdefs.h >>conftest.$ac_ext
11185cat >>conftest.$ac_ext <<_ACEOF
11186/* end confdefs.h. */
11187$ac_includes_default
11188int
11189main ()
11190{
11191if (sizeof (int32_t))
11192 return 0;
11193 ;
11194 return 0;
11195}
11196_ACEOF
11197rm -f conftest.$ac_objext
11198if { (ac_try="$ac_compile"
11199case "(($ac_try" in
11200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11201 *) ac_try_echo=$ac_try;;
11202esac
11203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11204$as_echo "$ac_try_echo") >&5
11205 (eval "$ac_compile") 2>conftest.er1
11206 ac_status=$?
11207 grep -v '^ *+' conftest.er1 >conftest.err
11208 rm -f conftest.er1
11209 cat conftest.err >&5
11210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); } && {
11212 test -z "$ac_c_werror_flag" ||
11213 test ! -s conftest.err
11214 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011215 cat >conftest.$ac_ext <<_ACEOF
11216/* confdefs.h. */
11217_ACEOF
11218cat confdefs.h >>conftest.$ac_ext
11219cat >>conftest.$ac_ext <<_ACEOF
11220/* end confdefs.h. */
11221$ac_includes_default
11222int
11223main ()
11224{
drh8b727472009-01-19 18:18:40 +000011225if (sizeof ((int32_t)))
11226 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011227 ;
11228 return 0;
11229}
11230_ACEOF
11231rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011232if { (ac_try="$ac_compile"
11233case "(($ac_try" in
11234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11235 *) ac_try_echo=$ac_try;;
11236esac
11237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11238$as_echo "$ac_try_echo") >&5
11239 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011240 ac_status=$?
11241 grep -v '^ *+' conftest.er1 >conftest.err
11242 rm -f conftest.er1
11243 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } && {
11246 test -z "$ac_c_werror_flag" ||
11247 test ! -s conftest.err
11248 } && test -s conftest.$ac_objext; then
11249 :
mlcreechb87057f2008-03-06 07:19:20 +000011250else
drh8b727472009-01-19 18:18:40 +000011251 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011252sed 's/^/| /' conftest.$ac_ext >&5
11253
drh8b727472009-01-19 18:18:40 +000011254 ac_cv_type_int32_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011255fi
drh8b727472009-01-19 18:18:40 +000011256
11257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11258else
11259 $as_echo "$as_me: failed program was:" >&5
11260sed 's/^/| /' conftest.$ac_ext >&5
11261
11262
mlcreechb87057f2008-03-06 07:19:20 +000011263fi
drh8b727472009-01-19 18:18:40 +000011264
11265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11266fi
11267{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11268$as_echo "$ac_cv_type_int32_t" >&6; }
drh934c5442009-04-13 09:09:24 +000011269if test $ac_cv_type_int32_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011270
11271cat >>confdefs.h <<_ACEOF
11272#define HAVE_INT32_T 1
11273_ACEOF
11274
11275
11276fi
drh8b727472009-01-19 18:18:40 +000011277{ $as_echo "$as_me:$LINENO: checking for int64_t" >&5
11278$as_echo_n "checking for int64_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011279if test "${ac_cv_type_int64_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011280 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011281else
drh8b727472009-01-19 18:18:40 +000011282 ac_cv_type_int64_t=no
11283cat >conftest.$ac_ext <<_ACEOF
11284/* confdefs.h. */
11285_ACEOF
11286cat confdefs.h >>conftest.$ac_ext
11287cat >>conftest.$ac_ext <<_ACEOF
11288/* end confdefs.h. */
11289$ac_includes_default
11290int
11291main ()
11292{
11293if (sizeof (int64_t))
11294 return 0;
11295 ;
11296 return 0;
11297}
11298_ACEOF
11299rm -f conftest.$ac_objext
11300if { (ac_try="$ac_compile"
11301case "(($ac_try" in
11302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303 *) ac_try_echo=$ac_try;;
11304esac
11305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11306$as_echo "$ac_try_echo") >&5
11307 (eval "$ac_compile") 2>conftest.er1
11308 ac_status=$?
11309 grep -v '^ *+' conftest.er1 >conftest.err
11310 rm -f conftest.er1
11311 cat conftest.err >&5
11312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); } && {
11314 test -z "$ac_c_werror_flag" ||
11315 test ! -s conftest.err
11316 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011317 cat >conftest.$ac_ext <<_ACEOF
11318/* confdefs.h. */
11319_ACEOF
11320cat confdefs.h >>conftest.$ac_ext
11321cat >>conftest.$ac_ext <<_ACEOF
11322/* end confdefs.h. */
11323$ac_includes_default
11324int
11325main ()
11326{
drh8b727472009-01-19 18:18:40 +000011327if (sizeof ((int64_t)))
11328 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011329 ;
11330 return 0;
11331}
11332_ACEOF
11333rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011334if { (ac_try="$ac_compile"
11335case "(($ac_try" in
11336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11337 *) ac_try_echo=$ac_try;;
11338esac
11339eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11340$as_echo "$ac_try_echo") >&5
11341 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011342 ac_status=$?
11343 grep -v '^ *+' conftest.er1 >conftest.err
11344 rm -f conftest.er1
11345 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } && {
11348 test -z "$ac_c_werror_flag" ||
11349 test ! -s conftest.err
11350 } && test -s conftest.$ac_objext; then
11351 :
mlcreechb87057f2008-03-06 07:19:20 +000011352else
drh8b727472009-01-19 18:18:40 +000011353 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011354sed 's/^/| /' conftest.$ac_ext >&5
11355
drh8b727472009-01-19 18:18:40 +000011356 ac_cv_type_int64_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011357fi
drh8b727472009-01-19 18:18:40 +000011358
11359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11360else
11361 $as_echo "$as_me: failed program was:" >&5
11362sed 's/^/| /' conftest.$ac_ext >&5
11363
11364
mlcreechb87057f2008-03-06 07:19:20 +000011365fi
drh8b727472009-01-19 18:18:40 +000011366
11367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11368fi
11369{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11370$as_echo "$ac_cv_type_int64_t" >&6; }
drh934c5442009-04-13 09:09:24 +000011371if test $ac_cv_type_int64_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011372
11373cat >>confdefs.h <<_ACEOF
11374#define HAVE_INT64_T 1
11375_ACEOF
11376
11377
11378fi
drh8b727472009-01-19 18:18:40 +000011379{ $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
11380$as_echo_n "checking for intptr_t... " >&6; }
danielk197733a14782008-08-04 14:50:05 +000011381if test "${ac_cv_type_intptr_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011382 $as_echo_n "(cached) " >&6
danielk197733a14782008-08-04 14:50:05 +000011383else
drh8b727472009-01-19 18:18:40 +000011384 ac_cv_type_intptr_t=no
11385cat >conftest.$ac_ext <<_ACEOF
11386/* confdefs.h. */
11387_ACEOF
11388cat confdefs.h >>conftest.$ac_ext
11389cat >>conftest.$ac_ext <<_ACEOF
11390/* end confdefs.h. */
11391$ac_includes_default
11392int
11393main ()
11394{
11395if (sizeof (intptr_t))
11396 return 0;
11397 ;
11398 return 0;
11399}
11400_ACEOF
11401rm -f conftest.$ac_objext
11402if { (ac_try="$ac_compile"
11403case "(($ac_try" in
11404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405 *) ac_try_echo=$ac_try;;
11406esac
11407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11408$as_echo "$ac_try_echo") >&5
11409 (eval "$ac_compile") 2>conftest.er1
11410 ac_status=$?
11411 grep -v '^ *+' conftest.er1 >conftest.err
11412 rm -f conftest.er1
11413 cat conftest.err >&5
11414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } && {
11416 test -z "$ac_c_werror_flag" ||
11417 test ! -s conftest.err
11418 } && test -s conftest.$ac_objext; then
danielk197733a14782008-08-04 14:50:05 +000011419 cat >conftest.$ac_ext <<_ACEOF
11420/* confdefs.h. */
11421_ACEOF
11422cat confdefs.h >>conftest.$ac_ext
11423cat >>conftest.$ac_ext <<_ACEOF
11424/* end confdefs.h. */
11425$ac_includes_default
11426int
11427main ()
11428{
drh8b727472009-01-19 18:18:40 +000011429if (sizeof ((intptr_t)))
11430 return 0;
danielk197733a14782008-08-04 14:50:05 +000011431 ;
11432 return 0;
11433}
11434_ACEOF
11435rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011436if { (ac_try="$ac_compile"
11437case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11440esac
11441eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11442$as_echo "$ac_try_echo") >&5
11443 (eval "$ac_compile") 2>conftest.er1
danielk197733a14782008-08-04 14:50:05 +000011444 ac_status=$?
11445 grep -v '^ *+' conftest.er1 >conftest.err
11446 rm -f conftest.er1
11447 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); } && {
11450 test -z "$ac_c_werror_flag" ||
11451 test ! -s conftest.err
11452 } && test -s conftest.$ac_objext; then
11453 :
danielk197733a14782008-08-04 14:50:05 +000011454else
drh8b727472009-01-19 18:18:40 +000011455 $as_echo "$as_me: failed program was:" >&5
danielk197733a14782008-08-04 14:50:05 +000011456sed 's/^/| /' conftest.$ac_ext >&5
mlcreechb87057f2008-03-06 07:19:20 +000011457
drh8b727472009-01-19 18:18:40 +000011458 ac_cv_type_intptr_t=yes
danielk197733a14782008-08-04 14:50:05 +000011459fi
drh8b727472009-01-19 18:18:40 +000011460
11461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11462else
11463 $as_echo "$as_me: failed program was:" >&5
11464sed 's/^/| /' conftest.$ac_ext >&5
11465
11466
danielk197733a14782008-08-04 14:50:05 +000011467fi
drh8b727472009-01-19 18:18:40 +000011468
11469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11470fi
11471{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
11472$as_echo "$ac_cv_type_intptr_t" >&6; }
drh934c5442009-04-13 09:09:24 +000011473if test $ac_cv_type_intptr_t = yes; then
danielk197733a14782008-08-04 14:50:05 +000011474
11475cat >>confdefs.h <<_ACEOF
11476#define HAVE_INTPTR_T 1
11477_ACEOF
11478
11479
11480fi
drh8b727472009-01-19 18:18:40 +000011481{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
11482$as_echo_n "checking for uint8_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011483if test "${ac_cv_type_uint8_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011484 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011485else
drh8b727472009-01-19 18:18:40 +000011486 ac_cv_type_uint8_t=no
11487cat >conftest.$ac_ext <<_ACEOF
11488/* confdefs.h. */
11489_ACEOF
11490cat confdefs.h >>conftest.$ac_ext
11491cat >>conftest.$ac_ext <<_ACEOF
11492/* end confdefs.h. */
11493$ac_includes_default
11494int
11495main ()
11496{
11497if (sizeof (uint8_t))
11498 return 0;
11499 ;
11500 return 0;
11501}
11502_ACEOF
11503rm -f conftest.$ac_objext
11504if { (ac_try="$ac_compile"
11505case "(($ac_try" in
11506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507 *) ac_try_echo=$ac_try;;
11508esac
11509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11510$as_echo "$ac_try_echo") >&5
11511 (eval "$ac_compile") 2>conftest.er1
11512 ac_status=$?
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
11516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } && {
11518 test -z "$ac_c_werror_flag" ||
11519 test ! -s conftest.err
11520 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011521 cat >conftest.$ac_ext <<_ACEOF
11522/* confdefs.h. */
11523_ACEOF
11524cat confdefs.h >>conftest.$ac_ext
11525cat >>conftest.$ac_ext <<_ACEOF
11526/* end confdefs.h. */
11527$ac_includes_default
11528int
11529main ()
11530{
drh8b727472009-01-19 18:18:40 +000011531if (sizeof ((uint8_t)))
11532 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011533 ;
11534 return 0;
11535}
11536_ACEOF
11537rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011538if { (ac_try="$ac_compile"
11539case "(($ac_try" in
11540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11541 *) ac_try_echo=$ac_try;;
11542esac
11543eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11544$as_echo "$ac_try_echo") >&5
11545 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011546 ac_status=$?
11547 grep -v '^ *+' conftest.er1 >conftest.err
11548 rm -f conftest.er1
11549 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } && {
11552 test -z "$ac_c_werror_flag" ||
11553 test ! -s conftest.err
11554 } && test -s conftest.$ac_objext; then
11555 :
mlcreechb87057f2008-03-06 07:19:20 +000011556else
drh8b727472009-01-19 18:18:40 +000011557 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011558sed 's/^/| /' conftest.$ac_ext >&5
11559
drh8b727472009-01-19 18:18:40 +000011560 ac_cv_type_uint8_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011561fi
drh8b727472009-01-19 18:18:40 +000011562
11563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11564else
11565 $as_echo "$as_me: failed program was:" >&5
11566sed 's/^/| /' conftest.$ac_ext >&5
11567
11568
mlcreechb87057f2008-03-06 07:19:20 +000011569fi
drh8b727472009-01-19 18:18:40 +000011570
11571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11572fi
11573{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
11574$as_echo "$ac_cv_type_uint8_t" >&6; }
drh934c5442009-04-13 09:09:24 +000011575if test $ac_cv_type_uint8_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011576
11577cat >>confdefs.h <<_ACEOF
11578#define HAVE_UINT8_T 1
11579_ACEOF
11580
11581
11582fi
drh8b727472009-01-19 18:18:40 +000011583{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
11584$as_echo_n "checking for uint16_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011585if test "${ac_cv_type_uint16_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011586 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011587else
drh8b727472009-01-19 18:18:40 +000011588 ac_cv_type_uint16_t=no
11589cat >conftest.$ac_ext <<_ACEOF
11590/* confdefs.h. */
11591_ACEOF
11592cat confdefs.h >>conftest.$ac_ext
11593cat >>conftest.$ac_ext <<_ACEOF
11594/* end confdefs.h. */
11595$ac_includes_default
11596int
11597main ()
11598{
11599if (sizeof (uint16_t))
11600 return 0;
11601 ;
11602 return 0;
11603}
11604_ACEOF
11605rm -f conftest.$ac_objext
11606if { (ac_try="$ac_compile"
11607case "(($ac_try" in
11608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609 *) ac_try_echo=$ac_try;;
11610esac
11611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11612$as_echo "$ac_try_echo") >&5
11613 (eval "$ac_compile") 2>conftest.er1
11614 ac_status=$?
11615 grep -v '^ *+' conftest.er1 >conftest.err
11616 rm -f conftest.er1
11617 cat conftest.err >&5
11618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); } && {
11620 test -z "$ac_c_werror_flag" ||
11621 test ! -s conftest.err
11622 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011623 cat >conftest.$ac_ext <<_ACEOF
11624/* confdefs.h. */
11625_ACEOF
11626cat confdefs.h >>conftest.$ac_ext
11627cat >>conftest.$ac_ext <<_ACEOF
11628/* end confdefs.h. */
11629$ac_includes_default
11630int
11631main ()
11632{
drh8b727472009-01-19 18:18:40 +000011633if (sizeof ((uint16_t)))
11634 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011635 ;
11636 return 0;
11637}
11638_ACEOF
11639rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011640if { (ac_try="$ac_compile"
11641case "(($ac_try" in
11642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11643 *) ac_try_echo=$ac_try;;
11644esac
11645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11646$as_echo "$ac_try_echo") >&5
11647 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011648 ac_status=$?
11649 grep -v '^ *+' conftest.er1 >conftest.err
11650 rm -f conftest.er1
11651 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); } && {
11654 test -z "$ac_c_werror_flag" ||
11655 test ! -s conftest.err
11656 } && test -s conftest.$ac_objext; then
11657 :
mlcreechb87057f2008-03-06 07:19:20 +000011658else
drh8b727472009-01-19 18:18:40 +000011659 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011660sed 's/^/| /' conftest.$ac_ext >&5
11661
drh8b727472009-01-19 18:18:40 +000011662 ac_cv_type_uint16_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011663fi
drh8b727472009-01-19 18:18:40 +000011664
11665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11666else
11667 $as_echo "$as_me: failed program was:" >&5
11668sed 's/^/| /' conftest.$ac_ext >&5
11669
11670
mlcreechb87057f2008-03-06 07:19:20 +000011671fi
drh8b727472009-01-19 18:18:40 +000011672
11673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11674fi
11675{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
11676$as_echo "$ac_cv_type_uint16_t" >&6; }
drh934c5442009-04-13 09:09:24 +000011677if test $ac_cv_type_uint16_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011678
11679cat >>confdefs.h <<_ACEOF
11680#define HAVE_UINT16_T 1
11681_ACEOF
11682
11683
11684fi
drh8b727472009-01-19 18:18:40 +000011685{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
11686$as_echo_n "checking for uint32_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011687if test "${ac_cv_type_uint32_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011688 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011689else
drh8b727472009-01-19 18:18:40 +000011690 ac_cv_type_uint32_t=no
11691cat >conftest.$ac_ext <<_ACEOF
11692/* confdefs.h. */
11693_ACEOF
11694cat confdefs.h >>conftest.$ac_ext
11695cat >>conftest.$ac_ext <<_ACEOF
11696/* end confdefs.h. */
11697$ac_includes_default
11698int
11699main ()
11700{
11701if (sizeof (uint32_t))
11702 return 0;
11703 ;
11704 return 0;
11705}
11706_ACEOF
11707rm -f conftest.$ac_objext
11708if { (ac_try="$ac_compile"
11709case "(($ac_try" in
11710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711 *) ac_try_echo=$ac_try;;
11712esac
11713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11714$as_echo "$ac_try_echo") >&5
11715 (eval "$ac_compile") 2>conftest.er1
11716 ac_status=$?
11717 grep -v '^ *+' conftest.er1 >conftest.err
11718 rm -f conftest.er1
11719 cat conftest.err >&5
11720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); } && {
11722 test -z "$ac_c_werror_flag" ||
11723 test ! -s conftest.err
11724 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011725 cat >conftest.$ac_ext <<_ACEOF
11726/* confdefs.h. */
11727_ACEOF
11728cat confdefs.h >>conftest.$ac_ext
11729cat >>conftest.$ac_ext <<_ACEOF
11730/* end confdefs.h. */
11731$ac_includes_default
11732int
11733main ()
11734{
drh8b727472009-01-19 18:18:40 +000011735if (sizeof ((uint32_t)))
11736 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011737 ;
11738 return 0;
11739}
11740_ACEOF
11741rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011742if { (ac_try="$ac_compile"
11743case "(($ac_try" in
11744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11745 *) ac_try_echo=$ac_try;;
11746esac
11747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11748$as_echo "$ac_try_echo") >&5
11749 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011750 ac_status=$?
11751 grep -v '^ *+' conftest.er1 >conftest.err
11752 rm -f conftest.er1
11753 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } && {
11756 test -z "$ac_c_werror_flag" ||
11757 test ! -s conftest.err
11758 } && test -s conftest.$ac_objext; then
11759 :
mlcreechb87057f2008-03-06 07:19:20 +000011760else
drh8b727472009-01-19 18:18:40 +000011761 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011762sed 's/^/| /' conftest.$ac_ext >&5
11763
drh8b727472009-01-19 18:18:40 +000011764 ac_cv_type_uint32_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011765fi
drh8b727472009-01-19 18:18:40 +000011766
11767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11768else
11769 $as_echo "$as_me: failed program was:" >&5
11770sed 's/^/| /' conftest.$ac_ext >&5
11771
11772
mlcreechb87057f2008-03-06 07:19:20 +000011773fi
drh8b727472009-01-19 18:18:40 +000011774
11775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11776fi
11777{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11778$as_echo "$ac_cv_type_uint32_t" >&6; }
drh934c5442009-04-13 09:09:24 +000011779if test $ac_cv_type_uint32_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011780
11781cat >>confdefs.h <<_ACEOF
11782#define HAVE_UINT32_T 1
11783_ACEOF
11784
11785
11786fi
drh8b727472009-01-19 18:18:40 +000011787{ $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
11788$as_echo_n "checking for uint64_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011789if test "${ac_cv_type_uint64_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011790 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011791else
drh8b727472009-01-19 18:18:40 +000011792 ac_cv_type_uint64_t=no
11793cat >conftest.$ac_ext <<_ACEOF
11794/* confdefs.h. */
11795_ACEOF
11796cat confdefs.h >>conftest.$ac_ext
11797cat >>conftest.$ac_ext <<_ACEOF
11798/* end confdefs.h. */
11799$ac_includes_default
11800int
11801main ()
11802{
11803if (sizeof (uint64_t))
11804 return 0;
11805 ;
11806 return 0;
11807}
11808_ACEOF
11809rm -f conftest.$ac_objext
11810if { (ac_try="$ac_compile"
11811case "(($ac_try" in
11812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11814esac
11815eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11816$as_echo "$ac_try_echo") >&5
11817 (eval "$ac_compile") 2>conftest.er1
11818 ac_status=$?
11819 grep -v '^ *+' conftest.er1 >conftest.err
11820 rm -f conftest.er1
11821 cat conftest.err >&5
11822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); } && {
11824 test -z "$ac_c_werror_flag" ||
11825 test ! -s conftest.err
11826 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011827 cat >conftest.$ac_ext <<_ACEOF
11828/* confdefs.h. */
11829_ACEOF
11830cat confdefs.h >>conftest.$ac_ext
11831cat >>conftest.$ac_ext <<_ACEOF
11832/* end confdefs.h. */
11833$ac_includes_default
11834int
11835main ()
11836{
drh8b727472009-01-19 18:18:40 +000011837if (sizeof ((uint64_t)))
11838 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011839 ;
11840 return 0;
11841}
11842_ACEOF
11843rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011844if { (ac_try="$ac_compile"
11845case "(($ac_try" in
11846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11847 *) ac_try_echo=$ac_try;;
11848esac
11849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11850$as_echo "$ac_try_echo") >&5
11851 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011852 ac_status=$?
11853 grep -v '^ *+' conftest.er1 >conftest.err
11854 rm -f conftest.er1
11855 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); } && {
11858 test -z "$ac_c_werror_flag" ||
11859 test ! -s conftest.err
11860 } && test -s conftest.$ac_objext; then
11861 :
mlcreechb87057f2008-03-06 07:19:20 +000011862else
drh8b727472009-01-19 18:18:40 +000011863 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011864sed 's/^/| /' conftest.$ac_ext >&5
11865
drh8b727472009-01-19 18:18:40 +000011866 ac_cv_type_uint64_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011867fi
drh8b727472009-01-19 18:18:40 +000011868
11869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11870else
11871 $as_echo "$as_me: failed program was:" >&5
11872sed 's/^/| /' conftest.$ac_ext >&5
11873
11874
mlcreechb87057f2008-03-06 07:19:20 +000011875fi
drh8b727472009-01-19 18:18:40 +000011876
11877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11878fi
11879{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11880$as_echo "$ac_cv_type_uint64_t" >&6; }
drh934c5442009-04-13 09:09:24 +000011881if test $ac_cv_type_uint64_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011882
11883cat >>confdefs.h <<_ACEOF
11884#define HAVE_UINT64_T 1
11885_ACEOF
11886
11887
11888fi
drh8b727472009-01-19 18:18:40 +000011889{ $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
11890$as_echo_n "checking for uintptr_t... " >&6; }
danielk197733a14782008-08-04 14:50:05 +000011891if test "${ac_cv_type_uintptr_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011892 $as_echo_n "(cached) " >&6
danielk197733a14782008-08-04 14:50:05 +000011893else
drh8b727472009-01-19 18:18:40 +000011894 ac_cv_type_uintptr_t=no
11895cat >conftest.$ac_ext <<_ACEOF
11896/* confdefs.h. */
11897_ACEOF
11898cat confdefs.h >>conftest.$ac_ext
11899cat >>conftest.$ac_ext <<_ACEOF
11900/* end confdefs.h. */
11901$ac_includes_default
11902int
11903main ()
11904{
11905if (sizeof (uintptr_t))
11906 return 0;
11907 ;
11908 return 0;
11909}
11910_ACEOF
11911rm -f conftest.$ac_objext
11912if { (ac_try="$ac_compile"
11913case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11916esac
11917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11918$as_echo "$ac_try_echo") >&5
11919 (eval "$ac_compile") 2>conftest.er1
11920 ac_status=$?
11921 grep -v '^ *+' conftest.er1 >conftest.err
11922 rm -f conftest.er1
11923 cat conftest.err >&5
11924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } && {
11926 test -z "$ac_c_werror_flag" ||
11927 test ! -s conftest.err
11928 } && test -s conftest.$ac_objext; then
danielk197733a14782008-08-04 14:50:05 +000011929 cat >conftest.$ac_ext <<_ACEOF
11930/* confdefs.h. */
11931_ACEOF
11932cat confdefs.h >>conftest.$ac_ext
11933cat >>conftest.$ac_ext <<_ACEOF
11934/* end confdefs.h. */
11935$ac_includes_default
11936int
11937main ()
11938{
drh8b727472009-01-19 18:18:40 +000011939if (sizeof ((uintptr_t)))
11940 return 0;
danielk197733a14782008-08-04 14:50:05 +000011941 ;
11942 return 0;
11943}
11944_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000011945rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011946if { (ac_try="$ac_compile"
11947case "(($ac_try" in
11948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949 *) ac_try_echo=$ac_try;;
11950esac
11951eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11952$as_echo "$ac_try_echo") >&5
11953 (eval "$ac_compile") 2>conftest.er1
danielk197733a14782008-08-04 14:50:05 +000011954 ac_status=$?
11955 grep -v '^ *+' conftest.er1 >conftest.err
11956 rm -f conftest.er1
11957 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); } && {
11960 test -z "$ac_c_werror_flag" ||
11961 test ! -s conftest.err
11962 } && test -s conftest.$ac_objext; then
11963 :
danielk197733a14782008-08-04 14:50:05 +000011964else
drh8b727472009-01-19 18:18:40 +000011965 $as_echo "$as_me: failed program was:" >&5
danielk197733a14782008-08-04 14:50:05 +000011966sed 's/^/| /' conftest.$ac_ext >&5
11967
drh8b727472009-01-19 18:18:40 +000011968 ac_cv_type_uintptr_t=yes
danielk197733a14782008-08-04 14:50:05 +000011969fi
drh8b727472009-01-19 18:18:40 +000011970
11971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11972else
11973 $as_echo "$as_me: failed program was:" >&5
11974sed 's/^/| /' conftest.$ac_ext >&5
11975
11976
danielk197733a14782008-08-04 14:50:05 +000011977fi
drh8b727472009-01-19 18:18:40 +000011978
11979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11980fi
11981{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11982$as_echo "$ac_cv_type_uintptr_t" >&6; }
drh934c5442009-04-13 09:09:24 +000011983if test $ac_cv_type_uintptr_t = yes; then
danielk197733a14782008-08-04 14:50:05 +000011984
11985cat >>confdefs.h <<_ACEOF
11986#define HAVE_UINTPTR_T 1
11987_ACEOF
11988
11989
11990fi
mlcreechb87057f2008-03-06 07:19:20 +000011991
11992
11993#########
11994# Check for needed/wanted headers
11995
mlcreech8390bc32008-03-06 08:54:38 +000011996
11997
11998
11999for ac_header in sys/types.h stdlib.h stdint.h inttypes.h
mlcreechb87057f2008-03-06 07:19:20 +000012000do
drh8b727472009-01-19 18:18:40 +000012001as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12002if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12003 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12004$as_echo_n "checking for $ac_header... " >&6; }
12005if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12006 $as_echo_n "(cached) " >&6
mlcreech8390bc32008-03-06 08:54:38 +000012007fi
drh8b727472009-01-19 18:18:40 +000012008ac_res=`eval 'as_val=${'$as_ac_Header'}
12009 $as_echo "$as_val"'`
12010 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12011$as_echo "$ac_res" >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000012012else
mlcreech8390bc32008-03-06 08:54:38 +000012013 # Is the header compilable?
drh8b727472009-01-19 18:18:40 +000012014{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12015$as_echo_n "checking $ac_header usability... " >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000012016cat >conftest.$ac_ext <<_ACEOF
mlcreechb87057f2008-03-06 07:19:20 +000012017/* confdefs.h. */
12018_ACEOF
12019cat confdefs.h >>conftest.$ac_ext
12020cat >>conftest.$ac_ext <<_ACEOF
12021/* end confdefs.h. */
mlcreech8390bc32008-03-06 08:54:38 +000012022$ac_includes_default
mlcreechb87057f2008-03-06 07:19:20 +000012023#include <$ac_header>
12024_ACEOF
12025rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000012026if { (ac_try="$ac_compile"
12027case "(($ac_try" in
12028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12030esac
12031eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12032$as_echo "$ac_try_echo") >&5
12033 (eval "$ac_compile") 2>conftest.er1
mlcreechb87057f2008-03-06 07:19:20 +000012034 ac_status=$?
12035 grep -v '^ *+' conftest.er1 >conftest.err
12036 rm -f conftest.er1
12037 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000012038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } && {
12040 test -z "$ac_c_werror_flag" ||
12041 test ! -s conftest.err
12042 } && test -s conftest.$ac_objext; then
mlcreech8390bc32008-03-06 08:54:38 +000012043 ac_header_compiler=yes
mlcreechb87057f2008-03-06 07:19:20 +000012044else
drh8b727472009-01-19 18:18:40 +000012045 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000012046sed 's/^/| /' conftest.$ac_ext >&5
12047
drh8b727472009-01-19 18:18:40 +000012048 ac_header_compiler=no
mlcreechb87057f2008-03-06 07:19:20 +000012049fi
drh8b727472009-01-19 18:18:40 +000012050
12051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12052{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12053$as_echo "$ac_header_compiler" >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000012054
12055# Is the header present?
drh8b727472009-01-19 18:18:40 +000012056{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12057$as_echo_n "checking $ac_header presence... " >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000012058cat >conftest.$ac_ext <<_ACEOF
12059/* confdefs.h. */
12060_ACEOF
12061cat confdefs.h >>conftest.$ac_ext
12062cat >>conftest.$ac_ext <<_ACEOF
12063/* end confdefs.h. */
12064#include <$ac_header>
12065_ACEOF
drh8b727472009-01-19 18:18:40 +000012066if { (ac_try="$ac_cpp conftest.$ac_ext"
12067case "(($ac_try" in
12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069 *) ac_try_echo=$ac_try;;
12070esac
12071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12072$as_echo "$ac_try_echo") >&5
12073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mlcreech8390bc32008-03-06 08:54:38 +000012074 ac_status=$?
12075 grep -v '^ *+' conftest.er1 >conftest.err
12076 rm -f conftest.er1
12077 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000012078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); } >/dev/null && {
12080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12081 test ! -s conftest.err
12082 }; then
mlcreech8390bc32008-03-06 08:54:38 +000012083 ac_header_preproc=yes
12084else
drh8b727472009-01-19 18:18:40 +000012085 $as_echo "$as_me: failed program was:" >&5
mlcreech8390bc32008-03-06 08:54:38 +000012086sed 's/^/| /' conftest.$ac_ext >&5
12087
12088 ac_header_preproc=no
12089fi
drh8b727472009-01-19 18:18:40 +000012090
mlcreech8390bc32008-03-06 08:54:38 +000012091rm -f conftest.err conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +000012092{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12093$as_echo "$ac_header_preproc" >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000012094
12095# So? What about this header?
12096case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12097 yes:no: )
drh8b727472009-01-19 18:18:40 +000012098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12099$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12101$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
mlcreech8390bc32008-03-06 08:54:38 +000012102 ac_header_preproc=yes
12103 ;;
12104 no:yes:* )
drh8b727472009-01-19 18:18:40 +000012105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12106$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12108$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12110$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12112$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12114$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12116$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12117
mlcreech8390bc32008-03-06 08:54:38 +000012118 ;;
12119esac
drh8b727472009-01-19 18:18:40 +000012120{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12121$as_echo_n "checking for $ac_header... " >&6; }
12122if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12123 $as_echo_n "(cached) " >&6
mlcreech8390bc32008-03-06 08:54:38 +000012124else
12125 eval "$as_ac_Header=\$ac_header_preproc"
mlcreechb87057f2008-03-06 07:19:20 +000012126fi
drh8b727472009-01-19 18:18:40 +000012127ac_res=`eval 'as_val=${'$as_ac_Header'}
12128 $as_echo "$as_val"'`
12129 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12130$as_echo "$ac_res" >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000012131
12132fi
drh934c5442009-04-13 09:09:24 +000012133if test `eval 'as_val=${'$as_ac_Header'}
12134 $as_echo "$as_val"'` = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000012135 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000012136#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000012137_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000012138
mlcreechb87057f2008-03-06 07:19:20 +000012139fi
12140
12141done
12142
12143
12144#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000012145# Figure out whether or not we have these functions
12146#
12147
12148
12149
12150
danielk197733a14782008-08-04 14:50:05 +000012151
shanefbedede2008-07-22 05:05:01 +000012152for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s
mlcreech5b0a9eb2008-03-09 01:38:09 +000012153do
drh8b727472009-01-19 18:18:40 +000012154as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12155{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12156$as_echo_n "checking for $ac_func... " >&6; }
12157if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12158 $as_echo_n "(cached) " >&6
mlcreech5b0a9eb2008-03-09 01:38:09 +000012159else
12160 cat >conftest.$ac_ext <<_ACEOF
12161/* confdefs.h. */
12162_ACEOF
12163cat confdefs.h >>conftest.$ac_ext
12164cat >>conftest.$ac_ext <<_ACEOF
12165/* end confdefs.h. */
12166/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12168#define $ac_func innocuous_$ac_func
12169
12170/* System header to define __stub macros and hopefully few prototypes,
12171 which can conflict with char $ac_func (); below.
12172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12173 <limits.h> exists even on freestanding compilers. */
12174
12175#ifdef __STDC__
12176# include <limits.h>
12177#else
12178# include <assert.h>
12179#endif
12180
12181#undef $ac_func
12182
drh8b727472009-01-19 18:18:40 +000012183/* Override any GCC internal prototype to avoid an error.
12184 Use char because int might match the return type of a GCC
12185 builtin and then its argument prototype would still apply. */
mlcreech5b0a9eb2008-03-09 01:38:09 +000012186#ifdef __cplusplus
12187extern "C"
12188#endif
12189char $ac_func ();
12190/* The GNU C library defines this for functions which it implements
12191 to always fail with ENOSYS. Some functions are actually named
12192 something starting with __ and the normal name is an alias. */
drh8b727472009-01-19 18:18:40 +000012193#if defined __stub_$ac_func || defined __stub___$ac_func
mlcreech5b0a9eb2008-03-09 01:38:09 +000012194choke me
12195#endif
12196
12197int
12198main ()
12199{
drh8b727472009-01-19 18:18:40 +000012200return $ac_func ();
mlcreech5b0a9eb2008-03-09 01:38:09 +000012201 ;
12202 return 0;
12203}
12204_ACEOF
12205rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +000012206if { (ac_try="$ac_link"
12207case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12210esac
12211eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12212$as_echo "$ac_try_echo") >&5
12213 (eval "$ac_link") 2>conftest.er1
mlcreech5b0a9eb2008-03-09 01:38:09 +000012214 ac_status=$?
12215 grep -v '^ *+' conftest.er1 >conftest.err
12216 rm -f conftest.er1
12217 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000012218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); } && {
12220 test -z "$ac_c_werror_flag" ||
12221 test ! -s conftest.err
12222 } && test -s conftest$ac_exeext && {
12223 test "$cross_compiling" = yes ||
12224 $as_test_x conftest$ac_exeext
12225 }; then
mlcreech5b0a9eb2008-03-09 01:38:09 +000012226 eval "$as_ac_var=yes"
12227else
drh8b727472009-01-19 18:18:40 +000012228 $as_echo "$as_me: failed program was:" >&5
mlcreech5b0a9eb2008-03-09 01:38:09 +000012229sed 's/^/| /' conftest.$ac_ext >&5
12230
drh8b727472009-01-19 18:18:40 +000012231 eval "$as_ac_var=no"
mlcreech5b0a9eb2008-03-09 01:38:09 +000012232fi
drh8b727472009-01-19 18:18:40 +000012233
12234rm -rf conftest.dSYM
12235rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mlcreech5b0a9eb2008-03-09 01:38:09 +000012236 conftest$ac_exeext conftest.$ac_ext
12237fi
drh8b727472009-01-19 18:18:40 +000012238ac_res=`eval 'as_val=${'$as_ac_var'}
12239 $as_echo "$as_val"'`
12240 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12241$as_echo "$ac_res" >&6; }
drh934c5442009-04-13 09:09:24 +000012242if test `eval 'as_val=${'$as_ac_var'}
12243 $as_echo "$as_val"'` = yes; then
mlcreech5b0a9eb2008-03-09 01:38:09 +000012244 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000012245#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000012246_ACEOF
12247
12248fi
12249done
12250
12251
mlcreechab1c47b2008-03-09 02:51:10 +000012252#########
mlcreechf3868112008-03-11 18:03:30 +000012253# By default, we use the amalgamation (this may be changed below...)
12254#
12255USE_AMALGAMATION=1
12256
12257#########
mlcreechab1c47b2008-03-09 02:51:10 +000012258# See whether we can run specific tclsh versions known to work well;
12259# if not, then we fall back to plain tclsh.
12260# TODO: try other versions before falling back?
12261#
12262for ac_prog in tclsh8.4 tclsh
12263do
12264 # Extract the first word of "$ac_prog", so it can be a program name with args.
12265set dummy $ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +000012266{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12267$as_echo_n "checking for $ac_word... " >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000012268if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012269 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000012270else
12271 if test -n "$TCLSH_CMD"; then
12272 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
12273else
12274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12275for as_dir in $PATH
12276do
12277 IFS=$as_save_IFS
12278 test -z "$as_dir" && as_dir=.
12279 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000012280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreechab1c47b2008-03-09 02:51:10 +000012281 ac_cv_prog_TCLSH_CMD="$ac_prog"
drh8b727472009-01-19 18:18:40 +000012282 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000012283 break 2
12284 fi
12285done
12286done
drh8b727472009-01-19 18:18:40 +000012287IFS=$as_save_IFS
mlcreechab1c47b2008-03-09 02:51:10 +000012288
12289fi
12290fi
12291TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
12292if test -n "$TCLSH_CMD"; then
drh8b727472009-01-19 18:18:40 +000012293 { $as_echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5
12294$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000012295else
drh8b727472009-01-19 18:18:40 +000012296 { $as_echo "$as_me:$LINENO: result: no" >&5
12297$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000012298fi
12299
drh8b727472009-01-19 18:18:40 +000012300
mlcreechab1c47b2008-03-09 02:51:10 +000012301 test -n "$TCLSH_CMD" && break
12302done
mlcreechf3868112008-03-11 18:03:30 +000012303test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000012304
mlcreechf3868112008-03-11 18:03:30 +000012305if test "$TCLSH_CMD" = "none"; then
12306 # If we can't find a local tclsh, then building the amalgamation will fail.
12307 # We act as though --disable-amalgamation has been used.
12308 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
12309 USE_AMALGAMATION=0
12310 TCLSH_CMD="tclsh"
12311fi
mlcreechab1c47b2008-03-09 02:51:10 +000012312
12313
mlcreech5b0a9eb2008-03-09 01:38:09 +000012314
vapier6acb2cf2009-01-28 04:46:28 +000012315if test "x${TCLLIBDIR+set}" != "xset" ; then
12316 TCLLIBDIR='$(libdir)'
12317 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
12318 TCLLIBDIR=$i
12319 break
12320 done
12321 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
12322fi
12323
12324
mlcreech5b0a9eb2008-03-09 01:38:09 +000012325#########
drh75897232000-05-29 14:26:00 +000012326# Set up an appropriate program prefix
12327#
12328if test "$program_prefix" = "NONE"; then
12329 program_prefix=""
12330fi
12331
a.rottmann84e63352003-03-24 09:42:16 +000012332
drh4b2266a2004-11-27 15:52:16 +000012333VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
vapier6acb2cf2009-01-28 04:46:28 +000012334{ $as_echo "$as_me:$LINENO: Version set to $VERSION" >&5
12335$as_echo "$as_me: Version set to $VERSION" >&6;}
drh4b2266a2004-11-27 15:52:16 +000012336
12337RELEASE=`cat $srcdir/VERSION`
vapier6acb2cf2009-01-28 04:46:28 +000012338{ $as_echo "$as_me:$LINENO: Release set to $RELEASE" >&5
12339$as_echo "$as_me: Release set to $RELEASE" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000012340
vapier6acb2cf2009-01-28 04:46:28 +000012341VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000012342 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000012343 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
vapier6acb2cf2009-01-28 04:46:28 +000012344{ $as_echo "$as_me:$LINENO: Version number set to $VERSION_NUMBER" >&5
12345$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000012346
drh26d0e2a2005-07-06 13:51:27 +000012347
drh75897232000-05-29 14:26:00 +000012348#########
12349# Check to see if the --with-hints=FILE option is used. If there is none,
12350# then check for a files named "$host.hints" and ../$hosts.hints where
12351# $host is the hostname of the build system. If still no hints are
12352# found, try looking in $system.hints and ../$system.hints where
12353# $system is the result of uname -s.
12354#
drh71eb93e2001-09-28 01:34:43 +000012355
drh8b727472009-01-19 18:18:40 +000012356# Check whether --with-hints was given.
drh75897232000-05-29 14:26:00 +000012357if test "${with_hints+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012358 withval=$with_hints; hints=$withval
12359fi
12360
drh75897232000-05-29 14:26:00 +000012361if test "$hints" = ""; then
12362 host=`hostname | sed 's/\..*//'`
12363 if test -r $host.hints; then
12364 hints=$host.hints
12365 else
12366 if test -r ../$host.hints; then
12367 hints=../$host.hints
12368 fi
12369 fi
12370fi
12371if test "$hints" = ""; then
12372 sys=`uname -s`
12373 if test -r $sys.hints; then
12374 hints=$sys.hints
12375 else
12376 if test -r ../$sys.hints; then
12377 hints=../$sys.hints
12378 fi
12379 fi
12380fi
12381if test "$hints" != ""; then
drh8b727472009-01-19 18:18:40 +000012382 { $as_echo "$as_me:$LINENO: result: reading hints from $hints" >&5
12383$as_echo "reading hints from $hints" >&6; }
drh75897232000-05-29 14:26:00 +000012384 . $hints
12385fi
12386
12387#########
12388# Locate a compiler for the build machine. This compiler should
12389# generate command-line programs that run on the build machine.
12390#
vapier7f19c022007-02-17 14:46:31 +000012391if test x"$cross_compiling" = xno; then
12392 BUILD_CC=$CC
12393 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000012394else
vapier7f19c022007-02-17 14:46:31 +000012395 if test "${BUILD_CC+set}" != set; then
12396 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000012397do
12398 # Extract the first word of "$ac_prog", so it can be a program name with args.
12399set dummy $ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +000012400{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12401$as_echo_n "checking for $ac_word... " >&6; }
vapier7f19c022007-02-17 14:46:31 +000012402if test "${ac_cv_prog_BUILD_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012403 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000012404else
vapier7f19c022007-02-17 14:46:31 +000012405 if test -n "$BUILD_CC"; then
12406 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000012407else
a.rottmann84e63352003-03-24 09:42:16 +000012408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12409for as_dir in $PATH
12410do
12411 IFS=$as_save_IFS
12412 test -z "$as_dir" && as_dir=.
12413 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000012414 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 +000012415 ac_cv_prog_BUILD_CC="$ac_prog"
drh8b727472009-01-19 18:18:40 +000012416 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000012417 break 2
12418 fi
12419done
drh71eb93e2001-09-28 01:34:43 +000012420done
drh8b727472009-01-19 18:18:40 +000012421IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000012422
drh71eb93e2001-09-28 01:34:43 +000012423fi
12424fi
vapier7f19c022007-02-17 14:46:31 +000012425BUILD_CC=$ac_cv_prog_BUILD_CC
12426if test -n "$BUILD_CC"; then
drh8b727472009-01-19 18:18:40 +000012427 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
12428$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000012429else
drh8b727472009-01-19 18:18:40 +000012430 { $as_echo "$as_me:$LINENO: result: no" >&5
12431$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000012432fi
drh75897232000-05-29 14:26:00 +000012433
drh8b727472009-01-19 18:18:40 +000012434
vapier7f19c022007-02-17 14:46:31 +000012435 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000012436done
drh75897232000-05-29 14:26:00 +000012437
vapier7f19c022007-02-17 14:46:31 +000012438 fi
12439 if test "${BUILD_CFLAGS+set}" != set; then
12440 BUILD_CFLAGS="-g"
12441 fi
drh71eb93e2001-09-28 01:34:43 +000012442fi
12443
a.rottmann84e63352003-03-24 09:42:16 +000012444
drh297ecf12001-04-05 15:57:13 +000012445##########
dougcurrie0f290bf2004-06-21 18:57:29 +000012446# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000012447#
drh8b727472009-01-19 18:18:40 +000012448# Check whether --enable-threadsafe was given.
dougcurrie0f290bf2004-06-21 18:57:29 +000012449if test "${enable_threadsafe+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012450 enableval=$enable_threadsafe;
drh297ecf12001-04-05 15:57:13 +000012451else
drh5a3032b2007-09-03 16:12:09 +000012452 enable_threadsafe=yes
drh8b727472009-01-19 18:18:40 +000012453fi
12454
12455{ $as_echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
12456$as_echo_n "checking whether to support threadsafe operation... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000012457if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000012458 SQLITE_THREADSAFE=0
drh8b727472009-01-19 18:18:40 +000012459 { $as_echo "$as_me:$LINENO: result: no" >&5
12460$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012461else
drh5a3032b2007-09-03 16:12:09 +000012462 SQLITE_THREADSAFE=1
drh8b727472009-01-19 18:18:40 +000012463 { $as_echo "$as_me:$LINENO: result: yes" >&5
12464$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012465fi
12466
a.rottmann964dbb12004-02-26 19:47:42 +000012467
drh5a3032b2007-09-03 16:12:09 +000012468if test "$SQLITE_THREADSAFE" = "1"; then
drh8b727472009-01-19 18:18:40 +000012469 { $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
12470$as_echo_n "checking for library containing pthread_create... " >&6; }
mlcreechc658b0f2008-03-09 02:20:11 +000012471if test "${ac_cv_search_pthread_create+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012472 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000012473else
mlcreechc658b0f2008-03-09 02:20:11 +000012474 ac_func_search_save_LIBS=$LIBS
dougcurrie65623c72004-09-20 14:57:23 +000012475cat >conftest.$ac_ext <<_ACEOF
12476/* confdefs.h. */
12477_ACEOF
12478cat confdefs.h >>conftest.$ac_ext
12479cat >>conftest.$ac_ext <<_ACEOF
12480/* end confdefs.h. */
12481
drh8b727472009-01-19 18:18:40 +000012482/* Override any GCC internal prototype to avoid an error.
12483 Use char because int might match the return type of a GCC
12484 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000012485#ifdef __cplusplus
12486extern "C"
12487#endif
dougcurrie65623c72004-09-20 14:57:23 +000012488char pthread_create ();
12489int
12490main ()
12491{
drh8b727472009-01-19 18:18:40 +000012492return pthread_create ();
dougcurrie65623c72004-09-20 14:57:23 +000012493 ;
12494 return 0;
12495}
12496_ACEOF
drh8b727472009-01-19 18:18:40 +000012497for ac_lib in '' pthread; do
12498 if test -z "$ac_lib"; then
12499 ac_res="none required"
12500 else
12501 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000012502 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000012503 fi
12504 rm -f conftest.$ac_objext conftest$ac_exeext
12505if { (ac_try="$ac_link"
12506case "(($ac_try" in
12507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508 *) ac_try_echo=$ac_try;;
12509esac
12510eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12511$as_echo "$ac_try_echo") >&5
12512 (eval "$ac_link") 2>conftest.er1
drh866108f2008-05-13 00:57:21 +000012513 ac_status=$?
12514 grep -v '^ *+' conftest.er1 >conftest.err
12515 rm -f conftest.er1
12516 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000012517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); } && {
12519 test -z "$ac_c_werror_flag" ||
12520 test ! -s conftest.err
12521 } && test -s conftest$ac_exeext && {
12522 test "$cross_compiling" = yes ||
12523 $as_test_x conftest$ac_exeext
12524 }; then
12525 ac_cv_search_pthread_create=$ac_res
dougcurrie65623c72004-09-20 14:57:23 +000012526else
drh8b727472009-01-19 18:18:40 +000012527 $as_echo "$as_me: failed program was:" >&5
drh866108f2008-05-13 00:57:21 +000012528sed 's/^/| /' conftest.$ac_ext >&5
12529
drh8b727472009-01-19 18:18:40 +000012530
mlcreechc658b0f2008-03-09 02:20:11 +000012531fi
drh8b727472009-01-19 18:18:40 +000012532
12533rm -rf conftest.dSYM
12534rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12535 conftest$ac_exeext
12536 if test "${ac_cv_search_pthread_create+set}" = set; then
12537 break
drh866108f2008-05-13 00:57:21 +000012538fi
drh8b727472009-01-19 18:18:40 +000012539done
12540if test "${ac_cv_search_pthread_create+set}" = set; then
12541 :
12542else
12543 ac_cv_search_pthread_create=no
12544fi
12545rm conftest.$ac_ext
mlcreechc658b0f2008-03-09 02:20:11 +000012546LIBS=$ac_func_search_save_LIBS
12547fi
drh8b727472009-01-19 18:18:40 +000012548{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
12549$as_echo "$ac_cv_search_pthread_create" >&6; }
12550ac_res=$ac_cv_search_pthread_create
12551if test "$ac_res" != no; then
12552 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000012553
dougcurrie65623c72004-09-20 14:57:23 +000012554fi
12555
mlcreechc658b0f2008-03-09 02:20:11 +000012556fi
dougcurrie65623c72004-09-20 14:57:23 +000012557
xdong28f79f72003-09-23 00:35:21 +000012558##########
drh91636d52005-11-24 23:14:00 +000012559# Do we want to allow a connection created in one thread to be used
12560# in another thread. This does not work on many Linux systems (ex: RedHat 9)
12561# due to bugs in the threading implementations. This is thus off by default.
12562#
drh8b727472009-01-19 18:18:40 +000012563# Check whether --enable-cross-thread-connections was given.
drh91636d52005-11-24 23:14:00 +000012564if test "${enable_cross_thread_connections+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012565 enableval=$enable_cross_thread_connections;
drh91636d52005-11-24 23:14:00 +000012566else
12567 enable_xthreadconnect=no
drh8b727472009-01-19 18:18:40 +000012568fi
12569
12570{ $as_echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
12571$as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
drh91636d52005-11-24 23:14:00 +000012572if test "$enable_xthreadconnect" = "no"; then
12573 XTHREADCONNECT=''
drh8b727472009-01-19 18:18:40 +000012574 { $as_echo "$as_me:$LINENO: result: no" >&5
12575$as_echo "no" >&6; }
drh91636d52005-11-24 23:14:00 +000012576else
12577 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
drh8b727472009-01-19 18:18:40 +000012578 { $as_echo "$as_me:$LINENO: result: yes" >&5
12579$as_echo "yes" >&6; }
drh91636d52005-11-24 23:14:00 +000012580fi
12581
12582
12583##########
drh8e2e2a12006-02-01 01:55:17 +000012584# Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by
12585# default. Normally, a test at runtime is performed to determine the
12586# appropriate value of this variable. Use this option only if you're sure that
12587# threads can safely override each others locks in all runtime situations.
12588#
drh8b727472009-01-19 18:18:40 +000012589# Check whether --enable-threads-override-locks was given.
drh8e2e2a12006-02-01 01:55:17 +000012590if test "${enable_threads_override_locks+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012591 enableval=$enable_threads_override_locks;
drh8e2e2a12006-02-01 01:55:17 +000012592else
12593 enable_threads_override_locks=no
drh8b727472009-01-19 18:18:40 +000012594fi
12595
12596{ $as_echo "$as_me:$LINENO: checking whether threads can override each others locks" >&5
12597$as_echo_n "checking whether threads can override each others locks... " >&6; }
drh8e2e2a12006-02-01 01:55:17 +000012598if test "$enable_threads_override_locks" = "no"; then
12599 THREADSOVERRIDELOCKS='-1'
drh8b727472009-01-19 18:18:40 +000012600 { $as_echo "$as_me:$LINENO: result: no" >&5
12601$as_echo "no" >&6; }
drh8e2e2a12006-02-01 01:55:17 +000012602else
12603 THREADSOVERRIDELOCKS='1'
drh8b727472009-01-19 18:18:40 +000012604 { $as_echo "$as_me:$LINENO: result: yes" >&5
12605$as_echo "yes" >&6; }
drh8e2e2a12006-02-01 01:55:17 +000012606fi
12607
12608
12609##########
xdong28f79f72003-09-23 00:35:21 +000012610# Do we want to support release
12611#
drh8b727472009-01-19 18:18:40 +000012612# Check whether --enable-releasemode was given.
xdong28f79f72003-09-23 00:35:21 +000012613if test "${enable_releasemode+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012614 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000012615else
12616 enable_releasemode=no
drh8b727472009-01-19 18:18:40 +000012617fi
12618
12619{ $as_echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
12620$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
xdong28f79f72003-09-23 00:35:21 +000012621if test "$enable_releasemode" = "no"; then
12622 ALLOWRELEASE=""
drh8b727472009-01-19 18:18:40 +000012623 { $as_echo "$as_me:$LINENO: result: no" >&5
12624$as_echo "no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000012625else
drh0b47d342007-11-27 14:50:06 +000012626 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
drh8b727472009-01-19 18:18:40 +000012627 { $as_echo "$as_me:$LINENO: result: yes" >&5
12628$as_echo "yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000012629fi
paulb0208cc2003-04-13 18:26:49 +000012630
a.rottmann964dbb12004-02-26 19:47:42 +000012631
paulb0208cc2003-04-13 18:26:49 +000012632##########
12633# Do we want temporary databases in memory
12634#
drh8b727472009-01-19 18:18:40 +000012635# Check whether --enable-tempstore was given.
dougcurrie0f290bf2004-06-21 18:57:29 +000012636if test "${enable_tempstore+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012637 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000012638else
drh54414bb2005-10-10 00:05:50 +000012639 enable_tempstore=no
drh8b727472009-01-19 18:18:40 +000012640fi
12641
12642{ $as_echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
12643$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000012644case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000012645 never )
paul2dc96f92003-04-20 11:46:34 +000012646 TEMP_STORE=0
drh8b727472009-01-19 18:18:40 +000012647 { $as_echo "$as_me:$LINENO: result: never" >&5
12648$as_echo "never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012649 ;;
12650 no )
paul2dc96f92003-04-20 11:46:34 +000012651 TEMP_STORE=1
drh8b727472009-01-19 18:18:40 +000012652 { $as_echo "$as_me:$LINENO: result: no" >&5
12653$as_echo "no" >&6; }
12654 ;;
12655 yes )
12656 TEMP_STORE=2
12657 { $as_echo "$as_me:$LINENO: result: yes" >&5
12658$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012659 ;;
12660 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000012661 TEMP_STORE=3
drh8b727472009-01-19 18:18:40 +000012662 { $as_echo "$as_me:$LINENO: result: always" >&5
12663$as_echo "always" >&6; }
drh54414bb2005-10-10 00:05:50 +000012664 ;;
paulb0208cc2003-04-13 18:26:49 +000012665 * )
drh54414bb2005-10-10 00:05:50 +000012666 TEMP_STORE=1
drh8b727472009-01-19 18:18:40 +000012667 { $as_echo "$as_me:$LINENO: result: no" >&5
12668$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012669 ;;
12670esac
12671
12672
12673
drh75897232000-05-29 14:26:00 +000012674###########
12675# Lots of things are different if we are compiling for Windows using
12676# the CYGWIN environment. So check for that special case and handle
12677# things accordingly.
12678#
drh8b727472009-01-19 18:18:40 +000012679{ $as_echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
12680$as_echo_n "checking if executables have the .exe suffix... " >&6; }
drh75897232000-05-29 14:26:00 +000012681if test "$config_BUILD_EXEEXT" = ".exe"; then
12682 CYGWIN=yes
drh8b727472009-01-19 18:18:40 +000012683 { $as_echo "$as_me:$LINENO: result: yes" >&5
12684$as_echo "yes" >&6; }
drh75897232000-05-29 14:26:00 +000012685else
drh8b727472009-01-19 18:18:40 +000012686 { $as_echo "$as_me:$LINENO: result: unknown" >&5
12687$as_echo "unknown" >&6; }
drh75897232000-05-29 14:26:00 +000012688fi
12689if test "$CYGWIN" != "yes"; then
drh8b727472009-01-19 18:18:40 +000012690 { $as_echo "$as_me:$LINENO: checking host system type" >&5
12691$as_echo_n "checking host system type... " >&6; }
12692if test "${ac_cv_host+set}" = set; then
12693 $as_echo_n "(cached) " >&6
12694else
12695 if test "x$host_alias" = x; then
12696 ac_cv_host=$ac_cv_build
12697else
12698 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12699 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12700$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12701 { (exit 1); exit 1; }; }
12702fi
12703
12704fi
12705{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12706$as_echo "$ac_cv_host" >&6; }
12707case $ac_cv_host in
12708*-*-*) ;;
12709*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12710$as_echo "$as_me: error: invalid value of canonical host" >&2;}
12711 { (exit 1); exit 1; }; };;
12712esac
12713host=$ac_cv_host
12714ac_save_IFS=$IFS; IFS='-'
12715set x $ac_cv_host
12716shift
12717host_cpu=$1
12718host_vendor=$2
12719shift; shift
12720# Remember, the first character of IFS is used to create $*,
12721# except with old shells:
12722host_os=$*
12723IFS=$ac_save_IFS
12724case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12725
a.rottmann84e63352003-03-24 09:42:16 +000012726
12727case $host_os in
drh71eb93e2001-09-28 01:34:43 +000012728 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000012729 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000012730esac
drh75897232000-05-29 14:26:00 +000012731
drh75897232000-05-29 14:26:00 +000012732fi
12733if test "$CYGWIN" = "yes"; then
12734 BUILD_EXEEXT=.exe
12735else
dougcurrie6194a5f2003-12-19 20:09:51 +000012736 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000012737fi
vapier7f19c022007-02-17 14:46:31 +000012738if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000012739 TARGET_EXEEXT=$BUILD_EXEEXT
12740else
12741 TARGET_EXEEXT=$config_TARGET_EXEEXT
12742fi
12743if test "$TARGET_EXEEXT" = ".exe"; then
drh60a1e4b2006-06-03 18:02:15 +000012744 if test $OS2_SHELL ; then
danielk197729bafea2008-06-26 10:41:19 +000012745 SQLITE_OS_UNIX=0
12746 SQLITE_OS_WIN=0
12747 SQLITE_OS_OS2=1
12748 CFLAGS="$CFLAGS -DSQLITE_OS_OS2=1"
drh60a1e4b2006-06-03 18:02:15 +000012749 else
danielk197729bafea2008-06-26 10:41:19 +000012750 SQLITE_OS_UNIX=0
12751 SQLITE_OS_WIN=1
12752 SQLITE_OS_OS2=0
danielk197729bafea2008-06-26 10:41:19 +000012753 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh60a1e4b2006-06-03 18:02:15 +000012754 fi
drh75897232000-05-29 14:26:00 +000012755else
danielk197729bafea2008-06-26 10:41:19 +000012756 SQLITE_OS_UNIX=1
12757 SQLITE_OS_WIN=0
12758 SQLITE_OS_OS2=0
danielk197729bafea2008-06-26 10:41:19 +000012759 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000012760fi
drh75897232000-05-29 14:26:00 +000012761
a.rottmann84e63352003-03-24 09:42:16 +000012762
12763
12764
12765
12766
drh75897232000-05-29 14:26:00 +000012767
drh75897232000-05-29 14:26:00 +000012768##########
drh7b5717e2004-11-25 13:50:01 +000012769# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000012770#
drh7b5717e2004-11-25 13:50:01 +000012771# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
12772# macros in the in the tcl.m4 file of the standard TCL distribution.
12773# Those macros could not be used directly since we have to make some
12774# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000012775#
drh8b727472009-01-19 18:18:40 +000012776# Check whether --enable-tcl was given.
drh7b5717e2004-11-25 13:50:01 +000012777if test "${enable_tcl+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012778 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000012779else
drh7b5717e2004-11-25 13:50:01 +000012780 use_tcl=yes
drh8b727472009-01-19 18:18:40 +000012781fi
12782
drh7b5717e2004-11-25 13:50:01 +000012783if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000012784
drh8b727472009-01-19 18:18:40 +000012785# Check whether --with-tcl was given.
drh7b5717e2004-11-25 13:50:01 +000012786if test "${with_tcl+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012787 withval=$with_tcl; with_tclconfig=${withval}
12788fi
12789
12790 { $as_echo "$as_me:$LINENO: checking for Tcl configuration" >&5
12791$as_echo_n "checking for Tcl configuration... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000012792 if test "${ac_cv_c_tclconfig+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012793 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000012794else
a.rottmann84e63352003-03-24 09:42:16 +000012795
drh7b5717e2004-11-25 13:50:01 +000012796 # First check to see if --with-tcl was specified.
12797 if test x"${with_tclconfig}" != x ; then
12798 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12799 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12800 else
drh8b727472009-01-19 18:18:40 +000012801 { { $as_echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
12802$as_echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
xdong28f79f72003-09-23 00:35:21 +000012803 { (exit 1); exit 1; }; }
drh7b5717e2004-11-25 13:50:01 +000012804 fi
12805 fi
vapier6acb2cf2009-01-28 04:46:28 +000012806
12807 # Start autosearch by asking tclsh
12808 if test x"$cross_compiling" = xno; then
12809 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
12810 do
12811 if test -f "$i/tclConfig.sh" ; then
12812 ac_cv_c_tclconfig="$i"
12813 break
12814 fi
12815 done
12816 fi
12817
drh7b5717e2004-11-25 13:50:01 +000012818 # then check for a private Tcl installation
12819 if test x"${ac_cv_c_tclconfig}" = x ; then
12820 for i in \
12821 ../tcl \
12822 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12823 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12824 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12825 ../../tcl \
12826 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12827 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12828 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12829 ../../../tcl \
12830 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12831 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12832 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
12833 do
12834 if test -f "$i/unix/tclConfig.sh" ; then
12835 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12836 break
12837 fi
12838 done
12839 fi
12840
12841 # check in a few common install locations
12842 if test x"${ac_cv_c_tclconfig}" = x ; then
12843 for i in \
12844 `ls -d ${libdir} 2>/dev/null` \
12845 `ls -d /usr/local/lib 2>/dev/null` \
12846 `ls -d /usr/contrib/lib 2>/dev/null` \
12847 `ls -d /usr/lib 2>/dev/null`
12848 do
12849 if test -f "$i/tclConfig.sh" ; then
12850 ac_cv_c_tclconfig=`(cd $i; pwd)`
12851 break
12852 fi
12853 done
12854 fi
12855
12856 # check in a few other private locations
12857 if test x"${ac_cv_c_tclconfig}" = x ; then
12858 for i in \
12859 ${srcdir}/../tcl \
12860 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12861 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12862 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
12863 do
12864 if test -f "$i/unix/tclConfig.sh" ; then
12865 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12866 break
12867 fi
12868 done
12869 fi
12870
drh75897232000-05-29 14:26:00 +000012871fi
12872
drh7b5717e2004-11-25 13:50:01 +000012873
12874 if test x"${ac_cv_c_tclconfig}" = x ; then
12875 use_tcl=no
drh8b727472009-01-19 18:18:40 +000012876 { $as_echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
12877$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
12878 { $as_echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
12879$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
12880 { $as_echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
12881$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000012882 else
12883 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drh8b727472009-01-19 18:18:40 +000012884 { $as_echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
12885$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000012886
drh8b727472009-01-19 18:18:40 +000012887 { $as_echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
12888$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000012889 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drh8b727472009-01-19 18:18:40 +000012890 { $as_echo "$as_me:$LINENO: result: loading" >&5
12891$as_echo "loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000012892 . $TCL_BIN_DIR/tclConfig.sh
12893 else
drh8b727472009-01-19 18:18:40 +000012894 { $as_echo "$as_me:$LINENO: result: file not found" >&5
12895$as_echo "file not found" >&6; }
drh75897232000-05-29 14:26:00 +000012896 fi
drh7b5717e2004-11-25 13:50:01 +000012897
12898 #
12899 # If the TCL_BIN_DIR is the build directory (not the install directory),
12900 # then set the common variable name to the value of the build variables.
12901 # For example, the variable TCL_LIB_SPEC will be set to the value
12902 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12903 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12904 # installed and uninstalled version of Tcl.
12905 #
12906
mlcreechab1c47b2008-03-09 02:51:10 +000012907 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000012908 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
12909 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
12910 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
12911 fi
12912
12913 #
12914 # eval is required to do the TCL_DBGX substitution
12915 #
12916
12917 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12918 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12919 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12920
12921 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12922 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12923 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938 fi
drh75897232000-05-29 14:26:00 +000012939fi
drh7b5717e2004-11-25 13:50:01 +000012940if test "${use_tcl}" = "no" ; then
12941 HAVE_TCL=""
12942else
12943 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000012944fi
drh75897232000-05-29 14:26:00 +000012945
a.rottmann84e63352003-03-24 09:42:16 +000012946
drh75897232000-05-29 14:26:00 +000012947##########
12948# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000012949# that use "readline()" library.
12950#
vapier7f19c022007-02-17 14:46:31 +000012951TARGET_READLINE_LIBS=""
12952TARGET_READLINE_INC=""
12953TARGET_HAVE_READLINE=0
drh8b727472009-01-19 18:18:40 +000012954# Check whether --enable-readline was given.
vapier7f19c022007-02-17 14:46:31 +000012955if test "${enable_readline+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012956 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000012957else
vapier7f19c022007-02-17 14:46:31 +000012958 with_readline=auto
drh8b727472009-01-19 18:18:40 +000012959fi
12960
vapier7f19c022007-02-17 14:46:31 +000012961
12962if test x"$with_readline" != xno; then
12963 found="yes"
12964
12965
drh8b727472009-01-19 18:18:40 +000012966# Check whether --with-readline-lib was given.
vapier7f19c022007-02-17 14:46:31 +000012967if test "${with_readline_lib+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012968 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000012969else
12970 with_readline_lib="auto"
drh8b727472009-01-19 18:18:40 +000012971fi
12972
vapier7f19c022007-02-17 14:46:31 +000012973 if test "x$with_readline_lib" = xauto; then
12974 save_LIBS="$LIBS"
12975 LIBS=""
drh8b727472009-01-19 18:18:40 +000012976 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
12977$as_echo_n "checking for library containing tgetent... " >&6; }
paul38372372003-04-22 08:04:49 +000012978if test "${ac_cv_search_tgetent+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012979 $as_echo_n "(cached) " >&6
drh75897232000-05-29 14:26:00 +000012980else
drh71eb93e2001-09-28 01:34:43 +000012981 ac_func_search_save_LIBS=$LIBS
paul38372372003-04-22 08:04:49 +000012982cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000012983/* confdefs.h. */
12984_ACEOF
12985cat confdefs.h >>conftest.$ac_ext
12986cat >>conftest.$ac_ext <<_ACEOF
12987/* end confdefs.h. */
12988
drh8b727472009-01-19 18:18:40 +000012989/* Override any GCC internal prototype to avoid an error.
12990 Use char because int might match the return type of a GCC
12991 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000012992#ifdef __cplusplus
12993extern "C"
12994#endif
paul38372372003-04-22 08:04:49 +000012995char tgetent ();
12996int
12997main ()
12998{
drh8b727472009-01-19 18:18:40 +000012999return tgetent ();
paul38372372003-04-22 08:04:49 +000013000 ;
13001 return 0;
13002}
13003_ACEOF
drh8b727472009-01-19 18:18:40 +000013004for ac_lib in '' readline ncurses curses termcap; do
13005 if test -z "$ac_lib"; then
13006 ac_res="none required"
13007 else
13008 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000013009 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000013010 fi
13011 rm -f conftest.$ac_objext conftest$ac_exeext
13012if { (ac_try="$ac_link"
13013case "(($ac_try" in
13014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015 *) ac_try_echo=$ac_try;;
13016esac
13017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13018$as_echo "$ac_try_echo") >&5
13019 (eval "$ac_link") 2>conftest.er1
drh866108f2008-05-13 00:57:21 +000013020 ac_status=$?
13021 grep -v '^ *+' conftest.er1 >conftest.err
13022 rm -f conftest.er1
13023 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000013024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); } && {
13026 test -z "$ac_c_werror_flag" ||
13027 test ! -s conftest.err
13028 } && test -s conftest$ac_exeext && {
13029 test "$cross_compiling" = yes ||
13030 $as_test_x conftest$ac_exeext
13031 }; then
13032 ac_cv_search_tgetent=$ac_res
mlcreech94984912008-03-04 19:03:08 +000013033else
drh8b727472009-01-19 18:18:40 +000013034 $as_echo "$as_me: failed program was:" >&5
drh866108f2008-05-13 00:57:21 +000013035sed 's/^/| /' conftest.$ac_ext >&5
13036
drh8b727472009-01-19 18:18:40 +000013037
mlcreech94984912008-03-04 19:03:08 +000013038fi
drh8b727472009-01-19 18:18:40 +000013039
13040rm -rf conftest.dSYM
13041rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13042 conftest$ac_exeext
13043 if test "${ac_cv_search_tgetent+set}" = set; then
13044 break
drh866108f2008-05-13 00:57:21 +000013045fi
drh8b727472009-01-19 18:18:40 +000013046done
13047if test "${ac_cv_search_tgetent+set}" = set; then
13048 :
13049else
13050 ac_cv_search_tgetent=no
13051fi
13052rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000013053LIBS=$ac_func_search_save_LIBS
13054fi
drh8b727472009-01-19 18:18:40 +000013055{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
13056$as_echo "$ac_cv_search_tgetent" >&6; }
13057ac_res=$ac_cv_search_tgetent
13058if test "$ac_res" != no; then
13059 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000013060 term_LIBS="$LIBS"
13061else
13062 term_LIBS=""
paul38372372003-04-22 08:04:49 +000013063fi
13064
drh8b727472009-01-19 18:18:40 +000013065 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
13066$as_echo_n "checking for readline in -lreadline... " >&6; }
paul38372372003-04-22 08:04:49 +000013067if test "${ac_cv_lib_readline_readline+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013068 $as_echo_n "(cached) " >&6
paul38372372003-04-22 08:04:49 +000013069else
13070 ac_check_lib_save_LIBS=$LIBS
13071LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +000013072cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000013073/* confdefs.h. */
13074_ACEOF
13075cat confdefs.h >>conftest.$ac_ext
13076cat >>conftest.$ac_ext <<_ACEOF
13077/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000013078
drh8b727472009-01-19 18:18:40 +000013079/* Override any GCC internal prototype to avoid an error.
13080 Use char because int might match the return type of a GCC
13081 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000013082#ifdef __cplusplus
13083extern "C"
13084#endif
drh71eb93e2001-09-28 01:34:43 +000013085char readline ();
13086int
13087main ()
13088{
drh8b727472009-01-19 18:18:40 +000013089return readline ();
drh71eb93e2001-09-28 01:34:43 +000013090 ;
13091 return 0;
13092}
13093_ACEOF
13094rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +000013095if { (ac_try="$ac_link"
13096case "(($ac_try" in
13097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098 *) ac_try_echo=$ac_try;;
13099esac
13100eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13101$as_echo "$ac_try_echo") >&5
13102 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000013103 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000013104 grep -v '^ *+' conftest.er1 >conftest.err
13105 rm -f conftest.er1
13106 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000013107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); } && {
13109 test -z "$ac_c_werror_flag" ||
13110 test ! -s conftest.err
13111 } && test -s conftest$ac_exeext && {
13112 test "$cross_compiling" = yes ||
13113 $as_test_x conftest$ac_exeext
13114 }; then
paul38372372003-04-22 08:04:49 +000013115 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000013116else
drh8b727472009-01-19 18:18:40 +000013117 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000013118sed 's/^/| /' conftest.$ac_ext >&5
13119
drh8b727472009-01-19 18:18:40 +000013120 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000013121fi
drh8b727472009-01-19 18:18:40 +000013122
13123rm -rf conftest.dSYM
13124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +000013125 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000013126LIBS=$ac_check_lib_save_LIBS
13127fi
drh8b727472009-01-19 18:18:40 +000013128{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13129$as_echo "$ac_cv_lib_readline_readline" >&6; }
drh934c5442009-04-13 09:09:24 +000013130if test $ac_cv_lib_readline_readline = yes; then
vapier7f19c022007-02-17 14:46:31 +000013131 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000013132else
vapier7f19c022007-02-17 14:46:31 +000013133 found="no"
13134fi
drhf1878b42006-01-23 18:06:52 +000013135
vapier7f19c022007-02-17 14:46:31 +000013136 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
13137 LIBS="$save_LIBS"
13138 else
13139 TARGET_READLINE_LIBS="$with_readline_lib"
13140 fi
13141
13142
drh8b727472009-01-19 18:18:40 +000013143# Check whether --with-readline-inc was given.
vapier7f19c022007-02-17 14:46:31 +000013144if test "${with_readline_inc+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013145 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000013146else
vapier7f19c022007-02-17 14:46:31 +000013147 with_readline_inc="auto"
drh8b727472009-01-19 18:18:40 +000013148fi
13149
vapier7f19c022007-02-17 14:46:31 +000013150 if test "x$with_readline_inc" = xauto; then
13151 if test "${ac_cv_header_readline_h+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013152 { $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13153$as_echo_n "checking for readline.h... " >&6; }
drh71eb93e2001-09-28 01:34:43 +000013154if test "${ac_cv_header_readline_h+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013155 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000013156fi
drh8b727472009-01-19 18:18:40 +000013157{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13158$as_echo "$ac_cv_header_readline_h" >&6; }
drh75897232000-05-29 14:26:00 +000013159else
a.rottmann84e63352003-03-24 09:42:16 +000013160 # Is the header compilable?
drh8b727472009-01-19 18:18:40 +000013161{ $as_echo "$as_me:$LINENO: checking readline.h usability" >&5
13162$as_echo_n "checking readline.h usability... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013163cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000013164/* confdefs.h. */
13165_ACEOF
13166cat confdefs.h >>conftest.$ac_ext
13167cat >>conftest.$ac_ext <<_ACEOF
13168/* end confdefs.h. */
13169$ac_includes_default
drh75897232000-05-29 14:26:00 +000013170#include <readline.h>
drh71eb93e2001-09-28 01:34:43 +000013171_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000013172rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000013173if { (ac_try="$ac_compile"
13174case "(($ac_try" in
13175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13176 *) ac_try_echo=$ac_try;;
13177esac
13178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13179$as_echo "$ac_try_echo") >&5
13180 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000013181 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000013182 grep -v '^ *+' conftest.er1 >conftest.err
13183 rm -f conftest.er1
13184 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000013185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); } && {
13187 test -z "$ac_c_werror_flag" ||
13188 test ! -s conftest.err
13189 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +000013190 ac_header_compiler=yes
13191else
drh8b727472009-01-19 18:18:40 +000013192 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000013193sed 's/^/| /' conftest.$ac_ext >&5
13194
drh8b727472009-01-19 18:18:40 +000013195 ac_header_compiler=no
a.rottmann84e63352003-03-24 09:42:16 +000013196fi
drh8b727472009-01-19 18:18:40 +000013197
13198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13199{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13200$as_echo "$ac_header_compiler" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013201
13202# Is the header present?
drh8b727472009-01-19 18:18:40 +000013203{ $as_echo "$as_me:$LINENO: checking readline.h presence" >&5
13204$as_echo_n "checking readline.h presence... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013205cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000013206/* confdefs.h. */
13207_ACEOF
13208cat confdefs.h >>conftest.$ac_ext
13209cat >>conftest.$ac_ext <<_ACEOF
13210/* end confdefs.h. */
13211#include <readline.h>
13212_ACEOF
drh8b727472009-01-19 18:18:40 +000013213if { (ac_try="$ac_cpp conftest.$ac_ext"
13214case "(($ac_try" in
13215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13216 *) ac_try_echo=$ac_try;;
13217esac
13218eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13219$as_echo "$ac_try_echo") >&5
13220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000013221 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000013222 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +000013223 rm -f conftest.er1
13224 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000013225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); } >/dev/null && {
13227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13228 test ! -s conftest.err
13229 }; then
a.rottmann84e63352003-03-24 09:42:16 +000013230 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +000013231else
drh8b727472009-01-19 18:18:40 +000013232 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000013233sed 's/^/| /' conftest.$ac_ext >&5
13234
13235 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +000013236fi
drh8b727472009-01-19 18:18:40 +000013237
drh71eb93e2001-09-28 01:34:43 +000013238rm -f conftest.err conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +000013239{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13240$as_echo "$ac_header_preproc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013241
13242# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +000013243case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13244 yes:no: )
drh8b727472009-01-19 18:18:40 +000013245 { $as_echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13246$as_echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13247 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
13248$as_echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000013249 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +000013250 ;;
a.rottmann964dbb12004-02-26 19:47:42 +000013251 no:yes:* )
drh8b727472009-01-19 18:18:40 +000013252 { $as_echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
13253$as_echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
13254 { $as_echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
13255$as_echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
13256 { $as_echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
13257$as_echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
13258 { $as_echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
13259$as_echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13260 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
13261$as_echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
13262 { $as_echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
13263$as_echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
13264
a.rottmann84e63352003-03-24 09:42:16 +000013265 ;;
13266esac
drh8b727472009-01-19 18:18:40 +000013267{ $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13268$as_echo_n "checking for readline.h... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013269if test "${ac_cv_header_readline_h+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013270 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000013271else
13272 ac_cv_header_readline_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +000013273fi
drh8b727472009-01-19 18:18:40 +000013274{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13275$as_echo "$ac_cv_header_readline_h" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013276
13277fi
drh934c5442009-04-13 09:09:24 +000013278if test $ac_cv_header_readline_h = yes; then
vapier7f19c022007-02-17 14:46:31 +000013279 found="yes"
13280else
drh75897232000-05-29 14:26:00 +000013281
vapier7f19c022007-02-17 14:46:31 +000013282 found="no"
13283 if test "$cross_compiling" != yes; then
13284 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
13285 for subdir in include include/readline; do
drh8b727472009-01-19 18:18:40 +000013286 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
13287{ $as_echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5
13288$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
13289if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
13290 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000013291else
13292 test "$cross_compiling" = yes &&
drh8b727472009-01-19 18:18:40 +000013293 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
13294$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
xdong28f79f72003-09-23 00:35:21 +000013295 { (exit 1); exit 1; }; }
vapier7f19c022007-02-17 14:46:31 +000013296if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000013297 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000013298else
drh71eb93e2001-09-28 01:34:43 +000013299 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000013300fi
13301fi
drh8b727472009-01-19 18:18:40 +000013302ac_res=`eval 'as_val=${'$as_ac_File'}
13303 $as_echo "$as_val"'`
13304 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13305$as_echo "$ac_res" >&6; }
drh934c5442009-04-13 09:09:24 +000013306if test `eval 'as_val=${'$as_ac_File'}
13307 $as_echo "$as_val"'` = yes; then
drh75897232000-05-29 14:26:00 +000013308 found=yes
drh75897232000-05-29 14:26:00 +000013309fi
13310
vapier7f19c022007-02-17 14:46:31 +000013311 if test "$found" = "yes"; then
13312 TARGET_READLINE_INC="-I$dir/$subdir"
13313 break
13314 fi
13315 done
13316 test "$found" = "yes" && break
13317 done
13318 fi
13319
13320fi
13321
13322
13323 else
13324 TARGET_READLINE_INC="$with_readline_inc"
13325 fi
13326
13327 if test x"$found" = xno; then
13328 TARGET_READLINE_LIBS=""
13329 TARGET_READLINE_INC=""
13330 TARGET_HAVE_READLINE=0
13331 else
13332 TARGET_HAVE_READLINE=1
13333 fi
13334fi
13335
13336
13337
13338
13339
13340##########
13341# Figure out what C libraries are required to compile programs
13342# that use "fdatasync()" function.
13343#
drh8b727472009-01-19 18:18:40 +000013344{ $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
13345$as_echo_n "checking for library containing fdatasync... " >&6; }
vapier7f19c022007-02-17 14:46:31 +000013346if test "${ac_cv_search_fdatasync+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013347 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000013348else
vapier7f19c022007-02-17 14:46:31 +000013349 ac_func_search_save_LIBS=$LIBS
13350cat >conftest.$ac_ext <<_ACEOF
13351/* confdefs.h. */
13352_ACEOF
13353cat confdefs.h >>conftest.$ac_ext
13354cat >>conftest.$ac_ext <<_ACEOF
13355/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000013356
drh8b727472009-01-19 18:18:40 +000013357/* Override any GCC internal prototype to avoid an error.
13358 Use char because int might match the return type of a GCC
13359 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000013360#ifdef __cplusplus
13361extern "C"
13362#endif
13363char fdatasync ();
13364int
13365main ()
13366{
drh8b727472009-01-19 18:18:40 +000013367return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000013368 ;
13369 return 0;
13370}
13371_ACEOF
drh8b727472009-01-19 18:18:40 +000013372for ac_lib in '' rt; do
13373 if test -z "$ac_lib"; then
13374 ac_res="none required"
13375 else
13376 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000013377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000013378 fi
13379 rm -f conftest.$ac_objext conftest$ac_exeext
13380if { (ac_try="$ac_link"
13381case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13384esac
13385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13386$as_echo "$ac_try_echo") >&5
13387 (eval "$ac_link") 2>conftest.er1
drh866108f2008-05-13 00:57:21 +000013388 ac_status=$?
13389 grep -v '^ *+' conftest.er1 >conftest.err
13390 rm -f conftest.er1
13391 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000013392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } && {
13394 test -z "$ac_c_werror_flag" ||
13395 test ! -s conftest.err
13396 } && test -s conftest$ac_exeext && {
13397 test "$cross_compiling" = yes ||
13398 $as_test_x conftest$ac_exeext
13399 }; then
13400 ac_cv_search_fdatasync=$ac_res
mlcreech94984912008-03-04 19:03:08 +000013401else
drh8b727472009-01-19 18:18:40 +000013402 $as_echo "$as_me: failed program was:" >&5
drh866108f2008-05-13 00:57:21 +000013403sed 's/^/| /' conftest.$ac_ext >&5
13404
drh8b727472009-01-19 18:18:40 +000013405
mlcreech94984912008-03-04 19:03:08 +000013406fi
drh8b727472009-01-19 18:18:40 +000013407
13408rm -rf conftest.dSYM
13409rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13410 conftest$ac_exeext
13411 if test "${ac_cv_search_fdatasync+set}" = set; then
13412 break
drh866108f2008-05-13 00:57:21 +000013413fi
drh8b727472009-01-19 18:18:40 +000013414done
13415if test "${ac_cv_search_fdatasync+set}" = set; then
13416 :
13417else
13418 ac_cv_search_fdatasync=no
13419fi
13420rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000013421LIBS=$ac_func_search_save_LIBS
13422fi
drh8b727472009-01-19 18:18:40 +000013423{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
13424$as_echo "$ac_cv_search_fdatasync" >&6; }
13425ac_res=$ac_cv_search_fdatasync
13426if test "$ac_res" != no; then
13427 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000013428
vapier7f19c022007-02-17 14:46:31 +000013429fi
13430
a.rottmann84e63352003-03-24 09:42:16 +000013431
drh75897232000-05-29 14:26:00 +000013432#########
tpoindex9d9f76c2005-01-03 21:28:56 +000013433# check for debug enabled
drh8b727472009-01-19 18:18:40 +000013434# Check whether --enable-debug was given.
tpoindex9d9f76c2005-01-03 21:28:56 +000013435if test "${enable_debug+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013436 enableval=$enable_debug; use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000013437else
13438 use_debug=no
drh8b727472009-01-19 18:18:40 +000013439fi
13440
tpoindex9d9f76c2005-01-03 21:28:56 +000013441if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000013442 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000013443else
13444 TARGET_DEBUG="-DNDEBUG"
13445fi
13446
13447
13448#########
mlcreech94984912008-03-04 19:03:08 +000013449# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000013450# Check whether --enable-amalgamation was given.
mlcreech94984912008-03-04 19:03:08 +000013451if test "${enable_amalgamation+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013452 enableval=$enable_amalgamation; use_amalgamation=$enableval
mlcreech94984912008-03-04 19:03:08 +000013453else
13454 use_amalgamation=yes
drh8b727472009-01-19 18:18:40 +000013455fi
13456
mlcreechf3868112008-03-11 18:03:30 +000013457if test "${use_amalgamation}" != "yes" ; then
mlcreech94984912008-03-04 19:03:08 +000013458 USE_AMALGAMATION=0
13459fi
13460
13461
13462#########
mlcreecha4edab02008-03-06 04:14:17 +000013463# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000013464# Check whether --enable-load-extension was given.
mlcreecha4edab02008-03-06 04:14:17 +000013465if test "${enable_load_extension+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013466 enableval=$enable_load_extension; use_loadextension=$enableval
mlcreecha4edab02008-03-06 04:14:17 +000013467else
13468 use_loadextension=no
drh8b727472009-01-19 18:18:40 +000013469fi
13470
mlcreecha4edab02008-03-06 04:14:17 +000013471if test "${use_loadextension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000013472 OPT_FEATURE_FLAGS=""
mlcreecha4edab02008-03-06 04:14:17 +000013473else
shanefbedede2008-07-22 05:05:01 +000013474 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000013475fi
13476
mlcreechaac7b932008-04-01 02:45:22 +000013477#########
shaneb1cd7302008-10-22 18:27:31 +000013478# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013479for option in $CFLAGS $CPPFLAGS
13480do
13481 case $option in
danielk197733a14782008-08-04 14:50:05 +000013482 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000013483 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013484 esac
13485done
13486
13487
danielk197733a14782008-08-04 14:50:05 +000013488
shaneb1cd7302008-10-22 18:27:31 +000013489# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013490ac_temp_CFLAGS=""
13491for option in $CFLAGS
13492do
13493 case $option in
13494 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000013495 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000013496 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013497 esac
13498done
13499CFLAGS=$ac_temp_CFLAGS
13500
13501
shaneb1cd7302008-10-22 18:27:31 +000013502# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013503ac_temp_CPPFLAGS=""
13504for option in $CPPFLAGS
13505do
13506 case $option in
13507 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000013508 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000013509 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013510 esac
13511done
13512CPPFLAGS=$ac_temp_CPPFLAGS
13513
danielk197733a14782008-08-04 14:50:05 +000013514
drh8b727472009-01-19 18:18:40 +000013515# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013516ac_temp_BUILD_CFLAGS=""
13517for option in $BUILD_CFLAGS
13518do
13519 case $option in
13520 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000013521 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000013522 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013523 esac
13524done
13525BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
13526
13527
13528#########
13529# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000013530# Check whether --enable-gcov was given.
mlcreechaac7b932008-04-01 02:45:22 +000013531if test "${enable_gcov+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013532 enableval=$enable_gcov; use_gcov=$enableval
mlcreechaac7b932008-04-01 02:45:22 +000013533else
13534 use_gcov=no
drh8b727472009-01-19 18:18:40 +000013535fi
13536
mlcreechaac7b932008-04-01 02:45:22 +000013537if test "${use_gcov}" = "yes" ; then
13538 USE_GCOV=1
13539else
13540 USE_GCOV=0
13541fi
13542
13543
danielk197733a14782008-08-04 14:50:05 +000013544
drh2dfbbca2000-07-28 14:32:48 +000013545#########
mlcreechb87057f2008-03-06 07:19:20 +000013546# Output the config header
drh8b727472009-01-19 18:18:40 +000013547ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000013548
13549
13550#########
drh75897232000-05-29 14:26:00 +000013551# Generate the output files.
13552#
mlcreechdf59c7c2008-03-06 07:51:15 +000013553
drh8b727472009-01-19 18:18:40 +000013554ac_config_files="$ac_config_files Makefile sqlite3.pc"
13555
drh71eb93e2001-09-28 01:34:43 +000013556cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000013557# This file is a shell script that caches the results of configure
13558# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000013559# scripts and configure runs, see configure's option --config-cache.
13560# It is not useful on other systems. If it contains results you don't
13561# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000013562#
drh71eb93e2001-09-28 01:34:43 +000013563# config.status only pays attention to the cache file if you give it
13564# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000013565#
a.rottmann84e63352003-03-24 09:42:16 +000013566# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000013567# loading this file, other *unset* `ac_cv_foo' will be assigned the
13568# following values.
13569
13570_ACEOF
13571
drh75897232000-05-29 14:26:00 +000013572# The following way of writing the cache mishandles newlines in values,
13573# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000013574# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000013575# Ultrix sh set writes to stderr and can't be redirected directly,
13576# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000013577(
13578 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13579 eval ac_val=\$$ac_var
13580 case $ac_val in #(
13581 *${as_nl}*)
13582 case $ac_var in #(
drh934c5442009-04-13 09:09:24 +000013583 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13584$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
drh8b727472009-01-19 18:18:40 +000013585 esac
13586 case $ac_var in #(
13587 _ | IFS | as_nl) ;; #(
13588 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13589 *) $as_unset $ac_var ;;
13590 esac ;;
13591 esac
13592 done
13593
drh71eb93e2001-09-28 01:34:43 +000013594 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000013595 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13596 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +000013597 # `set' does not quote correctly, so add quotes (double-quote
13598 # substitution turns \\\\ into \\, and sed turns \\ into \).
13599 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000013600 "s/'/'\\\\''/g;
13601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000013602 ;; #(
drh71eb93e2001-09-28 01:34:43 +000013603 *)
13604 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000013605 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000013606 ;;
drh8b727472009-01-19 18:18:40 +000013607 esac |
13608 sort
13609) |
drh71eb93e2001-09-28 01:34:43 +000013610 sed '
drh8b727472009-01-19 18:18:40 +000013611 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000013612 t clear
drh8b727472009-01-19 18:18:40 +000013613 :clear
drh71eb93e2001-09-28 01:34:43 +000013614 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13615 t end
drh8b727472009-01-19 18:18:40 +000013616 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13617 :end' >>confcache
13618if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13619 if test -w "$cache_file"; then
13620 test "x$cache_file" != "x/dev/null" &&
13621 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13622$as_echo "$as_me: updating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +000013623 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +000013624 else
drh8b727472009-01-19 18:18:40 +000013625 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13626$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000013627 fi
13628fi
13629rm -f confcache
13630
drh75897232000-05-29 14:26:00 +000013631test "x$prefix" = xNONE && prefix=$ac_default_prefix
13632# Let make expand exec_prefix.
13633test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13634
mlcreechb87057f2008-03-06 07:19:20 +000013635DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000013636
13637ac_libobjs=
13638ac_ltlibobjs=
13639for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13640 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000013641 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13642 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13643 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13644 # will be set to the directory where LIBOBJS objects are built.
13645 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13646 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000013647done
13648LIBOBJS=$ac_libobjs
13649
13650LTLIBOBJS=$ac_ltlibobjs
13651
13652
13653
drh75897232000-05-29 14:26:00 +000013654: ${CONFIG_STATUS=./config.status}
drh8b727472009-01-19 18:18:40 +000013655ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000013656ac_clean_files_save=$ac_clean_files
13657ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drh8b727472009-01-19 18:18:40 +000013658{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13659$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13660cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013661#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000013662# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000013663# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000013664# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000013665# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000013666
drh71eb93e2001-09-28 01:34:43 +000013667debug=false
a.rottmann84e63352003-03-24 09:42:16 +000013668ac_cs_recheck=false
13669ac_cs_silent=false
drh71eb93e2001-09-28 01:34:43 +000013670SHELL=\${CONFIG_SHELL-$SHELL}
drh71eb93e2001-09-28 01:34:43 +000013671_ACEOF
drh75897232000-05-29 14:26:00 +000013672
drh8b727472009-01-19 18:18:40 +000013673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000013674## --------------------- ##
13675## M4sh Initialization. ##
13676## --------------------- ##
13677
drh8b727472009-01-19 18:18:40 +000013678# Be more Bourne compatible
13679DUALCASE=1; export DUALCASE # for MKS sh
drh71eb93e2001-09-28 01:34:43 +000013680if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13681 emulate sh
13682 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000013683 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000013684 # is contrary to our usage. Disable this feature.
13685 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000013686 setopt NO_GLOB_SUBST
13687else
13688 case `(set -o) 2>/dev/null` in
13689 *posix*) set -o posix ;;
13690esac
13691
a.rottmann84e63352003-03-24 09:42:16 +000013692fi
drh8b727472009-01-19 18:18:40 +000013693
13694
13695
13696
13697# PATH needs CR
13698# Avoid depending upon Character Ranges.
13699as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13700as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13701as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13702as_cr_digits='0123456789'
13703as_cr_alnum=$as_cr_Letters$as_cr_digits
13704
13705as_nl='
13706'
13707export as_nl
13708# Printing a long string crashes Solaris 7 /usr/bin/printf.
13709as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13710as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13711as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13712if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13713 as_echo='printf %s\n'
13714 as_echo_n='printf %s'
13715else
13716 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13717 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13718 as_echo_n='/usr/ucb/echo -n'
13719 else
13720 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13721 as_echo_n_body='eval
13722 arg=$1;
13723 case $arg in
13724 *"$as_nl"*)
13725 expr "X$arg" : "X\\(.*\\)$as_nl";
13726 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13727 esac;
13728 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13729 '
13730 export as_echo_n_body
13731 as_echo_n='sh -c $as_echo_n_body as_echo'
13732 fi
13733 export as_echo_body
13734 as_echo='sh -c $as_echo_body as_echo'
13735fi
13736
13737# The user is always right.
13738if test "${PATH_SEPARATOR+set}" != set; then
13739 PATH_SEPARATOR=:
13740 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13741 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13742 PATH_SEPARATOR=';'
13743 }
13744fi
a.rottmann84e63352003-03-24 09:42:16 +000013745
mlcreech94984912008-03-04 19:03:08 +000013746# Support unset when possible.
13747if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13748 as_unset=unset
13749else
13750 as_unset=false
13751fi
a.rottmann84e63352003-03-24 09:42:16 +000013752
mlcreech94984912008-03-04 19:03:08 +000013753
drh8b727472009-01-19 18:18:40 +000013754# IFS
13755# We need space, tab and new line, in precisely that order. Quoting is
13756# there to prevent editors from complaining about space-tab.
13757# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13758# splitting by setting IFS to empty value.)
13759IFS=" "" $as_nl"
13760
13761# Find who we are. Look in the path if we contain no directory separator.
13762case $0 in
13763 *[\\/]* ) as_myself=$0 ;;
13764 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13765for as_dir in $PATH
13766do
13767 IFS=$as_save_IFS
13768 test -z "$as_dir" && as_dir=.
13769 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13770done
13771IFS=$as_save_IFS
13772
13773 ;;
13774esac
13775# We did not find ourselves, most probably we were run as `sh COMMAND'
13776# in which case we are not to be found in the path.
13777if test "x$as_myself" = x; then
13778 as_myself=$0
13779fi
13780if test ! -f "$as_myself"; then
13781 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13782 { (exit 1); exit 1; }
13783fi
13784
mlcreech94984912008-03-04 19:03:08 +000013785# Work around bugs in pre-3.0 UWIN ksh.
drh8b727472009-01-19 18:18:40 +000013786for as_var in ENV MAIL MAILPATH
13787do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13788done
mlcreech94984912008-03-04 19:03:08 +000013789PS1='$ '
13790PS2='> '
13791PS4='+ '
13792
13793# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000013794LC_ALL=C
13795export LC_ALL
13796LANGUAGE=C
13797export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000013798
13799# Required to use basename.
drh8b727472009-01-19 18:18:40 +000013800if expr a : '\(a\)' >/dev/null 2>&1 &&
13801 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000013802 as_expr=expr
13803else
13804 as_expr=false
13805fi
13806
drh8b727472009-01-19 18:18:40 +000013807if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000013808 as_basename=basename
13809else
13810 as_basename=false
13811fi
13812
13813
13814# Name of the executable.
drh8b727472009-01-19 18:18:40 +000013815as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000013816$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13817 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000013818 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13819$as_echo X/"$0" |
13820 sed '/^.*\/\([^/][^/]*\)\/*$/{
13821 s//\1/
13822 q
13823 }
13824 /^X\/\(\/\/\)$/{
13825 s//\1/
13826 q
13827 }
13828 /^X\/\(\/\).*/{
13829 s//\1/
13830 q
13831 }
13832 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000013833
drh8b727472009-01-19 18:18:40 +000013834# CDPATH.
13835$as_unset CDPATH
mlcreech94984912008-03-04 19:03:08 +000013836
13837
13838
a.rottmann84e63352003-03-24 09:42:16 +000013839 as_lineno_1=$LINENO
13840 as_lineno_2=$LINENO
a.rottmann84e63352003-03-24 09:42:16 +000013841 test "x$as_lineno_1" != "x$as_lineno_2" &&
drh8b727472009-01-19 18:18:40 +000013842 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
a.rottmann84e63352003-03-24 09:42:16 +000013843
13844 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13845 # uniformly replaced by the line number. The first 'sed' inserts a
drh8b727472009-01-19 18:18:40 +000013846 # line-number line after each line using $LINENO; the second 'sed'
13847 # does the real work. The second script uses 'N' to pair each
13848 # line-number line with the line containing $LINENO, and appends
13849 # trailing '-' during substitution so that $LINENO is not a special
13850 # case at line end.
a.rottmann84e63352003-03-24 09:42:16 +000013851 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
drh8b727472009-01-19 18:18:40 +000013852 # scripts with optimization help from Paolo Bonzini. Blame Lee
13853 # E. McMahon (1931-1989) for sed's syntax. :-)
13854 sed -n '
13855 p
13856 /[$]LINENO/=
13857 ' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +000013858 sed '
drh8b727472009-01-19 18:18:40 +000013859 s/[$]LINENO.*/&-/
13860 t lineno
13861 b
13862 :lineno
a.rottmann84e63352003-03-24 09:42:16 +000013863 N
drh8b727472009-01-19 18:18:40 +000013864 :loop
13865 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a.rottmann84e63352003-03-24 09:42:16 +000013866 t loop
drh8b727472009-01-19 18:18:40 +000013867 s/-\n.*//
a.rottmann84e63352003-03-24 09:42:16 +000013868 ' >$as_me.lineno &&
drh8b727472009-01-19 18:18:40 +000013869 chmod +x "$as_me.lineno" ||
13870 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
a.rottmann84e63352003-03-24 09:42:16 +000013871 { (exit 1); exit 1; }; }
13872
13873 # Don't try to exec as it changes $[0], causing all sort of problems
13874 # (the dirname of $[0] is not the place where we might find the
drh8b727472009-01-19 18:18:40 +000013875 # original and so on. Autoconf is especially sensitive to this).
13876 . "./$as_me.lineno"
a.rottmann84e63352003-03-24 09:42:16 +000013877 # Exit status is that of the last command.
13878 exit
13879}
13880
13881
drh8b727472009-01-19 18:18:40 +000013882if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13883 as_dirname=dirname
13884else
13885 as_dirname=false
13886fi
drh866108f2008-05-13 00:57:21 +000013887
drh8b727472009-01-19 18:18:40 +000013888ECHO_C= ECHO_N= ECHO_T=
13889case `echo -n x` in
13890-n*)
13891 case `echo 'x\c'` in
13892 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13893 *) ECHO_C='\c';;
13894 esac;;
13895*)
13896 ECHO_N='-n';;
13897esac
13898if expr a : '\(a\)' >/dev/null 2>&1 &&
13899 test "X`expr 00001 : '.*\(...\)'`" = X001; then
drh71eb93e2001-09-28 01:34:43 +000013900 as_expr=expr
13901else
13902 as_expr=false
13903fi
13904
13905rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000013906if test -d conf$$.dir; then
13907 rm -f conf$$.dir/conf$$.file
13908else
13909 rm -f conf$$.dir
13910 mkdir conf$$.dir 2>/dev/null
13911fi
13912if (echo >conf$$.file) 2>/dev/null; then
13913 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000013914 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000013915 # ... but there are two gotchas:
13916 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13917 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13918 # In both cases, we have to default to `cp -p'.
13919 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13920 as_ln_s='cp -p'
13921 elif ln conf$$.file conf$$ 2>/dev/null; then
13922 as_ln_s=ln
13923 else
13924 as_ln_s='cp -p'
mlcreech636a9952008-05-05 22:52:56 +000013925 fi
drh71eb93e2001-09-28 01:34:43 +000013926else
13927 as_ln_s='cp -p'
13928fi
drh8b727472009-01-19 18:18:40 +000013929rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13930rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000013931
a.rottmann84e63352003-03-24 09:42:16 +000013932if mkdir -p . 2>/dev/null; then
13933 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +000013934else
a.rottmann964dbb12004-02-26 19:47:42 +000013935 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000013936 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000013937fi
13938
drh8b727472009-01-19 18:18:40 +000013939if test -x / >/dev/null 2>&1; then
13940 as_test_x='test -x'
13941else
13942 if ls -dL / >/dev/null 2>&1; then
13943 as_ls_L_option=L
13944 else
13945 as_ls_L_option=
13946 fi
13947 as_test_x='
13948 eval sh -c '\''
13949 if test -d "$1"; then
13950 test -d "$1/.";
13951 else
13952 case $1 in
13953 -*)set "./$1";;
13954 esac;
13955 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13956 ???[sx]*):;;*)false;;esac;fi
13957 '\'' sh
13958 '
13959fi
13960as_executable_p=$as_test_x
a.rottmann84e63352003-03-24 09:42:16 +000013961
13962# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000013963as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000013964
13965# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000013966as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000013967
drh71eb93e2001-09-28 01:34:43 +000013968
drh71eb93e2001-09-28 01:34:43 +000013969exec 6>&1
13970
drh8b727472009-01-19 18:18:40 +000013971# Save the log message, to keep $[0] and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000013972# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000013973# values after options handling.
13974ac_log="
drhbc7a22d2009-10-13 22:47:13 +000013975This file was extended by sqlite $as_me 3.6.19, which was
drh934c5442009-04-13 09:09:24 +000013976generated by GNU Autoconf 2.62. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000013977
13978 CONFIG_FILES = $CONFIG_FILES
13979 CONFIG_HEADERS = $CONFIG_HEADERS
13980 CONFIG_LINKS = $CONFIG_LINKS
13981 CONFIG_COMMANDS = $CONFIG_COMMANDS
13982 $ $0 $@
13983
drh8b727472009-01-19 18:18:40 +000013984on `(hostname || uname -n) 2>/dev/null | sed 1q`
13985"
13986
drh71eb93e2001-09-28 01:34:43 +000013987_ACEOF
13988
drh8b727472009-01-19 18:18:40 +000013989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013990# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000013991config_files="$ac_config_files"
13992config_headers="$ac_config_headers"
13993config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000013994
drh8b727472009-01-19 18:18:40 +000013995_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013996
drh8b727472009-01-19 18:18:40 +000013997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013998ac_cs_usage="\
13999\`$as_me' instantiates files from templates according to the
14000current configuration.
14001
drh934c5442009-04-13 09:09:24 +000014002Usage: $0 [OPTIONS] [FILE]...
drh71eb93e2001-09-28 01:34:43 +000014003
14004 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000014005 -V, --version print version number and configuration settings, then exit
drh934c5442009-04-13 09:09:24 +000014006 -q, --quiet do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000014007 -d, --debug don't remove temporary files
14008 --recheck update $as_me by reconfiguring in the same conditions
drh934c5442009-04-13 09:09:24 +000014009 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000014010 instantiate the configuration file FILE
drh934c5442009-04-13 09:09:24 +000014011 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000014012 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000014013
14014Configuration files:
14015$config_files
14016
mlcreechb87057f2008-03-06 07:19:20 +000014017Configuration headers:
14018$config_headers
14019
mlcreech636a9952008-05-05 22:52:56 +000014020Configuration commands:
14021$config_commands
14022
drh71eb93e2001-09-28 01:34:43 +000014023Report bugs to <bug-autoconf@gnu.org>."
drh8b727472009-01-19 18:18:40 +000014024
mlcreech94984912008-03-04 19:03:08 +000014025_ACEOF
drh8b727472009-01-19 18:18:40 +000014026cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh866108f2008-05-13 00:57:21 +000014027ac_cs_version="\\
drhbc7a22d2009-10-13 22:47:13 +000014028sqlite config.status 3.6.19
drh934c5442009-04-13 09:09:24 +000014029configured by $0, generated by GNU Autoconf 2.62,
drh8b727472009-01-19 18:18:40 +000014030 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
drh866108f2008-05-13 00:57:21 +000014031
drh8b727472009-01-19 18:18:40 +000014032Copyright (C) 2008 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000014033This config.status script is free software; the Free Software Foundation
14034gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000014035
14036ac_pwd='$ac_pwd'
14037srcdir='$srcdir'
14038INSTALL='$INSTALL'
14039AWK='$AWK'
14040test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000014041_ACEOF
drh71eb93e2001-09-28 01:34:43 +000014042
drh8b727472009-01-19 18:18:40 +000014043cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14044# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000014045ac_need_defaults=:
14046while test $# != 0
14047do
14048 case $1 in
14049 --*=*)
drh8b727472009-01-19 18:18:40 +000014050 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14051 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000014052 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000014053 ;;
drh8b727472009-01-19 18:18:40 +000014054 *)
a.rottmann84e63352003-03-24 09:42:16 +000014055 ac_option=$1
14056 ac_optarg=$2
14057 ac_shift=shift
14058 ;;
drh75897232000-05-29 14:26:00 +000014059 esac
14060
a.rottmann84e63352003-03-24 09:42:16 +000014061 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000014062 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000014063 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000014064 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000014065 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14066 $as_echo "$ac_cs_version"; exit ;;
14067 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000014068 debug=: ;;
14069 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000014070 $ac_shift
drh8b727472009-01-19 18:18:40 +000014071 case $ac_optarg in
14072 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14073 esac
14074 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000014075 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000014076 --header | --heade | --head | --hea )
14077 $ac_shift
drh8b727472009-01-19 18:18:40 +000014078 case $ac_optarg in
14079 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14080 esac
14081 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000014082 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000014083 --he | --h)
14084 # Conflict between --help and --header
14085 { $as_echo "$as_me: error: ambiguous option: $1
14086Try \`$0 --help' for more information." >&2
14087 { (exit 1); exit 1; }; };;
14088 --help | --hel | -h )
14089 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000014090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14091 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14092 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000014093
drh71eb93e2001-09-28 01:34:43 +000014094 # This is an error.
drh8b727472009-01-19 18:18:40 +000014095 -*) { $as_echo "$as_me: error: unrecognized option: $1
14096Try \`$0 --help' for more information." >&2
drh71eb93e2001-09-28 01:34:43 +000014097 { (exit 1); exit 1; }; } ;;
14098
drh8b727472009-01-19 18:18:40 +000014099 *) ac_config_targets="$ac_config_targets $1"
14100 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000014101
14102 esac
14103 shift
14104done
14105
a.rottmann84e63352003-03-24 09:42:16 +000014106ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000014107
a.rottmann84e63352003-03-24 09:42:16 +000014108if $ac_cs_silent; then
14109 exec 6>/dev/null
14110 ac_configure_extra_args="$ac_configure_extra_args --silent"
14111fi
drh71eb93e2001-09-28 01:34:43 +000014112
14113_ACEOF
drh8b727472009-01-19 18:18:40 +000014114cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000014115if \$ac_cs_recheck; then
drh8b727472009-01-19 18:18:40 +000014116 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14117 shift
14118 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14119 CONFIG_SHELL='$SHELL'
14120 export CONFIG_SHELL
14121 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000014122fi
drh71eb93e2001-09-28 01:34:43 +000014123
a.rottmann84e63352003-03-24 09:42:16 +000014124_ACEOF
drh8b727472009-01-19 18:18:40 +000014125cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14126exec 5>>config.log
14127{
14128 echo
14129 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14130## Running $as_me. ##
14131_ASBOX
14132 $as_echo "$ac_log"
14133} >&5
a.rottmann84e63352003-03-24 09:42:16 +000014134
drh8b727472009-01-19 18:18:40 +000014135_ACEOF
14136cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000014137#
drh8b727472009-01-19 18:18:40 +000014138# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000014139#
14140
14141
14142# The HP-UX ksh and POSIX shell print the target directory to stdout
14143# if CDPATH is set.
14144(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14145
14146sed_quote_subst='$sed_quote_subst'
14147double_quote_subst='$double_quote_subst'
14148delay_variable_subst='$delay_variable_subst'
14149macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14150macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14151enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14152enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14153pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14154enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14155host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14156host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14157host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14158build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14159build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14160build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14161SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14162Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14163GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14164EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14165FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14166LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14167NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14168LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14169max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14170ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14171exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14172lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14173lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14174lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14175reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14176reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
vapier6acb2cf2009-01-28 04:46:28 +000014177OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
mlcreech636a9952008-05-05 22:52:56 +000014178deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14179file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14180AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14181AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14182STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14183RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14184old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14185old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14186old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14187CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14188CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14189compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14190GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14191lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14192lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14193lt_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"`'
14194lt_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"`'
14195objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14196SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14197ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14198MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14199lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14200lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14201lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14202lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14203lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14204need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14205DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14206NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14207LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14208OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14209OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14210libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14211shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14212extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14213archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14214enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14215export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14216whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14217compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14218old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14219old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14220archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14221archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14222module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14223module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14224with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14225allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14226no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14227hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14228hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14229hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14230hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14231hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14232hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14233hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14234hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14235inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14236link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14237fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14238always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14239export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14240exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14241include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14242prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14243file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14244variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14245need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14246need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14247version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14248runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14249shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14250shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14251libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14252library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14253soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14254postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14255postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14256finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14257finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14258hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14259sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14260sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14261hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14262enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14263enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14264enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14265old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14266striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14267
14268LTCC='$LTCC'
14269LTCFLAGS='$LTCFLAGS'
14270compiler='$compiler_DEFAULT'
14271
14272# Quote evaled strings.
14273for var in SED \
14274GREP \
14275EGREP \
14276FGREP \
14277LD \
14278NM \
14279LN_S \
14280lt_SP2NL \
14281lt_NL2SP \
14282reload_flag \
vapier6acb2cf2009-01-28 04:46:28 +000014283OBJDUMP \
mlcreech636a9952008-05-05 22:52:56 +000014284deplibs_check_method \
14285file_magic_cmd \
14286AR \
14287AR_FLAGS \
14288STRIP \
14289RANLIB \
14290CC \
14291CFLAGS \
14292compiler \
14293lt_cv_sys_global_symbol_pipe \
14294lt_cv_sys_global_symbol_to_cdecl \
14295lt_cv_sys_global_symbol_to_c_name_address \
14296lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14297SHELL \
14298ECHO \
14299lt_prog_compiler_no_builtin_flag \
14300lt_prog_compiler_wl \
14301lt_prog_compiler_pic \
14302lt_prog_compiler_static \
14303lt_cv_prog_compiler_c_o \
14304need_locks \
14305DSYMUTIL \
14306NMEDIT \
14307LIPO \
14308OTOOL \
14309OTOOL64 \
14310shrext_cmds \
14311export_dynamic_flag_spec \
14312whole_archive_flag_spec \
14313compiler_needs_object \
14314with_gnu_ld \
14315allow_undefined_flag \
14316no_undefined_flag \
14317hardcode_libdir_flag_spec \
14318hardcode_libdir_flag_spec_ld \
14319hardcode_libdir_separator \
14320fix_srcfile_path \
14321exclude_expsyms \
14322include_expsyms \
14323file_list_spec \
14324variables_saved_for_relink \
14325libname_spec \
14326library_names_spec \
14327soname_spec \
14328finish_eval \
14329old_striplib \
14330striplib; do
14331 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14332 *[\\\\\\\`\\"\\\$]*)
14333 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14334 ;;
14335 *)
14336 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14337 ;;
14338 esac
14339done
14340
14341# Double-quote double-evaled strings.
14342for var in reload_cmds \
14343old_postinstall_cmds \
14344old_postuninstall_cmds \
14345old_archive_cmds \
14346extract_expsyms_cmds \
14347old_archive_from_new_cmds \
14348old_archive_from_expsyms_cmds \
14349archive_cmds \
14350archive_expsym_cmds \
14351module_cmds \
14352module_expsym_cmds \
14353export_symbols_cmds \
14354prelink_cmds \
14355postinstall_cmds \
14356postuninstall_cmds \
14357finish_cmds \
14358sys_lib_search_path_spec \
14359sys_lib_dlsearch_path_spec; do
14360 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14361 *[\\\\\\\`\\"\\\$]*)
14362 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14363 ;;
14364 *)
14365 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14366 ;;
14367 esac
14368done
14369
14370# Fix-up fallback echo if it was mangled by the above quoting rules.
14371case \$lt_ECHO in
14372*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14373 ;;
14374esac
14375
14376ac_aux_dir='$ac_aux_dir'
14377xsi_shell='$xsi_shell'
14378lt_shell_append='$lt_shell_append'
14379
14380# See if we are running on zsh, and set the options which allow our
14381# commands through without removal of \ escapes INIT.
14382if test -n "\${ZSH_VERSION+set}" ; then
14383 setopt NO_GLOB_SUBST
14384fi
14385
14386
14387 PACKAGE='$PACKAGE'
14388 VERSION='$VERSION'
14389 TIMESTAMP='$TIMESTAMP'
14390 RM='$RM'
14391 ofile='$ofile'
14392
14393
14394
14395
mlcreech94984912008-03-04 19:03:08 +000014396_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000014397
drh8b727472009-01-19 18:18:40 +000014398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000014399
drh8b727472009-01-19 18:18:40 +000014400# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000014401for ac_config_target in $ac_config_targets
14402do
drh8b727472009-01-19 18:18:40 +000014403 case $ac_config_target in
14404 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14405 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14406 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14407 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
14408
14409 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14410$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
drh71eb93e2001-09-28 01:34:43 +000014411 { (exit 1); exit 1; }; };;
14412 esac
14413done
14414
drh8b727472009-01-19 18:18:40 +000014415
drh71eb93e2001-09-28 01:34:43 +000014416# If the user did not use the arguments to specify the items to instantiate,
14417# then the envvar interface is used. Set only those that are not.
14418# We use the long form for the default assignment because of an extremely
14419# bizarre bug on SunOS 4.1.3.
14420if $ac_need_defaults; then
14421 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000014422 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000014423 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000014424fi
14425
a.rottmann84e63352003-03-24 09:42:16 +000014426# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000014427# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000014428# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000014429# Hook for its removal unless debugging.
14430# Note that there is a small window in which the directory will not be cleaned:
14431# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000014432$debug ||
14433{
drh8b727472009-01-19 18:18:40 +000014434 tmp=
14435 trap 'exit_status=$?
14436 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14437' 0
drh71eb93e2001-09-28 01:34:43 +000014438 trap '{ (exit 1); exit 1; }' 1 2 13 15
14439}
drh71eb93e2001-09-28 01:34:43 +000014440# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000014441
drh71eb93e2001-09-28 01:34:43 +000014442{
drh8b727472009-01-19 18:18:40 +000014443 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drh71eb93e2001-09-28 01:34:43 +000014444 test -n "$tmp" && test -d "$tmp"
14445} ||
14446{
drh8b727472009-01-19 18:18:40 +000014447 tmp=./conf$$-$RANDOM
14448 (umask 077 && mkdir "$tmp")
drh71eb93e2001-09-28 01:34:43 +000014449} ||
14450{
drh8b727472009-01-19 18:18:40 +000014451 $as_echo "$as_me: cannot create a temporary directory in ." >&2
drh71eb93e2001-09-28 01:34:43 +000014452 { (exit 1); exit 1; }
14453}
14454
drh8b727472009-01-19 18:18:40 +000014455# Set up the scripts for CONFIG_FILES section.
14456# No need to generate them if there are no CONFIG_FILES.
14457# This happens for instance with `./config.status config.h'.
14458if test -n "$CONFIG_FILES"; then
14459
14460
drhbc7a22d2009-10-13 22:47:13 +000014461ac_cr=' '
drh8b727472009-01-19 18:18:40 +000014462ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14463if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14464 ac_cs_awk_cr='\\r'
14465else
14466 ac_cs_awk_cr=$ac_cr
14467fi
14468
14469echo 'BEGIN {' >"$tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000014470_ACEOF
drh71eb93e2001-09-28 01:34:43 +000014471
mlcreech94984912008-03-04 19:03:08 +000014472
drh8b727472009-01-19 18:18:40 +000014473{
14474 echo "cat >conf$$subs.awk <<_ACEOF" &&
14475 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14476 echo "_ACEOF"
14477} >conf$$subs.sh ||
14478 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14479$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14480 { (exit 1); exit 1; }; }
14481ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14482ac_delim='%!_!# '
14483for ac_last_try in false false false false false :; do
14484 . ./conf$$subs.sh ||
14485 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14486$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14487 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +000014488
drh934c5442009-04-13 09:09:24 +000014489 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
drh8b727472009-01-19 18:18:40 +000014490 break
14491 elif $ac_last_try; then
14492 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14493$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14494 { (exit 1); exit 1; }; }
14495 else
14496 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000014497 fi
drh8b727472009-01-19 18:18:40 +000014498done
14499rm -f conf$$subs.sh
14500
14501cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14502cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14503_ACEOF
14504sed -n '
14505h
14506s/^/S["/; s/!.*/"]=/
14507p
14508g
14509s/^[^!]*!//
14510:repl
14511t repl
14512s/'"$ac_delim"'$//
14513t delim
14514:nl
14515h
14516s/\(.\{148\}\).*/\1/
14517t more1
14518s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14519p
14520n
14521b repl
14522:more1
14523s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14524p
14525g
14526s/.\{148\}//
14527t nl
14528:delim
14529h
14530s/\(.\{148\}\).*/\1/
14531t more2
14532s/["\\]/\\&/g; s/^/"/; s/$/"/
14533p
14534b
14535:more2
14536s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14537p
14538g
14539s/.\{148\}//
14540t delim
14541' <conf$$subs.awk | sed '
14542/^[^""]/{
14543 N
14544 s/\n//
14545}
14546' >>$CONFIG_STATUS || ac_write_fail=1
14547rm -f conf$$subs.awk
14548cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14549_ACAWK
14550cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14551 for (key in S) S_is_set[key] = 1
14552 FS = ""
14553
14554}
14555{
14556 line = $ 0
14557 nfields = split(line, field, "@")
14558 substed = 0
14559 len = length(field[1])
14560 for (i = 2; i < nfields; i++) {
14561 key = field[i]
14562 keylen = length(key)
14563 if (S_is_set[key]) {
14564 value = S[key]
14565 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14566 len += length(value) + length(field[++i])
14567 substed = 1
14568 } else
14569 len += 1 + keylen
14570 }
14571
14572 print line
14573}
14574
14575_ACAWK
14576_ACEOF
14577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14578if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14579 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14580else
14581 cat
14582fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14583 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14584$as_echo "$as_me: error: could not setup config files machinery" >&2;}
14585 { (exit 1); exit 1; }; }
14586_ACEOF
14587
14588# VPATH may cause trouble with some makes, so we remove $(srcdir),
14589# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14590# trailing colons and then remove the whole line if VPATH becomes empty
14591# (actually we leave an empty line to preserve line numbers).
14592if test "x$srcdir" = x.; then
14593 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14594s/:*\$(srcdir):*/:/
14595s/:*\${srcdir}:*/:/
14596s/:*@srcdir@:*/:/
14597s/^\([^=]*=[ ]*\):*/\1/
14598s/:*$//
14599s/^[^=]*=[ ]*$//
14600}'
14601fi
14602
14603cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000014604fi # test -n "$CONFIG_FILES"
14605
drh8b727472009-01-19 18:18:40 +000014606# Set up the scripts for CONFIG_HEADERS section.
14607# No need to generate them if there are no CONFIG_HEADERS.
14608# This happens for instance with `./config.status Makefile'.
14609if test -n "$CONFIG_HEADERS"; then
14610cat >"$tmp/defines.awk" <<\_ACAWK ||
14611BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000014612_ACEOF
drh8b727472009-01-19 18:18:40 +000014613
14614# Transform confdefs.h into an awk script `defines.awk', embedded as
14615# here-document in config.status, that substitutes the proper values into
14616# config.h.in to produce config.h.
14617
14618# Create a delimiter string that does not exist in confdefs.h, to ease
14619# handling of long lines.
14620ac_delim='%!_!# '
14621for ac_last_try in false false :; do
14622 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14623 if test -z "$ac_t"; then
14624 break
14625 elif $ac_last_try; then
14626 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14627$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14628 { (exit 1); exit 1; }; }
14629 else
14630 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14631 fi
14632done
14633
14634# For the awk script, D is an array of macro values keyed by name,
14635# likewise P contains macro parameters if any. Preserve backslash
14636# newline sequences.
14637
14638ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14639sed -n '
14640s/.\{148\}/&'"$ac_delim"'/g
14641t rset
14642:rset
14643s/^[ ]*#[ ]*define[ ][ ]*/ /
14644t def
14645d
14646:def
14647s/\\$//
14648t bsnl
14649s/["\\]/\\&/g
14650s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14651D["\1"]=" \3"/p
14652s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14653d
14654:bsnl
14655s/["\\]/\\&/g
14656s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14657D["\1"]=" \3\\\\\\n"\\/p
14658t cont
14659s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14660t cont
14661d
14662:cont
14663n
14664s/.\{148\}/&'"$ac_delim"'/g
14665t clear
14666:clear
14667s/\\$//
14668t bsnlc
14669s/["\\]/\\&/g; s/^/"/; s/$/"/p
14670d
14671:bsnlc
14672s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14673b cont
14674' <confdefs.h | sed '
14675s/'"$ac_delim"'/"\\\
14676"/g' >>$CONFIG_STATUS || ac_write_fail=1
14677
14678cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14679 for (key in D) D_is_set[key] = 1
14680 FS = ""
14681}
14682/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14683 line = \$ 0
14684 split(line, arg, " ")
14685 if (arg[1] == "#") {
14686 defundef = arg[2]
14687 mac1 = arg[3]
14688 } else {
14689 defundef = substr(arg[1], 2)
14690 mac1 = arg[2]
14691 }
14692 split(mac1, mac2, "(") #)
14693 macro = mac2[1]
14694 if (D_is_set[macro]) {
14695 # Preserve the white space surrounding the "#".
drh934c5442009-04-13 09:09:24 +000014696 prefix = substr(line, 1, index(line, defundef) - 1)
drh8b727472009-01-19 18:18:40 +000014697 print prefix "define", macro P[macro] D[macro]
14698 next
14699 } else {
14700 # Replace #undef with comments. This is necessary, for example,
14701 # in the case of _POSIX_SOURCE, which is predefined and required
14702 # on some systems where configure will not decide to define it.
14703 if (defundef == "undef") {
drh934c5442009-04-13 09:09:24 +000014704 print "/*", line, "*/"
drh8b727472009-01-19 18:18:40 +000014705 next
14706 }
14707 }
14708}
14709{ print }
14710_ACAWK
14711_ACEOF
14712cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14713 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14714$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14715 { (exit 1); exit 1; }; }
14716fi # test -n "$CONFIG_HEADERS"
14717
14718
14719eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14720shift
14721for ac_tag
14722do
14723 case $ac_tag in
14724 :[FHLC]) ac_mode=$ac_tag; continue;;
14725 esac
14726 case $ac_mode$ac_tag in
14727 :[FHL]*:*);;
drh934c5442009-04-13 09:09:24 +000014728 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14729$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
drh8b727472009-01-19 18:18:40 +000014730 { (exit 1); exit 1; }; };;
14731 :[FH]-) ac_tag=-:-;;
14732 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14733 esac
14734 ac_save_IFS=$IFS
14735 IFS=:
14736 set x $ac_tag
14737 IFS=$ac_save_IFS
14738 shift
14739 ac_file=$1
14740 shift
14741
14742 case $ac_mode in
14743 :L) ac_source=$1;;
14744 :[FH])
14745 ac_file_inputs=
14746 for ac_f
14747 do
14748 case $ac_f in
14749 -) ac_f="$tmp/stdin";;
14750 *) # Look for the file first in the build tree, then in the source tree
14751 # (if the path is not absolute). The absolute path cannot be DOS-style,
14752 # because $ac_f cannot contain `:'.
14753 test -f "$ac_f" ||
14754 case $ac_f in
14755 [\\/$]*) false;;
14756 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14757 esac ||
14758 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14759$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14760 { (exit 1); exit 1; }; };;
14761 esac
14762 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14763 ac_file_inputs="$ac_file_inputs '$ac_f'"
14764 done
14765
14766 # Let's still pretend it is `configure' which instantiates (i.e., don't
14767 # use $as_me), people would be surprised to read:
14768 # /* config.h. Generated by config.status. */
14769 configure_input='Generated from '`
14770 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14771 `' by configure.'
14772 if test x"$ac_file" != x-; then
14773 configure_input="$ac_file. $configure_input"
14774 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14775$as_echo "$as_me: creating $ac_file" >&6;}
14776 fi
14777 # Neutralize special characters interpreted by sed in replacement strings.
14778 case $configure_input in #(
14779 *\&* | *\|* | *\\* )
14780 ac_sed_conf_input=`$as_echo "$configure_input" |
14781 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14782 *) ac_sed_conf_input=$configure_input;;
14783 esac
14784
14785 case $ac_tag in
14786 *:-:* | *:-) cat >"$tmp/stdin" \
14787 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14788$as_echo "$as_me: error: could not create $ac_file" >&2;}
14789 { (exit 1); exit 1; }; } ;;
14790 esac
14791 ;;
drh71eb93e2001-09-28 01:34:43 +000014792 esac
14793
drh8b727472009-01-19 18:18:40 +000014794 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000014795$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000014796 X"$ac_file" : 'X\(//\)[^/]' \| \
14797 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000014798 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14799$as_echo X"$ac_file" |
14800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14801 s//\1/
14802 q
14803 }
14804 /^X\(\/\/\)[^/].*/{
14805 s//\1/
14806 q
14807 }
14808 /^X\(\/\/\)$/{
14809 s//\1/
14810 q
14811 }
14812 /^X\(\/\).*/{
14813 s//\1/
14814 q
14815 }
14816 s/.*/./; q'`
14817 { as_dir="$ac_dir"
14818 case $as_dir in #(
14819 -*) as_dir=./$as_dir;;
14820 esac
14821 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
a.rottmann84e63352003-03-24 09:42:16 +000014822 as_dirs=
drh8b727472009-01-19 18:18:40 +000014823 while :; do
14824 case $as_dir in #(
14825 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14826 *) as_qdir=$as_dir;;
14827 esac
14828 as_dirs="'$as_qdir' $as_dirs"
14829 as_dir=`$as_dirname -- "$as_dir" ||
a.rottmann84e63352003-03-24 09:42:16 +000014830$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000014831 X"$as_dir" : 'X\(//\)[^/]' \| \
14832 X"$as_dir" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000014833 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14834$as_echo X"$as_dir" |
14835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14836 s//\1/
14837 q
14838 }
14839 /^X\(\/\/\)[^/].*/{
14840 s//\1/
14841 q
14842 }
14843 /^X\(\/\/\)$/{
14844 s//\1/
14845 q
14846 }
14847 /^X\(\/\).*/{
14848 s//\1/
14849 q
14850 }
14851 s/.*/./; q'`
14852 test -d "$as_dir" && break
a.rottmann84e63352003-03-24 09:42:16 +000014853 done
drh8b727472009-01-19 18:18:40 +000014854 test -z "$as_dirs" || eval "mkdir $as_dirs"
14855 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14856$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000014857 { (exit 1); exit 1; }; }; }
a.rottmann84e63352003-03-24 09:42:16 +000014858 ac_builddir=.
14859
drh8b727472009-01-19 18:18:40 +000014860case "$ac_dir" in
14861.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14862*)
14863 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14864 # A ".." for each directory in $ac_dir_suffix.
14865 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14866 case $ac_top_builddir_sub in
14867 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14868 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14869 esac ;;
14870esac
14871ac_abs_top_builddir=$ac_pwd
14872ac_abs_builddir=$ac_pwd$ac_dir_suffix
14873# for backward compatibility:
14874ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000014875
14876case $srcdir in
drh8b727472009-01-19 18:18:40 +000014877 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000014878 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000014879 ac_top_srcdir=$ac_top_builddir_sub
14880 ac_abs_top_srcdir=$ac_pwd ;;
14881 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000014882 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000014883 ac_top_srcdir=$srcdir
14884 ac_abs_top_srcdir=$srcdir ;;
14885 *) # Relative name.
14886 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14887 ac_top_srcdir=$ac_top_build_prefix$srcdir
14888 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000014889esac
drh8b727472009-01-19 18:18:40 +000014890ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000014891
a.rottmann84e63352003-03-24 09:42:16 +000014892
drh8b727472009-01-19 18:18:40 +000014893 case $ac_mode in
14894 :F)
14895 #
14896 # CONFIG_FILE
14897 #
drh75897232000-05-29 14:26:00 +000014898
drh71eb93e2001-09-28 01:34:43 +000014899 case $INSTALL in
14900 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000014901 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000014902 esac
mlcreech94984912008-03-04 19:03:08 +000014903_ACEOF
drh8b727472009-01-19 18:18:40 +000014904
14905cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14906# If the template does not know about datarootdir, expand it.
14907# FIXME: This hack should be removed a few years after 2.60.
14908ac_datarootdir_hack=; ac_datarootdir_seen=
14909
14910ac_sed_dataroot='
14911/datarootdir/ {
14912 p
14913 q
14914}
14915/@datadir@/p
14916/@docdir@/p
14917/@infodir@/p
14918/@localedir@/p
14919/@mandir@/p
14920'
14921case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14922*datarootdir*) ac_datarootdir_seen=yes;;
14923*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14924 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14925$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14926_ACEOF
14927cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14928 ac_datarootdir_hack='
14929 s&@datadir@&$datadir&g
14930 s&@docdir@&$docdir&g
14931 s&@infodir@&$infodir&g
14932 s&@localedir@&$localedir&g
14933 s&@mandir@&$mandir&g
14934 s&\\\${datarootdir}&$datarootdir&g' ;;
14935esac
14936_ACEOF
14937
14938# Neutralize VPATH when `$srcdir' = `.'.
14939# Shell code in configure.ac might set extrasub.
14940# FIXME: do we really want to maintain this feature?
14941cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14942ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000014943$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000014944_ACEOF
drh8b727472009-01-19 18:18:40 +000014945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000014946:t
14947/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000014948s|@configure_input@|$ac_sed_conf_input|;t t
14949s&@top_builddir@&$ac_top_builddir_sub&;t t
14950s&@top_build_prefix@&$ac_top_build_prefix&;t t
14951s&@srcdir@&$ac_srcdir&;t t
14952s&@abs_srcdir@&$ac_abs_srcdir&;t t
14953s&@top_srcdir@&$ac_top_srcdir&;t t
14954s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14955s&@builddir@&$ac_builddir&;t t
14956s&@abs_builddir@&$ac_abs_builddir&;t t
14957s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14958s&@INSTALL@&$ac_INSTALL&;t t
14959$ac_datarootdir_hack
14960"
14961eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14962 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14963$as_echo "$as_me: error: could not create $ac_file" >&2;}
14964 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +000014965
drh8b727472009-01-19 18:18:40 +000014966test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14967 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14968 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14969 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14970which seems to be undefined. Please make sure it is defined." >&5
14971$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14972which seems to be undefined. Please make sure it is defined." >&2;}
drh866108f2008-05-13 00:57:21 +000014973
drh8b727472009-01-19 18:18:40 +000014974 rm -f "$tmp/stdin"
drh866108f2008-05-13 00:57:21 +000014975 case $ac_file in
drh8b727472009-01-19 18:18:40 +000014976 -) cat "$tmp/out" && rm -f "$tmp/out";;
14977 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14978 esac \
14979 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14980$as_echo "$as_me: error: could not create $ac_file" >&2;}
drh866108f2008-05-13 00:57:21 +000014981 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000014982 ;;
14983 :H)
14984 #
14985 # CONFIG_HEADER
14986 #
drh866108f2008-05-13 00:57:21 +000014987 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000014988 {
14989 $as_echo "/* $configure_input */" \
14990 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14991 } >"$tmp/config.h" \
14992 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14993$as_echo "$as_me: error: could not create $ac_file" >&2;}
14994 { (exit 1); exit 1; }; }
14995 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14996 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14997$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000014998 else
drh8b727472009-01-19 18:18:40 +000014999 rm -f "$ac_file"
15000 mv "$tmp/config.h" "$ac_file" \
15001 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15002$as_echo "$as_me: error: could not create $ac_file" >&2;}
15003 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +000015004 fi
15005 else
drh8b727472009-01-19 18:18:40 +000015006 $as_echo "/* $configure_input */" \
15007 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15008 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
15009$as_echo "$as_me: error: could not create -" >&2;}
15010 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +000015011 fi
drh8b727472009-01-19 18:18:40 +000015012 ;;
drh866108f2008-05-13 00:57:21 +000015013
drh8b727472009-01-19 18:18:40 +000015014 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15015$as_echo "$as_me: executing $ac_file commands" >&6;}
15016 ;;
15017 esac
drh866108f2008-05-13 00:57:21 +000015018
15019
drh8b727472009-01-19 18:18:40 +000015020 case $ac_file$ac_mode in
15021 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000015022
15023 # See if we are running on zsh, and set the options which allow our
15024 # commands through without removal of \ escapes.
15025 if test -n "${ZSH_VERSION+set}" ; then
15026 setopt NO_GLOB_SUBST
15027 fi
15028
15029 cfgfile="${ofile}T"
15030 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15031 $RM "$cfgfile"
15032
15033 cat <<_LT_EOF >> "$cfgfile"
15034#! $SHELL
15035
15036# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15037# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15038# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15039# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15040#
15041# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15042# 2006, 2007, 2008 Free Software Foundation, Inc.
15043# Written by Gordon Matzigkeit, 1996
15044#
15045# This file is part of GNU Libtool.
15046#
15047# GNU Libtool is free software; you can redistribute it and/or
15048# modify it under the terms of the GNU General Public License as
15049# published by the Free Software Foundation; either version 2 of
15050# the License, or (at your option) any later version.
15051#
15052# As a special exception to the GNU General Public License,
15053# if you distribute this file as part of a program or library that
15054# is built using GNU Libtool, you may include this file under the
15055# same distribution terms that you use for the rest of that program.
15056#
15057# GNU Libtool is distributed in the hope that it will be useful,
15058# but WITHOUT ANY WARRANTY; without even the implied warranty of
15059# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15060# GNU General Public License for more details.
15061#
15062# You should have received a copy of the GNU General Public License
15063# along with GNU Libtool; see the file COPYING. If not, a copy
15064# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15065# obtained by writing to the Free Software Foundation, Inc.,
15066# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15067
15068
15069# The names of the tagged configurations supported by this script.
15070available_tags=""
15071
15072# ### BEGIN LIBTOOL CONFIG
15073
15074# Which release of libtool.m4 was used?
15075macro_version=$macro_version
15076macro_revision=$macro_revision
15077
15078# Whether or not to build shared libraries.
15079build_libtool_libs=$enable_shared
15080
15081# Whether or not to build static libraries.
15082build_old_libs=$enable_static
15083
15084# What type of objects to build.
15085pic_mode=$pic_mode
15086
15087# Whether or not to optimize for fast installation.
15088fast_install=$enable_fast_install
15089
15090# The host system.
15091host_alias=$host_alias
15092host=$host
15093host_os=$host_os
15094
15095# The build system.
15096build_alias=$build_alias
15097build=$build
15098build_os=$build_os
15099
15100# A sed program that does not truncate output.
15101SED=$lt_SED
15102
15103# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15104Xsed="\$SED -e 1s/^X//"
15105
15106# A grep program that handles long lines.
15107GREP=$lt_GREP
15108
15109# An ERE matcher.
15110EGREP=$lt_EGREP
15111
15112# A literal string matcher.
15113FGREP=$lt_FGREP
15114
15115# A BSD- or MS-compatible name lister.
15116NM=$lt_NM
15117
15118# Whether we need soft or hard links.
15119LN_S=$lt_LN_S
15120
15121# What is the maximum length of a command?
15122max_cmd_len=$max_cmd_len
15123
15124# Object file suffix (normally "o").
15125objext=$ac_objext
15126
15127# Executable file suffix (normally "").
15128exeext=$exeext
15129
15130# whether the shell understands "unset".
15131lt_unset=$lt_unset
15132
15133# turn spaces into newlines.
15134SP2NL=$lt_lt_SP2NL
15135
15136# turn newlines into spaces.
15137NL2SP=$lt_lt_NL2SP
15138
15139# How to create reloadable object files.
15140reload_flag=$lt_reload_flag
15141reload_cmds=$lt_reload_cmds
15142
vapier6acb2cf2009-01-28 04:46:28 +000015143# An object symbol dumper.
15144OBJDUMP=$lt_OBJDUMP
15145
mlcreech636a9952008-05-05 22:52:56 +000015146# Method to check whether dependent libraries are shared objects.
15147deplibs_check_method=$lt_deplibs_check_method
15148
15149# Command to use when deplibs_check_method == "file_magic".
15150file_magic_cmd=$lt_file_magic_cmd
15151
15152# The archiver.
15153AR=$lt_AR
15154AR_FLAGS=$lt_AR_FLAGS
15155
15156# A symbol stripping program.
15157STRIP=$lt_STRIP
15158
15159# Commands used to install an old-style archive.
15160RANLIB=$lt_RANLIB
15161old_postinstall_cmds=$lt_old_postinstall_cmds
15162old_postuninstall_cmds=$lt_old_postuninstall_cmds
15163
15164# A C compiler.
15165LTCC=$lt_CC
15166
15167# LTCC compiler flags.
15168LTCFLAGS=$lt_CFLAGS
15169
15170# Take the output of nm and produce a listing of raw symbols and C names.
15171global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15172
15173# Transform the output of nm in a proper C declaration.
15174global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15175
15176# Transform the output of nm in a C name address pair.
15177global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15178
15179# Transform the output of nm in a C name address pair when lib prefix is needed.
15180global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15181
15182# The name of the directory that contains temporary libtool files.
15183objdir=$objdir
15184
15185# Shell to use when invoking shell scripts.
15186SHELL=$lt_SHELL
15187
15188# An echo program that does not interpret backslashes.
15189ECHO=$lt_ECHO
15190
15191# Used to examine libraries when file_magic_cmd begins with "file".
15192MAGIC_CMD=$MAGIC_CMD
15193
15194# Must we lock files when doing compilation?
15195need_locks=$lt_need_locks
15196
15197# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15198DSYMUTIL=$lt_DSYMUTIL
15199
15200# Tool to change global to local symbols on Mac OS X.
15201NMEDIT=$lt_NMEDIT
15202
15203# Tool to manipulate fat objects and archives on Mac OS X.
15204LIPO=$lt_LIPO
15205
15206# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15207OTOOL=$lt_OTOOL
15208
15209# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15210OTOOL64=$lt_OTOOL64
15211
15212# Old archive suffix (normally "a").
15213libext=$libext
15214
15215# Shared library suffix (normally ".so").
15216shrext_cmds=$lt_shrext_cmds
15217
15218# The commands to extract the exported symbol list from a shared archive.
15219extract_expsyms_cmds=$lt_extract_expsyms_cmds
15220
15221# Variables whose values should be saved in libtool wrapper scripts and
15222# restored at link time.
15223variables_saved_for_relink=$lt_variables_saved_for_relink
15224
15225# Do we need the "lib" prefix for modules?
15226need_lib_prefix=$need_lib_prefix
15227
15228# Do we need a version for libraries?
15229need_version=$need_version
15230
15231# Library versioning type.
15232version_type=$version_type
15233
15234# Shared library runtime path variable.
15235runpath_var=$runpath_var
15236
15237# Shared library path variable.
15238shlibpath_var=$shlibpath_var
15239
15240# Is shlibpath searched before the hard-coded library search path?
15241shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15242
15243# Format of library name prefix.
15244libname_spec=$lt_libname_spec
15245
15246# List of archive names. First name is the real one, the rest are links.
15247# The last name is the one that the linker finds with -lNAME
15248library_names_spec=$lt_library_names_spec
15249
15250# The coded name of the library, if different from the real name.
15251soname_spec=$lt_soname_spec
15252
15253# Command to use after installation of a shared archive.
15254postinstall_cmds=$lt_postinstall_cmds
15255
15256# Command to use after uninstallation of a shared archive.
15257postuninstall_cmds=$lt_postuninstall_cmds
15258
15259# Commands used to finish a libtool library installation in a directory.
15260finish_cmds=$lt_finish_cmds
15261
15262# As "finish_cmds", except a single script fragment to be evaled but
15263# not shown.
15264finish_eval=$lt_finish_eval
15265
15266# Whether we should hardcode library paths into libraries.
15267hardcode_into_libs=$hardcode_into_libs
15268
15269# Compile-time system search path for libraries.
15270sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15271
15272# Run-time system search path for libraries.
15273sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15274
15275# Whether dlopen is supported.
15276dlopen_support=$enable_dlopen
15277
15278# Whether dlopen of programs is supported.
15279dlopen_self=$enable_dlopen_self
15280
15281# Whether dlopen of statically linked programs is supported.
15282dlopen_self_static=$enable_dlopen_self_static
15283
15284# Commands to strip libraries.
15285old_striplib=$lt_old_striplib
15286striplib=$lt_striplib
15287
15288
15289# The linker used to build libraries.
15290LD=$lt_LD
15291
15292# Commands used to build an old-style archive.
15293old_archive_cmds=$lt_old_archive_cmds
15294
15295# A language specific compiler.
15296CC=$lt_compiler
15297
15298# Is the compiler the GNU compiler?
15299with_gcc=$GCC
15300
15301# Compiler flag to turn off builtin functions.
15302no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15303
15304# How to pass a linker flag through the compiler.
15305wl=$lt_lt_prog_compiler_wl
15306
15307# Additional compiler flags for building library objects.
15308pic_flag=$lt_lt_prog_compiler_pic
15309
15310# Compiler flag to prevent dynamic linking.
15311link_static_flag=$lt_lt_prog_compiler_static
15312
15313# Does compiler simultaneously support -c and -o options?
15314compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15315
15316# Whether or not to add -lc for building shared libraries.
15317build_libtool_need_lc=$archive_cmds_need_lc
15318
15319# Whether or not to disallow shared libs when runtime libs are static.
15320allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15321
15322# Compiler flag to allow reflexive dlopens.
15323export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15324
15325# Compiler flag to generate shared objects directly from archives.
15326whole_archive_flag_spec=$lt_whole_archive_flag_spec
15327
15328# Whether the compiler copes with passing no objects directly.
15329compiler_needs_object=$lt_compiler_needs_object
15330
15331# Create an old-style archive from a shared archive.
15332old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15333
15334# Create a temporary old-style archive to link instead of a shared archive.
15335old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15336
15337# Commands used to build a shared archive.
15338archive_cmds=$lt_archive_cmds
15339archive_expsym_cmds=$lt_archive_expsym_cmds
15340
15341# Commands used to build a loadable module if different from building
15342# a shared archive.
15343module_cmds=$lt_module_cmds
15344module_expsym_cmds=$lt_module_expsym_cmds
15345
15346# Whether we are building with GNU ld or not.
15347with_gnu_ld=$lt_with_gnu_ld
15348
15349# Flag that allows shared libraries with undefined symbols to be built.
15350allow_undefined_flag=$lt_allow_undefined_flag
15351
15352# Flag that enforces no undefined symbols.
15353no_undefined_flag=$lt_no_undefined_flag
15354
15355# Flag to hardcode \$libdir into a binary during linking.
15356# This must work even if \$libdir does not exist
15357hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15358
15359# If ld is used when linking, flag to hardcode \$libdir into a binary
15360# during linking. This must work even if \$libdir does not exist.
15361hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15362
15363# Whether we need a single "-rpath" flag with a separated argument.
15364hardcode_libdir_separator=$lt_hardcode_libdir_separator
15365
15366# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15367# DIR into the resulting binary.
15368hardcode_direct=$hardcode_direct
15369
15370# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15371# DIR into the resulting binary and the resulting library dependency is
15372# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15373# library is relocated.
15374hardcode_direct_absolute=$hardcode_direct_absolute
15375
15376# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15377# into the resulting binary.
15378hardcode_minus_L=$hardcode_minus_L
15379
15380# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15381# into the resulting binary.
15382hardcode_shlibpath_var=$hardcode_shlibpath_var
15383
15384# Set to "yes" if building a shared library automatically hardcodes DIR
15385# into the library and all subsequent libraries and executables linked
15386# against it.
15387hardcode_automatic=$hardcode_automatic
15388
15389# Set to yes if linker adds runtime paths of dependent libraries
15390# to runtime path list.
15391inherit_rpath=$inherit_rpath
15392
15393# Whether libtool must link a program against all its dependency libraries.
15394link_all_deplibs=$link_all_deplibs
15395
15396# Fix the shell variable \$srcfile for the compiler.
15397fix_srcfile_path=$lt_fix_srcfile_path
15398
15399# Set to "yes" if exported symbols are required.
15400always_export_symbols=$always_export_symbols
15401
15402# The commands to list exported symbols.
15403export_symbols_cmds=$lt_export_symbols_cmds
15404
15405# Symbols that should not be listed in the preloaded symbols.
15406exclude_expsyms=$lt_exclude_expsyms
15407
15408# Symbols that must always be exported.
15409include_expsyms=$lt_include_expsyms
15410
15411# Commands necessary for linking programs (against libraries) with templates.
15412prelink_cmds=$lt_prelink_cmds
15413
15414# Specify filename containing input files.
15415file_list_spec=$lt_file_list_spec
15416
15417# How to hardcode a shared library path into an executable.
15418hardcode_action=$hardcode_action
15419
15420# ### END LIBTOOL CONFIG
15421
15422_LT_EOF
15423
15424 case $host_os in
15425 aix3*)
15426 cat <<\_LT_EOF >> "$cfgfile"
15427# AIX sometimes has problems with the GCC collect2 program. For some
15428# reason, if we set the COLLECT_NAMES environment variable, the problems
15429# vanish in a puff of smoke.
15430if test "X${COLLECT_NAMES+set}" != Xset; then
15431 COLLECT_NAMES=
15432 export COLLECT_NAMES
15433fi
15434_LT_EOF
15435 ;;
15436 esac
15437
15438
15439ltmain="$ac_aux_dir/ltmain.sh"
15440
15441
15442 # We use sed instead of cat because bash on DJGPP gets confused if
15443 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15444 # text mode, it properly converts lines to CR/LF. This bash problem
15445 # is reportedly fixed, but why not run on old versions too?
15446 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15447 || (rm -f "$cfgfile"; exit 1)
15448
15449 case $xsi_shell in
15450 yes)
15451 cat << \_LT_EOF >> "$cfgfile"
15452
15453# func_dirname file append nondir_replacement
15454# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15455# otherwise set result to NONDIR_REPLACEMENT.
15456func_dirname ()
15457{
15458 case ${1} in
15459 */*) func_dirname_result="${1%/*}${2}" ;;
15460 * ) func_dirname_result="${3}" ;;
15461 esac
15462}
15463
15464# func_basename file
15465func_basename ()
15466{
15467 func_basename_result="${1##*/}"
15468}
15469
15470# func_dirname_and_basename file append nondir_replacement
15471# perform func_basename and func_dirname in a single function
15472# call:
15473# dirname: Compute the dirname of FILE. If nonempty,
15474# add APPEND to the result, otherwise set result
15475# to NONDIR_REPLACEMENT.
15476# value returned in "$func_dirname_result"
15477# basename: Compute filename of FILE.
15478# value retuned in "$func_basename_result"
15479# Implementation must be kept synchronized with func_dirname
15480# and func_basename. For efficiency, we do not delegate to
15481# those functions but instead duplicate the functionality here.
15482func_dirname_and_basename ()
15483{
15484 case ${1} in
15485 */*) func_dirname_result="${1%/*}${2}" ;;
15486 * ) func_dirname_result="${3}" ;;
15487 esac
15488 func_basename_result="${1##*/}"
15489}
15490
15491# func_stripname prefix suffix name
15492# strip PREFIX and SUFFIX off of NAME.
15493# PREFIX and SUFFIX must not contain globbing or regex special
15494# characters, hashes, percent signs, but SUFFIX may contain a leading
15495# dot (in which case that matches only a dot).
15496func_stripname ()
15497{
15498 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15499 # positional parameters, so assign one to ordinary parameter first.
15500 func_stripname_result=${3}
15501 func_stripname_result=${func_stripname_result#"${1}"}
15502 func_stripname_result=${func_stripname_result%"${2}"}
15503}
15504
15505# func_opt_split
15506func_opt_split ()
15507{
15508 func_opt_split_opt=${1%%=*}
15509 func_opt_split_arg=${1#*=}
15510}
15511
15512# func_lo2o object
15513func_lo2o ()
15514{
15515 case ${1} in
15516 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15517 *) func_lo2o_result=${1} ;;
15518 esac
15519}
15520
15521# func_xform libobj-or-source
15522func_xform ()
15523{
15524 func_xform_result=${1%.*}.lo
15525}
15526
15527# func_arith arithmetic-term...
15528func_arith ()
15529{
15530 func_arith_result=$(( $* ))
15531}
15532
15533# func_len string
15534# STRING may not start with a hyphen.
15535func_len ()
15536{
15537 func_len_result=${#1}
15538}
15539
15540_LT_EOF
15541 ;;
15542 *) # Bourne compatible functions.
15543 cat << \_LT_EOF >> "$cfgfile"
15544
15545# func_dirname file append nondir_replacement
15546# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15547# otherwise set result to NONDIR_REPLACEMENT.
15548func_dirname ()
15549{
15550 # Extract subdirectory from the argument.
15551 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15552 if test "X$func_dirname_result" = "X${1}"; then
15553 func_dirname_result="${3}"
15554 else
15555 func_dirname_result="$func_dirname_result${2}"
15556 fi
15557}
15558
15559# func_basename file
15560func_basename ()
15561{
15562 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15563}
15564
15565
15566# func_stripname prefix suffix name
15567# strip PREFIX and SUFFIX off of NAME.
15568# PREFIX and SUFFIX must not contain globbing or regex special
15569# characters, hashes, percent signs, but SUFFIX may contain a leading
15570# dot (in which case that matches only a dot).
15571# func_strip_suffix prefix name
15572func_stripname ()
15573{
15574 case ${2} in
15575 .*) func_stripname_result=`$ECHO "X${3}" \
15576 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15577 *) func_stripname_result=`$ECHO "X${3}" \
15578 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15579 esac
15580}
15581
15582# sed scripts:
15583my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15584my_sed_long_arg='1s/^-[^=]*=//'
15585
15586# func_opt_split
15587func_opt_split ()
15588{
15589 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15590 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15591}
15592
15593# func_lo2o object
15594func_lo2o ()
15595{
15596 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15597}
15598
15599# func_xform libobj-or-source
15600func_xform ()
15601{
15602 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15603}
15604
15605# func_arith arithmetic-term...
15606func_arith ()
15607{
15608 func_arith_result=`expr "$@"`
15609}
15610
15611# func_len string
15612# STRING may not start with a hyphen.
15613func_len ()
15614{
15615 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15616}
15617
15618_LT_EOF
15619esac
15620
15621case $lt_shell_append in
15622 yes)
15623 cat << \_LT_EOF >> "$cfgfile"
15624
15625# func_append var value
15626# Append VALUE to the end of shell variable VAR.
15627func_append ()
15628{
15629 eval "$1+=\$2"
15630}
15631_LT_EOF
15632 ;;
15633 *)
15634 cat << \_LT_EOF >> "$cfgfile"
15635
15636# func_append var value
15637# Append VALUE to the end of shell variable VAR.
15638func_append ()
15639{
15640 eval "$1=\$$1\$2"
15641}
15642
15643_LT_EOF
15644 ;;
15645 esac
15646
15647
15648 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15649 || (rm -f "$cfgfile"; exit 1)
15650
15651 mv -f "$cfgfile" "$ofile" ||
15652 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15653 chmod +x "$ofile"
15654
15655 ;;
mlcreech94984912008-03-04 19:03:08 +000015656
drh8b727472009-01-19 18:18:40 +000015657 esac
15658done # for ac_tag
15659
drh71eb93e2001-09-28 01:34:43 +000015660
15661{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000015662_ACEOF
drh75897232000-05-29 14:26:00 +000015663chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000015664ac_clean_files=$ac_clean_files_save
15665
drh8b727472009-01-19 18:18:40 +000015666test $ac_write_fail = 0 ||
15667 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15668$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15669 { (exit 1); exit 1; }; }
15670
a.rottmann84e63352003-03-24 09:42:16 +000015671
drh71eb93e2001-09-28 01:34:43 +000015672# configure is writing to config.log, and then calls config.status.
15673# config.status does its own redirection, appending to config.log.
15674# Unfortunately, on DOS this fails, as config.log is still kept open
15675# by configure, so config.status won't be able to write to it; its
15676# output is simply discarded. So we exec the FD to /dev/null,
15677# effectively closing config.log, so it can be properly (re)opened and
15678# appended to by config.status. When coming back to configure, we
15679# need to make the FD available again.
15680if test "$no_create" != yes; then
15681 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000015682 ac_config_status_args=
15683 test "$silent" = yes &&
15684 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000015685 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000015686 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000015687 exec 5>>config.log
15688 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15689 # would make configure fail if this is the last instruction.
15690 $ac_cs_success || { (exit 1); exit 1; }
15691fi
drh8b727472009-01-19 18:18:40 +000015692if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
drh934c5442009-04-13 09:09:24 +000015693 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
15694$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
drh8b727472009-01-19 18:18:40 +000015695fi
drhbc7a22d2009-10-13 22:47:13 +000015696